-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Why do i get a warning when i got a break on UART? #9551
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
Comments
possibly related to #9500? |
I'm on 2.0.14 Arduino as a component of IDF using platformIO.
|
Really frustrating because my serial is flooded with these warning messages and I can't debug other part of my code. |
I'M specifiing pins by default. #define MBUS_BAUD 115200
#define MBUS_RX 35
#define MBUS_TX 32
#define MBUS_RTS 33
// RX_TIMEOUT / (MBUS_BAUD / 10) = millisec
// 4 / (115200 / 10) = 3.4 ms
#define RX_TIMEOUT 5
#define WAIT_TIMEOUT_MS 100 |
In order to get rid of this message, you may change the arduino-esp32/cores/esp32/HardwareSerial.cpp Lines 255 to 258 in 58b9f07
|
Another way to get rid of this messages would be to set the log level to Error only. Please let me know. |
From our end, it would make more sense to change these log messages to Verbose instead of Warning Level. |
Thank you for the suggestions. Isnt rx break a normal behavior? How else should we determine a packet? |
Yes, but it depends on the protocol. In the case of MODBUS or some RS485 protocols, it may be common. |
UART events like BREAK or errors are now Verbose instead of Warning Level. Backporting change from Issue #9551
Okay, i just commented the line out. Thank you very much for the help! |
* feat (uart): uses the same IDF 32bits size for TX/RX buffers Uses the same IDF 32bits size for TX/RX buffers. Changed header files to use the same IDF buffer limits. * this is a backport from PR #9554 * feat (uart): change UART events logs to Verbose UART events like BREAK or errors are now Verbose instead of Warning Level. Backporting change from Issue #9551 * feat (uart): uses the same IDF 32bits size for TX/RX buffers. Uses the same IDF 32bits size for TX/RX buffers. Changed header files to use the same IDF buffer limits. * this is a backport from PR #9554 * feat (uart): keep overflow log as warning Keeps Overflow / Buffer Full log messages in Warning Level.
Board
ESP32-Wrover
Device Description
Hardware Configuration
Version
v2.0.14
IDE Name
PlatformIO
Operating System
Windows10
Flash frequency
80
PSRAM enabled
yes
Upload speed
115200
Description
I wrote a custom modbus implementation which uses the HardwareSerial.
I'm exchanging modbus messages over uart with 115200 baud.
If I set the debug level to 5, i got an UART1 RX break warning on serial constantly.
The communication is in a tight loop because I want to exchange messages as fast as i can.
I'm expecting a break, thats why I know that I got a packet. It is not a problem at all.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: