Wifi Client Mode - Unable to set SSID, Password, Client name & date/time not persisting

264 views
Skip to first unread message

DavidS

unread,
Nov 13, 2020, 7:14:36 PM11/13/20
to electrodacus
Hello, I received my SMBS0 & DSSR's yesterday.  Thanks for shipping so quickly Dacian!  Super excited to get started.  

I hooked it up today and am getting good readings, but I'm having two issues that I can't figure out:

1) date/time settings are not persisting during a power cycle of the BMS.  I'm saving device settings after I set them, but if I pull the plug, the date/time resets to factory.  
2) After initial startup, I connected to the Wifi by joining the AP and set the SSID and password for my 2.4Ghz wifi network.  Saved those settings and then power cycled.  The settings didn't persist, so I tried joining it to my 5Ghz network, same behavior.  After the 3rd or 4th reboot, the text fields for hostname, SSID and Password no longer accept text entry.  Also, entering data into the onboard AP fields (SSID & Password) to secure that network do not persist data.

Thoughts?

thanks

David

Dacian Todea

unread,
Nov 13, 2020, 8:44:00 PM11/13/20
to electrodacus
David,

1) Of course the time and date are not persistent as there is no battery inside the SBMS0 (it will not make sense as after you install the SBMS0 will be permanently connected to a big battery).
2) The WiFi will only work on 2.4GHz 
You selected Enable client mode then set the SSID and Password for your network and then pushed the Save button ? Then you should have just went in to WiFi menu and set to 0 that will power OFF the WIFi module only then set it back to 1 and that will turn it back ON and should connect to your network if SSID and password where correct and set at 2.4GHz.
My guess is your network was always at 5GHz so the SBMS can not connect to that.

DavidS

unread,
Nov 13, 2020, 9:15:26 PM11/13/20
to electrodacus
Dacian, thanks.  I didn't realize that the date/time was not written to persistent memory.  Now that I understand that, <thumbsup>

WRT the wifi, I tried on both a 2.4Ghz and a 5Ghz network.  Neither worked.  Thank you for clarifying that I should have just restarted the wifi, that makes sense.

That said, I am no longer able to even enter values into the SSID, Password or hostname fields.  I cannot select them for text entry at all.  I've tried chrome, safari, iOS safari and iOS chrome.  No luck.  

Said a different way, I cannot even enter the 2.4Ghz SSID/password in the user interface.  The UI will not allow me to do so.  Is there any way to "reset" the wifi module to stock settings?  Maybe I can try again if I do that.

DavidS

unread,
Nov 13, 2020, 10:30:30 PM11/13/20
to electrodacus
To add a bit more detail, upon loading the page and then checking the "Enable WiFi client" checkbox, all form fields are still disabled.  

Screen Shot 2020-11-13 at 7.28.29 PM.png

DavidS

unread,
Nov 13, 2020, 10:38:13 PM11/13/20
to electrodacus
And the error I'm seeing in the Developer Console:

TypeError: cannot use 'in' operator to search for "sta_enable" in "{\"hostname\":\"sbm..."

Robert Tagscherer

unread,
Nov 14, 2020, 3:01:25 AM11/14/20
to electrodacus
Hi David,

I'm sorry to hear you are having trouble.
As you can still connect to the wifi of the esp32, you may try updating the firmware over the preliminary, not really well tested web update form.
Go to /update on your sbms and then upload first the firmware.bin and then the spiffs.bin from https://github.com/armageddon421/electrodacus-esp32/releases

This should reset everything.

It should not be necessary to power cycle the device from the sbms' menu.

Greetings
Robert

DavidS

unread,
Nov 14, 2020, 4:59:44 AM11/14/20
to electrodacus
Robert, thanks.  I will give that a try in the morning.

DavidS

unread,
Nov 15, 2020, 12:05:52 AM11/15/20
to electrodacus
Robert,
the OTA update worked.  As you pointed out, it's a bit sparse :).

Note: it's taking quite a long time to connect to the wifi, shifting back and forth between the onboard AP and the WIFI before eventually connecting.  It can take an hour or more to finally connect.

Happy to help if there's any info I can provide

Michael Zeeb

unread,
Dec 26, 2020, 5:27:55 PM12/26/20
to electrodacus
I had a similar issue.

Everything was working great and I was exporting MQTT stats from the SBMS0 to HomeAssistant.

Then I upgraded the hardware for HomeAssistant and because I was migrating I left the old one in place while building up the new HA instance.  When it came time to change the MQTT server IP setting in the Wifi firmware (to direct stats to the new HA instance) I found that the fields were simply grayed out and could not be entered.  The Enable MQTT client check box could be checked but it wouldn't open the Server IP etc. fields or present the red "diskette" indicating that there was a change that needed saving.

"Updating" the firmware with the same 0.3 version fixed the issue by resetting everything to where new entries could be input.

These guys (Dacian and Robert) put a lot of their own time and energy into this hardware so I have no qualms putting up with these little gotchs's.  Great product fellas !!!


Reply all
Reply to author
Forward
0 new messages