-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SD card umount function doesn't work on reset_vbus, and reset_vbus kills our satellite #46
Comments
Hey @Michael-Esser777 is this an error that you are getting when Also, there aren't any line numbers here, so could you let me know what is on line 630 or upload a copy of your file to the issue ticket? |
Line 630 is the umount("/sd") line We get this error when c.check_reboot() is called in the main loop.
We actually discovered this error because we messed with our BOOTTIME causing self.UPTIME to be greater then 86400. My understanding of this code is that the satellite attempts to reboot itself every 86400 seconds, aka every day. However, instead it is deinitializing the radio and freezing the satellite |
Got it! I suspect this might be a case of changed syntax between different versions of CircuitPython. The original PyCubed Flight Software that we based our code on was written way back during CircuitPython 6.0! I'll do a little more investigating, for now I would recommend just commenting out or writing |
@Michael-Esser777 when you get the chance can you send me a screenshot of your terminal when |
Hey @Michael-Esser777 I took another look at this and I noticed that the error message thrown is actually on Line 631 in the screenshot you sent. Is it possible that the error is due to |
The error was on line 630 but then I added a line above before sending that screenshot so now it's on 631. Should we try calling |
Hi @Michael-Esser777 sorry I we got out of step with helping you on this issue! Your last comment was just a few days before we handed off the Orpheus satellite (which is now in space!) so we lost track of this thread. Is this an issue you are still grappling with? |
No worries, not a super pressing issue. Yes, this is still an issue were struggling with. Just to recap, I believe the issue is with the code attempting to reboot the satellite after it has been running for a day, however it doesn't work and kills the satellite instead, so right now our solution is just to get rid of that functionality. I can't do any work on this until after break (January 20th), but lmk if you have know of any fixes and I can try them out once I get back. |
So right now, the code that is on the
If you are fine with just that functionality then I would recommend just merging that into your current code base and running with it. It might be a little messy with using that function without unmounting the sd card, but we haven't seen any issues with data corruption on our side as long as you aren't resetting midway through a write operation or something. |
We get an error on the "umount("/sd")" line:
[pysquared]error unmounting SD cardTraceback (most recent call last):
File "lib/pysquared.py", line 630, in reset_vbus
OSError: [Errno 22] Invalid argument
We've tried everything including manually adding a sd directory to the rp2040.
Also, even when we comment out the umount line, this function deinitializes our radio and kills the satellite.
When we comment out the function entirely the satellite works perfectly fine.
The text was updated successfully, but these errors were encountered: