ESP8266 Developer Zone The Official ESP8266 Forum 2017-01-19T10:05:27+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=3268 2017-01-19T10:05:27+08:00 2017-01-19T10:05:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3268&p=11135#p11135 <![CDATA[Re: Problem with AT+CIPSTART don't connect, say: ERROR CLOSE]]> This is the log information that you get

AT+CIFSR
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"06:00:00:00:06:00"
+CIFSR:STAIP,"8.0.0.0"
+CIFSR:STAMAC,"0c:02:0d:f0:0c:02"

OK

From it, STAIP is 8.0.0.0 that is not correct. You should check why that happen.

Thanks

Statistics: Posted by ESP_puff — Thu Jan 19, 2017 10:05 am


]]>
2017-01-18T19:59:52+08:00 2017-01-18T19:59:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3268&p=11131#p11131 <![CDATA[Re: Problem with AT+CIPSTART don't connect, say: ERROR CLOSE]]>
ESP_puff wrote:
Hi CharlyC64,
Please check whether you have started such a TCP server waiting for connection.
TCP client should connect the same AP with TCP server. Station AP that ESP8266 get is 8.0.0.0. That is a quite stranger IP address. So you cannot make TCP connection with 54.108.131.123. If you want to make TCP connection with 54.108.131.123, the station IP should be 54.108.xx.xx

Thanks


Hi ESP_puff!

The TCP server (a public machin on internet) and client (the ESP8266) are both connected to internet.

The last year I use the same firmware, you could find on my github: https://github.com/devtodev/gatewaywifi and worked fine, but now don't works and I don't know why.

Those AT+Commands works for you when you tring to connect a socket TCP on internet?

Statistics: Posted by CharlyC64 — Wed Jan 18, 2017 7:59 pm


]]>
2017-01-18T11:13:27+08:00 2017-01-18T11:13:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3268&p=11124#p11124 <![CDATA[Re: Problem with AT+CIPSTART don't connect, say: ERROR CLOSE]]> Please check whether you have started such a TCP server waiting for connection.
TCP client should connect the same AP with TCP server. Station AP that ESP8266 get is 8.0.0.0. That is a quite stranger IP address. So you cannot make TCP connection with 54.108.131.123. If you want to make TCP connection with 54.108.131.123, the station IP should be 54.108.xx.xx

Thanks

Statistics: Posted by ESP_puff — Wed Jan 18, 2017 11:13 am


]]>
2017-01-17T15:03:03+08:00 2017-01-17T15:03:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3268&p=11121#p11121 <![CDATA[Problem with AT+CIPSTART don't connect, say: ERROR CLOSE]]>
I tried with different firmwares and I got always the same response. I needs help to connect to one socket, please somebody know what is happen?

The socket is open, I tried connect via telnet and all was right but I never can connect with my ESP01

To download the firmware I used:

esptool.py --port /dev/ttyUSB0 write_flash 0x00000 boot_v1.6.bin 0x01000 at/512+512/user1.1024.new.2.bin 0x7e000 blank.bin 0x1fe000 blank.bin

I following this steps to connect to the TCP socket:

AT

OK
AT+RST

OK

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

load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8

2nd boot version : 1.6
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 4Mbit(256KB+256KB)
jump to run user1 @ 1000

����o�{��N|�l�l`��s�p��l��l ��{�$���d ��r�l����$`{$��o����B��c�"c�{�lܜpb��N�2oN��c��N$l�l��$��d���$`�N���bbl$��#���c#$�crlsd
ready
AT+CWMODE=3

OK
AT+CIPMUX=0

OK
AT+CWJAP="SSID","PASSWORD"
WIFI CONNECTED
WIFI GOT IP

OK
AT+CIFSR
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"06:00:00:00:06:00"
+CIFSR:STAIP,"8.0.0.0"
+CIFSR:STAMAC,"0c:02:0d:f0:0c:02"

OK
AT+CIPSTART="TCP","54.108.131.123",3000

ERROR
CLOSED

Statistics: Posted by CharlyC64 — Tue Jan 17, 2017 3:03 pm


]]>