Update command add rtl-test and debug direwolf

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

@ -49,15 +49,30 @@ else
echo "Direwolf mode set but no USB soundcard detected!" 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 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 & 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 else
echo "Starting Carrier (squelch) Command and Control" echo "Starting Carrier (squelch) Command and Control"

Loading…
Cancel
Save

Powered by TurnKey Linux.