Sonoff - Something went wrong

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
MortenEV
New user
Posts: 9
Joined: 07 Nov 2016, 06:58

Sonoff - Something went wrong

#1 Post by MortenEV » 04 May 2017, 21:35

Hi

I have solder and flash my new sonoff, the first of 4 I have gotten ... But the ESP_0 wifi is not coming up and the serial monitor shows funny symbols.

What have I done wrong, before I solder and flash the next 3 units :?:
sonoff.JPG
sonoff.JPG (67.72 KiB) Viewed 10037 times
sonoff 2.JPG
sonoff 2.JPG (23.15 KiB) Viewed 10037 times
Attachments
20170504_191108102_iOS.jpg
20170504_191108102_iOS.jpg (411.93 KiB) Viewed 10037 times
20170504_191000743_iOS.jpg
20170504_191000743_iOS.jpg (436.23 KiB) Viewed 10037 times
20170504_190954670_iOS.jpg
20170504_190954670_iOS.jpg (543.07 KiB) Viewed 10037 times
20170504_190951768_iOS.jpg
20170504_190951768_iOS.jpg (676.33 KiB) Viewed 10037 times

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff - Something went wrong

#2 Post by Shardan » 04 May 2017, 21:40

Hello

Is it a cheap FTDI progger (around 2..3 USD) ?

Regards
Shardan
Regards
Shardan

MortenEV
New user
Posts: 9
Joined: 07 Nov 2016, 06:58

Re: Sonoff - Something went wrong

#3 Post by MortenEV » 04 May 2017, 22:50

Shardan wrote: 04 May 2017, 21:40 Is it a cheap FTDI progger (around 2..3 USD) ?
Yes, it is a cheap one. Which one from ebay ( or other) source will be a better model ?

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Sonoff - Something went wrong

#4 Post by toffel969 » 04 May 2017, 23:53

MortenEV wrote: 04 May 2017, 22:50
Shardan wrote: 04 May 2017, 21:40 Is it a cheap FTDI progger (around 2..3 USD) ?
Yes, it is a cheap one. Which one from ebay ( or other) source will be a better model ?
Afaik cheap one should be OK, but u need another power supply. Don't power it through ac... T dangerous.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

User avatar
lucaberta
Normal user
Posts: 59
Joined: 09 May 2016, 11:26
Location: Lausanne, Switzerland
Contact:

Re: Sonoff - Something went wrong

#5 Post by lucaberta » 05 May 2017, 00:37

9600 bps is not the standard console port speed. Try with 115200, it should work fine.

There is no issue in powering a Sonoff from the 5V line from an FTDI adapter, works well. And I can see that you have correctly set the data signals to 3.3V on the FTDI adapter, which is the good thing to do.

Let us know is the correct console port speed fixes the issue.

Bye, Luca

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Sonoff - Something went wrong

#6 Post by toffel969 » 05 May 2017, 11:22

lucaberta wrote: 05 May 2017, 00:37 9600 bps is not the standard console port speed. Try with 115200, it should work fine.

There is no issue in powering a Sonoff from the 5V line from an FTDI adapter, works well. And I can see that you have correctly set the data signals to 3.3V on the FTDI adapter, which is the good thing to do.

Let us know is the correct console port speed fixes the issue.

Bye, Luca
5V ? are you sure ? i always thought that 5V will destroy the ESP ?!?
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

User avatar
lucaberta
Normal user
Posts: 59
Joined: 09 May 2016, 11:26
Location: Lausanne, Switzerland
Contact:

Re: Sonoff - Something went wrong

#7 Post by lucaberta » 05 May 2017, 12:07

toffel969 wrote: 05 May 2017, 11:22 5V ? are you sure ? i always thought that 5V will destroy the ESP ?!?
You are right, I have checked and also the Vcc pin on the Sonoff needs 3.3V, like the voltage of the data lines.

The picture of the FTDI adapted shows that its jumper is correctly configured for 3.3V and that adapter correctly puts 3.3V on the Vcc cable. I have the same exact adapter and I have checked the traces on the PCB, so I can confirm that.

