forked from openenergymonitor/emonpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemonpiupdate
More file actions
executable file
·22 lines (13 loc) · 805 Bytes
/
emonpiupdate
File metadata and controls
executable file
·22 lines (13 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
echo
echo "================================="
echo "EmonPi update started"
echo "================================="
sudo /etc/init.d/emonhub stop
echo "Start ATmega328 serial upload using avrdude with emonPi_latest.hex"
# emonPi ATmega328 update
avrdude -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 115200 -U flash:w:/home/pi/emonpi/Atmega328/emonPi_RFM69CW_RF12Demo_DiscreteSampling/compiled/emonPi_latest.hex
# RFM12Pi with RFM12B update
# avrdude -v -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 38400 -U flash:w:/home/pi/RFM2Pi/firmware/RFM69CW_RF_Demo_ATmega328/RFM12_Demo_ATmega328.cpp.hex
# RFM69Pi with RFM69CW Update
# avrdude -v -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 38400 -U flash:w:/home/pi/RFM2Pi/firmware/RFM69CW_RF_Demo_ATmega328/RFM69CW_RF12_Demo_ATmega328.cpp.hex