speeduino / Airbear

GNU General Public License v3.0
6 stars 6 forks source link

Changes do not apply without power cycle. #4

Open OpenLogicEFI opened 1 month ago

OpenLogicEFI commented 1 month ago

After changing SSID/password/connection type, a power cycle is required for the ESP32. When in use this would require an ignition key cycle. Not sure if the change can be pushed after a conformation instead of requiring a reset.

noisymime commented 4 days ago

The ESP32 will reboot automatically when these things are changed, so there's no need for a ignition key cycle, but it does still need the reboot. There's not any single, easy way around this, but I also don't think it's a huge issue as the auto reboot only takes about 5 seconds to complete.

Is this what you're seeing?

OpenLogicEFI commented 3 days ago

In my testing I was seeing the type of reboots you're describing only when nothing was connected to the tx or rx pins.

The most common was the complete loss of Wi-Fi connection after saving any changes. It would often take several manual power cycles to get a proper Wi-Fi connection but this only happened when the serial lines were connected. If I was testing the board connected to nothing but USB it generally didn't have any of these issues. I have everything level shifted to proper voltage as the ESP is not 5v tolerant. Although this happened on the stm32 also.

There seem to be inconsistencies among individual boards. For example, I have one that works great. So I believe most if not all the issues that I'm having are due to receiving some poor quality esp-c3's.

I have some more on the way. If I continue to have issues I'll be sure to update. But you can probably close this out. I think I just got some junk hardware.