logo elektroda
logo elektroda
X
logo elektroda

Tuya USB Smart Adapter HC-S5050-WIFI - teardown, OpenBeken flashing guide for BK7231N

knust  Cool? (+8)
📢 Listen (AI):
Hello,
I would like to present a simple teardown of a "USB Smart Adapter HC-S050-WIFI". It's a small device to control power to a USB socket built around a BK7231N. To open the case, apply some gentle force around the edge to open the lid.
For flashing via UART connect TP5 as RX and TP4 as TX.


Front view of USB Smart Adapter HC-S050-WIFI with technical specifications.
Small USB adapter with a white casing lying on a wooden surface.

White USB adapter with text on top, placed on a wooden surface.

Internal view of the USB Smart Adapter HC-S050-WIFI with open casing.

USB Smart Adapter HC-S050-WIFI circuit board with BK7231N chip. Close-up of the USB Smart Adapter HC-S050-WIFI circuit board with connected UART wires.

Image of internal components of USB Smart Adapter HC-S050-WIFI with visible electronic components on a green PCB.


{
  "vendor": "Tuya",
  "bDetailed": "0",
  "name": "USB Smart Adapter HC-S050-WIFI",
  "model": "HC-S050-WIFI",
  "chip": "BK7231N",
  "board": "TODO",
  "flags": "1024",
  "keywords": [
    "5V",
    "MOSFET"
  ],
  "pins": {
    "6": "WifiLED_n;0",
    "7": "Rel;1",
    "8": "Btn_Tgl_All;0",
    "24": "Btn;1"
  },
  "command": "",
  "image": "https://obrazki.elektroda.pl/5839545100_1692292748_thumb.jpg",
  "wiki": "https://www.elektroda.com/rtvforum/viewtopic.php?p=20697534#20697534"
}

About Author
knust wrote 2 posts with rating 8 . Been with us since 2023 year.

Comments

p.kaczmarek2 17 Aug 2023 19:40

That's really something new. I haven't seen such device yet. Where did you buy it? It doesn't seem to have much components, so I wonder how much it costs. [Read more]

knust 17 Aug 2023 19:45

I got it from AliExpress for ~4 Euro. My listing does not exist anymore, but just search for "Tuya Smart Micro USB Adapter Switch". [Read more]

honorjlh 29 Aug 2023 16:43

Hey, I managed to "flash" it using the latest BK7231N_QIO firmware, but after flashing or after a power cycle, it goes back to its old firmware. Did you experience something similar? [Read more]

p.kaczmarek2 29 Aug 2023 17:10

How did you "flash" this device? The process must have failed. [Read more]

honorjlh 30 Aug 2023 10:58

I tried flashing it using BekenWriter V1.60 and BK7231 Easy UART Flasher with the latest BK7231N UART firmware. I have successfully used these programs to flash other Tuya devices in the past, so it should... [Read more]

p.kaczmarek2 30 Aug 2023 11:29

I'd say it's impossible for original firmware to "come back", but maybe, just maybe, you had somehow something in the OTA partition and it had OTA'ed back to Tuya... who knows... Did you pair it with... [Read more]

anthonythomas 30 Aug 2023 19:49

I've just received one of these. I'll try to flash it soon. [Read more]

anthonythomas 31 Aug 2023 19:26

Flashed. Original firmware is 1.3.10 so can't be exploited via cloudcutter. I tried flasher v 1.1.1 but it kept crashing. Went back to 1.0.6 which worked. Took a few attempts at disconnecting and turning... [Read more]

p.kaczmarek2 31 Aug 2023 20:41

Can you please copy here the crash stack trace so I can fix the tracer? [Read more]

anthonythomas 03 Sep 2023 23:38

I can't find any log. Where should it be located? [Read more]

p.kaczmarek2 04 Sep 2023 08:40

OpenBeken log can be viewed by going to: Launch Web Application -> Logs [Read more]

CrewMdk 19 Nov 2023 20:40

The TP3 pin is CEN so you can reset and flash. [Read more]

banid0 09 Jul 2024 22:44

Hello! I just bought one of this to try, for 2,99USD it is worth the risk. I haven't managed to open this, I can't seem to understand how. Anyway, I would prefer to flash it wirelessly, I am experienced... [Read more]

p.kaczmarek2 09 Jul 2024 23:15

As far as I know, this is a patched version. You need to solder wires. [Read more]

banid0 10 Jul 2024 00:05

I always get the same answer...it's my destiny :D At least I managed to open the device already, yupee! [Read more]

p.kaczmarek2 11 Jul 2024 09:40

So how your version looks like? Is it the same as the one in the first post? [Read more]

banid0 24 Jul 2024 09:23

What do you mean by version? The firmware i already told. What more information would you like about this usb relay? What would be the right procedure to flash this with esphome? I already opened... [Read more]

banid0 06 Aug 2024 23:05

Hello, So finally I am trying to mod this. I am using exactly the same device as this thread. I am trying to follow this guide https://www.youtube.com/watch?v=t0o8nMbqOSA I am trying to dump the firmware... [Read more]

divadiow 07 Aug 2024 13:19

instead of rebooting with CEN though you can achieve the same by interrupting the power to the device itself. Often for USB powered devices I'll just plug the USB cable in or toggle the button on the relevant... [Read more]

%}