logo elektroda
logo elektroda
X
logo elektroda

How to flash LN882H with open source Tasmota/Esphome style firmware - backup procedure included

p.kaczmarek2 65562 297

TL;DR

  • LN882H modules can be flashed over UART with open-source Tasmota/Esphome-style firmware to free cloud-controlled devices and integrate them with Home Assistant.
  • Wire module TX, RX, GND, 3V3, and BOOT/GPIOA9 to ground, and keep GPIOA9 low throughout the entire flashing process.
  • Backup uses `python LN882H_Flash_Dumper.py COMx flashdump`, and the firmware flash command is `LN882H_CMD_Tool.exe COMx download flash 921000 0x0 flashimage.bin`.
  • After flashing, power-cycle the module, disconnect BOOT from ground, and open 192.168.4.1 to configure it like other OpenBeken/Tasmota-style devices.
  • A reliable external 3.3V supply is recommended because powering directly from the USB-to-UART adapter’s 3.3V pin may fail.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • #61 20979060
    voodoopt
    Level 9  
    Posts: 30
    I flashed two units and they had the same mac address. The problem is that when I change the address I can no longer access the devices.
  • ADVERTISEMENT
  • #62 20992867
    yoker77
    Level 4  
    Posts: 4
    Rate: 1
    I cannot change the IP address from DHCP to static. The entries are ignored. Am I doing something wrong or is the feature not yet supported?
  • ADVERTISEMENT
  • #63 20996036
    Advian1
    Level 7  
    Posts: 41
    Rate: 1
    voodoopt wrote:
    >>20958708
    Work on c:
    the problem is correct baud 115200 ;)


    Hi, Having same issue here.
    tried the following:
    1. disabled antivirus
    2. ran cmd as admin
    3. tried from E drive
    4. tried different baud rates
    5. tried short cables
    6. ch340 adapter

    getting "Fail. Error downloading file."
    dump was successful I think.

    Anything else I should try?
  • ADVERTISEMENT
  • #64 20996330
    yoker77
    Level 4  
    Posts: 4
    Rate: 1
    Have you changed the baud rate in the command line?
    Should look like this: LN882H_CMD_Tool.exe COM7 download flash 115200 0x0 flashimage.bin
  • #65 20996463
    Advian1
    Level 7  
    Posts: 41
    Rate: 1
    yoker77 wrote:
    Have you changed the baud rate in the command line?
    Should look like this: LN882H_CMD_Tool.exe COM7 download flash 115200 0x0 flashimage.bin


    That's baud rate? of course it didn't work for me before, My adapter doesn't even support 2M baud rate.

    Setting it to 115200 immediately worked.

    Thanks a ton!

    and of course thatnks to pkaczmarek2 for supporting all these chipsets!

    Added after 4 [hours] 1 [minutes]:

    Hi, Device is getting too hot.
    Screenshot of an IoT device interface showing an OFF state with a red Toggle 0 command and internal temperature of 65.6°C.

    Powersave is not available?
    Screenshot of a command line tool with information about power saving.

    Added after 2 [minutes]:

    voodoopt wrote:
    I flashed two units and they had the same mac address. The problem is that when I change the address I can no longer access the devices.


    I was able to change the MAC without any issue at all.
    Make sure the MAC is valid.
    Also the device IP will likely be changed. So look for the new IP in the router before you attempt to connect.
  • #66 20997075
    yoker77
    Level 4  
    Posts: 4
    Rate: 1
    Does assigning a fixed IP address work for you?
  • #67 20997185
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14589
    Help: 654
    Rate: 12611
    Static IP address is currently unimplemented.
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/src/hal/ln882h/hal_wifi_ln882h.c
    This function needs to be updated:
    Code: C / C++
    Log in, to see the code


    Added after 5 [minutes]:

    @Advian1 I can try to add powersave command tomorrow
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #68 20997209
    yoker77
    Level 4  
    Posts: 4
    Rate: 1
    Does this mean that I have to compile flash.bin myself? Or how should the command be executed? There is no terminal access.
  • #69 20997368
    Advian1
    Level 7  
    Posts: 41
    Rate: 1
    yoker77 wrote:
    Does assigning a fixed IP address work for you?


    I do that from router.
    Because then I can manage all devices in one place, rather than setting it up in individual devices.
    With different MAC addresses that isn't a n issue.

    Added after 2 [minutes]:

    p.kaczmarek2 wrote:

    @Advian1 I can try to add powersave command tomorrow


    Thanks 😍.

    I don't think these devices will last much longer with that kind of temp even at no load.
    So powersave option will be helpful.
  • #70 21007524
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14589
    Help: 654
    Rate: 12611
    I've added powersave command, usage:
    
    PowerSave 1
    

    in short startup command will enable powersave, and similiarly:
    
    PowerSave 0
    

    will disable it.

    Keep in mind to execute PowerSave in startup command so it is enabled on every boot.

    Can anyone check if its working correctly?
    Helpful post? Buy me a coffee.
  • #71 21007589
    Advian1
    Level 7  
    Posts: 41
    Rate: 1
    p.kaczmarek2 wrote:
    Can anyone check if its working correctly?


    Thanks a lot. ❤️
    I'll test.

    Added after 1 [hours] 10 [minutes]:

    >>21007524
    not sure if it worked very well.

    power consumption of the device from the wall is 0.6W while off and 1.1W when On. (220v)
    Same after enabling PowerSave.
    Temparature is vey high as well 74C at on state, no load connected.
    Interface of the Smart_Switch_2 tool showing a command panel with the PowerSave 1 command selected.
  • #72 21007792
    divadiow
    Level 38  
    Posts: 5038
    Help: 438
    Rate: 891
    I'm using the Atorch S1 to measure an LN882H RMW002 mini switch, no load attached. Starting with 1 hour of powersave 0 then will do powersave 1. Will post HA history after. Hopefully the value factors are all correct

    Screenshot of measurement data from the Atorch S1 device, showing current, frequency, voltage, and temperature values.

    Atorch S1 meter display showing various electrical measurements.

    Hopefully the S1 is sensitive enough to give meaningful results
  • #73 21007824
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14589
    Help: 654
    Rate: 12611
    Just make sure that your command is actually executed. Short startup command is run only at startup, so you need to reboot after setting..
    Helpful post? Buy me a coffee.
  • #74 21007837
    divadiow
    Level 38  
    Posts: 5038
    Help: 438
    Rate: 891
    Yes. Set in autoexec and mqtt broadcast to every 10s

    Added after 1 [hours] 3 [minutes]:

    which measurements are of most interest? just noticed kwh has not come through for the last hour.

    This is powersave 0 for 1 hour

    WATTS
    Line chart showing power changes over time from 3:00 PM to 4:00 PM.

    AMPS
    Graph showing current measurement in amperes, with regular fluctuations on the timeline from 3:00 PM to 4:00 PM.

    Added after 43 [minutes]:

    divadiow wrote:
    Yes. Set in autoexec and mqtt broadcast to every 10s


    I of course didn't mean autoexec because there's no LFS in LN. but yes start-up command

    Screenshot of the OpenBK_LN882H_Mini_16A_noPM interface with a startup command field.

    The Atorch has mqtt_broadcastInterval 10
  • #75 21010486
    Advian1
    Level 7  
    Posts: 41
    Rate: 1
    >>21007792
    these readings are close to what I'm getting.
    Did you get the chance to test with powersave 1 ?

    Also what's your internal temp?
    I'm afraid to put this inside the switch box. the internal temp shows over70C at no load while it's outside.
    No idea what's gonna happen if I put inside the switch box where there's no airflow at all.
  • #76 21010488
    divadiow
    Level 38  
    Posts: 5038
    Help: 438
    Rate: 891
    negative. I need to nail HASS and be sure I'm doing it right
  • Helpful post
    #77 21013678
    charleswill2014
    Level 1  
    Posts: 1
    Help: 1
    Rate: 2
    I used the baud rate from the tutorial but it didn't work for recording only to extract the original system, when using the 115200 it worked perfectly, my mini switch rmw002 has the following configuration:
    A0-DINPUT_N 1
    A1-REL 1
    B3-LEN_N 1
    B8-BTN 1
    Close-up of an electronic module with LN-G2 chip held in a hand.
    Photo of a mini smart switch with a visible technical label and connected wires.
    OpenLN882H system interface with status information.
    Screenshot of a Windows command prompt window showing attempts to transfer a file via serial port.
  • #78 21014435
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14589
    Help: 654
    Rate: 12611
    @charleswill2014 good job and welcome to forum! So, it's the same device as the one already on our list?
    A screenshot showing a device list filtered by keyword rmw002 with one device displayed.

    @divadiow any news on power save test?
    Helpful post? Buy me a coffee.
  • #79 21014606
    divadiow
    Level 38  
    Posts: 5038
    Help: 438
    Rate: 891
    p.kaczmarek2 wrote:
    @divadiow any news on power save test?
    I'm really sorry, I lost confidence and moved onto something else. It's probably really basic. I'll do it asap.
  • #80 21015687
    divadiow
    Level 38  
    Posts: 5038
    Help: 438
    Rate: 891
    so this is a night of Powersave 0 with relay CLOSED (switch on). Are the intervals close enough? is it granular enough? I did set mqtt_broadcastInterval 10 and flag 2, but measurements are still coming through to HA every minute, that or HA is only logging every minute.

    Is there anything I should change before redoing for Powersave 1?

    On the Atorch the measurements do change a lot more frequently, so that one snapshot of the readings every minute doesn't seem like it will give a good feel of the devices real usage



    Attachments:
    • LN882H_Powersave0_AMPS.csv (7.02 KB) You must be logged in to download this attachment.
    • LN882H_Powersave0_KWH.csv (297 Bytes) You must be logged in to download this attachment.
    • LN882H_Powersave0_WATTS.csv (32.08 KB) You must be logged in to download this attachment.
  • #81 21015700
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14589
    Help: 654
    Rate: 12611
    I would suggest just doing PowerSave 1 test now and then we can decide whether we need to adjust the measurement method or not.
    Helpful post? Buy me a coffee.
  • #82 21016110
    divadiow
    Level 38  
    Posts: 5038
    Help: 438
    Rate: 891
    OK. so here is Powersave 1 over a different length of time. Powersave 1 set in startup command and device rebooted twice before measurement started. As before, relay closed.

    I asked ChatGPT4 to analyse, normalise, adjust for differing lengths of measurement and it gave me this. I know it could be wrong. At the moment I'm not sure what to make of it.

    Code: Text
    Log in, to see the code
    Attachments:
    • LN882H_Powersave1_WATTS.csv (21.38 KB) You must be logged in to download this attachment.
    • LN882H_Powersave1_AMPS.csv (3.59 KB) You must be logged in to download this attachment.
  • #83 21016408
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14589
    Help: 654
    Rate: 12611
    Maybe we need a more precise method of measurement. Like a simple multimeter checking the current consumption on the 3.3V rail.
    Helpful post? Buy me a coffee.
  • #84 21016423
    max4elektroda
    Level 24  
    Posts: 754
    Help: 48
    Rate: 187
    >>21007524
    If you would like some other input: What could I do to test?

    Sorry to say, but at least in my first test I can't see any difference, but that might be my very simple "testing setup".
    I'm testing on a module soldered out, so its just the plain module and I'm measuring the current with a cheap multimeter.
    I can see no difference in the used current (about 90 mA when WiFi started) with "PowerSave" set to 0 or 1.
    Also temperature is very similar (around 35°C)

    Or do I have to wait for some time, to see an effect?
    Do I need some other settings to test?
  • #85 21016605
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14589
    Help: 654
    Rate: 12611
    Well, we were testing powersave on BL602 in the past here:



    and effect was noticeable.
    Here is the LN882H call:
    Screenshot of a code snippet related to power-saving update on the LN882H platform.
    Maybe the call is incomplete. It seems to lead only to:
    https://github.com/openshwprojects/OpenLN882H...3526/components/utils/system_parameter.c#L408
    Code: C / C++
    Log in, to see the code

    Maybe I should also call:
    Code: C / C++
    Log in, to see the code

    to apply the change in realtime, not just to save it in LN KV.
    The source code of wifi_sta_set_powersave is not visible anywhere, but let's give it a try...
    I've added the change here:
    https://github.com/openshwprojects/OpenBK7231...mmit/83d53cf82c58b61a02cdfb7e6661aa37176f7a8c
    Can you @divadiow retry with PowerSave 1 on 1.17.516?
    Helpful post? Buy me a coffee.
  • #86 21016739
    max4elektroda
    Level 24  
    Posts: 754
    Help: 48
    Rate: 187
    For me 1.17.516 sadly doesn't seem to change the current - toggling between 88 and 89mA - regardless if PowerSave is 0 or 1 :-(.


    BTW - since the version reports "LN882H_Test":

    I added
    
    add_definitions( -DUSER_SW_VER="LN882H_$(APP_VERSION)" )
    

    to
    sdk/OpenLN882H/project/OpenBeken/CMakeLists.txt


    giving me Screenshot of the OpenLN882H interface with diagnostic information, configuration buttons, and software version details.
    Will this include the "official" version on a release build?!?
    At least you should be able to adjust it that way ...

    Thanks!
  • #87 21017627
    divadiow
    Level 38  
    Posts: 5038
    Help: 438
    Rate: 891
    Oooh @max4elektroda hopefully a real release will come with proper build version!
  • #88 21018533
    divadiow
    Level 38  
    Posts: 5038
    Help: 438
    Rate: 891
    I was just poking around the Lightning Semi Gitee to see if there were any interesting commits to the code on any branches since it was all discovered and used to create LN OBK. I also checked LN_Customer ftp sites logins to see if there was anything new but the sites are down for me at the moment.

    Screenshot showing two computer icons next to email addresses: LN_Customersh.lightningsemi.cn and LN_Customer02sh.lightningsemi.cn.

    any of these commits of interest?

    List of code commits on Gitee for the Lightning Semi project.

    https://gitee.com/lightningsemi/ln882h/compare/master...frozen_mode

    Screenshot showing code changes made on Gitee by Chao_Ju, related to the ln_pm.c file.
    https://gitee.com/lightningsemi/ln882h/commit/6121af45a6a423c53fcc1adbb261b3d7d6bc1985

    Screenshot of a commit list on Gitee for a project named ln882h.
    https://gitee.com/lightningsemi/ln882h/compare/master...custom-imou

    Screenshot showing the Gitee comparison interface for the Lightning Semi repository.
    https://gitee.com/lightningsemi/ln882h/compare/master...LN_IMOU

    there are more

    https://gitee.com/lightningsemi/ln882h
  • #89 21018569
    max4elektroda
    Level 24  
    Posts: 754
    Help: 48
    Rate: 187
    That really looks promising: Fixes in power save, implementation of littlefs, ...
  • #90 21018608
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14589
    Help: 654
    Rate: 12611
    Maybe we just need another call. Let's consider the app base:
    https://github.com/openshwprojects/OpenLN882H/blob/master/project/OpenBeken/usr_app.c
    This call looks interesting:
    C code snippet with a function setting sleep mode.
    This header seems related:
    https://github.com/openshwprojects/OpenLN882H...aster/components/utils/power_mgmt/ln_pm.h#L52
    Maybe we should try using:
    Code: C / C++
    Log in, to see the code

    along with:
    Code: C / C++
    Log in, to see the code

    I can try to plug it into PowerSave call in separate PR in a hour or two.
    Helpful post? Buy me a coffee.
