mirror of https://github.com/arendst/Tasmota.git
Updated Flash Sonoff using Raspberry Pi (markdown)
parent
55ed92eea2
commit
ceb50754b3
|
@ -13,6 +13,7 @@ So, I will summarize the process and needed adoptions based on the above blog, p
|
||||||
|
|
||||||
2. Prepare serial connection
|
2. Prepare serial connection
|
||||||
(This is adopted for RaspberryPi 3, before it was ttyAMA0)
|
(This is adopted for RaspberryPi 3, before it was ttyAMA0)
|
||||||
|
|
||||||
`sudo systemctl stop serial-getty@ttyS0.service`
|
`sudo systemctl stop serial-getty@ttyS0.service`
|
||||||
|
|
||||||
`sudo systemctl disable serial-getty@ttyS0.service`
|
`sudo systemctl disable serial-getty@ttyS0.service`
|
||||||
|
@ -23,33 +24,52 @@ So, I will summarize the process and needed adoptions based on the above blog, p
|
||||||
-> delete "console=serial0,115200" option
|
-> delete "console=serial0,115200" option
|
||||||
|
|
||||||
3. I don’t know if this is necessary, but I did it as it was mentioned here: https://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/
|
3. I don’t know if this is necessary, but I did it as it was mentioned here: https://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/
|
||||||
|
|
||||||
`sudo nano /boot/config.txt`
|
`sudo nano /boot/config.txt`
|
||||||
|
|
||||||
-> add the line (at the bottom):
|
-> add the line (at the bottom):
|
||||||
enable_uart=1
|
`enable_uart=1`
|
||||||
|
|
||||||
|
|
||||||
# Wire RaspberryPi:
|
# Wire RaspberryPi:
|
||||||
|
Connect GND, RX->TX and TX->RX as shown below.
|
||||||
|
**Do not connect 3,3V yet!**
|
||||||
|
|
||||||
https://www.sigmdel.ca/michel/ha/sonoff/flashing_sonoff_en.html
|
https://www.sigmdel.ca/michel/ha/sonoff/flashing_sonoff_en.html
|
||||||
![Wiring](https://www.sigmdel.ca/michel/ha/sonoff/img/sonoff-rpi.jpg)
|
![Wiring](https://www.sigmdel.ca/michel/ha/sonoff/img/sonoff-rpi.jpg)
|
||||||
|
|
||||||
(For RaspberryPi 3 (40 GPIO pins) GND is the last pin on the left, the 39th pin.)
|
(For RaspberryPi 3 (40 GPIO pins) GND is the last pin on the left, the 39th pin.)
|
||||||
|
|
||||||
|
|
||||||
# Flashing the firmware
|
# Flashing the firmware
|
||||||
1. Erase flash memory:
|
1. Erase flash memory:
|
||||||
Connect 3,3V while button pressed to enter flash-mode:
|
Connect 3,3V while button pressed to enter flash-mode:
|
||||||
|
|
||||||
`esptool.py —port /dev/ttyS0 erase_flash`
|
`esptool.py —port /dev/ttyS0 erase_flash`
|
||||||
|
|
||||||
2. Flash .bin, which you can download from the release-section of this git:
|
2. Flash .bin, which you can download from the release-section of this git (https://github.com/arendst/Sonoff-Tasmota/releases):
|
||||||
|
|
||||||
Again connect 3,3V while pressing button:
|
Again connect 3,3V while pressing button:
|
||||||
|
|
||||||
`esptool.py —port /dev/ttyS0 write_flash -fs 1MB -fm dout 0x0 /path/to/sonoff.bin`
|
`esptool.py —port /dev/ttyS0 write_flash -fs 1MB -fm dout 0x0 /path/to/downloaded/sonoff.bin`
|
||||||
|
|
||||||
7. Setup Wifi:
|
7. Setup Wifi:
|
||||||
|
|
||||||
`miniterm.py /dev/ttyS0 115200 -e`
|
`miniterm.py /dev/ttyS0 115200 -e`
|
||||||
|
|
||||||
|
You will see some output, after pressing enter.
|
||||||
|
|
||||||
|
Now just type in, your SSID, press enter and then type the password…
|
||||||
|
|
||||||
ssid _yourSSID_
|
ssid _yourSSID_
|
||||||
|
|
||||||
password _yourPassword_
|
password _yourPassword_
|
||||||
|
|
||||||
That’s it :)
|
|
||||||
Feel free to edit, if I forget something or changes are necessary in the future!
|
|
||||||
|
# That’s it :)
|
||||||
|
|
||||||
|
Feel free to edit, if I forgot something or changes are necessary in the future!
|
||||||
|
|
||||||
Sources:
|
Sources:
|
||||||
https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool (flashing commands)
|
https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool (flashing commands)
|
||||||
|
|
Loading…
Reference in New Issue