arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.05k stars 4.78k forks source link

Sonoff T1 2CH - How to get into flash mode? #800

Closed m3zm3riz3 closed 7 years ago

m3zm3riz3 commented 7 years ago

I have connect TX, RX, 3v, GND and hold down button labelled S1 when connecting it to usb however the module powers on and then fails to allow upload. Showing the following error on Platform IO,

"Auto-detected: COM3 Uploading .pioenvs\sonoff\firmware.bin warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed *** [upload] Error -1 [ERROR] Took 22.07 seconds

[SUMMARY] Environment sonoff-minimal [SKIP] Environment sonoff-ds18x20 [SKIP] Environment sonoff [ERROR] [ERROR] Took 22.07 seconds"

Any thinking on the reason or am i not putting the module into flash mode correctly.

12voltman commented 7 years ago

The button on the 2ch model is not connected to GPIO0 like it is on the basic sonoff. On this board, the switch, as well as the two relays, is connected only to a helper 8051 type microcontroller. To flash firmware to the ESP8266 onboard and control the relays you will need to do some mods to the board including removing the helper chip, removing the leds, and soldering some small wire to some smd resistors. I'm working on a full writeup of the process, and in my experience it should take about 20mins with the right equipment.

davidelang commented 7 years ago

is this a new 2ch version? the original one is supported without hardware modifications.

I wouldn't call anything that required unsoldering a chip "supported"

jeylites commented 7 years ago

I’m not sure how many versions are out there. I have got a T1 3 gang which has an Atmel ic on it. I’m guessing it’s for the RF 433 control.

What I found out is, with the Atmel on, you can never get the ESP8255 in to flash mode. Moreover, the tac button is not connected to GPIO 0. After a couple hours of thinkering, I soldered a wire on GPIO 0 and ground, and removed the Atmel ic . It flashed right away.

It’s quite a step but it works. I’m guessing @12voltman is on a similar line as well?

davidelang commented 7 years ago

if you connected a wire to GPIO and left the atmel chip connected, it should still go into flash mode.

The only reason this wouldn't work is if the atmel chip is interfering with the serial communication. On Tue, 3 Oct 2017, jeylites wrote:

Date: Tue, 03 Oct 2017 18:46:52 +0000 (UTC) From: jeylites notifications@github.com Reply-To: arendst/Sonoff-Tasmota <reply+0021b24f9385e902fa46f33af847698441294fef996edb9592cf0000000115eb9d1 c92a169ce0f170b24@reply.github.com> To: arendst/Sonoff-Tasmota Sonoff-Tasmota@noreply.github.com Cc: David Lang david@lang.hm, Comment comment@noreply.github.com Subject: Re: [arendst/Sonoff-Tasmota] Sonoff T1 2CH - How to get into flash mode? (#800)

I’m not sure how many versions are out there. I have got a T1 3 gang which has an Atmel ic on it. I’m guessing it’s for the RF 433 control.

What I found out is, with the Atmel on, you can never get the ESP8255 in to flash mode. Moreover, the tac button is not connected to GPIO 0. After a couple hours of thinkering, I soldered a wire on GPIO 0 and ground, and removed the Atmel ic . It flashed right away.

It’s quite a step but it works. I’m guessing @12voltman is on a similar line as well?

Bockwurst19 commented 6 years ago

Hi @ALL Also have a Sonoff T1 Touch. Could show me where 3v3 RX TX GND and GPIO 0 is on the board.

Thanks MFG

jeylites commented 6 years ago

What version is your T1?

On Sat, Nov 11, 2017 at 5:33 PM Bockwurst19 notifications@github.com wrote:

Hi @ALL https://github.com/all Also have a Sonoff T1 Touch. Could show me where 3v3 RX TX GND and GPIO 0 is on the board.

Thanks MFG

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/800#issuecomment-343652429, or mute the thread https://github.com/notifications/unsubscribe-auth/AIw6wL8hgfuoEX3LIuGjg6IAGKuPEPO4ks5s1WnygaJpZM4PD0mm .

-- Sent from Iphone Mobile

Bockwurst19 commented 6 years ago

This here https://www.imagebanana.com/s/873/xcjAO47H.html https://www.imagebanana.com/s/873/Sy5jGQR5.html

jeylites commented 6 years ago

@Bockwurst19

That looks like the latest version, you going to have to trace the GPIO 0 pin. or flash using SonOTA

The one I have got is using PSA module.

ghost commented 6 years ago

@jeylites Is the Atmel chip you're talking about, the HD6001? I have the following board in a 3-way switch by some random company. The board though does state it is an Itead board, and the WiFi module is the PSF-B85. I'm trying to flash the ESP using an attached grounded button connected to GPIO0 and no luck.

img_1375

jeylites commented 6 years ago

@webtop the HD6001 is a touch controller which should interfere with the uploading process. However, base on the photo, yours doesn’t seems to have an Atmel installed, a 8 legged IC.

Make sure your pins are right before uploading . Check the reference picture below febb623f-c085-4b85-af67-c709c23622e2

jimmyw commented 6 years ago

These pictures show a completely different product that i have, i have no module on mine. I have the same board as Bockwurst19 picture.

I started to reverse engineer my Sonoff T1 switch here:

https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-T1

I noticed the helper-chip controls both the GPIO0 and the RESET line on the esp, have not got it to flash just yet, but im on it. There must be some way to let the silabs chip get the esp to enter download mode, just need to find it.

ghost commented 6 years ago

Yeah, I'm the same...this is the one device I haven't yet flashed, although I might just connect direct to the ESP and power it

inter-faced commented 5 years ago

I flashed the Sonoff T1 EU 2CH by connecting GROUND to R19 resistor (without soldering). Just follow the explanation in the video https://www.youtube.com/watch?v=0G0JA0Bc54k

kmokrzycki commented 4 years ago

Hi here in case this is still useful to anyone I recently got version 2.1 Full number on the board is WS-EU-03 TOUCH V2.1

And same as you guys could not enter flash mode until I tried R18 and this worked for me! https://photos.app.goo.gl/5RDMBggaLWfmq1fm9

kmokrzycki commented 4 years ago

Hi here in case this is still useful to anyone I recently got version 2.1 Full number on the board is WS-EU-03 TOUCH V2.1

And same as you guys could not enter flash mode until I tried R18 and this worked for me! https://photos.app.goo.gl/5RDMBggaLWfmq1fm9