From 79dfe5fc583f40dad6af213a9b0dd345a9bfc780 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 26 May 2020 08:28:24 -0400 Subject: [PATCH] modified scripts --- groundstation/config_webrx_hf.py | 32 ++++++++++++++++++++++++++++++ groundstation/sdr-hf.sh | 34 ++++++++++++++++++++++++++++++++ groundstation/sdr.sh | 34 +++++++++++++++++++++++--------- 3 files changed, 91 insertions(+), 9 deletions(-) create mode 100755 groundstation/sdr-hf.sh diff --git a/groundstation/config_webrx_hf.py b/groundstation/config_webrx_hf.py index f64132f0..33b201a0 100644 --- a/groundstation/config_webrx_hf.py +++ b/groundstation/config_webrx_hf.py @@ -110,6 +110,22 @@ sdrs = { "ppm": 0, "direct_sampling": 2, "profiles": { + "6m": { + "name": "6m", + "center_freq": 51150000, + "rf_gain": 10, + "samp_rate": 2400000, + "start_freq": 51283000, + "start_mod": "usb", + }, + "10m": { + "name": "10m", + "center_freq": 29150000, + "rf_gain": 10, + "samp_rate": 2400000, + "start_freq": 28283000, + "start_mod": "usb", + }, "20m": { "name": "20m", "center_freq": 14150000, @@ -150,6 +166,22 @@ sdrs = { "start_freq": 1840000, "start_mod": "lsb", }, + "160m2": { + "name": "160m2", + "center_freq": 1900000, + "rf_gain": 30, + "samp_rate": 2400000, + "start_freq": 1840000, + "start_mod": "lsb", + }, + "160m3": { + "name": "160m3", + "center_freq": 1900000, + "rf_gain": "auto", + "samp_rate": 2400000, + "start_freq": 1840000, + "start_mod": "lsb", + }, "49m": { "name": "49m Broadcast", "center_freq": 6000000, diff --git a/groundstation/sdr-hf.sh b/groundstation/sdr-hf.sh new file mode 100755 index 00000000..fd367b46 --- /dev/null +++ b/groundstation/sdr-hf.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# script to run OpenWebRX SDR in HF + +echo "Script to run Web SDR in HF for ARISS Radio Pi" + +echo + +ip=$(hostname -I|cut -f1 -d ' ') + +echo "IP Address to use in web browsers is: $ip:8073" + +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 killall -9 rtl_tcp &>/dev/null + +sudo systemctl stop openwebrx + +sudo cp /etc/openwebrx/config_webrx_hf.py /etc/openwebrx/config_webrx.py + +sudo systemctl restart openwebrx + +/usr/bin/chromium-browser --noerrdialogs --disable-infobars http://localhost:8073 &>/dev/null & + +$SHELL diff --git a/groundstation/sdr.sh b/groundstation/sdr.sh index 03efef13..0242151c 100755 --- a/groundstation/sdr.sh +++ b/groundstation/sdr.sh @@ -1,18 +1,34 @@ #!/bin/bash # script to run OpenWebRX SDR -echo -e "\nScript to run SDR for CubeSat Simulator\n" +echo "Script to run Web SDR for ARISS Radio Pi" -echo -e "IP Address to use in web browsers is: " +echo -hostname -I|cut -f1 -d ' ' +ip=$(hostname -I|cut -f1 -d ' ') -# kill rtl if running -ps -ef | grep rtl | grep -v grep | awk '{print $2}' | sudo xargs kill +echo "IP Address to use in web browsers is: $ip:8073" -# kill openwebrx process if running -ps -ef | grep openwebrx | grep -v grep | awk '{print $2}' | sudo xargs kill +echo -cd ~/openwebrx +ssid=$(iwgetid -r) -sudo python openwebrx.py +echo "Note: you need to be on the Wifi network: $ssid" + +echo + +sudo killall -9 java &>/dev/null + +sudo systemctl stop rtl_tcp + +sudo killall -9 rtl_tcp &>/dev/null + +sudo systemctl stop openwebrx + +sudo cp /etc/openwebrx/config_webrx_vhf.py /etc/openwebrx/config_webrx.py + +sudo systemctl restart openwebrx + +/usr/bin/chromium-browser --noerrdialogs --disable-infobars http://localhost:8073 &>/dev/null & + +$SHELL