diff --git a/command b/command index c05145b2..f58fc66a 100755 --- a/command +++ b/command @@ -49,15 +49,30 @@ else echo "Direwolf mode set but no USB soundcard detected!" - echo "Trying RTL-FM for 60 seconds" + echo "Trying RTL-FM" + + timeout 5 rtl-test + sudo modprobe snd-aloop rtl_fm -M fm -f 435M -s 48k | aplay -D hw:2,0,0 -r 48000 -t raw -f S16_LE -c 1 & - direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf.conf -t 0 & - sleep 60 - sudo killall -9 direwolf - sudo killall -9 rtl_fm - echo "Starting Carrier (squelch) Command and Control" + if [ "$1" = "d" ]; then + + echo "debug mode" + + direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf.conf -t 0l | python3 /home/pi/CubeSatSim/dtmf_aprs_cc.py d + + else + + direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf.conf -t 0l | python3 /home/pi/CubeSatSim/dtmf_aprs_cc.py + + fi + + sleep 5 +# sudo killall -9 direwolf +# sudo killall -9 rtl_fm + +# echo "Starting Carrier (squelch) Command and Control" else echo "Starting Carrier (squelch) Command and Control"