-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
UART Communication Delays and Data Loss #10420
Comments
@mightChamp - The issue is related only to Core 3.1.0-RC1? Does it also happen with Core 3.0.5? |
This sounds related to #10397 The evidence is that whenever In Arduino Core 1.0.6, the UART driver was local one, faster and way more efficient. |
@mightChamp - Could you please check if PR #10428 solves this issue too? |
We have tested the fix from PR #10428, but unfortunately, we are still facing the same issue. This issue is currently blocking our development progress, and we would greatly appreciate an estimate of how long it might take to investigate or resolve this. If there are any further tests or adjustments we could try, we are ready to assist. |
@mightChamp - based on what @lbernstone wrote, there are a few new methods to deal with UART that were not available in 1.0.6.
|
I'll build a Python script + the sketch example that is here listed to find out more about the issue. |
Despite testing all examples, we encountered significant performance degradation, and also faces missing data bytes and delay issue. |
Please elaborate more about "significant performance degradation", "missing data bytes" and "delay issue". You can count on me for fixing it ASAP. Thanks! |
We are experiencing a delay issue that creates the illusion of missing bytes due to timeout. Also PR #10429, reduces this delay, but still face some delay, as compared to V1.0.6. Our project is quite large, using 1.6 MB of Flash and 35% of RAM, with two additional tasks running. The code works perfectly in v1.0.6, but we are looking to upgrade to the latest SDK. Due to the size and complexity of the code, providing a simplified version for testing is challenging. |
@mightChamp - Could you please test it using this sketch:
|
Board
ESP32 Wroom 32E 4MB Flash
Device Description
We are making an Uart Data logger, an external device send uart data, which stored in SD card.
Hardware Configuration
GPIO13- Uart TX, and GPIO14- Uart RX
Uart setup:
Baud Rate: 115200
Flow Control: Disabled
Buffer Size: 4096
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino IDE
Operating System
Windows 11
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
921600
Description
We are encountering an issue with UART communication on ESP32 where data reception is delayed, and sometimes data is lost. This issue occurs intermittently and was not present in version v1.0.6.
Sketch
Debug Message
Other Steps to Reproduce
Set up UART communication between ESP32 and another device.
Send continuous data streams over UART.
Observe occasional delays and missed data.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: