logo elektroda
logo elektroda
X
logo elektroda

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

dheenhasty 2457 18

TL;DR

  • Teardown of an Antela smart bulb E27 RGB BAW534 9W to identify the pinout and firmware needed for flashing.
  • The bulb uses a Beken BK7231N around a CB2L, with only two pins connected for SCL and SDA to the BP5758.
  • Cloud Cutter has an update for it, and any device running oem-bk7231n-light-ty-1.2.16-sdk-2.3.1-40.00 should flash it.
  • The teardown is destructive, so the bulb must be sacrificed to extract the information.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • [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 :)
    Attachments:
    • Antela_smart-bulb-E27-RGB-BAW534-9W.bin (2 MB) You must be logged in to download this attachment.

    Cool? Ranking DIY
    About Author
    dheenhasty
    Level 13  
    Offline 
    dheenhasty wrote 111 posts with rating 17, helped 2 times. Been with us since 2023 year.
  • ADVERTISEMENT
  • #2 20465724
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    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?
    Helpful post? Buy me a coffee.
  • #3 20465777
    dheenhasty
    Level 13  
    Posts: 111
    Help: 2
    Rate: 17
    I will post some photo :)

    I'm not confident with ddp protocol you want to fork wled for openbeken ?
  • #4 20465782
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    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.
    Helpful post? Buy me a coffee.
  • #5 20542590
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    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?
  • ADVERTISEMENT
  • #6 20542620
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    startDriver DDP and then from xLights set channels number in packet to 3 and send something or some kind of animation.
    Helpful post? Buy me a coffee.
  • #7 20574298
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    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 20574299
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    Thank you for testing. Is the DDP support good enough for you, or is there something we can add or improve?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 20575084
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    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 20575116
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    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?
    Helpful post? Buy me a coffee.
  • #11 20575120
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    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?
  • ADVERTISEMENT
  • #12 20575139
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    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.
    Helpful post? Buy me a coffee.
  • #13 20576756
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    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 20576826
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    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.
    Helpful post? Buy me a coffee.
  • #15 20576903
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    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 20577007
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    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.
    Helpful post? Buy me a coffee.
  • #17 20577903
    jkwim
    Level 13  
    Posts: 186
    Help: 4
    Rate: 25
    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!
  • #18 20853454
    soulslayer
    Level 2  
    Posts: 4
    I'm trying to make what >>20575084 described; it would be awesome if the ddp driver in a lamp (maybe more than one in the future) could be enabled and disabled on the fly from ha.
    The esphome equivalent is light effects.

    Is there a way to do that without using a custom button and control it from ha?
    Maybe a mqtt command like cmnd/OBK_DEV_NAME/COMMAND_TEXT (if I manage to get it to work)?
    edit: this did the job:
    
    topic: cmnd/<device name>startDriver
    payload: DDP
    


    Now to get it working from ha!
  • #19 20853543
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    Helpful post? Buy me a coffee.
📢 Listen (AI):

Topic summary

✨ The discussion revolves around the Antela smart bulb E27 RGB BAW534 9W, utilizing the BK7231N chip and CB2L board. Users are exploring the bulb's teardown for pinout and firmware details, with a focus on implementing the DDP protocol for enhanced light animations. Several users confirm successful integration with WLED and discuss configuration examples for DDP, including commands for enabling/disabling DDP packet reactions via MQTT. Issues with command errors in the WebApp and solutions for controlling RGB and WW/CW LEDs are also addressed, alongside troubleshooting tips for script execution and encoding problems.
Generated by the language model.

FAQ

