Problem with AT+CIPSTART don't connect, say: ERROR CLOSE
Problem with AT+CIPSTART don't connect, say: ERROR CLOSE
Postby CharlyC64 » Tue Jan 17, 2017 3:03 pm
Hi everyone!
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
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
Re: Problem with AT+CIPSTART don't connect, say: ERROR CLOSE
Postby ESP_puff » Wed Jan 18, 2017 11:13 am
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
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
Espressif
Puff
FAE
Puff
FAE
Re: Problem with AT+CIPSTART don't connect, say: ERROR CLOSE
Postby CharlyC64 » Wed Jan 18, 2017 7:59 pm
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?
Re: Problem with AT+CIPSTART don't connect, say: ERROR CLOSE
Postby ESP_puff » Thu Jan 19, 2017 10:05 am
Hi CharlyC64,
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
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
Espressif
Puff
FAE
Puff
FAE
Who is online
Users browsing this forum: No registered users and 60 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.