UART I/O issue
Posted: Tue Sep 18, 2018 1:56 pm
Hi all -
I'm trying to get the ESP32 to read input from a UART. I began with the uart_events example from the IDF.
When I send a message to the ESP32, it reads about 65 bytes (the exact number varies a bit) and the read returns. I then get subsequent read events of 5 to 9 bytes each, but the data is not what I sent (appears to be garbage). I'm also getting a "uart rx break" event.
The docs are a bit sparse in this area...what is a UART break? Does this seem like a configuration issue? I find it hard to believe the ESP32 UART can't swallow a message of a few hundred bytes without incident, so I'm inclined to think it's something I'm doing wrong.
Thanks...
I'm trying to get the ESP32 to read input from a UART. I began with the uart_events example from the IDF.
When I send a message to the ESP32, it reads about 65 bytes (the exact number varies a bit) and the read returns. I then get subsequent read events of 5 to 9 bytes each, but the data is not what I sent (appears to be garbage). I'm also getting a "uart rx break" event.
The docs are a bit sparse in this area...what is a UART break? Does this seem like a configuration issue? I find it hard to believe the ESP32 UART can't swallow a message of a few hundred bytes without incident, so I'm inclined to think it's something I'm doing wrong.
Thanks...