john30 / ebusd-esp

Firmware for ESP8266 allowing eBUS communication for ebusd (https://github.com/john30/ebusd)
150 stars 21 forks source link

wifi config not being saved using CLI and web frontend on Wemos D1 mini #41

Closed netweaver1970 closed 3 years ago

netweaver1970 commented 3 years ago

Hi, Im tryi'ng to configure my EBUSD Adapter v3 to connect my home WLAN. But every time, after entering SSID and password + Save/reboot in the web frontend, the Wemos D1 mini kind of hangs and only gets out of it by using the reset button, coming back with the default EBUS SSID. So my entered config is not saved.

Then I tried to do the same thing it via the CLI, over the serial port. I enter the same details, I can do a connect test there and it looks like I'm connected fine, I'm getting an IP address. So far so good. Then I chose '0' to save and reboot and alas, I'm getting again the EBUS SSID :( Same behaviour as using the web frontend.

image

And this is while saving and rebooting ... Back to square one. image

I also tried to do an F: (Factory reset) and then setting the WIFI config parameters + save&robbot but I'm having the same behaviour.

I also tried restoring factory settings with 'f' : no luck, same behaviour.

I also tried the same with a powered hub in the middle, to rule out power issues: Same behaviour.

This is my EEPROM dump:

EEPROM dump:
0000  c9 00 11 01 ff ff ff ff ff ff ff ff ff ff ff ff  ................
0010  ff ff ff ff ff ff ff ff ff ff ff ff 03 00 00 00  ................
0020  00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0030  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0040  ff ff ff ff 64 00 ff ff 00 00 00 00 00 00 00 00  ....d...........
0050  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0060  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0070  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0080  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0090  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
00a0  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
00b0  ff ff ff ff ff ff ff ff ff ff ff ff ff fb bb f2  ................
00c0  cf 98 c3 7b 53 8e fc 85 ff 27 d2 1d 02 ac 88 c1  ...{S....'......
00d0  4c 40 a3 fd 74 ad a3 f5 0c b4 48 9b ff ff ff ff  L@..t.....H.....
00e0  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
00f0  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0100  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0110  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0120  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0130  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0140  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0150  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
0160  ff ff ff ff ff ff ff ff ff ff 5c cf 7f 9a e6 25  ..........\....%
0170  81 02 ff ff 96 14 11 01 24 00 00 00 00 00 00 00  ........$.......
0180  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0190  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01a0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01b0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01c0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

Any idea?

Thanks,

netweaver1970 commented 3 years ago

Some extra info, after doing the wifi config + connection, before doing the save+reboot, I now also do an EEPROM dump:

Contents looks different ... seems a lot gets overwritten/rewritten by a reboot ...

EEPROM dump:
0000  00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00  ..$.............
0010  00 00 00 00 00 00 00 00 7c 15 00 00 04 02 8b 02  ........|.......
0020  df 00 7f 00 00 00 00 00 f8 2a 00 00 04 03 96 03  .........*......
0030  d5 00 75 00 00 00 00 00 e8 03 00 00 00 00 82 00  ..u.............
0040  3a 01 3a 01 00 00 00 00 d0 07 00 00 04 01 84 01  :.:.............
0050  02 01 a2 00 01 00 00 00 70 17 00 00 00 0b 0c 04  ........p.......
0060  3c 00 3c 00 01 00 00 00 e0 2e 00 00 00 0a 18 06  <.<.............
0070  30 00 30 00 01 00 00 00 c0 5d 00 00 00 09 30 08  0.0......]....0.
0080  2c 00 2c 00 01 00 00 00 80 bb 00 00 00 08 60 08  ,.,............
0090  2c 00 2c 00 01 00 00 00 f0 d2 00 00 00 0c 6c 08  ,.,...........l.
00a0  2c 00 2c 00 01 00 00 00 28 23 00 00 00 0f 12 04  ,.,.....(#......
00b0  3c 00 3c 00 01 00 00 00 50 46 00 00 00 0e 24 06  <.<.....PF....$.
00c0  30 00 30 00 01 00 00 00 a0 8c 00 00 00 0d 48 08  0.0...........H.
00d0  2c 00 2c 00 96 14 d4 00 24 00 b4 00 00 00 00 00  ,.,.....$.......
00e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0130  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0140  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0150  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0160  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0170  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0180  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0190  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01a0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01b0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01c0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
01f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

`

netweaver1970 commented 3 years ago

I just tried another long shot and this one worked : reflashed the binary. And as part of the (re)flash, it did a full flash wipe. Now the configuration is being saved properly. Closing the issue, keeping it here for reference.