Elektroda.com
Elektroda.com
X
Elektroda.com

B05-BL-A60 Sonoff Teardown

Thom4Fun 1032 7
  • Because of the, from Sonoff advertised, API, I ordered from Appla.cy the B05-BL-A60 bulbs.
    B05-BL-A60 Sonoff Teardown B05-BL-A60 Sonoff Teardown

    Each one has a price of around 11€. Take care, I am talking here about the B05-BL-A60 NOT the B05-B-A60 which has a different chip, different led driver and no API!

    Surprised of the energy class F, I tested the API which is more or less useless if you have a need of some more devices and if you don’t want to struggle with different ID's for each single device.

    After opening the bulb, B05-BL-A60 Sonoff Teardown you will find the LED plate with an BP5758 LED Driver. THE BP5758 seams to be an I2C Tuya Driver. Removing the LED Plate, you will find the power supply and the WIFI components:



    B05-BL-A60 Sonoff Teardown

    After disassembling, all the necessary pins are easily accessible.

    3.3V
    Ground
    TX
    RX
    Boot.

    There is an easy description on how to flash it, on:
    https://www.elektroda.com/rtvforum/topic3889041.html
    More difficulty’s I had to find the proper software to flash the chip. Finally found the tools inside the SDK.
    https://github.com/openshwprojects/OpenBK7231T_App
    Find the SDK folder for BL602 and have a look into tools...

    The firmware do not support the BP5758 yet, but the work is in progress. When I flash the next chip, I will be prepared and will enrich this teardown with more links, better pictures and a step by step description.

    Cool? Ranking DIY
    About Author
    Thom4Fun
    Level 2  
    Offline 
    Thom4Fun wrote 4 posts with rating 6, helped 0 times. Been with us since 2022 year.
  • #2
    p.kaczmarek2
    Level 28  
    Thank you for teardown.
    The BP5758D driver is supported, but was not enabled for BL602. I have enabled it so you can test now again.
    I have also improved some things and did several bugfixes for that platform.
    Remember to try using BP5758D_RGBCW command to test the driver after enabling (BP5758D_RGBCW FF00FF0000).

    EDIT: You might need to wait 1 day more for that. We are resolving something on other platform and release is not yet public.
  • #3
    ACCel
    Level 22  
    And what is this API for? Is it local or normally via cloud?
  • #4
    protectivedad
    Level 2  
    p.kaczmarek2 wrote:
    Thank you for teardown.
    The BP5758D driver is supported, but was not enabled for BL602. I have enabled it so you can test now again.
    I have also improved some things and did several bugfixes for that platform.
    Remember to try using BP5758D_RGBCW command to test the driver after enabling (BP5758D_RGBCW FF00FF0000).

    EDIT: You might need to wait 1 day more for that. We are resolving something on other platform and release is not yet public.


    The documentation at:
    https://sonoff.tech/sonoff-diy-developer-documentation-b02-bl-b05-bl-http-api/

    Tells me there is an ota_flash command but it says the largest bin is only 508KB. I'm not familiar with the build tools or I'd try to create a "lite" version. Since you have the experience do you think that it is possible to build a smaller then 508KB firmware that can be used to then write the normal firmware? Or is that just too small?

    That is the way I have done it with my Sonoff MINIR2s.

    Thanks,
  • #5
    Thom4Fun
    Level 2  
    Hi.

    The API can be used only local. First, you have to bring the device into the DIY mode. Then, you can use a RESTfull API.
    But the API is not very useful. You have to know the ID of the device, which will create a lot of reconfiguration if it needs to be replaced or the IP will change.
    There is a full description at:
    https://sonoff.tech/diy-developer/
    I was in hope to be able to use the API for integrating the devices without open and flashing etc etc, but I gave up. Too much trouble. Including that I was not able to update the Firmware. Therefore, you have to register the device. But I do not like to connect anything to the Chinese cloud at all, because you never know what else will be included in their firmware…

    I am not so well at this time. When I will be back from Hospital, I will spend some more time and reporting here…

    Regards
    Thomas
  • #6
    Thom4Fun
    Level 2  
    Hello.

    Sorry for the delay, I have some healty problems and have to be back to the hospital on Friday.
    But I give the new version a try on a brand new device, and with luck. The gui shows the LED stuff, but the webapplication not.
    As well, the the gui shows 1 driver loded (BP5758D) total 11. The command BP5758D_RGBCW returns "command not found".

    I put
    BP5758D_CLK on Pin 2 and channel to 1, and
    BP5758D_DTA on Pin 21 and channel to 2.

    Not sure if the channel stuff is needed, but in general it works well. The colors are mistaken, but I am sure that this will easy to correct with BP5758D_RGBCW if implemented. As soon as possible, I will update the teardown with more infos.

    Regards
    Thomas
  • #7
    protectivedad
    Level 2  
    Thom4Fun wrote:
    Hi.

    The API can be used only local. First, you have to bring the device into the DIY mode. Then, you can use a RESTfull API.
    But the API is not very useful. You have to know the ID of the device, which will create a lot of reconfiguration if it needs to be replaced or the IP will change.
    There is a full description at:
    https://sonoff.tech/diy-developer/
    I was in hope to be able to use the API for integrating the devices without open and flashing etc etc, but I gave up. Too much trouble. Including that I was not able to update the Firmware. Therefore, you have to register the device. But I do not like to connect anything to the Chinese cloud at all, because you never know what else will be included in their firmware…

    I am not so well at this time. When I will be back from Hospital, I will spend some more time and reporting here…

    Regards
    Thomas


    Actually the deviceid is not required. Use curl and point to the url away you go. I'm using openhab with http and exec binding. Works well for turn on, off and setting any of the preprogrammed modes. When it comes to adjusting brightness and color temperature it gets a little complicated (haven't solved it yet).

    If you interested the script I use is:
    Code: bash
    Log in, to see the code
  • #8
    Thom4Fun
    Level 2  
    Thank you for the code.
    But in any way you use a Chinese firmware where you never know what’s happen without sniffing the network traffic at any time, you have to register to the cloud to get the new firmware and some other points I don’t really like. Maybe I will give it later on a try.