-
Notifications
You must be signed in to change notification settings - Fork 5
Authenticate router #139
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
Draft
ineskhou
wants to merge
163
commits into
main
Choose a base branch
from
authenticate-router
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Authenticate router #139
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is for a patch for the gds accepting da packages
…-only Ran Linter
…s-core-reference into radio
…-core-reference into radio
…-core-reference into radio
…-core-reference into router
…-core-reference into router
Contributor
Author
|
To Do:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Title (e.g., Feature: Add user authentication)
Description
Created a component called ComCcsdsLora in order to replace the FramingSubtopology from lib/fprime. The module defines a Subtopology matching the original FramingSubtopology structure. The topology now imports ComCcsdsLora.Subtopology instead of ComCcsds.FramingSubtopology.
. To keep custom code out of lib/fprime, ComCcsdsLora follows the ComCcsdsUart pattern: it uses ComCcsds::Allocation::memAllocator from lib/fprime's Svc_Subtopologies_ComCcsds_ComCcsdsConfig dependency, includes the same headers (ComCcsdsConfig/ComCcsdsSubtopologyConfig.hpp and Svc/Subtopologies/ComCcsds/ComCcsdsConfig/FppConstantsAc.hpp), and is registered as an INTERFACE module. )
Later, we will want to do this with the S Band Radio and remove the UART connectoins!!
Command Loss Time
The component tracks the time since the last command via a periodic scheduler (schedIn). When the elapsed time exceeds the configurable LOSS_MAX_TIME parameter (default 3 days), it emits a CommandLossTimeExpired event and sends a SafeModeOn signal to the safe mode port.
The implementation supports both RTC and monotonic time sources with separate persistent files (loss_max_time.txt and loss_max_time_monotonic.txt), automatically detects time source switches (e.g., RTC fault reverting to monotonic), and updates the right file. It does depend on the file system to persit accross boots.
The last command time is persisted across boots and only overwritten when commands are received or when the file contains invalid data (e.g., zero values from uninitialized RTC).
Also telemetry channels LastCommandPacketTime, CommandLossSafeOn to check if events are missed in the health telemerey channel
Authenticate
component in the toplogy that deframs authenticated packets and checks hmac
plugin that frames packets and generates hmac
router that checks status of packet whether authenticate or not and passes to router or not
Related Issues/Tickets
Closes #107 and #101
How Has This Been Tested?
Screenshots / Recordings (if applicable)
Checklist
Further Notes / Considerations