Sonoff S60TPG (UK Version) Successfully Flashed #22554
Replies: 6 comments 33 replies
-
Nice way of doing it. I spotted one detail:
Only backing up 64 KB of flash won't give you the opportunity of going back. With ESP32-C3, I usually backup the full 4 MB of flash, up to |
Beta Was this translation helpful? Give feedback.
-
I brought the same devices and opened one up with the same goal. I have not been able to flash it. I just get nothing back from the ESP32. It might be going into boatloader mode as when simply applying 5v one of the LEDs flashes slownly, when applying power with the button pressed the LED does not come on or flash. I've now gone so far as to remove the ESP32 daughter board and solder wires on to the test pads to allow me to use the reset pin with a button. I've tried two different USB to serial adapters, both in 3.3v mode. I've tried with the USB adapter providing the 5v for the chip and with an external battery pack providing 5v. Not sure what's left to try really. Perhaps I'm unlucky and have somehow damaged the TX port, or it has a pre-existing fault. |
Beta Was this translation helpful? Give feedback.
-
This is great work by all of you. What I'd like to do is 3D print a jig and use pogo pins to go in. I'm struggling to accurately target the points to drill as I'm using the photos to judge. I suspect V1 will end up hacked up as I work this out. Dimensionally my estimates are in mm, all using the side for the earth pin for X, and the top of the earth pin for Y:
The pic isn't great as getting the camera aligned makes things look off, but I wanted to show you where I'm measuring from. The idea is to make the jig fit over the power pins so there's no margin for error. I estimate the pad areas are approximately 1.6mm is diameter. I want to go in with a 1mm diameter bit, but unless I pop it open and reglue it, or go for a larger hole on V1 I'm afraid I'll miss. I want to keep it glued simply due to the forces when you pull the plug out of the socket. Still - I think the idea is solid, and it would mean the holes don't need filling, and can remain for any boot issues down the line. If anyone has any clues I could use before attempting this crazy idea, please let me know. |
Beta Was this translation helpful? Give feedback.
-
Hi @vtraveller |
Beta Was this translation helpful? Give feedback.
-
Well I think I have a candidate. @MalSmalley if you want to give it a go feel free. As you have an open one you can see how off I am. I did struggle getting enough material around Rx, and had to nudge it slightly off centre by a fraction of a mm. https://www.printables.com/model/1172012-sonoff-s60-test-jig |
Beta Was this translation helpful? Give feedback.
-
@ChrisVonFrosta |
Beta Was this translation helpful? Give feedback.
-
The Sonoff S60 is a great product. Looks good, has power monitoring and is cheap but its a sealed unit so not apparently easy to flash.
![S60UK Main Board](https://private-user-images.githubusercontent.com/17936799/390389621-1b3a18de-d247-4e72-870a-52028dab65a4.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMTAzOTEsIm5iZiI6MTczOTExMDA5MSwicGF0aCI6Ii8xNzkzNjc5OS8zOTAzODk2MjEtMWIzYTE4ZGUtZDI0Ny00ZTcyLTg3MGEtNTIwMjhkYWI2NWE0LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDE0MDgxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUwYjlhMTlkZjYzMDY0MjFhZTQ3MTZlYWQ4OGRjODRjY2E3ZWQwNzNmYjdkZGNjZDQxMDlhMjMyNzQ5ZDY1YWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0tEPX6gxqJ8dLRVZdzMNdIMINkTzirA11_1JHxj3DZ8)
A good description and partial teardown by Mat Zolnierczyk [here] gets inside the unit by breaking the glued seal but there are not very accessible access points for flashing.
I totally destroyed one unit (by trying to access points on the processor daughter board) and took this a bit further.
The underside of the main board has some very useful pads available.
Tx & Rx are obvious. But the first pin on the connection to the processor board is +5V. (And it is +5V and not 3.3V as there is a voltage regulator or divider on the processor board). 0V is also at the far end of the connection but this is easier accessed by use of the Neutral pin on the plug itself.
On a new, un broken into, unit I accessed these points by drilling a couple of 3.5mm holes in the base and expanding the access to about 5mm x 10mm and was able to solder connecting wires to these 3 points fairly easily. I did protect the plastic casing with some foil!
I used a usb serial converter from a Pi400. Note that I powered the S60 from a separate 5V rail but the Rx/Tx from the serial converter were at 3.3V as this is what the esp32 chip requires.
Flashed using esptool. Holding the button on the side of the S60 on power up to enter boot mode. This does not have to be held down long. Flashed with
tasmota32c3.factory.bin
.My normal process is (as per the esptool instructions)
Flashing took about 90 seconds and , after a repower, the AP point showed up.
The template I used was the same as from the discussion & progress on the [European version.] (#21255) - Thank You !!
{"NAME":"S60UK","GPIO":[1,1,1,1,224,544,1,3104,1,32,1,0,0,0,0,0,0,0,1,1,1,1],"FLAG":0,"BASE":1}
And finally a bit of 0.5mm Plasticard was cut to shape and glued onto the base to cover the access hole and tidy up the unit.
Beta Was this translation helpful? Give feedback.
All reactions