ESP8266 Developer Zone The Official ESP8266 Forum 2016-04-28T10:44:39+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=2056 2016-04-28T10:44:39+08:00 2016-04-28T10:44:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6648#p6648 <![CDATA[Re: AT+CWJAP_DEF issue]]>
It is designed like this.

If you need the current parameters of the connected AP, please use command "AT+CWJAP_CUR?"

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Thu Apr 28, 2016 10:44 am


]]>
2016-04-28T00:33:25+08:00 2016-04-28T00:33:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6639#p6639 <![CDATA[Re: AT+CWJAP_DEF issue]]> It seems a little bit weird for me to not show the connected AP's bssid but show a flash stored bssid instead.
What if these two are different?
Let's try to give a fake bssid:

Code:

AT+CWJAP_DEF="Pelican Network","xxxxxxxx","11:22:33:44:55:66"
WIFI CONNECTED
+CWJAP:1

FAIL
WIFI DISCONNECT
AT+CWJAP_DEF="Pelican Network","xxxxxxxx"
WIFI CONNECTED
WIFI GOT IP

OK
AT+CWJAP_DEF?
+CWJAP_DEF:"Pelican Network","11:22:33:44:55:66",1,-76

OK
AT+CWJAP?
+CWJAP:"Pelican Network","44:32:c8:fe:10:b2",1,-75

OK
AT+CWJAP_CUR?
+CWJAP_CUR:"Pelican Network","44:32:c8:fe:10:b2",1,-78

OK

And now it shows the fake bssid instead of the real one.
Storing the bssid makes no sense because it's only necessary to find the right AP if more than one share the same ssid.
When I use the AT+CWJAP_DEF? command I want to see the current parameters of the connected AP.
It's a bug, isn't it?

Statistics: Posted by Pelican — Thu Apr 28, 2016 12:33 am


]]>
2016-04-27T11:20:48+08:00 2016-04-27T11:20:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6626#p6626 <![CDATA[Re: AT+CWJAP_DEF issue]]>
So sorry that I made a mistake.

After consulting our engineer, the MAC address (bssid) of AT+CWJAP_DEF needs to be set by the command AT+CWJAP_DEF=<SSID>,<PASSWORD>,<BSSID>.

AT+CWJAP_DEF=<SSID>,<PASSWORD>,<BSSID> will set the configuration into Flash.
And command AT+CWJAP_DEF? will read the configuration from Flash.

AT+CWJAP_CUR=<SSID>,<PASSWORD> will not set the configuration into Flash.
And the command AT+CWJAP_CUR? will get the bssid of current connected AP.

Statistics: Posted by ESP_Faye — Wed Apr 27, 2016 11:20 am


]]>
2016-04-26T19:52:57+08:00 2016-04-26T19:52:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6621#p6621 <![CDATA[Re: AT+CWJAP_DEF issue]]>

Code:

AT+CWJAP_DEF="Pelican Network","xxxxxxxxx"
WIFI CONNECTED
WIFI GOT IP

OK
AT+CWJAP_DEF?
+CWJAP_DEF:"Pelican Network","ff:ff:ff:ff:ff:ff",1,-71

OK
AT+CWJAP_CUR?
+CWJAP_CUR:"Pelican Network","44:32:c8:fe:10:b2",1,-74

OK
AT+CWJAP?
+CWJAP:"Pelican Network","44:32:c8:fe:10:b2",1,-75

OK
AT+CWQAP

OK
WIFI DISCONNECT
AT+CWJAP_CUR?
No AP

OK
AT+CWJAP_CUR="Pelican Network","xxxxxxxxx"
WIFI CONNECTED
WIFI GOT IP

OK
AT+CWJAP_DEF?
+CWJAP_DEF:"Pelican Network","ff:ff:ff:ff:ff:ff",1,-72

OK
AT+CWJAP_CUR?
+CWJAP_CUR:"Pelican Network","44:32:c8:fe:10:b2",1,-67

OK
AT+CWJAP?
+CWJAP:"Pelican Network","44:32:c8:fe:10:b2",1,-70

OK

Statistics: Posted by Pelican — Tue Apr 26, 2016 7:52 pm


]]>
2016-04-26T10:38:55+08:00 2016-04-26T10:38:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6607#p6607 <![CDATA[Re: AT+CWJAP_DEF issue]]>
Please provide your whole test steps (AT logs), we will test it exactly as your way.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Tue Apr 26, 2016 10:38 am


]]>
2016-04-23T03:42:11+08:00 2016-04-23T03:42:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6575#p6575 <![CDATA[Re: AT+CWJAP_DEF issue]]> Statistics: Posted by Pelican — Sat Apr 23, 2016 3:42 am


]]>
2016-04-21T17:24:32+08:00 2016-04-21T17:24:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6559#p6559 <![CDATA[Re: AT+CWJAP_DEF issue]]>
Please notice that to use "AT+CWJAP_DEF?" you need to use AT+CWJAP_DEF="SSID", "password", use the matching command.

Statistics: Posted by ESP_Faye — Thu Apr 21, 2016 5:24 pm


]]>
2016-04-21T14:36:20+08:00 2016-04-21T14:36:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6554#p6554 <![CDATA[Re: AT+CWJAP_DEF issue]]> Image

Statistics: Posted by Pelican — Thu Apr 21, 2016 2:36 pm


]]>
2016-04-21T11:24:03+08:00 2016-04-21T11:24:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6551#p6551 <![CDATA[Re: AT+CWJAP_DEF issue]]>
The blank.bin needs to be downloaded to both 0x7e000 and 0xfe000 to run the AT firmware.

You can download the AT bin files into Flash, according to the bin\at\readme.

If your problem is still unsolved, please feel free to let us know.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Thu Apr 21, 2016 11:24 am


]]>
2016-04-21T14:38:44+08:00 2016-04-21T02:42:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6547#p6547 <![CDATA[Re: AT+CWJAP_DEF issue]]> I've used the FLASH_DOWNLOAD_TOOLS_v2.4_150924 software but it says its v2.3.
Image

Statistics: Posted by Pelican — Thu Apr 21, 2016 2:42 am


]]>
2016-04-20T10:20:10+08:00 2016-04-20T10:20:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6535#p6535 <![CDATA[Re: AT+CWJAP_DEF issue]]>
It seems that you did not download blank.bin into flash as the initialization.

Please use ESP Flash Download Tool to download the bin files into Flash, according to the at\readme.

If your problem is still unsolved, please provide the captured picture of ESP Flash Download Tool while downloading for debugging.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Wed Apr 20, 2016 10:20 am


]]>
2016-04-19T18:55:17+08:00 2016-04-19T18:55:17+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2056&p=6528#p6528 <![CDATA[AT+CWJAP_DEF issue]]> The AT+CWJAP_DEF? cannot give back the correct mac address. Not a big deal but maybe somebody knows how to fix it.

Code:

AT+GMR
AT version:1.0.0.0(Apr 16 2016 13:02:45)
SDK version:1.5.3(aec24ac9)
compile time:Apr 18 2016 14:20:15
OK
AT+CWMODE=1

OK
AT+CWJAP?
+CWJAP:"Pelican Network","44:32:c8:fe:10:b2",1,-76

OK
AT+CWJAP_DEF?
+CWJAP_DEF:"Pelican Network","ff:ff:ff:ff:ff:ff",1,-82

OK
AT+CWJAP_CUR?
+CWJAP_CUR:"Pelican Network","44:32:c8:fe:10:b2",1,-81

OK

Statistics: Posted by Pelican — Tue Apr 19, 2016 6:55 pm


]]>