-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UDP debug skips some DEBUG_MSG_P #438
Comments
The UDP library is synchronous so all packets are sent. Maybe the issue is on the receiving part? You can try adding a "nice_delay(10)" in the debug.ino module after the UDP endPacket commands. |
TL;DR IMO it' isn't a network issue, it seems an underlying UDP stack problem. In my test env it's soved by adding delay(1) immediately after the _udp_debug.endPacket() It may be confirmed by adding the following snippet inside loop() and experimenting with DEBUG_UDP_LOSS_RELAX:
I tryed with a stock Wemos D1 mini and ESPURNA_CORE
Piero |
Thanks for testing this @PieBru. I have added the delay to the code in the dev branch. |
This is staged for release. |
Originally reported by: P.B. (Bitbucket: PieBru, GitHub: PieBru)
Hi, simultaneously comparing console, telnet and UDP debug outputs, the UDP output skips some rows, always the same rows here.
UDP networking is inherently unreliable, but IMO this problem is on the ESP side only.
UDP debug output is very handy, but as I've experienced below it can be misleading. If others can reproduce this issue, I suggest to deprecate it until solved.
The "help" command show the same output on serial and telnet consoles:
However, the UDP debug console every time shows only:
_udp_debug beginPacket(), write(), endPacket() are executed for all output rows, but not all UDP frames leave the ESP.
By looking at the sources I'm not able to see any significant cause, so I think it can be a sort of "overrun" on the udp send in the ESP.
Piero
The text was updated successfully, but these errors were encountered: