[Solved] AT+CWLAP not working, just OK

frederick_esp
Posts: 2
Joined: Mon Jun 13, 2016 4:29 pm

[Solved] AT+CWLAP not working, just OK

Postby frederick_esp » Mon Jun 13, 2016 4:37 pm

Hi,
I use ESPRESSIF firmware,ESP8266_NONOS_SDK_V1.5.4_16_05_20.zip
Programming tool:FLASH_DOWNLOAD_TOOLS_v2.4_150924

first:AT+CWMODE=3
use ESP-01(1M)、ESP-12F(4M) module.

but AT+CWLAP can't list APs。AT+CWLAP, after 1~3 sec, just OK message.
AT+CWLAPOPT=1,127 still not effect.
what happen?

chip is fine, test:
1. use arduino firmware, WiFiScan example,can list APs。
2. ESP-01 module use AITHINKER firmware, AT+CWLAP can list APs.

thanks.

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

Re: AT+CWLAP not working, just OK

Postby ESP_Faye » Tue Jun 14, 2016 10:35 am

Hi,

Sorry that we can not reproduce your problem.

Could you try command "AT+RESOTRE" first, then the other commands ?

Code: Select all

AT+RESOTRE

AT+GMR

AT+CWMODE=3

AT+CWLAP


If your problem is still unsolved, please provide the whole AT logs as testing the 4 commands above for debugging.

frederick_esp
Posts: 2
Joined: Mon Jun 13, 2016 4:29 pm

Re: AT+CWLAP not working, just OK

Postby frederick_esp » Tue Jun 14, 2016 8:26 pm

hi,
use ESP-01 1M FLASH
Flash tool version:FLASH_DOWNLOAD_TOOLS_v2.4_150924,
ESP_DOWNLOAD_TOOL_V2.4.exe, but it shows 2.3
Image
this is log message:
======================
AT+RESTORE


OK

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

load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79

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

塉�8��� � ��r塉�8� 1 � r塉I8� 0� �lrr�羅l斂�b蛷 �r綧�� �b�# 犥��1熁� --->unknow code,not suit for any baud rate
ready
AT+GMR

AT version:1.1.0.0(May 11 2016 18:09:56)
SDK version:1.5.4(baaeaebb)
compile time:May 20 2016 15:06:44
OK
AT+CWMODE=3


OK
AT+CWLAP


OK

===================================================
AT+CWLAP between OK, not any message.
use original baud rate:74880
===================================================
SOLVED!!!!!
I found ESP-01 oscillator is 26MHZ,
than flash tools->Crystal Freq. set to 26MHz
reprogramming again,
baud rate become to 115200,
then
1. AT+CWMODE=3
2. AT+CWLAP
it's working.

thanks.

MIKE-8266
Posts: 2
Joined: Mon Mar 19, 2018 10:49 pm

Re: [Solved] AT+CWLAP not working, just OK

Postby MIKE-8266 » Fri Mar 23, 2018 5:56 pm

I had the same problem. Took days to get it working. I'm still not totally sure what I did differently, I suspect it was
1) I had the wrong Crystal Frequency set in my flash program (the most likely)
2) I didn't had the correct memory locations for the .bin files.
3) addresses for didn't flash the bin files in the correct order? (the least likely)

My flashed black 1MB ESP-01's now return a list of access points now on AT+CWLAP.

Anywoy, the parameters I used were:
ESP8266_NONOS_SDK-2.2.0\bin\boot_v1.7.bin 0x00000 - a 4KB file
ESP8266_NONOS_SDK-2.2.0\bin\at\512+512\user1.1024.new.2.bin 0x01000 - a 399 KB file
ESP8266_NONOS_SDK-2.2.0\bin\esp_init_data_default_v08.bin 0xfc000 - a 1KB file
ESP8266_NONOS_SDK-2.2.0\bin\blank.bin 0xfe000 - a 4KB file


The addresses and files came from a 'pop-up' that appeared when using FlashDownload Tool 2.3 v (https://github.com/pfalcon/esp-docs/blo ... 150916.rar)
As to the pop-up, why/how/whether they allow everything to function properly I am not sure, but as i said, it seems to be fine. I had previouly tried to use the addresses and files listed in the readme.md files in the SDK, which you'd expect to allow the ESP to work straight awway (perhaps I was looking at info for a different module??? They had worked a couple of months back!)

Interestingly, the Espressif ESP8266 AT Instruction Set manual 2.2 (2018) (https://www.espressif.com/sites/default ... set_en.pdf) says the files and gives different address (which I haven't tried). They are:

blank.bin 0xFB000 [1]
esp_init_data_default.bin 0xFC000 [2]
blank.bin 0x7E000 [3]
blank.bin 0xFE000 [4]
boot.bin 0x00000 [5]
user1.1024.new.2.bin 0x01000 [6]
Notes:
[1] = Initializes the RF_CAL parameter area.
[2] = Stores the default RF parameter values; the BIN has to be downloaded into flash at least once. If the RF_CAL parameter area is initialized, this BIN has to be downloaded too.
[3] = Stores the default RF parameter values; the BIN has to be downloaded into flash at least once. If the RF_CAL parameter area is initialized, this BIN has to be downloaded too.
[4] = Initializes the flash user parameter area; for more details please see Appendix.
[5] = In /bin/at
[6] = In /bin/at/512+512


Make sure the Flash downloader Crystal Frequency is 26MHz (I think I had 40MHz selected. The flash program seems to go ahead fine and most AT commands work, but after going to 26MHz it's seems OK now) but the SPI speed should be 40MHz.
The baud rate on doing this flashing is 115200. The flash process can be a bit troublesome. If it doesn't work immediately, close the program and try again (remember to put GPIO0 to ground - I think modern flashers can set this to ground in the flash program itself!).

Hope this helps. And thanks Espressif for the latest AT file and manual :)

Who is online

Users browsing this forum: No registered users and 1 guest