logo elektroda
logo elektroda
X
logo elektroda

Heruled Tuya WiFi Smart LED Controller - Lightning Semiconductor LN8825B chip

divadiow 4173 38
ADVERTISEMENT
  • Helpful post
    #1 20871361
    divadiow
    Level 34  
    I bought this hoping for an Espressif or Beken chip, but no luck.

    Tuya WiFi LED controller with remote and mobile app.
    Specification table with details for the Tuya WiFi model and HERULED controller for RGB LED strips.
    https://www.aliexpress.com/item/1005004613749484.html

    It appears to be a Lightning Electronics LN8825B chip, which has no mention on this forum or any other, that I can find. It seems no chance it's a rebranded version of something we can flash. The same situation as https://www.elektroda.pl/rtvforum/topic3989796.html

    https://developer.tuya.com/en/docs/iot-device...e?id=Kaiuyfgqxi1cl#title-0-Chipset%20platform


    LED controller with cable and remote on a red background.


    Close-up of a circuit board with LN8825B chip. Circuit board with LN8825B chip in a white enclosure with connected wires.

    I wouldn't recommend wasting your time with it.
  • ADVERTISEMENT
  • #2 20871453
    p.kaczmarek2
    Moderator Smart Home
    Well, is there SDK for this chip? Have you tried capturing the boot log?
    Helpful post? Buy me a coffee.
  • #3 20871823
    divadiow
    Level 34  

    I was about to capture the boot log, but it's either DOA or I've killed it somehow. Very annoying!

    I have not found the SDK yet.

    Would accidentally getting GND and VCC the wrong way round kill the device?

    P.S. What does Heruled mean?
  • #4 20871841
    p.kaczmarek2
    Moderator Smart Home
    Heruled is the brand name of this device, as per specifications table from Aliexpress.

    Well, connecting power supply with reversed polarity is usually lethal for all unprotected devices.
    Helpful post? Buy me a coffee.
  • #5 20871847
    divadiow
    Level 34  
    lol. sigh. yes

    ok thanks
  • #6 20871856
    p.kaczmarek2
    Moderator Smart Home
    Do you have a multimeter to check what might have been damaged? Maybe at least MOSFETs are okay and they can be reused after making a ESP12 transplant.
    Helpful post? Buy me a coffee.
  • #7 20871986
    divadiow
    Level 34  
    I do have a multimeter but not sure I have the patience to work out what is wrong with it when theyre so cheap :s

    BUT

    There is still no sign of it for detection in any Tuya app or any new device in AP mode, but I seem to be getting something from the TX0/RX0 pins if I use the 12v DC adaptor. I cannot seem to get a baud rate that produces a clean output though

    
    ▒▒interface 0 is initialized
    interface 1 is initialized
    [01-03 18:12:15 TUYA InfoW▒▒▒}▒▒▒{▒}▒m▒{▒▒▒▒▒▒▒ݿ▒▒▒▒▒▒▒[?=▒?9>98:12:15 TUYA Debu                                                                                   g][uni_thread.c:218] Thread:sys_timer Exec Start. Set to Running Status
    [01-01 18:12:15 TUYA Debug][uni_thread.c:218] Thread:cmmod Exec Start. Set to Ru                                                                                   nning Status
    [0▒▒?▒▒▒▒▒▒WU]}k▒ݽum▒}▒▒▒}▒▒▒▒▒▒ٕ▒▒▒ѕɁoō▒▒▒▒▒▒▒▒▒▒▒jִ▒j▒▒▒▒Ҋ▒Ҋ▒▒U▒
                                                                    ▒T▒▒▒V▒▒ō}▒▒▒銊▒                                                                                   ▒j▒}▒ɽ▒jō}▒▒▒▒▒▒▒}▒▒▒▒j▒▒Hh▒j▒▒▒▒Ҋ▒R▒▒U▒
                                            ▒T▒▒▒V▒▒+▒}▒▒▒▒Ŋ▒▒j▒}▒ɽ▒ϊ▒jō}▒andler_cnt                                                                                   :2
    [?▒▒?▒▒▒▒▒▒▒U▒▒▒um▒▒▒▒▒{▒▒▒▒▒▒х▒́▒▒ɕ▒▒▒▒▒▒▒▒▒b▒▒▒▒х▒▒́J́*▒▒▒▒5jj▒▒▒j▒▒▒▒Ҋ▒Ҋ▒▒U▒
                                                                                ▒T▒▒                                                                                   ▒V▒5ٍ}▒▒▒▒▒▒}▒▒▒▒▒ʂ▒▒ٍ▒z▒▒▒▒▒▒b▒▒▒J▒▒с▒Ս▒▒▒▒5jj▒▒▒j▒▒▒▒Ҋ▒Ҋ▒▒Ue▒;▒ѥ▒▒um▒▒▒}▒▒٥▒▒▒▒▒                                                                                   O[▒▒▒?=▒▒?:=6>5▒?▒]VZ▒▒otice][tuya_light_lib.c:6792] ==== tuya light lib version                                                                                   :1.0.2 ====
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:2799] ------------- 728
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:1364] R:1023  G:0   B:0
    [01-01 18:12:15 TUYA Notice][tuye_light_lib.c:1371]▒22222▒:10:3  G:▒▒▒▒{▒?▒▒▒▒_?                                                                                   =▒?▒▒▒▒▒o▒▒▒▒Uu▒owmcu][vuya_device.c:157] -----check_reset_cnt----- 0 0
    [01-01 18:12:15 TUYA Notice][simple_flash.c:401] key_addr: 0x1e7000   block_sz 4                                                                                   096
    [01-01▒O▒▒▒▒▒▒▒Uu▒▒▒ݵ▒▒um▒▒▒}▒▒;▒7]▒mf_init succ
    [01-01 18:1▒:15 TUYA Notice][tuya_light_lib.c:6535] wifi statue 0
    [01-01 18:12:15 TUYA Notice][tuya_light_hard.c:738] wf config low▒mode
    _01-01 18:12:15 TUYA!No▒▒▒um▒▒u▒ݵ▒▒{▒▒▒▒▒}▒▒▒}▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒r▒r▒▒
                                                                      U▒▒▒▒▒▒▒▒Ҋ▒Ң▒Ҋ                                                                                   ▒j▒▒Hh▒j▒▒▒▒Ҋ▒Ҋ▒▒U▒
                       ▒▒WkVV▒E▒▒}▒▒٥▒▒▒▒�▒▒▒U▒
                                               )▒▒*▒)$▒'&)▒I▒▒*'ML▒▒0_PT:2.2_LAN:3.3                                                                                   ▒< BUILD AT:2020_09_10_14_41_46 FY▒um{uw▒wk▒▒_▒_▒w_▒▒_▒wk▒}W▒oo??3~>>
    IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:2 E                                                                                   NABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEE                                                                                   R_TO_NO▒M▒L:0 OPERATMNG_S][Wum▒▒▒▒▒▒▒▒mu[_[_{▒?▒w▒_[u{U[mW]_{OI^:<0RELIABLE_TRAN                                                                                   SFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 ENABLE_LAN_LINKAGE:0 ENABLE_LAN_L                                                                                   INKAGE_MASTER:0 >
    
    [01-01 18:12:15 TUYA Notice][t}ya_light_qrod.c:2008] prod mode = 0▒ aw[▒▒mmu▒▒▒▒                                                                                   ▒▒[▒▒u▒▒▒▒{m_mofe=2, GWCM_OLD=0
    [01-01 18:12:15 TUYA Notice][tuya_main.c:107] current product ssid name:tuya_}de                                                                                   {{▒Di▒connected.
    tm▒▒▒▒▒▒▒ݽ▒{{▒HwEr:UKI:0
    [01-01 18:12:17 TUYA Notice][tuya_main.c:110] ww_}▒▒m▒}▒▒}▒{}▒▒▒ݽ▒=?=▒=▒▒▒▒▒[01-                                                                                   01 18:12z17 TUYA Notice][gw_intf.c:3761] serial_no is not set
    [01-01 18:12:17 TUYA Notice_[gw_intf.c:3787] gw_cntl.gw_w▒m▒▒▒}▒▒~▒▒▒{?=▒?▒▒▒▒▒▒                                                                                   WUW_z▒ݥ͕um▒▒}▒▒љ▒▒▒ͺʂ▒:▒}▒▒ѱ▒▒▒}▒͵▒r▒}▒▒▒▒
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3791] gw_cntl.gw_wsm.md:0
    [?=▒▒▒▒=▒▒▒wU▒}▒▒ݵ▒▒um▒▒}▒▒ٙ▒▒▒▒ʚ▒ꁟ▒}▒▒ѱ▒▒▒}▒▒▒
                                                   ▒▒▒J▒▒▒▒▒j▒▒Hh▒j▒▒▒▒Ҋ▒Ҋ▒▒U▒
                                                                              ▒▒WkVV                                                                                   ▒u▒}▒▒љ▒▒�▒▒:▒}▒▒ѱ▒:▒}▒▒▒▒ɽ▒Ս▒}▒▒▒▒ҙ▒▒▒▒▒ʹ▒قͪ▒▒J▒▒▒▒▒▒▒▒▒ʹ▒▒▒ͪ▒5jj▒▒▒j▒▒▒▒Ҋ▒Ҋ▒▒Ue▒                                                                                   r▒ѥ▒▒um▒▒}▒▒љ▒▒▒▒▒}▒o▒▒}▒ݽ▒▒▒▒?▒▒▒▒[01-01 18:12:17 TUYA Err_[tuya_adapter_platfo                                                                                   rm.c:396] tuya_light_reg_get_wf_nw_stat_cb err:269268420
    [?=▒?O▒▒▒▒▒▒▒▒▒Uu▒m{▒_▒__▒}▒▒ݹ▒}▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒}▒▒▒▒▒}▒х▒с▒▒▒▒j▒▒H▒[01-01 1x:12                                                                                   :18 TUYA Notm▒W▒u▒_▒▒ݽ▒}▒▒▒ݽ▒▒▒}▒▒w▒{oogmw?oow>mode
    
    


    I've tried CH340 and PL serial adaptors. The CH340 doesn't seem to register any output at all. I'm not sure my external 3.3v is pushing enough current because I only get the log out when using a DC jack.

    I'm off home for Christmas now so won't be able to do anything more for a week or so. I could order another one too in case I have half-killed this one

    Added after 8 [hours] 46 [minutes]:

    I've ordered another one.

    I might cannibalise this one for its IR and transplant into the Energizer controller. https://www.elektroda.com/rtvforum/topic4020505.html
  • #8 20872183
    p.kaczmarek2
    Moderator Smart Home
    That's interesting, but I can't see SDK name there, only date: 2020_09_10_14_41_46
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 20874237
    divadiow
    Level 34  

    Interesting. I just came across this thread https://www.elektroda.com/rtvforum/topic4008545.html#20824130 and noticed that @sithyoda also had trouble getting a boot log with any baud rate.

    I notice the SDK is for LN882xx, so looks like it would also cover this variant.

    (Subheading in GitHub is "LN882H (LN882x family, H series) WiFi&BLE Combo*

    I'll keep an eye on the thread for any progress with these chips.
  • ADVERTISEMENT
  • #10 20898850
    divadiow
    Level 34  
    may be of less interest now with the progress in the other thread about the LN882H, but I managed to get a legible boot output from RX0/TX0

    
    interface 0 is initialized
    interface 1 is initialized
    [01-01 18:12:15 TUYA Info][mqc_app.c:175] mqc app init ...
    [01-01 18:12:15 TUYA Debug][uni_thread.c:218] Thread:sys_timer Exec Start. Set to Running Status
    [01-01 18:12:15 TUYA Debug][uni_thread.c:218] Thread:cmmod Exec Start. Set to Running Status
    [01-01 18:12:15 TUYA Info][sf_mqc_cb.c:42] register mqc app callback
    [01-01 18:12:15 TUYA Debug][mqc_app.c:118] mq_pro:5 mqc_handler_cnt:1
    [01-01 18:12:15 TUYA Debug][mqc_app.c:118] mq_pro:31 mqc_handler_cnt:2
    [01-01 18:12:15 TUYA Err][log_seq.c:848] log stats ufread fail, log status is empty
    [01-01 18:12:15 TUYA Debug][svc_online_log.c:290] svc online log init success
    [01-01 18:12:15 TUYA Notice][tuya_device.c:205] USER SET LOG_LEVEL_NOTICE
    
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:6792] ==== tuya light lib version:1.0.2 ====
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:2799] ------------- 728
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:1364] R:0  G:0   B:1023
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:1371] 22222R:0  G:0   B:1023
    [01-01 18:12:15 TUYA Notice][tuya_device.c:157] -----check_reset_cnt----- 0 0
    [01-01 18:12:15 TUYA Notice][simple_flash.c:401] key_addr: 0x1e7000   block_sz 4096
    [01-01 18:12:15 TUYA Notice][tuya_main.c:267] mf_init succ
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:6535] wifi statue 0
    [01-01 18:12:15 TUYA Notice][tuya_light_hard.c:738] wf config low mode
    [01-01 18:12:15 TUYA Notice][tuya_device.c:279] ln_rgb_zfbdpln1ynr6p3um:1.0.1:Aug  9 2021:18:49:11
    [01-01 18:12:15 TUYA Notice][tuya_device.c:280] < TUYA IOT SDK V:2.1.2 BS:40.00_PT:2.2_LAN:3.3_CAD:1.0.2_CD:1.0.0 >
    < BUILD AT:2020_09_10_14_41_46 BY embed FOR ty_iot_wf_rtos_sdk AT ln882x >
    IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:2 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 ENABLE_LAN_LINKAGE:0 ENABLE_LAN_LINKAGE_MASTER:0 >
    
    [01-01 18:12:15 TUYA Notice][tuya_light_prod.c:2008] prod mode = 0, aging time = 0
    [user_main, 277]gwcm_mode=2, GWCM_OLD=0
    [01-01 18:12:15 TUYA Notice][tuya_main.c:107] current product ssid name:tuya_mdev_test1
    Disconnected.
    Disconnected.
    HwEr:UKI:0
    [01-01 18:12:17 TUYA Notice][tuya_main.c:110] wf_assign_ap_scan failed(-10161)
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3761] serial_no is not set
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3787] gw_cntl.gw_wsm.stat:0
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3790] gw_cntl.gw_wsm.nc_tp:0
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3791] gw_cntl.gw_wsm.md:0
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3831] gw_cntl.gw_if.abi:0 input:0
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3832] gw_cntl.gw_if.product_key:zfbdpln1ynr6p3um, input:zfbdpln1ynr6p3um
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3833] gw_cntl.gw_if.tp:0, input:0
    [01-01 18:12:17 TUYA Err][tuya_adapter_platform.c:396] tuya_light_reg_get_wf_nw_stat_cb err:269268420
    [01-01 18:12:17 TUYA Notice][tuya_light_lib.c:6559] ==== tuya_light_start ====
    [01-01 18:12:18 TUYA Notice][tuya_light_hard.c:738] wf config low mode
    
    
  • #11 20901187
    p.kaczmarek2
    Moderator Smart Home
    LN882H is almost supported and I need to get LN882H ASAP. I don't know how similiar LN8825B is, is this compatible with LN882H? Do anyone know?

    This fragment:
    
    < BUILD AT:2020_09_10_14_41_46 BY embed FOR ty_iot_wf_rtos_sdk AT ln882x >
    

    seems to suggest that they may be similiar.

    Have you tried to dump this chip memory with LN882H approach? @sweetlilmre you know a method of dumping, right?
    Helpful post? Buy me a coffee.
  • #13 20918517
    p.kaczmarek2
    Moderator Smart Home
    Do you think that LN882H build may be compatible with that? We can always take a risk and try to flash it.
    Helpful post? Buy me a coffee.
  • #14 20918530
    divadiow
    Level 34  

    I have two LN8825Bs and I'm not bothered about killing them in order to experiment :)

    I have flashed the LN882H image posted in the Elivco thread a few days ago. Sadly, no OpenLN AP. I am erasing flash before flashing. :(

    Unless I'm doing it wrong. J-Link says flash successful. I'm using the LN882x jflash project from one of the FTP dumps.
  • #15 21023961
    divadiow
    Level 34  
    I've now managed to flash an LN8825B over UART using an official flasher GUI. You have to pull A10 down. I scratched the trace for A10 on this same LED controller as there are no A10 pads. Perhaps expectedly, LN882H OBK does not boot.

    Screenshot of the LN Serial Downloader program showing serial ports and log history.

    LN8825B microcontroller on a PCB with pin A10 marked.

    Close-up of a circuit board with LN8825B chip and connected wires.
  • Helpful post
    #16 21024157
    p.kaczmarek2
    Moderator Smart Home
    That's very good news! Let's try some SDKs, shall we?
    https://gitee.com/lightningsemi/ln882x-mcu
    Screen of the cloning process of the ln882x-mcu repository.
    Still, it doesn't seem complete...
    
    $ ./build.sh build mcu_no_os_xip_sample
    argv[0]:./build.sh
    argv[1]:build
    mkdir build
    -- The C compiler identification is GNU 11.3.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /usr/bin/cc
    -- The CXX compiler identification is GNU 11.3.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- PROJECT:wifi_mcu_develop
    -- CMAKE_SOUECE_DIR:/cygdrive/w/GIT/ln882x-mcu
    -- Building project:firmware_XIP
    -- Build type: Debug
    CMake Error at CMakeLists.txt:35 (include):
      include could not find requested file:
    
        /cygdrive/w/GIT/ln882x-mcu/project/wifi_mcu_develop/gcc/gcc-arm-none-eabi.cmake
    
    
    CMake Error at CMakeLists.txt:36 (include):
      include could not find requested file:
    
        /cygdrive/w/GIT/ln882x-mcu/project/wifi_mcu_develop/gcc/target-def.cmake
    
    
    CMake Error at CMakeLists.txt:43 (include):
      include could not find requested file:
    
        /cygdrive/w/GIT/ln882x-mcu/project/wifi_mcu_develop/gcc/gcc-flags.cmake
    
    
    CMake Error at CMakeLists.txt:59 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/net/lwip-2.0.3/src" which is not an
      existing directory.
    
    
    CMake Error at CMakeLists.txt:60 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/net/iperf" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:61 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/net/ping" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:62 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/net/dhcpd" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:63 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/kernel" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:64 (add_subdirectory):
      add_subdirectory given source "/cygdrive/w/GIT/ln882x-mcu/components/fs/kv"
      which is not an existing directory.
    
    
    CMake Error at CMakeLists.txt:65 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/fs/nvds" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:66 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/fs/partition_mgr" which is not an
      existing directory.
    
    
    CMake Error at CMakeLists.txt:67 (add_subdirectory):
      add_subdirectory given source "/cygdrive/w/GIT/ln882x-mcu/components/atcmd"
      which is not an existing directory.
    
    
    CMake Error at CMakeLists.txt:68 (add_subdirectory):
      add_subdirectory given source "/cygdrive/w/GIT/ln882x-mcu/components/wifi"
      which is not an existing directory.
    
    
    CMake Error at CMakeLists.txt:69 (add_subdirectory):
      add_subdirectory given source "/cygdrive/w/GIT/ln882x-mcu/components/fota"
      which is not an existing directory.
    
    
    CMake Error at CMakeLists.txt:70 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/project/wifi_mcu_develop" which is not an
      existing directory.
    
    
    -- Configuring incomplete, errors occurred!
    See also "/cygdrive/w/GIT/ln882x-mcu/build/CMakeFiles/CMakeOutput.log".
    

    Wait, I've got something more complete:
    https://github.com/openshwprojects/ln882x-sdk
    I am not even sure if it's for LN8825 as well, but I will try...
    Helpful post? Buy me a coffee.
  • #17 21024176
    divadiow
    Level 34  
    exciting!

    ready to flash whatever can be made. I'm trying to find a test/demo bin of something else to flash to be sure this chip still works. I've flashed back the factory dump of this device taken using jlink, but it doesn't seem to be booting. LN8825B is the device you have too.

    Still, I don't see LN8825B in use much. The LN engineer says they only ship dev boards to China but they did link to this product

    https://item.taobao.com/item.htm?id=768439707...26152495.1.27133bfdu34uX3&skuId=5274297133333

    which I assume is an LN chip module.

    Electronic module on a Taobao webpage.

    I'm wondering if it's pin-compatible with something - ESP-12F? - and could be used in a NodeMCU transplant.

    Added after 16 [minutes]:

    hires image of that module

    Electronic module with a green PCB and visible traces.
  • #18 21024297
    divadiow
    Level 34  
    MQ-12F dual-mode module labeled WiFi/BLE.

    Illustration of an integrated circuit with pin labels. Table showing pin functions of LN8825B.

    https://blog.csdn.net/mqlinks/article/details/136698831

    Added after 1 [hours] 40 [minutes]:

    ordered a couple + W800. see what comes.

    Order list of two electronic products from Pandabuy warehouse.

    Added after 6 [hours] 46 [minutes]:

    Here is the LN8825B flash tool and a gif supplied by the Lightning Semi engineer.

    This tool is in English. It is a different program to the LN882H GUI flasher.
    Screenshot of Windows File Explorer with an open folder showing files including LN-Serial-Downloader-GUI.exe.
  • ADVERTISEMENT
  • #19 21025296
    divadiow
    Level 34  
    p.kaczmarek2 wrote:
    but I will try...


    Any joy @p.kaczmarek2 ?
  • #20 21029890
    divadiow
    Level 34  
    no, LN8825B cannot be flashed with the LN882H flasher

    Added after 41 [minutes]:

    actually, there was no need to reveal A10 trace. There is of course a test pad for A10

    Close-up of a PCB with a probe pointing at a test pad labeled A10.

    Added after 39 [minutes]:

    don't know what's in these bins but some are definitely booting. there are a few LN8825x firmwares in the Lightning Semi FTP dumps

    Screenshot of a file list with binary files in a directory.

    The RF test bins do boot. I can tell RF is active because my PSU only registers enough current in use when RF is active. The bin "flashimage-connection_ln8825_20201019.bin" is the only one I've seen a uart log output for so far

    Screenshot with the message Console init ok! on a black background.

    At least I know my chip can boot and RF probably works. Haven't seen any visible SSIDs though
  • #21 21039376
    divadiow
    Level 34  
    p.kaczmarek2 wrote:
    Wait, I've got something more complete:
    https://github.com/openshwprojects/ln882x-sdk
    I am not even sure if it's for LN8825 as well, but I will try...


    @p.kaczmarek2 did this one fail too?

    There's also this which seems to have more files, though not all. it says LN8825X AND LN882H

    Screenshot displaying the SDK name ln882h and a description including LN882H (LN882x family, H series) WiFi&BLE Combo.
  • Helpful post
    #23 21067377
    divadiow
    Level 34  
    from the same company - My Quick Links - MQLinks - who are selling the LN882H MQ-12F on Taobao, here are some more resources for their older LN8825B modules

    Screenshot showing folder hierarchy for LN8825B firmware.

    http://mqlinks.tpddns.cn:1888/DirectoryLister/?dir=WIFI\M0L1_LN8825

    I have flashed \M0L1_LN8825\firmware\at_uart\v1.3.1.006\at_mylinks_uart_pro.bin to the LN8825B LED controller and I get the following in uart log

    Screenshot of UART log messages from the LN8825B controller.

    Next I'll probably try getting it into AP mode with AT commands.

    I attach a zip of the whole M0L1_LN8825 folder in case it becomes unavailable
  • Helpful post
    #24 21067448
    p.kaczmarek2
    Moderator Smart Home
    Yes, try to get some AT commands working, preferrably with source code, that can be a good base to start OBK port.

    I am currently doing WS2812B stuff for OpenBeken but once I finish, I can consider looking into LN8825B.
    Helpful post? Buy me a coffee.
  • #25 21068396
    divadiow
    Level 34  
    p.kaczmarek2 wrote:
    Yes, try to get some AT commands working


    :/

    nothing yet

    Screenshot of Uart Assistant software displaying data log and command sending.

    Error code list with highlighted code and message.

    Added after 8 [minutes]:

    ooh. -1s now with auto append checked

    Screenshot of UartAssist v5.0.3 interface showing COM settings and data log.
  • #27 21074840
    p.kaczmarek2
    Moderator Smart Home
    VDD/GND footprint matches TYWE3S/WB3S/CB3S/etc, does UART port also match?
    Helpful post? Buy me a coffee.
  • #28 21074899
    divadiow
    Level 34  
    scrambles my brain for some reason mapping pins around.

    this is LN882H vs LN8825B. LN882H (ESP-12F dimensions module MQ-12F)

    both UART sets are available on the LN8825B module but one set does not match.

    Comparison of LN882H and LN8825B modules with pins labeled on a black PCB and green module.

    Added after 26 [minutes]:

    Can't find the SCW-T503, MOL100D0 MOL100P0 for sale anywhere.
  • #29 21243200
    divadiow
    Level 34  
    not that there's much to be gained from it, apart from the experience doing it, I've bought some of these QFN32 .5 pitch boards to transplant the LN8825B chip from the LED controller onto. I'll post success/failure in due course! Wish me luck

    QFN32 adapter board with an integrated chip, displayed with the Jessinie logo.

    Close-up of a circuit board with an LN8825B chip and path markings.
  • #30 21243222
    p.kaczmarek2
    Moderator Smart Home
    Ambitious idea, do you plan to use hot air for that or.. what kind of approach? Also, LN requires a crystal oscillator, or doesn't it?
    Helpful post? Buy me a coffee.

Topic summary

The Heruled Tuya WiFi Smart LED Controller is based on the Lightning Semiconductor LN8825B chip, which is relatively undocumented and unsupported in common forums. Initial attempts to identify or flash the device failed due to lack of SDK and boot log access, possibly caused by reversed power polarity damaging the unit. Subsequent efforts revealed partial UART boot logs indicating a Tuya RTOS SDK dated 2020, suggesting similarity to the LN882x family, including the LN882H WiFi&BLE combo chip. Attempts to flash LN882H firmware onto LN8825B devices were unsuccessful, confirming incompatibility. Official LN8825B flashing tools and firmware dumps from Lightning Semiconductor FTP were found, with some RF test binaries booting and producing UART output, though no visible WiFi SSIDs appeared. Resources and firmware for LN8825B modules MOL100D0 and MOL100P0 were shared, including AT command firmware enabling UART interaction. Hardware transplant experiments involve desoldering the LN8825B QFN32 chip for prototyping, requiring a 40 MHz crystal oscillator and proper power supply decoupling with 100nF capacitors on multiple 3.3V power pins (VDD33, VDDA33, VIO1, VIO2). Pinouts differ from LN882H modules, complicating direct hardware swaps. Community members are exploring SDKs from Lightning Semiconductor's gitee repository and other sources, though some links are dead or restricted. Overall, the LN8825B chip remains challenging for custom firmware development and hardware hacking, but progress is ongoing with shared firmware dumps, flashing tools, and hardware reverse engineering.
Summary generated by the language model.
ADVERTISEMENT