AT+CIPSTART sometimes work but mostly error and AT+RST didnt make the difference

ardiramelan
Posts: 2
Joined: Thu Jun 16, 2016 12:30 am

AT+CIPSTART sometimes work but mostly error and AT+RST didnt make the difference

Postby ardiramelan » Thu Jun 16, 2016 12:44 am

hi

here is my code

Code: Select all

AT


OK
AT+RST


OK
WIFI DISCONNECT

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

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : DIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

òn't use rtc mem data
rlŽƒrlÌÿ
Ai-Thinker Technology Co.,Ltd.

ready
WIFI CONNECTED
WIFI GOT IP
AT+CIPSTATUS

STATUS:2

OK
AT+CIPSTART="TCP","iot.espressif.cn",8000


ERROR

AT+CIFSR

+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"1a:fe:34:d6:59:01"
+CIFSR:STAIP,"192.168.43.148"
+CIFSR:STAMAC,"18:fe:34:d6:59:01"


my main problem is :
1. AT+RST, when i tried to reset the module, my wifi is still connected and got ip address from my previous AT+CWJAP instruction. why ? i thought the module will reset and there is no AT command left in there.
2. AT+CIPSTART, always error but sometimes work(only once).

could you please help me ? im really struggling here. thank you

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: AT+CIPSTART sometimes work but mostly error and AT+RST didnt make the difference

Postby ESP_Faye » Thu Jun 16, 2016 11:59 am

Hi,

Is there any invisible characters after your command "AT+CIPSTART="TCP","iot.espressif.cn",8000" ?

Any unexpected characters (no matter visible or invisible) will make it to be a wrong command, just as "AT+CIPSTART="TCP","iot.espressif.cn",8000sdfasdfqetwe", and get response "ERROR".

ardiramelan
Posts: 2
Joined: Thu Jun 16, 2016 12:30 am

Re: AT+CIPSTART sometimes work but mostly error and AT+RST didnt make the difference

Postby ardiramelan » Thu Jun 16, 2016 12:10 pm

Espressif_Faye wrote:Hi,

Is there any invisible characters after your command "AT+CIPSTART="TCP","iot.espressif.cn",8000" ?

Any unexpected characters (no matter visible or invisible) will make it to be a wrong command, just as "AT+CIPSTART="TCP","iot.espressif.cn",8000sdfasdfqetwe", and get response "ERROR".


Hi faye thank you for reply.

yes there was a mistake i accidentally put some invisible character(blank space). but after that i get another error response, DNS fail. i tried with other router but it doesn't solve the proble. any suggestions ? thanks

Code: Select all

ready
WIFI CONNECTED
WIFI GOT IP
AT+CIFSR

+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"1a:fe:34:d6:59:01"
+CIFSR:STAIP,"192.168.43.148"
+CIFSR:STAMAC,"18:fe:34:d6:59:01"

OK
AT+CIPSTART="TCP","iot.espressif.cn",8000

DNS Fail

ERROR
AT+GMR

AT version:0.40.0.0(Aug  8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
OK

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: AT+CIPSTART sometimes work but mostly error and AT+RST didnt make the difference

Postby ESP_Faye » Thu Jun 16, 2016 6:14 pm

Hi,

Could your router access to the internet ?

If your problem is still unsolved, please have a try with our latest AT firmware http://bbs.espressif.com/viewtopic.php?f=46&t=2199.

AT+GMR

AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
OK

Please notice that the AT firmware you are using now is not provided by our company, Espressif Systems, so if you change to use our AT firmware, there may be some differences.

Who is online

Users browsing this forum: No registered users and 2 guests