ESP8266 Developer Zone The Official ESP8266 Forum 2016-10-06T23:16:41+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=1058 2016-10-06T23:16:41+08:00 2016-10-06T23:16:41+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=10067#p10067 <![CDATA[Re: [Solved] IGMP missing in lwip RTOS sdk version]]>

Code:

void ICACHE_FLASH_ATTR handle_udp_join_group(void) {
   printf("handle_udp_join_group\n");

   struct ip_addr ipgroup;
   struct ip_info local_ip;

   const WIFI_MODE mode = wifi_get_opmode();

   if (mode & STATION_MODE) {
      wifi_get_ip_info(STATION_IF, &local_ip);
   } else {
      wifi_get_ip_info(SOFTAP_IF, &local_ip);
   }

   ipaddr_aton("239.255.0.1", &ipgroup);

   const uint8_t iret = igmp_joingroup(&local_ip.ip,(struct ip_addr *)(&ipgroup));

   if (iret != ERR_OK) {
      printf("Could not join\n");
   }

}


The full code can be found here -> https://github.com/vanvught/rpidmx512/tree/master/esp8266_rtos_sdk_rpi

Statistics: Posted by raspberrypidmx — Thu Oct 06, 2016 11:16 pm


]]>
2016-04-24T07:05:57+08:00 2016-04-24T07:05:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=6585#p6585 <![CDATA[Re: [Solved] IGMP missing in lwip RTOS sdk version]]>
I found that IGMP was not working so I search this site for potential answers.

I downloaded the 4 libraries noteed earlier in this thread --- and igmp started to work. --- OR I Thought.

My simple test program has 2 tasks. Task1 creates a UDP socket and issues a recv request which blocks until a UDP message on the specified port arrives.

Task2 waits for a counting semaphore which is incremented upon Task1 receiving a message. Task2 waits for a counting semaphore and has a timeout of 30 seconds. Upon returning from a TimeOut -- Task2 posts a os_printf message stating that no message was received from Task1.

My test does NOT send any UDP messages so expected behavior is to see a os_printf post every 30 seconds --- forever.

It DOES post forever with the current RTOS SDK but igmp is not working.

Re complied and linked the 4 libs stated earlier in this post ... test if a multicast message is received ,--- all work OK.

Restart the ESP --- don't send any messages and expect to see os_printf posts forever -- WRONG.

The os_printf posts STOP showing up about 10 minutes after the ESP is started.

As another note --- I'm using the GDBstub and with the 4 libs noted ... I have received a SIGEMT: Emulation Trap and a SIGILL: illegal instruction.

It appears that the 4 libs posted earlier to resolve the missing igmp issue has created bugs of their own.

Is there any way to get a good RTOS SDK with igmp working?

Thanks -- and if I can supply anything to help debug the issue I have presented her -- please say so.

Thanks in advance for looking into this.

Statistics: Posted by jhinkle — Sun Apr 24, 2016 7:05 am


]]>
2015-12-02T15:41:51+08:00 2015-12-02T15:41:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=4864#p4864 <![CDATA[Re: [Solved] IGMP missing in lwip RTOS sdk version]]>
Please provide your test code, we will have a try.

Statistics: Posted by ESP_Faye — Wed Dec 02, 2015 3:41 pm


]]>
2015-12-02T13:37:15+08:00 2015-12-02T13:37:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=4861#p4861 <![CDATA[Re: [Solved] IGMP missing in lwip RTOS sdk version]]>
scandone
state: 0 -> 2 (b0)
state: \0xa6\0xc9\0x02\0x9a\0x02B\0x82Jj

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset

----------------------------

scandone
state: 0 -> 2 (b0)
state:\0x802 -> 3 (0)

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset

----------------------------

Occasionally it will connect and run but will crash shortly after. When it connects I get:


scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
pm open phy_2,type:2 0 0
cnt

connected with Elite Scientist, channel 4
dhcp client start...



Here are what the crashes look like:


Fatal exception (0):
epc1=0x40215090
epc2=0x40100070
epc3=0x40101798
epcvaddr=0x0000000c
depc=0x40100052
rtn_add=0x40101712

------------------

low_level_init
add if0
f r-40, scandone
state: 0 -> 2 (b0)
state:\0x002 -> 3 (0)
Fatal exception (28):
epc1=0x4000deed
epc2=0x40100070
epc3=0x40103861
epcvaddr=0x0000000c
depc=0x40100059
rtn_add=0x400018dc
\0xea
ets Jan 8 2013,rst cause:2, boot mode:(3,6)



After So many crashes I will see this and it will stop running completely:

low_level_init
add if0
f r-1, scandone
state: 0 -> 2 (b0)
sta

Statistics: Posted by EliteScientist — Wed Dec 02, 2015 1:37 pm


]]>
2015-12-01T12:05:06+08:00 2015-12-01T12:05:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=4839#p4839 <![CDATA[Re: IGMP missing in lwip RTOS sdk version]]>

Statistics: Posted by EliteScientist — Tue Dec 01, 2015 12:05 pm


]]>
2015-12-01T10:38:37+08:00 2015-12-01T10:38:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=4836#p4836 <![CDATA[Re: IGMP missing in lwip RTOS sdk version]]>
So sorry that there are more libs which are needed.

Please have a try with this new attachment.
lib_support_igmp.zip

Statistics: Posted by ESP_Faye — Tue Dec 01, 2015 10:38 am


]]>
2015-11-30T15:42:00+08:00 2015-11-30T15:42:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=4820#p4820 <![CDATA[Re: IGMP missing in lwip RTOS sdk version]]> Statistics: Posted by EliteScientist — Mon Nov 30, 2015 3:42 pm


]]>
2015-11-30T14:15:23+08:00 2015-11-30T14:15:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=4818#p4818 <![CDATA[Re: IGMP missing in lwip RTOS sdk version]]>
Sorry for the inconvenience.

Please have a try with the lib as the attachment.
liblwip.zip

Statistics: Posted by ESP_Faye — Mon Nov 30, 2015 2:15 pm


]]>
2015-11-30T08:39:40+08:00 2015-11-30T08:39:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=4816#p4816 <![CDATA[Re: IGMP missing in lwip RTOS sdk version]]> Statistics: Posted by EliteScientist — Mon Nov 30, 2015 8:39 am


]]>
2015-09-04T15:03:47+08:00 2015-09-04T15:03:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1058&p=3548#p3548 <![CDATA[[Solved] IGMP missing in lwip RTOS sdk version]]> Regards,
Fabian

Statistics: Posted by fabianpie — Fri Sep 04, 2015 3:03 pm


]]>