Skip to content
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

[FEATURE] Save Logs to the SD Card #121

Open
6 tasks
Mikefly123 opened this issue Jan 29, 2025 · 0 comments
Open
6 tasks

[FEATURE] Save Logs to the SD Card #121

Mikefly123 opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Mikefly123
Copy link
Member

Mikefly123 commented Jan 29, 2025

Story

  • As a Flight Software Developer.
  • I want to be able to maintain a database of logs in the satellite's SD card.
  • So that I can access the logs at a later time if the code is running and I am not connected via terminal.

Acceptance Criteria

  • Handle creation, deletion, and detection of a log file on the SD card
  • logger.py has an option to save logs to a file in the SD card
  • logger.py provides the ability to filter the levels of logs which are saved
  • Saved logs can be dumped to the terminal
  • Automatically truncate log files that get too big
  • [Stretch] Shell tool for automatically extracting logs and copying them to a json on the host computer

Technical Details

With Blake's big changes to how we are able to log information that comes out of the satellite in #112 and #109 it would now be really great if that info could be backed up to the SD card so we can take a look at it later! Note that this task will require some underlying infrastructure to give you the tools needed to read and write from the CircuitPython File System that may or may not exist yet.

Required Hardware

  • Probably V4c Flight Controller or above since V4b's did not always come with SD Card slots. Testing could maybe be done by just writing a file in the root CircuitPy folder "/" and changed to "/sd" later.
@Mikefly123 Mikefly123 added the enhancement New feature or request label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants