stuartpittaway / diyBMSv4

Version 4 of the diyBMS
Other
924 stars 224 forks source link

How to reset wifi settings in esp8266 controller #120

Open maryushr opened 2 years ago

maryushr commented 2 years ago

I changed the router and now esp8266nontroller does not want to connect to the new one, how do I reset the wifi settings in the esp8266controller, it is nowhere described.

stuartpittaway commented 2 years ago

Connecr the two pins together marked wifi reset.

maryushr commented 2 years ago

I put a jumper on these pins and the settings have not been reset, the controller does not create its own wifi network, as at the beginning after programming.

stuartpittaway commented 2 years ago

Did you reboot the esp after joining the pins together?

maryushr commented 2 years ago

Yes, I reset by removing the USB plug and reconnecting, then the controller reconnected to the old router.

stuartpittaway commented 2 years ago

Ok. You could reprogram the esp chip, that should clear it's settings

maryushr commented 2 years ago

Reprogramming is very tedious, you cannot fix this jumper to make it work as it is supposed to.

stuartpittaway commented 2 years ago

Ok. Looking at the code, this is the process you need to follow:

  1. Remove jumper from WIFI RESET PIN
  2. Reset ESP8266 by pressing the reset button (EN)
  3. WITHIN 3 seconds put the jumper on the WIFI RESET PIN

This should then clear the WIFI settings

maryushr commented 2 years ago

Great, now it works. Thank you very much.