Elektroda.com
Elektroda.com
X

[BK7231T] Globe Electric (GB34869) PAR20 WiFi Smart bulb - Discussion Topic

baudneo 549 12
  • Hi, I am researching before I go cracking open 1 of my 6 bulbs.

    I had originally tried controlling these through HASS using Tuya Local library. The problem with these bulbs is that after a short duration of time, the bulbs go unresponsive and require using the mobile app and Bluetooth to 'wake' the bulbs up before they start accepting commands again. I can't implement a way to wake the bulbs using BLE and HASS while they are running their original firmware, so here I am.

    I've read up and watched several videos but, from the FCC internal photos, the daughter board is quite different than all the examples I have seen. I am just wondering if this type of board has already been flashed by any users here or if anyone can help me ascertain how to flash the chip.

    Here is a photo of the board:
    [BK7231T] Globe Electric (GB34869) PAR20 WiFi Smart bulb - Discussion Topic

    and here is the FCC URL for the bulb.

    TIA!


    Added after 2 [hours] 2 [minutes]:

    Here are some more pics, this is apparently a newer revision as it uses the 7231N chip. I first tried tuya-cloudcutter but they don't have make/model or firmware version that this bulb has, the bulb has 1.5.21 firmware (tuya protocol 3.5). So, I am left with flashing via serial. The last picture is of the led board and has pinouts for the header on the PSU board.

    - Gnd
    - 20v
    - V+
    - 3.3V
    - CLK
    - SDA

    The 2nd last pic is the PSU PCB (to help ascertain what's what). I am wondering how I would connect this to my usb serial adapter?

    Thanks!

    [BK7231T] Globe Electric (GB34869) PAR20 WiFi Smart bulb - Discussion Topic
    [BK7231T] Globe Electric (GB34869) PAR20 WiFi Smart bulb - Discussion Topic
    [BK7231T] Globe Electric (GB34869) PAR20 WiFi Smart bulb - Discussion Topic


    [BK7231T] Globe Electric (GB34869) PAR20 WiFi Smart bulb - Discussion Topic


    [BK7231T] Globe Electric (GB34869) PAR20 WiFi Smart bulb - Discussion Topic
    [BK7231T] Globe Electric (GB34869) PAR20 WiFi Smart bulb - Discussion Topic

    The board has it as an rgw+tw (sm2135e) and it has a 26000 crystal oscillator on the daughter board that is not present in the FCC internal pics.

    If there is anymore information I can give, plz let me know!

    Thanks!

    Added after 5 [hours] 5 [minutes]:

    So, I managed to get it flashed but now am tryign to figure out how to configure it properly. I did not need to desolder the daughter board but, it was good practice.

    I imported the JSON that the GPIO detector supplied adn I can toggle the light and change its RGB color. Its brightness is very low, the RGB colors need tuning and the white temperture slider turns the bulb off. I will comb through the docs to see if I can figure out how to get it working better.

    Happy that this project exists!

    Cool? Ranking DIY
    About Author
    baudneo
    Level 4  
    Offline 
    baudneo wrote 9 posts with rating 4, helped 1 times. Been with us since 2023 year.
  • #2
    p.kaczmarek2
    Moderator Smart Home
    Thank you for the presentation, can you attach 2MB firmware dump or at least Tuya config partition?

    It looks like you need to adjust the RGB/CW current, maybe also enable SM2135 alternate mode flag. Search for SM2135_Current:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
  • #3
    baudneo
    Level 4  
    I backedup the fw before i wrote to it but, the tuya-cloudcutter profile_builder.py script errors out when building a profile. I also have the .bin file from reading tuya config @ 0x1EE000.

    Tuya Cloudcutter profile builder error:
    Code: bash
    Log in, to see the code


    There is a file folder with decrypted.bin and bootloader.bin even though the script failed.
    Code: bash
    Log in, to see the code



    Firmware 2MB backup file: Globe-Elec...-RGBCT.bin Download (2 MB)

    Tuya Config backup: BK7231N_Tu...F48BD8.bin Download (72 kB)

    Here is the JSON from the writing process that I imported in the WebApp:
    Code: json
    Log in, to see the code



    I changed one of the sm2135 flags to send sepearate WW and CW and now the white temp slider works and the brightness is on par with stock tuya fw. After a second look of the bulbs beside stock tuya fw bulbs, the colors are correct. With the flags set, the bulb colors/temp/brightness are the same as stock tuya fw. Here are the flags I set: 5632.

    I will make another post of a full teardown and flashing as I have 5 more bulbs to do with the hopes of it being added to the product DB.

    Thanks for your work and effort, you have freed me from insidious tuya and their death grip on consumer IoT products.
  • #4
    baudneo
    Level 4  

    Well, this really really sucks. I flashed my 2nd/6 bulb and it all went well. Upon reassembly, it does not work. I used the "change OBK settings for flash write" and added my SSID/PW, MQTT broker info and then flags 9,10,12. The bulb never connects to the SSID and does not broadcast an AP. I went to go solder wires onto it again but, I lost RX1 pad so, I am unsure how I can flash it again......

    I probed the connector and there is 160VDC on V+, 3.3 on 3.3V. and Ground obviously is connected. I am not sure how I can test if the chip is getting power or not. I'm guessing this chip is toast. I am moving onto bulb 3/6. Soldering the TX and RX wires is a nightmare on this little board!
  • Helpful post
    #5
    p.kaczmarek2
    Moderator Smart Home
    If you have made adjustments to the config, please also post the final template from the Web App, or at least make sure to include it in the final teardown. That's where all the settings and flags are.

    If your bulb does not connect to the WiFi, try doing 5 quick power off/on cycles to enable safe mode (AP mode) for OpenBeken and diagnose the problem.

    See our help:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/README.md
    And F.A.Q.:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/faq.md
  • #6
    baudneo
    Level 4  

    p.kaczmarek2 wrote:
    If you have made adjustments to the config, please also post the final template from the Web App, or at least make sure to include it in the final teardown. That's where all the settings and flags are.

    If your bulb does not connect to the WiFi, try doing 5 quick power off/on cycles to enable safe mode (AP mode) for OpenBeken and diagnose the problem.

    See our help:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/README.md
    And F.A.Q.:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/faq.md


    The 5 power off/on trick did it! I had a typo in SSID. I will create a new post with the teardown and pertinent settings.

    Thank you! I will be sending some support your way!
  • #7
    p.kaczmarek2
    Moderator Smart Home
    Thank you, all support funds go towards the development of new features, tutorials and devices. Just look at our list, we're heading towards 400 entries soon:
    https://openbekeniot.github.io/webapp/devicesList.html
    Many of them are my teardowns. Thanks to this, every smart device in my house is a different model :D

    Let me know if there is anything more I can do for you, I can implement features per request.
  • #9
    p.kaczmarek2
    Moderator Smart Home
    I am usually adding device to teardowns list myself, but first I need JSON.

    The devices list database is here:
    https://github.com/OpenBekenIOT/webapp/blob/gh-pages/devices.json
    If you want to do the honors, open a pull request adding your JSON to the list.

    If not, I will add your JSON yourself, just make sure to post it.

    The JSON should consist device GPIO, generic tags and related keywords, forum image link and topic link.

    Please note that we have our own image hosting here at Elektroda, so there is no risk of your device expiring like the ImageShack images did, etc, etc.
  • #10
    baudneo
    Level 4  

    I have one last question, I think it is specific to MQTT light entity possibly or maybe I need to add an MQTT flag.

    In HASS, I have a helper group that contains 3 OBK lights. If I change the group to a color and then I turn the group off. When I turn the group back on, the color is set to warm white instead of whatever color they were before they were toggled off. Do you know of a way to have the bulbs in HASS remember their color or is that a HASS issue?

    Thanks!
  • #11
    p.kaczmarek2
    Moderator Smart Home
    What do you mean exactly by "turn off", do you mean disconnect power from the bulbs, so WiFi is also down, or do you mean just disable LEDs via OBK?

    I don't remember this issue. It should keep the color. You can try that by manually sending command:
    
    cmnd/OBK_DEV_NAME/led_enableAll
    

    with payload 1 or 0.

    Or do you want to make OBK remember LED state between power sessions? There is a flag for that.
  • #12
    baudneo
    Level 4  
    Hi, by turn off I ment I toggled the bulb off using home assistant entity switch. I did set the power off remember state flag.
  • #13
    p.kaczmarek2
    Moderator Smart Home
    That's strange. Does manually sending just a simple led_enableAll 1 (or with 0) via MQTT also changes the colors?

    I am asking because HA might be sending some more data along with that.