← All packages

Telemetry & links

star-aos-c 0.1.3

CCSDS AOS/TM transfer-frame check in C99 (S.T.A.R.)

C library, not a Python package: there is nothing to install with pip. The deliverable is the source archive.

Public state: Beta. The registry label is VERIFIED. What the states mean →

Apache-2.0 Beta

Summary

CCSDS AOS v2 / TM v1 primary header decode and FECF CRC-16 check in C99, verified identical on 18 emulated ISAs and 12 simulated MCUs / space processors, cross-checked with spacepackets, fuzzed and mutation-tested.

Run in your browser

This is a C99 library, not a Python package: it cannot run in the browser. Download the source archive below and build it with any C99 compiler.

This is a C library: it does not run in the browser. Its Python tests that need the compiled library were skipped there.

Use it on your computer

No account and no GitHub needed. Download the source archive, unpack it, then compile the library with any C99 compiler:

cd star_telemetry_c
cc -std=c99 -O2 -c src/star_aos.c

Get started →

Cite it, and its bill of materials

For a paper, a report or a supplier file: the citation in two formats, and the software bill of materials (SBOM) in the two standard formats, with the fingerprint of the wheel.

@software{cavazzini_star_telemetry_c_0_1_3,
  author  = {Cavazzini, Andrea},
  title   = {{star-aos-c}: CCSDS AOS/TM transfer-frame check in C99 (S.T.A.R.)},
  version = {0.1.3},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_telemetry_c/},
  note    = {Apache-2.0. Source: https://github.com/Andrea07072000/S.T.A.R.-, commit dc09f61d}
}

For developers

Install directly from the public repository:

git clone https://github.com/Andrea07072000/S.T.A.R.-.git
cd S.T.A.R.-/packages/star_telemetry_c
cc -std=c99 -O2 -c src/star_aos.c

README · tests · evidence (GitHub)

Technical sheet

Package
star-aos-c
Import name
—
Version
0.1.3
Licence
Apache-2.0
Python
>=3.10
Dependencies
none (standard library only)
Capability
star.telemetry.aos-c
Maturity
Beta (VERIFIED)
Published commit
dc09f61d

Requirements

  • R1 star_aos_parse(frame, len, has_fecf, &hdr): TFVN, SCID, VCID, VC frame count, replay (AOS), FHP; TM: VC count from octet 3, OCF flag (4 octets before the FECF), secondary header skipped (length from its ID octet).
  • R2 FECF: CRC-16/CCITT-FALSE over the frame without the FECF; fecf_valid only when computed == received.
  • R3 Exact layout: data_offset + data_len + ocf_len (+2 with FECF) == len; TM data offset 6 or 7 + (ID & 0x3F).
  • R4 Errors: NULL inputs -> STAR_AOS_ERR_NULL; frames too short for the declared layout -> STAR_AOS_ERR_SHORT; never a read outside [frame, frame + len).
  • R5 Portability: identical results on every target listed below (byte-wise parsing, no undefined behaviour).

Limits (what is not claimed)

No timing (DWT is not modelled), no radiation behaviour, no flight heritage; simulated and emulated targets only. Defects found by this verification and fixed: TM VC count read from the master-channel octet, OCF read as "replay", OCF and secondary header left in the data (2026-10-04).

Release gate

Computed by the registry from the result files, with the same function that decides RELEASED.

Mutation score, latest measure of each module (needs at least 0.850)
  • star_aos.c 0.901 (2026-10-05)
Independent implementations written by others (needs 2)
spacepackets 0.32.0 (robamu, Python)
Also compared with, not counted
S.T.A.R.'s own re-derivations: star_aos C99 (S.T.A.R.)
Result
Beta

Missing: another independent implementation written by others (now 1 of 2)

Evidence in the registry

