logo elektroda
logo elektroda
X
logo elektroda

[WIP] New BK7231N device - Aldi casalux smart wlan LED strip

fiobe 4095 15
ADVERTISEMENT
  • About Author
    fiobe
    Level 3  
    Offline 
    fiobe wrote 5 posts with rating 3. Been with us since 2023 year.
  • ADVERTISEMENT
  • #2 20410586
    p.kaczmarek2
    Moderator Smart Home
    Hey, good luck with flashing this device, I see you have all pins available and marked on PCB. It should be easy.
    I can also see you've found an interesting video - seems like a recording from the PCB factory. That's new to me, I wonder who released it.
    What is the marking on Q1, Q2, Q3, etc?
    Helpful post? Buy me a coffee.
  • #3 20410590
    dkayukov
    Level 2  
    Hi, I've flashed this one today. In the log on TX2, I can see that OpenBK7231T_App booted up and created AP but it is not visible. Any pointers where to look?
  • #4 20410591
    p.kaczmarek2
    Moderator Smart Home
    @dkayukov please post here full OBK log from TX2, from the earliest boot up to 30 seconds online (maybe use Realterm to capture to file).

    It's possible that new batch of BK7231N has the issue that we just resolved there:
    I flashed my switch that has a BK7231N chip on it,. Now what?
    but let's not judge too early. Let's check log first.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20410593
    dkayukov
    Level 2  
    @p.kaczmarek2 This is log output:
    
    V:BK7231N_1.0.1
    REG:cpsr     spsr     r13      r14
    SVC:000000D3          00401C1C 000033AC
    IRQ:000000d2 00000010 00401e0c 3ffbeffd
    FIR:000000d1 00000010 00401ffc fe7ffefa
    SYS:000000df          0040192c 00000158
    ST:00000000
    J 0x10000
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x414240, size:114112
    [Flash]id:0x1c7015
    sctrl_sta_ps_init
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 63 #######
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 1 changes count.
    Error:CMD:lfs is absent
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    
    Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    
    Main_Init_Delay
    
    delaying start
    bandgap_calm_in_efuse=0x39
    [load]bandgap_calm=0x39->0x19,vddig=4->5
    [FUNC]rwnxl_init
    #Startup delayed 0ms#
    
    
    [FUNC]intc_init
    [FUNC]calibration_main
    gpio_level=1,txpwr_state=15
                               user define rfcali mode:1
    get rfcali_mode:1
    #Startup delayed 10ms#
    #Startup delayed 20ms#
    #Startup delayed 30ms#
    #Startup delayed 40ms#
    #Startup delayed 50ms#
    #Startup delayed 60ms#
    #Startup delayed 70ms#
    #Startup delayed 80ms#
    #Startup delayed 90ms#
    #Startup delayed 100ms#
    #Startup delayed 110ms#
    #Startup delayed 120ms#
    #Startup delayed 130ms#
    #Startup delayed 140ms#
    #Startup delayed 150ms#
    #Startup delayed 160ms#
    #Startup delayed 170ms#
    #Startup delayed 180ms#
    #Startup delayed 190ms#
    #Startup delayed 200ms#
    #Startup delayed 210ms#
    #Startup delayed 220ms#
    #Startup delayed 230ms#
    #Startup delayed 240ms#
    #Startup delayed 250ms#
    #Startup delayed 260ms#
    #Startup delayed 270ms#
    #Startup delayed 280ms#
    #Startup delayed 290ms#
    #Startup delayed 300ms#
    #Startup delayed 310ms#
    #Startup delayed 320ms#
    #Startup delayed 330ms#
    #Startup delayed 340ms#
    #Startup delayed 350ms#
    #Startup delayed 360ms#
    #Startup delayed 370ms#
    #Startup delayed 380ms#
    #Startup delayed 390ms#
    calibration_main over
                         flash txpwr table:0xf
    #Startup delayed 400ms#
    dif g and n20 ID in flash:4
    dif g and n40 ID in flash:4
    read txpwr tab from flash success
    temp in flash is:340
    xtal in flash is:48
    xtal_cali:48
    --init_xtal = 48
                    [FUNC]ps_init
    [F#Startup delayed 410ms#
    Uartup delayed 410ms#
    start_type:0
    Version:
    Initializing TCP/IP stack
    app_init finished
    #Startup delayed 420ms#
    #Startup delayed 430ms#
    #Startup delayed 440ms#
    #Startup delayed 450ms#
    #Startup delayed 460ms#
    #Startup delayed 470ms#
    #Startup delayed 480ms#
    #Startup delayed 490ms#
    #Startup delayed 500ms#
    #Startup delayed 510ms#
    #Startup delayed 520ms#
    #Startup delayed 530ms#
    #Startup delayed 540ms#
    #Startup delayed 550ms#
    #Startup delayed 560ms#
    #Startup delayed 570ms#
    #Startup delayed 580ms#
    #Startup delayed 590ms#
    #Startup delayed 600ms#
    #Startup delayed 610ms#
    #Startup delayed 620ms#
    #Startup delayed 630ms#
    #Startup delayed 640ms#
    #Startup delayed 650ms#
    #Startup delayed 660ms#
    #Startup delayed 670ms#
    #Startup delayed 680ms#
    #Startup delayed 690ms#
    #Startup delayed 700ms#
    #Startup delayed 710ms#
    #Startup delayed 720ms#
    #Startup delayed 730ms#
    #Startup delayed 740ms#
    
    starting....
    Info:MAIN:Main_Init_Delay done
    
    Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID []
    Info:MAIN:Using Pass []
    Info:MQTT:MQTT_RegisterCallback called for bT obk12B03323/ subT obk12B03323/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obk12B03323/ subT cmnd/obk12B03323/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/bekens/ subT cmnd/bekens/+
    Info:MQTT:MQTT_RegisterCallback called for bT obk12B03323/ subT obk12B03323/+/get
    Error:CMD:lfs is absent
    Info:MAIN:Main_Init_After_Delay done
    temperature_type=2
                      temp_code:35 - adc_code:319 - adc_trend:[13]:340->[15]:320
    Info:MAIN:Time 1, idle 281583/s, free 80840, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 2, idle 188222/s, free 80840, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 3, idle 189509/s, free 80840, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 4, idle 188227/s, free 80840, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:Time 5, idle 188145/s, free 80840, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
    Info:MAIN:no flash configuration, use default
    Info:MAIN:set ip info: 192.168.4.1,255.255.255.0,192.168.4.1
    Info:MAIN:ssid:OpenBK7231N_12B03323  key: mode:0
    hostapd_main_exiting
    hostapd_exit_handler
    hostapd_exit_done
    Soft_AP_start
    [saap]MM_RESET_REQ
    [bk]tx_txdesc_flush
    [saap]ME_CONFIG_REQ
    [saap]ME_CHAN_CONFIG_REQ
    [saap]MM_START_REQ
    hapd_intf_add_vif,type:3, s:0, id:0
    apm start with vif:0
    me_set_ps_disable:840 0 0 1 0 0
    ------beacon_int_set:100 TU
    set_active param 0
                      [msg]APM_STOP_CFM
                                       update_ongoing_1_bcn_update
    vif_idx:0, ch_idx:0, bcmc_idx:1
    update_ongoing_1_bcn_update
    enter low level!
    mac d8:1f:12:b0:33:22
    leave low level!
    net_wlan_add_netif done!, vif_idx:0
    uap_ip_start
    
    configuring interface uap (with Static IP)WARN: TCPIP mutex is NOT locked (1) caller 580A7
    def netif is no ap's netif, sending boardcast or no-subnet ip packets may failed
    sending broadcast_deauth:5
    Info:MAIN:Time 6, idle 183013/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 7, idle 186863/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    temp_code:38 - adc_code:313 - adc_trend:[15]:320->[16]:310
    Info:MAIN:Time 8, idle 193550/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 9, idle 188448/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 10, idle 186926/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=00:00:00:00:00:00
    Info:GEN:sta: 0, softap: 1, b/g/n
    Info:GEN:softap:ssid=OpenBK7231N_12B03323,channel=1,dhcp=1,cipher_type:OPEN
    Info:GEN:ip=192.168.4.1,gate=192.168.4.1,mask=255.255.255.0,dns=192.168.4.1
    Info:MAIN:Time 11, idle 183649/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 12, idle 188521/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 13, idle 187038/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 14, idle 186836/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 15, idle 181881/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 16, idle 186917/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 17, idle 186665/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 18, idle 188644/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 19, idle 187241/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 20, idle 187155/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=00:00:00:00:00:00
    Info:GEN:sta: 0, softap: 1, b/g/n
    Info:GEN:softap:ssid=OpenBK7231N_12B03323,channel=1,dhcp=1,cipher_type:OPEN
    Info:GEN:ip=192.168.4.1,gate=192.168.4.1,mask=255.255.255.0,dns=192.168.4.1
    Info:MAIN:Time 21, idle 184815/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 22, idle 189794/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 23, idle 377014/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 24, idle 196182/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 25, idle 186940/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 26, idle 186998/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 27, idle 201094/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 28, idle 187113/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 29, idle 187132/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 30, idle 188246/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=00:00:00:00:00:00
    Info:GEN:sta: 0, softap: 1, b/g/n
    Info:GEN:softap:ssid=OpenBK7231N_12B03323,channel=1,dhcp=1,cipher_type:OPEN
    Info:GEN:ip=192.168.4.1,gate=192.168.4.1,mask=255.255.255.0,dns=192.168.4.1
    Info:MAIN:Time 31, idle 183423/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Boot complete time reached (30 seconds)
    Info:CFG:####### Set Boot Complete #######
    Info:MAIN:Time 32, idle 187423/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 33, idle 188348/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 34, idle 187026/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 35, idle 187252/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 36, idle 188540/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 37, idle 199767/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 38, idle 187213/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 39, idle 188431/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 40, idle 187103/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=00:00:00:00:00:00
    Info:GEN:sta: 0, softap: 1, b/g/n
    Info:GEN:softap:ssid=OpenBK7231N_12B03323,channel=1,dhcp=1,cipher_type:OPEN
    Info:GEN:ip=192.168.4.1,gate=192.168.4.1,mask=255.255.255.0,dns=192.168.4.1
    Info:MAIN:Time 41, idle 183587/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 42, idle 188386/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 43, idle 186921/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 44, idle 187272/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    Info:MAIN:Time 45, idle 187361/s, free 73120, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
    
  • #6 20410792
    fiobe
    Level 3  
    p.kaczmarek2 wrote:
    Hey, good luck with flashing this device, I see you have all pins available and marked on PCB. It should be easy.
    I can also see you've found an interesting video - seems like a recording from the PCB factory. That's new to me, I wonder who released it.
    What is the marking on Q1, Q2, Q3, etc?


    Thank you! Flashing was pretty easy. I only realized too late I dumped the original firmware from the wrong start address (0x11000 instead of 0), so there's no way to go back :-)

    Mosfets are marked with "A09T".

    I updated my 1st post with the pinout for the R, G, B PWM channels.

    Any advice on how to get the pinout of the button and IR inputs? Is it OK to just brute force "IRRecv" and "Button" values in the Config?
  • #7 20410808
    p.kaczmarek2
    Moderator Smart Home
    0x0 to 0x11000 is bootloader, it should be possible to patch it.

    Are you really sure that there is no AP?

    IR requires reboot after setting IRRecv or IRsend. Buttons do not, PWMs do not.

    You can also use BK7231 pinout from here:
    BK7231 datasheet, pinout, programming, specification, wiki (BK7231T, BK7231N)
    Match crystal and first pin position and work from here. See where the traces go.

    Dodano po 1 [godziny] 35 [minuty]:

    fiobe wrote:

    Pinout:
    PWM ch. 0green
    PWM ch. 1red
    PWM ch. 2blue
    ??button
    ??IR


    Hey, what do you mean by ch.0? You need to determine which IO pin of BK7231 is used as PWM. There are 6 available PWMs in BK7231, so you don't have much options, but still need to get the order of PWMs correctly for RGB (first red, then green, then blue).
    Helpful post? Buy me a coffee.
  • #8 20411186
    dkayukov
    Level 2  
    p.kaczmarek2 wrote:
    Are you really sure that there is no AP?

    Not a 100% sure, but nothing can see it.. Is it possible to configure WiFi from serial console?
  • #9 20411844
    p.kaczmarek2
    Moderator Smart Home
    Sounds like a great idea! I will add this to tomorrow update. You will need to reflash your device.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #10 20411908
    fiobe
    Level 3  
    I updated my post with the complete pinout :-D. In the end, I brute forced the mode until I found the right pins.
    Something that helps to find the IR pin is to set each pin to mode "Button", press a key on the remote and watch for the "short press" log line in the console. Once you get that, change the more to IR and reboot.

    For IR I didn't know I had to reboot, so I couldn't get it working until you wrote that. This is an example log I get with the remote included in the box:
    
    Info:IR:IR IR_NEC2 0xEF00 0x0 1
    

    How can I configure the remote to turn ON/OFF LEDs?

    BTW, there is one very strange thing with my module: it makes clicking like noise when the CPU is loaded, like reloading a web page.
  • ADVERTISEMENT
  • #11 20412083
    p.kaczmarek2
    Moderator Smart Home
    What is making a clicking noise?
    Have you considered using an experimental "powersave" command, which can be entered in Config->set short startup command, to enable low power mode after each reboot?
    Helpful post? Buy me a coffee.
  • #12 20412426
    dkayukov
    Level 2  
    p.kaczmarek2 wrote:
    Sounds like a great idea! I will add this to tomorrow update. You will need to reflash your device.


    Cool! Tnx!!!
    Probably also would be helpful to have ability to execute "Restore RF config" from serial console as well..

    Added after 6 [hours] 3 [minutes]:

    @fiobe Would you be able to share your firmware backup? Maybe re-flashing RF calibration partition will help me.. ;)
  • #13 20414029
    fiobe
    Level 3  
    dkayukov wrote:

    @fiobe Would you be able to share your firmware backup? Maybe re-flashing RF calibration partition will help me.. ;)


    Here it is (sha256
    a31900827fbe318fc2c7e0ddb7d11ed27acf960cfe2d5dacb0d192a5d80972ce
    ). Watch out I dumped it starting from address 0x11000, so it may be useless.
  • #14 20414032
    fiobe
    Level 3  
    p.kaczmarek2 wrote:
    What is making a clicking noise?


    I don't know. There's isn't anything mechanical on the board, maybe it's some capacitor? I only hear it in a quite room and with the board close to me, so it's not an issue. Just something super weird.
  • #15 20856836
    info163
    Level 1  
    Ich habe heute einen sehr ähnlichen Aldi Casalux RGB-LED-Strip gekauft. Scheint aber doch etwas anders zu sein als der in diesem Beitrag bisher behandelte Strip (siehe Bilder). [WIP] New BK7231N device - Aldi casalux smart wlan LED strip [WIP] New BK7231N device - Aldi casalux smart wlan LED strip [WIP] New BK7231N device - Aldi casalux smart wlan LED strip [WIP] New BK7231N device - Aldi casalux smart wlan LED strip [WIP] New BK7231N device - Aldi casalux smart wlan LED strip [WIP] New BK7231N device - Aldi casalux smart wlan LED strip [WIP] New BK7231N device - Aldi casalux smart wlan LED strip [WIP] New BK7231N device - Aldi casalux smart wlan LED strip
    Auf dem LED-Band scheinen nur LEDs und Vorwiderstände zu sein, keine integrierte Schaltung.
    Einen UART-Adapter besitze ich, bisher nur für Arduino Pro Mini ATmega328P verwendet.
    Mit Tasmota-Flashen und OpenBeken habe ich noch keine Erfahrung.

    Gibt es schon eine passen konfigurierte Datei zum flashen? Oder wie muss ich vorgehen? Danke im voraus!

Topic summary

The discussion revolves around the Aldi Casalux smart WLAN LED strip featuring the BK7231N chip. Users share experiences related to flashing the device, troubleshooting issues with the access point (AP) visibility, and extracting pinouts for RGB LED control. Key components identified include the K225P2-RGB v1.4 PCB and SLS3400 RGB Mosfet. Participants discuss the importance of correct firmware flashing, the need for rebooting after configuring IR settings, and methods to identify button and IR pinouts. A user also mentions a clicking noise from the module under CPU load, speculating on its cause. Additionally, another user introduces a similar LED strip model, prompting further inquiries about configuration files for flashing.
Summary generated by the language model.
ADVERTISEMENT