Flashing Sonoff Wifi Modules / not working

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
murias
New user
Posts: 1
Joined: 16 Sep 2017, 16:40

Re: Flashing Sonoff Wifi Modules / not working

#21 Post by murias » 16 Sep 2017, 16:46

Blacky's Boss wrote: 20 Jul 2017, 22:00 Well, I have the same issue. And I think I've seen a couple of others, too... A few weeks ago, I ordered and received my first two Sonoff's... Flashing and configuring ESPEASY was a breeze, so I ordered 3 more from a different seller @ aliexpress....These 3 seem to do something whith stock firmware, but after flashing, they're all dead.
I'm beginning to suspect that I 've received a 'cheap chinese knockoff' of an already cheap chinese product:
- Housing of the first batch is matte grey-ish, and feels rough. 2nd batch is just shiny white.
- Cablecovers of the first batch fit nicely. 2nd, not so much.
- Lettering on top is just... Different. Slightly different font, slightly thicker.
- Even the WiFi symbol is a bit bigger. Strange, isn't it?
- Warranty sticker: Looks the same, but if you look closer, it's not. Working ones say 2017 5 1, and the dead ones say 2017 5 15, by the way.
- PCB, same differences, silkscreen texts rougher and bigger, Soldering (especially on the high voltage tracks) just ugly.

Still, if anyone has a real clue on why these things won't work after flashing, i'd like to know too.... :lol:
I had exactly the same problem with one Sonoff Basic that I just received from Aliexpress. It worked fine with the manufacturer's firmware, but it stopped working after I flashed ESP Easy.
LeisureLadi wrote: 23 Jul 2017, 18:31 Did you flash in DOUT mode? The flash memory in your picture require this mode. DiO, QIO, etc. won't work.
With LeisureLadi's solution I got it working. Thank you very much!

Filipe Múrias

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#22 Post by Dylantje » 17 Sep 2017, 13:07

is there perhaps a how to flash with the IDE....
I cannot flash 6 different sonoff with the espeasy flasher.
Strange problem..
The flash tells me flash ok...
Only no wifi to find.

I try 120 and the last dev 2.0
With differnet boards.
single
dual
and the 4 channel.
Different flasgools
Differnet usb flashers.

No luck @ all.
And i did flash 10 sonoff before this [ a time a go ]

So help please.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#23 Post by Dylantje » 17 Sep 2017, 13:36

My 4 sonoff 4 channel flash data:

Code: Select all

Comport (example 3, 4, ..)           :5
Flash Size (example 512, 1024, 4096) :1024
Build (example 71, 72, ..)           :120
Using com port: 5
Using bin file: ESPEasy_R120_1024.bin
esptool v0.4.6 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
        setting board to nodemcu
        setting baudrate from 115200 to 115200
        setting port from COM1 to COM5
        setting address from 0x00000000 to 0x00000000
        espcomm_upload_file
        stat ESPEasy_R120_1024.bin success
        setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_open
Uploading 411264 bytes from ESPEasy_R120_1024.bin to flash at 0x00000000
        erasing flash
        size: 064680 address: 000000
        first_sector_index: 0
        total_sector_count: 101
        head_sector_count: 16
        adjusted_sector_count: 85
        adjusted_size: 055000
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        setting serial port timeouts to 10000 ms
        setting serial port timeouts to 1000 ms
        espcomm_send_command: receiving 2 bytes of data
        writing flash
..................................................................................................................................................................................................................................................................................................................................................................................................................
starting app without reboot
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
closing bootloader
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
Press any key to continue . . .
So everything looks ok...
Only no wifi to see When i power the board with 220v
I see also no lights blinking ?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#24 Post by Dylantje » 17 Sep 2017, 13:46

My Sonoff [single ] Data :

Code: Select all

