ESP32 - UART input

Posts: 1
Joined: Wed Jul 31, 2019 1:04 pm

ESP32 - UART input

Postby Val123 » Wed Jul 31, 2019 1:09 pm

When testing the ESP32 UART, I found that the reception of long packets occurs in parts of 120 bytes maximum. This happens with different methods of reception, which I tried (event or interrupt). This occurs when the example uart_events. This situation is undesirable when implementing MODBUS, where the packet length is a maximum of 256 bytes. and there are strict limits on the time between the bytes and the frames of the Protocol.

Posts: 3727
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 - UART input

Postby ESP_Sprite » Thu Aug 01, 2019 2:49 am

I'm pretty sure this is because of the FIFO size in the UART of the ESP32. Quick hack is to make that larger, but really, you should do proper packet assembly yourself.

Posts: 2951
Joined: Tue Dec 01, 2015 7:35 am

Re: ESP32 - UART input

Postby WiFive » Thu Aug 01, 2019 2:51 am

Who is online

Users browsing this forum: Baidu [Spider] and 35 guests