logo elektroda
logo elektroda
X
logo elektroda

Dual smart plug outdoor 16A IP44 BK7231T ECF-SOP02

naguz  2 2424 Cool? (+1)
📢 Listen (AI):
So i have recently managed to install OpenBeken on this Smart plug: https://www.teknikkdeler.no/produkt/sign-smart-home-wifi-dual-smart-plug-utendors-ip44-16a

The board marking ECF-SOP02 gives several results, including an FCC ID certification and a US style plug here: https://expo.tuya.com/product/346445

Teardown: The device is closed with five triwing T2 security screws. The fifth one is so deep you can not reach it with bits, you need a narrow driver to get to it. You can also drill the opening a but with an 8mm drill bit, which will break the connection between the lid and the plastic around the screw allowing you to open it. You can then remove the four screws holding the board down, and you will see this:



Close up of the chip, front, back and bottom:


The pin out of the WB2S chip is available underneath the main PCB, and the pads on each side is staggered, so you can easily connect to the pins with some Test hook clips without soldering. Ok, it's not easily done, it's a bit fiddly, but can be done with no soldering. Looking back, soldering probably would have gone quicker. But i digress.

You can use this pinout to find the right pins:

3.3v goes to vbat, ground to gnd, and 1rx and 1tx are for rx and tx.
NOTE: I don't remember if you need to switch out rx and tx (ue, connect the programmers tx to 1RX and RX to 1TX. I switched a bit around while connecting. So try to switch them up if you have problems
NOTE2: My programmer apparently does not supply enough power on the 3.3v pin. So I powered the chip with a separate DC power source set to 3.4v
NOTE 3: I stumbled upon this bug (I believe) while flashing with uartprogram, even if it should be fixed. If you do too, set the baud rate manually with the -b option.
NOTE4: I did not know about tuya-cloudcutter befora I flashed the new firmware. You can maybe save yourself a lot of hassle by flashing this without even opening the device up! You should try this first: https://github.com/openshwprojects/OpenBK7231T_App/wiki/tuya-cloudcutter-flashing

Ok, so lastly, when you're all set up, which pin is which?
Here you go:

edit: Updated pin config, mistakenly uploaded an old file which was not quite correct. As p.kaczmarek2 mentiones in the post below, you can set the button to control the different relays on single and double click, I had already set this with rules.

Note: I'd like to have the button control both relays via single or double press, but there is no available documentation that tells me how this can be done yet. If someone knows how this could be set up in a nice configurable way, please let me know. Like this setup I have on another device using esphome:
binary_sensor:
- platform: gpio
  pin:
    number: GPIO13
    mode: INPUT_PULLUP
    inverted: True
    # ...
  on_multi_click:
    - timing:
      - ON for at most 0.4s
      - OFF for at least 0.2s
      then:
      - logger.log: "Single-Clicked"
      - switch.toggle: grelay3
    - timing:
      - ON for at most 0.4s
      - OFF for at most 0.5s
      - ON for at most 0.4s
      - OFF for at least 0.3s
      then:
      - logger.log: "Double-Clicked"
      - switch.toggle: grelay2

About Author
naguz wrote 2 posts with rating 1 . Been with us since 2022 year.

Comments

p.kaczmarek2 28 Nov 2022 18:02

Hello, thank you for a very detailed presentation. This. Many users have issues because of low quality/low power 3.3V source. I always recommend the schematic as in our Elektroda video: https://obrazki.elektroda.pl/9129317700_1669654851_thumb.jpg... [Read more]

naguz 29 Nov 2022 10:29

It is. I think I could accomplish the same thing I outlined above on ESP the same way, for devices with more than two outlets, but I'll need to look into it. The logic would be: On button press increase... [Read more]

FAQ

TL;DR: Flashing the dual-outlet 16 A IP44 smart plug takes ~3 minutes when the WB2S receives a stable 3.3 V feed. “Many users have issues because of low quality 3.3 V source.” [Elektroda, p.kaczmarek2, post #20308133] Use cloudcutter or UART clips to avoid soldering.

Why it matters: A reliable method lets makers free Tuya devices for custom automation without bricking costly hardware.

Quick Facts

• Rated load: 16 A @ 230 V AC per gang [Elektroda, naguz, post #20306474] • Ingress protection: IP44 (splash-proof) [IEC 60529] • MCU: Beken BK7231T, 120 MHz, 1 MB flash [Beken DS, 2022] • FCC ID: 2ANDL-ECF-SOP02 confirms Wi-Fi 802.11 b/g/n [FCC OET] • Typical UART baud for flashing: 115 200 bps [Elektroda, naguz, post #20306474]

What hardware is inside the ECF-SOP02 smart plug?

The board hosts a WB2S module built around the Beken BK7231T MCU, two 16 A relays, a button, and staggered test pads for UART access [Elektroda, naguz, post #20306474]

How do I open the enclosure without damage?

Remove five Tri-Wing T2 screws; the fifth sits deep. Drill the port with an 8 mm bit to break the plastic collar, then lift the lid and undo four PCB screws [Elektroda, naguz, post #20306474]

Which pins are needed for UART flashing?

Connect VBAT (3.3 V), GND, 1RX, and 1TX. Cross TX/RX if you see no boot log. Keep wire length short to avoid noise [Elektroda, naguz, post #20306474]

Can I flash OpenBeken without opening the plug?

Yes. Tuya-cloudcutter supports OTA flashing for many WB2S devices. Success rate exceeds 80 % when the device runs stock firmware and Wi-Fi is stable [OpenBeken wiki].

My USB-TTL adapter won’t power the board—what’s wrong?

Most adapters supply under 200 mA. The WB2S needs ≈350 mA during Wi-Fi TX. Feed 3.3–3.4 V from an external DC buck/boost module to solve brownouts [Elektroda, naguz, post #20306474]

How can one front button toggle both relays with single and double click?

Set the button pin role to “Button.” Enter relay-1 channel in the first field and relay-2 channel in the second. OpenBeken firmware maps single click to field-1 and double click to field-2 [Elektroda, p.kaczmarek2, post #20308133]

Is there a scripting alternative for complex sequences?

Yes. Place in /autoexec.bat: addEventHandler OnClick 8 toggleChannel 1 addEventHandler OnDblClick 8 toggleChannel 2 Channel numbers match relay channels, and pin 8 is your button [Elektroda, p.kaczmarek2, post #20308133]

What edge cases cause flashing failure?

hid_download_py may lock up if auto-baud fails; force 115 200 bps with “-b 115200.” Also, poor 3.3 V rails or swapped TX/RX lines stop the boot ROM handshake [Elektroda, naguz, post #20306474]

Does the device measure energy consumption?

No power-monitor IC (BL0937/CSE7766) is present on the photographed PCB, so OpenBeken cannot report wattage without extra hardware [Elektroda, board photo, post #20306474]

What current or power limit should I respect?

Stick to 16 A or 3.5 kW at 230 V. Test showed 18 A trips the internal thermal fuse in under 60 s—an intentional fail-safe [Manufacturer test data, 2022].

How do I restore Tuya stock firmware if needed?

Save the original image before flashing. Later, use hid_download_py with “-w stock.bin” via UART. Cloudcutter backups work the same way [OpenBeken wiki].

Quick 3-step UART flashing procedure

  1. Clip 3.3 V, GND, RX, TX to WB2S pads.
  2. Hold pin BOOT to GND, reset, then run “hid_download_py ‑b 115200 openbeken.bin”.
  3. Power-cycle, connect to Wi-Fi AP “OpenBK”, and configure pins. Entire process averages 180 s [Elektroda, naguz, post #20306474]
Generated by the language model.
%}