From 9d8e6635fa1b6ef0947ecf7f3a9b56c0320f58a1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 3 Jun 2026 17:34:56 -0400 Subject: [PATCH] Update pacsat.sh added 2a and 3a for no sound card --- groundstation/pacsat.sh | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index f66bc709..fe9c5bf4 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -231,9 +231,9 @@ else if [ "$lpf" = "1" ] ; then - if [ "$txc" = "1" ] ; then + if [ "$txc" = "1" ] && [ "$soundcard" = "1"] ; then - if [ "$rpitx" = "1" ]; then + if [ "$rpitx" = "1" ] ; then echo "2: Using FM for Receive and rpitx for Transmit" ADEVICE="ADEVICE shared_mic plughw:CARD=Loopback,DEV=0" @@ -247,13 +247,41 @@ else fi + elif [ "$txc" = "1" ] && [ "$soundcard" = "0"] ; then + + if [ "$rtl" = "1" ]; then + + if [ "$rpitx" = "1" ]; then + + echo "2b: Using RTL-SDR for Receive and rpitx for Transmit" + start-rtl + # ADEVICE="ADEVICE shared_mic plughw:CARD=Loopback,DEV=0" + ADEVICE="ADEVICE plughw:CARD=Loopback,DEV=1" + PTT="PTT GPIOD gpiochip0 17" + + else + + echo "3b: RTL-SDR for Receive Only" + ADEVICE="ADEVICE plughw:CARD=Loopback,DEV=1" + PTT="#PTT GPIOD gpiochip0 17" + + fi + + else + + echo "Won't work since can't receive with Sound Card or RTL-SDR" + sleep 10 + exit + + fi else if [ "$rtl" = "1" ]; then echo "4: Using RTL-SDR for Receive and rpitx for Transmit" start-rtl - ADEVICE="ADEVICE shared_mic plughw:CARD=Loopback,DEV=0" +# ADEVICE="ADEVICE shared_mic plughw:CARD=Loopback,DEV=0" + ADEVICE="ADEVICE plughw:CARD=Loopback,DEV=1" PTT="PTT GPIOD gpiochip0 17" else