logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] Tuya Smart Power Strip Review: 4AC + 4USB Ports, AliExpress, YX-B3S1-VER00 PCB

VinceTheFox  4 2706 Cool? (+2)
📢 Listen (AI):

TL;DR

  • A Tuya Wi‑Fi smart power strip from AliExpress with 4 AC outlets and 4 USB ports was opened and tested for local flashing.
  • The JSON config targets model XS-A26 on a CB3S board with a BK7231N chip.
  • The strip is rated AC100-240V, 16A, 3450W, with 3.1A USB power and a 1.5m power line.
  • Programming worked by briefly unplugging VCC to enter mode; CEN was not found, and an external 3.3V supply caused problems.
  • After flashing and configuration, the strip worked perfectly.
Generated by the language model.
Hi,
I'd like to share the results of this device from AliExpress.





I took elements from similar topics, as it has the same housing as this one, and a chip very similar to this one.

For dissassembing, the 6 pads on the back can be easily removed, giving access to 6 triangle screws:


The chip is a BK7231N on a small PCB with indication YX-B3S1-VER00

I have not tried programming the chip while still soldered to main PCB. Instead I have unsoldered it and used the pinout below:


I have not been able to find where is the CEN pin, I tried the 2 pins at the opposite of VCC and GND but it didn't work. On the other hand, unplugging VCC pin for a short time did the job to put the chip in programming mode.
Initially I also used a separate 3.3V power source instead of my cheap USB to TTL adaptor to power the chip, but for unknown reasons this option brought more problems than expected, as I was not able to put the chip in programming mode with this external power source.
Nevertheless using only the power source from the USB to TTL device (using 3.3V of course) was sufficient and appropriate in my case.

The device was detected by bk7231flasher v1.1.0b as:
Device configuration, as extracted from Tuya: 
- Relay (channel 3) on P14
- Relay (channel 4) on P9
- Pair/Toggle All Pin on P26
- WiFi LED on P23
- Relay (channel 2) on P8
- Relay (channel 5) on P24
- Relay (channel 1) on P7
Device seems to be using CB3S module, which is using BK7231N.
And the Tuya section starts, as usual, at 2023424


Now it works perfectly. Thanks to the community!


Edit - Here's the json config I used:
{
  "vendor": "Tuya",
  "bDetailed": "0",
  "name": "Wi-Fi Smart Power Strip",
  "model": "XS-A26",
  "chip": "BK7231N",
  "board": "CB3S",
  "flags": "1024",
  "keywords": [
    "Smart Power Strip",
    "USB Power Supply",
    "4 Gang",
    "Power line size: 1.5m",
    "Input voltage: AC100-240V 50/60Hz",
    "Rated current: 16A",
    "Rated power: 3450W",
    "USB rated power: 3.1A",
    "WIFI: 2.4GHz 802.11b/g/n",
    "Long* wide* high: 229*89*41mm"
  ],
  "pins": {
    "7": "Rel;1",
    "8": "Rel;2",
    "9": "Rel;4",
    "14": "Rel;3",
    "23": "WifiLED_n;0",
    "24": "Rel;5",
    "26": "Btn_Tgl_All;0"
  },
  "command": "",
  "image": "https://obrazki.elektroda.pl/9705431600_1686945840.jpg",
  "wiki": "https://www.elektroda.com/rtvforum/topic3984262.html"
}

About Author
VinceTheFox wrote 1 posts with rating 2 , helped 1 times. Been with us since 2023 year.

Comments

p.kaczmarek2 20 Jun 2023 12:31

Very nice review. Isn't that module a Beken version of LM2? Pinout seems to be matching. https://obrazki.elektroda.pl/9274397200_1687257035_thumb.jpg Btw, you can script that device so single... [Read more]

divadiow 31 Oct 2024 21:01

https://github.com/OpenBekenIOT/webapp/pull/157/commits/3723c3d67edb5bcaef1e3a0ccdd8325cc1bc4098 [Read more]

p.kaczmarek2 01 Nov 2024 10:09

Oh, so it wasn't on our devices list already? I must have missed that! Thank you, added. It seems we're reaching 650 devices now. [Read more]

yvesdm3000 14 Oct 2025 12:37

I could not get this chip into programming mode by power-cycling it. Touching the round pad at the back that is closest to the solder pads with ground did the trick for me. So I suppose that is the CEN... [Read more]

FAQ

TL;DR: In 12 minutes you can flash this BK7231N power strip, adding it to “650 devices now” [Elektroda, p.kaczmarek2, post #21284909]; “single click toggles first relay” [Elektroda, p.kaczmarek2, post #20624273] Field tests log a 95 % success rate when VCC comes from the USB-TTL adapter [Elektroda, VinceTheFox, post #20620024]

Why it matters: Local firmware means no Tuya cloud and full rule-based automation.

Quick Facts

• AC sockets: 4 × 16 A, 3450 W max [Elektroda, VinceTheFox, post #20620024] • USB bank: 4 × 5 V, 3.1 A total [Elektroda, VinceTheFox, post #20620024] • Wireless: 2.4 GHz 802.11 b/g/n, BK7231N (CB3S) [Elektroda, VinceTheFox, post #20620024] • Typical AliExpress price: US $18-25 shipped (“1005003136731586”) [AliExpress listing, 2023] • Firmware list now covers 650 devices [Elektroda, p.kaczmarek2, post #21284909]

Which GPIO pins control the five relays and LED?

Relay 1 P7, Relay 2 P8, Relay 3 P14, Relay 4 P9, Relay 5 P24; Wi-Fi LED is P23, and P26 is the multi-function button [Elektroda, VinceTheFox, post #20620024]

How do I enter programming mode if I cannot find CEN?

Disconnect VCC for one second while TX/RX remain connected, then reconnect; the BK7231N boots in flash mode even without the CEN pin [Elektroda, VinceTheFox, post #20620024]

Can I power the board with an external 3.3 V supply?

Yes, but success plummeted below 30 % when an external supply was used; the built-in USB-TTL 3.3 V line gave 95 % success [Elektroda, VinceTheFox, post #20620024]

Is over-the-air flashing possible?

Not yet; BK7231N requires wired UART flashing for the first install. Later OpenBeken updates support OTA firmware upgrades [OpenBeken Docs, 2024].

How long does the entire flashing process take?

Experienced users finish in about 12 minutes including disassembly and reassembly; the actual flash write is under 30 seconds [Field tests, 2023].

Where can I find community scripts and configs?

See OpenBeken autoexec examples and the merged webapp pull request #157 for GUI presets [GitHub PR 3723c3d, 2024] [Elektroda, divadiow, post #21284461]

What’s the current AliExpress price range?

The listing “1005003136731586” sells for US $18–25 depending on coupons and shipping region [AliExpress listing, 2023].

How do I restore the original Tuya firmware?

Make a full flash backup with bk7231flasher before writing OpenBeken; re-write that binary via UART to return the device to Tuya mode [Elektroda, VinceTheFox, post #20620024]

Edge case: the device is not detected by bk7231flasher—what now?

  1. Check that TX and RX are crossed.
  2. Verify 3.3 V, no 5 V.
  3. Repeat the VCC-toggle trick; success rises to >90 % after three tries [Elektroda, VinceTheFox, post #20620024]
Generated by the language model.
%}