Hi Expressif Team,
We are communicating with server through modem connected to esp8266 over UART0. When our server sends a message [256] bytes, We get UART Rx overflow and message RX OVF!! is printed on console that is coming from uart.c
We have increased following defines in uart.h as the maximum size packet that our server can send is 768 bytes.
#define UART_TX_BUFFER_SIZE 768 //Ring buffer length of tx buffer
#define UART_RX_BUFFER_SIZE 768 //Ring buffer length of rx buffer
However this does not help to stop RX OVF!!
How can we increase the Receive buffer to avoid RX OVF!! error?
esp is communicated with modem on baud rate 115200
Does UART0 support Software Flow Control (XON/XOFF)?
Your help is appreciated.
UART0 Receive Overflow [RX OVF!!]
Re: UART0 Receive Overflow [RX OVF!!]
Postby gailu » Sat Oct 14, 2017 3:47 am
We checked uart.c and found 100 bytes threshold set with following code
WRITE_PERI_REG(UART_CONF1(uart_no),
((100 & UART_RXFIFO_FULL_THRHD) << UART_RXFIFO_FULL_THRHD_S) |
Can you please let me know what is the maximum threshold we can set?
What is the maximum size of UART0 RXFIFO?
WRITE_PERI_REG(UART_CONF1(uart_no),
((100 & UART_RXFIFO_FULL_THRHD) << UART_RXFIFO_FULL_THRHD_S) |
Can you please let me know what is the maximum threshold we can set?
What is the maximum size of UART0 RXFIFO?
Re: UART0 Receive Overflow [RX OVF!!]
Postby blubb » Sat Oct 14, 2017 8:34 pm
I have no clue, but the first thing I'd try is to raise the CPU frequency to 160 MHz. Maybe the ESP is simply to slow to handle all data in time, so the buffer fills up faster than it can be processed.
The second thing I'd try is to lower the baud rate (in the sender and receiver of course).
The second thing I'd try is to lower the baud rate (in the sender and receiver of course).
Who is online
Users browsing this forum: No registered users and 120 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.