-
Notifications
You must be signed in to change notification settings - Fork 7
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 Settings not saved #4
Comments
Looking at the output there are some strange characters for the ssid. What On Thursday, 29 October 2015, biohazardxxx [email protected] wrote:
|
It is: |
Sorry accidentally closed. |
I'm referring to this bit (19:42:20.800) f 0, scandone That doesn't look like a normal ssid. My thoughts are that it might not be On Thursday, 29 October 2015, biohazardxxx [email protected] wrote:
|
The way the setting are done is to write them all to the eeprom in ram, and On Friday, 30 October 2015, Andrew Melvin [email protected] wrote:
|
Ah ok. No that and the pass was replaced by me before posting. Sorry I schould have mentioned it. |
I'm having this same issue, both with ESP-01 (512K) and NodeMCU 1.0 (4M). |
so just to clarify, for both of you. you load it up, join the AP, set the SSID and password, then it reboots and does not join the AP? could you both post the output on serial for me to take a closer look. |
@biohazardxxx i've also just noticed that the SSID the ESP is trying to connect to has this 'no ”Êþ? found, '... have you replaced all of those as well...? if ”Êþ? is not you ssid, then it is not retrieving correctly or saving correctly to the EEPROM. if it is then it might be those characters are not supported. what is you ssid? |
I also recognized this ”Êþ? no I did not replaced this. That is what the serial gets. |
I'm not sure what would be causing it to be honest. If I've got an esp 12 Also when in ap mode can u cut and paste the output from the about device The other thing to try is to replace the soft coded wifi credentials with It's in the restartNetworking() function in miscfunctions.ino On Friday, 30 October 2015, biohazardxxx [email protected] wrote:
|
Here's the debug output from my ESP-12 (GIGADEVICE_GD25Q32 flash), with flash size set to 4M (3M SPIFFS). I've added a few debug lines before the WiFi.begin() which outputs the ssid/password it's using. The
And here's the output after a reboot:
There seems to be something wrong indeed with writing/reading values form the EEPROM, since the device name is also wrong ( |
Misc page:
When I hard code the ssid/password/device name everything works fine btw. |
That's my guess too. But I'm not sure how or why it is doing that, as this has worked for ages for me! Having said that I've not used it for a while as the firmware has just been working. So this might be a new issue with the IDE. I'm away. But will try it out next week.
|
OK, I've reproduced it. something must have changed in the arduino IDE... if you click on the misc link at the bottom it will take you to a page where the you can click EEPROM drump... there you will see that the values are not being saved correctly to the EEPROM.. I will look into it |
right. I'm having an epic with git as usual.. this fix should work. I'm writing a lib, to extract all the wifi, and OTA stuff away from the sketch which will make maintaining things like this a lot easier. let me know if this has worked |
Great, I'll try it tonight! What's the difference between the 'public' and the 'ESP8266-wifi' branch? |
as of now nothing.... I'm quite new to github... and well all of this... i wanted a public branch that didn't have each and every commit that i'd made available.. as its a mess... but in the end i've given up... source tree would not push my changes to the public branch... the ESP8266-wifi branch now the default... i still have a lot to learn |
Works for me. Settings saved and I can connect to WiFi. From my point of view we can close this issue. |
Works fine now indeed, thanks! |
Hi, very interesting Sketch! Thanks for sharing.
I could compile it successfully but after entering the seetings it does not connect to wifi and after restart the settings are gone. This is the debug serial:
(19:41:54.330) Welcome to Andrew Melvin's ESP Software
(19:41:54.330) Compile Time: Oct 29 2015 19:38:35
(19:41:54.330) bcn 0
(19:41:54.330) del if1
(19:41:54.330) mode : sta(5c:cf:7f:07:6b:5d)
(19:41:54.400) NORMAL MODE
(19:41:54.400) Scanning for Networks
(19:41:54.480) scandone
(19:41:54.490) f 0, scandone
(19:41:56.650) No Device name in EEPROM.....Creating Device Name: esp-6b5d
(19:41:56.650) NO SSID specified...
(19:41:56.650) Setting up Access Point....mode : sta(5c:cf:7f:07:6b:5d) + softAP(5e:cf:7f:07:6b:5d)
(19:41:56.650) add if1
(19:41:56.650) dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
(19:41:56.790) bcn 100
(19:41:56.790) esp-6b5d
(19:41:56.790) Device name: esp-6b5d
(19:41:56.790) Loading last op state from EEPROM = 0
(19:41:56.790) Settings loaded ------- 24 Bytes read ------- Op State ==> 3
(19:41:56.790) Timer ==> 1000
(19:41:56.790) Animation speed ==> 0
(19:41:56.790) Brightness ==> 255
(19:41:56.790) Colour ==> 255 0 0
(19:41:56.790) Palette ==> 0
(19:41:56.790) Palette Range ==> 20
(19:41:56.790) Number Colours ==> 5
(19:41:56.790) Random ==> 1
(19:41:56.790) Time Stretch ==> 1
(19:41:56.790) Total X ==> 1
(19:41:56.790) Effect Count ==> 1
(19:41:56.790) Effect Min Size ==> 1
(19:41:56.790) Effect Max Size ==> 1
(19:41:56.790) Effect Option ==> 1
(19:41:56.790) End-------------------------
(19:41:56.790) Colour debugging (String) R=ff, G=00, B=00 ==> FF0000
(19:41:56.790) Animations Enabled
(19:41:56.790) Update frequency = 30AutoRestartValue = 0 Last ON/OFF = 1 Loaded
(19:41:58.680) add 1
(19:41:58.680) aid 1
(19:41:58.680) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:02.490) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:04.470) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:08.480) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:09.930) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:11.910) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:13.370) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:15.440) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:17.520) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:20.100) station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:20.800) f 0, scandone
(19:42:22.970) New SSID: ++*_++_
(19:42:22.970) Saving new...Check bit written
(19:42:22.970) New Password: *******
(19:42:22.970) Saving new...Check bit written
(19:42:22.970) New Deviceid: espled1.local
(19:42:22.970) Saving new...Check bit written
(19:42:22.970) MQTTserver IPAddress: 192.168.0.1
(19:42:23.190) f 0, ....scandone
(19:42:25.340) no ”Êþ? found, reconnect after 1s
(19:42:25.440) reconnect
(19:42:25.440) f -180, ....station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:27.570) scandone
(19:42:27.570) no ”Êþ? found, reconnect after 1s
(19:42:27.680) reconnect
(19:42:27.680) f 0, .....scandone
(19:42:29.820) no ”Êþ? found, reconnect after 1s
(19:42:29.920) reconnect
(19:42:29.920) f -180, ....station: 00:27:10:47:e6:e4 join, AID = 1
(19:42:32.050) scandone
(19:42:32.050) no ”Êþ? found, reconnect after 1s
I have an ESP-12 running.CPU is set to 160MHZ and also 1M falsh set
Looks like the Settings are not saved correctly. Any idea?
An sample EEPROM sketch worked fine.
br
Bio
The text was updated successfully, but these errors were encountered: