x, close problem

pa.gregor
Posts: 3
Joined: Sun Feb 08, 2015 3:05 am

x, close problem

Postby pa.gregor » Tue Feb 10, 2015 5:26 am

hello,

thanks for help.

Today when i tested my aplication, i found strange problem with automaticly close connection on port without any reason.

Firmware is the last: AT-0.22.b1.0


configuration at startup is:
AT+CWMODE=3
AT+CWSAP="xxx123456","12345678",2,4
AT+CWJAP="LANxxx","12345678"
AT+CIPMUX=1
AT+CIPSTA="192.168.1.xxx"
AT+CIPSERVER=1,80
AT+CIPSTO=60

in web browser Google chrome i open page: http://192.168.1.xxx/o1 and after then quickly refresh page (delay is cca 200 ms :mrgreen: )

i have connected TX PIN on Esp8266 to usb serila adapter RX PIN and record data.

log from serial port:
see: 21:36:59.79) 0,CLOSED<CR><LF>


(

Code: Select all

21:36:59.20) 0,CONNECT<CR><LF> (11)
(21:36:59.25) <CR><LF> (2)
(21:36:59.25) +IPD,0,383:GET /o1 HTTP/1.1<CR><LF> (29)
(21:36:59.25) Host: 192.168.1.105<CR><LF> (21)
(21:36:59.25) Connection: keep-alive<CR><LF> (24)
(21:36:59.25) Cache-Control: max-age=0<CR><LF> (26)
(21:36:59.25) Accept: text/html,application/xhtml+xml,application/
(21:36:59.25) User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit
(21:36:59.25) Accept-Encoding: gzip, deflate, sdch<CR><LF> (38)
(21:36:59.25) Accept-Language: sl-SI,sl;q=0.8,en-GB;q=0.6,en;q=0.4
(21:36:59.25) <CR><LF> (2)
(21:36:59.34) AT+CIPSEND=0,539<CR><CR><LF> (19)
(21:36:59.34) <CR><LF> (2)
(21:36:59.34) OK<CR><LF> (4)
(21:36:59.34) > 1,CONNECT<CR><LF> (13)
(21:36:59.42) <CR><LF> (2)
(21:36:59.42) +IPD,1,383:GET /o1 HTTP/1.1<CR><LF> (29)
(21:36:59.42) Host: 192.168.1.105<CR><LF> (21)
(21:36:59.42) Connection: keep-alive<CR><LF> (24)
(21:36:59.42) Cache-Control: max-age=0<CR><LF> (26)
(21:36:59.42) Accept: text/html,application/xhtml+xml,app
(21:36:59.42) User-Agent: Mozilla/5.0 (Windows NT 5.1) Ap)
(21:36:59.42) Accept-Encoding: gzip, deflate, sdch<CR><LF
(21:36:59.42) Accept-Language: sl-SI,sl;q=0.8,en-GB;q=0.6
(21:36:59.42) <CR><LF> (2)
(21:36:59.42) HTTP/1.1 200 OKContent-type: text/html<!DO)
(21:36:59.56) SEND OK<CR><LF> (9)
(21:36:59.65) AT+CIPSEND=0,700<CR><CR><LF> (19)
(21:36:59.65) <CR><LF> (2)
(21:36:59.65) OK<CR><LF> (4)
(21:36:59.65) > var t="t";<CR>
(21:36:59.79) SEND OK<CR><LF> (9)
([b]21:36:59.79) 0,CLOSED<CR><LF> (10)[/b]     // why close connection at this point ( timeout is 60s !!)
(21:36:59.90) AT+CIPSEND=0,796<CR><CR><LF> (19)
(21:36:59.90) link is not valid<CR><LF> (19)
(21:36:59.90) <CR><LF> (2)
(21:36:59.90) ERROR<CR><LF> (7)
(21:37:00.00) <td bgcolor=yellow>ALL</td></tr><tr>";<CR><CR><LF> (41)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) for(i=0;i<8;i++)<CR><CR><LF> (19)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) {if(PINC&(1<<i))<CR><CR><LF> (19)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) {str+="<td ID=b>ON</td>";}<CR><CR><LF> (29)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) else<CR><CR><LF> (7)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) {str+="<td ID=c>OFF</td>";}}<CR><CR><LF> (31)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) str+="<td ID=c>..</td></tr><tr>";<CR><CR><LF> (36)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) for(i=0;i<8;i++)<CR><CR><LF> (19)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) {if(PORTD&(1<<i))<CR><CR><LF> (20)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) {str+="<td style='
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) else<CR><CR><LF> (7)
(21:37:00.00) ERROR<CR><LF> (7)
(21:37:00.00) {str+="<td style='background
(21:37:00.04) ERROR<CR><LF> (7)
(21:37:00.04) str+="<td id=b o
(21:37:00.04) ERROR<CR><LF> (7)
(21:37:00.04) for(i=0;i<8;i++)<CR><CR><LF> (19)
(21:37:00.04) ERROR<CR><LF> (7)
(21:37:00.04) {str+="<td id=b><a id=a href=/c"+X
(21:37:00.04) ERROR<CR><LF> (7)
(21:37:00.04) str+="<td id


how resolve this problem.
tnx
Greg

Who is online

Users browsing this forum: No registered users and 6 guests