Comport (example 3, 4, ..)           :5
Flash Size (example 512, 1024, 4096) :1024
Build (example 71, 72, ..)           :120
Using com port: 5
Using bin file: ESPEasy_R120_1024.bin
esptool v0.4.6 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
        setting board to nodemcu
        setting baudrate from 115200 to 115200
        setting port from COM1 to COM5
        setting address from 0x00000000 to 0x00000000
        espcomm_upload_file
        stat ESPEasy_R120_1024.bin success
        setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_open
Uploading 411264 bytes from ESPEasy_R120_1024.bin to flash at 0x00000000
        erasing flash
        size: 064680 address: 000000
        first_sector_index: 0
        total_sector_count: 101
        head_sector_count: 16
        adjusted_sector_count: 85
        adjusted_size: 055000
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        setting serial port timeouts to 10000 ms
        setting serial port timeouts to 1000 ms
        espcomm_send_command: receiving 2 bytes of data
        writing flash
..................................................................................................................................................................................................................................................................................................................................................................................................................
starting app without reboot
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
closing bootloader
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
Press any key to continue . . .
Same problem

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

Re: Flashing Sonoff Wifi Modules / not working

#25 Post by Shardan » 17 Sep 2017, 14:11

Please remember:
The Sonoff 4ch uses a slightly different processor, an ESP8285 instead an8266.
If you want to use the Rxxx version you have to compile your own binary for this cpu.

A precompiled 2.0.0 binary for that cpu is availlable on github.

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#26 Post by Dylantje » 17 Sep 2017, 14:17

Shardan wrote: 17 Sep 2017, 14:11 Please remember:
The Sonoff 4ch uses a slightly different processor, an ESP8285 instead an8266.
If you want to use the Rxxx version you have to compile your own binary for this cpu.

A precompiled 2.0.0 binary for that cpu is availlable on github.

Regards
Shardan
mm i need to better RTFM sorry.

Is there a link or something?
Kan i not flash the 4 channel like the others?

Ans the dual will not flash to.
Do you have other options?

Thanks!!!

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

Re: Flashing Sonoff Wifi Modules / not working

#27 Post by Shardan » 17 Sep 2017, 15:32

Hello Dylantje,

nope. as said it is a different cpu that handles memory in another way then the esp8266 - this needs an adapted binary.

Search for the "Sonoff 4ch with espeasy" thread in the forum, on page 4 i attached a precompiled R148 version for the 4ch.
Sorry, i don't have my link collection at hand, i'm sitting in the sun of south spain for another week.

In that thread there are several tips & tricks for flashing the 4ch.

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#28 Post by Dylantje » 17 Sep 2017, 20:09

mmm did the flash ..
Now i got the dual flashed....
Only cannot switch the channels.

Looks i flashed the 4channel with the latest dev. version.
Only not stable..
Everytime a reboot..


So do you have a idea?

aihysp
New user
Posts: 4
Joined: 07 Oct 2017, 11:08

Re: Flashing Sonoff Wifi Modules / not working

#29 Post by aihysp » 07 Oct 2017, 11:12

Dylantje wrote: 17 Sep 2017, 13:07 is there perhaps a how to flash with the IDE....
I cannot flash 6 different sonoff with the espeasy flasher.
Strange problem..
The flash tells me flash ok...
Only no wifi to find.

I try 120 and the last dev 2.0
With differnet boards.
single
dual
and the 4 channel.
Different flasgools
Differnet usb flashers.

No luck @ all.
And i did flash 10 sonoff before this [ a time a go ]

So help please.
Hi did you find any solation?
i am having the same issues... was able to flash one sonoff with 120R
and now nothing works

but i think its my TTL gone dead, is there any way to check a bad TTL ?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#30 Post by Dylantje » 05 Nov 2017, 18:31

something beter found??
Or a solution??

elaroche
New user
Posts: 3
Joined: 27 Dec 2017, 17:27

Re: Flashing Sonoff Wifi Modules / not working

#31 Post by elaroche » 27 Dec 2017, 17:35

Hi guys,

Just registered because I'm having the same problems.
My equipments:
- SonOff Basics
- SonOff TH10 & sensor

