From 4b282bb2e32b73d8e7187a4c3f75c9aac877959a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Aug 2026 10:29:01 -0400 Subject: [PATCH 01/12] Update direwolf-pacsat.conf fix direwolf warnings --- groundstation/direwolf/direwolf-pacsat.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/direwolf/direwolf-pacsat.conf b/groundstation/direwolf/direwolf-pacsat.conf index 3b9d337b..0d4ba0e1 100644 --- a/groundstation/direwolf/direwolf-pacsat.conf +++ b/groundstation/direwolf/direwolf-pacsat.conf @@ -3,7 +3,7 @@ MODEM 1200 KISSPORT 8100 AGWPORT 8002 DWAIT 20 -SLOTTIME 300 +SLOTTIME 10 PERSIST 63 -TXDELAY 1000 +TXDELAY 30 FULLDUP OFF From eef463671c8c0e88e6924f3be85b8c79b0cf1149 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Aug 2026 10:30:38 -0400 Subject: [PATCH 02/12] Update asound.conf add MicVolume --- asound.conf | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/asound.conf b/asound.conf index a752802a..82947c47 100644 --- a/asound.conf +++ b/asound.conf @@ -33,16 +33,28 @@ pcm.shared_speaker { } # Recording with input mixing -pcm.shared_mic { +pcm.shared_mic_raw { type dsnoop + ipc_key 2048 ipc_perm 0666 + slave { pcm "hw:CARD=Device,DEV=0" -# channels 1 + channels 1 rate 48000 - period_time 0 period_size 1024 buffer_size 4096 } } + +pcm.shared_mic { + type softvol + + slave.pcm "shared_mic_raw" + + control { + name "MicVolume" + card 2 + } +} From bdf1bd28a91cb5b7a67a1c89fc6ff142f04dad60 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Aug 2026 10:32:09 -0400 Subject: [PATCH 03/12] Update pacsatsim.sh add amixer -c 2 set MicVolume 200 --- pacsatsim.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/pacsatsim.sh b/pacsatsim.sh index e7e5d679..9388550d 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -41,6 +41,7 @@ fi if [[ $(arecord -l | grep "USB Audio Device") ]] ; then echo "USB Sound Card detected" soundcard=1 + amixer -c 2 set MicVolume 200 else echo "No USB Sound Card detected" soundcard=0 From 31947f88d3cbc00aeec116cdc81780b1d7dc3ba1 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Aug 2026 10:33:14 -0400 Subject: [PATCH 04/12] Update pacsat.sh add amixer -c 2 set MicVolume 200 --- groundstation/pacsat.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 40fbc67c..eede956b 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -46,6 +46,7 @@ fi if [[ $(arecord -l | grep "USB Audio Device") ]] ; then echo "USB Sound Card detected" soundcard=1 + amixer -c 2 set MicVolume 200 else echo "No USB Sound Card detected" soundcard=0 From a2df3b455ff5edfbb897a4f97ba5dc1fde8ea400 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Aug 2026 10:39:00 -0400 Subject: [PATCH 05/12] Update config add MicVolumne --- config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config b/config index ee15e394..50e74082 100755 --- a/config +++ b/config @@ -1580,7 +1580,7 @@ elif [ "$1" = "-L" ]; then echo if [ -z "$param2" ] ; then - echo -e "Enter microphone level in percentage (integer 0 - 100): " + echo -e "Enter microphone level (integer 0 - 255): " read mic else mic="$param2" @@ -1588,7 +1588,7 @@ elif [ "$1" = "-L" ]; then if ! [ -z $mic ] && [[ $mic =~ ^[+-]?[0-9]+([.][0-9]+)?$ ]] ; then echo "Updating mic level to" $mic "%" - value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set Mic $mic% + value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set MicVolume $mic else echo "Not updating mic level" fi From 43869cef92c26eb3ed73c64e290ab64576b11bb6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Aug 2026 11:26:31 -0400 Subject: [PATCH 06/12] Update direwolf-cc.conf comment out TXDELAY --- direwolf-cc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf-cc.conf b/direwolf-cc.conf index af71089d..365c3d01 100644 --- a/direwolf-cc.conf +++ b/direwolf-cc.conf @@ -4,6 +4,6 @@ MYCALL AMSAT CHANNEL 0 MODEM 1200 FULLDUP OFF -TXDELAY 0 +#TXDELAY 0 AGWPORT 8200 KISSPORT 8201 From 66862761ef69e3a40d7cc72f9ff4c2ce3a1cc664 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Aug 2026 11:27:26 -0400 Subject: [PATCH 07/12] Update direwolf-cc.conf change KISSPORT --- direwolf-cc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf-cc.conf b/direwolf-cc.conf index 365c3d01..d6baa9ef 100644 --- a/direwolf-cc.conf +++ b/direwolf-cc.conf @@ -6,4 +6,4 @@ MODEM 1200 FULLDUP OFF #TXDELAY 0 AGWPORT 8200 -KISSPORT 8201 +KISSPORT 8203 From 8bfb5f2ede2e2f3aa744ad137c1724b4ac04b3cd Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 20 Aug 2026 12:41:57 -0400 Subject: [PATCH 08/12] Update install add also-base.conf --- install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install b/install index d2cc2fd7..4c735a32 100755 --- a/install +++ b/install @@ -352,6 +352,21 @@ elif [[ $(grep 'trixie' /etc/os-release) ]]; then fi fi +FILE=/etc/modprobe.d/alsa-base.conf +if [ -f "$FILE" ]; then + echo "$FILE exists." + if [[ $(grep "options snd-usb-audio index=2" $FILE) ]]; then + echo "options snd-usb-audio index=2 already in $FILE"; + else + echo "adding options snd-usb-audio index=2 to $FILE"; + sudo sed -i '$a options snd-usb-audio index=2' $FILE + echo "options snd-usb-audio index=2" | sudo tee -a $FILE # > /dev/null + fi +else + echo "creating $FILE" + echo "options snd-usb-audio index=2" | sudo tee $FILE # > /dev/null +fi + FILE=/home/pi/CubeSatSim/sim.cfg if [ -f "$FILE" ]; then echo "$FILE exists." From 3027e335fe981f6aafa9f6fcaa379af6ad237a6c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Aug 2026 20:19:42 -0400 Subject: [PATCH 09/12] Update pacsat.sh stop and start wireplumber --- groundstation/pacsat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index eede956b..1e937470 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -46,7 +46,9 @@ fi if [[ $(arecord -l | grep "USB Audio Device") ]] ; then echo "USB Sound Card detected" soundcard=1 + systemctl --user stop wireplumber amixer -c 2 set MicVolume 200 + systemctl --user start wireplumber else echo "No USB Sound Card detected" soundcard=0 From a2cf7d4b0af494440ee8349bda5e5c1e3159ca24 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Aug 2026 20:20:18 -0400 Subject: [PATCH 10/12] Update pacsatsim.sh stop and start wireplumber --- pacsatsim.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pacsatsim.sh b/pacsatsim.sh index 9388550d..7eb15337 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -41,7 +41,9 @@ fi if [[ $(arecord -l | grep "USB Audio Device") ]] ; then echo "USB Sound Card detected" soundcard=1 + systemctl --user stop wireplumber amixer -c 2 set MicVolume 200 + systemctl --user start wireplumber else echo "No USB Sound Card detected" soundcard=0 From e1e56af9cdc2b087f9c816c8387c37d4ac321605 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Aug 2026 20:21:17 -0400 Subject: [PATCH 11/12] Update config stop and start wireplumber --- config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config b/config index 50e74082..624f5c72 100755 --- a/config +++ b/config @@ -1587,8 +1587,10 @@ elif [ "$1" = "-L" ]; then fi if ! [ -z $mic ] && [[ $mic =~ ^[+-]?[0-9]+([.][0-9]+)?$ ]] ; then + systemctl --user stop wireplumber echo "Updating mic level to" $mic "%" value=`arecord -l | grep "card"` && echo "$value" > /dev/null && set -- $value && amixer -c ${2:0:1} set MicVolume $mic + systemctl --user start wireplumber else echo "Not updating mic level" fi From 8e3bd2b0efcf966b3e1b3bbf3e48b2f1b1403f5c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 25 Aug 2026 20:40:22 -0400 Subject: [PATCH 12/12] Update direwolf-pacsatsim.conf TX delay 30 --- direwolf/direwolf-pacsatsim.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf/direwolf-pacsatsim.conf b/direwolf/direwolf-pacsatsim.conf index b96fc68f..8353c396 100644 --- a/direwolf/direwolf-pacsatsim.conf +++ b/direwolf/direwolf-pacsatsim.conf @@ -3,7 +3,7 @@ MODEM 1200 DWAIT 0 SLOTTIME 10 PERSIST 63 -TXDELAY 1000 +TXDELAY 30 TXTAIL 10 FULLDUP OFF DIGIPEAT 0 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE