From 79566b913cb9ddf219e6e68dfe7677a77483ff6f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 28 Aug 2021 11:12:34 -0400 Subject: [PATCH] don't start CubicSDR if testing, also play wav to speaker --- groundstation/cubicsdr-decode.sh | 52 ++++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/groundstation/cubicsdr-decode.sh b/groundstation/cubicsdr-decode.sh index 6364b1c3..ce298350 100755 --- a/groundstation/cubicsdr-decode.sh +++ b/groundstation/cubicsdr-decode.sh @@ -59,19 +59,18 @@ echo read -r choice -echo - -echo "CubicSDR will load in about 10 sceonds." +if [ "$choice" = "1" ]; then + echo -nohup CubicSDR /dev/null 2>&1 & + echo "CubicSDR will load in about 10 sceonds." -echo + nohup CubicSDR /dev/null 2>&1 & -echo "When CubicSDR opens, select Generic RTL2832 device then click Start to begin." + echo -echo + echo "When CubicSDR opens, select Generic RTL2832 device then click Start to begin." -if [ "$choice" = "1" ]; then + echo echo "Then select File/Session/Open Session then load /home/pi/CubeSatSim/groundstation/cubicsdr/cubicsdr-aprs-direwolf.xml then Open." echo "Note that you won't hear anything as the audio is routed to Direwolf for decoding. To hear the signal, change the Audio Out setting." @@ -85,6 +84,17 @@ if [ "$choice" = "1" ]; then direwolf -c direwolf.conf -r 48000 -t 0 elif [ "$choice" = "2" ]; then + echo + + echo "CubicSDR will load in about 10 sceonds." + + nohup CubicSDR /dev/null 2>&1 & + + echo + + echo "When CubicSDR opens, select Generic RTL2832 device then click Start to begin." + + echo echo "Then select File/Session/Open Session then load cubicsdr-iss-direwolf.xml then Open." echo "Note that you won't get packets unless the ISS is passing over and the radio is in APRS digipeater mode." @@ -97,6 +107,17 @@ elif [ "$choice" = "2" ]; then direwolf -c direwolf.conf -r 48000 -t 0 elif [ "$choice" = "3" ]; then + echo + + echo "CubicSDR will load in about 10 sceonds." + + nohup CubicSDR /dev/null 2>&1 & + + echo + + echo "When CubicSDR opens, select Generic RTL2832 device then click Start to begin." + + echo echo "Then select File/Session/Open Session then load cubicsdr-aprs-direwolf.xml then Open." echo "Then tune the CubicSDR frequency to the one you want to decode." @@ -110,6 +131,17 @@ elif [ "$choice" = "3" ]; then direwolf -c direwolf.conf -r 48000 -t 0 elif [ "$choice" = "4" ]; then + echo + + echo "CubicSDR will load in about 10 sceonds." + + nohup CubicSDR /dev/null 2>&1 & + + echo + + echo "When CubicSDR opens, select Generic RTL2832 device then click Start to begin." + + echo echo "Then select File/Session/Open Session then load cubicsdr-serenity-direwolf.xml then Open." echo "Note that you won't get packets unless the Serenity CubeSat is passing over and is beaconing." @@ -124,7 +156,7 @@ elif [ "$choice" = "4" ]; then elif [ "$choice" = "5" ]; then - echo "A recorded WAV file will play and you should see packets decoded" + echo "A recorded WAV file will play and you should see about 4 packets decoded" echo @@ -132,6 +164,8 @@ elif [ "$choice" = "5" ]; then # read input + aplay -D hw:0,0 ~/Recordings/437.098_2021-08-28_10-41-34.wav & + aplay -D hw:3,0,0 ~/Recordings/437.098_2021-08-28_10-41-34.wav &