logo elektroda
logo elektroda
X
logo elektroda

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

p.kaczmarek2 
Close-up of an LN882H electronic module with text explaining the flashing process.
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.

About Author
p.kaczmarek2
p.kaczmarek2 wrote 12012 posts with rating 10033 , helped 575 times. Been with us since 2014 year.

Comments

stefanmandl1 04 Jan 2025 11:32

I wrote a flashing tool for Linux. https://github.com/mandl/LN882Loader [Read more]

p.kaczmarek2 04 Jan 2025 11:34

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]

divadiow 04 Jan 2025 12:29

I'll give it a spin. A better, faster, LN882H flash READ option would be cool too if that could be added. [Read more]

p.kaczmarek2 04 Jan 2025 12:38

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]

divadiow 04 Jan 2025 13:19

:) https://obrazki.elektroda.pl/7985689700_1735993103_thumb.jpg https://obrazki.elektroda.pl/3756362700_1735993187_thumb.jpg Ubuntu 24.04.1 LTS [Read more]

p.kaczmarek2 04 Jan 2025 13:32

Try to edit main file to run that mentioned h.readFlash() command and let's see what you'll get? [Read more]

divadiow 04 Jan 2025 15:07

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]

p.kaczmarek2 04 Jan 2025 15:39

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]

stefanmandl1 04 Jan 2025 16:33

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]

divadiow 04 Jan 2025 17:23

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]

p.kaczmarek2 04 Jan 2025 17:28

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]

jhatter55 04 Jan 2025 21:40

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]

insmod 04 Jan 2025 22:06

You need SSDP support (alongside startdriver ssdp), and it is not currently enabled on LN. [Read more]

p.kaczmarek2 04 Jan 2025 22:35

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]

divadiow 04 Jan 2025 22:39

That was for TR6260 https://github.com/openshwprojects/OpenBK7231T_App/pull/1480 [Read more]

divadiow 05 Jan 2025 17:04

@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]

stefanmandl1 05 Jan 2025 17:36

Hello @divadiow, try this for more speed. https://obrazki.elektroda.pl/2291531900_1736094937_thumb.jpg [Read more]

divadiow 07 Jan 2025 07:15

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]

divadiow 07 Jan 2025 09:05

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]

%}