Replies: 11 comments 3 replies
-
|
I agree this is worthwhile to do. It has been on my ToDo list for a while, but it hasn't been a priority yet. But I'm happy to help work on it. The other thing is Python. The environment needs to be added, and the packages will all be different and need code changes for them to continue to work. Alan |
Beta Was this translation helpful? Give feedback.
-
|
I've tried upgrading due to issues with Cameras - couldn't make IMX219 sensors working with bullseye.
This is as far as I've got. Marcel |
Beta Was this translation helpful? Give feedback.
-
|
re using Brodcom GPIO: haven't tried that. Not sure this is a good way forward though - someone might want to use a hat and then this change breaks detection. Always game to test things - let me know when you have the design ready. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
I have made some progress on this. You can try out a new branch master-b which should install and mostly work on Bookworm (Debian 12) on the Pi Zero 2. Here are the changes: master...master-b Here's how to try it out:
To get the blue Transmit LED to work, you need to jumper GPIO pin 13 to 11 (GPIO27 to GPIO17) on your PCB. You can do it on any of the boards. The Transmit LED code is now behind a try so if there are GPIO issues, it will just mean the LED won't work, it won't crash the code. There are jumpers on the Lite PCB v2.0.4 and a future version of the Main PCB will also have this wired in, perhaps with a jumper. One strange bug is that to use the Pi Camera, you need to use sudo for all commands. Right now FoxTelem always shows Camera FAIL but the camera works in SSTV mode. Things still to do:
You can also use balenaEtcher to write this disk image to a 16 GB or larger micro SD Card: https://CubeSatSim.org/download/cubesatsim-v2.2-bookworm1.iso.zip The username and password are the usual This is based on the recent v2.2 release, which has some nice new features including improved simulated telemetry and simulated failures. See https://github.com/alanbjohnston/CubeSatSim/releases/tag/v2.2 for the details. Let me know if you try it out and it works or you find bugs. Please report them HERE! I won't be supporting this image or this master-b branch outside of this Discussion thread. Alan |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Alan - I'll give this a go in the coming days. |
Beta Was this translation helpful? Give feedback.
-
|
I have made some changes in the
It turns out that the Python GPIO library isn't doing something special with GPIO pin we are using for the Transmit LED. Instead, it seems that it is imposing a system wide lockout on GPIO pins. So if an application sets up a GPIO pin, no other running applications can use that pin. This might be good for beginners to avoid mistakes, but for a complex code, this is terrible. I have multiple pieces of code that all need to use the same GPIO pins: the main code, transmit code, command and control, and push button code. To have to put all that code into a single place so that the Python GPIO library allows it isn't possible. So I am moving away from this library and instead doing system calls to the WiringPi GPIO utilities. I will still move the Transmit LED GPIO, but I will do some gradually over a few releases as I roll out the PCB changes. Same instructions as before: I have uploaded a new Bookworm image: https://cubesatsim.org/download/cubesatsim-v2.2-bookworm2.iso.zip I'm quite happy with how this is going so far. Let me know if you give it a try! Alan |
Beta Was this translation helpful? Give feedback.
-
|
Installed from scratch - only difficulty encountered is Pi Image customization. WLAN doesn't get set reliably..... Need to play and test but on first listen, TX works (Telemetry and APRS) but haven't tried any of the other modes yet. Also the TX LED is working fine. (without the hw mod) stay tuned - a more detailed update to follow Marcel |
Beta Was this translation helpful? Give feedback.
-
|
so far all is looking good. APRS, Telemetry, SSTV are all working. Still need to play with the repeater mode and C&C. Thanks for this new release - good stuff! |
Beta Was this translation helpful? Give feedback.
-
|
I have made more changes and uploaded a new Bookworm disk image: https://cubesatsim.org/download/cubesatsim-v2.2-bookworm3.iso.zip This image, and the master-b branch now seems to work fine with either Bullseye or Bookworm. I had to put in some conditional code to detect which OS, as the camera code has to be different and the installation has a few minor differences too. I verified that Cross Band Repeater mode and FUNcube mode work. No jumper wire is needed for the Transmit LED to work. Eventually, I will merge this into the master branch - it has no new features besides compatibility with both Pi OS versions. I also changed the install script so that it also works as an update script - the only difference is if the CubeSatSim code has previously been compiled. So now instead of update being a separate script that has to be kept in sync with the install script, update is now just an alias that also calls install. It seems to work fine for v2.1 and v2.2 updates. I seem to hit a python pip problem trying to update from v2.0, but this might point to a problem with my v2.0 image. I don't recommend doing an update for earlier versions. Sometimes, running the update script multiple times can fix problems that are encountered. For fun, I tried to install it on the 32 bit Trixie Pi OS. It didn't work, of course, but the main problems seem to be that the latest rpitx and direwolf didn't compile - it probably just needs some new libraries and packages installed. Same installation instructions as before.
Alan |
Beta Was this translation helpful? Give feedback.
-
|
I have made more updates to the This code is getting pretty stable. It is using the very latest version of Direwolf. It also has a preview of a new CubeSatSim mode - PacSat! So you can try that out if you want. Instructions for this new mode are here: https://github.com/alanbjohnston/CubeSatSim/wiki/PacSat Same installation instructions as before.
Feel free to post any comments or bugs on this branch here. Alan |
Beta Was this translation helpful? Give feedback.
-
|
oh - this is interesting. Will definitely give PacSat a go. Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am interested in migrating the CubeSatSim image to support a more current Raspbian image, which uses Debian 12. The biggest issues I see are the usages of:
/boot/config.txt, which may be incompatible(?) with the newer Debian version. Will need to test this.Am I missing anything? I think migrating to the newer Debian release will be a worthwhile endeavor.
Beta Was this translation helpful? Give feedback.
All reactions