-->
Page 1 of 1

AT+CIPSEND very slow to complete!

PostPosted: Wed Mar 04, 2015 1:50 am
by doughboy
How come it takes a long time (220ms to be precise) to complete each AT+CIPSEND?

The actual sending of command and data is fast, but to wait for the SEND OK confirmation always takes 220ms.
Can I do the next AT+CIPSEND without waiting for the SEND OK?

This is ridiculous.
a 207 byte data takes 11 seconds to send. data is broken down into 52 sends by Print class, and no, it is not a problem with the Print class, but the firmware is clearly doing something to take 220ms before responding with SEND OK

Anyone else experienced this and have a solution?
Thanks

Re: AT+CIPSEND very slow to complete!

PostPosted: Wed Mar 04, 2015 12:58 pm
by doughboy
this apparently is a problem

http://bbs.espressif.com/viewtopic.php?f=7&t=216

they claim it is solved, but looks like for single mode client only.

Re: AT+CIPSEND very slow to complete!

PostPosted: Wed Mar 04, 2015 1:09 pm
by doughboy
it almost seems like the esp8266 firmware was designed and written for interactive use and not for program use. Hence the commands must be human readable, and for interactive use, 220ms lag is not noticeable. It's like the time your finger comes off the enter key. But for a program, this is not feasible. They should have wrote the firmware to use some kind of enum to assign numeric values to commands, so it can be quickly processed via case / switch instead of having to wait for the string to complete and then parse , etc etc.