-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFi connect not working; continuous state: 0 -> 2 (b0) and reconnect #4
Comments
Connection works with the access point of a second Wemos ESP module. So it is a compatibility issue between the espple image and the Fritz Box access point. It would be great to slighty change the connection code to be able to connect to Fritz Box access points, too. f 0, scandone connected with Wemos_AP, channel 1 |
Thanks for the feedback and interest, it makes me very happy to see people are experimenting with it. I had no way of testing it with various access points. Fritz Box has a stellar reputation in the telecom world and I only heard positive things from colleagues about it. If I manage to borrow one, I'll try to test connectivity and patch any errors I can find. Please keep in mind I'm not very experienced with ESP8266, this is my first project with it but I'll do my best. There are other people mentioning problems with Fritz <---> esp8266 connection too: |
Hi, thank you very much for taking my topic into consideration. Perhaps you can find some time to create an image with my connection code and I will test it immediately here. Thanks in advance |
I'm not sure how the Arduino code could fit here easily, but I've decided to try and reduce RAM usage and attempt compiling the project with a newer SDK. Hopefully this would resolve the wi-fi connectivity issues, as well as make it easier for people compile it themselves. My free time isn't what it used to be, but I'll try to make it work better and resolve some of the issues you are seeing. Please check the repository again in a few days. 👍 |
Hi, I found out why espple did not connect to by FRITZBOX. // some time later Thank you for this "nostalgic experience". Greetings |
I went this 802.11b road because I've found few recommendations online from other esp8266 users about it being the best choice for long range and stability - I'm really sorry this ended up being a problem for you. I would be much happier if wi-fi worked better, but I haven't been able to figure out why it's so jittery and has some packet loss. I've tried several SDK versions and all behaved pretty much the same. Maybe it's some option or a known ESP bug I have yet to find out about. Thanks for all the feedback, now I'm waiting to see some cool BASIC program you wrote! 👍 |
Perhaps you should give the other modes a try. The stability I see with the other modes is much more stable then the one with B. I have half a dozend ESP modules working in my house (2 floors, 2 different APs, some of them are providing own APs while others do connect to the main access points in order to transfer data). And as I did deactivate 802.11B they must have connected with G or N. Never had problems with that. Just one more question from my side: Greetings and wish you and all others much fun with espple |
I'll try testing a little more how 802.11b vs g work, it connects faster when 802.11b is selected on my Linksys with OpenWrt. I agree it should be optional. Although the source is provided, it's not very convenient having to recompile to change modes, so it should be a configuration option instead of a hardcoded one. As far as uploading BASIC programs, there is currently no way to do this, but I have an idea how this could be implemented easily and will have to test first before making any promises :) Once again, I wish to thank you for your feedback and suggestions. Seeing people want to play with it makes me think all those hours didn't go to waste. :) |
Hi,
I would likt to test your precompiled images on my "Wemos D1 mini". Flashing the 2 images and the one with the credentials work fine and Wemos boots. Serial console shows log @ 115200 baud but it seems that connecting to the WiFi access point (Fritz Box 7390; WPA/WPA2) does not work.
Access point is near and SSID is found. Channel = 1
Password has been provided correctly. I tried many variations of SSID and PW, also very simple with only normal and few characters. I also tried to change AP mode from WPA(TKIP) to WPA/WPA2 to WPA2(CCMP).
Do you have any suggestion?
Thanks in advance
Eva
My usual code to connect to WiFi is like this. Your code seem to behave differently...
WiFi.mode(WIFI_STA);
// IPAddress gateway(192, 168, 0, xx); // set gateway to match your network
// Serial.print(F("Setting static ip to : "));
// Serial.println(ip);
// IPAddress subnet(255, 255, 255, 0); // set subnet mask to match your network
// WiFi.config(ip, gateway, subnet);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(1000);
}
ip = WiFi.localIP();
Log:
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
reconnect
state: 3 -> 0 (0)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
reconnect
state: 3 -> 0 (0)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
reconnect
state: 3 -> 0 (0)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
reconnect
state: 3 -> 0 (0)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 2 (2a0)
reconnect
state: 2 -> 0 (0)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 2 (2a0)
reconnect
state: 2 -> 0 (0)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 2 (2a0)
reconnect
The text was updated successfully, but these errors were encountered: