AT+CWJAP_DEF issue

Pelican
Posts: 8
Joined: Tue Apr 19, 2016 6:46 pm

AT+CWJAP_DEF issue

Postby Pelican » Tue Apr 19, 2016 6:55 pm

I'm new here and I don't know if there is any forum where I can report bugs/issues so I write it here.
The AT+CWJAP_DEF? cannot give back the correct mac address. Not a big deal but maybe somebody knows how to fix it.

Code: Select all

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

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

Re: AT+CWJAP_DEF issue

Postby ESP_Faye » Wed Apr 20, 2016 10:20 am

Hi,

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 !

Pelican
Posts: 8
Joined: Tue Apr 19, 2016 6:46 pm

Re: AT+CWJAP_DEF issue

Postby Pelican » Thu Apr 21, 2016 2:42 am

I tried to do everything according to the manual.
I've used the FLASH_DOWNLOAD_TOOLS_v2.4_150924 software but it says its v2.3.
Image
Last edited by Pelican on Thu Apr 21, 2016 2:38 pm, edited 1 time in total.

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

Re: AT+CWJAP_DEF issue

Postby ESP_Faye » Thu Apr 21, 2016 11:24 am

Hi,

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 !

Pelican
Posts: 8
Joined: Tue Apr 19, 2016 6:46 pm

Re: AT+CWJAP_DEF issue

Postby Pelican » Thu Apr 21, 2016 2:36 pm

I've put the blank.bin but everything is the same.
Image

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

Re: AT+CWJAP_DEF issue

Postby ESP_Faye » Thu Apr 21, 2016 5:24 pm

Hi,

Please notice that to use "AT+CWJAP_DEF?" you need to use AT+CWJAP_DEF="SSID", "password", use the matching command.

Pelican
Posts: 8
Joined: Tue Apr 19, 2016 6:46 pm

Re: AT+CWJAP_DEF issue

Postby Pelican » Sat Apr 23, 2016 3:42 am

I'm using the matching command.

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

Re: AT+CWJAP_DEF issue

Postby ESP_Faye » Tue Apr 26, 2016 10:38 am

Hi,

Please provide your whole test steps (AT logs), we will test it exactly as your way.

Thanks for your interest in ESP8266 !

Pelican
Posts: 8
Joined: Tue Apr 19, 2016 6:46 pm

Re: AT+CWJAP_DEF issue

Postby Pelican » Tue Apr 26, 2016 7:52 pm

Code: Select all

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

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

Re: AT+CWJAP_DEF issue

Postby ESP_Faye » Wed Apr 27, 2016 11:20 am

Hi,

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.

Who is online

Users browsing this forum: No registered users and 189 guests