problems with UART_FRAME_ERR event
Posted: Tue Jun 27, 2017 12:14 pm
Hi!
I am testing the UART of the ESP32 with this configuration: 9600bps, 8bit, No parity, 1 stop bit and no flow control. I have used the uart_events_example as a reference.
Everything starts ok but after some minutes I start receiving the event UART_FRAME_ERR from the uart.
My doubts are:
What is the reason to receive this frame error events?
What should I do once received the frame error event?
If I reset and run the module It starts ok but if I disconnect the UART cable and reconnect it later the frame error remains triggering and there is no correct reception.
For the reception I am using a polling of uart_get_buffered_data_len function and once there is something in the buffer I read it with uart_read_bytes function.
Thanks in advance for your help.
I am testing the UART of the ESP32 with this configuration: 9600bps, 8bit, No parity, 1 stop bit and no flow control. I have used the uart_events_example as a reference.
Everything starts ok but after some minutes I start receiving the event UART_FRAME_ERR from the uart.
My doubts are:
What is the reason to receive this frame error events?
What should I do once received the frame error event?
If I reset and run the module It starts ok but if I disconnect the UART cable and reconnect it later the frame error remains triggering and there is no correct reception.
For the reception I am using a polling of uart_get_buffered_data_len function and once there is something in the buffer I read it with uart_read_bytes function.
Thanks in advance for your help.