{"id":42010041,"url":"https://github.com/nasa/tvsio-demo","last_synced_at":"2026-01-26T02:21:35.208Z","repository":{"id":141532379,"uuid":"458288750","full_name":"nasa/tvsio-demo","owner":"nasa","description":"A sample project for integrating TVS-IO into cFS","archived":false,"fork":false,"pushed_at":"2024-08-29T19:06:56.000Z","size":47199,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T14:03:23.581Z","etag":null,"topics":["cfs","demo","sample","sbn","trick","tvsio"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nasa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-11T17:57:09.000Z","updated_at":"2025-01-10T04:10:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"594ebb4e-3b52-4980-9720-37bbcacf169e","html_url":"https://github.com/nasa/tvsio-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nasa/tvsio-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa%2Ftvsio-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa%2Ftvsio-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa%2Ftvsio-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa%2Ftvsio-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nasa","download_url":"https://codeload.github.com/nasa/tvsio-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa%2Ftvsio-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28764905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"online","status_checked_at":"2026-01-26T02:00:08.215Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cfs","demo","sample","sbn","trick","tvsio"],"created_at":"2026-01-26T02:21:34.630Z","updated_at":"2026-01-26T02:21:35.203Z","avatar_url":"https://github.com/nasa.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TVS-IO Demo\nThis is a sample Core Flight Software (cFS) project to demonstrate how [Trick Variable Server IO](https://github.com/nasa/tvsio) can be used.\n\nThis project includes two very basic Trick simulations and one basic CFS app. One trick sim is a 'temperature' data producer the other is a consumer. The CFS app, called temp_mon, will monitor the 'temperature' data and send a reset command to reset the data counter. TVS-IO app connects to the Trick Variable Server of each sim, reading and writing values as defined by the \\*.tvm files. TVS-IO is the messenger that allows the two trick sims to talk to the temp_mon CFS app. \n\nTVS-IO is included as a submodule at [`apps/tvs_io`](apps)\n\n## Building\n### CFS[^1]\nAt the top level of the repo:\n```bash\nmake prep\nmake install\n```\n### Trick[^2]\n\nThe sims are located in the [trick_sims](trick_sims) folder\n\n \n1. #### SIM_temp\n   This sim is extremely simple. All it does is to count up and reset back to 0 when a reset flag is received. This value is mapped in a \\*.tvm file to be read by TVS-IO and sent to SIM_range\n\n\n2. #### SIM_range\n   This sim monitors a value which is set by TVS-IO, and prints it to the console\n   \nFor both, the same process will build each sim.\n   ```bash\n   cd trick_sims/SIM_...\n   trick-CP\n   ```\n   This command will build the executable, which will be named `S_main_\u003cplatform\u003e.exe`. For example on 64bit linux it might be named `S_main_Linux_4.8_x86_64.exe`\n\n## Running\nYou will need three terminals, two for each sim and one for cfs\n1. Start cFS\n   ```bash\n   cd build/exe/cpu1\n   ./core-cpu1\n   ```\n2. Start each sim:\n   ```bash\n   cd trick_sims/SIM_temp\n   ./S_main_Linux_4.8_x86_64.exe RUN_temp/input.py\n   ...\n   cd trick_sims/SIM_range\n   ./S_main* RUN_range/input.py\n   ```\nIf this is your first time running CFS on your machine, you will probably need to increase your message queue limit. If this is the case you should see a message which looks like this when you try to run\n```\nYour queue depth may be too large for the\nOS to handle. Please check the msg_max\nparameter located in /proc/sys/fs/mqueue/msg_max\non your Linux file system and raise it if you\nneed to or run as root\n```\nIncrease the limit using\n```bash\nsudo sysctl -w fs.mqueue.msg_max=256 | sudo tee -a /etc/sysctl.conf\nsudo sysctl --system\n```\nNote this limit is an artifact of how cFS works, it is NOT TVS-IO specific\n### What you should see\nIf everything is running correctly, when CFS is started, you should see a bunch of initialization messages followed by TVSIO periodically attempting to connect to each trick sim.\n\nWhen each trick sim is started, you should see a succesful connection message. Finally once everything is connected, SIM temp will begin counting\n\n\n\n[^1]: For the cFS portion of this project [CFS-101](https://github.com/nasa/CFS-101) is recommended. That will teach you the basics of cFS.\n[^2]: It is necessary to build and install Trick. Please visit [Trick Github](https://github.com/nasa/trick) and follow the installation guide.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa%2Ftvsio-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasa%2Ftvsio-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa%2Ftvsio-demo/lists"}