Update config change_command using dtmf or APRS

pull/327/head
Alan Johnston 1 year ago committed by GitHub
parent 43d997dd98
commit 8b5796fd78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1106,31 +1106,37 @@ fi
function transmit_command_aprs { function transmit_command_aprs {
echo "Mode 1 is APRS" FILE=/home/pi/CubeSatSim/transmit_dtmf
STRING="AMSAT-11>APCSS:=3901.40N\07704.39WShi hi MODE=a" if [ -f "$FILE" ]; then
sudo rm /home/pi/CubeSatSim/t.txt
echo $STRING > /home/pi/CubeSatSim/t.txt echo "Stopping command and control"
echo sudo systemctl stop command
echo -n "Sending APRS packet "
echo $STRING echo "Transmit start"
sudo touch /home/pi/CubeSatSim/ready gpio write 28 0 # ptt
sleep 5 gpio write 27 1 # tx LED
sudo touch /home/pi/CubeSatSim/ready timeout 3 direwolf -c /home/pi/CubeSatSim/direwolf/direwolf-transmit-dtmf-aprs.conf
gpio write 27 0 # tx LED
sleep 5 gpio write 28 1 #ptt
echo "Stopping command and control" echo "Transmit stop"
sudo systemctl stop command
echo "Resuming command and control"
sudo systemctl start command
else
echo "Transmit start" STRING="AMSAT-11>APCSS:=3901.40N\07704.39WShi hi MODE=a"
gpio write 28 0 # ptt sudo rm /home/pi/CubeSatSim/t.txt
gpio write 27 1 # tx LED echo $STRING > /home/pi/CubeSatSim/t.txt
timeout 3 direwolf -c /home/pi/CubeSatSim/direwolf/direwolf-transmit-dtmf-aprs.conf echo
gpio write 27 0 # tx LED echo -n "Sending APRS packet to change mode to APRS"
gpio write 28 1 #ptt echo $STRING
echo "Transmit stop" sudo touch /home/pi/CubeSatSim/ready
sleep 5
sudo touch /home/pi/CubeSatSim/ready
sleep 5
echo "Resuming command and control" fi
sudo systemctl start command
exit exit
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.