logo elektroda
logo elektroda
X
logo elektroda

[BK7231N/CBU] Intelligent Spray System WD-01CE Pump how to flash, getting bus failed

kilianeller12 4374 6
ADVERTISEMENT
  • BK7231N pinout for WD-01CE spray pump

    #1 20624497
    kilianeller12
    Level 2  
    Posts: 2
    I bought the Intelligent Spray System WD-01CE (which also goes by some different names).

    It's used to spray water, therefore contains a pump, a button with an LED, and a piezo module.

    [BK7231N/CBU] Intelligent Spray System WD-01CE Pump how to flash, getting bus failed

    It's pretty easy to unscrew after removing the 4 pads over the screws.

    [BK7231N/CBU] Intelligent Spray System WD-01CE Pump how to flash, getting bus failed

    After unscrewing, you can see the pump and the board.

    [BK7231N/CBU] Intelligent Spray System WD-01CE Pump how to flash, getting bus failed

    To remove the board, 3 screws need to be unscrewed.

    [BK7231N/CBU] Intelligent Spray System WD-01CE Pump how to flash, getting bus failed

    According to my research on https://developer.tuya.com/en/docs/iot/CBU-NL-module-datasheet?id=Kbaeq6j53y0yg, it uses the BK7231N chip the pins are the following:

    [BK7231N/CBU] Intelligent Spray System WD-01CE Pump how to flash, getting bus failed

    The pinout for setup is:

    P6 - Buzzer
    P8 (PWM2) - Btn
    P16 - REL
    P20 - LED_n
  • ADVERTISEMENT
  • Check for UART line conflicts and BK7231N mode

    #2 20624606
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14781
    Help: 659
    Rate: 12920

    First of all, please check if there is anything else connected on UART lines. Are they used for something else than flashing, maybe for a button, or for a relay, or something like this?

    Is this your first Beken chip you are flashing? Have you made sure to provide enough current for your device? Have you tried swapping RX and TX? Are you flashing it in BK7231N mode? BK7231T mode will not work for N.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • Programming pins on the opposite side of the Tuya board

    #3 20624666
    kilianeller12
    Level 2  
    Posts: 2

    Yeah, it's my first time flashing.
    I solved it. On the Tuya sheet, they showed it from the bottom, so I used RX01 and TX01, which are for logging. On the other side, there are the RX and TX pins for programming (hard to solder).

    The only thing I am now missing is, what would you set for P6 as it is a buzzer? In the dropdown menu, I didn't find something like it. Currently, I have set it as LED.
  • ADVERTISEMENT
  • #4 20626424
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14781
    Help: 659
    Rate: 12920

    I didn't have any buzzer devices yet. Maybe you can try to set it as PWM, enable "show RAW PWM controllers" flag and then check if doing set channel can get you a tone out of it?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • WD-01CE boot log and Tuya SDK details

    #5 21273199
    divadiow
    Level 38  
    Posts: 5222
    Help: 449
    Rate: 918
    a little bit more info derived from a WD-01CE backup sourced elsewhere (thanks @piotrszulc1). all info is taken from this file, attached.

    boot:
    Code: Text
    Log in, to see the code
    Attachments:
    • WD-01CE.bin (2 MB) You must be logged in to download this attachment.
  • Tuya config dump with UUID and keys

    #6 21273201
    divadiow
    Level 38  
    Posts: 5222
    Help: 449
    Rate: 918
    config data in binary after device config is pulled down from Tuya

    Code: JSON
    Log in, to see the code


    Added after 4 [minutes]:

    how it presents in Tuya app
    View of the Tuya app with the WD-01CE device online Tuya app screen with time and watering settings. Device update screen showing no updates available.

    fw v1.1.7 is on the Cloudcutter known patched list

    Added after 3 [minutes]:

    @kilianeller12 did you get a fully working device with OpenBeken?
  • #7 21915933
    forl3eaf
    Level 1  
    Posts: 1
    >>20626424
    For WD-01CE, is it possible to change firmware through OTA?

Topic summary

LABEL_AI_GENERATED
Discussion about flashing a Tuya-based Intelligent Spray System WD-01CE using a BK7231N/CBU module. The device contains a pump, LED/button, and piezo buzzer, with pin mapping identified for buzzer, button, relay, and LED. Initial flashing failed because the wrong UART pads were used; the correct programming RX/TX pins were on the opposite side of the board, while the visible RX01/TX01 pads were only for logging. After successful access, the remaining question was how to configure the buzzer pin P6 in the firmware, with PWM suggested as a possible option. Later posts added backup-derived firmware/configuration data from the device and asked whether WD-01CE firmware can be changed via OTA.
AI summary based on the discussion. May contain errors.
ADVERTISEMENT