mirror of https://github.com/arendst/Tasmota.git
Information regarding manual flash/MacOSx
parent
8712619a41
commit
4dd836993c
|
@ -42,6 +42,72 @@ Once the firmware upload completes and the device restarts, it is recommend that
|
||||||
- Stop mobile hotspot
|
- Stop mobile hotspot
|
||||||
- Power off the device and remove DIY jumper as it is no longer needed and might interfere with future Tasmota features that use GPIO16
|
- Power off the device and remove DIY jumper as it is no longer needed and might interfere with future Tasmota features that use GPIO16
|
||||||
|
|
||||||
|
# Manual Flash / MacOSx
|
||||||
|
|
||||||
|
After trying to get the python script to work, it seemed easier to do this manually using curl and the dns-sd process in MacOS
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
- Sonoff DIY (firmware 3.1+)
|
||||||
|
- OS with curl and mDNS discovery tool
|
||||||
|
- `sonoffDiy` SSID on your router
|
||||||
|
- Copy of firmware (e.g. [`sonoff-basic.bin`]) on a local webserver
|
||||||
|
- SHA256 sum of above firmware
|
||||||
|
|
||||||
|
### Verify and/or update eWelink firmware version
|
||||||
|
- Open the device and remove the jumper labeled OTA if present
|
||||||
|
- Power on device and connect to eWelink
|
||||||
|
- Update eWelink firmware to at least 3.1 (mine came with 3.0)
|
||||||
|
|
||||||
|
### Discover the unit ID:
|
||||||
|
- Power off the Sonoff DIY device and install the DIY OTA jumper
|
||||||
|
- Create a new SSID on your router:
|
||||||
|
- SSID: `sonoffDiy` (_**case sensitive!**_)
|
||||||
|
- Password: `20170618sn`
|
||||||
|
- Wait for the Sonoff to connect
|
||||||
|
- Using `dns-sd` search for the mDNS details:
|
||||||
|
~~~~
|
||||||
|
$ dns-sd -B _ewelink._tcp
|
||||||
|
Browsing for _ewelink._tcp
|
||||||
|
DATE: ---Mon 12 Aug 2019---
|
||||||
|
20:19:31.956 ...STARTING...
|
||||||
|
Timestamp A/R Flags if Domain Service Type Instance Name
|
||||||
|
20:19:31.957 Add 2 5 local. _ewelink._tcp. eWeLink_1000988699
|
||||||
|
~~~~
|
||||||
|
|
||||||
|
We've found here our ID is **1000988699**
|
||||||
|
|
||||||
|
### Upload firmware
|
||||||
|
- Upload firmware to a webserver available on the SSID create above
|
||||||
|
- Verify sha256 sum of the firmware file:
|
||||||
|
|
||||||
|
~~~~
|
||||||
|
$ shasum -a 256 sonoff-basic.bin
|
||||||
|
1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9
|
||||||
|
~~~~
|
||||||
|
|
||||||
|
### Flash and confirm
|
||||||
|
- Test with /zeroconf/info POST:
|
||||||
|
~~~~
|
||||||
|
$ curl http://192.168.1.164:8081/zeroconf/info -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
||||||
|
{"seq":2,"error":0,"data":"{\"switch\":\"off\",\"startup\":\"off\",\"pulse\":\"off\",\"pulseWidth\":500,\"ssid\":\"sonoffDiy\",\"otaUnlock\":false}"}
|
||||||
|
~~~~
|
||||||
|
- Unlock OTA updates
|
||||||
|
~~~~
|
||||||
|
$ curl http://192.168.1.164:8081/zeroconf/ota_unlock -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
||||||
|
{"seq":2,"error":0}
|
||||||
|
~~~~
|
||||||
|
- Flash firmware
|
||||||
|
~~~~
|
||||||
|
$ curl http://192.168.1.164:8081/zeroconf/ota_flash -XPOST --data '{"deviceid":"1000988699","data":{"downloadUrl": "http://192.168.1.80/sonoff-basic.bin", "sha256sum": "1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9"} }'
|
||||||
|
{"seq":2,"error":0}
|
||||||
|
~~~~
|
||||||
|
|
||||||
|
### Post Steps
|
||||||
|
|
||||||
|
I carried on pinging 192.168.1.164 for about 30 seconds until the Sonoff rebooted. The normal "sonoff-XXXX" SSID was now available and ready for configuration.
|
||||||
|
|
||||||
|
Carry on setup as usual
|
||||||
|
|
||||||
### Video tutorials
|
### Video tutorials
|
||||||
- [Andreas Spiess](https://youtu.be/fzEDFmB0UYU?t=239)
|
- [Andreas Spiess](https://youtu.be/fzEDFmB0UYU?t=239)
|
||||||
- [DrZzs](https://www.youtube.com/watch?v=9fkYBWvwn4A)
|
- [DrZzs](https://www.youtube.com/watch?v=9fkYBWvwn4A)
|
||||||
|
|
Loading…
Reference in New Issue