CheckStatusRecordedWhat was observed
BenchmarkVERIFIED2026-10-071/1 target PASS (core_v_mcu: PULP standard output port, a write-only character register; code and data in the RAM at 0x1C000000); negative controls: the same build driven at another address -> NO_OUTPUT; drivers with another data register (OpenTitan, NXP LPUART) or a byte-wide access (NS16550) -> NO_OUTPUT; LIMIT, pinned as a test: drivers of other UARTs that also write a word at offset 0 (SiFive,
BenchmarkVERIFIED2026-10-074/4 targets PASS (kendryte_k210, sifive_fu540, sifive_fu740: SiFive UART; starfive_jh7100: NS16550 with word-spaced registers); built for rv64im, hart 0 runs the check and the other harts wait; negative controls: wrong UART address -> NO_OUTPUT, a driver with another data register does not pass on three of them; the limit recorded for the simulated NS16550 (register spacing not told apart) applies
BenchmarkVERIFIED2026-10-079/10 targets PASS (litex_ibex, litex_minerva, litex_vexriscv: LiteX UART; opentitan_earlgrey: OpenTitan UART; picosoc: PicoSoC simple UART; ri5cy: NXP LPUART; riscv_virt: NS16550; andes_ae350 and egis_et171: NS16550 with word-spaced registers, two systems with the same CPU family); murax_vexriscv NO_OUTPUT, recorded as not passed and not counted; negative controls: wrong UART address -> NO_OUTPUT;
BenchmarkVERIFIED2026-10-071/2 targets PASS (imxrt500 cortex-m33 LPC Flexcomm USART); npcx9 NO_OUTPUT, recorded as not passed and not counted; negative controls: wrong UART address -> NO_OUTPUT, the LPUART driver at the right address does not pass; simulated models, no physical hardware
BenchmarkVERIFIED2026-10-072/2 targets PASS (arm_cortex_a53, arm_cortex_a78: PL011 UART); built with aarch64-linux-gnu-gcc -mgeneral-regs-only -mstrict-align and a four-instruction start-up file, code and data in the RAM at 0x40000000; negative controls: another UART address -> NO_OUTPUT; drivers of other UARTs -> NO_OUTPUT (the PL011 must be enabled first; five drivers measured on the Cortex-A53, three of them and two on t
BenchmarkVERIFIED2026-10-074/4 targets PASS (nxp_lpc2294: ARM7TDMI, NS16550; atmel_at91rm9200: ARM926EJ-S, AT91 debug unit; nvidia_tegra2: Cortex-A9, NS16550; allwinner_a20: Cortex-A7 class, NS16550); built with arm-none-eabi-gcc -marm, code and data in one memory region; negative controls: another UART address -> NO_OUTPUT; a driver of another UART -> NO_OUTPUT on the AT91 debug unit (three drivers tried) and for drivers w
ReviewVERIFIED2026-10-06Build from the tag archive and in-tree build produce byte-identical output on the verification stream
BenchmarkVERIFIED2026-10-0613/13 targets PASS (stm32f042, stm32f072, stm32f412, stm32f429, stm32f777, stm32g0, stm32h743, stm32h753, stm32l071, stm32l072, stm32l151, stm32l552, stm32wba52); cores cortex-m0, cortex-m0plus, cortex-m3, cortex-m33, cortex-m4, cortex-m7; tools: runtime: .NET 8.0.31; arm-none-eabi-gcc (15:10.3-2021.07-4) 10.3.1 20210621 (release); negative controls: wrong USART -> NO_OUTPUT, altered reference ->
BenchmarkVERIFIED2026-10-063/4 targets PASS (ambiq_apollo4 cortex-m4 PL011, eos_s3 cortex-m4 PL011, nxp_s32k388 cortex-m7 LPUART; three different RAM origins); stm32f0_generic NO_OUTPUT (recorded as not passed); negative control: wrong UART address -> NO_OUTPUT; the generic stm32f103, stm32f4 and stm32f746 descriptions also pass but were already counted and are not counted again; simulated models, no physical hardware
Clean install from the release tagVERIFIED2026-10-06305/305 frames equal to the Python reference, 0 field mismatches
Cross-check with independent librariesVERIFIED2026-10-05star_aos (C) decodes CCSDS TM frames identically to an independent lineage on the pinned ccsds_audit corpus
Unit testsVERIFIED2026-10-0530 passed in 181.47s (0:03:01)
ReviewVERIFIED2026-10-05Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed
ReviewVERIFIED2026-10-05Build from the tag archive and in-tree build produce byte-identical output on the verification stream
ReviewVERIFIED2026-10-05Build from the tag archive and in-tree build produce byte-identical output on the verification stream
ReviewVERIFIED2026-10-05Build from the tag archive and in-tree build produce byte-identical output on the verification stream
Clean install from the release tagVERIFIED2026-10-05305/305 frames equal to the Python reference, 0 field mismatches
Clean install from the release tagVERIFIED2026-10-05305/305 frames equal to the Python reference, 0 field mismatches
Clean install from the release tagVERIFIED2026-10-05305/305 frames equal to the Python reference, 0 field mismatches
Reference valueVERIFIED2026-10-055 F Prime native frames + 300 bit-flipped equal to the Python reference on 30 targets; spacepackets agreement 40/40 + 260/260 (suite: 30 passed in 181.47s (0:03:01))
Mutation testingVERIFIED2026-10-05146/162 = 0.9012
BenchmarkVERIFIED2026-10-04x86_64 native 467924 frames/s; aarch64 qemu-user 109035; armhf qemu-user 75677; Python engine 1718 frames/s; 0 invalid frames on every target
Unit testsVERIFIED2026-10-046/6 UART lines as expected; tfvn/scid/vcid/vcfc/fhp/fecf identical to Python for frames 0-4; corrupted frame: fecf_received 24036 != fecf_computed 65103 -> rejected; firmware 2734 B text, 256 B bss
Unit testsVERIFIED2026-10-046/6 USART2 lines as expected; corrupted frame fecf 24036 vs 65103 rejected
Unit testsVERIFIED2026-10-046/6 APBUART lines; 7 fields identical to Python for frames 0-4; corrupted frame fecf 24036 vs computed 65103 -> rejected; byte-oriented parser is endianness-independent (same results little- and big-endian)
Unit testsVERIFIED2026-10-048,306,880 executions in 121 s: 0 crashes, 0 sanitizer reports, 0 invariant violations; cppcheck 2.7 (warning,style,performance,portability): 0 findings
Unit testsVERIFIED2026-10-049/9 targets: 305/305 frames identical on 8 fields; all really-changed FECF frames rejected (3 restored-by-double-flip excluded); 4 big-endian ISAs included

Fingerprints (SHA-256)

star_telemetry_c-0.1.3-source.zip11f65f810ceba60b2435b7e216d32aa11d414322f91dd2b4aa811d8363c9a66a

results