logo elektroda
logo elektroda
X
logo elektroda

LN882H UART flashing protocol documentation - Windows LN882H flasher with fast flash read

p.kaczmarek2 984 33
ADVERTISEMENT
📢 Listen (AI):
  • #31 21622229
    p.kaczmarek2
    Moderator Smart Home
    Which bytes can change between reboots?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #32 21622233
    divadiow
    Level 35  
    Well. I dunno but when I kept it in boot mode between dumps, so no app boot, the bytes were identical.

    Added after 25 [minutes]:

    I'll do read tests again. If that user's device didn't boot up in between then that would be an issue
  • ADVERTISEMENT
  • #33 21622289
    p.kaczmarek2
    Moderator Smart Home
    But the read does CRC check, as implemented by @insmod. So there should be no errors...
    Helpful post? Buy me a coffee.
  • #34 21622390
    divadiow
    Level 35  
    to remove any doubt:

    Tuya_3.5.4_FEIT_Chasing_FETAP20CAN_(schemaID-fxxrjk)_LN882H_1.0.18.bin to blank LN882H

    115200 - done in 184.0235767s
    230400 - done in 92.9656231s
    460800 - done in 47.4550467s
    921600 - done in 24.7300339s

    A9 low throughout

    Code: Text
    Log in, to see the code


    A table showing flash times of a .bin file to LN882H device at various baud rates.
📢 Listen (AI):

Topic summary

The LN882H is a WiFi and Bluetooth wireless System on Chip (SoC) based on the ARM Cortex-M4F core, commonly used in IoT devices. It supports a UART-based flashing protocol for firmware updates and flash memory access. The protocol uses simple ASCII commands for control, while the actual flash data transfer employs the YModem protocol. To initiate flashing, the LN882H must be placed into bootloader mode by grounding a specific pin and rebooting the device. Upon entering bootloader mode, the LN882H outputs a default identity string at 115200 baud rate, which can be monitored to confirm readiness. This UART flashing method facilitates firmware development and modification by enabling read and write operations on the device's flash memory.
Summary generated by the language model.
ADVERTISEMENT