📢 Listen (AI):

Topic summary

✨ The discussion focuses on flashing LN882H modules with open-source firmware similar to Tasmota/Esphome, enabling cloud-free operation and integration with Home Assistant. Flashing requires a USB to UART converter with reliable 3.3V power supply, connecting module TX to UART RX, RX to TX, GND to GND, and 3.3V to 3.3V. Users report challenges including access to the BOOT pin, interference from board components on RX/TX lines, and the necessity of short wiring to ensure stable flashing. Various USB to UART converters (CH340, FT232RL, PL2303, CP2101) have differing success rates; CH340 and CP2101 are recommended over some FTDI and PL2303 adapters. Correct baud rate (115200) and running the flashing tool from non-system drives (e.g., D:) improve success. The LN882H_CMD_Tool is used for flashing and dumping firmware; flashing requires power cycling and keeping BOOT grounded during operations. Users successfully dumped firmware but often encountered "Fail. Error downloading file" during flashing, resolved by adjusting baud rate, shortening cables, and using compatible USB-UART adapters.

Power-saving features are under active development; enabling PowerSave mode reduces power consumption and device temperature but may cause WiFi connection issues in some firmware versions. PowerSave commands can be set via startup commands or command tool, with better effect when applied directly via command tool. Temperature monitoring shows LN882H devices run hot (up to 74°C) without load, improved by PowerSave mode. Integration with energy metering (BL0937) is affected by PowerSave due to interrupt handling. Static IP assignment is currently unimplemented in firmware. DHT sensor support is partially implemented; drivers require manual start commands, and pin mapping must be correct. NTP client requires manual driver start and supports server IP configuration via commands. Safe mode can be triggered by power cycling to reset device settings. Firmware and tools are evolving with ongoing commits addressing power management, filesystem (LittleFS), and device stability.

