logo elektroda
logo elektroda
X
logo elektroda

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

p.kaczmarek2 65577 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):
  • #31 20955962
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    try doing the same but put the tool on the D partition, or any other partition outside C
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #32 20956217
    divadiow
    Level 38  
    Posts: 5039
    Help: 438
    Rate: 891
    >>20955951

    I think I saw this a few times and switched from fake FTDI to CH340 USB TTL. can't quite remember. do you have other USB-TTLs to try?
  • #33 20956401
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    We've had already multiple reports on our forum saying that not all USB to UART converters are reliable and functional for flashing. Try using another converter.
    Helpful post? Buy me a coffee.
  • #34 20956716
    voodoopt
    Level 9  
    Posts: 30
    But with my USB to TTL I can do DUMP
    USB to TTL adapter on a breadboard with wire connections.
    Do you think you can't write in the same way?
  • ADVERTISEMENT
  • #35 20956896
    thatse
    Level 3  
    Posts: 3
    Hi all

    Thanks for you effort on the LN882H.

    Same situation here The Rx/Tx LED on my FTDI USB-to-Serial start blinking.
    But after a few seconds the LN882H_CMD_Tool retuns a fail.

    C:\Users\xxxxx\Downloads\LN882H_CMD_TOOL>LN882H_CMD_Tool.exe COM10 download flash 2000000 0x0 OpenLN882H_1.17.457.bin
    Fail. Error downloading file.

    I use the 3,3V of the USB-to-Serial as power supply for the LN822H Module

    Connections on a breadboard with FTDI USB-to-Serial module and LN882H chip.
  • #36 20957094
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    Both of you seem to have a different USB to UART converter than I have.
    USB to UART adapter with a yellow jumper for selecting 3.3V voltage.
    USB to UART converter with visible pins and labels.
    On this converter, I always use a jumper to connect VDD to 3.3V, because on this converter it is required to select 3.3V voltage levels.
    Helpful post? Buy me a coffee.
  • #37 20957173
    eikclan
    Level 3  
    Posts: 5
    Rate: 1
    @p.kaczmarek2 I'm using the same USB to TTL converter that you showed, and I get the same error.

    I'm starting to think it must be software related in some way, cause If i try to send the flash command with a random name for a .bin file that doesn't exist I still get the "Fail. Error downloading file"
  • #38 20957181
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    Are you using Windows 10?
    Helpful post? Buy me a coffee.
  • #39 20957641
    eikclan
    Level 3  
    Posts: 5
    Rate: 1
    Yes, I'm using windows 10.
    And I've also tried using another PC with win10 for the flash procedure, with no luck.
  • #40 20957739
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    Well, either you're doing something incorrectly, or your LN882H may be not flashable - but I think it should be flashable. Anyway, maybe you can just consider shipping it to me in a letter so I can check on my side?
    I am really running out of ideas.
    To be clear, you're flashing it outside the circuit?
    Helpful post? Buy me a coffee.
  • #41 20957824
    thatse
    Level 3  
    Posts: 3
    Hi,

    maybe to compare the settings we have:

    Win11 PC. LN882N Module is labeled "LN-02" it is desoldered from a Mini Smart Switch "RMW002". The chip is labeld:

    LIGHTNING
    LN882HKI
    749AY T16
    AAB M 2223

    I am using a USB to Serial with "FT232RL" chip. For VCC I select 3,3V with jumper.
    But a also tried to power the LN882N Module with a 3,3V lab supply to ensure sufficent peak power supply.
    Full power cycle before each programming attempt.

    If I execute:
    .\LN882H_CMD_Tool.exe COM10 download flash 2000000 0x0 OpenLN882H_1.17.457.bin
    Rx/Tx LED on the USB-to-Serial blink for 2...3 seconds, some action happening... But the return is "Fail. Error downloading file."

    If I execute:
    .\LN882H_CMD_Tool.exe COM10 download flash 2000000 0x0 test.bin
    And "test.bin" file isn't even existing, the tool still returns: "Fail. Error downloading file."

    If I remove TX-Pin, the LN882H_CMD_Tool is returning "Fail. Could not go in download mode.". --> Different error message, so I suspect the bootloading process is starting in my setup but then aborts.
  • ADVERTISEMENT
  • #42 20957890
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    That is the one I have flashed for upcoming YT video:
    Close-up of a modified integrated circuit with LN02 marking on a printed circuit board.
    Helpful post? Buy me a coffee.
  • #43 20957895
    voodoopt
    Level 9  
    Posts: 30
    this is my USB to TTL
    https://mauser.pt/catalog/product_info.php?products_id=096-7520

    Google Translate description
    "The USB-Serial TTL Converter PL2303 is an adapter that uses the Prolific PL2303HX chip to convert USB signals into TTL RS232 signals, which makes it extremely useful when you want to communicate between the computer and microcontrollers in general. The USB-Serial TTL Converter PL2303 is a board with reduced dimensions that has at one end a USB connector to be connected directly to the computer and at the other end a pin bar for easy connection with the board whose communication will be established, has voltages 3.3 and 5V, which allows you to work with a greater number of microcontrollers regardless of their power supply.

    For correct operation, the USB-Serial TTL PL2303 driver must be installed.

    Main features:
    - Dimensions: 50x15x7mm;
    - USB 2.0;
    - Standard USB type A male;
    - TTL output 5-pin connector (5V, 3V3, TXD, RXD and GND);"
  • #44 20957900
    divadiow
    Level 38  
    Posts: 5039
    Help: 438
    Rate: 891
    tried with AV disabled?
  • Helpful post
    #45 20958308
    fbill
    Level 1  
    Posts: 1
    Help: 1
    Rate: 3
    Hi,

    I was the same problem. ("Fail. Error downloading file." )
    I chose downlad speed end the flash is OK!
    Try this:
    LN882H_CMD_Tool.exe COM7 download flash 115200 0x0 OpenLN882H_1.17.456.bin

    (I used cp2101 because faster than PL2303 )

    Best regards!
  • #47 20958504
    eikclan
    Level 3  
    Posts: 5
    Rate: 1
    I tried using a Win11 pc, with no luck.
    I already tried changing the baudrate to 115200, but I still get the same damn error.
    And yes, I'm trying to flash the module while is desoldered from the board.

    (Also tried putting the tool folder in the D:\ partition, same error appears)
  • #48 20958583
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    Maybe try 57600 or 19200?
    Helpful post? Buy me a coffee.
  • #49 20958664
    voodoopt
    Level 9  
    Posts: 30
    D:\LN882H_CMD_TOOL>LN882H_CMD_Tool COM21 download flash 115200 0x0 OpenLN882H_1.17.457.bin
    Ok.
    D:\LN882H_CMD_TOOL>

    I got it, thank you. finally
    it had to be on disk D and with a speed of 115200
  • #50 20958708
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    so it was not working on C drive, even with correct baud?
    Helpful post? Buy me a coffee.
  • #51 20958756
    dullu
    Level 5  
    Posts: 3
    Help: 1
    Rate: 2
    Hi all,
    I am new here.
    I can confirm that LN882H can be flashed with NODE-MCU (esp8266) with CH340. Electronic board with long wires connected, lying on a colorful background.
  • #52 20958784
    thatse
    Level 3  
    Posts: 3
    Success!

    I had to switch to a USB to Serial with a CH430 chip (FTDI was not working for me). I also reduced the baud rate to 115200 while downloading.
  • ADVERTISEMENT
  • #53 20958823
    eikclan
    Level 3  
    Posts: 5
    Rate: 1
    I have tried everything, but I can't get pass this error.
    This is really pissing me off, I think I will throw this damn chip in the garbage and replace it with a TYWE2.
  • #54 20958834
    voodoopt
    Level 9  
    Posts: 30
    >>20958708
    Work on c:
    the problem is correct baud 115200 ;)
  • #55 20958898
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14591
    Help: 654
    Rate: 12612
    dullu wrote:
    Electronic board with long wires connected, lying on a colorful background.

    Having such a long wires is bad practice, you should really shorten them. I already have seen many cases where just the length of the wires were breaking up the flashing. The first rule of good flashing setup is to keep wires short.
    Helpful post? Buy me a coffee.
  • #56 20959282
    dullu
    Level 5  
    Posts: 3
    Help: 1
    Rate: 2
    Yes, you are 100% right!!
    Yesterday, I flashed it and it was working everything fine.
    and almost all function was working...only thing I noticed is ..... when I assign static IP and reboot, it will again come up with DHCP only.
    tried many times (assigned all like IP, Mask, GW, DNS) but it is not saved.
    Also, while applying with template for smart switch, it says Bad command ? "lfs_format" comand not found!!

    Anyways, I burned the LN822H last night because of loose long boot wire was by mistakenly touched somewhere in ESP baseboard connectors
    and I got some bad smell from the board and now no WiFi, no activities at all. :(

    Soooo... even I have flashed with long wires successfully, it is bad practice for other things too (like frying your chip).

    Now I am waiting for another from aliexpress.

    Thank you all for such a wonderful guidance.
  • #57 20965252
    voodoopt
    Level 9  
    Posts: 30
    I have a problem, I derived the MAC address
    But when I change the Mac it doesn't connect to my home WiFi
    I have to write the dump again, flash with new bin and try to configure it again. unsuccessful
  • #58 20966104
    divadiow
    Level 38  
    Posts: 5039
    Help: 438
    Rate: 891
    divadiow wrote:
    I ripped the pad off boot on my first LN-02 mini switch not moving it around delicately enough 😳


    ive gone back to this. desoldered from PCB and examined trace from where boot pad was. Scratched off the ink along the T in TX text to reveal the copper trace. Fluxed and tinned a little, then used pogo pins to ground boot. LN-02 now flashed to OpenBK.

    Also. I used fake FTDI USB adaptor, so didn't have to use CH340 as previously thought. Flashed without setting baud in cmd

    LN882H_CMD_Tool.exe COM10 download flash 2000000 0x0 OpenLN882H_1.17.432.bin


    USB Serial Port properties on COM10 settings. USB Serial Port (COM10) properties with FTDI driver information.

    Close-up of a PCB with exposed copper trace near the .BOOT label. Screenshot of OpenBK interface displayed in a browser.
  • #59 20979034
    voodoopt
    Level 9  
    Posts: 30
    no one else had problems with mac address?
  • #60 20979045
    divadiow
    Level 38  
    Posts: 5039
    Help: 438
    Rate: 891
    voodoopt wrote:
    no one else had problems with mac address?


    I have not. I've flashed 3 or 4 units now.
📢 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