logo elektroda
logo elektroda
X
logo elektroda

RDA 5981AM/Broadlink BL3335-P - Generic/nobrand 15W RGBW B22 Bulb - basic teardown

Altirix 2346 176
ADVERTISEMENT
  • #31 21698772
    divadiow
    Level 36  
    insmod wrote:
    What about earlier, AP only version?


    ah, nothing for quite a few resets, but actually just had this:

    Code: Text
    Log in, to see the code


    no difference if flashed to 0x1000 or 0x18001000 (if that can even be expected to make a difference to flash tool)


    insmod wrote:
    It probably is, if you have a backup. It has ROM bootloader.


    will erase BL3335-P so at least HLK is OK if it kills it
  • ADVERTISEMENT
  • #33 21698784
    divadiow
    Level 36  
    divadiow wrote:
    will erase BL3335-P so at least HLK is OK if it kills it

    maybe not

    RDA 5981AM/Broadlink BL3335-P - Generic/nobrand 15W RGBW B22 Bulb - basic teardown

    insmod wrote:
    https://github.com/NonPIayerCharacter/OpenBK7...actions/runs/17967349164/artifacts/4090176570


    Code: Text
    Log in, to see the code


    not seeing BL text now

    Added after 3 [minutes]:

    divadiow wrote:
    not seeing BL text now

    oh, duh.

    IO21 high = BL text (+sometimes OBK app text if not silenced for some reason), floating = OBK app text, no BL

    Added after 7 [minutes]:

    for the record BL3335-P needs IO21 high for RDA Flash Tool to catch at all. IO21 doesn't have to be kept high. Sewing needle job on pin.

    HLK-M50 does not need IO21 high to flash - will flash with it high or floating.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #35 21698799
    divadiow
    Level 36  
    >>21698791

    Code: Text
    Log in, to see the code


    erase from 0x1000 now performed every flash too

    Settings window with options for baud rate, flash memory erase address and size
  • #37 21698822
    divadiow
    Level 36  
    insmod wrote:
    https://github.com/NonPIayerCharacter/OpenBK7...actions/runs/17967936684/artifacts/4090356794

    Code: Text
    Log in, to see the code


    Added after 1 [minutes]:

    insmod wrote:
    but i need backup with AT firmware that has booted at least once

    2s. see if I can get it to join wifi. office day, so have to leave shortly
  • #43 21699872
    divadiow
    Level 36  
    insmod wrote:
    Continuing grasping at straws



    ooh

    Code: Text
    Log in, to see the code
  • #45 21699878
    divadiow
    Level 36  
    Code: Text
    Log in, to see the code
  • #47 21699881
    divadiow
    Level 36  
    Code: Text
    Log in, to see the code
  • ADVERTISEMENT
  • #49 21699889
    divadiow
    Level 36  
    omg
    Code: Text
    Log in, to see the code


    OpenRDA5981 configuration panel with buttons: Config, Restart, Launch Web Application, About
    Pin configuration interface for OpenRDA5981 device with role and channel assignments

    here is save wifi creds and reboot. stays in AP mode

    Code: Text
    Log in, to see the code


    gui is available for a few seconds before dying
  • #51 21699897
    divadiow
    Level 36  
    insmod wrote:
    Did you check if pins/pwm/tuyamcu works?

    negative can't get to gui long enough to do much.

    works= driver starts, pins save and can be toggled without crashing or actual works with LEDs, TMDA simulator etc?

    insmod wrote:
    https://github.com/NonPIayerCharacter/OpenBK7231T_App/actions/runs/17997365111

    Code: Text
    Log in, to see the code


    despite free mem gui still dies.

    Code: Text
    Log in, to see the code


    Added after 4 [minutes]:

    Screenshot of OpenRDA5981 tool interface showing tuyamcu debug command list

    uart log stops, uart LED flashing on ESP adaptor. will try uart switch
  • #53 21699903
    divadiow
    Level 36  
    insmod wrote:
    https://github.com/NonPIayerCharacter/OpenBK7231T_App/actions/runs/17997637549

    Added after 1 [minutes]:

    I see config save is working. Does it connect to wifi?


    I'm afraid no. 2 tries. comes up as AP

    Code: Text
    Log in, to see the code
  • #55 21699916
    divadiow
    Level 36  
    no sta still. or startup commands save

    Spoiler:

    RDA Boot ROM for RDA5991H r550
    Build Time: 15:50:19 - May 10 2017
    RDA Microelectronics Copyright(C) 2004-2017

    Enter Mcu Mode
    count_left=5
    count_left=4
    count_left=3
    count_left=2
    count_left=1
    Ready to boot...
    Partition addr:4010901c
    Find newest partition index:0, total:1, buf_addr:0x00100000, size:0x00000138
    Partition[0] info
    flag:00000001, version:rda5991h
    p_address:00001000, r_address:00001000, psize_in_bytes:0x0007e000, dsize_in_byte j $----------------maclib task
    OpenRDA5981, version _gcc6
    Entering initLog()...
    Commands registered!
    initLog() done!
    Warning: Sector header check failed. Format this sector (0x140fc000).
    Debug:CMD:Adding command loglevel
    Debug:CMD:Adding command logfeature
    Debug:CMD:Adding command logtype
    Debug:CMD:Adding commEasyFlash V4.1.0 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    and logdelay
    Info:MAIN:Main_Init_Before_Delay
    Debug:CFG:ReadFlashVars: will read 64 bytes
    Debug:CFG:ReadFlashVars: really loaded 64 bytes
    Debug:CFG:SaveFlashVars: saved 64 bytes
    Debug:CFG:CFG_CalcChecksum: header size 4, total size 3584, rem size 3580
    Warn:CFG:CFMain_Init_Before_Delay done
    Main_Init_Delay
    Main_Init_Delay done
    ues
    Debug:CMD:Adding command setButtonTimes
    Debug:CMD:Adding command setButtonHoldRepeat
    Debug:CMD:Adding command setStartupD:Adding command led_nextColor
    Debug:CMD:Adding command led_lerpSpeed
    Debug:CMD:Adding command HSBColor
    Debug:CMD:Adding command HSBColor1
    Debug:CMD:Adding command HSBColor2
    Debug:CMD:Adding command HSBColor3
    Debug:CMD:Adding command led_finishFullLerp
    Debug:CMD:Adding command led_gammaCtrl
    Debug:CMD:Adding command CTRange
    Debug:CMD:Adding command DimmerDelta
    Debug:CMD:Adding command led_saveInterval
    Debug:CMD:Adding command SPC
    Debug:CMD:Adding command SetChannel
    Debug:CMD:Adding command SetFlash
    Debug:CMD:Adding command SetChannelFloat
    Debug:CMD:Adding command ToggleChannel
    Debug:CMD:Adding command AddChannel
    Debug:CMD:Adding command ClampChannel
    Debug:CMD:Adding command SetPinRole
    Debug:CMD:Adding command SetPinChannel
    Debug:CMD:Adding command GetChannel
    Debug:CMD:Adding command GetReadings
    Debug:CMD:Adding command ShortName
    Debug:CMD:Adding command FriendlyName
    Debug:CMD:Adding command PinDeepSleep
    Debug:CMD:Adding command FullBootTime
    Debug:CMD:Adding command SetChannelLabel
    Debug:CMD:Adding command MapRanges
    Debug:CMD:Adding command Map
    Debug:CMD:Adding command SetChannelVisible
    Debug:CMD:Adding command SetChannelPrivate
    Debug:CMD:Adding command Ch
    Debug:CMD:Adding command AddEventHandler
    Debug:CMD:Adding command AddChangeHandler
    Debug:CMD:Adding command listEventHandlers
    Debug:CMD:Adding command clearAllHandlers
    Debug:CMD:Adding command alias
    Debug:CMD:Adding command echo
    Debug:CMD:Adding command restart
    Debug:CMD:Adding command reboot
    Debug:CMD:Adding command clearConfig
    Debug:CMD:Adding command clearIO
    Debug:CMD:Adding command clearAll
    Debug:CMD:Adding command DeepSleep
    Debug:CMD:Adding command PowerSave
    Debug:CMD:Adding command if
    Debug:CMD:Adding command ota_http
    Debug:CMD:Adding command scheduleHADiscovery
    Debug:CMD:Adding command flags
    Debug:CMD:Adding command SetFlag
    Debug:CMD:Adding command ClearNoPingTime
    Debug:CMD:Adding command SetStartValue
    Debug:CMD:Adding command OpenAP
    Debug:CMD:Adding command DSEdge
    Debug:CMD:Adding command SafeMode
    Debug:CMD:Adding command StartupCommand
    Debug:CMD:Adding command Choice
    Debug:CMD:Adding command PWMFrequency
    Debug:CMD:Adding command IndexRefreshInterval
    Debug:CMD:Adding command startScript
    Debug:CMD:Adding command stopScript
    Debug:CMD:Adding command stopAllScripts
    Debug:CMD:Adding command listScripts
    Debug:CMD:Adding command goto
    Debug:CMD:Adding command delay_s
    Debug:CMD:Adding command delay_ms
    Debug:CMD:Adding command return
    Debug:CMD:Adding command resetSVM
    Debug:CMD:Adding command waitFor
    Debug:CMD:cmd [exec early.bat]
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID []
    Info:MAIN:Using Pass []
    Debug:MAIN:Started http tcp server
    Info:MQTT:MQTT_RegisterCallback called for bT rda5981F3FF0000/ subT rda5981F3FF0000/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT obks/ subT obks/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/rda5981F3FF0000/ subT cmnd/rda5981F3FF0000/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obks/ subT cmnd/obks/+
    Info:MQTT:MQTT_RegisterCallback called for bT rda5981F3FF0000/ subT rda5981F3FF0000/+/get
    Info:MQTT:MQTT_RegisterCallback called for bT homeassistant/ subT homeassistant/+
    Debug:CMD:Adding command publish
    Debug:CMD:Adding command publishInt
    Debug:CMD:Adding command publishFloat
    Debug:CMD:Adding command publishAll
    Debug:CMD:Adding command publishChannel
    Debug:CMD:Adding command publishChannels
    Debug:CMD:Adding command publishBenchmark
    Debug:CMD:Adding command mqtt_broadcastInterval
    Debug:CMD:Adding command mqtt_broadcastItemsPerSec
    Debug:CMD:Adding command TasTeleInterval
    Debug:CMD:Adding command publishDriver
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Debug:CMD:cmd [startScript autoexec.bat]
    Info:CMD:CMD_StartScript: failed to get file autoexec.bat
    Info:MAIN:Main_Init_After_Delay done
    ExtraDebug:HTTP:Socket bound on 0.0.0.0:80
    Info:HTTP:TCP server listening
    Info:MAIN:Time 1, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 2, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 3, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 4, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    set_network_ap,enter

    mark ip 1

    ip_table.ip_range[0] = 0x1

    mark ip 1

    ip_table.ip_range[0] = 0x1
    Info:MAIN:Time 5, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 6, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Boot complete time reached (5 seconds)
    Debug:CFG:SaveFlashVars: saved 64 bytes
    Info:MAIN:Time 7, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 8, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 9, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    stamac=38:7a:0e:e3:6b:7e,ip=0.0.0.0

    mark ip 2

    ip_table.ip_range[0] = 0x3
    Info:MAIN:Time 10, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Debug:GEN:+--------------- net device info ------------+
    Debug:GEN:|netif type : AP |
    Debug:GEN:|netif rssi = -128 |
    Debug:GEN:|netif ip = 192.168.4.1 |
    Debug:GEN:|netif mask = 255.255.255.0 |
    Debug:GEN:|netif gateway = 192.168.4.1 |
    Debug:GEN:|netif mac : [2e] |
    Debug:GEN:+--------------------------------------------+
    Info:MAIN:Time 11, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 12, idle 0/s, free 53019, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/4
    stamac=38:7a:0e:e3:6b:7e,ip=192.168.4.2
    staconflag=1
    option_start=msg_type,staconflag=1

    mark ip 2

    ip_table.ip_range[0] = 0x3
    Error:HTTP:TCP Client is disconnected, fd: 3
    Info:MAIN:Time 13, idle 0/s, free 57115, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 14, idle 0/s, free 36635, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/4
    Info:MAIN:Time 15, idle 0/s, free 36635, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/4
    Info:MAIN:Time 16, idle 0/s, free 36635, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/4
    Info:MAIN:Time 17, idle 0/s, free 36635, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/4
    Info:HTTP:HTTP_ProcessPacket: generating cfg_wifi_set
    Debug:CFG:CFG_CalcChecksum: header size 4, total size 3584, rem size 3580
    Info:MAIN:Time 18, idle 0/s, free 28443, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/4
    Info:MAIN:Module reboot in 2...
    Info:MAIN:Time 19, idle 0/s, free 28443, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/4
    Info:MAIN:Module reboot in 1...

    RDA Boot ROM for RDA5991H r550
    Build Time: 15:50:19 - May 10 2017
    RDA Microelectronics Copyright(C) 2004-2017

    Enter Mcu Mode
    count_left=5
    count_left=4
    count_left=3
    count_left=2
    count_left=1
    Ready to boot...
    Partition addr:4010901c
    Find newest partition index:0, total:1, buf_addr:0x00100000, size:0x00000138
    Partition[0] info
    flag:00000001, version:rda5991h
    p_address:00001000, r_address:00001000, psize_in_bytes:0x0007e000, dsize_in_byte j (----------------maclib task
    OpenRDA5981, version _gcc6
    Entering initLog()...
    Commands registered!
    initLog() done!
    Warning: Sector header check failed. Format this sector (0x140fc000).
    Warning: Sector header check failed. Format this sector (0x140fd000).
    Debug:CMD:Adding command loglevel
    Debug:CMD:Adding command logfeature
    Debug:CMD:Adding command logtype
    Debug:CMD:Adding commEasyFlash V4.1.0 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    and logdelay
    Info:MAIN:Main_Init_Before_Delay
    Debug:CFG:ReadFlashVars: will read 64 bytes
    Debug:CFG:ReadFlashVars: really lom: header size 4, total size 3584, rem size 3580
    Debug:CMD:Adding command startDriver
    Debug:CMD:Adding command stopDriver
    DeMain_Init_Before_Delay done
    Main_Init_Delay
    Main_Init_Delay done
    D:Adding command led_nextColor
    Debug:CMD:Adding command led_lerpSpeed
    Debug:CMD:Adding command HSBColor
    Debug:CMD:Adding command HSBColor1
    Debug:CMD:Adding command HSBColor2
    Debug:CMD:Adding command HSBColor3
    Debug:CMD:Adding command led_finishFullLerp
    Debug:CMD:Adding command led_gammaCtrl
    Debug:CMD:Adding command CTRange
    Debug:CMD:Adding command DimmerDelta
    Debug:CMD:Adding command led_saveInterval
    Debug:CMD:Adding command SPC
    Debug:CMD:Adding command SetChannel
    Debug:CMD:Adding command SetFlash
    Debug:CMD:Adding command SetChannelFloat
    Debug:CMD:Adding command ToggleChannel
    Debug:CMD:Adding command AddChannel
    Debug:CMD:Adding command ClampChannel
    Debug:CMD:Adding command SetPinRole
    Debug:CMD:Adding command SetPinChannel
    Debug:CMD:Adding command GetChannel
    Debug:CMD:Adding command GetReadings
    Debug:CMD:Adding command ShortName
    Debug:CMD:Adding command FriendlyName
    Debug:CMD:Adding command PinDeepSleep
    Debug:CMD:Adding command FullBootTime
    Debug:CMD:Adding command SetChannelLabel
    Debug:CMD:Adding command MapRanges
    Debug:CMD:Adding command Map
    Debug:CMD:Adding command SetChannelVisible
    Debug:CMD:Adding command SetChannelPrivate
    Debug:CMD:Adding command Ch
    Debug:CMD:Adding command AddEventHandler
    Debug:CMD:Adding command AddChangeHandler
    Debug:CMD:Adding command listEventHandlers
    Debug:CMD:Adding command clearAllHandlers
    Debug:CMD:Adding command alias
    Debug:CMD:Adding command echo
    Debug:CMD:Adding command restart
    Debug:CMD:Adding command reboot
    Debug:CMD:Adding command clearConfig
    Debug:CMD:Adding command clearIO
    Debug:CMD:Adding command clearAll
    Debug:CMD:Adding command DeepSleep
    Debug:CMD:Adding command PowerSave
    Debug:CMD:Adding command if
    Debug:CMD:Adding command ota_http
    Debug:CMD:Adding command scheduleHADiscovery
    Debug:CMD:Adding command flags
    Debug:CMD:Adding command SetFlag
    Debug:CMD:Adding command ClearNoPingTime
    Debug:CMD:Adding command SetStartValue
    Debug:CMD:Adding command OpenAP
    Debug:CMD:Adding command DSEdge
    Debug:CMD:Adding command SafeMode
    Debug:CMD:Adding command StartupCommand
    Debug:CMD:Adding command Choice
    Debug:CMD:Adding command PWMFrequency
    Debug:CMD:Adding command IndexRefreshInterval
    Debug:CMD:Adding command startScript
    Debug:CMD:Adding command stopScript
    Debug:CMD:Adding command stopAllScripts
    Debug:CMD:Adding command listScripts
    Debug:CMD:Adding command goto
    Debug:CMD:Adding command delay_s
    Debug:CMD:Adding command delay_ms
    Debug:CMD:Adding command return
    Debug:CMD:Adding command resetSVM
    Debug:CMD:Adding command waitFor
    Debug:CMD:cmd [exec early.bat]
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID []
    Info:MAIN:Using Pass []
    Debug:MAIN:Started http tcp server
    Info:MQTT:MQTT_RegisterCallback called for bT rda5981F3FF0000/ subT rda5981F3FF0000/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT obks/ subT obks/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/rda5981F3FF0000/ subT cmnd/rda5981F3FF0000/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obks/ subT cmnd/obks/+
    Info:MQTT:MQTT_RegisterCallback called for bT rda5981F3FF0000/ subT rda5981F3FF0000/+/get
    Info:MQTT:MQTT_RegisterCallback called for bT homeassistant/ subT homeassistant/+
    Debug:CMD:Adding command publish
    Debug:CMD:Adding command publishInt
    Debug:CMD:Adding command publishFloat
    Debug:CMD:Adding command publishAll
    Debug:CMD:Adding command publishChannel
    Debug:CMD:Adding command publishChannels
    Debug:CMD:Adding command publishBenchmark
    Debug:CMD:Adding command mqtt_broadcastInterval
    Debug:CMD:Adding command mqtt_broadcastItemsPerSec
    Debug:CMD:Adding command TasTeleInterval
    ExtraDebug:HTTP:Socket bound on 0.0.0.0:80
    Debug:CMD:Adding command publishDriver
    Info:HTTP:TCP server listening
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Debug:CMD:cmd [startScript autoexec.bat]
    Info:CMD:CMD_StartScript: failed to get file autoexec.bat
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:Time 1, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 2, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 3, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 4, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    set_network_ap,enter

    mark ip 1

    ip_table.ip_range[0] = 0x1

    mark ip 1

    ip_table.ip_range[0] = 0x1
    Info:MAIN:Time 5, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 6, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Boot complete time reached (5 seconds)
    Debug:CFG:SaveFlashVars: saved 64 bytes
    Info:MAIN:Time 7, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 8, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 9, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 10, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Debug:GEN:+--------------- net device info ------------+
    Debug:GEN:|netif type : AP |
    Debug:GEN:|netif rssi = -128 |
    Debug:GEN:|netif ip = 192.168.4.1 |
    Debug:GEN:|netif mask = 255.255.255.0 |
    Debug:GEN:|netif gateway = 192.168.4.1 |
    Debug:GEN:|netif mac : [2e] |
    Debug:GEN:+--------------------------------------------+
    Info:MAIN:Time 11, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 12, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4


    Added after 2 [minutes]:

    does it save but then get wiped again?

    Code: Text
    Log in, to see the code
  • #57 21699929
    divadiow
    Level 36  
    no change

    Code: Text
    Log in, to see the code


    Added after 1 [minutes]:

    definitely shouldn't be 0x18xxxx?

    Change of EF_START_ADDR and ENV_AREA_SIZE values in C source code
  • #59 21699934
    divadiow
    Level 36  
    hmm. no change

    Spoiler:

    RDA Boot ROM for RDA5991H r550
    Build Time: 15:50:19 - May 10 2017
    RDA Microelectronics Copyright(C) 2004-2017

    Enter Mcu Mode
    count_left=5
    count_left=4
    count_left=3
    count_left=2
    count_left=1
    Ready to boot...
    Partition addr:4010901c
    Find newest partition index:0, total:1, buf_addr:0x00100000, size:0x00000138
    Partition[0] info
    flag:00000001, version:rda5991h
    p_address:00001000, r_address:00001000, psize_in_bytes:0x0007e000, dsize_in_bytes i) F C $  o0 SH Ō)G ----------------maclib task
    OpenRDA5981, version _gcc6
    Entering initLog()...
    Commands registered!
    initLog() done!
    Warning: Sector header check failed. Format this sector (0x180f5000).
    Debug:CMD:Adding command loglevel
    Debug:CMD:Adding command logfeature
    Debug:CMD:Adding command logtype
    Debug:CMD:Adding commEasyFlash V4.1.0 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    and logdelay
    Info:MAIN:Main_Init_Before_Delay
    Debug:CFG:ReadFlashVars: will read 64 bytes
    Debug:CFG:ReadFlashVars: really loaded 64 bytes
    Debug:CFG:SaveFlashVars: saved 64 bytes
    Debug:CFG:CFG_CalcChecksum: header size 4, total size 3584, rem size 3580
    Warn:CFG:CFg:CMD:Adding command listRepeatingEvents
    Debug:CMD:Adding command showgpi
    Debug:CMD:Adding command setChannelType
    Debug:CMD:Main_Init_Before_Delay done
    Main_Init_Delay
    Main_Init_Delay done
    D:Adding command led_nextColor
    Debug:CMD:Adding command led_lerpSpeed
    Debug:CMD:Adding command HSBColor
    Debug:CMD:Adding command HSBColor1
    Debug:CMD:Adding command HSBColor2
    Debug:CMD:Adding command HSBColor3
    Debug:CMD:Adding command led_finishFullLerp
    Debug:CMD:Adding command led_gammaCtrl
    Debug:CMD:Adding command CTRange
    Debug:CMD:Adding command DimmerDelta
    Debug:CMD:Adding command led_saveInterval
    Debug:CMD:Adding command SPC
    Debug:CMD:Adding command SetChannel
    Debug:CMD:Adding command SetFlash
    Debug:CMD:Adding command SetChannelFloat
    Debug:CMD:Adding command ToggleChannel
    Debug:CMD:Adding command AddChannel
    Debug:CMD:Adding command ClampChannel
    Debug:CMD:Adding command SetPinRole
    Debug:CMD:Adding command SetPinChannel
    Debug:CMD:Adding command GetChannel
    Debug:CMD:Adding command GetReadings
    Debug:CMD:Adding command ShortName
    Debug:CMD:Adding command FriendlyName
    Debug:CMD:Adding command PinDeepSleep
    Debug:CMD:Adding command FullBootTime
    Debug:CMD:Adding command SetChannelLabel
    Debug:CMD:Adding command MapRanges
    Debug:CMD:Adding command Map
    Debug:CMD:Adding command SetChannelVisible
    Debug:CMD:Adding command SetChannelPrivate
    Debug:CMD:Adding command Ch
    Debug:CMD:Adding command AddEventHandler
    Debug:CMD:Adding command AddChangeHandler
    Debug:CMD:Adding command listEventHandlers
    Debug:CMD:Adding command clearAllHandlers
    Debug:CMD:Adding command alias
    Debug:CMD:Adding command echo
    Debug:CMD:Adding command restart
    Debug:CMD:Adding command reboot
    Debug:CMD:Adding command clearConfig
    Debug:CMD:Adding command clearIO
    Debug:CMD:Adding command clearAll
    Debug:CMD:Adding command DeepSleep
    Debug:CMD:Adding command PowerSave
    Debug:CMD:Adding command if
    Debug:CMD:Adding command ota_http
    Debug:CMD:Adding command scheduleHADiscovery
    Debug:CMD:Adding command flags
    Debug:CMD:Adding command SetFlag
    Debug:CMD:Adding command ClearNoPingTime
    Debug:CMD:Adding command SetStartValue
    Debug:CMD:Adding command OpenAP
    Debug:CMD:Adding command DSEdge
    Debug:CMD:Adding command SafeMode
    Debug:CMD:Adding command StartupCommand
    Debug:CMD:Adding command Choice
    Debug:CMD:Adding command PWMFrequency
    Debug:CMD:Adding command IndexRefreshInterval
    Debug:CMD:Adding command startScript
    Debug:CMD:Adding command stopScript
    Debug:CMD:Adding command stopAllScripts
    Debug:CMD:Adding command listScripts
    Debug:CMD:Adding command goto
    Debug:CMD:Adding command delay_s
    Debug:CMD:Adding command delay_ms
    Debug:CMD:Adding command return
    Debug:CMD:Adding command resetSVM
    Debug:CMD:Adding command waitFor
    Debug:CMD:cmd [exec early.bat]
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID []
    Info:MAIN:Using Pass []
    Debug:MAIN:Started http tcp server
    Info:MQTT:MQTT_RegisterCallback called for bT rda59816EFE0000/ subT rda59816EFE0000/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT obks/ subT obks/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/rda59816EFE0000/ subT cmnd/rda59816EFE0000/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obks/ subT cmnd/obks/+
    Info:MQTT:MQTT_RegisterCallback called for bT rda59816EFE0000/ subT rda59816EFE0000/+/get
    Info:MQTT:MQTT_RegisterCallback called for bT homeassistant/ subT homeassistant/+
    Debug:CMD:Adding command publish
    Debug:CMD:Adding command publishInt
    Debug:CMD:Adding command publishFloat
    Debug:CMD:Adding command publishAll
    Debug:CMD:Adding command publishChannel
    Debug:CMD:Adding command publishChannels
    Debug:CMD:Adding command publishBenchmark
    Debug:CMD:Adding command mqtt_broadcastInterval
    Debug:CMD:Adding command mqtt_broadcastItemsPerSec
    Debug:CMD:Adding command TasTeleInterval
    Debug:CMD:Adding command publishDriver
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Debug:CMD:cmd [startScript autoexec.bat]
    Info:CMD:CMD_StartScript: failed to get file autoexec.bat
    Info:MAIN:Main_Init_After_Delay done
    ExtraDebug:HTTP:Socket bound on 0.0.0.0:80
    Info:HTTP:TCP server listening
    Info:MAIN:Time 1, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 2, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 3, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 4, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    set_network_ap,enter

    mark ip 1

    ip_table.ip_range[0] = 0x1

    mark ip 1

    ip_table.ip_range[0] = 0x1
    Info:MAIN:Time 5, idle 0/s, free 73611, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 6, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Boot complete time reached (5 seconds)
    Debug:CFG:SaveFlashVars: saved 64 bytes
    Info:MAIN:Time 7, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 8, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 9, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 10, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Debug:GEN:+--------------- net device info ------------+
    Debug:GEN:|netif type : AP |
    Debug:GEN:|netif rssi = -128 |
    Debug:GEN:|netif ip = 192.168.4.1 |
    Debug:GEN:|netif mask = 255.255.255.0 |
    Debug:GEN:|netif gateway = 192.168.4.1 |
    Debug:GEN:|netif mac : [22] |
    Debug:GEN:+--------------------------------------------+
    Info:MAIN:Time 11, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 12, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 13, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 14, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4
    Info:MAIN:Time 15, idle 0/s, free 73499, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/4


    i'll scour all the docs I've downloaded to see if there's any hint at an answer to that

    Added after 7 [minutes]:

    maybe you've been through this, but is the answer in here?

    C code snippet with memory base address definitions and conditional macro
  • #60 21699948
    divadiow
    Level 36  
    maybe this is wrong, I can't tell. but I gave gpt a load of stuff. it said this.

    Code: Text
    Log in, to see the code


    Added after 2 [minutes]:

    RDA5981C memory map showing address ranges, sizes, and usage notes

Topic summary

The discussion revolves around the Broadlink BL3335-P smart bulb, which utilizes the RDA 5981AM chip. The original poster seeks information on the device and its components after peeling off the can to reveal the chip. They mention the bulb likely originated from AliExpress and express interest in moving away from proprietary firmware. Other participants inquire about the availability of a datasheet and suggest methods for obtaining a boot log, including using an Arduino for serial communication. They also note the existence of a similar module available on AliExpress (HLK-M50) and discuss the outdated nature of the available SDKs for the RDA5981AM chip.
Summary generated by the language model.
ADVERTISEMENT