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

remap table defaults for system HK? #14

Open
CDKnightNASA opened this issue Jan 7, 2020 · 3 comments
Open

remap table defaults for system HK? #14

CDKnightNASA opened this issue Jan 7, 2020 · 3 comments

Comments

@CDKnightNASA
Copy link
Contributor

The lazy me, when configuring multiple CPU's in the build, is to copy cpu1_msgids.h to cpu2_msgids.h and cpu3_msgids.h. But this means that all three CPU's are listening to the same system commands such as CFE_TIME_CMD_MID but these really should not transit between CPU's.

Option 1 is to just live with this behavior, as in missions folks will customize these MIDs to be unique between CPU's.
Option 2 is to create a default remap table that "filters" these, but currently the remap table entries have to be specified for each CPU ID (so for a 3-CPU environment, the remap table would have 3 entries for each CMD MID.)
Option 2.a. would be to alter the remap logic to allow for "wildcard CPU ID", where if the CPU ID field is "0", the remap/filter rule applies for all CPU ID's. The table is sorted and searched, so this would require two searches for every lookup instead of one. Or else the sort order should be switched to be MID + CPUID.

@jphickey
Copy link

jphickey commented Jan 7, 2020

This is the notion of a "Topic ID" which is a value which is fixed (compile-time) but is translated at run time depending on the CPU number it is actually running on. It provides a very useful way to allow the same binary code to be loaded onto multiple CPUs (the core apps are prime examples of this) and also send/subscribe to non-conflicting software bus Msg IDs.

@CDKnightNASA
Copy link
Contributor Author

well...that and CCSDS extended headers :)

@jphickey
Copy link

jphickey commented Jan 7, 2020

The topic ID concept is fully implemented in the EDS branch but it is probably useful by itself, so maybe its worth backporting these functions that convert between topic ID and CFE_SB_MsgId_t values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants