From 1efb704830cbf477ff7204e2a2f8092cfb470b82 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Dec 2021 11:17:32 -0500 Subject: [PATCH 01/29] fixed package install errors for bullseye --- install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install b/install index 0bfea58f..b4068c37 100755 --- a/install +++ b/install @@ -1,10 +1,11 @@ #!/bin/bash -echo -e "\ninstallation script for CubeSatSim v1.0\n" +echo -e "\ninstallation script for CubeSatSim v1.0 for Bullseye\n" sudo apt-get update && sudo apt-get dist-upgrade -y -sudo apt-get install -y wiringpi git libasound2-dev i2c-tools python-picamera python3-picamera build-essential libgd-dev libmagic-dev +# removed wiringpi and python-picamera python3-picamera +sudo apt-get install -y git libasound2-dev i2c-tools build-essential libgd-dev libmagic-dev cd /tmp @@ -15,7 +16,8 @@ sudo dpkg -i wiringpi-latest.deb cd -sudo apt install -y python3-pip python-smbus +#changed to python3-smbus +sudo apt install -y python3-pip python3-smbus sudo pip3 install --upgrade setuptools From 98e2eb17f55ca8fd37df9b551e5c5905765e040e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Dec 2021 16:09:40 -0500 Subject: [PATCH 02/29] changed raspistill to libcamera-still --- rpitx.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpitx.py b/rpitx.py index ae5c2728..5872c5ce 100644 --- a/rpitx.py +++ b/rpitx.py @@ -161,12 +161,12 @@ if __name__ == "__main__": elif (mode == 's'): print("SSTV") try: - from picamera import PiCamera +# from picamera import PiCamera # from pysstv.sstv import SSTV - camera = PiCamera() +# camera = PiCamera() print("Camera present") camera_present = 1 - camera.close() +# camera.close() except: print("No camera available") print(" -> if camera plugged in, is software enabled?") @@ -190,7 +190,7 @@ if __name__ == "__main__": except: print("image 2 did not load - copy from CubeSatSim/sstv directory") while 1: - system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1") + system("libcamera-still -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1") print("Photo taken") system("/home/pi/PiSSTVpp/pisstvpp -r 48000 -p s2 /home/pi/CubeSatSim/camera_out.jpg") system("sudo rm /home/pi/CubeSatSim/camera_out.jpg > /dev/null 2>&1") From ffd6be0e509ed5b4c74b6efde148ca5e3e0b399e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Dec 2021 16:22:10 -0500 Subject: [PATCH 03/29] fixed width and height --- rpitx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index 5872c5ce..07181daa 100644 --- a/rpitx.py +++ b/rpitx.py @@ -190,7 +190,7 @@ if __name__ == "__main__": except: print("image 2 did not load - copy from CubeSatSim/sstv directory") while 1: - system("libcamera-still -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1") + system("libcamera-still -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") print("Photo taken") system("/home/pi/PiSSTVpp/pisstvpp -r 48000 -p s2 /home/pi/CubeSatSim/camera_out.jpg") system("sudo rm /home/pi/CubeSatSim/camera_out.jpg > /dev/null 2>&1") From 4bf925eb1c26bb54fe5daca5adaea93fd394bdcd Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Dec 2021 16:28:21 -0500 Subject: [PATCH 04/29] changed libcamera-still to libcamera-jpeg --- rpitx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index 07181daa..c5d2d71d 100644 --- a/rpitx.py +++ b/rpitx.py @@ -190,7 +190,7 @@ if __name__ == "__main__": except: print("image 2 did not load - copy from CubeSatSim/sstv directory") while 1: - system("libcamera-still -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") + system("libcamera-jpeg -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") print("Photo taken") system("/home/pi/PiSSTVpp/pisstvpp -r 48000 -p s2 /home/pi/CubeSatSim/camera_out.jpg") system("sudo rm /home/pi/CubeSatSim/camera_out.jpg > /dev/null 2>&1") From 5d31a692e81a88ad66980ce6cd2871cb4bd03475 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Dec 2021 16:52:14 -0500 Subject: [PATCH 05/29] back to raspistill with legacy enabled --- rpitx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index c5d2d71d..fa74811d 100644 --- a/rpitx.py +++ b/rpitx.py @@ -190,7 +190,7 @@ if __name__ == "__main__": except: print("image 2 did not load - copy from CubeSatSim/sstv directory") while 1: - system("libcamera-jpeg -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") + system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1") print("Photo taken") system("/home/pi/PiSSTVpp/pisstvpp -r 48000 -p s2 /home/pi/CubeSatSim/camera_out.jpg") system("sudo rm /home/pi/CubeSatSim/camera_out.jpg > /dev/null 2>&1") From 71c284e91d51e7396326948ac643a5f8e021cdd3 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Dec 2021 17:19:48 -0500 Subject: [PATCH 06/29] added python read after raspistill to test camera --- rpitx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpitx.py b/rpitx.py index fa74811d..08c76296 100644 --- a/rpitx.py +++ b/rpitx.py @@ -164,6 +164,8 @@ if __name__ == "__main__": # from picamera import PiCamera # from pysstv.sstv import SSTV # camera = PiCamera() + system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") + f = open("/home/pi/CubeSatSim/camera_out.jpg") print("Camera present") camera_present = 1 # camera.close() From 546e229de544108a4c6dd706856aae9d44600cf1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 18 Dec 2021 17:33:56 -0500 Subject: [PATCH 07/29] added log file about testing for camera --- rpitx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rpitx.py b/rpitx.py index 08c76296..bbf8ca30 100644 --- a/rpitx.py +++ b/rpitx.py @@ -164,6 +164,7 @@ if __name__ == "__main__": # from picamera import PiCamera # from pysstv.sstv import SSTV # camera = PiCamera() + print("Testing for camera") system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") f = open("/home/pi/CubeSatSim/camera_out.jpg") print("Camera present") From 9ba261ac90e18a9f571b322e9806ff8201049cc7 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 19 Dec 2021 15:06:26 -0500 Subject: [PATCH 08/29] added sudo raspi-config nonint do_legacy 0 --- install | 1 + 1 file changed, 1 insertion(+) diff --git a/install b/install index b4068c37..0da75b4b 100755 --- a/install +++ b/install @@ -114,6 +114,7 @@ sudo raspi-config nonint do_i2c 0 sudo raspi-config nonint do_camera 0 +sudo raspi-config nonint do_legacy 0 #if [ "$1" = "u" ]; then #fi From 1fa71cc44522c69980e390bb086460e013d5ef80 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 20 Dec 2021 16:50:37 -0500 Subject: [PATCH 09/29] changed pi-power-button to use bullseye branch which uses python3 --- install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install b/install index 0da75b4b..fada9b66 100755 --- a/install +++ b/install @@ -68,6 +68,8 @@ git clone https://github.com/alanbjohnston/pi-power-button.git cd pi-power-button +git checkout bullseye + ./script/install From c0be10295e306f00605ce8ca82d4d4090263f160 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 20 Dec 2021 16:51:51 -0500 Subject: [PATCH 10/29] added git checkout bullseye --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c9396df..5f67ab71 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ To get the software follow these steps: `cd CubeSatSim` -`git checkout master` +`git checkout bullseye` You are now ready to install the software using this script in the CubeSatSim directory: From b97921b71fbd117c41650b5252fe94dbf87b5f6a Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 6 Feb 2022 13:12:39 -0500 Subject: [PATCH 11/29] added extra GPIO.setmode(GPIO.BCM) for Tx LED on Pi 4 --- rpitx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index bbf8ca30..e7ccaa9b 100644 --- a/rpitx.py +++ b/rpitx.py @@ -78,7 +78,8 @@ if __name__ == "__main__": if (debug_mode == 1): print("Can't read callsign from sim.cfg file, defaulting to AMSAT") print(callsign) - + GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi 4 + sleep(1) output(txLed, txLedOn) if (debug_mode == 1): From bf99f10dd00b9d6e9ceefd6773a465b1a3265a78 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 6 Feb 2022 15:26:08 -0500 Subject: [PATCH 12/29] replaced spaces with tab --- rpitx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index e7ccaa9b..48f98ac9 100644 --- a/rpitx.py +++ b/rpitx.py @@ -78,7 +78,7 @@ if __name__ == "__main__": if (debug_mode == 1): print("Can't read callsign from sim.cfg file, defaulting to AMSAT") print(callsign) - GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi 4 + GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi 4 sleep(1) output(txLed, txLedOn) From 40d17c87fbf1f8d3ec717b995c3da7b73cd052d1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 6 Feb 2022 15:36:44 -0500 Subject: [PATCH 13/29] also added GPIO.setup(txLed, GPIO.OUT) again --- rpitx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rpitx.py b/rpitx.py index 48f98ac9..57c52a96 100644 --- a/rpitx.py +++ b/rpitx.py @@ -79,6 +79,7 @@ if __name__ == "__main__": print("Can't read callsign from sim.cfg file, defaulting to AMSAT") print(callsign) GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi 4 + GPIO.setup(txLed, GPIO.OUT) sleep(1) output(txLed, txLedOn) From 8b23ded161554831641a38ff6a675f84c1df7f9b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 11:05:46 -0500 Subject: [PATCH 14/29] added extra to make Tx LED work with Pi 4 --- rpitx.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/rpitx.py b/rpitx.py index 57c52a96..c48e4a05 100644 --- a/rpitx.py +++ b/rpitx.py @@ -41,7 +41,20 @@ else: txLedOn = 1 txLedOff = 0 +# GPIO.setup(txLed, GPIO.OUT) +# output(txLed, txLedOff) + +GPIO.setmode(GPIO.BCM) +GPIO.setwarnings(False) + GPIO.setup(txLed, GPIO.OUT) + +output(txLed, txLedOn) +sleep(1) +output(txLed, txLedOff) +sleep(1) +output(txLed, txLedOn) +sleep(1) output(txLed, txLedOff) # print(txLedOn) From 7efc2b05bdf1314ca2c6e44c1cd47b9a6d7644c4 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:02:25 -0500 Subject: [PATCH 15/29] minimal changes needed for Tx to work on Pi 4 --- rpitx.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rpitx.py b/rpitx.py index c48e4a05..80ef89e8 100644 --- a/rpitx.py +++ b/rpitx.py @@ -44,15 +44,10 @@ else: # GPIO.setup(txLed, GPIO.OUT) # output(txLed, txLedOff) -GPIO.setmode(GPIO.BCM) +GPIO.setmode(GPIO.BCM) # Repeat to make LED work on Pi 4 GPIO.setwarnings(False) - GPIO.setup(txLed, GPIO.OUT) -output(txLed, txLedOn) -sleep(1) -output(txLed, txLedOff) -sleep(1) output(txLed, txLedOn) sleep(1) output(txLed, txLedOff) From fddbd694f8daa6c3299c909ec8236fbc87288bc7 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:20:49 -0500 Subject: [PATCH 16/29] updated version number to v1.1 --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index fada9b66..7862237b 100755 --- a/install +++ b/install @@ -1,6 +1,6 @@ #!/bin/bash -echo -e "\ninstallation script for CubeSatSim v1.0 for Bullseye\n" +echo -e "\ninstallation script for CubeSatSim v1.1\n" sudo apt-get update && sudo apt-get dist-upgrade -y From 14a5e665dd3c6b78f20c06d6a9919949602ceada Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:21:02 -0500 Subject: [PATCH 17/29] updated version to v1.1 --- telem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telem.c b/telem.c index a2d0182f..eff6ba50 100644 --- a/telem.c +++ b/telem.c @@ -51,7 +51,7 @@ int main(int argc, char *argv[]) { if (digitalRead(26) != HIGH) { // if (debug == ON) - printf("CubeSatSim v1.0 INA219 Voltage and Current Telemetry\n"); + printf("CubeSatSim v1.1 INA219 Voltage and Current Telemetry\n"); map[MINUS_X] = MINUS_Y; map[PLUS_Z] = MINUS_X; map[MINUS_Y] = PLUS_Z; From 896907c701cfc92a44130b7b40825d7a645bf30d Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:21:37 -0500 Subject: [PATCH 18/29] updated version number to v1.1 --- update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update b/update index 67f5074b..af736c96 100755 --- a/update +++ b/update @@ -1,6 +1,6 @@ #!/bin/bash -echo -e "\nupdate script for CubeSatSim v1.0\n" +echo -e "\nupdate script for CubeSatSim v1.1\n" sudo rm /home/pi/CubeSatSim/morse.wav /home/pi/CubeSatSim/id.txt /home/pi/CubeSatSim/cw.txt > /dev/null 2>&1 From 29666389dca6b275d9dd81a210713733ae64579d Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:22:29 -0500 Subject: [PATCH 19/29] updated version to v1.1 --- config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config b/config index 765e2620..d34d1e4c 100755 --- a/config +++ b/config @@ -1,6 +1,6 @@ #!/bin/bash -echo "CubeSatSim v1.0 configuration tool" +echo "CubeSatSim v1.1 configuration tool" if [ "$2" = "-n" ]; then norestart=1 From 4e4a568ecd597524cb76303562610be1b616fca7 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:31:17 -0500 Subject: [PATCH 20/29] moved callsign and lat/long prompt to start, added minicom --- install | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/install b/install index 7862237b..d97deb39 100755 --- a/install +++ b/install @@ -2,10 +2,22 @@ echo -e "\ninstallation script for CubeSatSim v1.1\n" +FILE=/home/pi/CubeSatSim/sim.cfg +if [ -f "$FILE" ]; then + echo "$FILE exists." +else + echo "creating $FILE" + echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg +fi + +CubeSatSim/config -c -n + +CubeSatSim/config -l -n + sudo apt-get update && sudo apt-get dist-upgrade -y # removed wiringpi and python-picamera python3-picamera -sudo apt-get install -y git libasound2-dev i2c-tools build-essential libgd-dev libmagic-dev +sudo apt-get install -y git libasound2-dev i2c-tools build-essential libgd-dev libmagic-dev minicom cd /tmp @@ -39,16 +51,6 @@ else echo "ARG1=f" > .mode fi - -FILE=/home/pi/CubeSatSim/sim.cfg -if [ -f "$FILE" ]; then - echo "$FILE exists." -else - echo "creating $FILE" - echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg -fi - - cd git clone https://github.com/alanbjohnston/direwolf.git @@ -160,10 +162,6 @@ sudo raspi-config nonint do_legacy 0 sudo sed -i 's/ rootwait/ rootwait modules-load=dwc2,g_ether/g' /boot/cmdline.txt fi -CubeSatSim/config -c -n - -CubeSatSim/config -l -n - echo "Would you like to reboot to complete the installation (y/n)?" read -r ANS From fe8fe92ebea838b5b006231b4eb7b52d71e3a242 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:33:42 -0500 Subject: [PATCH 21/29] added minicom --- update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update b/update index af736c96..b4cc2cbf 100755 --- a/update +++ b/update @@ -8,7 +8,7 @@ if [ "$1" = "u" ]; then sudo apt-get update && sudo apt-get dist-upgrade -y - sudo apt-get install -y wiringpi git libasound2-dev i2c-tools python-picamera python3-picamera build-essential libgd-dev libmagic-dev + sudo apt-get install -y wiringpi git libasound2-dev i2c-tools python-picamera python3-picamera build-essential libgd-dev libmagic-dev minicom fi From 1526b17e0d49e0168e57d9c5b646e3157fe123cc Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:40:30 -0500 Subject: [PATCH 22/29] added v1.1 printf to log --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index a77b2472..cf315dd5 100644 --- a/main.c +++ b/main.c @@ -23,6 +23,8 @@ int main(int argc, char * argv[]) { + printf("\n\nCubeSatSim v1.1 starting...\n\n"); + FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r"); pclose(rpitx_stop); From 5cbdae9191ffacd70c792e04a7ae76c03025ccd2 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 8 Feb 2022 16:51:51 -0500 Subject: [PATCH 23/29] added v1.1 print to log --- rpitx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpitx.py b/rpitx.py index 80ef89e8..08f929a1 100644 --- a/rpitx.py +++ b/rpitx.py @@ -9,6 +9,8 @@ from time import sleep import sys from os import system +print("CubeSatSim v1.1 rpitx.py starting...") + GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(13, GPIO.IN, pull_up_down=GPIO.PUD_UP) From 928b0d753b8018eb2ef32ca6925901519d9fcfc8 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 11 Feb 2022 16:36:22 -0500 Subject: [PATCH 24/29] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f67ab71..1c9396df 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ To get the software follow these steps: `cd CubeSatSim` -`git checkout bullseye` +`git checkout master` You are now ready to install the software using this script in the CubeSatSim directory: From 2ffc3bf086452813242ecb9916ee4fe45a0c9f07 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 11 Feb 2022 16:38:29 -0500 Subject: [PATCH 25/29] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c9396df..34b9dad3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ There are two ways to get the CubeSatSim 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. -The other option is to start with a Buster Raspberry Pi OS (Rasbian) image and run the installation script ./install.sh which will install and compile all the related software. Note that the installation script does not yet work with Bullseye. This includes the following packages: +The other option is to start with a Raspberry Pi OS (Rasbian) image (Bullseye or Buster works) and run the installation script ./install.sh which will install and compile all the related software. This includes the following packages: - wiringpi - git - libasound2-dev @@ -18,7 +18,7 @@ The other option is to start with a Buster Raspberry Pi OS (Rasbian) image and r - Direwolf - rpitx - python3-pip -- python-smbus +- python3-smbus ## Disk Image Option Steps From 2201509fab922616b36143e0de08abb708f33222 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 11 Feb 2022 16:39:27 -0500 Subject: [PATCH 26/29] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 34b9dad3..d319e9c4 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ See the Wiki Software Install page for details: https://github.com/alanbjohnston ## Installation Script Option Steps -CubeSatSim runs on the Buster version of Raspberry Pi OS (Desktop or Lite), although a Pi Zero or Pi Zero W should only run Lite. Your Pi will need to have internet access to update settings and install packages. The software does NOT yet support Bullseye due to changes in the Pi Camera (thanks Raspberry Pi for the lack of backwards compatibility!!) +CubeSatSim runs on the Bullseye or Buster version of Raspberry Pi OS (Desktop or Lite), although a Pi Zero or Pi Zero W should only run Lite. Your Pi will need to have internet access to update settings and install packages. To get the software follow these steps: From 2a21cf41870968d896b1f5d3da1abd2f54cb37c1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 12 Feb 2022 09:54:01 -0500 Subject: [PATCH 27/29] added cd at start of script --- install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install b/install index d97deb39..a8df6a01 100755 --- a/install +++ b/install @@ -10,6 +10,8 @@ else echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg fi +cd + CubeSatSim/config -c -n CubeSatSim/config -l -n From 070eaec9b1be45ee985f9f8c97025c62c2a1a82a Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 12 Feb 2022 10:23:54 -0500 Subject: [PATCH 28/29] added install of python3-smbus --- update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update b/update index b4cc2cbf..b8d61613 100755 --- a/update +++ b/update @@ -8,10 +8,12 @@ if [ "$1" = "u" ]; then sudo apt-get update && sudo apt-get dist-upgrade -y - sudo apt-get install -y wiringpi git libasound2-dev i2c-tools python-picamera python3-picamera build-essential libgd-dev libmagic-dev minicom + sudo apt-get install -y wiringpi git libasound2-dev i2c-tools build-essential libgd-dev libmagic-dev python3-pip minicom fi +sudo apt-get install -y python3-smbus + sudo sed -i 's/update.sh/update /g' /etc/motd sudo sed -i 's/installed and/installed\nand/g' /etc/motd From e1f505f8b45c0adf298a5f93e0fd4c5878f0f8b2 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 12 Feb 2022 10:25:41 -0500 Subject: [PATCH 29/29] changed pi-power-button from bullseye to master branch --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index a8df6a01..54e3e858 100755 --- a/install +++ b/install @@ -72,7 +72,7 @@ git clone https://github.com/alanbjohnston/pi-power-button.git cd pi-power-button -git checkout bullseye +git checkout master ./script/install