how to abort a CIPSENDBUF

doughboy
Posts: 63
Joined: Thu Mar 05, 2015 1:54 am

how to abort a CIPSENDBUF

Postby doughboy » Sun Sep 13, 2015 10:57 am

If say I send a CIPSENDBUF=0,2048
then I decide I don't want to send after all. How do I abort the CIPSENDBUF command?
Is there a character sequence that will "escape" from "data" mode into "command" mode?
There seems to be nothing else I can do until I send 2048 characters,

flyfish
Posts: 18
Joined: Mon Aug 10, 2015 10:22 am

Re: how to abort a CIPSENDBUF

Postby flyfish » Mon Sep 28, 2015 6:24 pm

Hi,
You can try string +++ to give up AT+CIPSENDBUF.

doughboy
Posts: 63
Joined: Thu Mar 05, 2015 1:54 am

Re: how to abort a CIPSENDBUF

Postby doughboy » Mon Sep 28, 2015 11:54 pm

Nothing works.
As it is now, the only way to get back to command mode is to do a hard reset, or to keep writing dummy data until esp8266 gets what it thinks is the amount of bytes it needs to receive. Not a good design by anyone's standards, so definitely room for product improvement.

flyfish
Posts: 18
Joined: Mon Aug 10, 2015 10:22 am

Re: how to abort a CIPSENDBUF

Postby flyfish » Tue Sep 29, 2015 3:16 pm

Hi,
Which version of your AT and SDK.
following is my log,"+++" works well.String "+++" is without "\r\n".

AT+CIPSENDBUF=10

2,1

OK
>
Recv 10 bytes

2,SEND OK
AT+CIPSENDBUF=10

3,2

OK
> //send string 1234 ,then +++.
SEND Canceled
AT+GMR

AT version:0.50.0.0(Sep 18 2015 20:55:38)
SDK version:1.4.0
compile time:Sep 18 2015 21:32:07
OK

doughboy
Posts: 63
Joined: Thu Mar 05, 2015 1:54 am

Re: how to abort a CIPSENDBUF

Postby doughboy » Thu Oct 01, 2015 9:11 am

you are right, I just tested this just now on 1.4 and it does abort.

I also just verified and confirmed this only works in 1.4. It does not work in 1.3.

For a long time since I posted this thread and emailed espressif about this and asked for an enhancement for ability to switch back to command mode, nobody bothered answering.

Then now conveniently you replied. I'm almost certain you work for espressif. :)

There was no mention of this new feature either in release notes, nor in updated documentation for 1.4. Hence you must work for espressif to know this.

There is another issue I am dealing with by email, You can probably tell what it is if you are working for espressif.

flyfish
Posts: 18
Joined: Mon Aug 10, 2015 10:22 am

Re: how to abort a CIPSENDBUF

Postby flyfish » Thu Oct 08, 2015 11:45 am

Hi,
It also works well in sdk1.3.
--------------------------------------------------------------------------
AT+GMR

AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
compile time:Aug 8 2015 17:35:24
OK
AT+CIPSTART="TCP","192.168.0.101",1188

CONNECT

OK
AT+CIPSENDBUF=10

1,0

OK
>
Recv 10 bytes

1,SEND OK
AT+CIPSENDBUF=10

2,1

OK
> //send string 1234 ,then +++.
SEND Canceled
AT+GMR

AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
compile time:Aug 8 2015 17:35:24
OK

Who is online

Users browsing this forum: No registered users and 3 guests