Elektroda.com
Elektroda.com
X

[BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

dheenhasty 522 16
  • [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W Just buy a couple of this smart bulb and teardown one to have the correct pin out and firmware :

    https://www.amazon.fr/ANTELA-Multicouleurs-27...-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1

    So simple beken7231 around a CB2L. seems like only two pin is used to SCL and SDA of the BP5758
    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    i have submited the update on Cloud Cutter, but if someone need to flash them any device of oem-bk7231n-light-ty-1.2.16-sdk-2.3.1-40.00 will do the trick.

    I will post some pic of the teardown later.

    Code: json
    Log in, to see the code


    as promise heres teardown :
    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    the process is destructive, so don't do it ... now that i done it you just had to flash it :)

    Cool? Ranking DIY
    About Author
    dheenhasty
    Level 12  
    Offline 
    dheenhasty wrote 111 posts with rating 15, helped 2 times. Been with us since 2023 year.
  • #2
    p.kaczmarek2
    Moderator Smart Home
    Thanks, but please use syntax tag to post JSON code, it will make more readable. Some photos from inside would also be nice, but they are not 100% necessary.

    So, maybe it's time to look into DDP protocol (it's already support, so xLights works for OBK) or maybe to do some kind of rainbow script or something with Hue command?
  • #3
    dheenhasty
    Level 12  
    I will post some photo :)

    I'm not confident with ddp protocol you want to fork wled for openbeken ?
  • #4
    p.kaczmarek2
    Moderator Smart Home
    DDP protocol is already working. We have a very simple driver for that, but it correctly receives RGB values. There is nothing to do in that matter. I was just saying that's possible to use it if you want to create fancy light animations.
  • #5
    jkwim
    Level 7  
    p.kaczmarek2 wrote:
    DDP protocol is already working. We have a very simple driver for that, but it correctly receives RGB values. There is nothing to do in that matter. I was just saying that's possible to use it if you want to create fancy light animations.


    Could you give a configuration example for DDP receipt please?
  • #6
    p.kaczmarek2
    Moderator Smart Home
    startDriver DDP and then from xLights set channels number in packet to 3 and send something or some kind of animation.
  • #7
    jkwim
    Level 7  
    p.kaczmarek2 wrote:
    startDriver DDP and then from xLights set channels number in packet to 3 and send something or some kind of animation.


    Tested with WLED and works fine.

    1. WLED Config

    Version v0.14.0-b1

    Added OpenBK bulb as the next hop LED after a LED string:

    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    2. OpenBK Config

    Build on May 9 2023 07:20:59 version 1.17.105

    Added StartDriver DDP command as a startup command
    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    And started seing receipt of DDP packets after restart.

    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W
  • #8
    p.kaczmarek2
    Moderator Smart Home
    Thank you for testing. Is the DDP support good enough for you, or is there something we can add or improve?
  • #9
    jkwim
    Level 7  
    p.kaczmarek2 wrote:
    Thank you for testing. Is the DDP support good enough for you, or is there something we can add or improve?


    Would it be possible to have a button start/stop reacting to DDP packets?

    That is once the driver is loaded, to allow/disallow DDP reaction.

    Ideally a MQTT command also for the same.

    Added after 22 [minutes]:

    DDP support opens up a new concept of holiday decoration.

    Now you can replace bulbs around your house with DDP enabled WiFi Smart RGB Bulbs and run some nice animations around your house.

    Here is a video:



  • #10
    p.kaczmarek2
    Moderator Smart Home
    There is a simple httpButtons driver, maybe you could use that?
    Sample autoexec.bat:
    
    startDriver httpButtons
    setButtonEnabled 0 1
    setButtonLabel 0 "Turn off after 10 seconds"
    setButtonCommand 0 "addRepeatingEvent 10 1 Power Off"
    

    you can modify it to make a command that runs stopDriver or anything...

    Also, why do you want to allow/disallow DDP reaction instead of unloading/loading the driver?
  • #11
    jkwim
    Level 7  
    BTW, how to do I control the WW/CW LEDs of a RGB-WW/CW Bulb.

    There are no buttons on the GUI.

    I have defined the following PWMs:

    Pin 6 PWM 3
    Pin 7 PWM 2
    Pin 8 PWM 1

    Pin 24 PWM 4
    Pin 26 PWM 5

    I presume the PWM 4 & 5 are for WW/CW LEDs.

    Added after 2 [minutes]:

    p.kaczmarek2 wrote:
    Also, why do you want to allow/disallow DDP reaction instead of unloading/loading the driver?


    Can the unloading/loading be done on the fly without restarting the device?
  • #12
    p.kaczmarek2
    Moderator Smart Home
    Well, you must reboot to get autoexec.bat executed. If you don't want to reboot, then type those commands in console and you will get immediate effect.

    You can do stopDriver/startDriver without reboot.

    Is your bulb RGBCW? 5 PWMs? Then you should have both temperature and color controls on WWW panel. Do you? If not, please post a screenshot.
  • #13
    jkwim
    Level 7  
    Can you explain the reason for following response please?

    Info:CMD:[WebApp Cmd 'backlog led_temperature 500; Dimmer 100; led_enableAll 1' Result] Unknown command
    [/code]

    Added after 3 [minutes]:

    Also these when I try to use the WebApp test buttons for "100% Red"
    
    Error:CMD:cmd LED_Map NOT found (args )
    Info:CMD:[WebApp Cmd 'LED_Map' Result] Unknown command
    Info:CMD:[WebApp Cmd 'backlog ;led_basecolor_rgb FF0000; Dimmer 100; led_enableAll 1' Result] Unknown command
  • #14
    p.kaczmarek2
    Moderator Smart Home
    Hmm you are correct, there was two potential mistakes in the code. The Dimmer command for LED was always returning error because it was not updated with commands system revamp. It should be fixed now, please update and recheck.
  • #15
    jkwim
    Level 7  
    p.kaczmarek2 wrote:
    Hmm you are correct, there was two potential mistakes in the code. The Dimmer command for LED was always returning error because it was not updated with commands system revamp. It should be fixed now, please update and recheck.


    Build on May 12 2023 01:36:41 version 1.17.109

    Following error is still there:

    
    
    Error:CMD:cmd LED_Map NOT found (args )
    Info:CMD:[WebApp Cmd 'LED_Map' Result] Unknown command
    
    


    Added after 2 [minutes]:

    However the http command get 200 OK now

    Last command: backlog led_basecolor_rgb FF0000; Dimmer 100; led_enableAll 1
    Last status: OK (200)!

    Added after 1 [hours]:

    p.kaczmarek2 wrote:
    There is a simple httpButtons driver, maybe you could use that?
    Sample autoexec.bat:
    
    startDriver httpButtons
    setButtonEnabled 0 1
    setButtonLabel 0 "Turn off after 10 seconds"
    setButtonCommand 0 "addRepeatingEvent 10 1 Power Off"
    

    you can modify it to make a command that runs stopDriver or anything...


    I tried the httpButtons but was unsuccessful.

    Tried with autoexec.bat which included startDriver httpButtons command as well.

    Got the errors.

    Then loaded driver using Startup command text
    (driver gets loaded successfully)

    3 drivers active (HTTPButtons,DDP,SSDP), total 34
    

    and then added autoexec.bat as follows

    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    Still I am getting the error:

    
    
    Info:CMD:CMD_StartScript: started /autoexec.bat at the beginning
    Info:CMD:[WebApp Cmd 'backlog resetSVM; startScript /autoexec.bat' Result] OK
    Error:CMD:cmd setButtonEnabled 0 1 NOT found (args )
    Error:CMD:cmd setButtonLabel 0 "Warm NOT found (args White")
    Error:CMD:cmd setButtonCommand 0 "backlog NOT found (args led_temperature 500; Dimmer 100; led_enableAll 1")
    
    
  • #16
    p.kaczmarek2
    Moderator Smart Home
    Let me check on that device:
    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W
    Let me save that:
    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W
    And reboot:
    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W
    Hmm:
    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    You might be getting errors because autoexec.bat may get run first before httpButtons is started. Please start httpButtons first before using them.

    You might be also getting errors because of encoding/UTF problems on some browsers. Please try to retype the script by hand into the field. We've had such a problem report once, but we are unable to reproduce it.

    Also post your complete autoexec.bat, I will double check later.
  • #17
    jkwim
    Level 7  
    After I typed the contents manually on a notepad and then cut and pasted in to browser it worked (I am still puzzled as to why when I copied your script on to a notepad and then cut and pasted again in browser it did not work. Notepad++ does not do different UTF encoding at different times, it should all be same).

    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    Here are the status messages:

    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    [BK7231N CB2L] Antela - smart bulb E27 RGB BAW534 9W

    Thanks for your quick help!