← Tutti i pacchetti

Telemetria e collegamenti

star-aos-c 0.1.3

Controllo dei transfer frame CCSDS AOS/TM in C99 (S.T.A.R.)

Libreria C, non un pacchetto Python: non c'è nulla da installare con pip. Ciò che si consegna è l'archivio dei sorgenti.

Stato pubblico: Beta. L'etichetta nel registro è VERIFIED. Che cosa significano gli stati →

Apache-2.0 Beta

Sintesi

Decodifica dell'intestazione primaria CCSDS AOS v2 / TM v1 e controllo CRC-16 del FECF in C99, con risultati identici verificati su 18 architetture emulate e 12 microcontrollori / processori spaziali simulati, confronto incrociato con spacepackets, fuzzing e mutation testing.

Esegui nel browser

Questa è una libreria C99, non un pacchetto Python: non può girare nel browser. Scarica qui sotto l'archivio dei sorgenti e compilalo con qualunque compilatore C99.

È una libreria C: non funziona nel browser. I suoi test Python che richiedono la libreria compilata lì sono stati saltati.

Usalo sul tuo computer

Non servono account né GitHub. Scarica l'archivio dei sorgenti, estrailo, poi compila la libreria con qualunque compilatore C99:

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

Come iniziare →

Citarlo, e la sua distinta dei componenti

Per un articolo, una relazione o un fascicolo fornitore: la citazione in due formati e la distinta dei componenti software (SBOM) nei due formati standard, con l'impronta del wheel.

@software{cavazzini_star_telemetry_c_0_1_3,
  author  = {Cavazzini, Andrea},
  title   = {{star-aos-c}: Controllo dei transfer frame CCSDS AOS/TM 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}
}

Per sviluppatori

Installa direttamente dal repository pubblico:

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 · test · evidenze (GitHub)

Scheda tecnica

Pacchetto
star-aos-c
Nome da importare
—
Versione
0.1.3
Licenza
Apache-2.0
Python
>=3.10
Dipendenze
nessuna (solo libreria standard)
Capacità
star.telemetry.aos-c
Maturità
Beta (VERIFIED)
Commit pubblicato
dc09f61d

Requisiti

  • R1 star_aos_parse(frame, len, has_fecf, &hdr): TFVN, SCID, VCID, contatore di frame del canale virtuale, replay (AOS), FHP; TM: contatore del canale virtuale dall'ottetto 3, flag OCF (4 ottetti prima del FECF), intestazione secondaria saltata (lunghezza dal suo ottetto ID).
  • R2 FECF: CRC-16/CCITT-FALSE sul frame senza il FECF; fecf_valid solo quando calcolato == ricevuto.
  • R3 Formato esatto: data_offset + data_len + ocf_len (+2 with FECF) == len; offset dei dati TM 6 oppure 7 + (ID & 0x3F).
  • R4 Errori: ingressi NULL -> STAR_AOS_ERR_NULL; frame troppo corti per il formato dichiarato -> STAR_AOS_ERR_SHORT; mai una lettura fuori da [frame, frame + len).
  • R5 Portabilità: risultati identici su ogni piattaforma elencata sotto (lettura byte per byte, nessun comportamento indefinito).

Limiti (che cosa non si afferma)

Nessuna temporizzazione (DWT non modellato), nessun comportamento sotto radiazione, nessuna esperienza di volo; solo bersagli simulati ed emulati. Difetti trovati da questa verifica e corretti: conteggio VC dei TM letto dall'ottetto del canale master, OCF letto come «replay», OCF e header secondario lasciati nei dati (2026-10-04).

Cancello di rilascio

Calcolato dal registro dai file dei risultati, con la stessa funzione che decide RELEASED.

Punteggio di mutazione, ultima misura di ogni modulo (serve almeno 0,850)
  • star_aos.c 0,901 (2026-10-05)
Implementazioni indipendenti scritte da altri (ne servono 2)
spacepackets 0.32.0 (robamu, Python)
Confrontato anche con, non contati
ri-derivazioni di S.T.A.R.: star_aos C99 (S.T.A.R.)
Esito
Beta

Manca: un'altra implementazione indipendente scritta da altri (ora 1 su 2)

I nomi delle implementazioni e dei riferimenti sono citati dal registro nella lingua in cui sono scritti, l'inglese.

Evidenze nel registro

ControlloStatoRegistratoChe cosa è stato osservato
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
RevisioneVERIFIED2026-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
Installazione pulita dal tag di rilascioVERIFIED2026-10-06305/305 frames equal to the Python reference, 0 field mismatches
Confronto con librerie indipendentiVERIFIED2026-10-05star_aos (C) decodes CCSDS TM frames identically to an independent lineage on the pinned ccsds_audit corpus
Test unitariVERIFIED2026-10-0530 passed in 181.47s (0:03:01)
RevisioneVERIFIED2026-10-05Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed
RevisioneVERIFIED2026-10-05Build from the tag archive and in-tree build produce byte-identical output on the verification stream
RevisioneVERIFIED2026-10-05Build from the tag archive and in-tree build produce byte-identical output on the verification stream
RevisioneVERIFIED2026-10-05Build from the tag archive and in-tree build produce byte-identical output on the verification stream
Installazione pulita dal tag di rilascioVERIFIED2026-10-05305/305 frames equal to the Python reference, 0 field mismatches
Installazione pulita dal tag di rilascioVERIFIED2026-10-05305/305 frames equal to the Python reference, 0 field mismatches
Installazione pulita dal tag di rilascioVERIFIED2026-10-05305/305 frames equal to the Python reference, 0 field mismatches
Valori di riferimento pubblicatiVERIFIED2026-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))
Test di mutazioneVERIFIED2026-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
Test unitariVERIFIED2026-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
Test unitariVERIFIED2026-10-046/6 USART2 lines as expected; corrupted frame fecf 24036 vs 65103 rejected
Test unitariVERIFIED2026-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)
Test unitariVERIFIED2026-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
Test unitariVERIFIED2026-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

Le osservazioni sono citate dal registro nella lingua in cui sono state scritte, l'inglese: tradurle cambierebbe il testo che il registro firma.

Impronte (SHA-256)

star_telemetry_c-0.1.3-source.zip11f65f810ceba60b2435b7e216d32aa11d414322f91dd2b4aa811d8363c9a66a

risultati