AT+CIPSENDEX with \0 does not work

nullbert
Posts: 11
Joined: Tue Aug 11, 2015 11:01 am

AT+CIPSENDEX with \0 does not work

Postby nullbert » Tue Aug 11, 2015 11:14 am

Hello,

We are having a problem with AT+CIPSENDEX .

We are trying to end the data early using the \0 string as documented in the AT command reference.

Sending \0 has no effect.

In software, we have also sent the null character '\0' and this also does not work.

below an example output in a terminal:

Please advise how we can use the AT+CIPSENDEX in this way. Thank you for your help!

===================================================

AT+RST

OK

ets Jan 8 2013,rst cause:4, boot mode:(3,3)

wdt reset
load 0x40100000, len 1320, room 16
tail 8
chksum 0xb8
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0xd9
load 0x3ffe8308, len 412, room 0
tail 12
chksum 0xb9
csum 0xb9

2nd boot version : 1.3(b3)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 8Mbit
jump t run user1

sl�K
Ai-Thinker Technology Co. Ltd.

ready
AT+GMR
AT version:0.23.0.0(Apr 24 2015 21:11:01)
SDK version:1.0.1
Ai-Thinker Technology Co. Ltd.
Apr 27 2015 13:55:14

OK
AT+CWMODE=2

OK
AT+CIPMUX=1

OK
AT+CWSAP="xxx","xxxxxxxx",5,3

OK
AT+CIPSERVER=1,4444

OK
0,CONNECT
AT+CIPSENDEX=0,100

OK
> ddd123456\0

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

Re: AT+CIPSENDEX with \0 does not work

Postby flyfish » Wed Aug 12, 2015 5:16 pm

Could you try it again using latest AT ?
http://bbs.espressif.com/viewtopic.php?f=46&t=919&p=3092
Following is my log !

AT+GMR

AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
compile time:Aug 8 2015 16:06:29
OK
AT+CWMODE=2


OK
AT+CIPMUX=1


OK
AT+CWSAP="xxx","xxxxxxxx",5,3


OK
AT+CIPSERVER=1,4444


OK
0,CONNECT
AT+CIPSENDEX=0,100


OK
>
Recv 9 bytes

SEND OK

nullbert
Posts: 11
Joined: Tue Aug 11, 2015 11:01 am

Re: AT+CIPSENDEX with \0 does not work

Postby nullbert » Thu Aug 13, 2015 12:03 am

Hi, can anyone from espressif help on this?

thank you very much.

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

Re: AT+CIPSENDEX with \0 does not work

Postby flyfish » Thu Aug 13, 2015 11:47 am

Did you have try AT version:0.40.0.0(Aug 8 2015 14:45:58) ?

nullbert
Posts: 11
Joined: Tue Aug 11, 2015 11:01 am

Re: AT+CIPSENDEX with \0 does not work

Postby nullbert » Thu Aug 13, 2015 1:52 pm

Thank you for the reply.

when sending \0 are you sending the null character ( 0 ) or are you sending the string "\0" ?

We will try the latest SDK.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: AT+CIPSENDEX with \0 does not work

Postby ESP_Faye » Tue Aug 18, 2015 9:43 am

Hi,

Was your problem solved ?

It should be the string " \0".

mjoco

Re: AT+CIPSENDEX with \0 does not work

Postby mjoco » Mon Aug 24, 2015 1:03 am

Hi,

I use this CIPSENDEX command in my HTTP server application. It works well, but the escape sequence is '\' + '0' (0x5C, 0x30), and not the single 0x00 byte. So it works like described in the latest AT inst. set datasheet.
This command is very useful by text-based, dynamic length html contents, however it would be more secure, if the escape character would be the 0x00 byte, since text resources could not include it. Aren't you considering to perform this modification?

P.S.
The escape sequence did not work for me, when I used a serial terminal program, which had a delay about 10-20ms between each character during sending. Using other program or uC it worked well.

Best Regards

nullbert
Posts: 11
Joined: Tue Aug 11, 2015 11:01 am

Re: AT+CIPSENDEX with \0 does not work

Postby nullbert » Mon Aug 24, 2015 12:13 pm

Thank you very much for the replies.

I see two conflicting answers - Espressif official says: use null 0x00

and other reports and documentation say, use the charaters '\' and '0'

Can we clarify which one is correct?

Again thank you for your help!

-Brent

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: AT+CIPSENDEX with \0 does not work

Postby ESP_Faye » Mon Aug 24, 2015 3:37 pm

Hi,

So sorry for the inconvenience.

I was wrong before, it is the characters '\' and '0'.

Who is online

Users browsing this forum: No registered users and 2 guests