From b42985527a1a4ce84998c1a2488c5df591e4b0d2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Feb 2025 08:40:32 -0500 Subject: [PATCH 01/13] 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 02/13] 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 03/13] 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 04/13] 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 05/13] 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 06/13] 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 07/13] 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 08/13] 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 09/13] 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 10/13] 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 11/13] 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 12/13] 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 13/13] 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"