There are some TTL-serial USB adapter which always put 5V on the Vcc cable, unfortunately, so one should really make sure that the adapter puts 3.3V out and not 5V, to avoid damaging the ESP8266 on board.

More information from someone who has hacked a Sonoff and put ESPEasy on it can be found here:
http://www.jackenhack.com/sonoff-switch-i2c/

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff - Something went wrong

#8 Post by grovkillen » 05 May 2017, 12:40

I have this USB-2-TTL which have both a 3.3V output and a 5V output. Works like a sharm:

Image

Image
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff - Something went wrong

#9 Post by Shardan » 05 May 2017, 13:59

toffel969 wrote: 04 May 2017, 23:53
MortenEV wrote: 04 May 2017, 22:50
Shardan wrote: 04 May 2017, 21:40 Is it a cheap FTDI progger (around 2..3 USD) ?
Yes, it is a cheap one. Which one from ebay ( or other) source will be a better model ?
Afaik cheap one should be OK, but u need another power supply. Don't power it through ac... T dangerous.
For the 1000. time:
Do not use cheap FTDI proggers

I think i've written it several times now:
The FT232 is one of the most faked chips on China market.
An genuine FT232 costs around 3 USD when you pick it in 1000-lots!
3 USD for the chip alone - compare with the price of these proggers yourself, maybe you will realize something.

FTDI has taken measurements against these fakes. It looks as if flashing runs nicely, but the chip driver replaces the
flashed data with zeros and a text like "FAKE CHIP DETECTED" or such. Obviously this destroyed code will never boot!
Look at the posting here for a lot more details: https://www.letscontrolit.com/forum/vie ... 232#p15118

To be honest i don't see the advantages of the FTDI besides it wears a famous brand name.
If you want a reliable and cheap progger, chose one with a CP2102 or a CH340 / CH340G.
They are even cheaper then the FTDI fakes and they do exactly the same Job.

On another note:
I strongly agree with toffel:
Do not use the internal power of the Sonoffs for flashing, use an external power supply instead.

It's much more fun to discuss with living forum members....... :!:

Regards
Shardan
Regards
Shardan

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff - Something went wrong

#10 Post by grovkillen » 05 May 2017, 14:21

Shardan wrote: 05 May 2017, 13:59 If you want a reliable and cheap progger, chose one with a CP2102 or a CH340 / CH340G.
Just to be clear. The progger I got and that I linked to is CP2102 based. Here's a filtered search.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff - Something went wrong

#11 Post by Shardan » 05 May 2017, 16:03

grovkillen wrote: 05 May 2017, 14:21
Shardan wrote: 05 May 2017, 13:59 If you want a reliable and cheap progger, chose one with a CP2102 or a CH340 / CH340G.
Just to be clear. The progger I got and that I linked to is CP2102 based. Here's a filtered search.
And it looks quite nice and nice price too.
Might be a next one for me if i break my progging cables again :)
Regards
Shardan

MortenEV
New user
Posts: 9
Joined: 07 Nov 2016, 06:58

Re: Sonoff - Something went wrong

#12 Post by MortenEV » 10 May 2017, 16:09

Thanks for all your help. I was not aware about the issues with just buying a cheap FTDI chip. I have ordered a CP2102 from the link below and I hope this will solve all issue at once :-)
grovkillen wrote: 05 May 2017, 12:40 I have this USB-2-TTL which have both a 3.3V output and a 5V output. Works like a sharm:

raptor
Normal user
Posts: 25
Joined: 25 Oct 2016, 10:39
Location: Montana / Bulgaria

Re: Sonoff - Something went wrong

#13 Post by raptor » 11 May 2017, 14:14

Hi MortenEV

I have the same FTDI chip and I had the same problem with one of my Sonoff devices. The problem was not in the FTDI chip.
My problem was that somehow something was left on my Sonoff from previous flashes.
After two days research in google I solved my problem.
Just flash my sonoff with blank bin and then flash with EspEasy.
I followed instructions from here:

http://www.pratikpanda.com/completely-f ... sh-memory/

Hope this helps :)
Regards from Bulgaria.
raptor

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 22 guests