fprime-yamcs: A YAMCS to F Prime Bridge Package
fprime-yamcs is designed to run YAMCS as the ground system when working with fprime. It operates similar to fprime-gds where it launches YAMCS in-lieu of the fprime-gds data pipelines.
Requirements
fprime-yamcs is pip-only: pip install fprime-yamcs brings in everything needed to run,
including the YAMCS jars (fprime-yamcs-bundle, AGPL-3.0) and a trimmed Java runtime
(fprime-jre, Eclipse Temurin 25, GPL-2.0
with Classpath Exception). Neither Maven nor a system JDK is required.
The launcher resolves Java in this order: JAVA_HOME, then java on the PATH, then the
pip-provided runtime — using the first candidate that is Java 17 or newer.
fprime-jre is published for Linux (x86_64, arm64), macOS (x86_64, arm64), and Windows
(x86_64), and installs automatically on those platforms via environment markers; it also puts
a java command on the PATH of the Python environment. On other platforms it is skipped:
pip install fprime-yamcs still succeeds, and a system Java 17+ must be provided (set
JAVA_HOME or add java to the PATH).
Usage
Install this package and run fprime-yamcs on a compatible F Prime deployment.
fprime-yamcs accepts the F Prime GDS communication adapter options (--communication-selection and the selected adapter's flags) and is a drop-in replacement for fprime-gds on the CCSDS TM/TC path. The default adapter is tcp-fast-server on port 50000, exactly as fprime-gds serves a Drv.TcpClient deployment: the launcher starts fprime-yamcs-comm automatically, which aggregates the TCP byte stream into complete TM transfer frames (tm-frame-aggregator, sized from the dictionary) and forwards them to the YAMCS UDP links. Any other non-udp adapter (tcp-fast-client, ip, uart, or an installed adapter plugin) is bridged the same way with its own flags forwarded. From the F Prime Ref deployment directory:
fprime-yamcs
Selecting --communication-selection udp expects the deployment to exchange UDP datagrams with the YAMCS links directly; no bridge is started.
fprime-yamcs-events: Event Processor
fprime-yamcs-events runs the F Prime event processor standalone: it reads the F Prime JSON topology dictionary and publishes F Prime events into YAMCS. It is launched automatically by fprime-yamcs; run it directly when operating YAMCS without the full fprime-yamcs launcher.
F´ Events Web Display
The YAMCS web interface gains an F´ Events page (sidebar item, served at /ext/fprime-events) providing the event display F Prime developers know from fprime-gds:
- Whole-row colors by F Prime severity (FATAL, WARNING_HI, WARNING_LO, ACTIVITY_HI, ACTIVITY_LO, COMMAND, DIAGNOSTIC), using a color-blind-safe palette derived from Okabe-Ito.
- Filtering by event ID (hex or decimal), event name, message text, severity (per-severity toggles), and time range.
- A virtualized table (only on-screen rows are rendered) with infinite scroll-back into the YAMCS event archive, plus a "Follow latest" toggle that keeps the view pinned to the newest event.
This works because the event processor publishes each event with structured extra fields (fprime_severity, fprime_event_id, fprime_event_name) preserving the full 7-level F Prime severity set, which YAMCS's native 5-level severity model cannot represent. The page is registered by the FprimeEventsWebExtension YAMCS plugin bundled with the YAMCS project that fprime-yamcs builds; no additional configuration is required. Events published by older versions of the event processor (without the extra fields) are shown with a best-effort severity derived from the YAMCS severity.
Data-Flow Orb
Every YAMCS web page also gains the data-flow indicator F Prime developers know from the fprime-gds main screen: an orb in the top toolbar (left of STORAGE) that glows green while telemetry or events are flowing and turns into a red X once neither has been seen for 5 seconds (the same timeout fprime-gds uses). Hovering the orb shows a per-source breakdown (telemetry vs. events); the orb is grey while no YAMCS instance is selected.
Telemetry flow is detected from the selected processor's TM statistics stream (received-packet count deltas), and event flow from the instance's event stream, so the orb reflects live downlink activity regardless of which page is open.
fprime-yamcs-tlmchan: Telemetry Channel Splitter
Svc.TlmChan packs multiple (id, time, value) telemetry channel records into a single downlinked packet, but the generated XTCE models one channel per packet keyed on the first channel id — so YAMCS alone only decodes the first record of each packet.
fprime-yamcs-tlmchan closes this gap: it reads the F Prime JSON topology dictionary, subscribes to the aggregate FPrimeTelemetryChannel container, walks every record in each packet, and re-injects each record beyond the first as a standalone single-record space packet on a dedicated UDP telemetry data link (UDP_TM_SPLIT_IN, default port 50002, configurable via --udp-tm-inject-port / FPRIME_YAMCS_TM_INJECT_PORT). YAMCS then decodes each injected packet through its normal XTCE path, publishing every channel as a parameter. It is launched automatically by fprime-yamcs; run it directly when operating YAMCS without the full fprime-yamcs launcher.
fprime-yamcs-comm: Communication Bridge
fprime-yamcs-comm bridges bidirectional communication between an F Prime endpoint and the YAMCS UDP intake/outlet. fprime-yamcs starts it automatically whenever a communication adapter other than udp is selected (forwarding the adapter options, the dictionary, and the configured YAMCS UDP ports, with tm-frame-aggregator framing); run it directly when operating YAMCS without the full launcher.
- The endpoint side is reached through an F Prime GDS communication adapter plugin (
--communication-selection:tcp-fast-serverby default on--tcp-fast-port50000, ortcp-fast-client,uart,ip, or any installed adapter plugin). - The YAMCS side pushes deframed packets as UDP datagrams to the telemetry intake (
--tm-host/--tm-port, default127.0.0.1:50000) and receives command datagrams on a local UDP port (--tc-host/--tc-port, default127.0.0.1:50001). Command datagrams are only accepted from the TM host, loopback (127.0.0.1), and any hosts supplied via--tc-allowed-source; hostnames are resolved to IPv4 addresses once at startup and compared against the datagram source IP. - One stage of framing/deframing sits in between, provided by an F Prime GDS framing plugin (
--framing-selection). The default,tm-frame-aggregator, reassembles the endpoint byte stream into complete fixed-size CCSDS TM transfer frames (one per UDP datagram) and passes TC frames through unchanged, since YAMCS performs the CCSDS framing/deframing itself. It needs the frame size and spacecraft ID: pass--dictionary <F Prime JSON dictionary>or--deployment <build output directory>(the standardfprime-gdsdictionary options, readingComCfg.TmFrameFixedSize/ComCfg.SpacecraftId; the launcher forwards its own dictionary) or--frame-size/--scidexplicitly. Without any of these the dictionary is not loaded, so framings that need none (no-op,fprime) run standalone. Selectno-opto pass data through unchanged, orfprimefor the standard F Prime framing (start word, length, data, checksum).
Operational notes: the bridge exits with a non-zero code if either data pump fails abnormally, so supervisors can detect and restart it; buffered downlink data that the framing plugin cannot deframe is discarded (with a warning) once it exceeds ten maximum-size datagrams (~640 KB).
Example, serving a Drv.TcpClient deployment on TCP port 50000 with TM frames sized from the dictionary (all UDP flags shown use their default values):
fprime-yamcs-comm --deployment build-artifacts/Linux/Ref \
--tm-host 127.0.0.1 --tm-port 50000 --tc-port 50001
Example, bridging a UART device to YAMCS with F Prime framing recovering packet boundaries:
fprime-yamcs-comm --communication-selection uart --uart-device /dev/ttyUSB0 --uart-baud 115200 \
--framing-selection fprime --tm-host 127.0.0.1 --tm-port 50000 --tc-port 50001
flowchart LR
subgraph COMM["fprime-yamcs-comm"]
ADPT["Comm Adapter Plugin<br/>(--communication-selection)"]
FRAME["Framing Plugin<br/>(--framing-selection, default tm-frame-aggregator)"]
UDP["YAMCS UDP Endpoints<br/>(TM out / TC in)"]
ADPT <--> FRAME
FRAME <--> UDP
end
EP["F´ Endpoint<br/>(TCP, UART, ...)"] <--> ADPT
UDP <--> YAMCS["YAMCS UDP intake/outlet"]
Testing
The bridge's integration tests (tests/test_comm_bridge.py) require socat to emulate a UART endpoint; without it only the unit tests run (the integration tests are skipped). CI environments running these tests should install socat.
Configuration
YAMCS is powerful and has many configuration properties. fprime-yamcs requires one instance of YAMCS defined in the configuration to have the following MDB:
mdb:
- type: xtce
args:
file: .../fprime.xtce.xml
This is to allow for automatic dictionary generation. Users declining this service must specify: --no-convert-dictionary.
SDLS Encryption (AES-256-GCM)
SDLS is off by default: frames are clear-text unless a key file is supplied. Deployments built on the
Svc.ComCcsdsSdls subtopology with Svc.Ccsds.AesGcmEncryptor/AesGcmDecryptor enable it with:
fprime-yamcs --yamcs-sdls-key-file path/to/sdls.key [--yamcs-sdls-spi 1]
The key file must hold exactly 32 bytes (AES-256) and be the same file read by the deployment's
Svc.Ccsds.SdlsFileKeyManager. When set, the generated YAMCS configuration decrypts TM and encrypts TC with
org.yamcs.security.sdls.SecurityAssociationAes256Gcm128Factory on the given SPI (default 1, matching the
F Prime SdlsSaRouter default map).
This flag configures YAMCS only. The deployment binary is launched exactly as fprime-gds launches it, so a
deployment that reads its key from -k must be given that argument through --application-arguments, which
replaces the default -p/-a arguments. The usual place is the project's fprime-gds.yml:
command-line-options:
communication-selection: udp
yamcs-sdls-key-file: sdls.key
application-arguments: ["-p", "50000", "-a", "0.0.0.0", "-k", "sdls.key"]
Web Extensions
Projects may extend the YAMCS web interface with their own JavaScript:
fprime-yamcs --yamcs-web-extension-dirs path/to/extension-dir ...
Every top-level .js file in each directory is loaded as a module script by
the YAMCS web interface, and the directory's files are served alongside the
webapp's static files. Paths must not contain commas or whitespace.
Extensions may also be shipped as pip packages: include the extension directory as package
data and advertise it through a fprime_yamcs.web_extensions entry point resolving to the
directory path (a str/Path, an iterable of them, or a zero-argument callable returning
either). Installed extensions are discovered automatically — no flags required:
[project.entry-points."fprime_yamcs.web_extensions"]
my_extension = "my_package:WEB_EXTENSION_DIR"
YAMCS Plugins
Projects with their own Java YAMCS plugins can add jars to the YAMCS classpath:
fprime-yamcs --yamcs-plugin-jars path/to/plugin.jar path/to/jar-dir ...
Plugin jars may also be shipped as pip packages: build the jar in CI (the reusable
build-yamcs-plugin.yml workflow does this),
include it as package data, and advertise it through a fprime_yamcs.plugin_jars entry point
resolving to the jar (or a directory of jars). Installed plugin jars are discovered
automatically. On the classpath, the YAMCS jars come first, then the fprime-yamcs plugin
jar, then entry-point discovered jars, then --yamcs-plugin-jars values:
[project.entry-points."fprime_yamcs.plugin_jars"]
my_plugin = "my_package:PLUGIN_JAR"
Packages and Licensing
| Package | Contents | License |
|---|---|---|
fprime-yamcs |
Python code + the fprime-yamcs YAMCS plugin jar | Apache-2.0 |
fprime-yamcs-bundle |
YAMCS and its dependency jars | AGPL-3.0 |
fprime-jre |
jlink-trimmed Eclipse Temurin Java runtime | GPL-2.0 with Classpath Exception |
Caveats
Currently, the default configuration of YAMCS requires F Prime to connect a CCSDS TC/TM framer/deframer to the Drv.Udp component ensuring that UDP is the transport mechanism, unless a non-udp communication adapter is selected (the default tcp-fast-server, uart, ...) so that fprime-yamcs-comm bridges the endpoint to the YAMCS UDP links.
flowchart LR
subgraph FPRIME["F´"]
FPD["F´ Dictionary<br/>(JSON topology dictionary)"]
end
subgraph OUTER["fprime-yamcs CLI"]
subgraph FY["fprime-yamcs"]
XTCEC["XTCE Converter<br/>(fprime-xtce)"]
EVENTS["F Prime Event Processor"]
BASECFG["Standard Config<br/>(yamcs.yml, processors, links, etc.)"]
end
XTCE["XTCE Dictionary<br/>(YAMCS dialect XML)"]
subgraph YSYS["YAMCS"]
YAMCS["Mission Control / Ground System"]
end
end
FPD --> XTCEC
FPD --> EVENTS
XTCEC --> XTCE
XTCE --> YAMCS
EVENTS --> YAMCS
BASECFG --> YAMCS
%% Make the outer box dotted with no background
style OUTER stroke-dasharray: 5 5, fill:none
Metadata
Release files for fprime-yamcs 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fprime_yamcs-0.2.1.tar.gz | 168.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fprime_yamcs-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 308.5 kB
Release files / fprime_yamcs-0.2.1.tar.gz
| Download URL | fprime_yamcs-0.2.1.tar.gz |
|---|---|
| Size | 168.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a08cd8d64e152ee88d92586384bff840bb2ca1d1f6581dd329d197836efdaf3
|
|
BLAKE2b-256 checksum How to use checksums |
52d96b2d9e769a74bd46328b6cc05d482a8f4254e6aba59e30e9e4e3920decfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / fprime_yamcs-0.2.1-py3-none-any.whl
| Download URL | fprime_yamcs-0.2.1-py3-none-any.whl |
|---|---|
| Size | 140.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28566db0c782dcf39116044d8f803467463717b249b4566e877859475720cae7
|
|
BLAKE2b-256 checksum How to use checksums |
554cbf8db0cb20b95fa5025c48f0ac436917ec6c7f0c6709ac7db9de36b62986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency log