From 31457bd805319b83767c7ab1262b102fbfa8d83c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 7 Oct 2020 16:00:52 -0400 Subject: [PATCH] adding SSTV scripts and desktops --- groundstation/sstv_cam.desktop | 10 ++++++++ groundstation/sstv_decode_iss.desktop | 10 ++++++++ groundstation/sstv_decode_iss.sh | 29 +++++++++++++++++++++++ groundstation/sstv_decode_sim.desktop | 10 ++++++++ groundstation/sstv_decode_sim.sh | 33 +++++++++++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 groundstation/sstv_cam.desktop create mode 100644 groundstation/sstv_decode_iss.desktop create mode 100755 groundstation/sstv_decode_iss.sh create mode 100644 groundstation/sstv_decode_sim.desktop create mode 100755 groundstation/sstv_decode_sim.sh diff --git a/groundstation/sstv_cam.desktop b/groundstation/sstv_cam.desktop new file mode 100644 index 00000000..e5a048e6 --- /dev/null +++ b/groundstation/sstv_cam.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=SSTV Camera Tx +GenericName=Transmit SSTV from CubeSatSim using camera +Comment=434.9 MHz SSTV signals +Exec=/home/pi/CubeSatSim/groundstation/sstv.sh +Icon=/usr/share/qsstv/qsstv.png +Terminal=true +Type=Application +Categories=HamRadio; +Keywords=SSTV;CubeSatSim; diff --git a/groundstation/sstv_decode_iss.desktop b/groundstation/sstv_decode_iss.desktop new file mode 100644 index 00000000..f74418cb --- /dev/null +++ b/groundstation/sstv_decode_iss.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=SSTV Decode ISS +GenericName=Decodes SSTV from ISS using rtl_fm and QSSTV +Comment=145.8 MHz SSTV signals +Exec=/home/pi/CubeSatSim/groundstation/sstv_decode_iss.sh +Icon=/usr/share/qsstv/qsstv.png +Terminal=true +Type=Application +Categories=HamRadio; +Keywords=SSTV;ISS; diff --git a/groundstation/sstv_decode_iss.sh b/groundstation/sstv_decode_iss.sh new file mode 100755 index 00000000..c8ae8bf8 --- /dev/null +++ b/groundstation/sstv_decode_iss.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# script to decode SSTV using rtl_fm and QSSTV from the CubeSatSim + +echo "Script to decode SSTV from the CubeSatSim for ARISS Radio Pi" + +echo + +sudo modprobe snd-aloop + +sudo systemctl stop openwebrx + +sudo systemctl stop rtl_tcp + +pkill -o chromium &>/dev/null + +sudo killall -9 rtl_fm &>/dev/null + +sudo killall -9 qsstv &>/dev/null + +sudo killall -9 rtl_tcp &>/dev/null + +sudo killall -9 java &>/dev/null + +sudo killall -9 CubicSDR &>/dev/null + +rtl_fm -M fm -f 145.8M -s 48k | aplay -D hw:2,0,0 -r 48000 -t raw -f S16_LE -c 1 +qsstv & + +$SHELL diff --git a/groundstation/sstv_decode_sim.desktop b/groundstation/sstv_decode_sim.desktop new file mode 100644 index 00000000..d4662a70 --- /dev/null +++ b/groundstation/sstv_decode_sim.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=SSTV Decode CubeSatSim +GenericName=Decodes SSTV from CubeSatSim using rtl_fm and QSSTV +Comment=434.9 MHz SSTV signals +Exec=/home/pi/CubeSatSim/groundstation/sstv_decode_sim.sh +Icon=/usr/share/qsstv/qsstv.png +Terminal=true +Type=Application +Categories=HamRadio; +Keywords=SSTV;CubeSatSim; diff --git a/groundstation/sstv_decode_sim.sh b/groundstation/sstv_decode_sim.sh new file mode 100755 index 00000000..c76c8206 --- /dev/null +++ b/groundstation/sstv_decode_sim.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# script to decode SSTV using rtl_fm and QSSTV from the CubeSatSim + +echo "Script to decode SSTV from the CubeSatSim for ARISS Radio Pi" + +echo + +sudo modprobe snd-aloop + +sudo systemctl stop openwebrx + +sudo systemctl stop rtl_tcp + +pkill -o chromium &>/dev/null + +sudo killall -9 rtl_fm &>/dev/null + +sudo killall -9 qsstv &>/dev/null + +sudo killall -9 rtl_tcp &>/dev/null + +sudo killall -9 java &>/dev/null + +sudo killall -9 CubicSDR &>/dev/null + +echo "ARG1=s" >> .mode + +sudo systemctl restart cubesatsim + +rtl_fm -M fm -f 434.9M -s 48k | aplay -D hw:2,0,0 -r 48000 -t raw -f S16_LE -c 1 +qsstv & + +$SHELL