oe1wkl / Morserino-32

Morserino-32 multi-functional Morse code machine, based on ESP32
GNU General Public License v3.0
253 stars 98 forks source link

Wifi configuration is reset to very old setup on loading a snapshot #68

Open cdaller opened 1 year ago

cdaller commented 1 year ago

Steps

Strange thing is, that when I configure SSID mobile as first wifi and SSID home as second wifi after the wifi configuration resets itself, there is only wifi home left (which was the first wifi I ever configured weeks ago).

This behaviour was observed now 3 times in a row. Every week on my cw school day, the configuration is reset.

I do change the snapshots in between and use the serial communication - but I cannot say if this is the culprit!

I just made another test:

oe1wkl commented 1 year ago

Looks like a bug (somewhere where the parameters are being stored…) I will go and hunt for it….

Willi

Am 06.02.2023 um 20:25 schrieb Christof Dallermassl @.***>:

Steps

I setup 2 different wifis using two different SSIDs and using cq.morserino.info for both everything works, with both wifis a week later, the wifi configuration is reset to the first wifi configuration I ever did (weeks ago): only one wifi is configured and no cq.morserino.info Strange thing is, that when I configure SSID mobile as first wifi and SSID home as second wifi after the wifi configuration resets itself, there is only wifi home left (which was the first wifi I ever configured weeks ago).

This behaviour was observed now 3 times in a row. Every week on my cw school day, the configuration is reset.

I do change the snapshots in between and use the serial communication - but I cannot say if this is the culprit!

— Reply to this email directly, view it on GitHub https://github.com/oe1wkl/Morserino-32/issues/68, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZR72CVT7JL77ZSJ4NG34TWWFF2VANCNFSM6AAAAAAUTCGNME. You are receiving this because you are subscribed to this thread.

oe1wkl commented 1 year ago

I tried to find out more about that issue, checked the code etc. But I cannot find any reason that could be made responsible for this behavior…. No idea what is going on here. Serial communication is unlikely, as that does not write to the flash storage. I also cannot believe that restoring snapshots could delete the WiFi configs.

Maybe we need closer observation (e.g.: whenever you go to a different snapshot, can you check WiFi Select if anything has changed there?)

Willi

Am 06.02.2023 um 20:25 schrieb Christof Dallermassl @.***>:

Steps

I setup 2 different wifis using two different SSIDs and using cq.morserino.info for both everything works, with both wifis a week later, the wifi configuration is reset to the first wifi configuration I ever did (weeks ago): only one wifi is configured and no cq.morserino.info Strange thing is, that when I configure SSID mobile as first wifi and SSID home as second wifi after the wifi configuration resets itself, there is only wifi home left (which was the first wifi I ever configured weeks ago).

This behaviour was observed now 3 times in a row. Every week on my cw school day, the configuration is reset.

I do change the snapshots in between and use the serial communication - but I cannot say if this is the culprit!

— Reply to this email directly, view it on GitHub https://github.com/oe1wkl/Morserino-32/issues/68, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZR72CVT7JL77ZSJ4NG34TWWFF2VANCNFSM6AAAAAAUTCGNME. You are receiving this because you are subscribed to this thread.

cdaller commented 1 year ago

Hello Willi,

I can reproduce the behaviour:

When I call Wifi Configure then: only 1:Wifi B is shown

Wifi B was the first Wifi I ever configured on slot 1. This seems to come back whenever I change snapshots.

This happens always, independently if I switch to snapshot 1 or 5 - no difference

I could help to debug if you want to add some serial output or something like this.

cdaller commented 1 year ago

I just updated from verson 4.3.1 to 4.5 but the problem is still existing

oe1wkl commented 1 year ago

Now I think I know what happens:

Possible solutions:

The thinking back then was to use snapshots for different Wifi environments (snapshots were introduced before there were three different WiFi configs).

What does make more sense? Do we really need snapshots for memorizing different WiFi configs, now that we can have three configs anyway? Are three settings enough (I would think so for most people: home, workplace, mobile WiFi). Of course we have also the option to create more than three configs …

Willi

Am 17.02.2023 um 22:49 schrieb Christof Dallermassl @.***>:

Hello Willi,

I can reproduce the behaviour:

Wifi Config: set 1:Wifi A and 2:Wifi B morserino restarts wifi select shows 1:Wifi A and 2:Wifi B I select Wifi B Double Click on black button, load a snaphot (even the same that was loaded before) Wifi Select shows only 1:Wifi B (as first Wifi), no other Wifis are shown anymore When I call Wifi Configure then: only 1:Wifi B is shown

Wifi B was the first Wifi I ever configured on slot 1. This seems to come back whenever I change snapshots.

This happens always, independently if I switch to snapshot 1 or 5 - no difference

I could help to debug if you want to add some serial output or something like this.

— Reply to this email directly, view it on GitHub https://github.com/oe1wkl/Morserino-32/issues/68#issuecomment-1435314733, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZR72HCGUQJLSRYOVHW3FDWX7W57ANCNFSM6AAAAAAUTCGNME. You are receiving this because you commented.

cdaller commented 1 year ago

Yes, I thought it is something like this. I think, you should not store the wifi configs with the snapshots but separately from them. Otherwise I need to configure my wifis for all 6 snapshots. As you can save multiple wifis, there is no need to store them in the snapshots. And I think 3 of them are enough. But if it easy to extend, provide 5 wifis to save - this should be enough for all of us I would think.

Thanks a lot for your time to find/fix this problem of mine (and probably of others as well).

73 de OE6CHD Christof