logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

W600 TW02 Generic SmartPlug

iprak  37 9138 Cool? (+3)
📢 Listen (AI):

TL;DR

  • Teardown of an unbranded SmartPlug wifi switch showed it used a W600 TW-02 module and the Smart Life app.
  • Serial output identified Tuya IoT SDK V2.0.0, firmware TC0025_TW02_PLUG_L1_P0, and the board exposed 3.3V, Gnd, PA5 switch input, PB8 blue LED, and PB15 relay/red LED.
  • The module drew around 80mA in stock condition, while the FCC filing said it could consume up to 230 mA.
  • OpenBK7231T was adapted to compile the W600 SDK, and the W600 build became part of OpenBK7231T's standard build.
  • The module ran a bit warm, and opening required a sharp spudger plus patient desoldering of the power connections.
This is a teardown of an unbranded wifi switch named SmartPlug. The printed manual referred to Smart Life app.

The appearance is quite generic with a single button on one side. There is a blue LED around the button.


I was able to safely open using using a sharp spudger. The electronics are recessed so spudger has quite less change of damaging anything. Desoldering the power connections takes patient but I was able to do just using a desoldering wick.


And here is the cleaned up board and the chip.


The module had power and serial connection cleared marked and serial connection showed this.


<TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >
[FW]: TC0025_TW02_PLUG_L1_P0 | [HW]: TW-02 V2.0 | [SW]: V1.4.0 (Nov 18 2019 08:48:17) | [PID]: nqvhejakb112obkn
[01-01 00:00:00 TUYA Notice][hw_table.c:532] wifi status is :0
[01-01 00:00:00 TUYA Notice][wifi_hwl.c:1316] <LF> old mode is 4 <LF>
[01-01 00:00:04 TUYA Notice][tuya_main.c:143] wf_assign_ap_scan failed(-606)
[01-01 00:00:04 TUYA Notice][gw_intf.c:2270] gw_cntl.gw_wsm.stat:1
[01-01 00:00:04 TUYA Info][wifi_hwl.c:1261] Low Power Mode
[01-01 00:00:05 TUYA Notice][hw_table.c:532] wifi status is :0
[01-01 00:00:14 TUYA Notice][tuya_device.c:694] free_mem_size:89880


So LSP-A was actually a W600 TW-02 module.
W600 - https://www.winnermicro.com/en/html/1/156/158...%20Wi,industrial%20and%20other%20IoT%20fields.
There is also a FCC filing about TW-02 - https://fccid.io/2ASQV-TW-03/User-Manual/User-manual-4210975.pdf


Examination of the board showed that there was actually a red and a blue LED; red was tied to the relay.


