From f7631d9ab91271eeaf105ab38a602bfa023f3358 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Dec 2024 13:31:52 -0500 Subject: [PATCH 001/178] Update direwolf-pacsatsim-jp14.conf turn off PTT no tx --- direwolf/direwolf-pacsatsim-jp14.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim-jp14.conf b/direwolf/direwolf-pacsatsim-jp14.conf index fecf24f1..cd88c58e 100644 --- a/direwolf/direwolf-pacsatsim-jp14.conf +++ b/direwolf/direwolf-pacsatsim-jp14.conf @@ -1,5 +1,5 @@ ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 -PTT GPIO 20 +#PTT GPIO 20 MYCALL AMSAT CHANNEL 0 MODEM 1200 From 263093feba5a87247e4359a304b50827608da10c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Dec 2024 13:32:19 -0500 Subject: [PATCH 002/178] Update direwolf-fm-pacsat-jp14.conf no PTT no tx --- groundstation/direwolf/direwolf-fm-pacsat-jp14.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf index 9bff5e66..2903fc24 100644 --- a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf @@ -1,6 +1,6 @@ MYCALL AMSAT ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 -PTT GPIO 20 +#PTT GPIO 20 CHANNEL 0 MODEM 1200 KISSPORT 8100 From ff0dc0079a2a53c2cc5983c41d231a89883d4441 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Dec 2024 13:55:47 -0500 Subject: [PATCH 003/178] Update direwolf-pacsatsim-jp14.conf txdelay and fix bits --- direwolf/direwolf-pacsatsim-jp14.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direwolf/direwolf-pacsatsim-jp14.conf b/direwolf/direwolf-pacsatsim-jp14.conf index cd88c58e..59009a53 100644 --- a/direwolf/direwolf-pacsatsim-jp14.conf +++ b/direwolf/direwolf-pacsatsim-jp14.conf @@ -4,5 +4,5 @@ MYCALL AMSAT CHANNEL 0 MODEM 1200 FULLDUP OFF -#TXDELAY 30 -#FIX_BITS 1 AX25 +TXDELAY 30 +FIX_BITS 1 AX25 From 735245e14821b1b5110e387242dde7a2babb9967 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Dec 2024 13:56:12 -0500 Subject: [PATCH 004/178] Update direwolf-fm-pacsat-jp14.conf txdelay and fix bits --- groundstation/direwolf/direwolf-fm-pacsat-jp14.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf index 2903fc24..2419285d 100644 --- a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf @@ -5,5 +5,5 @@ CHANNEL 0 MODEM 1200 KISSPORT 8100 FULLDUP OFF -#TXDELAY 30 -#FIX_BITS 1 AX25 +TXDELAY 30 +FIX_BITS 1 AX25 From 3a5d23767a5e2f48ec0c59ea58beb7255e3afdec Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Dec 2024 20:39:19 -0500 Subject: [PATCH 005/178] Update direwolf-pacsatsim-jp14.conf remove ax25 fix bits --- direwolf/direwolf-pacsatsim-jp14.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim-jp14.conf b/direwolf/direwolf-pacsatsim-jp14.conf index 59009a53..51ab8c9f 100644 --- a/direwolf/direwolf-pacsatsim-jp14.conf +++ b/direwolf/direwolf-pacsatsim-jp14.conf @@ -5,4 +5,4 @@ CHANNEL 0 MODEM 1200 FULLDUP OFF TXDELAY 30 -FIX_BITS 1 AX25 +#FIX_BITS 1 AX25 From ba05da8f37613abe408c956a1b29e3dc744b07e2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Dec 2024 20:39:42 -0500 Subject: [PATCH 006/178] Update direwolf-fm-pacsat-jp14.conf remove ax25 fix bits --- groundstation/direwolf/direwolf-fm-pacsat-jp14.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf index 2419285d..ad591599 100644 --- a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf @@ -6,4 +6,4 @@ MODEM 1200 KISSPORT 8100 FULLDUP OFF TXDELAY 30 -FIX_BITS 1 AX25 +#FIX_BITS 1 AX25 From ab446d1b714581518dea8c251ea66e4c213a0570 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Dec 2024 20:41:24 -0500 Subject: [PATCH 007/178] Update install added missing -12 --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index b2c06ecc..ecb3f1d8 100755 --- a/install +++ b/install @@ -153,7 +153,7 @@ echo "$value" > /dev/null set -- $value echo "bit_rate=9600" > pacsat.config -echo "bbs_callsign=$1" >> pacsat.config +echo "bbs_callsign=$1-12" >> pacsat.config echo "broadcast_callsign=$1-11" >> pacsat.config echo "digi_callsign=$1-1" >> pacsat.config echo "max_frames_in_tx_buffer=5" >> pacsat.config From 5fcc3e11001d3d8285e03b0c9971e21ab1606493 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 04:53:46 -0500 Subject: [PATCH 008/178] Create direwolf-pacsat-loopback.conf with Loopback --- groundstation/direwolf/direwolf-pacsat-loopback.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 groundstation/direwolf/direwolf-pacsat-loopback.conf diff --git a/groundstation/direwolf/direwolf-pacsat-loopback.conf b/groundstation/direwolf/direwolf-pacsat-loopback.conf new file mode 100644 index 00000000..74a7fb1e --- /dev/null +++ b/groundstation/direwolf/direwolf-pacsat-loopback.conf @@ -0,0 +1,9 @@ +MYCALL AMSAT +ADEVICE plughw:CARD=Loopback,DEV=0 plughw:CARD=Loopback,DEV=0 +#PTT GPIO 20 +CHANNEL 0 +MODEM 1200 +KISSPORT 8100 +FULLDUP OFF +TXDELAY 30 +#FIX_BITS 1 AX25 From 9c179c55234f8131969ced77f7336317621bd8f4 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 04:58:42 -0500 Subject: [PATCH 009/178] Update direwolf-pacsatsim-jp14.conf change to Loopback 1 0 --- direwolf/direwolf-pacsatsim-jp14.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim-jp14.conf b/direwolf/direwolf-pacsatsim-jp14.conf index 51ab8c9f..f30407cc 100644 --- a/direwolf/direwolf-pacsatsim-jp14.conf +++ b/direwolf/direwolf-pacsatsim-jp14.conf @@ -1,4 +1,4 @@ -ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 +ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=0 #PTT GPIO 20 MYCALL AMSAT CHANNEL 0 From 08420193dadc08ec428b901f5df9b07fc7d16cc4 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 04:59:26 -0500 Subject: [PATCH 010/178] Update direwolf-fm-pacsat-jp14.conf change to Loopback 0 1 --- groundstation/direwolf/direwolf-fm-pacsat-jp14.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf index ad591599..c815b866 100644 --- a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf @@ -1,5 +1,5 @@ MYCALL AMSAT -ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 +ADEVICE plughw:CARD=Loopback,DEV=0 plughw:CARD=Loopback,DEV=1 #PTT GPIO 20 CHANNEL 0 MODEM 1200 From 00354d02df42b715be335484e0b971753631b8cb Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 05:01:35 -0500 Subject: [PATCH 011/178] Update pacsat.sh restart pacsatsim in ground station --- groundstation/pacsat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 6cd4ab0d..d2197312 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -32,6 +32,8 @@ sudo killall -9 zenity &>/dev/null echo +sudo systemctl restart pacsatsim + value=`cat /home/pi/CubeSatSim/sim.cfg` echo "$value" > /dev/null set -- $value From 862c0812997e1710aea62f20cd67fa63a3de60a4 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 05:09:08 -0500 Subject: [PATCH 012/178] Update direwolf-fm-pacsat-jp14.conf add KISSPORT 8001 --- groundstation/direwolf/direwolf-fm-pacsat-jp14.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf index c815b866..6e4fc073 100644 --- a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf @@ -7,3 +7,4 @@ KISSPORT 8100 FULLDUP OFF TXDELAY 30 #FIX_BITS 1 AX25 +KISSPORT 8001 From c8b73f9f90ed16caffcd5e2d85f4c7a39f6eede3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 05:17:41 -0500 Subject: [PATCH 013/178] Update direwolf-pacsatsim-jp14.conf TXDELAY 75 --- direwolf/direwolf-pacsatsim-jp14.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim-jp14.conf b/direwolf/direwolf-pacsatsim-jp14.conf index f30407cc..803920ff 100644 --- a/direwolf/direwolf-pacsatsim-jp14.conf +++ b/direwolf/direwolf-pacsatsim-jp14.conf @@ -4,5 +4,5 @@ MYCALL AMSAT CHANNEL 0 MODEM 1200 FULLDUP OFF -TXDELAY 30 +TXDELAY 75 #FIX_BITS 1 AX25 From 49bf55484c0e2010eb7bef7644a83f8210ec8b28 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 06:00:24 -0500 Subject: [PATCH 014/178] Update pacsat.sh stop CubeSatSim, transmit, command --- groundstation/pacsat.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index d2197312..3846ea26 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -4,6 +4,12 @@ sudo modprobe snd-aloop +sudo systemctl stop cubesatsim + +sudo systemctl stop transmit + +sudo systemctl stop command + /home/pi/CubeSatSim/config -I sudo systemctl stop command &>/dev/null From d4d6b37829c05901dfd72dbcefa104ee96429ac8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 06:02:31 -0500 Subject: [PATCH 015/178] Update install my fork of pi_pacsat --- install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install b/install index ecb3f1d8..b335178c 100755 --- a/install +++ b/install @@ -138,7 +138,11 @@ cd git clone https://github.com/ac2cz/pi_pacsat.git -cd pi_pacsat/Debug +cd pi_pacsat + +git checkout master-debug + +cd Debug make all From 7092c7aa67ab883e105f9ef1f50c2bfb4a527fb0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 06:42:12 -0500 Subject: [PATCH 016/178] Update install changed pi_pacsat to my repo --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index b335178c..3a4297a4 100755 --- a/install +++ b/install @@ -136,7 +136,7 @@ sudo ./install.sh cd -git clone https://github.com/ac2cz/pi_pacsat.git +git clone https://github.com/alanbjohnston/pi_pacsat.git cd pi_pacsat From aa0e48aca2f74196dc17c8fe4878d33f550b43ca Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 06:52:29 -0500 Subject: [PATCH 017/178] Update pacsat.sh don't set CubeSatSim mode --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 3846ea26..b68dbec9 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -10,7 +10,7 @@ sudo systemctl stop transmit sudo systemctl stop command -/home/pi/CubeSatSim/config -I +#/home/pi/CubeSatSim/config -I sudo systemctl stop command &>/dev/null From 002c3dbd6b6c603d3dadd7d09931b3aa5f622b46 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 11:04:01 -0500 Subject: [PATCH 018/178] Update install fix pacsat install --- install | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/install b/install index 3a4297a4..87881db0 100755 --- a/install +++ b/install @@ -152,18 +152,20 @@ mkdir /home/pi/PacSat/pacsat/dir export LD_LIBRARY_PATH=/mnt/usb-disk/ariss/lib:/usr/local/lib/iors_common:$LD_LIBRARY_PATH -value=`cat /home/pi/CubeSatSim/sim.cfg` -echo "$value" > /dev/null -set -- $value +#value=`cat /home/pi/CubeSatSim/sim.cfg` +#echo "$value" > /dev/null +#set -- $value echo "bit_rate=9600" > pacsat.config -echo "bbs_callsign=$1-12" >> pacsat.config -echo "broadcast_callsign=$1-11" >> pacsat.config -echo "digi_callsign=$1-1" >> pacsat.config +echo "bbs_callsign=W3ZM-12" >> pacsat.config +echo "broadcast_callsign=W3ZM-11" >> pacsat.config +echo "digi_callsign=W3ZM-1" >> pacsat.config echo "max_frames_in_tx_buffer=5" >> pacsat.config echo "pb_open=1" > pacsat.state echo "uplink_open=1" >> pacsat.state +echo "pb_max_period_for_client_in_seconds=60" >> pacsat.state +echo "uplink_max_period_for_client_in_seconds=60" >> pacsat.state sudo sed -i 's/#hdmi_group=1/hdmi_group=2/g' /boot/config.txt sudo sed -i 's/#hdmi_mode=1/hdmi_mode=16/g' /boot/config.txt From 41d47740a3fe28c27184f8ef5cbbc5828341e2d5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 12:54:22 -0500 Subject: [PATCH 019/178] Create pacsat.desktop --- groundstation/pacsat.desktop | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 groundstation/pacsat.desktop diff --git a/groundstation/pacsat.desktop b/groundstation/pacsat.desktop new file mode 100644 index 00000000..539c0e1d --- /dev/null +++ b/groundstation/pacsat.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Pacsat +GenericName=Pacsat Loopback +Comment=Pacsat +Exec=/home/pi/CubeSatSim/groundstation/pacsat.sh +Icon=/home/pi/Icons/pacsat.png +Terminal=true +Type=Application +Categories=HamRadio; +Keywords=APRS; From 9ca2860de8a214e1e743b1127af7044cc58a5513 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 12:55:29 -0500 Subject: [PATCH 020/178] Create pacsatlog.desktop --- groundstation/pacsatlog.desktop | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 groundstation/pacsatlog.desktop diff --git a/groundstation/pacsatlog.desktop b/groundstation/pacsatlog.desktop new file mode 100644 index 00000000..b3032884 --- /dev/null +++ b/groundstation/pacsatlog.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Pacsat Log +GenericName=Pacsat Loopback +Comment=Pacsat +Exec=/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/log -p" +Icon=/home/pi/Icons/pacsat.png +Terminal=true +Type=Application +Categories=HamRadio; +Keywords=APRS; From e574937c7aac87611d2529c53702889c3ad71db0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 30 Dec 2024 13:36:56 -0500 Subject: [PATCH 021/178] Update pacsat.sh remove frequency comments --- groundstation/pacsat.sh | 43 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 30 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index b68dbec9..b0b1e952 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -40,44 +40,27 @@ echo sudo systemctl restart pacsatsim -value=`cat /home/pi/CubeSatSim/sim.cfg` -echo "$value" > /dev/null -set -- $value - -echo "Receive frequency is $8 MHz" -echo "Transmit frequency is $7 MHz" -echo -echo "To change, quit and type CubeSatSim/config -F" -echo +#value=`cat /home/pi/CubeSatSim/sim.cfg` +#echo "$value" > /dev/null +#set -- $value + +#echo "Receive frequency is $8 MHz" +#echo "Transmit frequency is $7 MHz" +#echo +#echo "To change, quit and type CubeSatSim/config -F" +#echo -frequency="$8e6" +#frequency="$8e6" #echo "Note that the 'Tuned to' frequency will be different from the chosen frequency due to the way SDRs work." #echo -if [[ $(arecord -l | grep "USB Audio Device") ]] ; then - echo -e "Direwolf using USB Sound Card (FM Transceiver) on $frequency Hz" - - direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 & - -else - - echo -e "Direwolf using RTL-SDR on $frequency Hz" - - direwolf -P+ -D3 -r 48000 -qd -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat.conf -t 0 & - - sleep 5 - - value=`aplay -l | grep "Loopback"` - echo "$value" > /dev/null - set -- $value - - #rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 - rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 & +echo +echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback." +echo -fi cd /home/pi/Desktop/PacSatGround_0.46m_linux/ From 9f7d7e8334d43d3a7b20675b6e74695036e37b52 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 1 Jan 2025 09:43:40 -0500 Subject: [PATCH 022/178] Update transmit.py repeater mode CARD --- transmit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transmit.py b/transmit.py index 32d970b3..baa1419d 100644 --- a/transmit.py +++ b/transmit.py @@ -802,7 +802,7 @@ if __name__ == "__main__": ## system("arecord -D plughw:CARD=Device,DEV=0 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 &") system("sudo nc -l 8011 | csdr convert_i16_f | csdr gain_ff 16000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 &") sleep(1) - system("sudo arecord -D plughw:1 -r48000 -fS16_LE -c1 | nc localhost 8011 &") + system("sudo arecord -D plughw:CARD -r48000 -fS16_LE -c1 | nc localhost 8011 &") GPIO.output(powerPin, 1) sleep(0.5) GPIO.output(powerPin, 0) @@ -810,9 +810,9 @@ if __name__ == "__main__": sleep(1) print("No carrier detected, stopping repeater") output(txLed, txLedOff) - system("sudo killall -9 arecord") - system("sudo killall -9 nc") - system("sudo killall -9 rpitx") + system("sudo killall -9 arecord > /dev/null 2>&1") + system("sudo killall -9 nc > /dev/null 2>&1") + system("sudo killall -9 rpitx > /dev/null 2>&1") else: print("FSK") From 087eab06256fba579360b3ae1a1a4af10535c861 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 1 Jan 2025 09:47:36 -0500 Subject: [PATCH 023/178] Update transmit.py fixed CARD=Device --- transmit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmit.py b/transmit.py index baa1419d..7d47f19a 100644 --- a/transmit.py +++ b/transmit.py @@ -802,7 +802,7 @@ if __name__ == "__main__": ## system("arecord -D plughw:CARD=Device,DEV=0 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 &") system("sudo nc -l 8011 | csdr convert_i16_f | csdr gain_ff 16000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f " + tx + "e3 &") sleep(1) - system("sudo arecord -D plughw:CARD -r48000 -fS16_LE -c1 | nc localhost 8011 &") + system("sudo arecord -D plughw:CARD=Device,DEV=0 -r48000 -fS16_LE -c1 | nc localhost 8011 &") GPIO.output(powerPin, 1) sleep(0.5) GPIO.output(powerPin, 0) From 976ac018166a9be5048dffce1f2a74c73e5f33b9 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 07:11:49 -0500 Subject: [PATCH 024/178] Update install switch pi_pacsat back to ac2cz --- install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install b/install index 87881db0..eed5aef2 100755 --- a/install +++ b/install @@ -136,11 +136,12 @@ sudo ./install.sh cd -git clone https://github.com/alanbjohnston/pi_pacsat.git +#git clone https://github.com/alanbjohnston/pi_pacsat.git +git clone https://github.com/ac2cz/pi_pacsat.git cd pi_pacsat -git checkout master-debug +#git checkout master-debug cd Debug From 54bcd77317cfd20287c7005872bdfb80dcf68248 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 10:59:07 -0500 Subject: [PATCH 025/178] Update sstv_decode_prompt.sh remove hw:0.0 on play --- groundstation/sstv_decode_prompt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 76eb611f..5e3b5e2d 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -128,7 +128,9 @@ set -- $value #rtl_fm -M fm -f 434.9M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 #rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 + +#rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -r 48000 -t raw -f S16_LE -c 1 sleep 5 From d2cf9213369d173592fd1b48b88b6a6a85000ee0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 11:03:37 -0500 Subject: [PATCH 026/178] Update sstv_decode_prompt.sh remove tee --- groundstation/sstv_decode_prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 5e3b5e2d..da80f1d4 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -130,7 +130,7 @@ set -- $value #rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 #rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From 4c7f4d5e172645792c6b264d6ebc25415898e0bc Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:14:03 -0500 Subject: [PATCH 027/178] Update fox-profile.desktop --- groundstation/fox-profile.desktop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/fox-profile.desktop b/groundstation/fox-profile.desktop index c03f40d4..8b7aaabe 100644 --- a/groundstation/fox-profile.desktop +++ b/groundstation/fox-profile.desktop @@ -2,8 +2,8 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/fox-profile.sh Name=Change FoxTelem Profile -Comment=FIAB-v3 -Icon=/home/pi/Downloads/foxtelem.png +Comment=FIAB-v4 +Icon=/home/pi/Icons/foxtelem.png Path=/home/pi Terminal=true Categories=HamRadio From 3a4373ea1432279a1eb7ecd8e1075b847f72badd Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:15:37 -0500 Subject: [PATCH 028/178] Update gpredict.desktop --- groundstation/gpredict.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/gpredict.desktop b/groundstation/gpredict.desktop index 20a6ab49..69d11ecb 100644 --- a/groundstation/gpredict.desktop +++ b/groundstation/gpredict.desktop @@ -3,7 +3,7 @@ Type=Application Exec=/usr/bin/gpredict Name=Gpredict Comment=ISS and Satellite Tracking for ARISS Radio Pi -Icon=/home/pi/Downloads/gpredict.png +Icon=/home/pi/Icons/gpredict.png Path=/home/pi Terminal=false Categories=HamRadio From 6d0a9fa82d218759caa64cf3bef25edbf77299ae Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:17:02 -0500 Subject: [PATCH 029/178] Update rtl-tcp.desktop --- groundstation/rtl-tcp.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/rtl-tcp.desktop b/groundstation/rtl-tcp.desktop index 117acb9c..7ae3c038 100644 --- a/groundstation/rtl-tcp.desktop +++ b/groundstation/rtl-tcp.desktop @@ -3,7 +3,7 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/rtl-tcp.sh Name=RTL-TCP Comment=RTL-TCP for SDR# -Icon=/home/pi/Downloads/SDRSharp.png +Icon=/home/pi/Icons/SDRSharp.png Path=/home/pi Terminal=true Categories=HamRadio From 5dc9c1b18d83802c280747ca431a4ec5b94eed3a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:18:35 -0500 Subject: [PATCH 030/178] Update set location.desktop --- groundstation/set location.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/set location.desktop b/groundstation/set location.desktop index e2b80016..9adc6f66 100644 --- a/groundstation/set location.desktop +++ b/groundstation/set location.desktop @@ -3,7 +3,7 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/loc.sh Name=Set My Location Comment=Set Location for Gpredict -Icon=/home/pi/Downloads/gpredict.png +Icon=/home/pi/Icons/gpredict.png Path=/home/pi Terminal=true Categories=HamRadio From 5d2f5ada8d4e08c61edbd7c745ba71136ec97d3a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:20:40 -0500 Subject: [PATCH 031/178] Create SDRpp.desktop --- groundstation/SDRpp.desktop | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 groundstation/SDRpp.desktop diff --git a/groundstation/SDRpp.desktop b/groundstation/SDRpp.desktop new file mode 100644 index 00000000..f4f4ba38 --- /dev/null +++ b/groundstation/SDRpp.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Exec=/home/pi/CubeSatSim/groundstation/sdrpp.sh +Name=SDRpp +Comment=SDRpp +Icon=/home/pi/Icons/sdrpp.png +Path=/home/pi +Terminal=true +Categories=HamRadio +Keywords=Ham Radio;SDR From cbe338671ae6233250610ee24c965594738fdbd3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:24:47 -0500 Subject: [PATCH 032/178] Update cubicsdr.desktop --- groundstation/cubicsdr.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/cubicsdr.desktop b/groundstation/cubicsdr.desktop index 1599f5df..2cf19759 100644 --- a/groundstation/cubicsdr.desktop +++ b/groundstation/cubicsdr.desktop @@ -3,7 +3,7 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/cubicsdr.sh Name=SDR FM Broadcast Comment=CubicSDR FM Broadcast -Icon=/home/pi/Downloads/cubicsdr.png +Icon=/home/pi/Icons/cubicsdr.png Path=/home/pi Terminal=true Categories=HamRadio From 1190ebca96629ec22b9b53d64a690080568d069c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:32:27 -0500 Subject: [PATCH 033/178] Update aprs.sh --- groundstation/aprs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/groundstation/aprs.sh b/groundstation/aprs.sh index 2e1c6873..dd88ba5d 100755 --- a/groundstation/aprs.sh +++ b/groundstation/aprs.sh @@ -3,12 +3,14 @@ sudo modprobe snd-aloop -sudo systemctl stop openwebrx +sudo systemctl stop openwebrx &>/dev/null -sudo systemctl stop rtl_tcp +sudo systemctl stop rtl_tcp &>/dev/null pkill -o chromium &>/dev/null +sudo killall -9 sdrpp &>/dev/null + sudo killall -9 rtl_fm &>/dev/null sudo killall -9 direwolf &>/dev/null From 2ceeb9c62571b616d05bab9eb9059dc70dd84f97 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:34:18 -0500 Subject: [PATCH 034/178] Update fox.sh --- groundstation/fox.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/groundstation/fox.sh b/groundstation/fox.sh index 3c1daf1a..233644ef 100755 --- a/groundstation/fox.sh +++ b/groundstation/fox.sh @@ -5,12 +5,14 @@ echo "Script to run FoxTelem for ARISS Radio Pi" echo -sudo systemctl stop openwebrx +sudo systemctl stop openwebrx &>/dev/null -sudo systemctl stop rtl_tcp +sudo systemctl stop rtl_tcp &>/dev/null pkill -o chromium &>/dev/null +sudo killall -9 sdrpp &>/dev/null + sudo killall -9 rtl_tcp &>/dev/null sudo killall -9 rtl_fm &>/dev/null From 324731eef74382126920512a14e6688abbe551c8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:35:27 -0500 Subject: [PATCH 035/178] Update sstv_decode_prompt.sh --- groundstation/sstv_decode_prompt.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index da80f1d4..6b6e5dbc 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -4,10 +4,12 @@ echo "Script to decode SSTV using QSSTV with rtl_fm" echo -sudo systemctl stop openwebrx +sudo systemctl stop openwebrx &>/dev/null sudo modprobe snd-aloop +sudo killall -9 sdrpp &>/dev/null + sudo killall -9 qsstv &>/dev/null sudo killall -9 rtl_fm &>/dev/null @@ -16,7 +18,7 @@ sudo killall -9 aplay &>/dev/null sudo killall -9 direwolf &>/dev/null -sudo systemctl stop rtl_tcp +sudo systemctl stop rtl_tcp &>/dev/null pkill -o chromium &>/dev/null From 42857a18cf894859e138b16dd93696395ce37e33 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:36:58 -0500 Subject: [PATCH 036/178] Update sdr.sh --- groundstation/sdr.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/groundstation/sdr.sh b/groundstation/sdr.sh index 0783d9ca..1ad01092 100755 --- a/groundstation/sdr.sh +++ b/groundstation/sdr.sh @@ -24,6 +24,8 @@ echo "Note: you need to be on the Wifi network: $ssid" echo +sudo killall -9 sdrpp &>/dev/null + sudo killall -9 java &>/dev/null sudo killall -9 rtl_fm &>/dev/null @@ -42,13 +44,13 @@ sudo killall -9 direwolf &>/dev/null sudo killall -9 zenity &>/dev/null -sudo systemctl stop rtl_tcp +sudo systemctl stop rtl_tcp &>/dev/null -sudo systemctl restart openwebrx +sudo systemctl restart openwebrx &>/dev/null sleep 10 -setsid chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars http://127.0.0.1:8073 &>/dev/null & +setsid chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars http://localhost:8073 &>/dev/null & sleep 10 From 3b85b6e6b52f62a8f6cc249771e925296264b305 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:37:55 -0500 Subject: [PATCH 037/178] Update rtl-tcp.sh --- groundstation/rtl-tcp.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index c8af8906..bcf8e154 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -23,13 +23,15 @@ echo "Note: you need to be on the Wifi network: $ssid" echo -sudo systemctl stop openwebrx +sudo systemctl stop openwebrx &>/dev/null sleep 2 pkill -o chromium &>/dev/null -sudo systemctl stop rtl_tcp +sudo systemctl stop rtl_tcp &>/dev/null + +sudo killall -9 sdrpp &>/dev/null sudo killall -9 java &>/dev/null From 6f81e7d9075c22e9854a12fe4df1461ea192caeb Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:39:07 -0500 Subject: [PATCH 038/178] Update cubicsdr.sh --- groundstation/cubicsdr.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/groundstation/cubicsdr.sh b/groundstation/cubicsdr.sh index 3f4b6b62..f9c3146c 100755 --- a/groundstation/cubicsdr.sh +++ b/groundstation/cubicsdr.sh @@ -9,14 +9,16 @@ echo "Note: Select Generic RTL2832 device then click Start to begin" echo -sudo systemctl stop openwebrx +sudo systemctl stop openwebrx &>/dev/null sudo killall -9 java &>/dev/null -sudo systemctl stop rtl_tcp +sudo systemctl stop rtl_tcp &>/dev/null pkill -o chromium &>/dev/null +sudo killall -9 sdrpp &>/dev/null + sudo killall -9 rtl_fm &>/dev/null sudo killall -9 direwolf &>/dev/null From 30a48e2dd2f23c4e893df65dd90eb7dd19ef79d1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:55:32 -0500 Subject: [PATCH 039/178] Update aprs.sh remove tee --- groundstation/aprs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/groundstation/aprs.sh b/groundstation/aprs.sh index dd88ba5d..10917a3c 100755 --- a/groundstation/aprs.sh +++ b/groundstation/aprs.sh @@ -80,7 +80,7 @@ echo -e "Auto decoding APRS packets on $frequency Hz" #sudo rtl_fm -f 144.39M -s 22050 -g 48 - | multimon-ng -a AFSK1200 -A -t raw - -direwolf -r 48000 -t 0 & +direwolf -c direwolf.conf -r 48000 -t 0 & sleep 5 @@ -89,6 +89,7 @@ echo "$value" > /dev/null set -- $value #rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 +#rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From 28ab2a86885214337f1a413f361f0c0fb040cdd6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:56:05 -0500 Subject: [PATCH 040/178] Update direwolf.conf changed speaker to default --- groundstation/direwolf.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf.conf b/groundstation/direwolf.conf index ce8b6823..d70427b9 100644 --- a/groundstation/direwolf.conf +++ b/groundstation/direwolf.conf @@ -1 +1 @@ -ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=b1,DEV=0 +ADEVICE plughw:CARD=Loopback,DEV=1 default From 061845cdfe4d0e1e6cb8412b86078eeb49d364d8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 2 Jan 2025 12:57:44 -0500 Subject: [PATCH 041/178] Update aprs.sh full path for direwolf conf --- groundstation/aprs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/aprs.sh b/groundstation/aprs.sh index 10917a3c..427c36cb 100755 --- a/groundstation/aprs.sh +++ b/groundstation/aprs.sh @@ -80,7 +80,7 @@ echo -e "Auto decoding APRS packets on $frequency Hz" #sudo rtl_fm -f 144.39M -s 22050 -g 48 - | multimon-ng -a AFSK1200 -A -t raw - -direwolf -c direwolf.conf -r 48000 -t 0 & +direwolf -c /home/pi/CubeSatSim/groundstation/direwolf.conf -r 48000 -t 0 & sleep 5 From 0e590a838ef743f7f0459605bc04120f40614ae0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 03:11:05 -0500 Subject: [PATCH 042/178] Update bookmarks.json --- groundstation/bookmarks.json | 191 ++++++++++------------------------- 1 file changed, 55 insertions(+), 136 deletions(-) diff --git a/groundstation/bookmarks.json b/groundstation/bookmarks.json index f8bae496..09f1be52 100644 --- a/groundstation/bookmarks.json +++ b/groundstation/bookmarks.json @@ -1,137 +1,56 @@ [ - { - "name": "ISS APRS", - "frequency": 145825000, - "modulation": "nfm" - }, - { - "name": "ISS SSTV/Voice", - "frequency": 145800000, - "modulation": "nfm" - }, - { - "name": "ARISS Repeater Downlink", - "frequency": 437800000, - "modulation": "nfm" - }, - { - "name": "AO-27", - "frequency": 436795000, - "modulation": "nfm" - }, - { - "name": "AO-73", - "frequency": 145815000, - "modulation": "usb" - }, - { - "name": "Fox-1B AO-91", - "frequency": 145960000, - "modulation": "nfm" - }, - { - "name": "Fox-1D AO-92", - "frequency": 145880000, - "modulation": "nfm" - }, - { - "name": "HuskySat-1 HO-107", - "frequency": 435800000, - "modulation": "usb" - }, - { - "name": "Fox-1E", - "frequency": 435750000, - "modulation": "usb" - }, - { - "name": "MAX VALIER", - "frequency": 145860000, - "modulation": "usb" - }, - { - "name": "NOAA WX Radio 1", - "frequency": 162400000, - "modulation": "nfm" - }, - { - "name": "NOAA WX Radio 2", - "frequency": 162425000, - "modulation": "nfm" - }, - { - "name": "NOAA WX Radio 3", - "frequency": 162450000, - "modulation": "nfm" - }, - { - "name": "NOAA WX Radio 4", - "frequency": 162475000, - "modulation": "nfm" - }, - { - "name": "NOAA WX Radio 5", - "frequency": 162500000, - "modulation": "nfm" - }, - { - "name": "NOAA WX Radio 6", - "frequency": 162525000, - "modulation": "nfm" - }, - { - "name": "NOAA WX Radio 7", - "frequency": 162550000, - "modulation": "nfm" - }, - { - "name": "CAS-4A", - "frequency": 145855000, - "modulation": "usb" - }, - { - "name": "CAS-4B", - "frequency": 145910000, - "modulation": "usb" - }, - { - "name": "XW-2A", - "frequency": 145660000, - "modulation": "usb" - }, - { - "name": "XW-2B", - "frequency": 145725000, - "modulation": "usb" - }, - { - "name": "XW-2C", - "frequency": 145790000, - "modulation": "usb" - }, - { - "name": "XW-2F", - "frequency": 145975000, - "modulation": "usb" - }, - { - "name": "NOAA-19", - "frequency": 137100000, - "modulation": "nfm" - }, - { - "name": "NOAA-18", - "frequency": 137912500, - "modulation": "nfm" - }, - { - "name": "NOAA-15", - "frequency": 137620000, - "modulation": "nfm" - }, - { - "name": "CubeSatSim", - "frequency": 434900000, - "modulation": "packet" - } -] + { + "name": "NOAA WX Radio 1", + "frequency": 162400000, + "modulation": "nfm" + }, + { + "name": "NOAA WX Radio 2", + "frequency": 162425000, + "modulation": "nfm" + }, + { + "name": "NOAA WX Radio 3", + "frequency": 162450000, + "modulation": "nfm" + }, + { + "name": "NOAA WX Radio 4", + "frequency": 162475000, + "modulation": "nfm" + }, + { + "name": "NOAA WX Radio 5", + "frequency": 162500000, + "modulation": "nfm" + }, + { + "name": "NOAA WX Radio 6", + "frequency": 162525000, + "modulation": "nfm" + }, + { + "name": "NOAA WX Radio 7", + "frequency": 162550000, + "modulation": "nfm" + }, + { + "name": "CubeSatSim", + "frequency": 434900000, + "modulation": "packet" + }, + { + "name": "ISS SSTV/Voice", + "frequency": 145800000, + "modulation": "nfm" + }, + { + "name": "ISS APRS", + "frequency": 145825000, + "modulation": "packet" + }, + { + "name": "ISS Voice Repeater", + "frequency": 437800000, + "modulation": "nfm" + } From 2cd5718e43dd73441c94dc27db7666a9e61a0bff Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 03:19:22 -0500 Subject: [PATCH 043/178] Create settings.json --- groundstation/settings.json | 808 ++++++++++++++++++++++++++++++++++++ 1 file changed, 808 insertions(+) create mode 100644 groundstation/settings.json diff --git a/groundstation/settings.json b/groundstation/settings.json new file mode 100644 index 00000000..69033009 --- /dev/null +++ b/groundstation/settings.json @@ -0,0 +1,808 @@ +{ + "version": 8, + "sdrs": { + "rtlsdr": { + "name": "RTL-SDR", + "type": "rtl_sdr", + "profiles": { + "70cm": { + "name": "70cm Ham Band 435 MHz (CubeSatSim)", + "center_freq": 435000000, + "rf_gain": 10.0, + "samp_rate": 2400000, + "start_freq": 434900000, + "start_mod": "nfm", + "tuning_step": 1000, + "direct_sampling": 0 + }, + "2m": { + "name": "WX Band 161 MHz", + "center_freq": 162400000, + "rf_gain": 29, + "samp_rate": 2048000, + "start_freq": 157000000, + "start_mod": "nfm" + }, + "e59a4765-4139-4ab8-89c5-d8ac3343ba70": { + "name": "2m Ham Band 146 MHz (ISS)", + "center_freq": 145000000, + "samp_rate": 2400000, + "start_freq": 145000000, + "start_mod": "nfm", + "rf_gain": 42.0, + "direct_sampling": 0 + }, + "faf80b0b-1a96-4a9b-96fa-ce40b109c7e0": { + "name": "70cm Ham Band 438 MHz (ISS)", + "rf_gain": 29.0, + "center_freq": 438000000, + "samp_rate": 2400000, + "start_freq": 437800000, + "start_mod": "nfm" + }, + "a4fd4a5d-d2d0-4949-87e2-bda83cd83a37": { + "name": "FM Band 95 MHz", + "rf_gain": 29.0, + "center_freq": 95000000, + "samp_rate": 2400000, + "start_freq": 94000000, + "start_mod": "wfm" + }, + "ce2bca29-78cb-45d8-ab46-8dea3135981c": { + "name": "10m Ham Band 28 MHz", + "rf_gain": 29.0, + "center_freq": 28000000, + "samp_rate": 2400000, + "start_freq": 28000000, + "start_mod": "usb", + "direct_sampling": 0 + }, + "d6cdbf2d-74e4-4cac-aaa8-e793103a8e89": { + "name": "6m Ham Band 51 MHz", + "rf_gain": 29.0, + "center_freq": 51000000, + "samp_rate": 2400000, + "start_freq": 51000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "e2aba387-1d3b-4ca8-b280-e119282b8812": { + "name": "90 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 90000000, + "samp_rate": 2400000, + "start_freq": 90000000, + "start_mod": "wfm" + }, + "f700b99d-3c51-4524-b151-a0809b868ecc": { + "name": "92 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 92000000, + "samp_rate": 2400000, + "start_freq": 92000000, + "start_mod": "wfm" + }, + "dc6af94f-d607-4fee-a522-7f375f66a62c": { + "name": "94 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 94000000, + "samp_rate": 2400000, + "start_freq": 94000000, + "start_mod": "wfm" + }, + "6887e85a-a4dc-4245-810f-99801fc5e824": { + "name": "96 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 96000000, + "samp_rate": 2400000, + "start_freq": 96000000, + "start_mod": "wfm" + }, + "a2182ed6-70a8-4377-b233-ac6f8ccc91d7": { + "name": "98 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 96000000, + "samp_rate": 2400000, + "start_freq": 96000000, + "start_mod": "wfm" + }, + "57e38353-fb86-4935-899b-e365228b8ae5": { + "name": "100 MHz FM Band", + "center_freq": 100000000, + "samp_rate": 2400000, + "start_freq": 100000000, + "start_mod": "wfm" + }, + "5e9ec6dd-905d-4781-bd13-9cb702f58e84": { + "name": "102 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 102000000, + "samp_rate": 2400000, + "start_freq": 102000000, + "start_mod": "wfm" + }, + "ef2c703c-2e22-4e87-82b5-581420d704bd": { + "name": "104 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 104000000, + "samp_rate": 2400000, + "start_freq": 104000000, + "start_mod": "wfm" + }, + "34cc3ddf-8018-4288-acb9-29e6940bc37e": { + "name": "106 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 106000000, + "samp_rate": 2400000, + "start_freq": 106000000, + "start_mod": "wfm" + }, + "b4693683-ccf5-474d-a2d9-9a47b0a18ee2": { + "name": "108 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 108000000, + "samp_rate": 2400000, + "start_freq": 108000000, + "start_mod": "wfm" + }, + "34224d77-7b61-467c-b78f-18c7f3af1a0c": { + "name": "110 MHz FM Band", + "rf_gain": 29.0, + "center_freq": 110000000, + "samp_rate": 2400000, + "start_freq": 110000000, + "start_mod": "wfm" + }, + "8dd82d97-73db-4fa7-ac41-263c3026ea1d": { + "name": "112 MHz", + "rf_gain": 29.0, + "center_freq": 112000000, + "samp_rate": 2400000, + "start_freq": 112000000, + "start_mod": "nfm" + }, + "79304b30-f10d-469e-9617-50a19bfdb435": { + "name": "114 MHz", + "rf_gain": 29.0, + "center_freq": 114000000, + "samp_rate": 2400000, + "start_freq": 114000000, + "start_mod": "nfm" + }, + "c00bf096-27b8-4262-832c-df1a308d7eb9": { + "name": "116 MHz", + "rf_gain": 29.0, + "center_freq": 116000000, + "samp_rate": 2400000, + "start_freq": 116000000, + "start_mod": "nfm" + }, + "669d25a6-6c15-4131-a330-3c33dd2147f0": { + "name": "118 Mhz Air Band", + "rf_gain": 29.0, + "center_freq": 118000000, + "samp_rate": 2400000, + "start_freq": 118000000, + "start_mod": "am" + }, + "948248fa-43d9-4e7d-bf86-afaadd391779": { + "name": "120 MHz Air Band", + "rf_gain": 29.0, + "center_freq": 120000000, + "samp_rate": 2400000, + "start_freq": 120000000, + "start_mod": "am" + }, + "b634273b-8fc8-4e87-b5c4-e6226d4be0ac": { + "name": "122 MHz Air Band", + "rf_gain": 42.0, + "center_freq": 122000000, + "samp_rate": 2400000, + "start_freq": 121000000, + "start_mod": "nfm" + }, + "c55289a2-8286-4a3d-a505-37ba2867571a": { + "name": "124 Mhz Air Band", + "rf_gain": 42.0, + "center_freq": 124000000, + "samp_rate": 2400000, + "start_freq": 124000000, + "start_mod": "am" + }, + "4fe488b7-f369-43ba-bb49-91e1a185be7a": { + "name": "126 MHz Air Band", + "rf_gain": 29.0, + "center_freq": 126000000, + "samp_rate": 2400000, + "start_freq": 126000000, + "start_mod": "am" + }, + "e79639a2-1384-4e92-8e46-f6e5670ec9fd": { + "name": "128 MHz Air Band", + "rf_gain": 42.0, + "center_freq": 128000000, + "samp_rate": 2400000, + "start_freq": 128000000, + "start_mod": "am" + }, + "319f3fb2-b98a-4620-85a7-a99d5a722bd5": { + "name": "130 MHz Air Band", + "rf_gain": 42.0, + "center_freq": 130000000, + "samp_rate": 2400000, + "start_freq": 130000000, + "start_mod": "am" + }, + "63c5c2ce-07de-496c-81f6-b188a7adbf39": { + "name": "132 MHz Air Band", + "rf_gain": 42.0, + "center_freq": 132000000, + "samp_rate": 2400000, + "start_freq": 132000000, + "start_mod": "am" + }, + "386bdc7b-eb10-4e05-972a-69d730a23cd8": { + "name": "134 MHz Air Band", + "rf_gain": 29.0, + "center_freq": 134000000, + "samp_rate": 2400000, + "start_freq": 134000000, + "start_mod": "am" + }, + "ae8ea8b1-23de-45ef-b8c4-3b83a188e65d": { + "name": "136 MHz Air Band", + "rf_gain": 42.0, + "center_freq": 136000000, + "samp_rate": 2400000, + "start_freq": 136000000, + "start_mod": "am" + }, + "c0b1a28c-5e07-400a-a5f3-07c62db27587": { + "name": "138 MHz NOAA Weather Satellite Band", + "rf_gain": 42.0, + "center_freq": 138000000, + "samp_rate": 2400000, + "start_freq": 138000000, + "start_mod": "nfm" + }, + "20f7ce56-fd85-4b3e-8fac-94cbe9ba0e1d": { + "name": "140 MHz ", + "rf_gain": 42.0, + "center_freq": 140000000, + "samp_rate": 2400000, + "start_freq": 140000000, + "start_mod": "nfm" + }, + "882079f8-5697-428a-ae9d-bcc091269c7f": { + "name": "142 MHz ", + "rf_gain": 42.0, + "center_freq": 142000000, + "samp_rate": 2400000, + "start_freq": 142000000, + "start_mod": "nfm" + }, + "da1b3f12-2eba-40e9-8c62-33493adf74b3": { + "name": "144 MHz 2m Ham Band", + "rf_gain": 42.0, + "center_freq": 144000000, + "samp_rate": 2400000, + "start_freq": 144000000, + "start_mod": "nfm" + }, + "8d9cf1e1-44c5-41c4-bcea-7b1c69446e62": { + "name": "146 MHz 2m Ham Band", + "rf_gain": 42.0, + "center_freq": 146000000, + "samp_rate": 2400000, + "start_freq": 146000000, + "start_mod": "nfm" + }, + "eec8aa0d-3485-43d2-baa4-82f7d9e14df6": { + "name": "148 MHz 2m Ham Band", + "rf_gain": 42.0, + "center_freq": 148000000, + "samp_rate": 2400000, + "start_freq": 148000000, + "start_mod": "nfm" + }, + "bf66a908-1988-4aec-b998-06e2bc7d0a84": { + "name": "150 MHz", + "rf_gain": 42.0, + "center_freq": 150000000, + "samp_rate": 2400000, + "start_freq": 150000000, + "start_mod": "nfm" + }, + "0389f270-b919-4aae-a313-f73697059f70": { + "name": "152 MHz", + "rf_gain": 42.0, + "center_freq": 152000000, + "samp_rate": 2400000, + "start_freq": 152000000, + "start_mod": "nfm" + }, + "6ef9d955-76aa-46c0-8463-2c23def5e37b": { + "name": "154 MHz", + "rf_gain": 42.0, + "center_freq": 154000000, + "samp_rate": 2400000, + "start_freq": 154000000, + "start_mod": "nfm" + }, + "5d0a64c7-3bce-408e-94d9-c8315bef7540": { + "name": "156 MHz", + "rf_gain": 42.0, + "center_freq": 156000000, + "samp_rate": 2400000, + "start_freq": 156000000, + "start_mod": "nfm" + }, + "5b869cae-ffa7-4554-96af-7acd497bbaf3": { + "name": "158 MHz", + "rf_gain": 42.0, + "center_freq": 158000000, + "samp_rate": 2400000, + "start_freq": 158000000, + "start_mod": "nfm" + }, + "0de7c5d4-14fc-4655-9a81-2bcebb2f4147": { + "name": "160 MHz", + "rf_gain": 42.0, + "center_freq": 160000000, + "samp_rate": 2400000, + "start_freq": 160000000, + "start_mod": "nfm" + }, + "8ca54821-8b80-4938-a35c-9fe25e2320d1": { + "name": "162 MHz", + "rf_gain": 42.0, + "center_freq": 162000000, + "samp_rate": 2400000, + "start_freq": 162000000, + "start_mod": "nfm" + }, + "f74d262d-9e98-4030-86b2-45676121ff1e": { + "name": "164 MHz", + "rf_gain": 42.0, + "center_freq": 164000000, + "samp_rate": 2400000, + "start_freq": 164000000, + "start_mod": "nfm" + }, + "bfc9c686-6c06-4de2-b1d5-c8f012131042": { + "name": "168 MHz", + "rf_gain": 42.0, + "center_freq": 168000000, + "samp_rate": 2400000, + "start_freq": 167000000, + "start_mod": "nfm" + }, + "5468e597-d529-42fe-9fcf-0ff4fa9e2d06": { + "name": "170 MHz", + "rf_gain": 42.0, + "center_freq": 170000000, + "samp_rate": 2400000, + "start_freq": 170000000, + "start_mod": "nfm" + }, + "e124cc6e-7177-4d5f-ae5b-2ec6a6fa2956": { + "name": "172 MHz", + "rf_gain": 42.0, + "center_freq": 172000000, + "samp_rate": 2400000, + "start_freq": 172000000, + "start_mod": "nfm" + }, + "1ce0f3ed-4763-4f00-916a-4f72d29ba410": { + "name": "174 MHz ", + "rf_gain": 42.0, + "center_freq": 174000000, + "samp_rate": 2400000, + "start_freq": 174000000, + "start_mod": "nfm" + }, + "639b1496-a2b9-4a42-ad28-3cda89fbe2fb": { + "name": "420 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 420000000, + "samp_rate": 2400000, + "start_freq": 420000000, + "start_mod": "nfm" + }, + "bbc9b57e-ea86-43ef-be65-cb2337615ae5": { + "name": "422 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 422000000, + "samp_rate": 2400000, + "start_freq": 422000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "3aed286d-7d13-4338-8621-d1c0dfdf3ac6": { + "name": "424 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 424000000, + "samp_rate": 2400000, + "start_freq": 424000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "9ae664b4-48f3-410a-8995-edc60127d746": { + "name": "426 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 426000000, + "samp_rate": 2400000, + "start_freq": 426000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "24d2467b-6740-42b5-8d3f-8f389fc0860b": { + "name": "428 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 428000000, + "samp_rate": 2400000, + "start_freq": 428000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "debbc3ab-081d-41e7-80fe-7d564838154e": { + "name": "430 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 430000000, + "samp_rate": 2400000, + "start_freq": 430000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "649233e0-fc85-415d-b88e-94750f49ca4b": { + "name": "432 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 432000000, + "samp_rate": 2400000, + "start_freq": 432000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "bed3b482-fd3b-45ee-b924-200aa4223ace": { + "name": "434 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 434000000, + "samp_rate": 2400000, + "start_freq": 434000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "58dfac9e-6030-4bb3-ba28-465285baa25e": { + "name": "436 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 436000000, + "samp_rate": 2400000, + "start_freq": 436000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "4c293b84-cd43-495f-95a5-1fcabfe4e4c7": { + "name": "438 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 438000000, + "samp_rate": 2400000, + "start_freq": 438000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "0e763161-a0e8-411a-abe6-c1af13045f27": { + "name": "440 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 440000000, + "samp_rate": 2400000, + "start_freq": 440000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "6dda77d3-e859-41b7-9b0b-22c2dee47472": { + "name": "442 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 442000000, + "samp_rate": 2400000, + "start_freq": 442000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "285813ef-aa6d-433f-a316-074f47e02073": { + "name": "444 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 444000000, + "samp_rate": 2400000, + "start_freq": 444000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "e0842b63-6857-4554-874b-fad99e4db03a": { + "name": "446 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 446000000, + "samp_rate": 2400000, + "start_freq": 446000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "c7b21c80-cfef-42e8-a6fe-c5eea4556c7e": { + "name": "448 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 448000000, + "samp_rate": 2400000, + "start_freq": 448000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "d98b4d4a-8247-4a99-9fc7-89780e5e1fef": { + "name": "450 MHz 70cm Ham Band", + "rf_gain": 42.0, + "center_freq": 450000000, + "samp_rate": 2400000, + "start_freq": 450000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "a09a546f-c56f-41b5-ae34-c5511afbcef5": { + "name": "460 MHz", + "rf_gain": 42.0, + "center_freq": 460000000, + "samp_rate": 2400000, + "start_freq": 460000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "232b2ae6-88dd-4e58-b489-37f310e5e204": { + "name": "462 MHz FRS/GMRS", + "rf_gain": 42.0, + "center_freq": 462000000, + "samp_rate": 2400000, + "start_freq": 462000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "41db9b38-87d7-40a0-9f90-1f0c77c054d9": { + "name": "464 MHz FRS/GMRS", + "rf_gain": 42.0, + "center_freq": 464000000, + "samp_rate": 2400000, + "start_freq": 464000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "e9bb7781-eb9b-4314-b399-2d96c52716f0": { + "name": "466 MHz FRS/GMRS", + "rf_gain": 42.0, + "center_freq": 466000000, + "samp_rate": 2400000, + "start_freq": 466000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "5d9e07e8-eb42-4832-82c9-016f05d89027": { + "name": "468 MHz FRS/GMRS", + "rf_gain": 42.0, + "center_freq": 468000000, + "samp_rate": 2400000, + "start_freq": 468000000, + "start_mod": "nfm", + "direct_sampling": 0 + }, + "20m": { + "name": "20m", + "center_freq": 14150000, + "samp_rate": 384000, + "start_freq": 14070000, + "start_mod": "usb", + "tuning_step": "500", + "rf_gain": 42.0, + "direct_sampling": 1 + }, + "30m": { + "name": "30m", + "center_freq": 10125000, + "samp_rate": 192000, + "start_freq": 10142000, + "start_mod": "usb", + "tuning_step": "500", + "rf_gain": 42.0, + "direct_sampling": 1 + }, + "40m": { + "name": "40m", + "center_freq": 7100000, + "samp_rate": 256000, + "start_freq": 7070000, + "start_mod": "lsb", + "tuning_step": "500", + "rf_gain": 42.0, + "direct_sampling": 1 + }, + "80m": { + "name": "80m", + "center_freq": 3650000, + "samp_rate": 384000, + "start_freq": 3570000, + "start_mod": "lsb", + "tuning_step": "500", + "rf_gain": 42.0, + "direct_sampling": 1 + }, + "49m": { + "name": "49m Broadcast", + "center_freq": 6050000, + "samp_rate": 384000, + "start_freq": 6070000, + "start_mod": "am", + "tuning_step": "1000", + "rf_gain": 42.0, + "direct_sampling": 1 + }, + "c1982ce1-7504-455e-908c-dc097fa031a8": { + "name": "1090 MHz ADS-B Band", + "rf_gain": 42.0, + "center_freq": 1090000000, + "samp_rate": 2400000, + "start_freq": 1090000000, + "start_mod": "adsb", + "tuning_step": 1, + "direct_sampling": 0 + }, + "cb7f2f8e-e317-4a5e-9504-826dd3781791": { + "name": "978 MHz ADS-B Band", + "rf_gain": 42.0, + "center_freq": 978000000, + "samp_rate": 2400000, + "start_freq": 978000000, + "start_mod": "adsb", + "tuning_step": 1 + } + } + }, + "airspy": { + "name": "Airspy HF+", + "type": "airspyhf", + "rf_gain": "auto", + "profiles": { + "20m": { + "name": "20m", + "center_freq": 14150000, + "samp_rate": 384000, + "start_freq": 14070000, + "start_mod": "usb", + "tuning_step": "500" + }, + "30m": { + "name": "30m", + "center_freq": 10125000, + "samp_rate": 192000, + "start_freq": 10142000, + "start_mod": "usb", + "tuning_step": "500" + }, + "40m": { + "name": "40m", + "center_freq": 7100000, + "samp_rate": 256000, + "start_freq": 7070000, + "start_mod": "lsb", + "tuning_step": "500" + }, + "80m": { + "name": "80m", + "center_freq": 3650000, + "samp_rate": 384000, + "start_freq": 3570000, + "start_mod": "lsb", + "tuning_step": "500" + }, + "49m": { + "name": "49m Broadcast", + "center_freq": 6050000, + "samp_rate": 384000, + "start_freq": 6070000, + "start_mod": "am", + "tuning_step": "1000" + } + } + }, + "sdrplay": { + "name": "SDRPlay device", + "type": "sdrplay", + "antenna": "Antenna A", + "rf_gain": "auto", + "profiles": { + "20m": { + "name": "20m", + "center_freq": 14150000, + "samp_rate": 500000, + "start_freq": 14070000, + "start_mod": "usb", + "tuning_step": "500" + }, + "30m": { + "name": "30m", + "center_freq": 10125000, + "samp_rate": 250000, + "start_freq": 10142000, + "start_mod": "usb", + "tuning_step": "500" + }, + "40m": { + "name": "40m", + "center_freq": 7100000, + "samp_rate": 500000, + "start_freq": 7070000, + "start_mod": "lsb", + "tuning_step": "500" + }, + "80m": { + "name": "80m", + "center_freq": 3650000, + "samp_rate": 500000, + "start_freq": 3570000, + "start_mod": "lsb", + "tuning_step": "500" + }, + "49m": { + "name": "49m Broadcast", + "center_freq": 6000000, + "samp_rate": 500000, + "start_freq": 6070000, + "start_mod": "am", + "tuning_step": "1000" + } + } + } + }, + "receiver_name": "ARISS Radio Pi", + "receiver_location": "Budapest, Hungary", + "receiver_asl": 200, + "receiver_admin": "example@example.com", + "receiver_gps": { + "lat": 39.95233, + "lon": -75.16379 + }, + "photo_title": "Panorama of Budapest from Sch\u00f6nherz Zolt\u00e1n Dormitory", + "photo_desc": "", + "max_clients": 20, + "keep_files": 20, + "session_timeout": 0, + "usage_policy_url": "policy", + "allow_chat": true, + "allow_audio_recording": true, + "allow_center_freq_changes": false, + "magic_key": "memagic", + "receiver_keys": [], + "waterfall_scheme": "GoogleTurboWaterfall", + "fft_fps": 9, + "fft_size": 4096, + "fft_voverlap_factor": 0.3, + "waterfall_levels": { + "min": -88.0, + "max": -20.0 + }, + "waterfall_auto_levels": { + "min": 3.0, + "max": 10.0 + }, + "waterfall_auto_level_default_mode": false, + "waterfall_auto_min_range": 50, + "audio_compression": "adpcm", + "fft_compression": "adpcm", + "tuning_precision": 2, + "eibi_bookmarks_range": 0, + "repeater_range": 0, + "map_type": "google", + "google_maps_api_key": "", + "openweathermap_api_key": "", + "map_position_retention_time": 7200, + "map_ignore_indirect_reports": false, + "map_prefer_recent_reports": true, + "callsign_url": "https://www.qrzcq.com/call/{}", + "vessel_url": "https://www.vesselfinder.com/vessels/details/{}", + "flight_url": "https://flightaware.com/live/flight/{}", + "modes_url": "https://flightaware.com/live/modes/{}/redirect" +} + From be3af7add803873995882d436051f0d6810a5d39 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 04:01:51 -0500 Subject: [PATCH 044/178] Update bookmarks.json --- groundstation/bookmarks.json | 1 + 1 file changed, 1 insertion(+) diff --git a/groundstation/bookmarks.json b/groundstation/bookmarks.json index 09f1be52..b3c55a2c 100644 --- a/groundstation/bookmarks.json +++ b/groundstation/bookmarks.json @@ -54,3 +54,4 @@ "frequency": 437800000, "modulation": "nfm" } +] From 0185e522fb0ca2ce634b4b33ea7c829a707b4662 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 04:19:01 -0500 Subject: [PATCH 045/178] Update loc.sh add venv --- groundstation/loc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/loc.sh b/groundstation/loc.sh index 5a1b6881..06096323 100755 --- a/groundstation/loc.sh +++ b/groundstation/loc.sh @@ -5,7 +5,7 @@ sudo killall -9 java &>/dev/null sudo killall -9 gpredict &>/dev/null -python3 /home/pi/CubeSatSim/groundstation/loc-foxtelem.py +/home/pi/venv/bin/python3 /home/pi/CubeSatSim/groundstation/loc-foxtelem.py #/usr/bin/gpredict From 8925b52b6aa0a7735c0f1bfaf89cafe645f93c93 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 04:58:55 -0500 Subject: [PATCH 046/178] Update sdr.sh get rid of Restore pages popup --- groundstation/sdr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/sdr.sh b/groundstation/sdr.sh index 1ad01092..8dfd5e64 100755 --- a/groundstation/sdr.sh +++ b/groundstation/sdr.sh @@ -50,7 +50,7 @@ sudo systemctl restart openwebrx &>/dev/null sleep 10 -setsid chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars http://localhost:8073 &>/dev/null & +setsid chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars --app=http://localhost:8073 &>/dev/null & sleep 10 From ca2a06d119860982af6f2e3659aaca22d2475e9b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 06:59:49 -0500 Subject: [PATCH 047/178] Update sstv_decode_prompt.sh changed play device --- groundstation/sstv_decode_prompt.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 6b6e5dbc..1a065791 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -132,7 +132,8 @@ set -- $value #rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 #rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 +#rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | aplay -D plughw:${2:0:1},0 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From 46a2dfd578ea2e5a8790c737c47ce7acf83a0135 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 10:32:38 -0500 Subject: [PATCH 048/178] Update packet.sh remove tee --- groundstation/packet.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index 87620bdc..28a9e2de 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -187,5 +187,6 @@ set -- $value #rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From 6826e558b34e08e88863ea50a061330352882b76 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 10:33:04 -0500 Subject: [PATCH 049/178] Update direwolf.conf change speaker to default --- groundstation/direwolf/direwolf.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf/direwolf.conf b/groundstation/direwolf/direwolf.conf index ce8b6823..d70427b9 100644 --- a/groundstation/direwolf/direwolf.conf +++ b/groundstation/direwolf/direwolf.conf @@ -1 +1 @@ -ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=b1,DEV=0 +ADEVICE plughw:CARD=Loopback,DEV=1 default From 869107baf273982335de9874f743496bd904b8f1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 10:37:20 -0500 Subject: [PATCH 050/178] Update direwolf.conf change speaker to loopback --- groundstation/direwolf/direwolf.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf/direwolf.conf b/groundstation/direwolf/direwolf.conf index d70427b9..701d80b4 100644 --- a/groundstation/direwolf/direwolf.conf +++ b/groundstation/direwolf/direwolf.conf @@ -1 +1 @@ -ADEVICE plughw:CARD=Loopback,DEV=1 default +ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=0 From 17437ecc58c49c5e88b774eb39b5cc9fea155120 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 13:42:52 -0500 Subject: [PATCH 051/178] Update packet.sh changed subchannel --- groundstation/packet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index 28a9e2de..87ff253b 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -186,7 +186,7 @@ echo "$value" > /dev/null set -- $value #rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,1 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From b3ef984e542de0dc971e7e9f2a15e2556334d7b3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 14:01:32 -0500 Subject: [PATCH 052/178] Update aprs.desktop --- groundstation/aprs.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/aprs.desktop b/groundstation/aprs.desktop index b9ee2512..5f360f7b 100644 --- a/groundstation/aprs.desktop +++ b/groundstation/aprs.desktop @@ -2,7 +2,7 @@ Name=APRS Decode using Direwolf GenericName=Decodes APRS using rtl_fm and Direwolf Comment=APRS signals -Exec=/home/pi/CubeSatSim/groundstation/aprs.sh +Exec=/home/pi/CubeSatSim/groundstation/packet.sh Icon=/home/pi/Icons/aprs.png Terminal=true Type=Application From 8ccc7040bcb9b858122dac21fb820efcbe574524 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 14:03:49 -0500 Subject: [PATCH 053/178] Update sstv_decode_prompt.sh --- groundstation/sstv_decode_prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 1a065791..9845c3bf 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -133,7 +133,7 @@ set -- $value #rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 #rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | aplay -D plughw:${2:0:1},0 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | aplay -D plughw:${2:0:1},0,1 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From 961c80d8ecda8482300a66f5b53fc54d8f82cf9d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 14:13:20 -0500 Subject: [PATCH 054/178] Update sstv_decode_prompt.sh added also stop/start --- groundstation/sstv_decode_prompt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 9845c3bf..3c343732 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -30,6 +30,9 @@ sudo killall -9 CubicSDR &>/dev/null sudo killall -9 zenity &>/dev/null +sudo /etc/init.d/alsa-utils stop +sudo /etc/init.d/alsa-utils start + #echo "s" >> .mode frequency=$(zenity --list 2>/dev/null --width=410 --height=220 --title="SSTV Decoding using QSSTV" --text="Choose the frequency for SSTV decoding:" --column="kHz" --column="Use" 145800 "ISS" 434900 "CubeSatSim" Other "Choose another frequency" SSTV "Test SSTV decoding with WAV file") From 9b5fb214283407e0aa2702499d4cc73342576bc0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 14:16:15 -0500 Subject: [PATCH 055/178] Update sstv_decode_prompt.sh --- groundstation/sstv_decode_prompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 3c343732..ab8c9f1f 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -135,8 +135,8 @@ set -- $value #rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 #rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 -#rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | aplay -D plughw:${2:0:1},0,1 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 +#rtl_fm -M fm -f $frequency -s 48k | aplay -D plughw:${2:0:1},0,1 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From 84e5a7c2d695f6b279db42e3c7e779d202194eb6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 3 Jan 2025 14:18:58 -0500 Subject: [PATCH 056/178] Update packet.sh added alsa stop/start --- groundstation/packet.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index 87ff253b..3f68fe6e 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -26,6 +26,9 @@ sudo killall -9 CubicSDR &>/dev/null sudo killall -9 zenity &>/dev/null +sudo /etc/init.d/alsa-utils stop +sudo /etc/init.d/alsa-utils start + echo frequency=$(zenity --list 2>/dev/null --width=410 --height=360 --title="Packet Decoding with Direwolf" --text="Choose the frequency for packet decoding" --column="kHz" --column="Application" 144390 "APRS US 2m" 434900 "CubeSatSim" 144800 "APRS European 2m" 145175 "APRS Australian 2m" Other "Choose another frequency" 145825 "APRS on ISS" 437100 "Serenity CubeSat 4800 bps" Serenity "Test Serenity CubeSat decoding with WAV file" APRS "Test APRS decoding with CubeSatSim WAV file") From 757430adfc93416fd8fa7672f3601f59edd25ee0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 03:32:19 -0500 Subject: [PATCH 057/178] Update webSDR.desktop --- groundstation/webSDR.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/webSDR.desktop b/groundstation/webSDR.desktop index 277bbae2..f660c2ea 100644 --- a/groundstation/webSDR.desktop +++ b/groundstation/webSDR.desktop @@ -3,7 +3,7 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/sdr.sh Name=Web SDR Comment=openwebrx for Web SDR -Icon=/home/pi/Downloads/openwebrx.png +Icon=/home/pi/Iconss/openwebrx.png Path=/home/pi Terminal=true Categories=HamRadio From 389870d5b723ce97ff9b54f3484af2ff500bb1b8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 03:34:00 -0500 Subject: [PATCH 058/178] Update chromium.desktop changed to myurl --- groundstation/autostart/chromium.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/autostart/chromium.desktop b/groundstation/autostart/chromium.desktop index fc57834e..5fd6bef0 100644 --- a/groundstation/autostart/chromium.desktop +++ b/groundstation/autostart/chromium.desktop @@ -2,4 +2,4 @@ [Desktop Entry] Type=Application Name=Chromium with WebSDR -Exec=chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars http://127.0.0.1:8073 +Exec=chromium-browser --check-for-update-interval=1 --simulate-critical-update --noerrdialogs --disable-infobars --app=http://localhost:8073 From 9c5dc8bd2f608d4933c84344798d76d09b9336df Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 07:53:17 -0500 Subject: [PATCH 059/178] Update and rename rtl_tcp.service to rtltcp.service from niclashoyer/rtltcp --- groundstation/rtl_tcp.service | 14 -------------- groundstation/rtltcp.service | 10 ++++++++++ 2 files changed, 10 insertions(+), 14 deletions(-) delete mode 100644 groundstation/rtl_tcp.service create mode 100644 groundstation/rtltcp.service diff --git a/groundstation/rtl_tcp.service b/groundstation/rtl_tcp.service deleted file mode 100644 index 403425a3..00000000 --- a/groundstation/rtl_tcp.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=RTL-TCP - -[Service] -TimeoutStopSec = 5 -ExecStart=/bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I)' -WorkingDirectory=/home/pi -StandardOutput=inherit -StandardError=inherit -Restart=always -User=root - -[Install] -WantedBy=default.target diff --git a/groundstation/rtltcp.service b/groundstation/rtltcp.service new file mode 100644 index 00000000..f9d2405f --- /dev/null +++ b/groundstation/rtltcp.service @@ -0,0 +1,10 @@ +[Unit] +Description=RTL TCP Service +After=network.target +Requires=rtltcp.socket + +[Service] +Type=notify +User=pi +ExecStart=/usr/local/bin/rtltcp +TimeoutStopSec=5 From a259419e2d5112cfad4b4146ec46d09247968bd8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 07:54:57 -0500 Subject: [PATCH 060/178] Create rtltcp.socket from niclashoyer/rtltcp --- groundstation/rtltcp.socket | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 groundstation/rtltcp.socket diff --git a/groundstation/rtltcp.socket b/groundstation/rtltcp.socket new file mode 100644 index 00000000..d8a67a14 --- /dev/null +++ b/groundstation/rtltcp.socket @@ -0,0 +1,9 @@ +[Unit] +Description=RTL TCP Socket +PartOf=rtltcp.service + +[Socket] +ListenStream=[::]:1234 + +[Install] +WantedBy=sockets.target From 03be3471e06a531e8de423e3105854bc160e347f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:15:57 -0500 Subject: [PATCH 061/178] Update and rename rtltcp.service to rtl_tcp.service revert --- groundstation/rtl_tcp.service | 14 ++++++++++++++ groundstation/rtltcp.service | 10 ---------- 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 groundstation/rtl_tcp.service delete mode 100644 groundstation/rtltcp.service diff --git a/groundstation/rtl_tcp.service b/groundstation/rtl_tcp.service new file mode 100644 index 00000000..403425a3 --- /dev/null +++ b/groundstation/rtl_tcp.service @@ -0,0 +1,14 @@ +[Unit] +Description=RTL-TCP + +[Service] +TimeoutStopSec = 5 +ExecStart=/bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I)' +WorkingDirectory=/home/pi +StandardOutput=inherit +StandardError=inherit +Restart=always +User=root + +[Install] +WantedBy=default.target diff --git a/groundstation/rtltcp.service b/groundstation/rtltcp.service deleted file mode 100644 index f9d2405f..00000000 --- a/groundstation/rtltcp.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=RTL TCP Service -After=network.target -Requires=rtltcp.socket - -[Service] -Type=notify -User=pi -ExecStart=/usr/local/bin/rtltcp -TimeoutStopSec=5 From 3aeed04e4144360a94ac74d28f95a09606a7490f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:17:46 -0500 Subject: [PATCH 062/178] Update rtl_tcp.service removed path --- groundstation/rtl_tcp.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/rtl_tcp.service b/groundstation/rtl_tcp.service index 403425a3..e2c3b3b7 100644 --- a/groundstation/rtl_tcp.service +++ b/groundstation/rtl_tcp.service @@ -3,7 +3,7 @@ Description=RTL-TCP [Service] TimeoutStopSec = 5 -ExecStart=/bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I)' +ExecStart=/bin/sh -c 'rtl_tcp -a $(hostname -I)' WorkingDirectory=/home/pi StandardOutput=inherit StandardError=inherit From b43aa9da609786a2b5f3b6cd8f0d914483ea885a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:33:39 -0500 Subject: [PATCH 063/178] add sdrpp script --- groundstation/sdrpp.sh | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 groundstation/sdrpp.sh diff --git a/groundstation/sdrpp.sh b/groundstation/sdrpp.sh new file mode 100755 index 00000000..73f520e7 --- /dev/null +++ b/groundstation/sdrpp.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# script to run sdrpp + +echo "Script to run SDRpp for ARISS Radio Pi" + +echo + +sudo systemctl stop openwebrx + +sudo killall -9 java &>/dev/null + +sudo killall -9 sdrpp &>/dev/null + +sudo systemctl stop rtl_tcp + +pkill -o chromium &>/dev/null + +sudo killall -9 rtl_fm &>/dev/null + +sudo killall -9 direwolf &>/dev/null + +sudo killall -9 aplay &>/dev/null + +sudo killall -9 qsstv &>/dev/null + +sudo killall -9 rtl_tcp &>/dev/null + +sudo killall -9 CubicSDR &>/dev/null + +#sudo kill `ps -aux | grep cubicsdr-packet | grep -v grep | awk '{ print $2 }'` &>/dev/null && killall inotifywait &>/dev/null + +#sudo kill `ps -aux | grep packet | grep -v grep | awk '{ print $2 }'` &>/dev/null && killall inotifywait &>/dev/null + +#sudo kill `ps -aux | grep sstv_decode_prompt| grep -v grep | awk '{ print $2 }'` &>/dev/null && killall inotifywait &>/dev/null + +sudo killall -9 zenity &>/dev/null + +sleep 5 + +setsid sdrpp + +sleep 10 + +#$SHELL From 15ebacf05b528ef293d534041af28573067acc15 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:40:47 -0500 Subject: [PATCH 064/178] Update rtl-tcp.sh use systemd --- groundstation/rtl-tcp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index bcf8e154..47853aaf 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -50,7 +50,8 @@ sudo killall -9 aplay &>/dev/null sudo killall -9 zenity &>/dev/null -sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' +#sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' +sudo systemctl start rtl_tcp &>/dev/null sleep 5 From a991cf979de7009f40142220f2937ad4b47286d4 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:41:48 -0500 Subject: [PATCH 065/178] Update rtl_tcp.service changed to IP address not host name --- groundstation/rtl_tcp.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/rtl_tcp.service b/groundstation/rtl_tcp.service index e2c3b3b7..ff899e9b 100644 --- a/groundstation/rtl_tcp.service +++ b/groundstation/rtl_tcp.service @@ -3,7 +3,7 @@ Description=RTL-TCP [Service] TimeoutStopSec = 5 -ExecStart=/bin/sh -c 'rtl_tcp -a $(hostname -I)' +ExecStart=/bin/sh -c 'rtl_tcp -a $(hostname -I|cut -f1 -d " ")' WorkingDirectory=/home/pi StandardOutput=inherit StandardError=inherit From f224a0ede08f5e878715632f498bd56e8ed33ee7 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:44:07 -0500 Subject: [PATCH 066/178] Update rtl-tcp.sh add journalctl messages --- groundstation/rtl-tcp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index 47853aaf..4a18c89f 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -49,10 +49,11 @@ sudo killall -9 aplay &>/dev/null sudo killall -9 zenity &>/dev/null - #sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' sudo systemctl start rtl_tcp &>/dev/null +sudo journalctl -af -u rtl_tcp + sleep 5 #$SHELL From 84d090747cbab6f223d1b0c5922fb07b0f60be71 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:54:18 -0500 Subject: [PATCH 067/178] Update rtl-tcp.sh add while to close window --- groundstation/rtl-tcp.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index 4a18c89f..0378909a 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -52,8 +52,9 @@ sudo killall -9 zenity &>/dev/null #sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' sudo systemctl start rtl_tcp &>/dev/null -sudo journalctl -af -u rtl_tcp - -sleep 5 +while [[ sudo systemctl status rtl_tcp | grep "Active: active (running)" ]] +do + sleep 5 +done #$SHELL From 0df2108bda38e847a7ca1aabdbd15eca883b4518 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:56:44 -0500 Subject: [PATCH 068/178] Update rtl-tcp.sh fixed typo --- groundstation/rtl-tcp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index 0378909a..185d8b6a 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -52,7 +52,7 @@ sudo killall -9 zenity &>/dev/null #sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' sudo systemctl start rtl_tcp &>/dev/null -while [[ sudo systemctl status rtl_tcp | grep "Active: active (running)" ]] +while [[ $(sudo systemctl status rtl_tcp | grep "Active: active (running)") ]] do sleep 5 done From 4de35d79776cb895866472fa00c9052c1ed23c91 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:58:14 -0500 Subject: [PATCH 069/178] Update rtl-tcp.sh add back in journalctl log --- groundstation/rtl-tcp.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index 185d8b6a..caf5ff2c 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -52,6 +52,8 @@ sudo killall -9 zenity &>/dev/null #sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' sudo systemctl start rtl_tcp &>/dev/null +sudo journalctl -af -u rtl_tcp & + while [[ $(sudo systemctl status rtl_tcp | grep "Active: active (running)") ]] do sleep 5 From 861fe223d8069cd16f1fe1f03c89bd2566c30a30 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 09:01:02 -0500 Subject: [PATCH 070/178] Update rtl-tcp.sh add sleep at end --- groundstation/rtl-tcp.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index caf5ff2c..e16c6e9a 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -59,4 +59,6 @@ do sleep 5 done +sleep 5 + #$SHELL From 100560015959ba3edf62acd842265cda40940477 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:00:17 -0500 Subject: [PATCH 071/178] Update fox-profile.sh --- groundstation/fox-profile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/fox-profile.sh b/groundstation/fox-profile.sh index d51e7ccb..1610e293 100755 --- a/groundstation/fox-profile.sh +++ b/groundstation/fox-profile.sh @@ -1,7 +1,7 @@ #!/bin/bash # script to change FoxTelem default profile -echo "Script to change your default FoxTelem profile for FIAB v3" +echo "Script to change your default FoxTelem profile for FIAB v4" echo From c0653b5b1d03c7e6baf6cad88c818ac6d994dd1d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:00:47 -0500 Subject: [PATCH 072/178] Update fox-startup.sh --- groundstation/fox-startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/fox-startup.sh b/groundstation/fox-startup.sh index cb035116..cf6a6282 100755 --- a/groundstation/fox-startup.sh +++ b/groundstation/fox-startup.sh @@ -1,7 +1,7 @@ #!/bin/bash # script to run FoxTelem -echo "Startup script to run FoxTelem for FIAB v3" +echo "Startup script to run FoxTelem for FIAB v4" echo From d8c40c6b57cb02a29e8f9f0f820cf033e93bfc60 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:01:13 -0500 Subject: [PATCH 073/178] Update fox-run.sh --- groundstation/fox-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/fox-run.sh b/groundstation/fox-run.sh index c680b47a..d8fe4fe5 100755 --- a/groundstation/fox-run.sh +++ b/groundstation/fox-run.sh @@ -1,7 +1,7 @@ #!/bin/bash # script to run FoxTelem -echo "Startup script to run FoxTelem for FIAB v3" +echo "Startup script to run FoxTelem for FIAB v4" echo From 5f09c5a73ca33a714599fcf5b56cff4f567d64d5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:01:44 -0500 Subject: [PATCH 074/178] Update fox-download.desktop --- groundstation/fox-download.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/fox-download.desktop b/groundstation/fox-download.desktop index d58827d0..4e4bcf40 100644 --- a/groundstation/fox-download.desktop +++ b/groundstation/fox-download.desktop @@ -2,7 +2,7 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/fox-download.sh Name=FoxTelem Download -Comment=FIAB-v3 +Comment=FIAB-v4 Icon=/home/pi/Icons/FoxTelemDownload.png Path=/home/pi Terminal=true From 577d0f93edc99d753a6970d5430ceea07e1461cc Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:02:19 -0500 Subject: [PATCH 075/178] Update foxtelem.desktop --- groundstation/foxtelem.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/foxtelem.desktop b/groundstation/foxtelem.desktop index 9dc42ab9..87fe00a1 100644 --- a/groundstation/foxtelem.desktop +++ b/groundstation/foxtelem.desktop @@ -2,7 +2,7 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/fox-run.sh Name=FoxTelem -Comment=FIAB-v3 +Comment=FIAB-v4 Icon=/home/pi/Downloads/foxtelem.png Path=/home/pi Terminal=true From b3eeaaa8687061f7bae94f0ed3f9ec145cd113a5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:10:36 -0500 Subject: [PATCH 076/178] Update loc.sh activate venv --- groundstation/loc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/groundstation/loc.sh b/groundstation/loc.sh index 06096323..8aa8cd9f 100755 --- a/groundstation/loc.sh +++ b/groundstation/loc.sh @@ -5,7 +5,10 @@ sudo killall -9 java &>/dev/null sudo killall -9 gpredict &>/dev/null -/home/pi/venv/bin/python3 /home/pi/CubeSatSim/groundstation/loc-foxtelem.py +source /home/pi/venv/bin/activate + + +python3 /home/pi/CubeSatSim/groundstation/loc-foxtelem.py #/usr/bin/gpredict From 7db82fff14ddd1ef35c66a1c06321662cec7d3a1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:33:21 -0500 Subject: [PATCH 077/178] Update fox-run.sh add venv activate --- groundstation/fox-run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/fox-run.sh b/groundstation/fox-run.sh index d8fe4fe5..aa21578b 100755 --- a/groundstation/fox-run.sh +++ b/groundstation/fox-run.sh @@ -5,6 +5,8 @@ echo "Startup script to run FoxTelem for FIAB v4" echo +source /home/pi/venv/bin/activate + sudo killall -9 FoxTelem &>/dev/null sudo killall -9 zenity &>/dev/null From a8692efe42719658ecc7df9ebeedb0ca2af92eb8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:40:03 -0500 Subject: [PATCH 078/178] Update fox-run.sh removed fox --- groundstation/fox-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/fox-run.sh b/groundstation/fox-run.sh index aa21578b..3f1ec4c5 100755 --- a/groundstation/fox-run.sh +++ b/groundstation/fox-run.sh @@ -14,7 +14,7 @@ sudo killall -9 zenity &>/dev/null FILE=/home/pi/FoxTelemetryData/.foxprofile if [ ! -f "$FILE" ]; then - profile=$(zenity --text="Choose your default FoxTelem profile:" --list 2>/dev/null --width=410 --height=120 --title="Set FoxTelem Profile" --column="Profile" --column="Receive and decode telemetry from" Fox-in-a-Box "AMSAT Fox satellites" "CubeSatSim" "AMSAT CubeSat Simulator") + profile=$(zenity --text="Choose your default FoxTelem profile:" --list 2>/dev/null --width=410 --height=120 --title="Set FoxTelem Profile" --column="Profile" --column="Receive and decode telemetry from" Fox-in-a-Box "AMSAT Satellites" "CubeSatSim" "AMSAT CubeSat Simulator") echo $profile From ca6b036ea897b3cb2d0a49604ab2f54bbf8c4952 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 05:40:46 -0500 Subject: [PATCH 079/178] Update sstv_decode_prompt.sh mode 4 --- groundstation/sstv_decode_prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index ab8c9f1f..fbc55895 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -70,7 +70,7 @@ elif [ "$choice" = "2" ] || [ "$frequency" = "434900" ]; then frequency=434900000 echo "Frequency is" $frequency echo -echo "If your CubeSatSim is transmitting in SSTV mode (mode 5) you should get images." +echo "If your CubeSatSim is transmitting in SSTV mode (mode 4) you should get images." echo "Note: if you see and hear an SSTV signal but don't get any images, the CubeSatSim signal might have a frequency offset. Try rebooting the CubeSatSim to fix." elif [ "$choice" = "3" ] || [ "$frequency" = "Other" ]; then From 69c2f9457ad283e6d147378c106a3471e8cad6c5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 06:18:07 -0500 Subject: [PATCH 080/178] Update packet.sh add kill sdrpp --- groundstation/packet.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index 3f68fe6e..4b65bdef 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -12,6 +12,8 @@ pkill -o chromium &>/dev/null sudo killall -9 rtl_fm &>/dev/null +sudo killall -9 sdrpp &>/dev/null + sudo killall -9 direwolf &>/dev/null sudo killall -9 aplay &>/dev/null From 993848e641c7b85eb8db4bbc94f8caf2b508a7fa Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jan 2025 06:20:01 -0500 Subject: [PATCH 081/178] Update packet.sh dire wolf with colors --- groundstation/packet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index 4b65bdef..f669afda 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -180,7 +180,7 @@ else echo -e "Auto decoding APRS packets on $frequency Hz" - direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf.conf -t 0 & + direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf.conf & # -t 0 & fi From 65b69f64fdbf74c3697487eb5527d39dd6f408ba Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 6 Jan 2025 14:21:29 -0500 Subject: [PATCH 082/178] Update pacsat.sh add missing direwolf --- groundstation/pacsat.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index b0b1e952..d70aa07f 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -56,6 +56,7 @@ sudo systemctl restart pacsatsim #echo +direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & echo echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback." From 81be0e9b3c70ea24809d346eb1bca2c7c8623dc3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 6 Jan 2025 14:40:34 -0500 Subject: [PATCH 083/178] Update direwolf-pacsat-loopback.conf to 0 1 --- groundstation/direwolf/direwolf-pacsat-loopback.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf/direwolf-pacsat-loopback.conf b/groundstation/direwolf/direwolf-pacsat-loopback.conf index 74a7fb1e..c815b866 100644 --- a/groundstation/direwolf/direwolf-pacsat-loopback.conf +++ b/groundstation/direwolf/direwolf-pacsat-loopback.conf @@ -1,5 +1,5 @@ MYCALL AMSAT -ADEVICE plughw:CARD=Loopback,DEV=0 plughw:CARD=Loopback,DEV=0 +ADEVICE plughw:CARD=Loopback,DEV=0 plughw:CARD=Loopback,DEV=1 #PTT GPIO 20 CHANNEL 0 MODEM 1200 From c26743c59f3844d74d4c1cbfb1989ee012bf9c10 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 6 Jan 2025 14:45:39 -0500 Subject: [PATCH 084/178] Update direwolf-pacsat-loopback.conf 0 0 --- groundstation/direwolf/direwolf-pacsat-loopback.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf/direwolf-pacsat-loopback.conf b/groundstation/direwolf/direwolf-pacsat-loopback.conf index c815b866..74a7fb1e 100644 --- a/groundstation/direwolf/direwolf-pacsat-loopback.conf +++ b/groundstation/direwolf/direwolf-pacsat-loopback.conf @@ -1,5 +1,5 @@ MYCALL AMSAT -ADEVICE plughw:CARD=Loopback,DEV=0 plughw:CARD=Loopback,DEV=1 +ADEVICE plughw:CARD=Loopback,DEV=0 plughw:CARD=Loopback,DEV=0 #PTT GPIO 20 CHANNEL 0 MODEM 1200 From 0556866021d4cf2055e181713279e35303a044a7 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 6 Jan 2025 14:46:17 -0500 Subject: [PATCH 085/178] Update direwolf-pacsatsim-jp14.conf 1 1 --- direwolf/direwolf-pacsatsim-jp14.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim-jp14.conf b/direwolf/direwolf-pacsatsim-jp14.conf index 803920ff..64c7bfe5 100644 --- a/direwolf/direwolf-pacsatsim-jp14.conf +++ b/direwolf/direwolf-pacsatsim-jp14.conf @@ -1,4 +1,4 @@ -ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=0 +ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=1 #PTT GPIO 20 MYCALL AMSAT CHANNEL 0 From ec1e6fafabe11df51b5ea1e817ce2b103563be71 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 6 Jan 2025 14:57:13 -0500 Subject: [PATCH 086/178] Update pacsatsim.sh don't kill direwolf --- pacsatsim.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 6588240e..94a07850 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -14,15 +14,15 @@ sudo modprobe snd-aloop #sudo systemctl stop openwebrx -sudo systemctl stop rtl_tcp &>/dev/null +#sudo systemctl stop rtl_tcp &>/dev/null #pkill -o chromium &>/dev/null -sudo killall -9 rtl_fm &>/dev/null +#sudo killall -9 rtl_fm &>/dev/null -sudo killall -9 direwolf &>/dev/null +#sudo killall -9 direwolf &>/dev/null -sudo killall -9 aplay &>/dev/null +#udo killall -9 aplay &>/dev/null #sudo killall -9 qsstv &>/dev/null From d37400dd318b909df295d29ec2a543fdcff50d1b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 02:35:06 -0500 Subject: [PATCH 087/178] Update pacsatsim.sh direwolf loopback --- pacsatsim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 94a07850..2bc9bcc6 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -185,7 +185,7 @@ else echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" - direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-jp14.conf -t 0 & + direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & fi From ed93dbc59aaeb006135744f08a97305a38e1cb4a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 02:35:57 -0500 Subject: [PATCH 088/178] Create direwolf-pacsatsim-loopback.conf --- direwolf/direwolf-pacsatsim-loopback.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 direwolf/direwolf-pacsatsim-loopback.conf diff --git a/direwolf/direwolf-pacsatsim-loopback.conf b/direwolf/direwolf-pacsatsim-loopback.conf new file mode 100644 index 00000000..64c7bfe5 --- /dev/null +++ b/direwolf/direwolf-pacsatsim-loopback.conf @@ -0,0 +1,8 @@ +ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=1 +#PTT GPIO 20 +MYCALL AMSAT +CHANNEL 0 +MODEM 1200 +FULLDUP OFF +TXDELAY 75 +#FIX_BITS 1 AX25 From 8007aa4530cd0d6021862502f3e198b0dd522699 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 02:39:00 -0500 Subject: [PATCH 089/178] Update pacsatsim.sh comment on direwolf --- pacsatsim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 2bc9bcc6..33c1a8cd 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -185,7 +185,7 @@ else echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" - direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & +# direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & fi From 47a6a89fb9e8b2833d27422ea09d112d1939dd48 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 02:40:23 -0500 Subject: [PATCH 090/178] Update pacsat.sh comment out direwolf --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index d70aa07f..5564d8cd 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -56,7 +56,7 @@ sudo systemctl restart pacsatsim #echo -direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & +#direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & echo echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback." From fa11e21422739745096d432287656030db20c1e4 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 02:43:37 -0500 Subject: [PATCH 091/178] Update pacsat.sh remove direwolf killall --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 5564d8cd..01fa7515 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -22,7 +22,7 @@ pkill -o chromium &>/dev/null sudo killall -9 rtl_fm &>/dev/null -sudo killall -9 direwolf &>/dev/null +#sudo killall -9 direwolf &>/dev/null sudo killall -9 aplay &>/dev/null From 2219931cec652b11ba3ac3522d8618cb569545e8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 03:35:16 -0500 Subject: [PATCH 092/178] adding reset_pacsat --- groundstation/reset_pacsat.sh | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 groundstation/reset_pacsat.sh diff --git a/groundstation/reset_pacsat.sh b/groundstation/reset_pacsat.sh new file mode 100755 index 00000000..34e153a3 --- /dev/null +++ b/groundstation/reset_pacsat.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +# script to clear Pacsat Ground Station and Pacsatsim state + +echo "Clearing all Pacsat Ground Station and Pacsatsim state" + +echo + +sudo systemctl stop pacsatsim + +#sudo killall -9 direwolf &>/dev/null + +sudo killall -9 java &>/dev/null + +cd + +cd pi_pacsat + +cd Debug + +sudo rm -r /home/pi/PacSat + +mkdir /home/pi/PacSat +mkdir /home/pi/PacSat/pacsat +mkdir /home/pi/PacSat/pacsat/dir + +#value=`cat /home/pi/CubeSatSim/sim.cfg` +#echo "$value" > /dev/null +#set -- $value + +echo "bit_rate=9600" > pacsat.config +echo "bbs_callsign=AMSAT-12" >> pacsat.config +echo "broadcast_callsign=AMSAT-11" >> pacsat.config +echo "digi_callsign=AMSAT-1" >> pacsat.config +echo "max_frames_in_tx_buffer=5" >> pacsat.config + +sudo rm pacsat_last_command_time.dat +sudo rm pacsat_upload_table.dat +sudo rm pacsat.state + +echo "pb_open=1" > pacsat.state +echo "uplink_open=1" >> pacsat.state +echo "pb_max_period_for_client_in_seconds=60" >> pacsat.state +echo "uplink_max_period_for_client_in_seconds=60" >> pacsat.state + +touch /home/pi/pi_pacsat/Debug/pacsat_upload_table.dat + +sudo rm -r /home/pi/PacSatGround + +mkdir /home/pi/PacSatGround + +echo + +echo "You will need to install the Pacsatsim spacecraft file and set the Delay to 750ms and Port to 8100 and restart the Pacsat Ground Station" + From 8a8c09814ada6c466ab9e7f9df725a04484f8f19 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 03:38:45 -0500 Subject: [PATCH 093/178] Update pacsatsim.sh direwolf back in --- pacsatsim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 33c1a8cd..2bc9bcc6 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -185,7 +185,7 @@ else echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" -# direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & + direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & fi From f6053fc6ba53862bf141fa8280923e1e0a60e5af Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 03:39:15 -0500 Subject: [PATCH 094/178] Update pacsat.sh run direwolf back in --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 01fa7515..46293689 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -56,7 +56,7 @@ sudo systemctl restart pacsatsim #echo -#direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & +direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & echo echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback." From 0bc9b97a720f627e9c9eee7419a402c9c1999e08 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 04:14:45 -0500 Subject: [PATCH 095/178] Update pacsat.sh add 30 second delay --- groundstation/pacsat.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 46293689..0e916410 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -40,6 +40,11 @@ echo sudo systemctl restart pacsatsim + +echo "Waiting 30 seconds for Pacsatsim to start" + +sleep 30 + #value=`cat /home/pi/CubeSatSim/sim.cfg` #echo "$value" > /dev/null #set -- $value From d22bbc222d328ffede96bf909c71d81c7eb98c68 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 06:07:20 -0500 Subject: [PATCH 096/178] Update pacsat.sh change to 10 second delay --- groundstation/pacsat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 0e916410..56be5a59 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -41,9 +41,9 @@ echo sudo systemctl restart pacsatsim -echo "Waiting 30 seconds for Pacsatsim to start" +echo "Waiting 10 seconds for Pacsatsim to start" -sleep 30 +sleep 10 #value=`cat /home/pi/CubeSatSim/sim.cfg` #echo "$value" > /dev/null From 4b3e527419986a34db28357ea952a6c021fe0254 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 06:32:23 -0500 Subject: [PATCH 097/178] Update direwolf-pacsat-loopback.conf set AGW port --- groundstation/direwolf/direwolf-pacsat-loopback.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/groundstation/direwolf/direwolf-pacsat-loopback.conf b/groundstation/direwolf/direwolf-pacsat-loopback.conf index 74a7fb1e..6058c722 100644 --- a/groundstation/direwolf/direwolf-pacsat-loopback.conf +++ b/groundstation/direwolf/direwolf-pacsat-loopback.conf @@ -4,6 +4,7 @@ ADEVICE plughw:CARD=Loopback,DEV=0 plughw:CARD=Loopback,DEV=0 CHANNEL 0 MODEM 1200 KISSPORT 8100 +AGWPORT 8002 FULLDUP OFF TXDELAY 30 #FIX_BITS 1 AX25 From 1c67dbdbb36cfaac6131b59f5386cff1843a850e Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 06:57:37 -0500 Subject: [PATCH 098/178] Update install changed from W3ZM to AMSAT --- install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install b/install index eed5aef2..216dd74f 100755 --- a/install +++ b/install @@ -158,9 +158,9 @@ export LD_LIBRARY_PATH=/mnt/usb-disk/ariss/lib:/usr/local/lib/iors_common:$LD_LI #set -- $value echo "bit_rate=9600" > pacsat.config -echo "bbs_callsign=W3ZM-12" >> pacsat.config -echo "broadcast_callsign=W3ZM-11" >> pacsat.config -echo "digi_callsign=W3ZM-1" >> pacsat.config +echo "bbs_callsign=AMSAT-12" >> pacsat.config +echo "broadcast_callsign=AMSAT-11" >> pacsat.config +echo "digi_callsign=AMSAT-1" >> pacsat.config echo "max_frames_in_tx_buffer=5" >> pacsat.config echo "pb_open=1" > pacsat.state From a2797e17b9942cc9a2981a0f4eba2221c55a1066 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 07:17:30 -0500 Subject: [PATCH 099/178] Update pacsatsim.sh try -du --- pacsatsim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 2bc9bcc6..e7ca6ba8 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -185,7 +185,7 @@ else echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" - direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & + direwolf -P+ -D1 -qd -du -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & fi From d660f6451583be55ba3acbc6105a6005ce85c253 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 07:21:27 -0500 Subject: [PATCH 100/178] Update pacsatsim.sh try -dp --- pacsatsim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index e7ca6ba8..5f2e717e 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -185,7 +185,7 @@ else echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" - direwolf -P+ -D1 -qd -du -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & + direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & fi From 0d954f7f3d5998bbd5658130908dfc5cd580ab00 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 07:24:38 -0500 Subject: [PATCH 101/178] Update pacsat.sh add direwolf -dp for packet dump --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 56be5a59..f187e1ca 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -61,7 +61,7 @@ sleep 10 #echo -direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & echo echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback." From 3cce953b8c9c6b3c3ed856218bafb9be86f8c857 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 7 Jan 2025 09:58:56 -0500 Subject: [PATCH 102/178] Update direwolf-pacsatsim-loopback.conf upload better with txdelay 15 --- direwolf/direwolf-pacsatsim-loopback.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim-loopback.conf b/direwolf/direwolf-pacsatsim-loopback.conf index 64c7bfe5..3fc85671 100644 --- a/direwolf/direwolf-pacsatsim-loopback.conf +++ b/direwolf/direwolf-pacsatsim-loopback.conf @@ -4,5 +4,5 @@ MYCALL AMSAT CHANNEL 0 MODEM 1200 FULLDUP OFF -TXDELAY 75 +TXDELAY 15 #FIX_BITS 1 AX25 From d8c8cfe3fa5197570cc6f513b21495f25bb0fefe Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 06:54:09 -0500 Subject: [PATCH 103/178] Update cubicsdr.sh add also stop/start --- groundstation/cubicsdr.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/groundstation/cubicsdr.sh b/groundstation/cubicsdr.sh index f9c3146c..2bfb65dc 100755 --- a/groundstation/cubicsdr.sh +++ b/groundstation/cubicsdr.sh @@ -23,7 +23,7 @@ sudo killall -9 rtl_fm &>/dev/null sudo killall -9 direwolf &>/dev/null -sudo killall -9 aplay &>/dev/null +#sudo killall -9 aplay &>/dev/null sudo killall -9 qsstv &>/dev/null @@ -39,9 +39,10 @@ sudo killall -9 CubicSDR &>/dev/null sudo killall -9 zenity &>/dev/null -zenity --info --width=650 --height=140 --title="Instructions" --text="When CubicSDR opens, select Generic RTL2832U device then click Start to begin.\n\nThen click on a signal in the watefall to listen." & - +sudo /etc/init.d/alsa-utils stop +sudo /etc/init.d/alsa-utils start +zenity --info --width=650 --height=140 --title="Instructions" --text="When CubicSDR opens, select Generic RTL2832U device then click Start to begin.\n\nThen click on a signal in the watefall to listen." & sleep 5 From 29acb25334f94f8f09d2fffdcdd03e796acc34af Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 06:55:42 -0500 Subject: [PATCH 104/178] Update fox.sh add alsa stop/start --- groundstation/fox.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/groundstation/fox.sh b/groundstation/fox.sh index 233644ef..36e241e0 100755 --- a/groundstation/fox.sh +++ b/groundstation/fox.sh @@ -23,12 +23,15 @@ sudo killall -9 CubicSDR &>/dev/null sudo killall -9 direwolf &>/dev/null -sudo killall -9 aplay &>/dev/null +#sudo killall -9 aplay &>/dev/null sudo killall -9 qsstv &>/dev/null sudo killall -9 zenity &>/dev/null +sudo /etc/init.d/alsa-utils stop +sudo /etc/init.d/alsa-utils start + sleep 5 #/home/pi/FoxTelem/FoxTelem /home/pi/FoxTelemetryData-CubeSatSim From e676205c3cab60490bc7b6915d934e3fe69da0f2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 06:57:51 -0500 Subject: [PATCH 105/178] Update pacsat.sh add alsa stop/start --- groundstation/pacsat.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index f187e1ca..056ff0ca 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -24,7 +24,7 @@ sudo killall -9 rtl_fm &>/dev/null #sudo killall -9 direwolf &>/dev/null -sudo killall -9 aplay &>/dev/null +#sudo killall -9 aplay &>/dev/null sudo killall -9 qsstv &>/dev/null @@ -40,6 +40,9 @@ echo sudo systemctl restart pacsatsim +sudo /etc/init.d/alsa-utils stop +sudo /etc/init.d/alsa-utils start + echo "Waiting 10 seconds for Pacsatsim to start" From 15986706d87d9c328063400b56bae3bf7c2c32c3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 06:58:35 -0500 Subject: [PATCH 106/178] Update rtl-tcp.sh add alsa stop/start --- groundstation/rtl-tcp.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index e16c6e9a..d5d541b1 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -45,10 +45,13 @@ sudo killall -9 qsstv &>/dev/null sudo killall -9 direwolf &>/dev/null -sudo killall -9 aplay &>/dev/null +#sudo killall -9 aplay &>/dev/null sudo killall -9 zenity &>/dev/null +sudo /etc/init.d/alsa-utils stop +sudo /etc/init.d/alsa-utils start + #sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' sudo systemctl start rtl_tcp &>/dev/null From d25bbf7dc08e6cd79ff9a2e6fc8390c519ddf827 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 06:59:20 -0500 Subject: [PATCH 107/178] Update sdr.sh add alsa stop/start --- groundstation/sdr.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/groundstation/sdr.sh b/groundstation/sdr.sh index 8dfd5e64..66983556 100755 --- a/groundstation/sdr.sh +++ b/groundstation/sdr.sh @@ -38,7 +38,7 @@ sudo killall -9 CubicSDR &>/dev/null sudo killall -9 qsstv &>/dev/null -sudo killall -9 aplay &>/dev/null +#sudo killall -9 aplay &>/dev/null sudo killall -9 direwolf &>/dev/null @@ -46,6 +46,9 @@ sudo killall -9 zenity &>/dev/null sudo systemctl stop rtl_tcp &>/dev/null +sudo /etc/init.d/alsa-utils stop +sudo /etc/init.d/alsa-utils start + sudo systemctl restart openwebrx &>/dev/null sleep 10 From 3ef21390e3e16ff629aae7b9b6fba5fc48e22b4a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 06:59:55 -0500 Subject: [PATCH 108/178] Update sdrpp.sh add alsa stop/start --- groundstation/sdrpp.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/groundstation/sdrpp.sh b/groundstation/sdrpp.sh index 73f520e7..08736032 100755 --- a/groundstation/sdrpp.sh +++ b/groundstation/sdrpp.sh @@ -19,7 +19,7 @@ sudo killall -9 rtl_fm &>/dev/null sudo killall -9 direwolf &>/dev/null -sudo killall -9 aplay &>/dev/null +#sudo killall -9 aplay &>/dev/null sudo killall -9 qsstv &>/dev/null @@ -35,6 +35,9 @@ sudo killall -9 CubicSDR &>/dev/null sudo killall -9 zenity &>/dev/null +sudo /etc/init.d/alsa-utils stop +sudo /etc/init.d/alsa-utils start + sleep 5 setsid sdrpp From aeec194e8d91ab376b86e076d2a2e0244c1a7de8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 07:14:20 -0500 Subject: [PATCH 109/178] Update loc-add-foxtelem.py added Pacsat location setting --- groundstation/loc-add-foxtelem.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/groundstation/loc-add-foxtelem.py b/groundstation/loc-add-foxtelem.py index 64c47bbd..1f4279cc 100644 --- a/groundstation/loc-add-foxtelem.py +++ b/groundstation/loc-add-foxtelem.py @@ -118,6 +118,16 @@ if (latitude != 0) and (longitude != 0): system(longSedStr) print("\nKLAtracker configuration updated with your latitude and longitude") + + latSedStr = 'sed -i "s/latitude=.*/latitude=' + str(latitude) + '/g" /home/pi/PacSatGround/PacSatGround.properties' + #print (latSedStr) + system(latSedStr) + + longSedStr = 'sed -i "s/longitude=.*/longitude=' + str(longitude) + '/g" /home/pi/PacSatGround/PacSatGround.properties' + #print (longSedStr) + system(longSedStr) + + print("\nPacsat configuration updated with your latitude and longitude") receiver_gpsSedStr = 'sudo sed -i "s/ ' + dquote + 'lat' + dquote + ': .*/ ' + dquote + 'lat' + dquote + ': ' + str(latitude) + ',/g" /var/lib/openwebrx/settings.json' #print (receiver_gpsSedStr) From 00fff29dc664577348bc6386327a547cc8fc6308 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 07:20:30 -0500 Subject: [PATCH 110/178] Update config change callsign in Pacsat Ground Station --- config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config b/config index 3764aa86..a38e55a9 100755 --- a/config +++ b/config @@ -553,6 +553,8 @@ elif [ "$1" = "-c" ]; then echo $callsign $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} > /home/pi/CubeSatSim/sim.cfg sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/pi_pacsat/Debug/pacsat.config > /dev/null 2>&1 + sudo sed -i "s/callsign=$oldcallsign/callsign=$callsign/g' /home/pi/PacSatGround/PacSatGround.properties' + sudo sed -i "s/$oldcallsign/$callsign/g' /home/pi/PacSatGround/spacecraft/PacSatSim.properties' fi if [ "$norestart" = "1" ]; then From 2c25bbf453768a9dd7ae6325b8c86ff962098398 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 07:27:32 -0500 Subject: [PATCH 111/178] Update config remove dev null --- config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config b/config index a38e55a9..4e2e3406 100755 --- a/config +++ b/config @@ -552,7 +552,7 @@ elif [ "$1" = "-c" ]; then echo $callsign $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} echo $callsign $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} > /home/pi/CubeSatSim/sim.cfg - sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/pi_pacsat/Debug/pacsat.config > /dev/null 2>&1 + sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/pi_pacsat/Debug/pacsat.config sudo sed -i "s/callsign=$oldcallsign/callsign=$callsign/g' /home/pi/PacSatGround/PacSatGround.properties' sudo sed -i "s/$oldcallsign/$callsign/g' /home/pi/PacSatGround/spacecraft/PacSatSim.properties' fi From 0fb005db3b894c19dcc864cec5c29bd1f3f551ca Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 07:36:30 -0500 Subject: [PATCH 112/178] Update config sed typos --- config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config b/config index 4e2e3406..936ddad0 100755 --- a/config +++ b/config @@ -553,8 +553,8 @@ elif [ "$1" = "-c" ]; then echo $callsign $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} > /home/pi/CubeSatSim/sim.cfg sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/pi_pacsat/Debug/pacsat.config - sudo sed -i "s/callsign=$oldcallsign/callsign=$callsign/g' /home/pi/PacSatGround/PacSatGround.properties' - sudo sed -i "s/$oldcallsign/$callsign/g' /home/pi/PacSatGround/spacecraft/PacSatSim.properties' + sudo sed -i 's/callsign=$oldcallsign/callsign=$callsign/g' /home/pi/PacSatGround/PacSatGround.properties + sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/PacSatGround/spacecraft/PacSatSim.properties fi if [ "$norestart" = "1" ]; then From 1a7e2f8fdd5ac68abf60917543c73ad4b73cf4b0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 07:38:56 -0500 Subject: [PATCH 113/178] Update pacsat.sh add back kill direwolf --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 056ff0ca..0ab6acb9 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -22,7 +22,7 @@ pkill -o chromium &>/dev/null sudo killall -9 rtl_fm &>/dev/null -#sudo killall -9 direwolf &>/dev/null +sudo killall -9 direwolf &>/dev/null #sudo killall -9 aplay &>/dev/null From d814dc1788e04a28878f0afdaf789cd8c3afa92f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 07:52:01 -0500 Subject: [PATCH 114/178] Update config stop pacsatsim and java for callsign change --- config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config b/config index 936ddad0..59e752a8 100755 --- a/config +++ b/config @@ -552,6 +552,9 @@ elif [ "$1" = "-c" ]; then echo $callsign $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} echo $callsign $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} > /home/pi/CubeSatSim/sim.cfg + sudo systemctl stop pacsatsim + sudo killall -9 java &>/dev/null + sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/pi_pacsat/Debug/pacsat.config sudo sed -i 's/callsign=$oldcallsign/callsign=$callsign/g' /home/pi/PacSatGround/PacSatGround.properties sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/PacSatGround/spacecraft/PacSatSim.properties From 38121edbbb20bec20947a52b397bb51d252301db Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 07:57:03 -0500 Subject: [PATCH 115/178] Update config fix sed --- config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config b/config index 59e752a8..1929eee1 100755 --- a/config +++ b/config @@ -555,9 +555,9 @@ elif [ "$1" = "-c" ]; then sudo systemctl stop pacsatsim sudo killall -9 java &>/dev/null - sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/pi_pacsat/Debug/pacsat.config - sudo sed -i 's/callsign=$oldcallsign/callsign=$callsign/g' /home/pi/PacSatGround/PacSatGround.properties - sudo sed -i 's/$oldcallsign/$callsign/g' /home/pi/PacSatGround/spacecraft/PacSatSim.properties + sudo sed -i "s/$oldcallsign/$callsign/g" /home/pi/pi_pacsat/Debug/pacsat.config + sudo sed -i "s/callsign=$oldcallsign/callsign=$callsign/g" /home/pi/PacSatGround/PacSatGround.properties + sudo sed -i "s/$oldcallsign/$callsign/g" /home/pi/PacSatGround/spacecraft/PacSatSim.properties fi if [ "$norestart" = "1" ]; then From b3d34ca70fc2171c4fd7e3ade5f7645b7982fd50 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:00:40 -0500 Subject: [PATCH 116/178] Update pacsat.sh added pacsatsim stop at the end --- groundstation/pacsat.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 0ab6acb9..dcc80fd3 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -75,5 +75,9 @@ cd /home/pi/Desktop/PacSatGround_0.46m_linux/ sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" +sudo systemctl stop pacsatsim + +sleep 10 + From e99b9d0bb0998346b03f6a81c6c43ebf869c12b6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:03:49 -0500 Subject: [PATCH 117/178] Update pacsat.sh --- groundstation/pacsat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index dcc80fd3..df4d9edf 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -79,5 +79,7 @@ sudo systemctl stop pacsatsim sleep 10 +echo "Stopping Pacsatsim" + From 53dfb22cceb422e4ac2324c926a1acb7071593dc Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:08:10 -0500 Subject: [PATCH 118/178] Update pacsat.sh added >/dev/null 2>&1 --- groundstation/pacsat.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index df4d9edf..e2f2913c 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -4,19 +4,19 @@ sudo modprobe snd-aloop -sudo systemctl stop cubesatsim +sudo systemctl stop cubesatsim >/dev/null 2>&1 -sudo systemctl stop transmit +sudo systemctl stop transmit >/dev/null 2>&1 -sudo systemctl stop command +sudo systemctl stop command >/dev/null 2>&1 #/home/pi/CubeSatSim/config -I -sudo systemctl stop command &>/dev/null +sudo systemctl stop command >/dev/null 2>&1 -sudo systemctl stop openwebrx &>/dev/null +sudo systemctl stop openwebrx >/dev/null 2>&1 -sudo systemctl stop rtl_tcp &>/dev/null +sudo systemctl stop rtl_tcp >/dev/null 2>&1 pkill -o chromium &>/dev/null @@ -75,7 +75,7 @@ cd /home/pi/Desktop/PacSatGround_0.46m_linux/ sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" -sudo systemctl stop pacsatsim +sudo systemctl stop pacsatsim sleep 10 From c14d2189ebee014d16d7d46595068a23fba16282 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:29:33 -0500 Subject: [PATCH 119/178] Update pacsat.sh add #$SHELL --- groundstation/pacsat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index e2f2913c..acf59fc2 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -81,5 +81,7 @@ sleep 10 echo "Stopping Pacsatsim" +$SHELL + From 8be415e59b946a89a8a73d9de8c04217439811ee Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:33:28 -0500 Subject: [PATCH 120/178] Update pacsat.sh remove stop pacsatsim at end --- groundstation/pacsat.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index acf59fc2..e846f248 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -75,11 +75,13 @@ cd /home/pi/Desktop/PacSatGround_0.46m_linux/ sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" -sudo systemctl stop pacsatsim +cd + +#sudo systemctl stop pacsatsim sleep 10 -echo "Stopping Pacsatsim" +#echo "Stopping Pacsatsim" $SHELL From 978eb8b4ebfa05c1208978410c359cdf537fcd15 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:40:04 -0500 Subject: [PATCH 121/178] Update pacsat.sh launch direwolf in separate window --- groundstation/pacsat.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index e846f248..acc304cd 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -64,10 +64,11 @@ sleep 10 #echo -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & +#direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" echo -echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback." +echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback" echo From cfa1f66324bea05bf6e5707942b7e94da72bd687 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:41:17 -0500 Subject: [PATCH 122/178] Update pacsat.sh remove SHELL at end --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index acc304cd..b8deafc7 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -84,7 +84,7 @@ sleep 10 #echo "Stopping Pacsatsim" -$SHELL +#$SHELL From ff3230b0c311740fffef86fc5dfac60dd3518451 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:46:24 -0500 Subject: [PATCH 123/178] Update pacsat.sh back to SHELL --- groundstation/pacsat.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index b8deafc7..2c4e8aa5 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -64,8 +64,8 @@ sleep 10 #echo -#direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & -/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & +#/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" echo echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback" @@ -84,7 +84,7 @@ sleep 10 #echo "Stopping Pacsatsim" -#$SHELL +$SHELL From 87d2ec4b9cb6f53110bcc3367551a192fd7b802e Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:47:45 -0500 Subject: [PATCH 124/178] Update pacsat.sh remove & --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 2c4e8aa5..c7a09c84 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -64,7 +64,7 @@ sleep 10 #echo -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 & +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & #/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" echo From c04e9e7263d2806aee4f2b949f7d2b97b283bed6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:49:23 -0500 Subject: [PATCH 125/178] Update pacsat.sh change order of pacsat and direwolf --- groundstation/pacsat.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index c7a09c84..644306fa 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -64,18 +64,24 @@ sleep 10 #echo -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & -#/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" - echo echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback" echo - cd /home/pi/Desktop/PacSatGround_0.46m_linux/ sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & +#/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" + + + + +#cd /home/pi/Desktop/PacSatGround_0.46m_linux/ + +#sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" + cd #sudo systemctl stop pacsatsim From 1b20bff48a6bca6475a80348f43fc1a8d6b6e3ff Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:50:25 -0500 Subject: [PATCH 126/178] Update pacsat.sh add kill sdrpp --- groundstation/pacsat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 644306fa..d601d114 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -24,6 +24,8 @@ sudo killall -9 rtl_fm &>/dev/null sudo killall -9 direwolf &>/dev/null +sudo killall -9 sdrpp &>/dev/null + #sudo killall -9 aplay &>/dev/null sudo killall -9 qsstv &>/dev/null From 75e12ce363a14807ecdf1c5aec5436825d8a7f0f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:54:39 -0500 Subject: [PATCH 127/178] Update pacsat.sh back to separate wndow --- groundstation/pacsat.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index d601d114..895b3a46 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -74,11 +74,11 @@ cd /home/pi/Desktop/PacSatGround_0.46m_linux/ sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & -#/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" - +#direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" +echo "Don't close the direwolf-pacsat-loopback window or the Pacsatsim will stop running." #cd /home/pi/Desktop/PacSatGround_0.46m_linux/ @@ -92,7 +92,7 @@ sleep 10 #echo "Stopping Pacsatsim" -$SHELL +#$SHELL From 26774c7db3280d05f8a256afaa1058c5da8f4c2a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 08:57:39 -0500 Subject: [PATCH 128/178] Update sdrpp.sh add & --- groundstation/sdrpp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/sdrpp.sh b/groundstation/sdrpp.sh index 08736032..2dd97fd1 100755 --- a/groundstation/sdrpp.sh +++ b/groundstation/sdrpp.sh @@ -40,7 +40,7 @@ sudo /etc/init.d/alsa-utils start sleep 5 -setsid sdrpp +setsid sdrpp & sleep 10 From e41fd1e58c6aaa5e2fb1408f0f60ced9acfcf4c2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 09:00:55 -0500 Subject: [PATCH 129/178] Update sstv_decode_prompt.sh add & --- groundstation/sstv_decode_prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index fbc55895..7ae8cd9b 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -135,7 +135,7 @@ set -- $value #rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 #rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 & #rtl_fm -M fm -f $frequency -s 48k | aplay -D plughw:${2:0:1},0,1 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From 46a20c7840f61ae8e2e6d11756ad88c9c3a64d1d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 09:04:17 -0500 Subject: [PATCH 130/178] Update sstv_decode_prompt.sh remove & --- groundstation/sstv_decode_prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 7ae8cd9b..fbc55895 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -135,7 +135,7 @@ set -- $value #rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 #rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 & +rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 #rtl_fm -M fm -f $frequency -s 48k | aplay -D plughw:${2:0:1},0,1 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From d49477f0ec72d644733c819001da16d4e5e868ed Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 8 Jan 2025 09:10:38 -0500 Subject: [PATCH 131/178] Update pacsat.desktop make window large --- groundstation/pacsat.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.desktop b/groundstation/pacsat.desktop index 539c0e1d..d1be6bbf 100644 --- a/groundstation/pacsat.desktop +++ b/groundstation/pacsat.desktop @@ -2,7 +2,7 @@ Name=Pacsat GenericName=Pacsat Loopback Comment=Pacsat -Exec=/home/pi/CubeSatSim/groundstation/pacsat.sh +Exec=/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/groundstation/packet.sh" Icon=/home/pi/Icons/pacsat.png Terminal=true Type=Application From e24b1a46c6a3024ba69689fee875dbe4e0246cb6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 10 Jan 2025 21:58:58 -0500 Subject: [PATCH 132/178] Update pacsat.desktop --- groundstation/pacsat.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.desktop b/groundstation/pacsat.desktop index d1be6bbf..7fef68f8 100644 --- a/groundstation/pacsat.desktop +++ b/groundstation/pacsat.desktop @@ -2,7 +2,7 @@ Name=Pacsat GenericName=Pacsat Loopback Comment=Pacsat -Exec=/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/groundstation/packet.sh" +Exec=/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/groundstation/pacsat.sh" Icon=/home/pi/Icons/pacsat.png Terminal=true Type=Application From 95dd40dbead88f4186810f5c5d58350d48c778df Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 10 Jan 2025 22:21:15 -0500 Subject: [PATCH 133/178] Update aprs.desktop --- groundstation/aprs.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/aprs.desktop b/groundstation/aprs.desktop index 5f360f7b..a7d0062a 100644 --- a/groundstation/aprs.desktop +++ b/groundstation/aprs.desktop @@ -2,7 +2,7 @@ Name=APRS Decode using Direwolf GenericName=Decodes APRS using rtl_fm and Direwolf Comment=APRS signals -Exec=/home/pi/CubeSatSim/groundstation/packet.sh +Exec=/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/groundstation/packet.sh" Icon=/home/pi/Icons/aprs.png Terminal=true Type=Application From 1eadb145b9e47ef09a2b3b9694e309355d02ef09 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 10 Jan 2025 22:23:21 -0500 Subject: [PATCH 134/178] Update direwolf.conf --- groundstation/direwolf/direwolf.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/direwolf/direwolf.conf b/groundstation/direwolf/direwolf.conf index 701d80b4..3b372144 100644 --- a/groundstation/direwolf/direwolf.conf +++ b/groundstation/direwolf/direwolf.conf @@ -1 +1 @@ -ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=0 +ADEVICE plughw:CARD=Loopback,DEV=1 From b7b91a97dab9f970ea196ba09b30884bde1a97ee Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 11 Jan 2025 16:28:53 -0500 Subject: [PATCH 135/178] Update webSDR.desktop typo --- groundstation/webSDR.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/webSDR.desktop b/groundstation/webSDR.desktop index f660c2ea..387dfd95 100644 --- a/groundstation/webSDR.desktop +++ b/groundstation/webSDR.desktop @@ -3,7 +3,7 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/sdr.sh Name=Web SDR Comment=openwebrx for Web SDR -Icon=/home/pi/Iconss/openwebrx.png +Icon=/home/pi/Icons/openwebrx.png Path=/home/pi Terminal=true Categories=HamRadio From 948252c22e01e6403fb4f8e5c0989de0c5f340c7 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 11 Jan 2025 16:36:03 -0500 Subject: [PATCH 136/178] Update foxtelem.desktop --- groundstation/foxtelem.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/foxtelem.desktop b/groundstation/foxtelem.desktop index 87fe00a1..c01913be 100644 --- a/groundstation/foxtelem.desktop +++ b/groundstation/foxtelem.desktop @@ -3,7 +3,7 @@ Type=Application Exec=/home/pi/CubeSatSim/groundstation/fox-run.sh Name=FoxTelem Comment=FIAB-v4 -Icon=/home/pi/Downloads/foxtelem.png +Icon=/home/pi/Icons/foxtelem.png Path=/home/pi Terminal=true Categories=HamRadio From 04107c25616cdc5a33cca3fe74c289411689be70 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 11 Jan 2025 19:50:21 -0500 Subject: [PATCH 137/178] Update pacsat.sh remove sudo --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 895b3a46..5a7c54e7 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -72,7 +72,7 @@ echo cd /home/pi/Desktop/PacSatGround_0.46m_linux/ -sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" +setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" #direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & /usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" From f311960426af201be083b402de4308401061ac3a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 11 Jan 2025 22:27:31 -0500 Subject: [PATCH 138/178] Update pacsat.sh add & to pacsat --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 5a7c54e7..0b27f7c0 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -72,7 +72,7 @@ echo cd /home/pi/Desktop/PacSatGround_0.46m_linux/ -setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" +setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" & #direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & /usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" From 0ca435040e8be342cd9151b25595cb9e5a3bc920 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 11 Jan 2025 22:31:29 -0500 Subject: [PATCH 139/178] Update PacSatSim.properties changed to AMSAT callsign --- spacecraft/PacSatGround_0.46m/PacSatSim.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacecraft/PacSatGround_0.46m/PacSatSim.properties b/spacecraft/PacSatGround_0.46m/PacSatSim.properties index d18ebe5c..e4ccad24 100644 --- a/spacecraft/PacSatGround_0.46m/PacSatSim.properties +++ b/spacecraft/PacSatGround_0.46m/PacSatSim.properties @@ -2,11 +2,11 @@ #Sun Feb 17 18:25:06 EST 2019 sequence_num=3 name=PacSatSim -digiCallsign=W3ZM-1 +digiCallsign=AMSAT-1 description=PacSatSim -broadcastCallsign=W3ZM-11 +broadcastCallsign=AMSAT-11 DIR_AGE=10 -bbsCallsign=W3ZM-12 +bbsCallsign=AMSAT-12 telemLayoutFile=PacSatSim.dat telem_server=tlm.amsatfox.org web_site_url=http://CubeSatSim.org From b010b4389390d2031634c17c977f0a59c0aaed35 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 12 Jan 2025 09:05:38 -0500 Subject: [PATCH 140/178] Update CubeSatSim_rttelemetry.csv --- .../FoxTelem_1.13e/CubeSatSim_rttelemetry.csv | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/spacecraft/FoxTelem_1.13e/CubeSatSim_rttelemetry.csv b/spacecraft/FoxTelem_1.13e/CubeSatSim_rttelemetry.csv index e69de29b..9dc17ff6 100644 --- a/spacecraft/FoxTelem_1.13e/CubeSatSim_rttelemetry.csv +++ b/spacecraft/FoxTelem_1.13e/CubeSatSim_rttelemetry.csv @@ -0,0 +1,48 @@ +47,TYPE,FIELD,BITS,UNIT,CONVERSION,MODULE,MODULE_NUM,MODULE_LINE,LINE_TYPE,SHORT_NAME,DESCRIPTION +0,RT,Sensor 2,12,integer,1,Experiments,6,8,3,Sensor 2,STEM Payload Extra Sensor 2 +1,RT,Sensor 3,12,integer,1,Experiments,6,9,3,Sensor 3,STEM Payload Extra Sensor 3 +2,RT,BATT_V,12,V,cubesatsim_voltage|FLOAT2,Battery,4,1,3,Battery Voltage,INA219 Battery Voltage +3,RT,SatelliteXAxisAcceleration,12,g,cubesatsim_acceleration|FLOAT2,+X Panel,7,4,3,Acceleration,STEM Payload Board MPU6050 Acceleration around X Axis +4,RT,SatelliteYAxisAcceleration,12,g,cubesatsim_acceleration|FLOAT2,+Y Panel,8,4,3,Acceleration,STEM Payload Board MPU6050 Acceleration around Y Axis +5,RT,SatelliteZAxisAcceleration,12,g,cubesatsim_acceleration|FLOAT2,+Z Panel,9,4,3,Acceleration,STEM Payload Board MPU6050 Acceleration around Z Axis +6,RT,BATT_I,12,mA,cubesatsim_current,Battery,4,2,3,Battery Current,INA219 Battery Current +7,RT,Temperature,12,C,cubesatsim_temperature,Experiments,6,2,3,BME280 Temp,STEM Payload Sensor BME280 Temperature +8,RT,PANEL_PLUS_X_V,12,V,cubesatsim_voltage|FLOAT2,+X Panel,7,1,3,Voltage,INA219 +X Panel Voltage +9,RT,PANEL_MINUS_X_V,12,V,cubesatsim_voltage|FLOAT2,-X Panel,10,1,3,Voltage,INA219 -X Panel Voltage +10,RT,PANEL_PLUS_Y_V,12,V,cubesatsim_voltage|FLOAT2,+Y Panel,8,1,3,Voltage,INA219 +Y Panel Voltage +11,RT,PANEL_MINUS_Y_V,12,V,cubesatsim_voltage|FLOAT2,-Y Panel,11,1,3,Voltage,INA219 -Y Panel Voltage +12,RT,PANEL_PLUS_Z_V,12,V,cubesatsim_voltage|FLOAT2,+Z Panel,9,1,3,Voltage,INA219 +Z Panel Voltage +13,RT,PANEL_MINUS_Z_V,12,V,cubesatsim_voltage|FLOAT2,-Z Panel,12,1,3,Voltage,INA219 -Z Panel Voltage +14,RT,PANEL_PLUS_X_I,12,mA,cubesatsim_current,+X Panel,7,2,3,Current,INA219 +X Panel Current +15,RT,PANEL_MINUS_X_I,12,mA,cubesatsim_current,-X Panel,10,2,3,Current,INA219 -X Panel Current +16,RT,PANEL_PLUS_Y_I,12,mA,cubesatsim_current,+Y Panel,8,2,3,Current,INA219 +Y Panel Current +17,RT,PANEL_MINUS_Y_I,12,mA,cubesatsim_current,-Y Panel,11,2,3,Current,INA219 -Y Panel Current +18,RT,PANEL_PLUS_Z_I,12,mA,cubesatsim_current,+Z Panel,9,2,3,Current,INA219 +Z Panel Current +19,RT,PANEL_MINUS_Z_I,12,mA,cubesatsim_current,-Z Panel,12,2,3,Current,INA219 -Z Panel Current +20,RT,BATT2_V,12,V,cubesatsim_voltage|FLOAT2,Battery2,5,1,3,Battery2 Voltage,INA219 Battery2 Voltage +21,RT,SPIN,12,rpm,cubesatsim_rpm,Computer Software,3,1,3,Spacecraft Spin,Calculated spin rate using solar cells +22,RT,Pressure,12,hPa,cubesatsim_pressure,Experiments,6,3,3,BME280 Pressure,STEM Payload Sensor BME280 Pressure +23,RT,Altitude,12,m,cubesatsim_altitude,Experiments,6,4,3,BME280 Altitude,STEM Payload Sensor BME280 Altitude +24,RT,Resets,12,-,12,NONE,3,2,3,Reset Count, Software Reset Count +25,RT,RSSI,12,dBm,cubesatsim_rssi|INT,Radio,1,1,3,RSSI,Received Signal Strength Indication +26,RT,IHUTemperature,12,C,cubesatsim_temperature,Computer Hardware,2,1,3,IHU Temp (Pi),Internal Temperature of Pi IHU +27,RT,SatelliteXAxisAngularVelocity,12,dps,cubesatsim_rotation|INT,+X Panel,7,3,3,Rotation,STEM Payload Board MPU6050 Angular Veolcity around X Axis +28,RT,SatelliteYAxisAngularVelocity,12,dps,cubesatsim_rotation|INT,+Y Panel,8,3,3,Rotation,STEM Payload Board MPU6050 Angular Veolcity around Y Axis +29,RT,SatelliteZAxisAngularVelocity,12,dps,cubesatsim_rotation|INT,+Z Panel,9,3,3,Rotation,STEM Payload Board MPU6050 Angular Veolcity around Z Axis +30,RT,Humidity,12,%,cubesatsim_temperature,Experiments,6,5,3,BME280 Humidity,STEM Payload Sensor BME280 Humidity +31,RT,BATT2_I,12,mA,cubesatsim_current,Battery2,5,2,3,Battery2 Current,INA219 Battery2 Current +32,RT,DiodeTemp,12,C,cubesatsim_rpm,Experiments,6,6,3,Diode Temp,STEM Payload Diode Temperature +33,RT,Sensor 1,12,integer,1,Experiments,6,7,3,Sensor 1,STEM Payload Extra Sensor 1 +34,RT,STEMPayloadStatus,1,-,17,Experiments,6,1,0,STEM Payload Status,STEM Payload Board Status +35,RT,SafeMode,1,-,STATUS_ON_OFF,Computer Software,3,2,0,Safe Mode, Safe Mode (Low Battery Voltage) +36,RT,SimulatedTelemetry,1,-,STATUS_ON_OFF,Computer Software,3,4,0,Simulated Telemetry, Simulated Telemetry Indicator +37,RT,PayloadStatus1,1,-,17,NONE,0,0,0,Exp 3,STEM Payload status 1 failure indicator +38,RT,I2CBus0Failure,1,-,17,NONE,2,2,0,I2C Bus 0,I2C bus 0 failure indicator +39,RT,I2CBus1Failure,1,-,17,Computer Hardware,2,2,0,I2C Bus 1,I2C bus 1 failure indicator +40,RT,I2CBus3Failure,1,-,17,Computer Hardware,2,3,0,I2C Bus 3,I2C bus 3 failure indicator +41,RT,CameraFailure,1,-,17,Computer Hardware,2,4,0,Camera,Camera failure indicator +42,RT,GroundCommands,4,-,1,Computer Software,3,3,0,Ground Commands,Number of ground commands received +43,RT,RXAntenna,1,-,16,Radio,1,3,0,RX Antenna,Receive antenna status +44,RT,TXAntenna,1,-,16,Radio,1,2,0,TX Antenna,Transmit antenna status +45,RT,C2CStatus,2,-,COMMAND_STATUS,Computer Software,3,5,0,Command Control, Command & Control Status +46,RT,Pad,56,-,0,NONE,0,0,0,NONE,NONE From 5feee9a4c233ae1fc9c3dfdbba618c64758b1120 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 18 Jan 2025 10:04:09 -0500 Subject: [PATCH 141/178] Update packet.sh --- groundstation/packet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index f669afda..24c04f0b 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -191,7 +191,7 @@ echo "$value" > /dev/null set -- $value #rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,1 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 +#rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,1 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 rtl_fm -M fm -f $frequency -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 sleep 5 From dcc6eb488aabf127eab50bf00b1f5927f0a03143 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 19 Feb 2025 03:39:18 -0500 Subject: [PATCH 142/178] Update direwolf-pacsatsim-loopback.conf add -12 to callsign --- direwolf/direwolf-pacsatsim-loopback.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim-loopback.conf b/direwolf/direwolf-pacsatsim-loopback.conf index 3fc85671..581d30cb 100644 --- a/direwolf/direwolf-pacsatsim-loopback.conf +++ b/direwolf/direwolf-pacsatsim-loopback.conf @@ -1,6 +1,6 @@ ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=1 #PTT GPIO 20 -MYCALL AMSAT +MYCALL AMSAT-12 CHANNEL 0 MODEM 1200 FULLDUP OFF From b42985527a1a4ce84998c1a2488c5df591e4b0d2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 08:40:32 -0500 Subject: [PATCH 143/178] Update pacsat.sh don't restart pacsatsim --- groundstation/pacsat.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 0b27f7c0..aed65770 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -40,15 +40,15 @@ sudo killall -9 zenity &>/dev/null echo -sudo systemctl restart pacsatsim +#sudo systemctl restart pacsatsim -sudo /etc/init.d/alsa-utils stop -sudo /etc/init.d/alsa-utils start +#sudo /etc/init.d/alsa-utils stop +#sudo /etc/init.d/alsa-utils start -echo "Waiting 10 seconds for Pacsatsim to start" +#echo "Waiting 10 seconds for Pacsatsim to start" -sleep 10 +#sleep 10 #value=`cat /home/pi/CubeSatSim/sim.cfg` #echo "$value" > /dev/null From 586e22b1baac5a32855561b8d50705ec453efbec Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 08:55:15 -0500 Subject: [PATCH 144/178] Update pacsat.sh don't kill direwolf --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index aed65770..59551eb3 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -22,7 +22,7 @@ pkill -o chromium &>/dev/null sudo killall -9 rtl_fm &>/dev/null -sudo killall -9 direwolf &>/dev/null +#sudo killall -9 direwolf &>/dev/null sudo killall -9 sdrpp &>/dev/null From c45674512e4088eeb4c92a58eb6d338c01e419a9 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 09:07:06 -0500 Subject: [PATCH 145/178] separate direwolf windows --- groundstation/pacsat-d.sh | 98 ++++++++++++++++++ pacsatsim-d.sh | 204 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 302 insertions(+) create mode 100755 groundstation/pacsat-d.sh create mode 100755 pacsatsim-d.sh diff --git a/groundstation/pacsat-d.sh b/groundstation/pacsat-d.sh new file mode 100755 index 00000000..59551eb3 --- /dev/null +++ b/groundstation/pacsat-d.sh @@ -0,0 +1,98 @@ +#!/bin/bash + +# script to auto decode packet using rtl_fm and Direwolf and run Pacsat + +sudo modprobe snd-aloop + +sudo systemctl stop cubesatsim >/dev/null 2>&1 + +sudo systemctl stop transmit >/dev/null 2>&1 + +sudo systemctl stop command >/dev/null 2>&1 + +#/home/pi/CubeSatSim/config -I + +sudo systemctl stop command >/dev/null 2>&1 + +sudo systemctl stop openwebrx >/dev/null 2>&1 + +sudo systemctl stop rtl_tcp >/dev/null 2>&1 + +pkill -o chromium &>/dev/null + +sudo killall -9 rtl_fm &>/dev/null + +#sudo killall -9 direwolf &>/dev/null + +sudo killall -9 sdrpp &>/dev/null + +#sudo killall -9 aplay &>/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 + +sudo killall -9 zenity &>/dev/null + +echo + +#sudo systemctl restart pacsatsim + +#sudo /etc/init.d/alsa-utils stop +#sudo /etc/init.d/alsa-utils start + + +#echo "Waiting 10 seconds for Pacsatsim to start" + +#sleep 10 + +#value=`cat /home/pi/CubeSatSim/sim.cfg` +#echo "$value" > /dev/null +#set -- $value + +#echo "Receive frequency is $8 MHz" +#echo "Transmit frequency is $7 MHz" +#echo +#echo "To change, quit and type CubeSatSim/config -F" +#echo + +#frequency="$8e6" + +#echo "Note that the 'Tuned to' frequency will be different from the chosen frequency due to the way SDRs work." + +#echo + +echo +echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback" +echo + +cd /home/pi/Desktop/PacSatGround_0.46m_linux/ + +setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" & + +#direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" + + +echo "Don't close the direwolf-pacsat-loopback window or the Pacsatsim will stop running." + +#cd /home/pi/Desktop/PacSatGround_0.46m_linux/ + +#sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" + +cd + +#sudo systemctl stop pacsatsim + +sleep 10 + +#echo "Stopping Pacsatsim" + +#$SHELL + + + diff --git a/pacsatsim-d.sh b/pacsatsim-d.sh new file mode 100755 index 00000000..5f2e717e --- /dev/null +++ b/pacsatsim-d.sh @@ -0,0 +1,204 @@ +#!/bin/bash + +# script to auto decode packet using rtl_fm and Direwolf and run Pacsat + +export LD_LIBRARY_PATH=/mnt/usb-disk/ariss/lib:/usr/local/lib/iors_common:$LD_LIBRARY_PATH + +#sudo systemctl stop cubesatsim + +#sudo systemctl stop transmit + +sudo systemctl stop command &>/dev/null + +sudo modprobe snd-aloop + +#sudo systemctl stop openwebrx + +#sudo systemctl stop rtl_tcp &>/dev/null + +#pkill -o chromium &>/dev/null + +#sudo killall -9 rtl_fm &>/dev/null + +#sudo killall -9 direwolf &>/dev/null + +#udo killall -9 aplay &>/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 + +#sudo killall -9 zenity &>/dev/null + +echo + +#frequency=$(zenity --list 2>/dev/null --width=410 --height=360 --title="Packet Decoding with Direwolf" --text="Choose the frequency for packet decoding" --column="kHz" --column="Application" 144390 "APRS US 2m" 434900 "CubeSatSim" 144800 "APRS European 2m" 145175 "APRS Australian 2m" Other "Choose another frequency" 145825 "APRS on ISS" 437100 "Serenity CubeSat 4800 bps" Serenity "Test Serenity CubeSat decoding with WAV file" APRS "Test APRS decoding with CubeSatSim WAV file") + +#echo $frequency + +#if [ -z "$frequency" ]; then + +#echo "No choice made. Exiting." + +#sleep 3 + +#exit + +#echo "Choose the number for the packet decoding option:" +#echo +#echo "1. APRS US 2m (144390 kHz)" +#echo "2. CubeSatSim (434900 kHz)" +#echo "3. APRS European 2m (144800 kHz)" +#echo "4. APRS Australian 2m (145175 kHz)" +#echo "5. APRS on another frequency" +#echo "6. APRS on ISS (145825 kHz)" +#echo "7. Serenity CubeSat 4800 bps (437.1 MHz)" +#echo "8. Test Serenity CubeSat decoding with WAV file" +#echo "9. Test APRS decoding with CubeSatSim WAV file" +#echo + +#read -r choice + +choice=2 + +#fi + +if [ "$choice" = "1" ] || [ "$frequency" = "144390" ]; then + + frequency=144390000 + +elif [ "$choice" = "2" ] || [ "$frequency" = "434900" ] ; then + + frequency=434900000 + echo + echo "If your Pacsat Ground Station is transmitting packets, you will see them here" + echo + +elif [ "$choice" = "3" ] || [ "$frequency" = "144800" ]; then + + frequency=144800000 + +elif [ "$choice" = "4" ] || [ "$frequency" = "145175" ]; then + + frequency=145175000 + +elif [ "$choice" = "5" ] || [ "$frequency" = "Other" ] ; then + + echo + + echo "Enter the frequency in kiloHertz" + + echo + + read -r frequency + + frequency=$frequency"000" + + #echo $frequency + +elif [ "$choice" = "6" ] || [ "$frequency" = "145825" ] ; then + + frequency=145825000 + echo + echo "If the ISS is overhead and in APRS mode (see tracking application such as Gpredict), you will see packets." + echo + +elif [ "$choice" = "7" ] || [ "$frequency" = "437100" ] ; then + + frequency=437100000 + echo + echo "If the Serenity CubeSat is overhead and transmitting (see tracking application such as Gpredict), you will see packets." + echo + +elif [ "$choice" = "8" ] || [ "$frequency" = "Serenity" ] ; then + + echo "A recorded WAV file will play and you should see some packets decoded" + + echo + + value=`aplay -l | grep "Loopback"` + echo "$value" > /dev/null + set -- $value + +# aplay -D hw:0,0 /home/pi/CubeSatSim/groundstation/WAV/SDRSharp_20210830_200034Z_437097377Hz_AF.wav & +# aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/groundstation/WAV/SDRSharp_20210830_200034Z_437097377Hz_AF.wav & + aplay -D hw:0,0 /home/pi/CubeSatSim/groundstation/WAV/beacon_test_2.wav & + aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/groundstation/WAV/beacon_test_2.wav & + + timeout 30 direwolf -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-4800.conf -r 48000 -t 0 + + echo + + echo "Test complete. This window will close in 10 seconds." + + sleep 5 + + exit + +elif [ "$choice" = "8" ] || [ "$frequency" = "APRS" ] ; then + + echo "A recorded APRS WAV file from the CubeSatSim will play and you should see a packet decoded." + + echo + + value=`aplay -l | grep "Loopback"` + echo "$value" > /dev/null + set -- $value + + #aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav & + (while true; do (sleep 2 && aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav &>/dev/null); done) & + + #aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav & + (while true; do (sleep 2 && aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav &>/dev/null); done) & + + timeout 30 direwolf -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf.conf -r 48000 -t 0 + + echo + + echo "Test complete. This window will close in 10 seconds." + + sleep 5 + + exit + +#fi + +fi + +#echo + +#echo "Note that the 'Tuned to' frequency will be different from the chosen frequency due to the way SDRs work." + +echo + +if [ "$choice" = "7" ] || [ "$choice" = "8" ] || [ "$frequency" = "Serenity" ] || [ "$frequency" = "437100000" ] ; then + + echo -e "Auto decoding 4800 bps AX.25 packets on $frequency Hz" + + direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-4800.conf -t 0 & + +else + + echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" + + direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & + +fi + +sleep 5 + +value=`aplay -l | grep "Loopback"` +echo "$value" > /dev/null +set -- $value + +#rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 & + +cd /home/pi/pi_pacsat/Debug + +./pi_pacsat -c pacsat.config -d /home/pi/PacSat + +sleep 5 From cb6d5ea73a7e4db93bebdd95a3236d6267e1f0c3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 09:08:52 -0500 Subject: [PATCH 146/178] Update pacsat-d.sh just run direwolf --- groundstation/pacsat-d.sh | 92 --------------------------------------- 1 file changed, 92 deletions(-) diff --git a/groundstation/pacsat-d.sh b/groundstation/pacsat-d.sh index 59551eb3..8c58dd73 100755 --- a/groundstation/pacsat-d.sh +++ b/groundstation/pacsat-d.sh @@ -1,98 +1,6 @@ #!/bin/bash -# script to auto decode packet using rtl_fm and Direwolf and run Pacsat - -sudo modprobe snd-aloop - -sudo systemctl stop cubesatsim >/dev/null 2>&1 - -sudo systemctl stop transmit >/dev/null 2>&1 - -sudo systemctl stop command >/dev/null 2>&1 - -#/home/pi/CubeSatSim/config -I - -sudo systemctl stop command >/dev/null 2>&1 - -sudo systemctl stop openwebrx >/dev/null 2>&1 - -sudo systemctl stop rtl_tcp >/dev/null 2>&1 - -pkill -o chromium &>/dev/null - -sudo killall -9 rtl_fm &>/dev/null - -#sudo killall -9 direwolf &>/dev/null - -sudo killall -9 sdrpp &>/dev/null - -#sudo killall -9 aplay &>/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 - -sudo killall -9 zenity &>/dev/null - -echo - -#sudo systemctl restart pacsatsim - -#sudo /etc/init.d/alsa-utils stop -#sudo /etc/init.d/alsa-utils start - - -#echo "Waiting 10 seconds for Pacsatsim to start" - -#sleep 10 - -#value=`cat /home/pi/CubeSatSim/sim.cfg` -#echo "$value" > /dev/null -#set -- $value - -#echo "Receive frequency is $8 MHz" -#echo "Transmit frequency is $7 MHz" -#echo -#echo "To change, quit and type CubeSatSim/config -F" -#echo - -#frequency="$8e6" - -#echo "Note that the 'Tuned to' frequency will be different from the chosen frequency due to the way SDRs work." - -#echo - -echo -echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback" -echo - -cd /home/pi/Desktop/PacSatGround_0.46m_linux/ - -setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" & - -#direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & /usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" -echo "Don't close the direwolf-pacsat-loopback window or the Pacsatsim will stop running." - -#cd /home/pi/Desktop/PacSatGround_0.46m_linux/ - -#sudo setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" - -cd - -#sudo systemctl stop pacsatsim - -sleep 10 - -#echo "Stopping Pacsatsim" - -#$SHELL - - From cef6daf1d7a8baf9490f7233fa59b0e62efe4706 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 09:10:13 -0500 Subject: [PATCH 147/178] Update pacsatsim-d.sh just run direwolf --- pacsatsim-d.sh | 201 +------------------------------------------------ 1 file changed, 1 insertion(+), 200 deletions(-) diff --git a/pacsatsim-d.sh b/pacsatsim-d.sh index 5f2e717e..7480af0c 100755 --- a/pacsatsim-d.sh +++ b/pacsatsim-d.sh @@ -1,204 +1,5 @@ #!/bin/bash -# script to auto decode packet using rtl_fm and Direwolf and run Pacsat - -export LD_LIBRARY_PATH=/mnt/usb-disk/ariss/lib:/usr/local/lib/iors_common:$LD_LIBRARY_PATH - -#sudo systemctl stop cubesatsim - -#sudo systemctl stop transmit - -sudo systemctl stop command &>/dev/null - sudo modprobe snd-aloop -#sudo systemctl stop openwebrx - -#sudo systemctl stop rtl_tcp &>/dev/null - -#pkill -o chromium &>/dev/null - -#sudo killall -9 rtl_fm &>/dev/null - -#sudo killall -9 direwolf &>/dev/null - -#udo killall -9 aplay &>/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 - -#sudo killall -9 zenity &>/dev/null - -echo - -#frequency=$(zenity --list 2>/dev/null --width=410 --height=360 --title="Packet Decoding with Direwolf" --text="Choose the frequency for packet decoding" --column="kHz" --column="Application" 144390 "APRS US 2m" 434900 "CubeSatSim" 144800 "APRS European 2m" 145175 "APRS Australian 2m" Other "Choose another frequency" 145825 "APRS on ISS" 437100 "Serenity CubeSat 4800 bps" Serenity "Test Serenity CubeSat decoding with WAV file" APRS "Test APRS decoding with CubeSatSim WAV file") - -#echo $frequency - -#if [ -z "$frequency" ]; then - -#echo "No choice made. Exiting." - -#sleep 3 - -#exit - -#echo "Choose the number for the packet decoding option:" -#echo -#echo "1. APRS US 2m (144390 kHz)" -#echo "2. CubeSatSim (434900 kHz)" -#echo "3. APRS European 2m (144800 kHz)" -#echo "4. APRS Australian 2m (145175 kHz)" -#echo "5. APRS on another frequency" -#echo "6. APRS on ISS (145825 kHz)" -#echo "7. Serenity CubeSat 4800 bps (437.1 MHz)" -#echo "8. Test Serenity CubeSat decoding with WAV file" -#echo "9. Test APRS decoding with CubeSatSim WAV file" -#echo - -#read -r choice - -choice=2 - -#fi - -if [ "$choice" = "1" ] || [ "$frequency" = "144390" ]; then - - frequency=144390000 - -elif [ "$choice" = "2" ] || [ "$frequency" = "434900" ] ; then - - frequency=434900000 - echo - echo "If your Pacsat Ground Station is transmitting packets, you will see them here" - echo - -elif [ "$choice" = "3" ] || [ "$frequency" = "144800" ]; then - - frequency=144800000 - -elif [ "$choice" = "4" ] || [ "$frequency" = "145175" ]; then - - frequency=145175000 - -elif [ "$choice" = "5" ] || [ "$frequency" = "Other" ] ; then - - echo - - echo "Enter the frequency in kiloHertz" - - echo - - read -r frequency - - frequency=$frequency"000" - - #echo $frequency - -elif [ "$choice" = "6" ] || [ "$frequency" = "145825" ] ; then - - frequency=145825000 - echo - echo "If the ISS is overhead and in APRS mode (see tracking application such as Gpredict), you will see packets." - echo - -elif [ "$choice" = "7" ] || [ "$frequency" = "437100" ] ; then - - frequency=437100000 - echo - echo "If the Serenity CubeSat is overhead and transmitting (see tracking application such as Gpredict), you will see packets." - echo - -elif [ "$choice" = "8" ] || [ "$frequency" = "Serenity" ] ; then - - echo "A recorded WAV file will play and you should see some packets decoded" - - echo - - value=`aplay -l | grep "Loopback"` - echo "$value" > /dev/null - set -- $value - -# aplay -D hw:0,0 /home/pi/CubeSatSim/groundstation/WAV/SDRSharp_20210830_200034Z_437097377Hz_AF.wav & -# aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/groundstation/WAV/SDRSharp_20210830_200034Z_437097377Hz_AF.wav & - aplay -D hw:0,0 /home/pi/CubeSatSim/groundstation/WAV/beacon_test_2.wav & - aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/groundstation/WAV/beacon_test_2.wav & - - timeout 30 direwolf -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-4800.conf -r 48000 -t 0 - - echo - - echo "Test complete. This window will close in 10 seconds." - - sleep 5 - - exit - -elif [ "$choice" = "8" ] || [ "$frequency" = "APRS" ] ; then - - echo "A recorded APRS WAV file from the CubeSatSim will play and you should see a packet decoded." - - echo - - value=`aplay -l | grep "Loopback"` - echo "$value" > /dev/null - set -- $value - - #aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav & - (while true; do (sleep 2 && aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav &>/dev/null); done) & - - #aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav & - (while true; do (sleep 2 && aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav &>/dev/null); done) & - - timeout 30 direwolf -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf.conf -r 48000 -t 0 - - echo - - echo "Test complete. This window will close in 10 seconds." - - sleep 5 - - exit - -#fi - -fi - -#echo - -#echo "Note that the 'Tuned to' frequency will be different from the chosen frequency due to the way SDRs work." - -echo - -if [ "$choice" = "7" ] || [ "$choice" = "8" ] || [ "$frequency" = "Serenity" ] || [ "$frequency" = "437100000" ] ; then - - echo -e "Auto decoding 4800 bps AX.25 packets on $frequency Hz" - - direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-4800.conf -t 0 & - -else - - echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" - - direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & - -fi - -sleep 5 - -value=`aplay -l | grep "Loopback"` -echo "$value" > /dev/null -set -- $value - -#rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 & - -cd /home/pi/pi_pacsat/Debug - -./pi_pacsat -c pacsat.config -d /home/pi/PacSat - -sleep 5 +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 From 7c2cfc9b8ba9568897601decc36d60addbaf69f5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 09:13:24 -0500 Subject: [PATCH 148/178] Update pacsat.sh don't start direwolf --- groundstation/pacsat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 59551eb3..57f98fd9 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -75,10 +75,10 @@ cd /home/pi/Desktop/PacSatGround_0.46m_linux/ setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" & #direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & -/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" +#/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" -echo "Don't close the direwolf-pacsat-loopback window or the Pacsatsim will stop running." +#echo "Don't close the direwolf-pacsat-loopback window or the Pacsatsim will stop running." #cd /home/pi/Desktop/PacSatGround_0.46m_linux/ From 034ffeec911cb0338155e873a06474bb237775e1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 09:14:23 -0500 Subject: [PATCH 149/178] Update pacsatsim.sh don't start direwolf --- pacsatsim.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 5f2e717e..a1998cb0 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -183,10 +183,10 @@ if [ "$choice" = "7" ] || [ "$choice" = "8" ] || [ "$frequency" = "Serenity" ] else - echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" - - direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & +# echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" +# direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & + echo fi sleep 5 From 25da37ea525dd04f834d0ef27a6fd53b81501615 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 09:19:15 -0500 Subject: [PATCH 150/178] Update direwolf-pacsatsim-loopback.conf change full duplex on --- direwolf/direwolf-pacsatsim-loopback.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim-loopback.conf b/direwolf/direwolf-pacsatsim-loopback.conf index 581d30cb..d1bcf78d 100644 --- a/direwolf/direwolf-pacsatsim-loopback.conf +++ b/direwolf/direwolf-pacsatsim-loopback.conf @@ -3,6 +3,6 @@ ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=1 MYCALL AMSAT-12 CHANNEL 0 MODEM 1200 -FULLDUP OFF +FULLDUP ON TXDELAY 15 #FIX_BITS 1 AX25 From 76d8323dc0638eb6c94aa81e63ad75cfff389bf8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 12:31:32 -0500 Subject: [PATCH 151/178] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ec10273..bdac8141 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ There are several hardware versions and software branches to go with them - see See the Wiki Software Install page for more details: https://github.com/alanbjohnston/CubeSatSim/wiki/2.-Software-Install. The software runs on any Raspberry Pi including the Raspberry Pi 4B, 3B, 3B+, Pi Zero, Pi Zero W, or Pi Zero 2 W. -There are two ways to get the CubeSatSim software for your Pi. +There are two ways to get the CubeSatSim(TM) software for your Pi. One option is to download the disk image file and write it to a 16GB micro SD card or larger. The image is based on Raspberry Pi OS (Rasbian) Lite, dated December 2020. All software is installed, you just need to login to change your password and set your amateur radio callsign if you have one. You can run the ./update.sh script to update all packages and update and compile the latest CubeSatSim software. From 259419573f949dc3eb5b6e1e18fbcc4d39a46637 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 19:04:23 -0500 Subject: [PATCH 152/178] test script to launch 4 windows --- pacsat-test.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 pacsat-test.sh diff --git a/pacsat-test.sh b/pacsat-test.sh new file mode 100755 index 00000000..8c58dd73 --- /dev/null +++ b/pacsat-test.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" + + + From 509fa014c50c1462b58ff5ac46b27bbd3c5b229a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 19:07:43 -0500 Subject: [PATCH 153/178] Update pacsat-test.sh add 4 windows --- pacsat-test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pacsat-test.sh b/pacsat-test.sh index 8c58dd73..1943056f 100755 --- a/pacsat-test.sh +++ b/pacsat-test.sh @@ -1,6 +1,17 @@ #!/bin/bash +/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/pacsatsim-d.sh" + +sleep 1 + +/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/pacsatsim.sh" + +sleep 1 + /usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" +sleep 1 + +/usr/bin/x-terminal-emulator --geometry=120x40 -e /home/pi/CubeSatSim/groundstation/pacsat.sh" From ff7846985878b5c556599033e45a2c541b916d48 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 19:09:15 -0500 Subject: [PATCH 154/178] Update pacsat-test.sh add bash --- pacsat-test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pacsat-test.sh b/pacsat-test.sh index 1943056f..0957c4a0 100755 --- a/pacsat-test.sh +++ b/pacsat-test.sh @@ -1,10 +1,10 @@ #!/bin/bash -/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/pacsatsim-d.sh" +/usr/bin/x-terminal-emulator --geometry=120x40 -e "bash /home/pi/CubeSatSim/pacsatsim-d.sh" sleep 1 -/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/pacsatsim.sh" +/usr/bin/x-terminal-emulator --geometry=120x40 -e "bash /home/pi/CubeSatSim/pacsatsim.sh" sleep 1 @@ -12,6 +12,6 @@ sleep 1 sleep 1 -/usr/bin/x-terminal-emulator --geometry=120x40 -e /home/pi/CubeSatSim/groundstation/pacsat.sh" +/usr/bin/x-terminal-emulator --geometry=120x40 -e "bash /home/pi/CubeSatSim/groundstation/pacsat.sh" From 95eb85e88df4d54ef3c96e88770a2a5cb9ca6690 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 19:11:40 -0500 Subject: [PATCH 155/178] Update pacsat.sh removed & --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 57f98fd9..4daff914 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -72,7 +72,7 @@ echo cd /home/pi/Desktop/PacSatGround_0.46m_linux/ -setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" & +setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" # removed & #direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & #/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" From 1d6d13814958b9525809e13e79f41ac2d1e05ee2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Feb 2025 15:44:41 -0500 Subject: [PATCH 156/178] Update direwolf-pacsatsim-jp14.conf making the same as loopback but with Device --- direwolf/direwolf-pacsatsim-jp14.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/direwolf/direwolf-pacsatsim-jp14.conf b/direwolf/direwolf-pacsatsim-jp14.conf index 64c7bfe5..36891485 100644 --- a/direwolf/direwolf-pacsatsim-jp14.conf +++ b/direwolf/direwolf-pacsatsim-jp14.conf @@ -1,8 +1,8 @@ -ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=1 +ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 #PTT GPIO 20 -MYCALL AMSAT +MYCALL AMSAT-12 CHANNEL 0 MODEM 1200 -FULLDUP OFF -TXDELAY 75 +FULLDUP ON +TXDELAY 15 #FIX_BITS 1 AX25 From e735f7487fe9c2a78907248fb15a146062f04cc9 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Feb 2025 15:47:00 -0500 Subject: [PATCH 157/178] Update direwolf-fm-pacsat-jp14.conf making same as loopback but with Device --- groundstation/direwolf/direwolf-fm-pacsat-jp14.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf index 6e4fc073..df741a62 100644 --- a/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf @@ -1,10 +1,10 @@ MYCALL AMSAT -ADEVICE plughw:CARD=Loopback,DEV=0 plughw:CARD=Loopback,DEV=1 +ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 #PTT GPIO 20 CHANNEL 0 MODEM 1200 KISSPORT 8100 +AGWPORT 8002 FULLDUP OFF TXDELAY 30 #FIX_BITS 1 AX25 -KISSPORT 8001 From b0ed82ded4b2b5e5033cd3d6018d206303680f89 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Feb 2025 16:05:12 -0500 Subject: [PATCH 158/178] adding direwolf jp14 script --- groundstation/pacsat-dj.sh | 6 ++++++ pacsatsim-dj.sh | 5 +++++ 2 files changed, 11 insertions(+) create mode 100755 groundstation/pacsat-dj.sh create mode 100755 pacsatsim-dj.sh diff --git a/groundstation/pacsat-dj.sh b/groundstation/pacsat-dj.sh new file mode 100755 index 00000000..b4fec439 --- /dev/null +++ b/groundstation/pacsat-dj.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-jp14.conf -t 0" + + + diff --git a/pacsatsim-dj.sh b/pacsatsim-dj.sh new file mode 100755 index 00000000..3999eb8d --- /dev/null +++ b/pacsatsim-dj.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +sudo modprobe snd-aloop + +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-jp14.conf -t 0 From 4ae4f08851a65768696c923ab63ec412c2980f2c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Feb 2025 16:19:30 -0500 Subject: [PATCH 159/178] Update pacsat-dj.sh add fm --- groundstation/pacsat-dj.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat-dj.sh b/groundstation/pacsat-dj.sh index b4fec439..c7b4ea04 100755 --- a/groundstation/pacsat-dj.sh +++ b/groundstation/pacsat-dj.sh @@ -1,6 +1,6 @@ #!/bin/bash -/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-jp14.conf -t 0" +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-fm-jp14.conf -t 0" From 105d1312ddf6b08dee0241b041ce90d20ec14480 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Feb 2025 16:19:54 -0500 Subject: [PATCH 160/178] Update pacsat-test.sh add fm --- pacsat-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsat-test.sh b/pacsat-test.sh index 0957c4a0..71d0b036 100755 --- a/pacsat-test.sh +++ b/pacsat-test.sh @@ -8,7 +8,7 @@ sleep 1 sleep 1 -/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-fm-loopback.conf -t 0" sleep 1 From 06fd0e6955643a95fe7e2cc7b9a7f5ee955e173d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Feb 2025 16:21:21 -0500 Subject: [PATCH 161/178] Update pacsat-test.sh add fm --- pacsat-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsat-test.sh b/pacsat-test.sh index 71d0b036..dd43979c 100755 --- a/pacsat-test.sh +++ b/pacsat-test.sh @@ -8,7 +8,7 @@ sleep 1 sleep 1 -/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-fm-loopback.conf -t 0" +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-loopback.conf -t 0" sleep 1 From c0ebd632c6558952b6a959ce24d0b503ba83a902 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Feb 2025 16:21:59 -0500 Subject: [PATCH 162/178] Update pacsat-dj.sh add fm --- groundstation/pacsat-dj.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat-dj.sh b/groundstation/pacsat-dj.sh index c7b4ea04..7a49576e 100755 --- a/groundstation/pacsat-dj.sh +++ b/groundstation/pacsat-dj.sh @@ -1,6 +1,6 @@ #!/bin/bash -/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-fm-jp14.conf -t 0" +/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0" From 1e9fb2e6d612ac571de97a3cd1c405528265dd22 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 10:50:43 -0400 Subject: [PATCH 163/178] update to use USB device --- .../direwolf/direwolf-fm-pacsat-jp14-device.conf | 10 ++++++++++ pacsatsim-djf.sh | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 groundstation/direwolf/direwolf-fm-pacsat-jp14-device.conf create mode 100755 pacsatsim-djf.sh diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14-device.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14-device.conf new file mode 100644 index 00000000..df741a62 --- /dev/null +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14-device.conf @@ -0,0 +1,10 @@ +MYCALL AMSAT +ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 +#PTT GPIO 20 +CHANNEL 0 +MODEM 1200 +KISSPORT 8100 +AGWPORT 8002 +FULLDUP OFF +TXDELAY 30 +#FIX_BITS 1 AX25 diff --git a/pacsatsim-djf.sh b/pacsatsim-djf.sh new file mode 100755 index 00000000..1d0c3036 --- /dev/null +++ b/pacsatsim-djf.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +sudo modprobe snd-aloop + +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 From 065e8be4d8bab44a808d092075f654382872bbf7 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 10:59:49 -0400 Subject: [PATCH 164/178] from pacsatsim half duplex --- direwolf/direwolf-pacsatsim-jp14-half.conf | 9 +++++++++ .../direwolf/direwolf-fm-pacsat-jp14-ptt.conf | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 direwolf/direwolf-pacsatsim-jp14-half.conf create mode 100644 groundstation/direwolf/direwolf-fm-pacsat-jp14-ptt.conf diff --git a/direwolf/direwolf-pacsatsim-jp14-half.conf b/direwolf/direwolf-pacsatsim-jp14-half.conf new file mode 100644 index 00000000..d6a05876 --- /dev/null +++ b/direwolf/direwolf-pacsatsim-jp14-half.conf @@ -0,0 +1,9 @@ +ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 +#PTT GPIO 20 +MYCALL AMSAT-12 +CHANNEL 0 +MODEM 1200 +#FULLDUP ON +FULLDUP OFF +TXDELAY 15 +#FIX_BITS 1 AX25 diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14-ptt.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14-ptt.conf new file mode 100644 index 00000000..279b7e0e --- /dev/null +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14-ptt.conf @@ -0,0 +1,10 @@ +MYCALL AMSAT +ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 +PTT GPIO 20 +CHANNEL 0 +MODEM 1200 +KISSPORT 8100 +AGWPORT 8002 +FULLDUP OFF +TXDELAY 30 +#FIX_BITS 1 AX25 From 227c88a893cd7635070f06e6dc9a678d8142c508 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 11:10:36 -0400 Subject: [PATCH 165/178] Update pacsatsim-djf.sh change to half duplex --- pacsatsim-djf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim-djf.sh b/pacsatsim-djf.sh index 1d0c3036..fdd358bb 100755 --- a/pacsatsim-djf.sh +++ b/pacsatsim-djf.sh @@ -2,4 +2,4 @@ sudo modprobe snd-aloop -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14-half.conf -t 0 From b3df13961419b2be641a841d5b55a138ae91ae69 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 11:12:08 -0400 Subject: [PATCH 166/178] Update pacsatsim-djf.sh revert --- pacsatsim-djf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim-djf.sh b/pacsatsim-djf.sh index fdd358bb..1d0c3036 100755 --- a/pacsatsim-djf.sh +++ b/pacsatsim-djf.sh @@ -2,4 +2,4 @@ sudo modprobe snd-aloop -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14-half.conf -t 0 +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 From dd3346792d9758436856e37472190002d13e3e8c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 11:12:39 -0400 Subject: [PATCH 167/178] Update pacsatsim-dj.sh changed pacsatsim to half duplex --- pacsatsim-dj.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim-dj.sh b/pacsatsim-dj.sh index 3999eb8d..888124e6 100755 --- a/pacsatsim-dj.sh +++ b/pacsatsim-dj.sh @@ -2,4 +2,4 @@ sudo modprobe snd-aloop -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-jp14.conf -t 0 +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-jp14-half.conf -t 0 From 4210c9ad4ab9de6a35fd4065b09f3d474518a387 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 16:37:15 -0400 Subject: [PATCH 168/178] Create direwolf-pacsatsim-jp14-loop.conf --- direwolf/direwolf-pacsatsim-jp14-loop.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 direwolf/direwolf-pacsatsim-jp14-loop.conf diff --git a/direwolf/direwolf-pacsatsim-jp14-loop.conf b/direwolf/direwolf-pacsatsim-jp14-loop.conf new file mode 100644 index 00000000..6b1b9b34 --- /dev/null +++ b/direwolf/direwolf-pacsatsim-jp14-loop.conf @@ -0,0 +1,8 @@ +ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Loopback,DEV=0 +#PTT GPIO 20 +MYCALL AMSAT-12 +CHANNEL 0 +MODEM 1200 +FULLDUP ON +TXDELAY 15 +#FIX_BITS 1 AX25 From 0089231f42c352e272b27298ea8bb46076234ef4 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 16:40:06 -0400 Subject: [PATCH 169/178] Update pacsatsim-d.sh fm and loopback --- pacsatsim-d.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim-d.sh b/pacsatsim-d.sh index 7480af0c..33ea4ad5 100755 --- a/pacsatsim-d.sh +++ b/pacsatsim-d.sh @@ -2,4 +2,4 @@ sudo modprobe snd-aloop -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-j14-loopback.conf -t 0 From 03fe5a278fe2e1fcf749dffe4d1a105f62b46050 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 16:42:15 -0400 Subject: [PATCH 170/178] Update pacsatsim-d.sh change to loop --- pacsatsim-d.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim-d.sh b/pacsatsim-d.sh index 33ea4ad5..bc3bd322 100755 --- a/pacsatsim-d.sh +++ b/pacsatsim-d.sh @@ -2,4 +2,4 @@ sudo modprobe snd-aloop -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-j14-loopback.conf -t 0 +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-j14-loop.conf -t 0 From c52a6f3e0ca968513aabd1efcca3de4ba0fdeb44 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 16:44:03 -0400 Subject: [PATCH 171/178] Update pacsatsim-d.sh fix filename --- pacsatsim-d.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim-d.sh b/pacsatsim-d.sh index bc3bd322..f7c3e84e 100755 --- a/pacsatsim-d.sh +++ b/pacsatsim-d.sh @@ -2,4 +2,4 @@ sudo modprobe snd-aloop -direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-j14-loop.conf -t 0 +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-jp14-loop.conf -t 0 From 4fcb86904f2d19e881b677b3c0f7d8cf465dd0cb Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 16:56:46 -0400 Subject: [PATCH 172/178] Create direwolf-fm-pacsat-jp14-loop.conf --- .../direwolf/direwolf-fm-pacsat-jp14-loop.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 groundstation/direwolf/direwolf-fm-pacsat-jp14-loop.conf diff --git a/groundstation/direwolf/direwolf-fm-pacsat-jp14-loop.conf b/groundstation/direwolf/direwolf-fm-pacsat-jp14-loop.conf new file mode 100644 index 00000000..cac3fffe --- /dev/null +++ b/groundstation/direwolf/direwolf-fm-pacsat-jp14-loop.conf @@ -0,0 +1,10 @@ +MYCALL AMSAT +ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Loopback,DEV=0 +#PTT GPIO 20 +CHANNEL 0 +MODEM 1200 +KISSPORT 8100 +AGWPORT 8002 +FULLDUP OFF +TXDELAY 30 +#FIX_BITS 1 AX25 From 1265d27020cc437a4f7669cd4a6c16174ddd0eb7 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 31 Oct 2025 16:59:17 -0400 Subject: [PATCH 173/178] Update pacsat-d.sh update with j14-loop --- groundstation/pacsat-d.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/pacsat-d.sh b/groundstation/pacsat-d.sh index 8c58dd73..e1569ce7 100755 --- a/groundstation/pacsat-d.sh +++ b/groundstation/pacsat-d.sh @@ -1,6 +1,6 @@ #!/bin/bash -/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" - +sudo modprobe snd-aloop +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14-loop.conf -t 0 From 489e2eab1ec9eba8461de369034c443b6219f1a5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 1 Nov 2025 22:53:28 -0400 Subject: [PATCH 174/178] Update pacsat.sh added rpitx transmit and direwolf --- groundstation/pacsat.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 4daff914..38799d49 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -67,18 +67,26 @@ echo #echo echo -echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback" +echo "The Pacsat Ground Station are running on this Pi using FM receiver and rpitx transmitter" echo -cd /home/pi/Desktop/PacSatGround_0.46m_linux/ +#cd /home/pi/Desktop/PacSatGround_0.46m_linux/ -setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" # removed & +#setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" # removed & #direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0 # & #/usr/bin/x-terminal-emulator --geometry=120x40 -e "direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0" +/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/groundstation/pacsat-d.sh" + +arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 435045 & + +echo "Don't close the direwolf window or the Pacsatsim will stop running." + +cd /home/pi/Desktop/PacSatGround_0.46m_linux/ + +setsid java -Xmx512M -jar PacSatGround.jar "/home/pi/PacSatGround" # removed & -#echo "Don't close the direwolf-pacsat-loopback window or the Pacsatsim will stop running." #cd /home/pi/Desktop/PacSatGround_0.46m_linux/ From 53a05e66e9fcaf15477c304c6a1ac87204501193 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 1 Nov 2025 23:01:01 -0400 Subject: [PATCH 175/178] Update pacsatsim.sh add pacsatsim-d.sh and rpitx --- pacsatsim.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pacsatsim.sh b/pacsatsim.sh index a1998cb0..d0bf0fc8 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -186,6 +186,13 @@ else # echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" # direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & + + /usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/pacsatsim-d.sh" + + arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 434900 & + + echo "Don't close the direwolf window or the Pacsatsim will stop running." + echo fi From 94041dac3e149b4cd59e5163d81582ee9d107931 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 2 Nov 2025 08:46:23 -0500 Subject: [PATCH 176/178] fix pacsatsim direwolf configs --- direwolf/direwolf-pacsatsim-jp14-loop.conf | 2 +- direwolf/direwolf-pacsatsim-jp14.conf | 2 +- direwolf/direwolf-pacsatsim-loopback.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/direwolf/direwolf-pacsatsim-jp14-loop.conf b/direwolf/direwolf-pacsatsim-jp14-loop.conf index 6b1b9b34..b2a5fb9e 100644 --- a/direwolf/direwolf-pacsatsim-jp14-loop.conf +++ b/direwolf/direwolf-pacsatsim-jp14-loop.conf @@ -1,5 +1,5 @@ ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Loopback,DEV=0 -#PTT GPIO 20 +PTT GPIO -20 MYCALL AMSAT-12 CHANNEL 0 MODEM 1200 diff --git a/direwolf/direwolf-pacsatsim-jp14.conf b/direwolf/direwolf-pacsatsim-jp14.conf index 36891485..da583428 100644 --- a/direwolf/direwolf-pacsatsim-jp14.conf +++ b/direwolf/direwolf-pacsatsim-jp14.conf @@ -1,5 +1,5 @@ ADEVICE plughw:CARD=Device,DEV=0 plughw:CARD=Device,DEV=0 -#PTT GPIO 20 +PTT GPIO -20 MYCALL AMSAT-12 CHANNEL 0 MODEM 1200 diff --git a/direwolf/direwolf-pacsatsim-loopback.conf b/direwolf/direwolf-pacsatsim-loopback.conf index d1bcf78d..e96bd980 100644 --- a/direwolf/direwolf-pacsatsim-loopback.conf +++ b/direwolf/direwolf-pacsatsim-loopback.conf @@ -1,5 +1,5 @@ ADEVICE plughw:CARD=Loopback,DEV=1 plughw:CARD=Loopback,DEV=1 -#PTT GPIO 20 +PTT GPIO -20 MYCALL AMSAT-12 CHANNEL 0 MODEM 1200 From dc697a83068547f0c02fe6b81b39787ca93e923a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 2 Nov 2025 08:47:54 -0500 Subject: [PATCH 177/178] add fm scripts --- pacsatsim-df.sh | 5 ++ pacsatsim-f.sh | 211 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 216 insertions(+) create mode 100755 pacsatsim-df.sh create mode 100755 pacsatsim-f.sh diff --git a/pacsatsim-df.sh b/pacsatsim-df.sh new file mode 100755 index 00000000..3999eb8d --- /dev/null +++ b/pacsatsim-df.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +sudo modprobe snd-aloop + +direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-jp14.conf -t 0 diff --git a/pacsatsim-f.sh b/pacsatsim-f.sh new file mode 100755 index 00000000..2a8bb965 --- /dev/null +++ b/pacsatsim-f.sh @@ -0,0 +1,211 @@ +#!/bin/bash + +# script to auto decode packet using rtl_fm and Direwolf and run Pacsat + +export LD_LIBRARY_PATH=/mnt/usb-disk/ariss/lib:/usr/local/lib/iors_common:$LD_LIBRARY_PATH + +#sudo systemctl stop cubesatsim + +#sudo systemctl stop transmit + +sudo systemctl stop command &>/dev/null + +sudo modprobe snd-aloop + +#sudo systemctl stop openwebrx + +#sudo systemctl stop rtl_tcp &>/dev/null + +#pkill -o chromium &>/dev/null + +#sudo killall -9 rtl_fm &>/dev/null + +#sudo killall -9 direwolf &>/dev/null + +#udo killall -9 aplay &>/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 + +#sudo killall -9 zenity &>/dev/null + +echo + +#frequency=$(zenity --list 2>/dev/null --width=410 --height=360 --title="Packet Decoding with Direwolf" --text="Choose the frequency for packet decoding" --column="kHz" --column="Application" 144390 "APRS US 2m" 434900 "CubeSatSim" 144800 "APRS European 2m" 145175 "APRS Australian 2m" Other "Choose another frequency" 145825 "APRS on ISS" 437100 "Serenity CubeSat 4800 bps" Serenity "Test Serenity CubeSat decoding with WAV file" APRS "Test APRS decoding with CubeSatSim WAV file") + +#echo $frequency + +#if [ -z "$frequency" ]; then + +#echo "No choice made. Exiting." + +#sleep 3 + +#exit + +#echo "Choose the number for the packet decoding option:" +#echo +#echo "1. APRS US 2m (144390 kHz)" +#echo "2. CubeSatSim (434900 kHz)" +#echo "3. APRS European 2m (144800 kHz)" +#echo "4. APRS Australian 2m (145175 kHz)" +#echo "5. APRS on another frequency" +#echo "6. APRS on ISS (145825 kHz)" +#echo "7. Serenity CubeSat 4800 bps (437.1 MHz)" +#echo "8. Test Serenity CubeSat decoding with WAV file" +#echo "9. Test APRS decoding with CubeSatSim WAV file" +#echo + +#read -r choice + +choice=2 + +#fi + +if [ "$choice" = "1" ] || [ "$frequency" = "144390" ]; then + + frequency=144390000 + +elif [ "$choice" = "2" ] || [ "$frequency" = "434900" ] ; then + + frequency=434900000 + echo + echo "If your Pacsat Ground Station is transmitting packets, you will see them here" + echo + +elif [ "$choice" = "3" ] || [ "$frequency" = "144800" ]; then + + frequency=144800000 + +elif [ "$choice" = "4" ] || [ "$frequency" = "145175" ]; then + + frequency=145175000 + +elif [ "$choice" = "5" ] || [ "$frequency" = "Other" ] ; then + + echo + + echo "Enter the frequency in kiloHertz" + + echo + + read -r frequency + + frequency=$frequency"000" + + #echo $frequency + +elif [ "$choice" = "6" ] || [ "$frequency" = "145825" ] ; then + + frequency=145825000 + echo + echo "If the ISS is overhead and in APRS mode (see tracking application such as Gpredict), you will see packets." + echo + +elif [ "$choice" = "7" ] || [ "$frequency" = "437100" ] ; then + + frequency=437100000 + echo + echo "If the Serenity CubeSat is overhead and transmitting (see tracking application such as Gpredict), you will see packets." + echo + +elif [ "$choice" = "8" ] || [ "$frequency" = "Serenity" ] ; then + + echo "A recorded WAV file will play and you should see some packets decoded" + + echo + + value=`aplay -l | grep "Loopback"` + echo "$value" > /dev/null + set -- $value + +# aplay -D hw:0,0 /home/pi/CubeSatSim/groundstation/WAV/SDRSharp_20210830_200034Z_437097377Hz_AF.wav & +# aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/groundstation/WAV/SDRSharp_20210830_200034Z_437097377Hz_AF.wav & + aplay -D hw:0,0 /home/pi/CubeSatSim/groundstation/WAV/beacon_test_2.wav & + aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/groundstation/WAV/beacon_test_2.wav & + + timeout 30 direwolf -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-4800.conf -r 48000 -t 0 + + echo + + echo "Test complete. This window will close in 10 seconds." + + sleep 5 + + exit + +elif [ "$choice" = "8" ] || [ "$frequency" = "APRS" ] ; then + + echo "A recorded APRS WAV file from the CubeSatSim will play and you should see a packet decoded." + + echo + + value=`aplay -l | grep "Loopback"` + echo "$value" > /dev/null + set -- $value + + #aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav & + (while true; do (sleep 2 && aplay -D hw:0,0 /home/pi/CubeSatSim/telem.wav &>/dev/null); done) & + + #aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav & + (while true; do (sleep 2 && aplay -D hw:${2:0:1},0,0 /home/pi/CubeSatSim/telem.wav &>/dev/null); done) & + + timeout 30 direwolf -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf.conf -r 48000 -t 0 + + echo + + echo "Test complete. This window will close in 10 seconds." + + sleep 5 + + exit + +#fi + +fi + +#echo + +#echo "Note that the 'Tuned to' frequency will be different from the chosen frequency due to the way SDRs work." + +echo + +if [ "$choice" = "7" ] || [ "$choice" = "8" ] || [ "$frequency" = "Serenity" ] || [ "$frequency" = "437100000" ] ; then + + echo -e "Auto decoding 4800 bps AX.25 packets on $frequency Hz" + + direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-4800.conf -t 0 & + +else + +# echo -e "Auto decoding APRS Pacsat packets on $frequency Hz" + +# direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/direwolf/direwolf-pacsatsim-loopback.conf -t 0 & + + /usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/pacsatsim-df.sh" + +### arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 434900 & + + echo "Don't close the direwolf window or the Pacsatsim will stop running." + + echo +fi + +sleep 5 + +value=`aplay -l | grep "Loopback"` +echo "$value" > /dev/null +set -- $value + +#rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 & + +cd /home/pi/pi_pacsat/Debug + +./pi_pacsat -c pacsat.config -d /home/pi/PacSat + +sleep 5 From 3f2c43fb3e89eb646964bd24786a74ab2be37b32 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 2 Nov 2025 13:18:23 -0500 Subject: [PATCH 178/178] Update transmit.py fixed pacsatsim and pacsat modes --- transmit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transmit.py b/transmit.py index 7d47f19a..c9e1450d 100644 --- a/transmit.py +++ b/transmit.py @@ -426,10 +426,10 @@ if __name__ == "__main__": elif (mode == 'p'): print("Pacsat") # system('/home/pi/CubeSatSim/pacsatsim.sh') - system('sudo systemctl restart pacsatsim') +# system('sudo systemctl restart pacsatsim') while True: sleep(30) - elif (mode == 'p'): + elif (mode == 'P'): print("Pacsat Ground Station") while True: sleep(30)