[Youtube] LN882H module pinout and setup for flashing - step by step video guide

Here's a step by step guide showing LN882HKI flashing process along with soldering. LN882HKI can be easily flashed with OpenBeken port and run cloudfree, it can be also paired with Home Assistant. Our LN882H firmware also supports new features and sensors, like DHT11 or SSDP discovery, that can be later enabled via OBK scripting.
LN882 flashing is very similiar to ESP8266, you just need to ground one BOOT pin and then new firmware can be flashed via UART.
Here's detailed guide:
We also have a text guide for the same process. See:
English guide:
How to flash LN882H with open source Tasmota/Esphome style firmware - backup procedure included
Polish guide:
Jak sflashować LN882H oprogramowaniem OpenBeken aby uwolnić od chmury
What to do after flashing?
Home Assistant pairing:
SSDP discovery:
DHT sensor support:
Tasmota Control support:
See other guides on our channel:
https://www.youtube.com/@elektrodacom
Flash tools download -> https://www.elektroda.com/rtvforum/topic4028087.html
Firmware Binaries -> https://github.com/openshwprojects/OpenBK7231T_App/releases
Devices list: https://openbekeniot.github.io/webapp/devicesList.html
Let us know if you have encountered any LN882 devices and how the flashing went! We can also help you with firmware change process, feel free to ask any questions.
Comments
I wrote a flashing tool for Linux. https://github.com/mandl/LN882Loader [Read more]
That's very nice! How did you know the UART protocol details? I didn't research it yet, so I don't know if it's documented, or available somewhere, or did you have to reverse-engineer it? @divadiow... [Read more]
I'll give it a spin. A better, faster, LN882H flash READ option would be cool too if that could be added. [Read more]
He seems to have this in main: #h.readFlash() which resolves to: def readFlash(self): self.ser.write(bytes(b'flash_read 0x0 0x1000\r\n')) msg = self.ser.readline() ... [Read more]
:) https://obrazki.elektroda.pl/7985689700_1735993103_thumb.jpg https://obrazki.elektroda.pl/3756362700_1735993187_thumb.jpg Ubuntu 24.04.1 LTS [Read more]
Try to edit main file to run that mentioned h.readFlash() command and let's see what you'll get? [Read more]
not entirely sure how you mean to achieve that. I went into a GPT hole.. https://obrazki.elektroda.pl/8229946100_1735999555_thumb.jpg looked like it was doing something but it wasn't ... [Read more]
I've checked his code futher and it seems that LN882H is using YMODEM protocol for UART communication: https://en.wikipedia.org/wiki/YMODEM It may be relatively easily to implement it in our flasher... [Read more]
Hello @p.kaczmarek2, all my work is based on reverse engineering. I didn't find any documentation about the protocol. I found a new command for flash dumping ... fdump Regards and happy hacking... [Read more]
cool. will have a play when I am back home. I have Windows laptop and LN882H with me but py script doesn't seem to be playing ball at the moment. I'm curious about what you reverse-engineered. was it... [Read more]
Well, there are at least 3 options, he could have: - captured communication with UART sniffer or separate USB to UART tool or Sigrok etc etc - decompiled flashing tool that runs on PC with IDA pro or... [Read more]
I am looking for help with the Wemo driver for the LN88H. I have started the service and it shows in the setup.xml file but Alexa will not discover it. Wemo support has been successfully discovered... [Read more]
You need SSDP support (alongside startdriver ssdp), and it is not currently enabled on LN. [Read more]
My memory must be failing me, didn't you ask the same question recently? Or maybe I'm wrong... Anyway, SSDP requires IGMP Flag: https://obrazki.elektroda.pl/1104415900_1736026119_thumb.jpg It seems... [Read more]
That was for TR6260 https://github.com/openshwprojects/OpenBK7231T_App/pull/1480 [Read more]
@stefanmandl1 what are the args to dump to file? Added after 17 [minutes]: ah. uncomment h.dumpFlash() https://obrazki.elektroda.pl/9306253800_1736082169_thumb.jpg Added after 3 [hours]... [Read more]
Hello @divadiow, try this for more speed. https://obrazki.elektroda.pl/2291531900_1736094937_thumb.jpg [Read more]
OK, so with the attached, which contains h.changeBaudrate(921600) , the speed is still not 921600, but the 2mb was finished at ~9 mins 50s https://obrazki.elektroda.pl/8987540800_1736230333_thum... [Read more]
out of curiosity I tried the dumper script with what looks like the boot file for LN8825x using this test device. Sadly no joy though I do see mention of fdump in the bin. Feel free to have a look through... [Read more]