[Attach deleted because flash was accidentally done before dump]
Hope I did everything right
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamTL;DR: If you have a CozyLife mini switch from AliExpress, 2 strong identifiers are the LN882H/LN882HKI marking and the UART banner; one expert reply says, "OpenLN882H official flasher" is the right tool when ltchiptool rejects the file. This FAQ helps owners identify the chip, back up stock firmware, and avoid common flashing mistakes on LN882H-based relays. [#21691770]
Why it matters: LN882H-based relays look similar to BK7231 devices, but the thread shows they need different tooling, templates, and recovery steps.
| Option | Works for LN882H thread cases | Main use | Limitation shown in thread |
|---|---|---|---|
| OpenLN882H official flasher | Yes | Flashing OpenLN882H_1.18.175 |
Must back up first |
| ltchiptool flasher | No, file reported unrecognized | General flashing attempt | Rejected LN882H firmware file |
ESPHome with bk72xx generic board |
No | Tried as alternative firmware | User reported it simply did not work |
| OpenBeken/OpenLN882H web template import | Partial | Apply pins/flags | Does not store template metadata on device |
Key insight: Treat LN882H as its own platform. The safest path in this thread is: identify the chip by marking or boot log, dump stock firmware first, then flash with the dedicated OpenLN882H tool and configure pins manually if template import is incomplete.
wifi_mcu_basic_example when the full app log did not appear. [#20974623]iy9fT1, with Firmware Version 1.0.1 built Sep 9 2023 and Firmware Version 1.0.2 built Nov 28 2023. [#20911009]LN882H SDK Ver during boot. If your relay came from AliExpress and shows CozyLife firmware plus that UART banner, treat it as an LN882H-family device before flashing. [#21691762]OpenLN882H_1.18.175 as "file is unrecognized" in ltchiptool, and the reply pointed to the dedicated BK7231GUIFlashTool release for LN882H. Back up the original firmware before writing anything new. [#21691770]------ wifi_mcu_basic_example ------, but a full log appeared only once while the 3.3 V lead was being connected. That makes power-up timing and boot state a real edge case on these relays. [#20839581]LN882H_Test because the build used the default software-version string instead of a forwarded custom version. The maintainer said USER_SW_VER needs to be defined in the Makefile, otherwise a default value is used. Later replies added that the CMake-to-#define wiring was still unfinished. [#20999123]MQTT_OUTPUT_RINGBUF_SIZE, MQTT_VAR_HEADER_BUFFER_LEN, and MQTT_REQ_MAX_IN_FLIGHT, but the author had not yet tested it personally. [#20953098]SoftAP_Startup, wifi_start_config, and a network interface at 192.168.4.1 with mask 255.255.255.0. In this thread, SoftAP appears during provisioning when the device cannot complete normal station setup. [#20911009]bk72xx and generic-bk7231n-qfn32-tuya, and reported it simply did not work on the LN882H switch. The maintainer then stated that ESPHome does not support many such devices and pointed users to OpenBK/OpenLN tooling instead. [#21350030]139.162.135.94:8899 is used for cloud control, while TCP port 5555 is a local listener with an unknown protocol. One researcher saw no prompt, banner, or useful reply on either endpoint. He suggested inspecting it with mitmproxy in Generic TCP mode or with a Wireshark capture, because HTTP tooling alone is insufficient here. [#21315355]lfs_format path fails on LN882H, so the workaround is manual module configuration instead of one-click clearing and script import. Use the template as a pin reference, then set the pins manually in the web interface. [#20974623]