logo elektroda
logo elektroda
X
logo elektroda

[BK7231N/CBLC5] Flashing LSC Smart Connect A60 E27 RGB Bulb with BK7231N and CBLC5 Module

gehaxelt 585 2
ADVERTISEMENT
  • Helpful post
    #1 21419280
    gehaxelt
    Level 6  
    Hi there,

    this is my first post, so please let me know if I overlooked any rules or forgot to add anything...
    I have bought a LSC Smart Connect A60 E27 RGB light bulb. Teardown is similar to the previous versions, but I believe this to be a new version.

    LSC Smart Connect bulb packaging with technical specifications
    Teardown of LSC Smart Connect bulb with connected wires and PCBite probes

    After opening the bulb, I learned the following:

    - It comes with a CBLC5 module from Tuya which contains a BK7231N.
    - The LED driver appears to be KP18058 (?)
    - Since I didn't want to remove the PCB from the socket for easier reassembly, I soldered VCC and GND and used PCBites for TX1 and RX1. There's not much space, but flashing worked out without problems with BKN Flasher GUI and the power on/off method.
    - The GUI's config extractor showed:

    
    {
       "Jsonver":"1.1.9",
       "brightmin":"10",
       "gmwb":"75",
       "title20":"0",
       "gmwg":"70",
       "wfcfg":"spcl_auto",
       "colormin":"10",
       "pmemory":"1",
       "gmkb":"60",
       "cmod":"rgbcw",
       "kp58comps_slope":"1",
       "mixway":"0",
       "kp58rgb_mode":"0",
       "kp58comps_rc":"1",
       "cwtype":"0",
       "rstbr":"100",
       "colormax":"100",
       "kp58wcur":"10",
       "iicw":"3",
       "notdisturb":"0",
       "module":"CBLC5",
       "iicsda":"6",
       "cwmaxp":"100",
       "dmod":"9",
       "iicc":"4",
       "brightmax":"98",
       "iicg":"1",
       "wfct":"3",
       "iicr":"2",
       "defbright":"100",
       "rstcor":"c",
       "rstnum":"3",
       "deftemp":"100",
       "bleonoff":"1",
       "kp58ccur":"5",
       "iicb":"{nc_tp",
       "ssid":"null",
       "passwd":"null",
       "md":"0",
       "wfb64":"1",
       "stat":"0",
       "token":"null",
       "region":"null",
       "reg_key":"null",
       "dns_prio":"0 }{uuid",
       "psk_key":"dLAxzodD7z4TiwkIecVkeWY8R0BXAMTedrz8t",
       "auth_key":"8C37n7GnZCjzcWsx1NbcDQev2KWiNI0V",
       "ap_ssid":"SmartLife",
       "ap_passwd":"null",
       "country_code":"CN",
       "bt_mac":"null",
       "bt_hid":"null",
       "prod_test":"false",
       "fac_pin":"gql7pvxvlawmudor }0",
       "iicscl":"24",
       "wt":"20",
       "prodagain":"0",
       "kp58comps_start":"13",
       "remdmode":"0",
       "cagt":"20",
       "colorpfun":"0",
       "kp58comps_lv":"1",
       "gmwr":"100",
       "rgbt":"20",
       "gmkg":"60",
       "onoffmode":"1",
       "rsttemp":"100",
       "category":"0505",
       "gmkr":"80",
       "defcolor":"c",
       "crc":"8"
    }
    

    and
    
    Device configuration, as extracted from Tuya: 
    - KP18058DAT on P6
    - KP18058CLK on P24
    - LED remap is 2 1 {nc_tp 4 3
    Device seems to be using CBLC5 module, which is using BK7231N.
    And the Tuya section starts at UNCOMMON POSITION 0
    


    But importing it in OpenBeken's Web UI generated invalid commands. After going through some more posts in the forum, I figured out the following configuration:

    
    ClearIO // clear old GPIO/channels
    lfs_format // clear LFS
    StartupCommand ""  // clear STARTUP
    stopDriver *  // kill drivers
    startDriver KP18058  // so we have led_map available
    setPinRole 6 KP18058_DAT
    setPinRole 24 KP18058_CLK
    KP18058_Map 2 1 0 4 3 
    


    Which appears to work:

    LSC Smart Connect A60 E27 RGB bulb glowing brightly.

    There are some questions I have at the end:

    1) The bulb got really hot (OpenBeken reported 100*C after 5mins). I don't think this is normal - do I need to limit the LED's current using KP18058_Cur? What are sensible values?

    2) Does anyone want to have a look at the firmware to update the extractor?

    3) Is there anything else I should share so you can update the device list?

    All the best
  • ADVERTISEMENT
  • #2 21420423
    divadiow
    Level 34  
    gehaxelt wrote:
    1) The bulb got really hot (OpenBeken reported 100*C after 5mins). I don't think this is normal - do I need to limit the LED's current using KP18058_Cur? What are sensible values?


    Might be an idea to mirror those values in OBK
    Have you also set powersave 1 in startup command or autoexec?
  • #3 21422346
    gehaxelt
    Level 6  
    Hi,

    thanks! I have played around with the values a bit and setting the current to 4 4 keeps the bulb below 80° C at 100% brightness.

    Here's the full config:

    
    {
      "vendor": "Action",
      "bDetailed": "0",
      "name": "LSC Smart Connect LED Smart Lightbulb A60 E27 RGB (WiFi)",
      "model": "ArtNo. 2578539.1",
      "chip": "BK7231N",
      "board": "CBLC5",
      "flags": "5124",
      "keywords": [
        "Action LCS",
        "Lightbulb",
        "BK7231N",
        "CBLC5",
        "OpenBeken"
      ],
      "pins": {
        "6": "KP18058_DAT;0",
        "24": "KP18058_CLK;0"
      },
      "command": "backlog PowerSave 1; KP18058_Current 4 4; Dimmer 50;",
      "image": "https://obrazki.elektroda.pl/9597690800_1738360849.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic4103341.html"
    }
    


    All the best
ADVERTISEMENT