Receive Buffer Clear TimeOut

Jan Kijonka
Posts: 28
Joined: Fri Jun 09, 2017 10:17 pm

Receive Buffer Clear TimeOut

Postby Jan Kijonka » Fri Jul 07, 2017 9:16 pm

Hi,

I commonly read a presumed response of an AT command (e.g. "AT+CIPMUX=1\r\nOK\r\n"). In some cases, there stay some old characters in the receive buffe, so I read e.g. "ERROR\r\nAT+CIPMUX=1\r\nOK\r\n"). Is it possible to flush the receive buffer before the next AT command send ? When I wait for a while (e.g 2 seconds), the recive buffer is then empty. What is the TimeOut of the receive buffer auto flush ? Is this time guaranted and same at all cases ?

Thank you,
Jan

pratik

Re: Receive Buffer Clear TimeOut

Postby pratik » Mon Jul 24, 2017 6:30 pm

You should not be getting this delayed data.
Are you using hardware flow control? Is that causing data to stay in buffer accidentally, maybe?

Jan Kijonka
Posts: 28
Joined: Fri Jun 09, 2017 10:17 pm

Re: Receive Buffer Clear TimeOut

Postby Jan Kijonka » Thu Jul 27, 2017 9:14 pm

Hello,
I dont use hardware flow control. I saw connections only with Tx Rx. Do you have some recommended hardware design manual for better communication between MCU and ESP12-E module?

pratik

Re: Receive Buffer Clear TimeOut

Postby pratik » Tue Aug 08, 2017 3:45 pm

The ESP-12 will manage all data in internal queues, so you cannot really overwhelm the UART unless you are REALLY forcing data on it.
Are you using the latest SDK?

Who is online

Users browsing this forum: No registered users and 3 guests