logo elektroda
logo elektroda
X
logo elektroda

Flashing OpenBeken Firmware on WL2S Module with Lightning LN882HK Chip for ELIVCO LSPA9

sithyoda 51783 183
Best answers LABEL_AI_GENERATED

How can I flash OpenBeken on the WL2S module with the LN882HK chip used in the ELIVCO LSPA9?

Yes — the LN882H/LN882HK platform was eventually ported to OpenBeken, and the thread shows a working build with relay control, OTA, and later BL0937 power metering support [#20904300] [#20905873] [#20968262] To flash it, put the chip into download/burn mode by pulling GPIOA9 low, connect TX0/RX0/GND/3.3V, and use the LN882H command-line tool to write `flashimage.bin`; several users found that lowering the baud rate to 115200 fixed `Fail. Error downloading file` problems [#20891275] [#20908318] [#20908420] If UART download is troublesome, SWD/J-Link also works for erase/flash and for restoring or dumping stock firmware [#20826012] [#20905937] The build flow was to place the OpenBeken app inside the LN882H SDK tree, then build `flashimage.bin` for UART flashing and `flashimage-ota-xz-v0.1.bin` for OTA [#20917594] [#20917867] The team also noted that an all-flash erase can act like a factory reset, and that future updates included BLE/power-save tweaks to reduce power draw and heat [#20914959] [#20937215]
AI summary based on the discussion. May contain errors.
ADVERTISEMENT
  • #181 21212524
    kodacy
    Level 5  
    Posts: 6
    >>20919569 Mine is at 56-58 ºC range with power saving at start up. Also not sure if reasonable or not for this device.

    Added after 3 [hours] 59 [minutes]: .

    >>20923666 How can I get a complied OTA version of NO_BLE_MAX_POWERSAVE based on 1.17.670 for Chipset LN882H? I really wanted to try it of.
  • ADVERTISEMENT
  • #182 21711528
    willmarromero
    Level 1  
    Posts: 1
    >>20841102 Hi, thanks for your info. Which version of the Keil SDK did you use?

    Added after 22 [minutes]:

    >>20904300 amazing i want to do same
  • ADVERTISEMENT
  • Disassembled module and shared LN882H pinout

    #183 21907068
    dsulv
    Level 1  
    Posts: 1
    >>20914959

    Helo There, just dissemble mine

    detail packaging, internal board and working pin configuration attached :

    json pin configuration :
    Code: JSON
    Log in, to see the code

    Flashing OpenBeken Firmware on WL2S Module with Lightning LN882HK Chip for ELIVCO LSPA9
    Flashing OpenBeken Firmware on WL2S Module with Lightning LN882HK Chip for ELIVCO LSPA9
    Flashing OpenBeken Firmware on WL2S Module with Lightning LN882HK Chip for ELIVCO LSPA9
    Flashing OpenBeken Firmware on WL2S Module with Lightning LN882HK Chip for ELIVCO LSPA9

    hope these helps
    thanks.
  • GitHub Actions builds OTA firmware for LN882H

    #184 21909337
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14770
    Help: 659
    Rate: 12913
    kodacy wrote:

    >>20923666 How can I get a complied OTA version of NO_BLE_MAX_POWERSAVE based on 1.17.670 for Chipset LN882H? I really wanted to try it of.

    You can use OBK online builds on GitHub:
    OpenBeken online building system - compiling firmware for all platforms (BK7231, BL602, W800, etc)

    OpenBeken has this GitHub Actions integration which builds new binaries for all platforms (and versions) on each commit. You don't need to install anything on your PC to do that. No SDKs, no toolhchains.
    Helpful post? Buy me a coffee.

Topic summary

LABEL_AI_GENERATED
Discussion focused on flashing OpenBeken on ELIVCO LSPA9 smart switch modules using the WL2S board with a Lightning LN882HK/LN882H chip. Initial UART bootlog capture was difficult, but later logs showed the chip uses a Tuya-based firmware and that the correct boot/debug output appears on TXD1 at 921600 baud. The community determined that BK7231/OpenBK binaries do not work on this platform and that LN882H requires its own SDK, flashing tools, and boot/download procedure. Progress included compiling and flashing SDK examples via KEIL/GCC, identifying J-Link SWD as a reliable way to erase/flash, and later confirming UART flashing is possible by grounding GPIOA9 and using LN882H_CMD_Tool with the correct baud rate. A Python flash dumper was created to back up flash and OTP, and the original firmware was successfully dumped and restored. OpenBeken was then ported far enough to boot, drive GPIO, create an AP, and later add STA support, with remaining work centered on OTA and further HAL integration.
AI summary based on the discussion. May contain errors.
ADVERTISEMENT