When I use BW16 UART to receive data from other modules, it often takes several seconds to receive it. Use the logic analyzer to capture UART signals from other modules and make sure they have been sent… It seems that the UART is placed inside the Queue but I don’t know why not got Serial. available() is not fetched.
I guess is ring buffer, I trace source code now
the condition as below
Serial1 → Debug log output (LOG_UART)
baudrate: 115200
Serial → UART communications interface (LP_UART)
baudrate: 9600
void loop()
{
…
parseData();
…
websocket.loop();
}
void parseData() {
while ( Serial.available() > 0) {
char ch = Serial.read();
…
}
}