AT+CIPSENDEX with \0 does not work
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
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
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
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
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
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
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
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
Who is online
Users browsing this forum: No registered users and 188 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.