Skip to content

UART being overloaded with too many requests fix #134

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

Open
JensOgorek opened this issue Mar 21, 2025 · 0 comments
Open

UART being overloaded with too many requests fix #134

JensOgorek opened this issue Mar 21, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JensOgorek
Copy link
Contributor

We had a problem with a robot, it crashed with a lot of checksum mismatch outputs.
The traceback pointed towards the UART.

It seems the UART was overloaded with too many requests that flooded in while it was still sending.

I recreated the issue with two esps. The expander esp had 21 input modules to create a higher load on the connection.
After both were running, I could trigger the issue with spamming a command like p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.info();p0.version()

After spamming it for multiple seconds, it resulted in the same behavior the robot displayed.

The fix is to wait for the TX to be done sending within the echo method.

@JensOgorek JensOgorek added the bug Something isn't working label Mar 21, 2025
@JensOgorek JensOgorek added this to the 0.6.5 milestone Mar 21, 2025
@JensOgorek JensOgorek self-assigned this Mar 21, 2025
@JensOgorek JensOgorek changed the title UART beein overloaded with to many requests fix UART beeing overloaded with to many requests fix Mar 31, 2025
@JensOgorek JensOgorek modified the milestones: 0.6.5, 0.7.0 Apr 7, 2025
@falkoschindler falkoschindler changed the title UART beeing overloaded with to many requests fix UART being overloaded with too many requests fix Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant