SDK0.9.5 + AT 0.21 bug, when using server with multiple conn
SDK0.9.5 + AT 0.21 bug, when using server with multiple conn
Postby rgregor » Tue Feb 10, 2015 6:17 am
Hello,
I have loaded the new AT bin to my application. And it seems, that what was working before with the AT v. 20 doesn't work now. Can you help? In fact, I have TCP server mode and I am receiving HTTP requests. Seems, that first connection is OK, but when I close the first TCP, I am not able to use the module at all and just receiving BUSY. Please note, that this code fully worked without any single change for all the previous AT releases. Here are the AT commands flow:
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user1
rlNÿ
ready
AT+GMR
AT version:0.21.0.0
SDK version:0.9.5
OK
AT+CWJAP?
No AP
OK
AT+CWJAP?
No AP
OK
AT+CWJAP?
No AP
AT+CWMODE=3
OK
AT+CIPMODE=0
OK
AT+CIPMUX=1
OK
AT+CIPSERVER=1,80
OK
AT+CIPSTO=2
OK
0,CONNECT
+IPD,0,248:GET / HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: cs-CZ
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 192.168.4.1
Connection: Keep-Alive
AT+CIPSEND=0,920
OK
> HTTP/1.0 200 OK
Content-Type: text/html
Connection: close
<html><head><style>body{background-color:#2F4F4F;}p{background-color:orange;font-family:verdana;font-size:120%;}small{color:white;}table{background-color:orange;}</style></head><body><p><a href='/'>Wifi config</a> | <a href='ca'>Device config</a> | <a href='cb'>Sketch upload</a> | <a href='t'>Status</a> | <a href='s'>Control</a></p><FORM action='cc' method='GET'><table><tr><th colspan='2'>WIFI config</th></tr><tr><td>Wifi SSID:</td><td><input name='cs' type='text' maxSize='32' value=''/></td></tr><tr><td>Wifi password:</td><td><input name='cp' type='text' maxSize='64' value=''/></td></tr><tr><td>Static IP addr:</td><td><input name='ci' type='text' maxSize='15' value=''/></td></tr><tr><td colspan='2'><input type='submit' value='Configure'/></td></tr></table></form><small>Version: 1.0.0</small></body></html>
SEND OK
AT+CIPCLOSE=0
0,CLOSED
OK
<---------------------- Any AT command is now responded with busy..... -------------------------------->
0,CONNECT
+IPD,0,325:GET /cc?cs=Bob&cp=LukiKukiBuki123456&ci=192.168.1.30 HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://192.168.4.1/
Accept-Language: cs-CZ
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 192.168.4.1
Connection: Keep-Alive
AT+CIPSEND=0,638
busy p...
0,CLOSED
Will force to restart!!!
OK
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user1
I have loaded the new AT bin to my application. And it seems, that what was working before with the AT v. 20 doesn't work now. Can you help? In fact, I have TCP server mode and I am receiving HTTP requests. Seems, that first connection is OK, but when I close the first TCP, I am not able to use the module at all and just receiving BUSY. Please note, that this code fully worked without any single change for all the previous AT releases. Here are the AT commands flow:
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user1
rlNÿ
ready
AT+GMR
AT version:0.21.0.0
SDK version:0.9.5
OK
AT+CWJAP?
No AP
OK
AT+CWJAP?
No AP
OK
AT+CWJAP?
No AP
AT+CWMODE=3
OK
AT+CIPMODE=0
OK
AT+CIPMUX=1
OK
AT+CIPSERVER=1,80
OK
AT+CIPSTO=2
OK
0,CONNECT
+IPD,0,248:GET / HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: cs-CZ
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 192.168.4.1
Connection: Keep-Alive
AT+CIPSEND=0,920
OK
> HTTP/1.0 200 OK
Content-Type: text/html
Connection: close
<html><head><style>body{background-color:#2F4F4F;}p{background-color:orange;font-family:verdana;font-size:120%;}small{color:white;}table{background-color:orange;}</style></head><body><p><a href='/'>Wifi config</a> | <a href='ca'>Device config</a> | <a href='cb'>Sketch upload</a> | <a href='t'>Status</a> | <a href='s'>Control</a></p><FORM action='cc' method='GET'><table><tr><th colspan='2'>WIFI config</th></tr><tr><td>Wifi SSID:</td><td><input name='cs' type='text' maxSize='32' value=''/></td></tr><tr><td>Wifi password:</td><td><input name='cp' type='text' maxSize='64' value=''/></td></tr><tr><td>Static IP addr:</td><td><input name='ci' type='text' maxSize='15' value=''/></td></tr><tr><td colspan='2'><input type='submit' value='Configure'/></td></tr></table></form><small>Version: 1.0.0</small></body></html>
SEND OK
AT+CIPCLOSE=0
0,CLOSED
OK
<---------------------- Any AT command is now responded with busy..... -------------------------------->
0,CONNECT
+IPD,0,325:GET /cc?cs=Bob&cp=LukiKukiBuki123456&ci=192.168.1.30 HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://192.168.4.1/
Accept-Language: cs-CZ
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 192.168.4.1
Connection: Keep-Alive
AT+CIPSEND=0,638
busy p...
0,CLOSED
Will force to restart!!!
OK
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user1
Re: SDK0.9.5 + AT 0.21 bug, when using server with multiple
Postby phil31 » Tue Feb 10, 2015 6:22 am
hi, i notice the same problem here !
after the first reply to a GET request, the ESP8266 seem "halted" .. the reply is always "busy p..."
with the previous AT firmware (0.20) it was working "better" (unstable with unsolicited message sometime, but not hanged !)
i'm really disappointed with this ...
plane to change my mind and use another chip until a working & stable AT firmware is provided !
regards
after the first reply to a GET request, the ESP8266 seem "halted" .. the reply is always "busy p..."
with the previous AT firmware (0.20) it was working "better" (unstable with unsolicited message sometime, but not hanged !)
i'm really disappointed with this ...
plane to change my mind and use another chip until a working & stable AT firmware is provided !
regards
Re: SDK0.9.5 + AT 0.21 bug, when using server with multiple
Postby ESP_Faye » Tue Feb 10, 2015 3:32 pm
Hi,
Sorry for the inconvenience..
Please try the AT firmware here http://bbs.espressif.com/viewtopic.php?f=13&t=163#p632
And feel free to let us know if you have any question~
Sorry for the inconvenience..
Please try the AT firmware here http://bbs.espressif.com/viewtopic.php?f=13&t=163#p632
And feel free to let us know if you have any question~
Re: SDK0.9.5 + AT 0.21 bug, when using server with multiple
Postby rgregor » Tue Feb 10, 2015 6:31 pm
Hello, great, it seems that this is now working great! Even now the, when the static IP address is saved in the flash, the woke up and connect from power down is very fast. I am only little bit sad, that the AT firmware is not open source any more. I understand probably your point, that then you will have troubles to support customers, who will not have your original fw, however there cannot be a simple AT command to do e.g. the checksum of the user flash to know, if original fw is there or not?
Are there any plans to e.g. support the webserver in the AT fw? Or at least to e.g. read / write the module flash memory to be able to store there e.g. the webpages?
Are there any plans to e.g. support the webserver in the AT fw? Or at least to e.g. read / write the module flash memory to be able to store there e.g. the webpages?
Who is online
Users browsing this forum: No registered users and 2 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.