Later I was able to adjustOpenBK7231T app to compile the W600 SDK (originally obtained from https://github.com/w600/sdk). The W600 build is now part of OpenBK7231T's standard build.

And here are the actual connections:

Side-A
* 3.3V
* Gnd
* PA5 connected to switch pulled high
* PA4 - No connection
* PB16 - No connection
* PB15 - relay tied to red LED

Side-B
* PB13 - No connection
* PB18 - No connection
* PB8 - blue LED
* PB7 - No connection
* Reset - No connection

The module seems to run a bit warm and took around 80mA in stock condition before custom firmware. The FCC filing mentioned that it can consume up to 230 mA so this was well within range.

About Author
iprak wrote 19 posts with rating 7 . Been with us since 2022 year.

Comments

p.kaczmarek2 18 Oct 2022 15:36

Good job, @iprak . As far as I can tell, you're the first one in the world to flash custom IoT firmware on W600 product. I also have one W600 product in the queue (a RGBCW bulb), but I haven't found... [Read more]

iprak 18 Oct 2022 18:16

Sorry, I don't know where the plugs came from. I got it from a local guy who claimed they no longer worked. [Read more]

omelchuk890 25 Oct 2022 08:36

To replace the personally killed WB2S module, which are not available for free sale, TW-02 2.0 was purchased . I begin to conduct the following tests of the brain and iron. https://obrazki.elektroda.pl/1085525200_1666679666_thumb.jpg... [Read more]

p.kaczmarek2 25 Oct 2022 17:12

@omelchuk890 don't worry, as far as I remember, on W600 platform you have just to use the "basic" OTA mechanism, the one from WWW panel, that takes a HTTP server link to a binary file. You can use Xampp... [Read more]

iprak 25 Oct 2022 19:09

Yes, both W800 and W600 don't support webApp based drag-n-drop OTA update. You can use the native webApp to directly upload the firmware. [Read more]

omelchuk890 25 Oct 2022 19:14

@iprak Tell me how? I'm not good at the web Will it be enough if a file is sent to him at the request of the module? [Read more]

p.kaczmarek2 25 Oct 2022 19:19

The second option would be to implement http_rest_post_flash from rest_interface.c. I am not sure how the internals of W600/W800 OTA look like, tough. @omelchuk890 hmm install xampp on windows, make... [Read more]

iprak 25 Oct 2022 19:19

You need a local webserver, that is what Xampp or Node Red is. There are variety of other options including IIS, nodejs. I personally use IIS since it comes bundled with Windows and give you more instructions.... [Read more]

omelchuk890 25 Oct 2022 19:46

I have a bad idea of the sequence of actions. Will such a design work? https://obrazki.elektroda.pl/6704436300_1666718955_thumb.jpg Added after 16 [minutes]: Ok, tomorrow [Read more]

p.kaczmarek2 25 Oct 2022 21:12

@omelchuk890 if you have a node-red (as you shown on screenshot), then you obviously don't need xampp. That sequence could work, but please make sure that file is read as a raw binary stream. It's one... [Read more]

omelchuk890 26 Oct 2022 10:05

@pkaczmarek2 Everything turned out using Node-Red. It's very simple. Absolutely. But a little instruction to those who follow in my footsteps. Copy the file we need to the home folder, I put it in... [Read more]

p.kaczmarek2 27 Oct 2022 08:14

@omelchuk890 end? where? It's just the beginning. We are going to support all major platforms as long as they are possible to support. The release files were just missing because I didn't have to update... [Read more]

omelchuk890 28 Oct 2022 10:23

@pkaczmarek2 board W600 versions 70 and 71 do not work after the update. Not by ota wifi, not by com port. Rolled back to version 1.14.69 After downloading 71, the network 4.1 does not appear ... [Read more]

p.kaczmarek2 29 Oct 2022 08:14

@omelchuk890 thank you for reporting the issue. From what I can see, our developer @iprak is already investigating it. https://github.com/openshwprojects/OpenBK7231T_App/issues/354 @omelchuk890 @iprak... [Read more]

MisterPi 08 Nov 2022 22:28

I'm sure this it the wrong place for this, but the poor W600 is one of the least-supported chips out there. This project makes me happy because some time ago I bought a bag of Wemos W600-Pico boards.... [Read more]

iprak 09 Nov 2022 02:24

You can find flashing instructions here https://github.com/openshwprojects/OpenW600 and custom firmware here https://github.com/openshwprojects/OpenBK7231T_App under Releases. [Read more]

p.kaczmarek2 09 Nov 2022 10:05

We can add WS2812 support, if that's needed. [Read more]

MisterPi 10 Nov 2022 17:10

I don't know how much effort that would be on this processor, but it would be very nice to have it. The W600-Pico dev board comes with a pretty limited version of Micropython that has not been updated... [Read more]

iprak 10 Nov 2022 17:22

Sorry but I feel that features should be added based on the presence of a real device and not a dev SDK. Otherwise the testing would be very limited and might lead to overall instability. That Micropython... [Read more]

FAQ

TL;DR: The W600-based TW02 SmartPlug draws 80 mA idle and can peak at 230 mA [Elektroda, iprak, post #20239610]; “you’re the first one in the world to flash custom IoT firmware” [Elektroda, p.kaczmarek2, post #20241602] Serial flashing, then HTTP OTA keeps updates simple.

Why it matters: Knowing the exact pins, power draw and update path prevents bricking and speeds deployment.

Quick Facts

• SoC: WinnerMicro W600, 80 MHz ARM Cortex-M3 [WinnerMicro Datasheet]. • Idle current ≈ 80 mA; FCC lists 230 mA max [Elektroda, iprak, post #20239610] • Operating rail: 3.3 V and GND are silk-screened on Side-A header [Elektroda, iprak, post #20239610] • Relay & red LED: PB15; blue LED: PB8 [Elektroda, iprak, post #20239610] • Fastest reported flash: 460 800 baud, <8 s [Elektroda, omelchuk890, post #20251927] • Stable firmware builds: OpenW600 v1.15.514 (serial) and v1.14.69 (OTA) [Elektroda, jtauscher87, #20463539; omelchuk890, #20256479].

What chipset is inside the “generic” TW02 SmartPlug?

The module is a TW-02 carrying the WinnerMicro W600 Wi-Fi MCU, an 80 MHz ARM Cortex-M3 with 1 MB flash and 288 KB SRAM [Elektroda, iprak, #20239610; WinnerMicro Datasheet].

How do I open the enclosure without damage?

Insert a sharp spudger into the seam, work around the rim, then desolder the recessed power tabs with a wick; nothing fragile sits near the edge [Elektroda, iprak, post #20239610]

Which pins control the relay and indicator LEDs?

PB15 drives the relay and the red LED simultaneously; PB8 drives the blue status LED. The momentary button pulls PA5 high when pressed [Elektroda, iprak, post #20239610]

Three-step flashing guide?

  1. Hold BOOT, tap RESET to enter UART mode.
  2. Run wm_tools -p COMx write_flash firmware.fls.
  3. Power-cycle; connect to the new AP for setup. [Elektroda, iprak, post #20275572]

How do I perform OTA updates on W600?

Use the basic HTTP OTA field in the web Config page: host the .img on a local server (XAMPP, Node-RED, or IIS), paste the URL, and press Update [Elektroda, iprak, post #20252832]

My OTA failed with versions 1.14.70/71—why?

Those builds lacked Wi-Fi initialisation for W600; after update the AP never appears, forcing serial rollback to 1.14.69 [Elektroda, omelchuk890, post #20256479]

What’s an edge-case failure to watch for?

Using the web-app drag-and-drop OTA won’t work on W600/W800; only the direct HTTP method is implemented [Elektroda, iprak, post #20252812]

Where can I download current binaries?

Releases live under OpenBK7231T_App and OpenW600 repositories—choose the “W60x” builds such as OpenW600_1.15.xxx.fls [Elektroda, iprak, post #20275572]

Does the W600 run hot in normal use?

Users noted the module feels warm but stays within spec; no thermal shutdown reported after continuous 80 mA draw [Elektroda, iprak, post #20239610]

Can I control WS2812/Neopixel strips?

Not yet in OpenBK, but developers are open to adding it when real W600 lighting hardware is available [Elektroda, p.kaczmarek2, #20275822; iprak, #20278005].
%}