UDP Broadcast packet transmission from an ESP8266 to Iphone4 result in >75% packet loss.
To reproduce use:
Now send 1 packet per second using AT+CIPSEND
Not all the Iphones seem to suffer as badly, but the Iphone4 is the worst.
On the Iphone4 run a UDP receiver, note the VERY large packet loss. Other devices (including Ipad) show a much lower packet loss.
Using another peer (at the same time) with the ESP module and run a packet sniffer, I find a PC laptop at 1 meter gives a packet loss from the same sender of almost zero, an Iphone at the same distance (1 meter) will give very high packet loss. Note this is only true for UDP broadcast packets.
Just some thoughts. When developing an IOT device with IOS controller app we also found that there was problems with high UDP packet loss.
And this wasn't with an ESP8266 but a CC3000, so I would guess that the problem is in IOS, as is also suggested by the fact that the PC got all the packets.
IA quick google also show other people having the same problems.
so I would guess that the problem is in IOS
Yes, I thought the same at first. But then I tested Iphone to Iphone, Ipad to Iphone etc and found very low packet loss.
It seems (so I am told) that the Wifi module advertises a power saving mode that then fails to fully comply with, I dont know enough to prove this one way or the other but it does fit with the tests I have done. For example ESP8266 peered with the newer Android device also seems to suffer high packet loss, nothing apple in that equation.
I picked ESP8266 with Iphone4 as this has the highest packet loss, around 75% go missing !
If I program the Iphone to send a dummy UDP frame every few ms with calling recvfrom() then the packet loss rate drops back to almost zero. See "usehack" referemce in the UDP demo I made to argue with Apple.
Who is online
Users browsing this forum: No registered users and 1 guest
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!