I already flashed a sonoff basic with FlashDownloadTool and Firmware 2.00 without any trouble.
Then I tried to flash the TH10 without any success. I checked everything I could hundreds of time (soldering quality, button, spi speed, etc.)
I changed the firmware for the 1.20 : same thing.
It happens that I can flash it with FlashESP8266 from ESPEasy but without any wifi.
After trying so much finally once I've been able to see the ESP_0 wifi and to set the TH10 as I wanted. Actually I set up the LED setting on the wrong GPIO and then........ nothing happened anymore like it was dead. I tryied unplugging of course.
And well I'm stuck again on the flashing that doesn't work ([ESP8266Loader_spi[1]][espDownloader.pyo][line:457][ERROR]: ESP8266 Chip flash download error esp_write_flash.) or success but without WIFI :oops: :?:

Does it make sense for you ? I tryied DIO, DOUT, etc. .....

Any idea ? Thanks to you.

TD-er
Core team member
Posts: 8748
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Flashing Sonoff Wifi Modules / not working

#32 Post by TD-er » 28 Dec 2017, 11:45

Are you sure it is an ESP8266 and not an ESP8285?

elaroche
New user
Posts: 3
Joined: 27 Dec 2017, 17:27

Re: Flashing Sonoff Wifi Modules / not working

#33 Post by elaroche » 04 Jan 2018, 22:43

Hi,

Thank you for your help and sorry for the late delay I didn't have any notification.
Yes I double checked.
I also learned how to use arduino IDE to check and same results.

after a few days I retried everything and sometimes I can flash it but the ESP wifi is never showing up :(
With these I tryied to flash straight out of the box, maybe they need a first run with ewelink :?: :?:

BlackMirrorView
New user
Posts: 1
Joined: 08 Jan 2018, 23:12

Re: Flashing Sonoff Wifi Modules / not working

#34 Post by BlackMirrorView » 08 Jan 2018, 23:25

I have not read through the whole post, but I hope this will help.

Last week I bought two Sonoff Basic units and followed the instructions for flashing them and had the same issue where the AP never showed. I tried multiple time and also noted that when flashing the program would often get connection errors before flashing.

I even tried two different USB to serial devices, but they both did the same thing.

After much Googling, I found two things that will hopefully help you.

My board seems to be the newer version from Sonoff (it says v1.1 on the board) and it turns out that Sonoff has made a change to the new boards.

The first thing I learned was that the new board needs to be flashed in DOUT flash mode and the only way I have found to do that is via download of the source, compile and flash via Arduino software.

That did not work at first and was even worse as I just got an immediate connection error, with no retries like with the ESPEasy flash software. So I went Googling again.

The second thing I learned is that Sonoff made a second change to the new board and you have to hold the black button in the whole time from connecting the Sonoff Basic to the USB to serial device and only release the button after the compile and flash has complete. Connection is immediate after compile and the flash does not take long. Doing this resulted in the AP showing up after disconnecting power and power the Sonoff on again (without holding the black button).

I am a complete noob at this, but I hope my advice helps.

elaroche
New user
Posts: 3
Joined: 27 Dec 2017, 17:27

Re: Flashing Sonoff Wifi Modules / not working

#35 Post by elaroche » 16 Jan 2018, 22:13

Thank you and I saw and tried the steps already. No luck for me :(.
I'm still trying. If I found something I will tell.
:oops: :evil: :twisted:

TD-er
Core team member
Posts: 8748
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Flashing Sonoff Wifi Modules / not working

#36 Post by TD-er » 17 Jan 2018, 00:09

elaroche wrote: 16 Jan 2018, 22:13 Thank you and I saw and tried the steps already. No luck for me :(.
I'm still trying. If I found something I will tell.
:oops: :evil: :twisted:
Can you look on the flash chip and see if it has a "PUYA" label on it?

joemoer
New user
Posts: 2
Joined: 02 Jan 2018, 09:49

Re: Flashing Sonoff Wifi Modules / not working

#37 Post by joemoer » 17 Jan 2018, 16:41


Post Reply

Who is online

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