From 566708f9301a9f4019d947347f277d75a8edfb61 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 22 May 2026 09:38:18 -0400 Subject: [PATCH 01/14] Update install 0.46q pacsat ground station install --- install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install b/install index 59799d1e..55103dea 100755 --- a/install +++ b/install @@ -586,10 +586,10 @@ sudo raspi-config nonint do_vnc 0 if [ ! -d "/home/pi/Desktop/PacsatGround" ]; then cd /tmp - wget https://www.g0kla.com/pacsat/downloads/test/PacsatGround_unix_0_46o.tar.gz - tar -xzf PacsatGround_unix_0_46o.tar.gz -C /home/pi/Desktop - rm PacsatGround_unix_0_46o.tar.gz - cp /home/pi/CubeSatSim/spacecraft/PacSatGround_0.46o/* /home/pi/Desktop/PacsatGround/spacecraft/ + wget https://www.g0kla.com/pacsat/downloads/test/PacsatGround_unix_0_46q.tar.gz + tar -xzf PacsatGround_unix_0_46q.tar.gz -C /home/pi/Desktop + rm PacsatGround_unix_0_46q.tar.gz +# cp /home/pi/CubeSatSim/spacecraft/PacSatGround_0.46o/* /home/pi/Desktop/PacsatGround/spacecraft/ # mkdir /home/pi/PacSatGround sudo usermod -a -G gpio pi sudo apt-get install default-jdk -y From ea8e0780e7671695e1594282c1e853ea20822bf8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 23 May 2026 12:17:21 -0400 Subject: [PATCH 02/14] Update pacsatsim.sh typo in callsign print --- pacsatsim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 9a4f787a..33ac8217 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -67,7 +67,7 @@ callsign="$1" txfrequency="$7e3" rxfrequency="$8e3" -echo -n "PacSat allsign is " +echo -n "PacSat callsign is " echo $callsign echo -n "Transmit Frequency is " echo $txfrequency From fe509794895b19b7acf8ebaf18336d76ea2723aa Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 24 May 2026 23:03:04 -0400 Subject: [PATCH 03/14] Update pacsatsim.sh change pacsatsim files to v0.2 --- pacsatsim.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 33ac8217..b5dfd5d2 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -84,11 +84,11 @@ if [ ! -d "/home/pi/PacSat" ]; then cd sudo rm pacsat-dir.zip - mkdir PacSat - mkdir PacSat/pacsat - mkdir PacSat/pacsat/dir - wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.1/pacsat-dir.zip - unzip pacsat-dir.zip -d PacSat/pacsat/dir + mkdir /home/pi/PacSat + mkdir /home/pi/PacSat/pacsat + mkdir /home/pi/PacSat/pacsat/dir + wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.2/pacsat-dir.zip + unzip pacsat-dir.zip -d /home/pi/PacSat/pacsat/dir sudo rm pacsat-dir.zip cd @@ -96,7 +96,7 @@ if [ ! -d "/home/pi/PacSat" ]; then sudo rm /home/pi/pi_pacsat/Debug/pacsat.state sudo rm /home/pi/pi_pacsat/Debug/pacsat_upload_table.dat sudo rm pi_pacsat.zip - wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.1/pi_pacsat.zip + wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.2/pi_pacsat.zip unzip pi_pacsat.zip -d /home/pi/pi_pacsat/Debug sudo rm pi_pacsat.zip From 90d2442addf4433d5694ce96b48e5ef93834a4c5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 24 May 2026 23:14:40 -0400 Subject: [PATCH 04/14] Update pacsatsim.sh remove full path --- pacsatsim.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index b5dfd5d2..e733f769 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -88,7 +88,7 @@ if [ ! -d "/home/pi/PacSat" ]; then mkdir /home/pi/PacSat/pacsat mkdir /home/pi/PacSat/pacsat/dir wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.2/pacsat-dir.zip - unzip pacsat-dir.zip -d /home/pi/PacSat/pacsat/dir + unzip pacsat-dir.zip -d /home/pi sudo rm pacsat-dir.zip cd @@ -97,7 +97,7 @@ if [ ! -d "/home/pi/PacSat" ]; then sudo rm /home/pi/pi_pacsat/Debug/pacsat_upload_table.dat sudo rm pi_pacsat.zip wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.2/pi_pacsat.zip - unzip pi_pacsat.zip -d /home/pi/pi_pacsat/Debug + unzip pi_pacsat.zip -d /home/pi sudo rm pi_pacsat.zip # mkdir /home/pi/PacSat From 26d8ce051f06b87ecf03aad20eca8d3f825ef432 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 24 May 2026 23:17:16 -0400 Subject: [PATCH 05/14] Update pacsatsim.sh remove -d from unzip --- pacsatsim.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index e733f769..756167b2 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -88,7 +88,7 @@ if [ ! -d "/home/pi/PacSat" ]; then mkdir /home/pi/PacSat/pacsat mkdir /home/pi/PacSat/pacsat/dir wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.2/pacsat-dir.zip - unzip pacsat-dir.zip -d /home/pi + unzip pacsat-dir.zip sudo rm pacsat-dir.zip cd @@ -97,7 +97,7 @@ if [ ! -d "/home/pi/PacSat" ]; then sudo rm /home/pi/pi_pacsat/Debug/pacsat_upload_table.dat sudo rm pi_pacsat.zip wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.2/pi_pacsat.zip - unzip pi_pacsat.zip -d /home/pi + unzip pi_pacsat.zip sudo rm pi_pacsat.zip # mkdir /home/pi/PacSat From a8aff5fa87567d6fa577ead4df7fc3d02d908100 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 09:25:47 -0400 Subject: [PATCH 06/14] Update pacsatsim.sh fix pi_pacsat unzip --- pacsatsim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacsatsim.sh b/pacsatsim.sh index 756167b2..24350f6b 100755 --- a/pacsatsim.sh +++ b/pacsatsim.sh @@ -97,7 +97,7 @@ if [ ! -d "/home/pi/PacSat" ]; then sudo rm /home/pi/pi_pacsat/Debug/pacsat_upload_table.dat sudo rm pi_pacsat.zip wget https://github.com/alanbjohnston/pi_pacsat/releases/download/v0.2/pi_pacsat.zip - unzip pi_pacsat.zip + unzip pi_pacsat.zip -d / sudo rm pi_pacsat.zip # mkdir /home/pi/PacSat From 0eecf68b4782cc81003516d925dc4ae348cd8bcc Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 10:16:23 -0400 Subject: [PATCH 07/14] Add files via upload --- .../PacSatGround_0.46o/PacSatGround.zip | Bin 2662 -> 1703 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/spacecraft/PacSatGround_0.46o/PacSatGround.zip b/spacecraft/PacSatGround_0.46o/PacSatGround.zip index 900415dcd54bc85e08ddeafaeec93d4cc324e294..6694f79a05a5127a8d9bc789abbddbdbe5b1f563 100644 GIT binary patch delta 1188 zcmaDRvYb~tz?+#xgn@y9gJEjm&X^s%XP+lBF)+ljFfgbv$S?#XCI=^$xEJM@=B4OQ zTqsk2GeRV54G@=Ba5FHnykKTv028G_vHp(@1ZvK&-*BY5(22`d#eRve!;2T~w+h1N z=}gWM>b|n>4eylSU!Pxjn9=HY%6U)R`E%#a9Q6{BZhUg@h2PYaW~QZKDXCxNc)T_o zJbGvD^GD4t$wHTI8|>ffiv z1oj*KbtAjgw|qUkrp z1eUJSwXd(Qv0c`x18?%Ktjr!(CG2Ww!XqyS_6S`ay3C{x$#7^Uk@kHM!)_ zWpVZ7Uu*v!aJsG)B{PMyMN{hMGuyfokddspDnTZuOYmOgjJuF*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w-Nxz(iaT>Uk1iEr~c_FqxitJenCTtEJ;>d9GI z*T#kR!lxQnR&qMt+;HWO=6rtNf6R!~ZG)CQxIx*YATc>LxhOHML?4_UnSp8XKlUsF zN#Gzu!hh%OwFl-8W?&+hM>PbJ)`K&1(GxnzU=T)2=&=)hy_pRK+TQ;Z<+i=8ztKyv zebHJDtw&Yzn@(<#-sO31X6M%b_pYo}*n95xlgg84UYxyg%j2turhE9+q$A5C_6EM1 zctm;i#kQKQ2bV>KY~KC!Pnui*R;i%v|dsbBT8-E2zF=C-Gk=C5pDULIk)?rYAfS#A2CcM82Ru$i5F zYSYKN`~Ph;Hd=DPBiz`iHTV{<* zl!{Yhn_sgdA{SKfK#M&v#RV^TfRO=-TToe}jTr@~h1bl>+tbp4CiDWa7>XGwnMJ9| zCHX~_dMQcpvI}G;T9ihAp4PZ^M~9=DuCco54wd~Hq52m4SE!h(D(D{GxI$y&CH2ia zS{RumW=cqCbxEjPoOywLdb$zUQbLMg3=SIc` zRYn^`(!-X9i8S=+r87Rh9vWwBO80m&fq8L62i{VJw4VUq( RKy3^RTtJu&OaxECJOI-LSm*!% From 2c8ca5aca8f3981670cf12a86fda94502f8a3ff5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 10:51:56 -0400 Subject: [PATCH 08/14] Update pacsat.sh copy existing PacSatSim file if present --- groundstation/pacsat.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 23f115e1..f9285165 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -127,10 +127,17 @@ else wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p/spacecraft/PacSatGround_0.46o/PacSatGround.zip unzip PacSatGround.zip -d PacSatGround sudo rm PacSatGround.zip - - echo - echo "The first time you run the Ground Station, you will need to select Yes to override files, then put in your callsign" - sleep 10 + + FILE=/home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties + if [ -f "$FILE" ]; then + FILE2=/home/pi/PacSatGround/spacecraft/PacSatSim.properties + sudo rm $FILE2 + cp $FILE $FILE2 + else + echo + echo "The first time you run the Ground Station, you will need to select Yes to override files, then put in your callsign" + sleep 10 + fi fi From 4a9e3aa2d88227eb034a2ced99777cb5b131f37a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 10:58:05 -0400 Subject: [PATCH 09/14] Update pacsat.sh PacSatGroundLoop same zip file as non loop --- groundstation/pacsat.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index f9285165..1b103ccc 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -104,14 +104,20 @@ elif [ "$loopback" = "1" ] ; then cd sudo rm PacSatGroundLoop.zip &>/dev/null - wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p/spacecraft/PacSatGround_0.46o/PacSatGroundLoop.zip + wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p/spacecraft/PacSatGround_0.46o/PacSatGround.zip unzip PacSatGroundLoop.zip -d PacSatGroundLoop sudo rm PacSatGroundLoop.zip - - echo - echo "The first time you run the Ground Station, you will need to select Yes to override files, then put in your callsign" - sleep 10 - + + FILE=/home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties + if [ -f "$FILE" ]; then + FILE2=/home/pi/PacSatGroundLoop/spacecraft/PacSatSim.properties + sudo rm $FILE2 + cp $FILE $FILE2 + else + echo + echo "The first time you run the Ground Station, you will need to select Yes to override files, then put in your callsign" + sleep 10 + fi fi else From 2eb80cce5af5ff6ae241a1bb6fc508cdd86dd3f2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 11:00:59 -0400 Subject: [PATCH 10/14] Update pacsat.sh fix zip changes --- groundstation/pacsat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 1b103ccc..38ee4350 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -105,8 +105,8 @@ elif [ "$loopback" = "1" ] ; then cd sudo rm PacSatGroundLoop.zip &>/dev/null wget https://github.com/alanbjohnston/CubeSatSim/raw/refs/heads/master-b-p/spacecraft/PacSatGround_0.46o/PacSatGround.zip - unzip PacSatGroundLoop.zip -d PacSatGroundLoop - sudo rm PacSatGroundLoop.zip + unzip PacSatGround.zip -d PacSatGroundLoop + sudo rm PacSatGround.zip FILE=/home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties if [ -f "$FILE" ]; then From 4d823c696487ecd5531c8ea54310c3916c2cde60 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 11:19:16 -0400 Subject: [PATCH 11/14] Update pacsat.sh change properties to point to Loop --- groundstation/pacsat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 38ee4350..271dd9d4 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -108,6 +108,8 @@ elif [ "$loopback" = "1" ] ; then unzip PacSatGround.zip -d PacSatGroundLoop sudo rm PacSatGround.zip + sudo sed -i 's/logfile_dir=/home/pi/PacSatGround/logfile_dir=/home/pi/PacSatGroundLoop/g' /home/pi/PacSatGroundLoop/PacSatGround.properties + FILE=/home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties if [ -f "$FILE" ]; then FILE2=/home/pi/PacSatGroundLoop/spacecraft/PacSatSim.properties From 5ef6f3c9940ffd7fc3258824580d033bb49b31d8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 11:23:51 -0400 Subject: [PATCH 12/14] Update pacsat.sh fix sed escaping --- groundstation/pacsat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 271dd9d4..98db1434 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -108,7 +108,7 @@ elif [ "$loopback" = "1" ] ; then unzip PacSatGround.zip -d PacSatGroundLoop sudo rm PacSatGround.zip - sudo sed -i 's/logfile_dir=/home/pi/PacSatGround/logfile_dir=/home/pi/PacSatGroundLoop/g' /home/pi/PacSatGroundLoop/PacSatGround.properties + sudo sed -i 's/logfile_dir=\/home\/pi\/PacSatGround/logfile_dir=\/home\/pi\/PacSatGroundLoop/g' /home/pi/PacSatGroundLoop/PacSatGround.properties FILE=/home/pi/Desktop/PacsatGround/spacecraft/PacSatSim.properties if [ -f "$FILE" ]; then From 37ffbaf4e60f47ef4e32d4401b1d70229e852717 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 13:25:35 -0400 Subject: [PATCH 13/14] Update config offer to change frequency when change to PacSat Ground mode --- config | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config b/config index d2106a8f..36379864 100755 --- a/config +++ b/config @@ -1835,6 +1835,25 @@ elif [ "$1" = "-I" ]; then reboot=1 sudo echo "P" > /home/pi/CubeSatSim/.mode + + value=`cat /home/pi/CubeSatSim/sim.cfg` + echo "$value" > /dev/null + set -- $value + + if [ "${7}" = "434.9" ] && [ "${8}" = "435" ]; then + echo "The default transmit frequency of 434.9 MHz is set" + echo + echo "Do you want to change it (for example to 435 MHz)?" + + read input + echo + + if [ "$input" = "y" ] || [ "$input" = "yes" ] ; then + /home/pi/CubeSatSim/config -F n + fi + fi + + # if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then # FILE=/home/pi/CubeSatSim/battery_saver # if [ -f "$FILE" ]; then From d844961dd0d8af184e504946dd05bc7bbb561d7c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 14:14:14 -0400 Subject: [PATCH 14/14] Update install change to cpus=2 --- install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install b/install index 55103dea..964e13ed 100755 --- a/install +++ b/install @@ -65,10 +65,10 @@ if [[ $(grep '11.' /etc/debian_version) ]]; then sudo sed -i 's/console=serial0,115200 //g' /boot/cmdline.txt - sudo sed -i 's/console=tty1 r/console=tty1 maxcpus=1 r/g' /boot/cmdline.txt # single core if Pi Zero 2 + sudo sed -i 's/console=tty1 r/console=tty1 maxcpus=2 r/g' /boot/cmdline.txt # single core if Pi Zero 2 # sudo sed -i 's/console=tty1 maxcpus=1 r/console=tty1 r/g' /boot/cmdline.txt - sudo sed -i 's/maxcpus=2/maxcpus=1/g' /boot/cmdline.txt # single core if Pi Zero 2 + sudo sed -i 's/maxcpus=1/maxcpus=2/g' /boot/cmdline.txt # single core if Pi Zero 2 sudo sed -i 's/#dtparam=i2c_arm=on/dtparam=i2c_arm=on/g' /boot/config.txt @@ -163,10 +163,10 @@ if [[ $(grep 'bookworm' /etc/os-release) ]]; then sudo sed -i 's/console=serial0,115200 //g' /boot/firmware/cmdline.txt - sudo sed -i 's/console=tty1 r/console=tty1 maxcpus=1 r/g' /boot/firmware/cmdline.txt # single core if Pi Zero 2 + sudo sed -i 's/console=tty1 r/console=tty1 maxcpus=2 r/g' /boot/firmware/cmdline.txt # single core if Pi Zero 2 # sudo sed -i 's/console=tty1 maxcpus=1 r/console=tty1 r/g' /boot/firmware/cmdline.txt - sudo sed -i 's/maxcpus=2/maxcpus=1/g' /boot/firmware/cmdline.txt # single core if Pi Zero 2 + sudo sed -i 's/maxcpus=1/maxcpus=2/g' /boot/firmware/cmdline.txt # single core if Pi Zero 2 sudo sed -i 's/#dtparam=i2c_arm=on/dtparam=i2c_arm=on/g' /boot/firmware/config.txt