Re: How to send several data packets using AT+CIPSEND or AT+CIPSENDBUF?
Posted: Wed Jul 27, 2016 2:31 pm
pratik wrote:Sorry, not able to reproduce the situation with v.0.60 either.
I monitor UART traffic from ESP8266 using Arduino serial monitor. ESP8266 is set to echo commands by ATE1. Here is a typical log:
Recv 34 bytes
at this point microcontoller exits by time-out
At every step of data exchange with ESP8266 my microcontroller prints a debug message to USB. PC runs a test program, it decodes debug messages and adds time stamps to them. Combining those debug messages, time stamps with UART traffic above, overall picture looks as follows:
15:45:06 +IPD,0,88:<...> - microcontroller received a binary TCP message (it is a command) from PC, connection 0, 88 bytes
15:45:10 AT+CIPSENDBUF=0,34 - microcontroller prepared first reply to PC, 34 bytes, and starts CIPSENDBUF command
15:45:10 > - microcontroller detects '>' symbol and start transmitting 34 bytes of binary data to ESP8266
15:45:10 - microcontroller finished transmitting 34 bytes of data to ESP8266, then it waits 10 ms before sending next command
15:45:10 AT+CIPSENDBUF=0,38 microcontroller prepared second reply to PC, 38 bytes, and starts CIPSENDBUF command
15:45:20 - microcontroller reports time-out, there is no symbol '>' for the last 10 sec
What I am doing wrong?
Can you describe your set-up? Can I reproduce your set-up here? What program do you use to communicate to the UART of ESP8266? Is it a PC program or a microcontroller?