logo elektroda
logo elektroda
X
logo elektroda

[Solved] Flashing of CB3S / BK7231N from DS06 door/windows sensor fails

andy_e_g 3234 2
ADVERTISEMENT
  • #1 20741531
    andy_e_g
    Level 2  

    Hello,

    I recently stumbled upon a bunch of Tuya window/door sensors DS06 and became interested in flashing Openbeken onto them. I had a look at this teardown and followed the disassembly steps. I have no previous knowledge of flashing Openbeken, so this paragraph
    Quote:
    I do not describe the changes of the CB3S batch here, because it was discussed e.g. for CB2S, but I will only emphasize that the lines RX / TX are occupied by TuyaMCU, so if we want to program, we have to cut them off or unsolder that IC ...
    confused me, but I still tried flashing the chip without desoldering or cutting any traces.
    PCB of a sensor with wires connected to a CB3S chip.
    USB to TTL adapter with connected wires.
    I used the GUI tools and successfully read the firmware from the chip (after some tries, sometimes got stuck at reading a sector). But whenever I tried to flash the new firmware, it always gets stuck at reading a random sector and then errors out.
    Screenshot of the BK7231 Easy UART Flasher program with Erase failed error.

    After this, I unsoldered the CB3S chip from the board and tried flashing it this way. The process now seemed to go further, even reaching the writing stage, but then it yet again got stuck at some sector writing the firmware and errored out.

    I tried multiple different USB-to-TTL adapters and different cables, but if you think that might be the problem, I can continue testing different ones. I still have 2 untouched sensors around, so I can try anything you propose to get a successful flash. Also, if you need any further logs or firmware backups, please let me know. I would really like to try out Openbeken as it looks like a promising software for these new Tuya chips.

    Greetings,
    Andy
  • ADVERTISEMENT
  • Helpful post
    #2 20742169
    p.kaczmarek2
    Moderator Smart Home
    Hello, have you tried lower baud rates?

    It should flash outside circuit, I flashed hundreds of Beken already.
    Helpful post? Buy me a coffee.
  • #3 20746475
    andy_e_g
    Level 2  

    Sorry for the late response, I tried experimenting with a lower baud rate. In the end, the problem was solved by using shorter cables for flashing as well as the lower baud rate. Maybe some of my longer cables were faulty.
ADVERTISEMENT