logo elektroda
logo elektroda
X
logo elektroda

Next Steps After Teardown for TUYA Cloud Cutter Pull Request on LEDVANCE Bulb

gramais 1644 8
ADVERTISEMENT

  • Hello everybody,

    This is my first teardown of a bulb that I would be happy to "cloudcut" ... :)
    (Below you'll find the pictures I took from the teardown)

    Manufacturer: LEDVANCE
    Model: Filament Globe 125 53
    Socket: E27
    Luminous flux: 680 lm
    Power: 6W
    Board: Beken 7231T
    WiFi-Module: WBLC5

    I am not sure: what would be the next steps to get a pull request to the TUYA cloud cutter?

    Any help would be really appreciated -
    thank you!

    gramais

    Packaging of the LEDVANCE Filament Globe 125 53 smart LED bulb. LEDVANCE Filament Bulb, yellowish hue. Top view of a disassembled LED bulb showing its interior and electrical components. Close-up of a circuit board from inside an LED light bulb. Close-up of electronic components from the inside of an LED bulb. Close-up of the interior of an LED bulb with visible electronic components. Close-up of the interior of an LED light bulb with a visible QR code and markings. Close-up of an electronic module with Beken BK7231 integrated circuit. Close-up of the inside of a dismantled LED bulb showing the electronic board and components.

    Cool? Ranking DIY
    About Author
    gramais
    Level 4  
    Offline 
    gramais wrote 15 posts with. Been with us since 2023 year.
  • ADVERTISEMENT
  • #2 20884344
    p.kaczmarek2
    Moderator Smart Home
    Well, first you need a 2MB flash dump and then you can submit it for them to add profile. I can submit it myself, can you share 2MB backup here?
    We can also use it to extract OBK config.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20884501
    gramais
    Level 4  
    Hi P.!
    Piotr? or Patryk?
    :)

    Hm, I realize I´m really old fashioned: feels somehow strange to me talking to someone without knowing his name....

    In any case, thank you for your answer !

    Now, according to this description I hope I could figure out the soldering tips correctly (see pics below), but I am not sure whether to use RX/TX 1 or 2: do you have any idea?

    gramais

    Rear view diagram of a microcontroller with labeled components. Diagram of the microcontroller top with UART labels and rear view.
  • #4 20884687
    p.kaczmarek2
    Moderator Smart Home
    I think you may have got it right at the first try. Regarding the UART port - well, you should check our YT channel for detailed flashing process presentations:
    https://www.youtube.com/@elektrodacom
    You can also check our flash tool docs/readme:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    But to answer your question, always UART 1 (RX1/TX1) port is used for flashing. The UART2 is used for debug log output.

    Just please, remember to make 2MB backup first, so first do "read" operation, not "write"!
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20887318
    gramais
    Level 4  

    Okay, so I started the first attempt - unfortunately without success :(

    I double-checked everything and swapped RX/TX to be on the safe side, but maybe you could take another look: the photos are below.

    I tried it via PINs 8=TX, 10=RX, 17=3V3, 25=GND of the GPIO port (/dev/ttyAMA0) and alternatively via a USB-UART converter (/dev/ttyUSB0).

    python3 uartprogram firmware.bin -d /dev/ttyUSB0 -r 

    resp.
     python3 uartprogram firmware.bin -d /dev/ttyAMA0 -r

    or
    python3 uartprogram firmware.bin -d /dev/ttyUSB0 -r -s 0x0 -l 0x200000 -b 115200 

    resp.
     python3 uartprogram firmware.bin -d /dev/ttyAMA0 -r -s 0x0 -l 0x200000 -b 115200


    The program waits indefinitely for a response via the GPIO port:

    UartDownloader....
    Read Getting Bus...


    Via USB I get this error message:

    Cannot get bus.
    Traceback (most recent call last):
     File "/home/kay/hid_download_py/uartprogram", line 56, in <module>
       downloader.read(args.filename, args.startaddr, args.length)
     File "/home/kay/hid_download_py/bkutils/uart_downloader.py", line 83, in read
       self.pbar.close()
    AttributeError: 'NoneType' object has no attribute 'close'


    I interrupted the 3V3 again and again to achieve a reset.

    Any ideas? Do you notice anything wrong with the wiring in the photos?

    Close-up of a small PCB with attached colored wires. Close-up of a circuit board with attached yellow and blue wires. Close-up of solder connections on a circuit board.

    Added after 2 [minutes]:

    ... and before you ask: I have no access to a windows computer for the GUI, just a RaspberryPi and Mac with the same results shown above. ;)
  • #6 20887424
    ferbulous
    Level 18  
    Hi, how did you remove the bottom screw without breaking the glass?
    Is the stock tuya firmware patched?
  • ADVERTISEMENT
  • #7 20887538
    p.kaczmarek2
    Moderator Smart Home
    How do you power it, how long are the wires, what kind of USB to UART converter? Have you tried swapping RX and TX?
    Helpful post? Buy me a coffee.
  • #8 20887621
    gramais
    Level 4  

    Hey @ferbulous, I heated the socket with a heat gun until I could simply twist it off...

    I had imagined it would be more difficult, but then it went very easily.

    :)

    And as for the firmware patch: no idea, how do I find out?

    Added after 11 [minutes]:

    Hi @p.kaczmarek2

    what do you mean by
    p.kaczmarek2 wrote:
    How do you power it,
    else than the above described converters or GPIO 3V3 PIN I used?

    And for:
    p.kaczmarek2 wrote:
    how long are the wires
    They are about 30-40cm long.

    The
    p.kaczmarek2 wrote:
    kind of USB to UART converter?
    is this one here.

    And last, yes, I have
    p.kaczmarek2 wrote:
    tried swapping RX and TX?
    as described above.
  • #9 20887860
    p.kaczmarek2
    Moderator Smart Home
    Those wires seem very long. Futhermore, your USB to UART converter does not look like the one that can provide enough current for flashing. Use a better 3.3V source and shorten your wires. Have you watched our tutorials?


    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around the process of creating a pull request for the TUYA Cloud Cutter after performing a teardown of an LEDVANCE Filament Globe 125 53 bulb. The user seeks guidance on the necessary steps, particularly regarding obtaining a 2MB flash dump and the correct UART port for flashing. Responses highlight the importance of making a backup before flashing, using UART1 for the flashing process, and ensuring the use of a suitable USB to UART converter with short wires for better performance. The user also shares challenges faced during the flashing attempts and seeks advice on the stock firmware status.
Summary generated by the language model.
ADVERTISEMENT