Overall, flashing LN882H modules demands careful hardware setup, compatible USB-UART adapters, correct flashing parameters, and power cycling. Firmware features like power saving, sensor support, and network configuration are improving but still have limitations. Community contributions and testing continue to enhance LN882H open-source firmware usability and integration.
Generated by the language model.

FAQ

TL;DR: Need to flash LN882H and keep a recovery path? Use 5 wires and keep BOOT low; as one expert put it, "BOOT is like IO0". First dump the original flash, then write the regular firmware binary over UART, usually at 115200 baud if higher speeds fail. This FAQ is for OpenBeken/OpenLN882H users who need a practical flash, backup, OTA, and recovery workflow. [#20923772]

Dlaczego to ma znaczenie: LN882H can run cloud-free firmware, but success depends more on wiring discipline, baud rate, and power cycling than on the chip itself.

Opcja Typowe użycie Co działało w praktyce Główne ryzyko
LN882H_CMD_Tool.exe Flashowanie UART w Windows Często ruszało po zmianie na 115200 Błąd Fail. Error downloading file.
LN882H_Flash_Dumper.py Backup flash i OTP Tworzy dump przed zmianą firmware Długi odczyt, wymaga poprawnego BOOT
OTA z Web App Aktualizacja już działającego OBK Chrome/Chromium działały stabilniej niż Firefox Firefox mógł wywołać crash OTA
BK7231GUIFlashTool Nowsze narzędzie GUI Wspierane dla LN882H od aktualizacji 2026 Nadal wymaga tego samego okablowania

Najważniejszy wniosek: Najczęstsza przyczyna nieudanego flashowania LN882H nie była w module, tylko w procedurze: BOOT musi pozostać niski, po każdej próbie trzeba odłączyć i podłączyć zasilanie, a zejście do 115200 baud często rozwiązywało zapis. [#20958664]

Quick Facts

  • LN882H flashuje się przez UART podobnie do ESP8266: potrzebne są połączenia TX, RX, GND, 3.3V i BOOT/GPIOA9, a GPIOA9 musi pozostać w stanie niskim przez cały proces. [#20905518]
  • W praktyce zapis przy 2,000,000 baud często kończył się błędem, a kilka osób potwierdziło sukces dopiero po przejściu na 115200 baud. [#20958664]
  • PowerSave na LN882H potrafił mocno obniżyć temperaturę: w jednym teście spadek wyniósł z 64.0°C do 36.0°C po PowerSave 2, kosztem większych opóźnień sieciowych. [#21055421]
  • LittleFS jest systemem plików flash, który przechowuje pliki i skrypty, z odpornością na restart oraz małym narzutem pamięci. Na LN882H dodanie LittleFS zwiększało rozmiar binarki o około 42 KB. [#21069454]
  • OTA na LN882H bywało niestabilne w Firefox; po naprawce przetestowano poprawny update z buildu 1441_merge_6d6a6086fa18 do OpenLN882H_1.17.789_OTA.bin właśnie w Firefox 132.0.2. [#21332121]

How do I flash an LN882H module over UART and make a full backup of the original firmware first?

Flashowanie i backup robi się w dwóch etapach. 1. Podłącz TX↔RX, RX↔TX, GND, 3.3V oraz BOOT/GPIOA9 do GND. 2. Zrób kopię poleceniem python LN882H_Flash_Dumper.py COMx flashdump; narzędzie zapisze dump flash i OTP. 3. Wgraj nowy firmware poleceniem LN882H_CMD_Tool.exe COMx download flash 921000 0x0 flashimage.bin, a po zakończeniu odłącz BOOT od masy i zrestartuj zasilanie. Po starcie urządzenie wystawia AP na 192.168.4.1. [#20905518]

What is the BOOT pin on LN882H, and why does GPIOA9 have to stay low during the whole flashing process?

BOOT na LN882H to pin wejścia do bootloadera, a w praktyce jest nim GPIOA9. Musi pozostać niski przez cały proces, bo tylko wtedy układ pozostaje w trybie programowania; autor porównał go wprost: „BOOT is like IO0.” Odłączenie BOOT w trakcie potrafi przerwać procedurę lub zablokować kolejną próbę do czasu pełnego odcięcia zasilania. Dlatego BOOT zwiera się do GND przed podaniem zasilania i trzyma nisko do końca flashowania. [#20923772]

Why does LN882H_CMD_Tool show "Fail. Error downloading file." and what fixes actually worked, like using 115200 baud, shorter wires, or a different USB-to-TTL adapter?

Najczęściej ten błąd znikał po zmianie parametrów transmisji i procedury zasilania. Skuteczne poprawki to: użycie 115200 zamiast 2000000, skrócenie przewodów, pełne odłączenie zasilania i USB-TTL po każdej nieudanej próbie oraz podmiana adaptera USB-UART. Pomagało też upewnienie się, że wgrywany jest zwykły plik binarny, a nie plik OTA. Kilku użytkowników potwierdziło, że samo ustawienie 115200 natychmiast rozwiązało Fail. Error downloading file. [#20996463]

Which USB-to-UART adapters work best for LN882H flashing, and how do CH340, CP2101, FT232RL, PL2303, and NodeMCU compare in practice?

Najlepiej wypadały adaptery CH340 i CP2101, ale LN882H bywa wybredny. W wątku potwierdzono sukces na CH340, CP2101, adapterach FTDI w części konfiguracji oraz nawet na NodeMCU ESP8266 z CH340. FT232RL działał u jednych, a u innych nie; PL2303 też działał, ale częściej zgłaszano z nim problemy. Jeden użytkownik potwierdził, że LN882H można było flashować przez NodeMCU z CH340, a inny odzyskał stabilność dopiero po przejściu z FTDI na CH430/CH340. [#20958756]

What is LittleFS in OpenBeken/OpenLN882H, and what features depend on it on the LN882H platform?

LittleFS to system plików w pamięci flash, potrzebny do plików takich jak autoexec.bat, skryptów i funkcji opartych o lokalny storage. Na początku LN882H go nie miał, więc przycisk „List Filesystem” nic nie pokazywał, a tworzenie plików nie działało realnie. Po późniejszym wdrożeniu potwierdzono, że pliki przetrwały kilka aktualizacji OTA. Dodanie LittleFS zwiększało rozmiar binarki LN882H o około 42 KB, ale odblokowywało skrypty i trwałe pliki konfiguracyjne. [#21069454]

How can I flash an LN882H module without desoldering it from the PCB, and what board connections can interfere with RX, TX, or BOOT access?

Da się flashować bez wylutowania, jeśli masz fizyczny dostęp do BOOT i nic nie obciąża linii RX/TX. Problemem bywają przyciski, kondensatory debounce, ścieżki do innych układów lub trudny dostęp do samego BOOT. W takich przypadkach trzeba czasem przeciąć ścieżkę, usunąć kondensator albo bardzo precyzyjnie dolutować cienki przewód tylko na czas programowania. W wątku potwierdzono też przypadek, gdzie moduł LN-02 udało się zaprogramować in-circuit bez wylutowania i bez cięcia RX/TX. [#20924089]

What’s the difference between the regular LN882H firmware binary and the OTA file, and which one should be used for UART flashing versus Web App updates?

Do UART używa się zwykłego pliku binarnego, a do aktualizacji przez Web App używa się pliku OTA. Pomylenie ich jest częstą przyczyną błędów flashowania. Wprost zalecono: wybierz poprawny plik binarny do flashowania, nie plik OTA. Ta różnica wracała też przy Web App, gdzie użytkownicy trafiali na nie-OTA pliki i update nie przechodził. Reguła jest prosta: UART = pełny bin, Web App = OTA.bin. [#20955856]

How do I recover an LN882H device when I can no longer access the web UI, including safe mode, erase commands, and reflashing original firmware?

Najpierw spróbuj safe mode przez 5 szybkich cykli zasilania. 1. Wyłącz i włącz urządzenie 5 razy z krótką przerwą. 2. Po wejściu w safe mode połącz się z AP i popraw konfigurację. 3. Jeśli to nie pomoże, użyj LN882H_CMD_Tool.exe COM# flash erase_all albo wgraj z powrotem oryginalny firmware z backupu. W jednym przypadku dopiero reflashing oryginalnego firmware przywrócił dostęp do sieci domowej, gdy urządzenie po zmianach nie wracało do UI. [#21021640]

Why does changing the MAC address on some LN882H devices make them disappear from the network, and how can I verify the new IP afterward?

Po zmianie MAC urządzenie zwykle dostaje nowy lease DHCP, więc znika spod starego adresu IP. Samo ustawienie MAC może działać poprawnie, ale po zapisie trzeba szukać nowego IP w routerze albo skanerze sieci. Jeden użytkownik potwierdził zmianę MAC bez problemu i dodał, że trzeba upewnić się, że adres MAC jest prawidłowy, a następnie sprawdzić nowy adres w routerze. Jeśli urządzenie nadal znika, warto wrócić do dumpu i powtórzyć konfigurację od zera. [#20996463]

What is PowerSave on LN882H in OpenBeken, and how do PowerSave 0, 1, and 2 affect temperature, current draw, Wi-Fi stability, and BL0937 energy metering?

PowerSave zmniejsza pobór prądu i temperaturę LN882H, ale wpływa na sieć i pomiar energii. PowerSave 0 to tryb bez oszczędzania. PowerSave 1 obniżał temperaturę i prąd umiarkowanie. PowerSave 2 dawał największy efekt, np. spadek z 64.0°C do 36.0°C, ale podnosił ping do 56–73 ms i mógł psuć pomiary BL0937 oraz powodować reconnecty Wi‑Fi. Dla pojedynczego modułu raportowano też spadek poboru z około 90 mA do 50 mA przy trybie 1 i 35 mA przy trybie 2. [#21064064]

Why doesn’t static IP work on LN882H builds, and what is currently unimplemented in the wifi_init_sta code path?

Static IP nie działał, bo ścieżka LN882H była wtedy po prostu niezaimplementowana. Wprost wskazano funkcję wifi_init_sta(const char* oob_ssid, const char* connect_key, obkStaticIP_t *ip) jako miejsce wymagające aktualizacji w pliku hal_wifi_ln882h.c. Dlatego wpisy statycznego IP były ignorowane, a urządzenie wracało do DHCP. Dopóki ten fragment nie został uzupełniony, jedynym praktycznym obejściem było przypisanie stałego adresu po stronie routera. [#20997185]

How do I start and configure extra drivers like NTP, DHT, SSDP, or Wemo on LN882H, including backlog commands and startup command syntax?

Sterowniki uruchamiasz komendami, a kilka poleceń łączysz przez backlog. Przykład: backlog startDriver ntp; ntp_timeZoneOfs +2 albo backlog startDriver SSDP; startDriver Wemo. NTP wymaga ręcznego startu, a serwer ustawia się komendą ntp_setServer <IP>. DHT był obsługiwany per-pin, ale w części buildów LN882H nie był jeszcze aktywny. Wemo wymagał startu sterownika i sprawdzenia, czy działa endpoint /setup.xml, bo sam komunikat „OK” nie gwarantował wykrycia przez Alexę. [#21028427]

Why does OTA updating LN882H often fail in Firefox but work in Chrome or Chromium, and what was the root cause of the HTTP/OTA crash?

Problem nie leżał w samym pliku OTA, tylko w błędzie obsługi bufora HTTP/OTA po stronie LN882H. Firefox częściej wysyłał nagłówki i payload w układzie, który ujawniał błąd: kod OTA zbierał dane do bufora 4 KB, ale nie sprawdzał poprawnie sytuacji, gdy pojedynczy fragment mógł zapełnić bufor więcej niż raz. To kończyło się zapisem poza pamięcią i crashem wątku HTTP Clie. Po poprawce autorzy potwierdzili udane OTA w Firefox 132.0.2. [#21332121]

What’s the best way to remove or recover a forgotten OpenBeken web password on an LN882H device without losing control of it permanently?

Najpewniejsza metoda to wgranie przez UART builda bez wymuszania hasła albo builda recovery. Wskazano plik http_basic_auth.c i opcję kompilacji bez ALLOW_WEB_PASSWORD, co powoduje akceptację każdego połączenia. Później pojawiła się też wersja recovery: po restarcie i ponad 5 błędnych próbach logowania urządzenie mogło zaproponować pełny reset konfiguracji. To rozwiązanie było traktowane ostrożnie ze względów bezpieczeństwa, więc najbezpieczniejszy pozostaje własny build ratunkowy flashowany przez UART. [#21084206]

How can I flash LN882H from Linux or macOS instead of Windows, and which tools from the thread support that workflow?

Na Linuxie pojawiło się natywne narzędzie LN882Loader, opublikowane jako projekt do flashowania LN882H bez Windows. Wcześniej użytkownicy próbowali Wine, QEMU i VirtualBox z mieszanymi wynikami; GUI pod Windows działało w VM, ale bywało zawodne. Dla Windows później polecano też GUI flash tool, natomiast w samym wątku jedynym jasno wskazanym rozwiązaniem linuksowym był właśnie LN882Loader. Dla macOS nie podano gotowego natywnego narzędzia, więc praktyczna ścieżka z wątku to Linux tool albo Windows VM. [#21376296]
Generated by the language model.
ADVERTISEMENT