logo elektroda
logo elektroda
X
logo elektroda

Tuya / SZKOSTON MG-SPQ100 USB-C + USB-A 5v-12v WiFi Smart Switch - BK7231N

divadiow  1 123 Cool? (0)
📢 Listen (AI):
Here's a dinky little thing. A cousin of the 1 and 3 port USB-A type. A Shenzhen Koston Technology Co Ltd (aka SZKOSTON) device.

Black USB Type-C smart adapter with USB ports and side button

https://www.aliexpress.com/item/1005008035710469.html

A type-C + type-A wifi smart USB switch. 1 button to toggle both USB ports on/off and one red LED that flashes when wifi is connecting or in pairing mode (when running Tuya factory firmware). Each USB port is independently controllable from within the app once paired.


Label on packaging for Tuya Smart USB-C WiFi adapter compatible with Alexa and Google Home 2-in-1 smart adapter box with USB ports, compatible with Alexa and Google Home Back of blue packaging with recycling instructions and Made in China label White box labeled 2 in 1 with smart logo and sticker with QR code and Chinese text Box with tech specs for a Zigbee or WiFi device with USB and power info White box labeled CH129-NT with gray-wrapped item inside on blue surface Label with MG-SPQ100-B-USB-WiFi marking on a blue box

Opening is very easy. No glue. Shell is fixed to the flat base with clips only.

Black WiFi adapter with USB port and technical labels on top Black USB plug or adapter lying on a blue surface Black USB charger with hidden camera lens on blue surface Black charger with USB-C and USB-A ports on a blue background Disassembled Wi-Fi adapter with exposed USB port and circuit board. Circuit board with USB ports and electronic components Disassembled USB identification card reader on a blue surface Close-up of a blue PCB with dual USB-A ports and surface-mounted components Close-up of a PCB with two USB ports and labeled electronic components. Electronic module with BK7231N chip and USB-C and USB-A connectors PCB with BK7231N chip and USB-A and USB-C connectors on blue background Close-up of adapter with USB Type-A and USB Type-C ports on a blue mat Close-up of a blue PCB with USB ports and surface-mounted electronic components PCB with USB ports and labeling including the date 2034-06-15

Flash dumped with Easy Flasher holding sewing needles connected to USB-TTL adaptor.

Close-up of a PCB with electronic components and tweezers touching solder pads

boot log from TX2 - taken direct from pin on IC

PCB with BK7231N chip, labeled TX1, RX1, TX2 pins and reference pinout diagram

Code: Text
Log in, to see the code


Easy Flasher config extraction

Code: Text
Log in, to see the code


Code: JSON
Log in, to see the code


But with that extraction only, the LED behaviour is flashing when connecting to wifi then solid red when connected. This does not match the factory behaviour.

Inspiration taken from this post: https://www.elektroda.com/rtvforum/topic4062580.html#21139966 this autoexec will, after wifi is connected, turn on the LED if either or both of the relays are toggled closed (USB port on). If both are open (off) the LED is off.

Code: Text
Log in, to see the code


and the OpenBeken template
Code: JSON
Log in, to see the code


OpenBK7231N control panel with device status, USB ports and configuration buttons

in Home Assistant this looks like:

Device settings panel for obk1EEBC835 with USB ports and visibility options enabled

I don't seem to be able to find a way to stop helper channel 10 being published, though I'm sure I've seen that discussed.

Added after 9 [minutes]:

Forgot to add that I paired it with Tuya:

Mobile app screen showing option to add MG-WiFi Plug device MG-WiFi Plug app screen with two switches and a power icon App screen showing empty Schedule tab with Add Schedule button App settings screen with Relay Status option set to Remember last status Device update screen showing No updates available message MG-WiFi Plug app screen showing two switches labeled Switch 1 and Switch 2

Tuya firmware backup https://github.com/openshwprojects/FlashDumps/commit/bb38d2d1b41e0db0be69952d9aeae0551e42e60b

manual attached.

About Author
divadiow
divadiow wrote 4016 posts with rating 691 , helped 338 times. Live in city Bristol. Been with us since 2023 year.

Comments

p.kaczmarek2 15 Nov 2025 13:34

It could be a good candidate for WS2812 controller, especially with USB, but it looks like P16 is sadly not routed out... [Read more]

%}