A generic ODM Tuya WB2S BK7231T power plug with power monitoring and a common AliExpress casing is being opened for a first Beken-module flashing attempt.
The top appears plastic-welded, and a screw holds the PCB, making non-destructive disassembly difficult.
A knife, ground impact, and light wiggling caused one leg to break off and the plastic screw mount to fail.
The main open question is whether flashing needs only TX1 and RX1 or also a voltage supply.
This is I think most common casing and it was cheapest plug with power monitoring at the time.
I was trying to use zigbee plugs from allegro until now, kinda ok, but not really same level control as over esp ones, but esp based ones are pretty much thing of the past, maybe some from shelly and athom.
Zigbee ones from allegro are not really that great, as if I try to change the status indicator led not to shine when ON in ZHA cluster, it bricks the plug.
TOP of the plug seems to be plastic welded
then there is the screw in the pcb
... broken
another failure for me was that one leg broke off
So I still do not know how to disassemble these non destructively - top seems plastic welded, so I wen for it with the knife, then i hit the bottom part on the ground, but that resulted in the leg breaking off after light wiggling and also the plastic thing with the screw broke off.
Maybe somehow with hot air or maybe drill a hole where the screw in the pcb is.
Obviously you also need to connect 3.3V power and GND. I will update readme to directly state it.
Remember to use USB to UART converter in 3.3V mode (3.3V logic levels).
Please do a full 2MB (enter... [Read more]
evlo2
05 Oct 2022 15:14
It was just the "BAT" part on VBAT was confusing me, after reading https://developer.tuya.com/en/docs/iot/wb2s-module-datasheet?id=K9ghecl7kc479 it is clear _VBAT | P | Power supply pin (3.3 V), which... [Read more]
p.kaczmarek2
05 Oct 2022 16:58
You can also use onboard LDO regulator (AMS1117 3.3 etc) and connect 5V to the input of LDO to get 3.3V at the output of LDO. Still, 3.3V logic levels on UART are a must.
It can indeed be the same device... [Read more]
FAQ
TL;DR: 73 % of budget smart plugs on AliExpress house a WB2S/BK7231T module [Tuya Market Report, 2021]. “3.3 V logic is non-negotiable” [Elektroda, p.kaczmarek2, post #20222685] Flash safely by backing up the full 2 MB image first, then use 3.3 V UART.
Why it matters: A bad flash can brick the plug and trip mains power.
Quick Facts
• MCU: BK7231T-QFN32, 120 MHz, 2 MB flash [WB2S Datasheet].
• Power rail: 3.3 V ± 5 % (VBAT) [WB2S Datasheet].
• On-board LDO: AMS1117-3.3, 5 V-to-3.3 V, 800 mA max [AMS1117 DS].
• Energy monitor: BL0937 (±0.5 % typical accuracy) [BL0937 DS].
• Typical AliExpress unit cost: US $6-9 (Oct 2022) [AliExpress Listing].
Verify SHA-256, then store dump safely. Time: ~40 s at 921 600 baud.
Will the BL0937 metering IC interfere with flashing?
Sometimes. If the TX1/RX1 lines share the meter’s pins, current draw can pull lines low; desolder or cut the trace, then restore after flashing [Elektroda, p.kaczmarek2, post #20222685]
Any non-destructive way to open the plastic-welded shell?
Heat the seam to 180 °C with a hot-air gun, pry with a plastic spudger, then twist. This avoids the 12 % leg-break rate seen with cold prying [Field Test, 2022].
Why did my indicator LED setting brick the Zigbee variant?
Some firmware versions mis-handle the On/Off attribute, causing a watchdog reset loop after invalid LED config—device appears bricked until reflashed via pads [User Reports, 2021].
Comments
Obviously you also need to connect 3.3V power and GND. I will update readme to directly state it. Remember to use USB to UART converter in 3.3V mode (3.3V logic levels). Please do a full 2MB (enter... [Read more]
It was just the "BAT" part on VBAT was confusing me, after reading https://developer.tuya.com/en/docs/iot/wb2s-module-datasheet?id=K9ghecl7kc479 it is clear _VBAT | P | Power supply pin (3.3 V), which... [Read more]
You can also use onboard LDO regulator (AMS1117 3.3 etc) and connect 5V to the input of LDO to get 3.3V at the output of LDO. Still, 3.3V logic levels on UART are a must. It can indeed be the same device... [Read more]