The Software Bus Network Client (SBNC) communicates with NASA's core Flight System (cFS) Software Bus Network (SBN) application. Its main purpose is to facilitate two-way communication from the cFS Software Bus service to an external application (i.e. an application that is not a child task of cFS). SBNC implements the SBN communication protocol and provides access to the Software Bus through a standalone C library.
We also support using SBNC within existing cFS applications through a modified build system and function wrappers. The function wrappers allow the source code of the library to remain unchanged while optionally linking to cFS's libraries. This configuration allows the cFS application to be isolated in an OS process which provides memory isolation from the rest of cFS.
SBNC is intended to support the rapid development of software concepts for future flight software and technology demonstrations. It is not intended to be used in flight software.
Currently works with the cFS integration candidate from 2020-05-27: github.com/nasa/cFS, which uses cFE 6.7.19 github.com/nasa/cFE.
Tested with SBN 1.11.0, specifically: github.com/nasa/SBN.
Configuration is set by defines in sbn_client_defs.h
.
For now, this is only the IP address and port used by SBN, which should match that in sbn_conf_tbl.c
.
This version is meant to allow an outside program to communicate with a cFS instantiation through the Software Bus, mediated by the Software Bus Network. It may be used for bindings to other languages, such as Python, and does not require the rest of cFE to be linked.
The SBN communicates with sbn_client via TCP/IP with the port and IP address set in the sbn_client_defs.h file. These may be updated for the user's particular instance.
The functions provided are exported in sbn_client.h and the redefined symbols can be found in unwrap_sybmols.txt.
The first thing to do is edit the Makefile
and ensure that all of the included directories are set correctly.
Headers from SBN, cFE, OSAL, and PSP are all required so that things like the message size matches between cFS and the standalone application.
In addition, cFS has several generated headers in the mission defs folder that should be linked.
Once done, running make
should produce sbn_client.so
which may be linked by your program.
Intended to be used by cFS applications that are isolated as separate processes.
The sbn_client directory should be located with all of the other cFS applications. The library will be built by cFS's CMake system.
There are a number of workarounds used to allow for SBN Client to be used in both environments, but ultimately these are preferable to having diverging source code. The crux of the problem is that for process applications the library needs to be linked alongside of the rest of cFS. Thus we have to wrap function names that we want to override for the process applications, and then unwrap those calls for standalone applications.
Please refer to NOSA GSC-18396-1.pdf and COPYRIGHT.
Please open an issue if you find any problems. We are a small team, but will try to respond in a timely fashion.
If you would like to contribute code, GREAT! First you will need to complete the Individual Contributor License Agreement (pdf) and email it to [email protected] with [email protected] CCed.
Next, please create an issue for the fix or feature and note that you intend to work on it. Fork the repository and create a branch with a name that starts with the issue number. Once done, submit your pull request and we'll take a look. You may want to make draft pull requests to solicit feedback on larger changes.