logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

[BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel

anthonythomas 12588 18

TL;DR

  • AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A is a 16A Mini Smart Switch 1 Channel flashed and inspected for BK7231N hardware details.
  • The BK7231N MCU sits on the main PCB, and the relay lives on a daughter PCB to rotate it.
  • tuya-cloudcutter flashed OpenBK directly using Aubess → 16A Mini Smart Switch → 1.2.1 - BK7231N / oem_bk7231n_control_switch, then OpenBK7231N_UG_1.15.597.bin.
  • Working pin settings for this unit are LED_n 6, Rel 15, Btn 8, and TglChanOnTgl 14, though other versions may differ.
ADVERTISEMENT
📢 Listen (AI):
  • Unsure if this one has been posted already.

    AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel
    Bought from the AliExpress Choice Day sales

    Different to a similar mini smart switch I have flashed.

    BK7231N MCU is part of the main PCB
    Relay is on a daughter PCB to rotate it

    Used tuya-cloudcutter to flash OpenBK (didn't even setup in SmartLife app - just went straight to cloudcutter)
    > By manufacturer/device name
    > Aubess
    > 16A Mini Smart Switch
    > 1.2.1 - BK7231N / oem_bk7231n_control_switch
    OpenBK7231N_UG_1.15.597.bin

    Pin settings are possibly different to other versions - these work for my device.

    LED_n 6
    Rel 15
    Btn 8
    TglChanOnTgl 14

    [BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel
    [BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel [BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel [BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel [BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel [BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel [BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel

    Cool? Ranking DIY
    About Author
    anthonythomas
    Level 9  
    Offline 
    anthonythomas wrote 40 posts with rating 16, helped 4 times. Been with us since 2023 year.
  • ADVERTISEMENT
  • #3 20530465
    mucek4
    Level 1  
    Other topic is closed, so I'll ask here. Why key and relay is set as "relay ID 1"? Why not 0? Is the unused "Relay 0" any special thing and shall not be used?
  • ADVERTISEMENT
  • #4 20537140
    hmonteiro
    Level 7  
    Hello!

    I've purchased half a dozen of those, and i've confirmed they're the exact bacth, at least from the PCB printouts.
    Could you provide me with the exact version of cloudcutter you were able to flash with? I've just cloned the last git version and it's failing to setup the A-* access point after sending the exploit.

    I'm putting the device in AP mode, it finds the SmartLife AP, sends exploit but then, when i long press the button again for fast flash, and then again for slow flash, either straight away, or by actually power cycling the device, the SmartLife AP pops up again. I'm wondering if i'm doing anything wrong or i've just ran out of luck with some Aubess firmware upgrade.

    Thanks in advance.
  • ADVERTISEMENT
  • #5 20539277
    riskorja
    Level 8  
    Hi, in batch of three I had one Smart Mini Switch that has the same pcb.

    With one of them I had to pair it with "cloudcutterflash" AP with internet access by using Tuya/SmartLife App to enter WiFi credentials.
    After that tuya-cloudcutter process continued.
    For the "cloudcutterflash" AP i used second/spare router.

    It is as stated in Note: of the INSTRUCTIONS.md

    I hope this helps
  • #6 20539348
    hmonteiro
    Level 7  
    Hi riskorja, thanks for your feedback.

    I'm trying to flash the device and not just disconnect it from the internet. The procedure for that is at the bottom of the page you sent, in the "Flashing custom firmware" section.
    The main difference is that the exploit will make the device associate with a custom AP, from where the new firmware will be sent OTA.
    My guess about a new vendor firmware, not vulnerable to the exploit, is because i'm not observing any freezing of the LED light.
    I have used that procedure on other devices and all i needed was my laptop (and some luck aparenty).

    Regards,

    Hugo.
  • #7 20540494
    riskorja
    Level 8  
    Hi

    my goal was also to upload new firmware.
    As I observed the procedure, the first part changes the AP name of device SmartLife_mac to A_mac after that the light should freeze.
    I successfully tried my luck on three smart mini switches with two setups:
    - RPi with Raspberry OS an supervised HA on which tuya-cloudcutter script runs without warnings, but had to manually add "cloudcutterflash" AP WiFi credentials after first part. Tried only one device.
    - Netbook with Debian on which tuya-cloudcutter script runs with some warnings, on one device manual restart was needed, on one device the light freeze was observed.
    Luckily the script can be run multiple times, and only one device needed to add WiFi credentials manually, after that script successfully replaced the firmware to OpenBeken.

    Best Regards
    Rihard
  • #8 20543446
    p.kaczmarek2
    Moderator Smart Home
    Some new Tuya devices are not vulnerable to Cloudcutter. Please just use soldering method to flash OpenBeken then. We have a playlist of soldering guides for uploading new firmware to smart device:
    https://www.youtube.com/playlist?list=PLzbXEc2ebpH0CZDbczAXT94BuSGrd_GoM
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 20543643
    hmonteiro
    Level 7  
    Hello p.kaczmarek2,

    Thank you so much for all your work. It's been a game changer.
    I was trying to avoid my poor soldering skills :D but i guess i'm out of luck on that.
    Keep up the good work!
  • #10 20543734
    p.kaczmarek2
    Moderator Smart Home
    We are showing soldering process step by step on our channel, so it should be easy to replicate.
    Helpful post? Buy me a coffee.
  • #11 20557058
    karrlsson
    Level 2  
    [BK7231N] AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A - 16A Mini Smart Switch 1 Channel >>20507709
    In my experience i found out it is enough 3 wires Gnd,Tx,Rx and lower baud rate to 115200 and i had success in over 10 boards flashing. Here is image of Aubess board with BK7321N onboard, With this revision cloud cutter didnt work for me, but luckily there is easy traceable test points Yellow is RX White Tx.

    Pin 6: TglChanOnTgl on channel 1
    Pin 7: Rel on channel 1
    Pin 23: Btn on channel 1
    Pin 26: LED_n on channel 1
  • #12 20557123
    p.kaczmarek2
    Moderator Smart Home
    @karrlsson are you saying that you do not connect 3.3V?

    Well, most likely you are powering it through RX/TX then, thanks to the protection diodes of GPIO. EEVBlog had a video on that:
    https://www.youtube.com/watch?v=2yFh7Vv0Paw
    Helpful post? Buy me a coffee.
  • #13 20557138
    karrlsson
    Level 2  
    Yes i do not connect 3.3v and somehow the chip this way is in programming mode always... no CEN to ground needed. i connect 3.3v only after programming to do inital setup without mains...
    But i just found CB2S module which i cant program at all, i need to check if it was working at all...
  • #14 20557162
    p.kaczmarek2
    Moderator Smart Home
    I also found some time ago, that because of this RX/TX powering module, I sometimes have to ground the VDD of module, just to make sure it's off, in order to do a power cycle correctly.

    Still, powering without 3.3V is not recommended.

    What kind of device do you have with that CB2S?
    Helpful post? Buy me a coffee.
  • #15 20686601
    p.kaczmarek2
    Moderator Smart Home
    Here is a Polish/English review of a newer version of this switch, this time with CBU module:

    https://www.elektroda.pl/rtvforum/topic3994713.html#20686595
    https://www.elektroda.com/rtvforum/topic3994713.html#20686595
    Helpful post? Buy me a coffee.
  • #16 20965496
    chuc2rk
    Level 1  
    >>20507709
    thank you for pin config.
  • #17 21035919
    aliexpress
    Level 4  
    Hi,

    I have just received a different version of the AP-SMT-Breaker02-1CH from our favorite Chinese vendor.
    Will not work with cloudcutter.
    Unfortunately, they mounted all components (except LED and switch) on the top side of the PCB.
    This means, the T34 chip is surrounded basically by all the components that are very high (relais, resistor, capacitor, coil).
    Unfortunately, there is not a single pad for pogo pins.

    Any idea on how to flash that? Due to the surrounding by 3D "high" components, it seems impossible to get directly to Pins 25/26 of the T34 for serial connection. I am lost!
    Gray PCB with various electronic components, including a relay, capacitor, and T34 integrated circuit. Bottom view of the AP-SMT-Breaker02-1CH PCB with a button and terminals.
  • #18 21036043
    p.kaczmarek2
    Moderator Smart Home
    That looks like a true challenge. It's a shame that I don't get that kind of devices myself.

    Unfortunatelly the only viable solution I can see is the one described here:
    [BK7231N / T34 ] Teardown Tuya Generic Wifi Wall Light Switch 3 Gang
    CameronDev wrote:
    Close-up of a small electronic board with thin wires soldered and labeled TX/RX, Ground, and 3.3V.
    Here is how you can flash a T34-based wall switch with OpenBeken. This switch has no programming pads available, so desoldering T34 in QFN case is required.

    So you will need hot air and some basic soldering skills.

    Alternatively, you could try just removing the high components... with some flux, extra Pb solder, and solder wick it should be easy.
    Helpful post? Buy me a coffee.
  • #19 21036158
    aliexpress
    Level 4  
    Thanks for your suggestions! I have zero experience with soldering tiny SMD stuff - nor do I have the equipment to do any reflow soldering.
    It might be one way to de-solder all the big components and try to attach tiny wires directly to the pins, since the solder of the pins is exposed on the PCB, just like someone wrote later on the page you linked:
    karayoooo wrote:
    Hello guys

    it can be done directly without unsoldering T34.
    Here in a tuya socket.
    Yes It's tricky and yes a pcb pad is quite (but not) broken but it works !

    Close-up of a circuit board with an integrated circuit and a missing capacitor marked as C1.


    But, even that would be very challenging for me since I do not have a microscope and just using the big lens I have is not good enough for the required precision.
📢 Listen (AI):

Topic summary

✨ The discussion revolves around the AP-SMT-Breaker02-1CH EZB-WBZS1H16N-A, a 16A Mini Smart Switch featuring the BK7231N MCU. Users share experiences with flashing the device using tuya-cloudcutter and OpenBK firmware. Several users report challenges with different PCB versions, particularly regarding pin configurations and the vulnerability of newer devices to cloudcutter exploits. Some suggest using soldering methods for flashing when cloudcutter fails, while others discuss the difficulties posed by high components surrounding the T34 chip on certain models. The conversation includes troubleshooting tips, firmware flashing procedures, and alternative methods for accessing the device's pins.

FAQ

TL;DR: "Over 10 boards flashed successfully" [Elektroda, karrlsson, post #20557058] proves UART flashing still works, yet new batches block Cloudcutter—“soldering remains the only safe fallback” [Elektroda, p.kaczmarek2, post #20543446]

Why it matters: You must pick the right method—or risk bricking a 16 A mains switch.

Quick Facts

• Rated load: 16 A resistive [Elektroda, anthonythomas, post #20507709] • MCU: BK7231N / T34 QFN-32 on main PCB [Elektroda, anthonythomas, post #20507709] • Verified pinout: LED_n P6, Relay P15, Button P8, Toggle P14 [Elektroda, anthonythomas, post #20507709] • Stable UART speed: 115 200 bps on 10+ units [Elektroda, karrlsson, post #20557058] • 2024 revision blocks Cloudcutter exploit [Elektroda, aliexpress, post #21035919]

Which firmware version works for the original BK7231N switch?

OpenBK7231N_UG_1.15.597.bin flashed fine through Cloudcutter when the device still ran Tuya 1.2.1 (oem_bk7231n_control_switch) [Elektroda, anthonythomas, post #20507709]

What GPIO mapping should I set in OpenBeken?

Use: LED_n 6, Relay 15, Button 8, Toggle 14. This combination drives the onboard LED, relay, and tactile switch correctly [Elektroda, anthonythomas, post #20507709]

Why are the key and relay assigned to Relay ID 1 instead of 0?

Relay 0 is reserved by OpenBeken for the internal "Virtual" channel. Mapping your hardware to Relay 1 avoids conflicts and keeps rules predictable [Elektroda, mucek4, post #20530465]

How do I flash with tuya-cloudcutter when the LED freezes?

  1. Put device in AP mode; script changes SmartLife_xx to A_xx.
  2. When LED freezes, join the new A_* AP.
  3. If it reconnects to SmartLife, supply Wi-Fi credentials using a second router named "cloudcutterflash" [Elektroda, riskorja, post #20539277] One in three switches needed this extra step—a 33 % manual-assist rate [Elektroda, riskorja, post #20539277]

What baud rate and wiring succeed most often?

Set 115 200 bps, 8-N-1. Connect GND→GND, USB-TX→MCU-RX (pin 25), USB-RX→MCU-TX (pin 26), and 3.3 V if possible [Elektroda, karrlsson, post #20557058]

Is there a quick 3-step soldering procedure?

  1. Solder three jump wires to GND, RX, TX test pads.
  2. Hold CEN low or power-cycle while USB-UART provides 3.3 V.
  3. Use BKwriter or OpenBeken flasher to write the *.bin file. “ We show every step on our channel ” [Elektroda, p.kaczmarek2, post #20543734]

What edge-case should I expect with CBU/CB2S modules?

Later revisions replace BK7231N with CBU or CB2S modules. Cloudcutter and existing pinouts fail. Only full disassembly or hot-air removal of the module exposes UART pins [Elektroda, 20686601; Elektroda, 21036043].

Is skipping 3.3 V entirely safe?

It works but risks stressing protection diodes because current back-feeds through the I/O lines [EEVblog video]. Ground the VDD before reconnecting to avoid latch-ups [Elektroda, p.kaczmarek2, post #20557162]

I cannot reach pins 25/26 on the new single-sided PCB. Any ideas?

Remove tall parts or desolder the T34 with hot air, then flash on a jig. Alternatively, scrape solder mask and tack 34 AWG wires to the exposed pad edges, as shown by another user [Elektroda, 21036158].

Where can I find more detailed visual guides?

OpenBeken maintains a YouTube playlist covering multiple BK7231N boards, including step-by-step soldering and firmware upload [Elektroda, p.kaczmarek2, post #20543446]
ADVERTISEMENT