logo elektroda
logo elektroda
X
logo elektroda

How to Utilize ESP8285 MCU in Connecto Smart Plug 1P IP44 with TYWE2S Module

Tilator 1629 11
ADVERTISEMENT
  • #1 20933824
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13

    I'll put some pictures here later, but Connecto Smart plug 1P (outdoor model) seems to have TYWE2S in it. It has ESP8285 MCU on it.
  • ADVERTISEMENT
  • #2 20934190
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    Remember to make a 2MB backup, I know it's an ESP device, but still, backup can always be useful. Is tuya-convert still working for that thing?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20934557
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13

    p.kaczmarek2 wrote:
    Is tuya-convert still working for that thing?


    I'm not familiar enough with this. I have only used tuya-cloudcutter to flash Beken-based devices. Should this work for Espressifs too?

    Or is there something else to use for OTA flashing this device?
  • ADVERTISEMENT
  • #4 20934604
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    ESP devices could be flashed by tuya-convert, but most of the devices are patched nowadays. If tuya-convert is not working, you will have to use esptool.py or maybe just online webpage with Tasmota installer:
    https://www.elektroda.com/rtvforum/topic3990951.html
    Helpful post? Buy me a coffee.
  • #5 20936044
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13

    I did try a couple of OTA tools without luck. Sounds like a wired connection is needed.

    Unfortunately, I have not found any good tool to backup the original firmware. My serial adapter is a bit old. It has a Prolific chip and it works properly only with really old Windows versions.

    OTA flashing I did try by Linux/Docker. There seems to be some library problems with some of these flashing tools there too. I suppose Ubuntu 23 is too new for them.

    I have an old Cubietruck somewhere, but I think it's not even worth trying.
  • #6 20936152
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    How does this plug look like? Can you open the case?
    Helpful post? Buy me a coffee.
  • #7 20936554
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13

    Here are some pictures for you.

    I had to desolder the wifi module to have it flashed. Even then, grounding GPIO0 from the soldering pad did not work. I had to use a wire soldered on the "testpad".

    Flashing sonoff basic binary did put the relay alive from the web page without any settings modification. I'll try to find the LEDs as soon as I have more time for it. It has a green/red double-color LED on it. This pain in the ass took all day to flash. I don't have more time for it now.
    Attachments:
    • How to Utilize ESP8285 MCU in Connecto Smart Plug 1P IP44 with TYWE2S Module 20240128_210611.jpg (1.05 MB) You must be logged in to download this attachment.
    • How to Utilize ESP8285 MCU in Connecto Smart Plug 1P IP44 with TYWE2S Module 20240128_204310.jpg (1.37 MB) You must be logged in to download this attachment.
    • How to Utilize ESP8285 MCU in Connecto Smart Plug 1P IP44 with TYWE2S Module 20240128_204359.jpg (1.53 MB) You must be logged in to download this attachment.
    • How to Utilize ESP8285 MCU in Connecto Smart Plug 1P IP44 with TYWE2S Module 20240128_204304.jpg (1.39 MB) You must be logged in to download this attachment.
  • #8 20936610
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13
    Oh no. It did not boot up again. I suppose it just lost settings.


    Added after 4 [hours] 2 [minutes]:

    Everything else works now but the button does not.

    It's not connected directly to any pad on the wifi board. I don't know how should it be configured.
  • ADVERTISEMENT
  • #9 20937205
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    Tasmota will return to AP on a long button press and if you configure a button incorrectly, it may think that button is pressed and return to AP anyway.

    I would say it's almost impossible for button to be left unconnected. Please double check where the PCB copper trace go. It has to go somewhere.... maybe there is a via?
    Helpful post? Buy me a coffee.
  • #10 20938223
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13

    Is there any possibility to detect by console what happens when the button is pressed?
  • #11 20938229
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14394
    Help: 650
    Rate: 12315
    What do you mean, what are you trying to achieve? Do you mean Tasmota console on the Tasmota WWW page?
    Helpful post? Buy me a coffee.
  • #12 20938233
    Tilator
    Level 12  
    Posts: 130
    Help: 2
    Rate: 13

    p.kaczmarek2 wrote:
    What do you mean, what are you trying to achieve? Do you mean Tasmota console on the Tasmota WWW page?


    Tasmota console or whatever other means. I mean, is it possible to somehow detect if something happens when the button is pressed.

Topic summary

✨ The discussion revolves around utilizing the ESP8285 MCU found in the Connecto Smart Plug 1P (outdoor model) with the TYWE2S module. Users share experiences regarding flashing the device, mentioning the need for a 2MB backup and the potential use of tuya-convert for OTA flashing. However, many devices are now patched, necessitating alternative methods like esptool.py or Tasmota installers. One user faced challenges with OTA tools and had to desolder the Wi-Fi module for flashing, ultimately getting the relay to work but encountering issues with the button functionality. Suggestions include checking PCB traces for button connections and using the Tasmota console to diagnose button press events.
Generated by the language model.

