Firmware upload problem Sonoff 4ch v2.0

314 views
Skip to first unread message

Aleksander Mischenko

unread,
Oct 2, 2018, 1:57:21 PM10/2/18
to SonoffUsers
Hi, 
I've got sonoff 4ch v2.0  like this one https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-4CH-and-4CH-Pro, TX and RX are same as on image (not Pro) 
and ive got pl203 usb-to-ttl converter.

Tried to upload with Atom/Platformio
Use manually specified: /dev/ttyUSB0
Uploading .pioenvs/sonoff/firmware.bin
warning
: espcomm_sync failed
error
: espcomm_open failed
error
: espcomm_upload_mem failed
*** [upload] Error 255
and esptool.py 
esptool --port /dev/ttyUSB0 --baud 57600 write_flash -fs 1MB -fm dout 0x0 sonoff.binesptool.py v2.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header


No luck. 
Tried to hold FW/IO0 button for 1 / 3 / 5 / 30 / 60 seconds -- no luck
Tried to swap RX-TX - no luck

It was ok with flashing sonoff basic, sonoff dual r2. /

Any ideas ? 

Philip Knowles

unread,
Oct 2, 2018, 2:54:36 PM10/2/18
to Aleksander Mischenko, SonoffUsers

Not saying this is the problem but the baud rate should be 115200.

 

Try using ESPflasher with that you can see if it’s in flash mode because the QR Code comes up as soon as the handshake is over.

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

Aleksander Mischenko

unread,
Oct 2, 2018, 3:12:37 PM10/2/18
to SonoffUsers
I've tried with 115200 first. Same thing as with 57600. No luck.
Im using something like this https://www.amazon.com/NooElec-Adapter-Harnesses-Jumper-Compatible/dp/B009GXEF8A



вторник, 2 октября 2018 г., 21:54:36 UTC+3 пользователь Philip Knowles написал:

Philip Knowles

unread,
Oct 2, 2018, 3:36:40 PM10/2/18
to Aleksander Mischenko, SonoffUsers

Try this flashing tool https://github.com/nodemcu/nodemcu-flasher

 

As I said you can quickly see if it’s in flash mode. I’m not sure the button is connected to GPIO on the R2 (i’ve got one but can’t remember how I flashed it!) and you may need to find the GPIO.

Piotr Antczak

unread,
Oct 2, 2018, 5:11:45 PM10/2/18
to sonof...@googlegroups.com
I've seen such errors/problems when the power delivered by usb-to-serial converter is not enough. Try to power the device externally (remember that you need 3.3V):
(EPS = external power supply)
EPS 3.3V -> Sonoff 3.3V
EPS GND -> Sonoff GND
ESP GND -> USB-to-Serial GND
USB-to-Serial RX -> Sonoff TX
USB-to-Serial TX -> Sonoff RX


George Ioakimedes

unread,
Oct 3, 2018, 11:37:03 AM10/3/18
to SonoffUsers
I have a 4CH PRO and was able to flash using PlatformIO on a windows PC. If I remember correctly (sorry it was last year when I flashed) I had to solder a wire to put GPIO0 to ground to get it into programming mode.

Michael Ingraham

unread,
Oct 3, 2018, 12:16:18 PM10/3/18
to georg...@gmail.com, sonof...@googlegroups.com
If you're afraid to solder in close proximity of all those pins, you can use a jumper with a male pin header and just touch GPIO0 to GND during power up. I was able to flash five separate 4Ch Pro devices by doing this.

I always powered the 4Ch from the supplemental power jack rather than through the FTDI converter. The converter didn't seem to supply enough current during flashing on it's own. To flash mine, I didn't connect 3.3v from the FTDI converter, just the serial communications connections.

Regards.

Mike

Michael Ingraham
Spartanburg, SC


--

Phil

unread,
Oct 4, 2018, 7:11:51 AM10/4/18
to SonoffUsers
fwiw with a 4chpro i added headers onto the other through board holes associated with the rf side of things, which allowed plugging in a dupont lead into a 2nd gnd point and using the male dupont prong to contact the gpio-0 leg of the soc to enable flashing.  with the absence of the rf elements on a non pro 4ch perhaps a ground point such as a switch foot could be found for the addition of a similar lead. or make/bodge a 2-1 dupont lead to allow 2 connections to the ftdi gnd pin one for the main board, the 2nd to pull down gpio-0 during startup. 

the 3v3 supply via my 12 yr old laptops usb port and ftdi device was ample to power the 4chpros for flashing and post flashing testing including wifi and rf features.. 

Michael Ingraham

unread,
Oct 4, 2018, 9:45:52 AM10/4/18
to phil.b...@googlemail.com, sonof...@googlegroups.com
"the 3v3 supply via my 12 yr old laptops usb port and ftdi device was ample to power the 4chpros for flashing and post flashing testing including wifi and rf features"

I had a 50/50 experience with flashing my 4Ch Pro (R1) units. I'd flashed a couple off of the FTDI power. I then had issues with a couple. Using the external power jack, I was reliably able to flash all of them. So, Aleksander, yes, give the FTDI 3.3v a go... but be aware that your mileage may vary.

Cheers!

Mike

Michael Ingraham
Spartanburg, SC

Aleksander Mischenko

unread,
Oct 4, 2018, 3:20:21 PM10/4/18
to SonoffUsers
Thanks for your support. Im waitng now for external power source. A couple months ago just say good bye to my old PC :) and just with a notebook its a problem. I think in few days this problem will be sold with power source. and ill let you know if all is ok. 
 
Reply all
Reply to author
Forward
0 new messages