Closed hitecSmartHome closed 3 months ago
possibly related to https://github.com/espressif/arduino-esp32/issues/9500?
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 HardwareSerial.cpp
code from the Arduino Core folder.
Just comment out the log_w("UART%d RX break.", uart->_uart_nr);
line
Another way to get rid of this messages would be to set the log level to Error only. Not sure if any of those possible workarounds would fit your need.
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?
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. Some other protocols use a data structure with specific field values to communicate end of transmission, ACK, NACK, and so on.
Okay, i just commented the line out. Thank you very much for the help!
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