Tuya / SZKOSTON MG-SPQ100 USB-C + USB-A 5v-12v WiFi Smart Switch - BK7231N
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.
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.
Opening is very easy. No glue. Shell is fixed to the flat base with clips only.
Flash dumped with Easy Flasher holding sewing needles connected to USB-TTL adaptor.
boot log from TX2 - taken direct from pin on IC
Easy Flasher config extraction
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.
and the OpenBeken template
in Home Assistant this looks like:
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:
Tuya firmware backup https://github.com/openshwprojects/FlashDumps/commit/bb38d2d1b41e0db0be69952d9aeae0551e42e60b
manual attached.
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.
Opening is very easy. No glue. Shell is fixed to the flat base with clips only.
Flash dumped with Easy Flasher holding sewing needles connected to USB-TTL adaptor.
boot log from TX2 - taken direct from pin on IC
Code: Text
Easy Flasher config extraction
Code: Text
Code: JSON
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
and the OpenBeken template
Code: JSON
in Home Assistant this looks like:
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:
Tuya firmware backup https://github.com/openshwprojects/FlashDumps/commit/bb38d2d1b41e0db0be69952d9aeae0551e42e60b
manual attached.
Comments
It could be a good candidate for WS2812 controller, especially with USB, but it looks like P16 is sadly not routed out... [Read more]