FAQ

TL;DR: For TYWE2S/ESP8285 Connecto plugs, plan a 2MB backup; "make a 2MB backup" before any flashing. This quick FAQ helps with wired flashing, OTA limits, Tasmota setup, button/LED mapping, and recovery. [Elektroda, p.kaczmarek2, post #20934190]

Why it matters: It prevents bricks and speeds troubleshooting for makers flashing the Connecto Smart Plug 1P IP44’s TYWE2S (ESP8285).

Quick Facts

Does tuya-convert still work on the Connecto Smart Plug with TYWE2S/ESP8285?

Usually no for recent units. "ESP devices could be flashed by tuya-convert, but most of the devices are patched nowadays." If it fails, use esptool.py or the Tasmota Web Installer. [Elektroda, p.kaczmarek2, post #20934604]

Can tuya-cloudcutter flash ESP8285 devices like TYWE2S?

No. tuya-cloudcutter targets Beken BK7231/TuyaOS devices, not ESP8285/ESP8266. Use ESP-focused tools, such as esptool.py or Tasmota Web Installer. [tuya-cloudcutter README]

How do I back up the original 2MB firmware?

Use esptool.py. 1. Put the module in UART flash mode. 2. Run: esptool.py read_flash 0x0 0x200000 backup.bin. 3. Verify a complete image saved. This captures the full 2MB flash for recovery. [esptool.py README]

How do I put TYWE2S (ESP8285) into UART flashing mode?

Hold GPIO0 low and reset to enter the UART bootloader. Power the module with 3.3V, connect GND, and cross TX/RX. Release GPIO0 after it is in download mode. Use only an isolated 3.3V supply. [ESP8285 Datasheet]

I grounded GPIO0 using the module pad, but flash mode still fails. What now?

Use the dedicated GPIO0 test pad if available. Some boards reroute or buffer the visible pad. One user only succeeded after soldering to the test pad. Keep GPIO0 low during reset. As a last resort, desolder the module. [Elektroda, Tilator, post #20936554]

Is desoldering the TYWE2S required for flashing this Connecto plug?

Not typically, but it happened here. The poster desoldered the module to flash successfully. Inspect both sides for UART and strap test pads before deciding. In-circuit flashing works if those pads are available. [Elektroda, Tilator, post #20936554]

Which Tasmota binary should I start with for a single-relay plug?

Start with the Sonoff Basic build. In this case, it toggled the relay from the web UI without extra settings. You can map LEDs and buttons later using a Template. [Elektroda, Tilator, post #20936554]

Why did my device revert to AP mode after I mapped a button?

A mis-mapped button reads as always pressed. Tasmota then triggers the long‑press AP fallback. "It may think that button is pressed and return to AP." Recheck the PCB trace and any vias to the real GPIO. [Elektroda, p.kaczmarek2, post #20937205]

How can I see if the button press is detected in Tasmota?

Open the Tasmota console and set weblog 4 for verbose logs. Press the button and watch for Button1 or Switch1 events. You can also enable SerialLog if required. Reduce logs after testing with weblog 2. [Tasmota Commands]

The button isn’t on any TYWE2S GPIO — how do I locate it?

Trace the button pads to a via or resistor and then to a module pin. "It has to go somewhere... maybe there is a via?" Confirm with continuity testing. Update your Tasmota Template with the discovered GPIO. [Elektroda, p.kaczmarek2, post #20937205]

How do I configure the dual‑color LED and relay in Tasmota?

Use Template configuration to assign GPIO roles. Map Relay1 to the relay pin, and Led1i and Led2i to the LED pins. Invert LED logic if needed. Test with Power1 on/off and observe LED behavior. [Tasmota Template]

What flash size and memory does ESP8285 provide?

ESP8285 integrates 1 MB embedded SPI flash. Firmware behavior and boot strapping mirror ESP8266 class parts. Size firmware appropriately and avoid exceeding the embedded limit. [ESP8285 Datasheet]

OTA flashing failed. What should I try next?

OTA exploits are commonly blocked now. Switch to a wired flash using esptool.py or Tasmota Web Installer. This bypasses OTA dependence and restores control quickly. [Elektroda, p.kaczmarek2, post #20934604]

My USB‑UART adapter is unreliable. Any workaround?

Change adapters or use an OS with working drivers. The poster’s older Prolific adapter only worked on older Windows. Move to a different machine or adapter before flashing. [Elektroda, Tilator, post #20936044]

Any safety tips when opening and flashing this IP44 mains plug?

Disconnect mains before opening. Program the module off‑mains using an isolated 3.3V supply. Never attach USB‑UART when the board is live. Keep leads short to avoid resets during flashing. [Tasmota Serial Flashing]
Generated by the language model.
ADVERTISEMENT