I picked up an S31 Sonoff, intending to flash it with Tasmota. I followed the directions here: http://tinkerman.cat/sonoff-s31-now-serious/#lightbox-gallery-iVhoDOpK/17/ for disassembling and wiring it. I’m using a Sparkfun FTDI Beefy 3 USB to UART programmer, with Tx on the programmer connected to Rx on the Sonoff and vice versa (I tried swapping, just in case, but it didn’t fix anything). My understanding is that the Beefy should provide plenty of current. The Beefy itself is run off a powered USB hub.
As far as I can tell, got the wiring correct - I’m seeing continuity from the Beefy all the way to the other side of the board for Gnd, and from Beefy to the little chip that looks like a power regulator for the 3V3 line, and a blue LED lights up on the Sonoff. It’s harder for me to test continuity of the Rx/Tx lines, as I don’t know where those lines are supposed to go past the pad, having a hard time tracing them to some place I can probe.
The Sonoff was (foolishly) updated to the latest firmware, which killed any chance of flashing it over the air, but, afaik, shouldn’t impact flashing over serial.
Following the Tasmota instructions here: https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool I ran the command to backup the current firmware (more as a test than anything), as follows:
py esptool.py --port COM4 read_flash 0x00000 0x100000 image1M.bin
(on my windows machine I have to use py
or python
to execute Python scripts, after installing and removing PyCharm I could never get it to just run them again without it)
COM4 is the port that Windows assigns the Beefy.
I get this result, every time:
esptool.py v2.6
Serial port COM4
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Invalid head of packet (0x00)
Anyone have any ideas? Other things to try to diagnose the problem?
Thanks.