The AEH-W4G2 module uses the RTL8710BL chip, which is compatible with ESPHome. Restoring of factory software wasn't tested.
- 3.3V TTL adapter: Not all adapters may be compatible. For more information, visit the LibreTiny project website.
- 5V power supply: I used the power supply from my TTL adapter, but this might not work depending on your USB or adapter.
- Soldering iron (optional): Keeping all the wires connected during flashing without a soldering iron can be difficult.
-
Disconnect AEH-W4G2 from the AC unit:
- This might be tricky. In my case, it was impossible to disconnect the connectors from the module. As a result, I cut the cables with the power off.
-
Connect power to the connector according to this diagram:
-
Verify power:
- The device has no indication of whether it is working. You may check your Access Point logs to ensure that power is OK.
-
Connect TX and RX:
-
Connect to W4G2 using a serial console:
- If everything is connected well, you should see output like:
uart_process_cmd no response uart status err,now status 1 drip data: uart_rx_end DevTypeCMD: f4 f5 00 40 0b 00 00 00 00 fe 01 00 00 0a 04 00 DevTypeCMD: 01 58 f4 fb uart_rx_start cmdwrite DEVWRITE: f4 f5 00 40 0b 00 00 00 00 fe 01 00 00 0a 04 00 DEVWRITE: 01 58 f4 fb
- Consider connecting the module to the AC and saving logs after executing all possible commands from the original application. The implementation from this project may not yet support all features/devices, and the communication dumps are very helpful in adding them.
-
Switch the chip to download mode:
- I wasn't able to find the CEN pin, but there is another way to enter download mode. Disconnect power, connect TX to GND, and reconnect power. Without disabling power, reconnect TX to the UART adapter.
-
Dump the original software:
- Use this guide/tool. I haven't tested whether restoring the software afterwards is possible.
-
Build UF2 with ESPHome:
- I used the board
generic-rtl8710bn-2mb-468k
, but I'm not sure it's the best model.
- I used the board
-
Flash ESPHome:
- Follow this guide/tool.