AT+CWJAP FAIL

flemoal
Posts: 4
Joined: Fri Jun 19, 2015 10:20 pm

AT+CWJAP FAIL

Postby flemoal » Fri Jun 19, 2015 10:31 pm

Hi,

For some reason the connection to our router drops. Any idea why?

AT+CWJAP="belkin.f92","password"
WIFI CONNECTED
WIFI DISCONNECTED
+CWJAP:1

FAIL


Thanks for you help,
Fred

AT version: 0.25.0.0
SDK version: 1.1.1

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

Re: AT+CWJAP FAIL

Postby ESP_Faye » Tue Jun 23, 2015 2:29 pm

Hi,

Can ESP8266 connect to other routers ,did it happen only on this special router ?

Could you offer more information about your router ?

Are you using our official AT http://bbs.espressif.com/viewtopic.php?f=5&t=554 and downloading bin files according to "readme.txt" in \esp_iot_sdk_v1.1.1\bin\at ?

Please using our official flash download tool http://bbs.espressif.com/viewtopic.php?f=5&t=433 and provide the capture picture while downloading.

flemoal
Posts: 4
Joined: Fri Jun 19, 2015 10:20 pm

Re: AT+CWJAP FAIL

Postby flemoal » Thu Jun 25, 2015 4:51 pm

Hi,
I attached a few print screens of the download sequence and a text file of the UART messages. I hope this helps find the issue.
My module is ESP-01.
Fred


AT

OK
AT+GMR
AT version:0.25.0.0(Jun 5 2015 16:27:16)
SDK version:1.1.1
compile time:Jun 5 2015 21:03:10

OK
AT+CWMODE=3

OK
AT+RST

OK

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

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 : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

ŒÕ(¤SQS(RQ¨)HT¨)SHHHC…äÿrŽÃ9lÀÄžßä
‚Œbpãbpćònîß1‚nâÃÜ€
Œ#’ânÀˆ’
Œ
‚lŽŒ€Œ€lŽä
Žl``ÄÜ’ÜÄb
ŽlŽÜ
bÀ¾€ÄÜ’ÜÄb
àŒbç$`ÄnçÄÜ’ÜÄrß#ònßbŒžßÀl`ü
ready
AT

OK
AT+CWLAP
+CWLAP:(4,"IWC Staff",-90,"00:1d:aa:2e:95:d0",1)
+CWLAP:(0,"IWC Guest",-93,"00:1d:aa:2e:95:d1",1)
+CWLAP:(4,"StobbsIP",-89,"dc:9f:db:1c:9c:84",1)
+CWLAP:(4,"Meeting Room",-54,"f8:d1:11:50:3d:60",4)
+CWLAP:(4,"belkin.f92",-69,"08:86:3b:e2:5f:92",6)
+CWLAP:(4,"IWC Staff",-82,"00:1d:aa:2f:a3:28",6)
+CWLAP:(0,"IWC Guest",-79,"00:1d:aa:2f:a3:29",6)
+CWLAP:(3,"MSNET",-82,"0a:27:22:fb:ba:63",6)
+CWLAP:(0,"MSGUEST",-80,"06:27:22:fb:ba:63",6)
+CWLAP:(2,"Miller Sands",-87,"00:1b:2f:72:0a:f5",7)
+CWLAP:(4,"StobbsGuest",-92,"de:9f:db:1c:9c:84",1)
+CWLAP:(4,"IWC Staff",-88,"00:1d:aa:2b:dd:20",11)
+CWLAP:(3,"DIRECT-QAM262x 282x Series",-86,"02:15:99:d9:be:d3",11)
+CWLAP:(0,"IWC Guest",-82,"00:1d:aa:2b:dd:21",11)
+CWLAP:(4,"TheOffice",-85,"00:1d:70:f3:d8:e0",1)

OK
AT+CIPMUX=1

OK
AT+CWJAP="belkin.f92","password"
WIFI CONNECTED
WIFI DISCONNECT
+CWJAP:1

FAIL
AT+CIFSR
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"1a:fe:34:a2:34:43"
+CIFSR:STAIP,"0.0.0.0"
+CIFSR:STAMAC,"18:fe:34:a2:34:43"

OK
Attachments
download 6.jpg
download 6.jpg (243.22 KiB) Viewed 38061 times
download 5.jpg
download 5.jpg (135.64 KiB) Viewed 38061 times
download 4.jpg
download 4.jpg (261.19 KiB) Viewed 38061 times
download 3.jpg
download 3.jpg (157.97 KiB) Viewed 38061 times

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

Re: AT+CWJAP FAIL

Postby ESP_Faye » Fri Jun 26, 2015 11:50 am

Hi,

It seems that your configurations are all right.

Please have a try with our latest AT firmware http://bbs.espressif.com/viewtopic.php?f=5&t=648, it may solve your problem.

If your problem is still unsloved, please try to connect to another router, and provide more information about this special router "belkin.f92"

So sorry for the inconvenience.. :oops:

johnnyred
Posts: 1
Joined: Thu Jul 09, 2015 9:41 pm

Re: AT+CWJAP FAIL

Postby johnnyred » Fri Jul 10, 2015 4:04 pm

I've been seeing this issue as well with AT v0.30:

AT+GMR
AT version:0.30.0.0(Jul 3 2015 19:35:49)
SDK version:1.2.0
compile time:Jul 3 2015 20:52:32

OK

I reverted to the patched version of v0.25 you linked above and it seems to have gone away.

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

Re: AT+CWJAP FAIL

Postby ESP_Faye » Fri Jul 10, 2015 5:07 pm

Hi,

You could choose “SpiAutoSet” on “ESP FLASH DOWNLOAD TOOL V1.2”, it will show you the actually size of your flash which is 512KB.

AT bin: boot.bin + user1.bin, support FOTA (firmware upgrade through WiFi), need actually 1024KB flash.

AT bin- for old version module which flash size is 512KB
eagle.flash.bin downloads to flash 0x00000
eagle.irom0text.bin downloads to flash 0x40000
can not FOTA upgrade,please don‘t call “AT+CIPUPDATE”

Please download eagle.flash.bin + eagle.irom0text.bin in \esp_iot_sdk_v1.2.0\bin\at and have a try.http://bbs.espressif.com/viewtopic.php?f=5&t=680

arduinominilabs
Posts: 1
Joined: Thu Jun 15, 2017 10:50 am

Re: AT+CWJAP FAIL

Postby arduinominilabs » Thu Jun 15, 2017 10:57 am

Hi Buddys, just try with "AT+CWMODE=2" or "AT+CWMODE=3" and then reset de modem. Sometimes the esp can't obtain de IP. It happend me many times.
Regards

Akhil
Posts: 1
Joined: Tue Jan 30, 2018 2:44 pm

Re: AT+CWJAP FAIL

Postby Akhil » Tue Jan 30, 2018 2:48 pm

You might have started your ESP in the following way:
1. Switched CH_PD first
2. Switched 3.3v

WHat you have to do to remove the problem:
1. Take your USB Port from your Machine and reconnect it.
It will work like new.

It worked for me :)

Who is online

Users browsing this forum: No registered users and 145 guests