ESP8266 Developer Zone The Official ESP8266 Forum 2015-11-04T14:13:25+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1040 2015-11-04T14:13:25+08:00 2015-11-04T14:13:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1040&p=4445#p4445 <![CDATA[Re: WiFi AP not found]]>
Here is an example of ESP8266 station connects to router http://bbs.espressif.com/viewtopic.php?f=31&t=228.

Please notice to set the parameter stationConf.bssid_set to be 0, otherwise it will check the MAC address of AP.

Statistics: Posted by ESP_Faye — Wed Nov 04, 2015 2:13 pm


]]>
2015-11-03T17:39:58+08:00 2015-11-03T17:39:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1040&p=4433#p4433 <![CDATA[Re: WiFi AP not found]]>
I have just reinitialised, as suggested, a test projectthat had also stopped working; and that now works. It would be very helpful if you could explain why we need to reinitialise as I now need to go round and reprogramme several systems and would like to avoid having to do this again by dealing with the issue in software.

Statistics: Posted by Daven007 — Tue Nov 03, 2015 5:39 pm


]]>
2015-09-10T09:57:27+08:00 2015-09-10T09:57:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1040&p=3617#p3617 <![CDATA[Re: WiFi AP not found]]>
blank.bin has to be downloaded into Flash as initialization.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Thu Sep 10, 2015 9:57 am


]]>
2015-09-01T13:52:02+08:00 2015-09-01T13:52:02+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1040&p=3516#p3516 <![CDATA[Re: WiFi AP not found]]>
But, I think I found the actual problem:

I flashed blank.bin to 0x7e000 and restarted. So far, I have been able to restart the chip twice and connect successfully. I even flash another firmware and it is working still. I'll test a few other scenarios just to be sure it is actually solved ;)

Was I always supposed to do this? (I mean, do it every time I flash a firmware)

Statistics: Posted by deadmetaphor — Tue Sep 01, 2015 1:52 pm


]]>
2015-09-01T12:59:04+08:00 2015-09-01T12:59:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1040&p=3515#p3515 <![CDATA[Re: WiFi AP not found]]> Statistics: Posted by kolban — Tue Sep 01, 2015 12:59 pm


]]>
2015-09-01T12:46:32+08:00 2015-09-01T12:46:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1040&p=3514#p3514 <![CDATA[Re: WiFi AP not found]]>
I reflashed esp_init_data_default.bin and restarted my router...and I was able to connect.

But on subsequent attempts I still have the same problem :?

I am guessing some setting is off somewhere, need to experiment a little more.

Statistics: Posted by deadmetaphor — Tue Sep 01, 2015 12:46 pm


]]>
2015-08-31T21:32:32+08:00 2015-08-31T21:32:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1040&p=3509#p3509 <![CDATA[Re: WiFi AP not found]]> I had exactly the same thing happen to me over the weekend and I hunted to see what had changed. I spent a good long time on the puzzle but couldn't find any obvious reasons. On a wild hunch, I powered down my WiFi access point and then powered it back up. At that point, all started to work again. I'm not saying for one moment this will work for you, but it did for me ... and left me with an unresolved mystery.

Statistics: Posted by kolban — Mon Aug 31, 2015 9:32 pm


]]>
2015-08-31T20:09:52+08:00 2015-08-31T20:09:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1040&p=3508#p3508 <![CDATA[WiFi AP not found]]>

Code:

f 0, scandone
no AP1 found, reconnect after 1s
reconnect
f 0, scandone
no AP1 found, reconnect after 1s
reconnect
f -180, scandone


Note: AP1 is the AP name

I used the scan APIs to specifically search for this SSID, and strangely it does see the AP

Code:

add if0
f 0, scandone
f 0, scandone
DEBUG: (3,"AP1",-52,"12:34:56:78:90:ab",1)
f -180, reconnect
scandone
f 0, scandone
no AP1 found, reconnect after 1s
reconnect


I have previously connected to the same AP, using the same code (although I had used several other firmwares on the same chip). I even tried the AT firmware, and I am able to scan for and connect to this particular AP.

Code:

void user_init(void) {
   // Configure the UART
   uart_init(BIT_RATE_115200, BIT_RATE_115200);
   os_printf("\r\nDEBUG: SDK version:%s\n", system_get_sdk_version());
   os_printf("DEBUG: Autoconnect: %u\n", wifi_station_get_auto_connect());
   char ssid[32] = SSID;
   char password[64] = SSID_PASSWORD;
   struct station_config stationConf;

   //Set station mode
   wifi_set_opmode(STATION_MODE);

   //Set ap settings
   os_memcpy(&stationConf.ssid, ssid, 32);
   os_memcpy(&stationConf.password, password, 64);
   stationConf.bssid_set = 0;
   wifi_station_set_config(&stationConf);

   system_init_done_cb(user_scan);
}


The user_scan function is same as the second listing in http://bbs.espressif.com/viewtopic.php?f=21&t=229

WiFi status returned by wifi_station_get_connect_status() is STATION_NO_AP_FOUND

The serial output when it used to connect successfully is as follows (I am putting it here assuming that it might help Espressif guys)

Code:

f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
pm open phy_2,type:2 0 0
cnt

connected with AP1, channel 1
dhcp client start...
ip:192.168.0.101,mask:255.255.255.0,gw:192.168.0.1
Mon Aug 31 16:33:15 2015


Any help will be useful :)

Statistics: Posted by deadmetaphor — Mon Aug 31, 2015 8:09 pm


]]>