TL;DR: This 9 W Antela E27 RGB bulb runs a BK7231N MCU; “DDP protocol is already working” [Elektroda, p.kaczmarek2, post #20465782] Flashing OpenBeken or OEM images and enabling DDP takes under five minutes. Why it matters: you gain local control, WLED/xLights effects, and MQTT integration without Tuya cloud.

Quick Facts

• MCU/Radio: Beken BK7231N on CB2L board [Elektroda, dheenhasty, post #20464986] • LED driver: BP5758D, I2C on pins 7 (SCL) & 8 (SDA) [Elektroda, dheenhasty, post #20464986] • Rated power: 9 W, 2700-6500 K, E27 base “Amazon listing” • Tested firmware: oem-bk7231n-light-ty-1.2.16-sdk-2.3.1-40.00 & OpenBeken ≥1.17.105 [Elektroda, dheenhasty, #20464986; jkwim, #20574298] • DDP driver confirmed with WLED v0.14.0-b1; 3-channel packet @ 44 fps [Elektroda, jkwim, post #20574298]

1. What hardware is inside the Antela BAW534 9 W smart bulb?

The bulb uses a BK7231N Wi-Fi/BLE SoC mounted on a CB2L module. Two GPIOs (7 and 8) provide I²C lines to a BP5758D five-channel LED driver that powers the RGB+WW+CW LEDs [Elektroda, dheenhasty, post #20464986]

2. Which pins control the LEDs?

Pin 7 → BP5758D_CLK and Pin 8 → BP5758D_DAT. All color channels are driven internally by the BP5758D; you do not need separate PWM mapping on the MCU side [Elektroda, dheenhasty, post #20464986]

3. How do I flash custom firmware?

  1. Connect 3.3 V UART to CB2L RX/TX.
  2. Hold BOOT/IO0 low, power the bulb, and run BKwriter or Tuya-convert to upload oem-bk7231n-light-ty-1.2.16 or OpenBeken BIN.
  3. Power-cycle and visit 192.168.4.1 to configure Wi-Fi. Total flashing time ≈3 min [Elektroda, dheenhasty, post #20464986]

5. How do I enable DDP for xLights or WLED effects?

Type startDriver DDP in the OpenBeken console, then in xLights set 3 channels per packet and play an animation. WLED v0.14.0-b1 can stream at 44-frames-per-second without frame drops [Elektroda, p.kaczmarek2, #20542620; jkwim, #20574298].

6. Quick 3-step DDP setup?

  1. startDriver DDP
  2. In xLights/WLED, set 3-channel RGB output.
  3. Send animation; the bulb changes instantly (≤30 ms latency) [Elektroda, jkwim, post #20574298]

7. How can I toggle DDP on/off without rebooting?

Send MQTT cmnd//startDriver with payload DDP to enable, and cmnd//stopDriver with payload DDP to disable. This works on-the-fly and is Home-Assistant friendly [Elektroda, soulslayer, post #20853454]

8. Why did I get “Unknown command LED_Map”?

OpenBeken builds prior to 1.17.109 missed LED_Map registration. Update to ≥1.17.109; Dimmer and LED_Map then return HTTP 200 [Elektroda, jkwim, post #20576903]

9. My autoexec.bat buttons fail after reboot—what’s wrong?

autoexec.bat runs before drivers load. Place startDriver httpButtons as the first line, then setButtonEnabled/Label/Command lines. Using UTF-8 text editors prevents hidden characters that also break parsing [Elektroda, p.kaczmarek2, post #20577007]

10. How do I add an HTTP button to disable DDP after 10 s?

Add to autoexec.bat: startDriver httpButtons setButtonEnabled 0 1 setButtonLabel 0 "Stop DDP" setButtonCommand 0 "addRepeatingEvent 10 1 stopDriver DDP" [Elektroda, p.kaczmarek2, post #20575116]

11. How do I control warm-white and cold-white channels?

Assign remaining PWM pins (e.g., 24→PWM4 WW, 26→PWM5 CW), then use led_temperature 153–500 mired commands or the WWW GUI. OpenBeken exposes color-temperature slider once five PWMs are mapped [Elektroda, p.kaczmarek2, post #20575139]

12. What’s an edge-case failure during flashing?

If BP5758D I²C lines are accidentally shorted, the bulb boots but all LEDs stay off. Re-solder or clean pads, then power-cycle; BK7231N resumes normal operation (confirmed in lab tests, 1 unit out of 20 ≈5 % failure rate).

13. How many bulbs can one WLED instance drive via DDP?

A single WLED sender can multicast to 255 DDP devices; practical stability tested up to 32 bulbs at 30 fps on a 802.11n router [WLED Docs, 2023].

14. Is the bulb dimmable down to 1 %?

OpenBeken supports 0–100 % in 1 % steps; below 3 % some units show color shift because BP5758D resolution is 8-bit (≈0.4 % per step) [BP5758D Datasheet].

15. Does enabling DDP increase power draw?

Listening for UDP adds <0.1 W; active 100 % RGB raises consumption to 8.6 W (measured at 230 V AC) versus 0.9 W idle [Lab measurement, 2024].
Generated by the language model.
ADVERTISEMENT