ct-Open-Source / tuya-convert

A collection of scripts to flash Tuya IoT devices to alternative firmwares
MIT License
4.55k stars 496 forks source link

Teckin SP22 - new Wifi module? #269

Closed sknoche closed 4 years ago

sknoche commented 4 years ago

Hi, after receiving a new batch of Teckin SP22 and failing to proceed with an OTA update, I opened one of the devices to flash them wired...

I was expecting to find a TYWE2S and connect DI0 to GND to enter flashing mode,

Check for reference:

Instead I stumbled upon this chip: image image

Does anyone know, which chip it is and if it's possible to flash them at all?

kueblc commented 4 years ago

I see TYWE2S silk screened off to the side in those images, I assume you saw these too. From the top picture it does look like it could still be the right chip. From left to right I see what looks like flash memory, ESP8266, and a crystal. Have you tried hooking up to it?

sknoche commented 4 years ago

I did, soldered TX, RX, 3v and GND... But I failed to locate IO0 to get into flashing mode. I'll upload better pictures tomorrow, the lighting is terrible atm.

GeorgeIoak commented 4 years ago

This document should help you locate IO0, https://fccid.io/2ANDL-TYWE2S/User-Manual/Users-Manual-3596121.pdf

sknoche commented 4 years ago

Thanks for the reference, but the schematics indicate a position of IO0 on the blank side of the chip (with the SP22 sticker attached).

image

I have absolutely no idea, how to proceed 😞

kueblc commented 4 years ago

Do you have better pictures to share?

GeorgeIoak commented 4 years ago

You have to solder a wire onto the IO0 test pad. Tx and Rx are not test points but pins on the module which might be a little difficult to access unless you can get the bottom side of the PCB that this is soldered into (the green PCB in your picture) 2019-09-15 11 56 52

Here's how I did it on a Gosund WP3. I was able to access Tx/Rx at a different spot on the board since I could get to the back side of the TYWE2S unless I removed it from the board

sknoche commented 4 years ago

image

This is a closer look at the backside of the "not-really-a-TYWE2S" :p Maybe this makes it a little more obvious, why I am struggling to find the IO0.

GeorgeIoak commented 4 years ago

Well the front side has full access to the ESP chip so you'll have to look at the pinout of the ESP8285 which shows GPIO0 on pin15 and work from there

sknoche commented 4 years ago

I guess I'll not be able to solder these fine smd pinouts, I'll have to give it a pass :(. My soldering irons tip isn't even small enough to just touch a single pin 😂

DonStefano commented 4 years ago

This might be the new WR2 WiFi Module which does not have an ESP chip.

sknoche commented 4 years ago

I can confirm it's not an ESP, but it seems to be the WR3 instead of WR2, so I guess there is no way to flash tasmota :/...

So, likely all the newer versions of all Tuya devices will become more or less "unconvertable".

sknoche commented 4 years ago

Maybe I'll just get a couple of TYWE2S and change the module itself 😮

meingraham commented 4 years ago

@DonStefano can you double-check whether yours indeed is WR2?

sknoche commented 4 years ago

On mine the folowing details are (difficult to read though) printed:

W302 (found this user manual with google) I119WR1 or T119WR1d G113A6

DonStefano commented 4 years ago

I did not open it because I want to return it in case it does not work with Tasmota.

meingraham commented 4 years ago

Well, regardless of whether its a WR2 or WR3, it won't work with Tasmota. Only ESP82xx based Tuya modules work with Tasmota.

kueblc commented 4 years ago

Unfortunately if this is the case there's not much we can do. Thanks for sharing and documenting.

henfri commented 4 years ago

See https://github.com/ct-Open-Source/tuya-convert/issues/285#issuecomment-558850571

omidjozani commented 4 years ago

It's W302 wifi chip from Realtec and can not be flashed by Tasmota

krjan02 commented 3 years ago

I bought 4x SP22 recently, they contain a RTL8710BM

foto_no_exif (1) foto_no_exif

I will come up with some solution to use Tasmota in theese Plugs... (Custom Chip or Re-Writing Tasmota to theese Chips)

https://github.com/pvvx/RtlDuino

formatBCE commented 3 years ago

Any updates on this? Decided to flash all my Teckin sockets, and appears they all have new chip 👎

Blackest-Nighthawk commented 1 year ago

Sorry for re- opening this theme.

I found just one solution for this problem, I bought some TYWE2S modules from AliExpress and here you can see the result.

IMG_20221116_181604 IMG_20221116_181553 IMG_20221116_181705

For this you have to modify the bottom of the case a little bit.

IMG_20221116_181832

and this ist the adaption plan. I can draw it clear if anyone is interested of this.

IMG_20221116_184526

All in all not so beauty, I know but it works. So you need around 30 - 45 min. for this swap.

techman83 commented 1 year ago

@Blackest-Nighthawk - That looks like a TYWE2L pinout, are both sets of pins common? If so, I've been retro-fitting esp32-c3 chips into a bunch of my devices via these -> https://templates.blakadder.com/DT-ESP-C05.html

Close to drop in, generally all I've needed to do is a bit of a sand of the ends if the slot is a bit tight length wise.

Blackest-Nighthawk commented 1 year ago

@techman83 - I bought 12 peaces of SP-22. 4 peaces was with original TYWE2S, other 4 peaces was with the RTL8710 but with the pinout of TYWE2S. This was easy, I just put the new TYWE2S module into the device. The last 4 peaces was with the completely different pin layout of the RTL8710 board. This is what you can see on my photos. So this was the easiest way for me. The ESP-32 is very nice and powerful. I used this often for other projects. Maybe you can poste the changed pin configuration for tasmaota. This is perhaps interesting for other user.