OpenEVSE / openevse_esp32_firmware

OpenEVSE V4 WiFi gateway using ESP32
172 stars 116 forks source link

Bricked WiFi Modules after 4.2.2 firmware update? #601

Closed ve6rah closed 1 year ago

ve6rah commented 1 year ago

I have an OpenEVSE on version 7.1.3 with the ESP32 wifi module.

I downloaded openevse_esp32-gateway-f_gui-v2.bin and updated it through the GUI. After the update, the WiFi module never came back online. The display showed a message saying that the firmware update was complete, and just sat there for over 20 minutes. I finally power cycled the OpenEVSE, and the lights on the wifi module never returned, and the EVSE acts as if no wifi module is installed. The wifi module does not connect to my network, nor does it create its own hotspot.

Thinking it must be something with that one wifi module, and as I happen to have a spare on hand, I downloaded openevse_esp32-gateway-f_gui-v1.bin and updated that through the gui of the second wifi module. This time it hung at 98% on the LCD display, and the wifi module dropped from my network. After 20 minutes sitting at 98% I power cycled OpenEVSE and it acts exactly as in my first case, no lights, no wifi, no indication on the display that a wifi module is even installed.

ve6rah commented 1 year ago

Well, looks to me like this is my fault. I used the wrong binary (In my defence, the docs could be a LOT clearer than "use the right file" and actually make it easy to see which one is right!)

So I'm going to try manually flashing with esptool to get back on track.

KipK commented 1 year ago

You should be able to get it back by flashing with esptool yes. May I know what board you have to understand how you took the wrong fw ?

ve6rah commented 1 year ago

I have the normal wifi module that comes with all the OpenEVSE kits at this point. It has an ESP32 chip on it, so I chose ESP32.

There's a pretty good description of which one you need down in the 4.1.5 release notes, but the latest version just says to make sure you use the right one, and doesn't tell you how to know which is right.

I'm not currently having much luck with esptool. Keeps timing out waiting for packet header. still trying.

KipK commented 1 year ago

You have to keep pressed the reset button ( right one nearest to the USB port ) , then quick press left button, then release right button. It will stay in flash mode

KipK commented 1 year ago

Once everybody have switched to UI V2 it will be easier, as firmware update is now automatic from Github files and doesn't needs users to download manually the correct file.

This will prevent those kind of mistakes.

ve6rah commented 1 year ago

There's no USB port on the wifi module. There is a button marked reset, and another marked GPIO 0 I tried as you said and held reset, tapped GPIO 0 then released reset. This didn't seem to have any effect. I also tried the reverse, holding GPIO0, tapping reset, then releasing GPIO0, that didn't work either.

While messing around with the buttons, a couple of times I've had the green LED turn on (and stay on) but I'm not sure if that signifies anything at this point.

ve6rah commented 1 year ago

Aha! I finally got it.

Hold GPIO0 while plugging in the usb programmer, then release. Then Flash.

KipK commented 1 year ago

There's no USB port on the wifi module. There is a button marked reset, and another marked GPIO 0 I tried as you said and held reset, tapped GPIO 0 then released reset. This didn't seem to have any effect. I also tried the reverse, holding GPIO0, tapping reset, then releasing GPIO0, that didn't work either.

While messing around with the buttons, a couple of times I've had the green LED turn on (and stay on) but I'm not sure if that signifies anything at this point.

It's is the reverse, you hold the other button and hit reset once. But olding while pluguing so the same