diff --git a/groundstation/gqrx.sh b/groundstation/gqrx.sh index 7e995d2e..c1985706 100755 --- a/groundstation/gqrx.sh +++ b/groundstation/gqrx.sh @@ -1,16 +1,16 @@ -#!/bin/bash -# script to auto decode CubeSat Simulator telemetry +#!/bin/bash +# script to run gqrx -# kill rtl if running -ps -ef | grep rtl | grep -v grep | awk '{print $2}' | sudo xargs kill +echo "Script to run Gqrx for ARISS Radio Pi" -# kill openwebrx process if running -ps -ef | grep openwebrx | grep -v grep | awk '{print $2}' | sudo xargs kill +echo -# kill csdr process if running -ps -ef | grep csdr | grep -v grep | awk '{print $2}' | sudo xargs kill +sudo killall -9 java &>/dev/null -echo -e "Script to run Gqrx\n" +sudo systemctl stop rtl_tcp -/home/pi/gqrx-sdr-2.11.5-linux-rpi3/gqrx +sudo killall -9 rtl_tcp &>/dev/null +sudo systemctl stop openwebrx + +/usr/bin/gqrx diff --git a/groundstation/rtl-tcp-d.sh b/groundstation/rtl-tcp-d.sh new file mode 100755 index 00000000..63fcc5bc --- /dev/null +++ b/groundstation/rtl-tcp-d.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# script to run RTL-TCP in Direct Sampling Mode + +echo "Script to run RTL-TCP Direct Sampling for ARISS Radio Pi" + +echo + +ip=$(hostname -I|cut -f1 -d ' ') + +echo "IP Address to use in SDR is: $ip:1234" + +echo + +ssid=$(iwgetid -r) + +echo "Note: you need to be on the Wifi network: $ssid" + +echo + +sudo killall -9 java &>/dev/null + +sudo systemctl stop rtl_tcp + +sudo systemctl stop openwebrx + +sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ") -D 2' diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index b3e410dc..1dfd2554 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -3,14 +3,34 @@ # # On SDR client, use 10.3.141.1:1234 to connect -echo -e "\nScript to run RTL-TCP Server for ARISS Radio Pi\n" +echo "Script to run RTL-TCP Server for ARISS Radio Pi" -echo -e "IP Address to use in your SDR application is: " +ip=$(hostname -I|cut -f1 -d ' ') -hostname -I|cut -f1 -d ' ' +echo -echo -e "The port is the default 1234. " +echo "IP Address to use in SDR application is: $ip" -./kill_all.sh +echo -sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' +echo "Port to use in SDR application is the default: 1234" + +echo + +ssid=$(iwgetid -r) + +echo "Note: you need to be on the Wifi network: $ssid" + +echo + +pkill -o chromium &>/dev/null + +sudo killall -9 java &>/dev/null + +sudo systemctl stop openwebrx + +sudo killall -9 rtl_tcp &>/dev/null + +sudo systemctl start rtl_tcp + +$SHELL