Page 1 of 1

datagram loss reason

Posted: Tue Feb 19, 2019 12:11 pm
by michprev
Hi,
I know that UDP does not guarantee that data will be ever delivered.

I am broadcasting 21 bytes long datagram every 1 second but sometimes it is not delivered - usually 1 or 2 datagrams are missing in a row.
I am attaching wireshark log.

Even more interesting is that I don't see any packet drop / error:
Screenshot_20190219_125804.png
Screenshot_20190219_125804.png (15.93 KiB) Viewed 3469 times

My code is available at https://github.com/michprev/flyhero_datagram_loss
What might be the reason why datagrams are not delivered?

I am using ESP-IDF revision ed1304146 (tag: v3.1.2).

EDIT:
Some observations - does not matter if I use Windows or Linux, does not matter if I use external wifi dongle or internal wifi
If I use second laptop (and modify code to accept 2 connections) the second laptop does not have any issues (it receives what the first laptop does not receive)