FAQ
TL;DR: OpenBeken 1.17.670 now boots, supports OTA and BL0937 metering on LN882HK modules; power-save cuts idle draw from 0.6 W to 0.3 W and chip temp from 56 °C to 40 °C. “Flashing takes ~45 s at 115 kbps” [Elektroda, sithyoda, post #20911089]
Why it matters: you can de-Tuya new Elivco/CozyLife sockets without soldering or burnt fingers.
Quick Facts
• Internal flash: 2 MiB; upper 2 MiB is a mirror region [Elektroda, sweetlilmre, post #20897719]
• Recommended UART flashing speed: 115 200 bps → ~45 s for 420 kB image [Elektroda, sithyoda, post #20911089]
• Boot log speed: 921 600 bps on TXD1 [Elektroda, sweetlilmre, post #20883431]
• Idle power: 0.6 W (no PS) → 0.3 W (MAX_PS + BLE off) [Elektroda, @GUTEK@, post #20923666]
• Core temp: 56 °C no-PS, 40 °C max-PS [Elektroda, @GUTEK@, post #20923666]
What MCU and flash size are inside the WL2S/LN882HK module?
The module uses a Lightning Semiconductor LN882HK (Cortex-M3 class) with 2 MiB on-chip QSPI flash; addresses above 0x00200000 mirror the lower half [Elektroda, sweetlilmre, post #20897719]
Can I flash OpenBeken over UART only, no J-Link?
Yes. Ground GPIO A9 (BOOT), connect RX0 / TX0, then run
LN882H_CMD_Tool COMx download flash 115200 0x0 flashimage.bin
The RAM loader is pushed automatically and the chip reboots to new firmware [Elektroda, sweetlilmre, post #20891275]
What baud rate is reliable for flashing?
While the bootloader talks at 921 600 bps, many USB-UART dongles hang above 1 Mbps. 115 200 bps is stable and fills the 420 kB binary in ≈45 s [Elektroda, sithyoda, post #20911089]
How do I enter burn mode if nothing prints on TX?
Hold A9 low, power the board, keep A9 low during the whole session. No text is echoed; success is confirmed when the CMD tool replies “ACK-OK” [Elektroda, sweetlilmre, post #20899019]
Is SWD/J-Link still useful?
SWD works and is faster for mass flashing or full-chip erase, but not required after UART download mode was confirmed [Elektroda, p.kaczmarek2, post #20891087]
How can I cut heat and idle power?
- Disable BLE clock (CLK_G_BLE).
- Set Wi-Fi power-save to MAX with
PowerSave 2
.
Result: 0.3 W idle and ~40 °C core versus 0.6 W/56 °C stock [Elektroda, @GUTEK@, post #20923666] “Temperature drops 16 °C without affecting connectivity.” [Elektroda, tarwirdur, post #20926594]
Does OTA update work on LN882H now?
Yes. Drag-and-drop flashimage-ota-xz-v0.1.bin
in the web UI. The module reboots, copies the new partition, and rolls back if CRC fails [Elektroda, p.kaczmarek2, post #20916193]
How do I enable BL0937 energy metering on Elivco LSPA9?
Map pins CF→A12, CF1→A7, SEL→B3, then run:
backlog startDriver BL0937; PREF 1.2; VREF 0.124868; IREF 0.010548
Readings appear under Voltage/Current/Power within 5 s [Elektroda, sithyoda, post #20968262]
Edge case: flashing aborts with “Fail. Could not go in download mode”.
Your dongle can’t hold BOOT low or the speed is too high. Re-check A9-GND continuity and retry at 115 200 bps. Using 2 000 000 bps fails on several CP2102 adapters [Elektroda, tarwirdur, post #20919018]
How can I restore factory CozyLife firmware?
Dump 0x00200000 bytes (LN882H_Flash_Dumper 0x200000
) before modding. Later erase flash, then re-flash the saved file; stock app will pair again over BLE and Wi-Fi [Elektroda, divadiow, post #20912510]
What’s the recommended template for the 16 A Elivco mini switch (LN-02)?
Pins: A0 TglChanOnTgl; A1 Rel; B3 LED_n; B8 Btn. Add PowerSave 1
to backlog. Full JSON template is in the device list commit bb7ecd3d [Elektroda, p.kaczmarek2, post #20922270]
Does BLE do anything useful now?
Not yet. Disabling the BLE gate clock saves ~0.1 W with no feature loss [Elektroda, tarwirdur, post #20926594]
How big is the compiled firmware?
Current OpenBeken LN882H image is ≈420 kB; OTA package is xz-compressed to ~250 kB [GitHub CI artefact, 2024-07-25].
Quick 3-step flashing recap?
- Short A9 to GND, power the board.
LN882H_CMD_Tool COMx download flash 115200 0x0 flashimage.bin
.
- Remove A9 jumper, power-cycle. AP
LN_AP_xxxx
appears in 15 s [Elektroda, guide, post #20905873]