Live streams

Collector: IENA, CCSDS and Chapter 10

Receive flight-test and space telemetry live: IENA with its XidML, CCSDS packets or TM frames with their XTCE, IRIG 106 Chapter 10 with its TMATS.

IENA, CCSDS and Chapter 10

For flight-test and space programs: the collector receives IENA, CCSDS and IRIG 106 Chapter 10 telemetry live, decodes it with the dictionary you already have (XidML, XTCE or TMATS), and sends every parameter to Kymoscope as a channel of one live stream. Channels are named exactly as Kymoscope names them when you open a recording of the same data as a file, so a recorded test and the live stream line up in the same workbook.

Telemetry to Kymoscope, step by step

  1. Install the collector on a computer on the acquisition or ground-station network. No extra is needed.
  2. Get the dictionary of the test: the XidML file of the IENA setup, the mission's XTCE file, or the TMATS setup record of the recorder. Put it next to collector.yaml.
  3. Ask your IT team to approve the inbound UDP port and, for multicast, the group and the network interface. Without that approval the collector refuses to listen on a network address.
  4. Add the source (examples below) and list the channels it sees once data arrives:
    terminal
    kymoscope-collector discover --config collector.yaml --source "Bench IENA" --out tags.csv
  5. Set hz: on each source to the samples a second its fastest channel sends. Kymoscope admits the stream at that rate from the start. Without it the source starts at 1 Hz and its data waits in the collector for about 20 seconds, until the collector has measured the rate and declared the stream again at it.
  6. Run the collector as usual. Charts, alerts and recordings see the channels like any other live stream.

IENA

collector.yaml
streams:
  - name: Test bench
    mode: live
    sources:
      - name: Bench IENA
        type: iena
        hz: 800                          # samples a second it sends: its stream is admitted at this rate
        xidml: bench.xidml               # the test's XidML: names, units, conversions
        bind: 0.0.0.0:51000              # inbound port: ask your IT team first
        group: 239.1.1.1                 # the multicast group the acquisition system sends to
        allow_inbound: true
        source_filter: [10.0.0.0/24]     # only the acquisition network

Each datagram is one IENA packet: key, size, the 48-bit time of the year, status and sequence number, then the parameters. With an XidML file:

  • P packets (positional): a channel per parameter, with its data format, mask, unit and conversion. A parameter with several occurrences in a packet becomes samples spread over the packet period.
  • D, N, M and Q packets (parameter ids): a channel per id, <package name> 0x<id>, with w<k> per word when it has several. D and M delays are applied.
  • A key the XidML does not list, or every key without one: IENA 0x<key> w<k>, one channel per 16-bit word.

Times come from the IENA header (microseconds since 1 January), on the year of arrival; a packet stamped on 31 December that arrives after midnight keeps last year's date. Missing sequence numbers are counted in seq_gaps. For packets of a fixed layout without XidML, the udp source with a layout file reads IENA too, and faster.

CCSDS

collector.yaml
      - name: Ground station
        type: ccsds
        hz: 50
        xtce: mission.xml                # the mission's XTCE dictionary
        frames: true                     # TM frames (CADUs); leave out for Space Packets
        randomized: false
        bind: 0.0.0.0:10015
        allow_inbound: true

By default each datagram holds one or more Space Packets back to back. With frames: true each datagram is one TM Transfer Frame, with or without its sync marker: packets are rebuilt per virtual channel, segmented packets per APID, and idle packets and frames are dropped. Space Packets back to back over TCP need only transport: tcp and connect; a ground station that serves CADUs over TCP is read with fixed framing:

collector.yaml
      - name: Ground station
        type: ccsds
        xtce: mission.xml
        frames: true
        transport: tcp
        connect: 10.1.2.3:5000           # the ground station's CADU server
        framing: fixed
        frame_size: 1279                 # bytes of one CADU: 4 sync + the frame

With an XTCE file, each packet is matched to its container (base containers, restriction criteria and include conditions) and every parameter becomes a channel, timed by the container's absolute time parameter (TAI, GPS, J2000 or a date epoch, leap seconds applied), else by the arrival time. A parameter several containers share, such as the primary header's fields, is named <container> <parameter> so the containers stay apart. Without XTCE, or for an APID it does not describe: APID 0x<apid> b<k>, the first 256 bytes of the data field.

IRIG 106 Chapter 10

collector.yaml
      - name: Flight recorder
        type: ch10
        hz: 20000
        tmats: flight.tmats              # optional: the stream's own TMATS packets work too
        icd: aircraft-icd.csv            # optional: names and scales MIL-STD-1553 and ARINC-429 words
        bind: 0.0.0.0:50000
        group: 239.0.0.10
        allow_inbound: true

Datagrams in UDP transfer format 1 (full or segmented packets), 2 or 3 (IRIG 106-22 10.3.9) are read: the source finds the format of each sender by itself, or transfer_format sets it; datagrams that hold whole packets with no transfer header are read too. A recorder that streams over TCP is read from its port:

collector.yaml
      - name: Flight recorder
        type: ch10
        transport: tcp
        connect: 10.2.0.5:10620          # the recorder's TCP streaming port (106-22 10.3.9.2)

Packets are checked (header, secondary header and data checksums); a datagram lost in format 3 loses only the packets it held part of. Time packets set the clock; analog, discrete and PCM packets (packed, unpacked and throughput mode) become channels named from the setup record: TMATS measurement names with their conversions and units. Without a setup record, analog channels are <channel> Subchannel <n> and discrete ones Discrete <id> bit <b>, and PCM is not decoded. A measurement name used on several recorder channels is named <channel> <measurement>. Other data types (video, Ethernet...) are counted and skipped.

MIL-STD-1553 and ARINC-429 bus data are read as the app reads them from a file. Without an ICD every 1553 data word is a channel, <channel> RT5 T SA3 W1, and every ARINC-429 label one with its data field (bits 11 to 29), <channel> bus 2 label 203. An ICD as CSV names and scales them: one row a measurement, with rt, tr, sa and word for 1553 (or rt and mode for a mode code) or an octal label (and optionally sdi, bus) for ARINC-429, plus bit, bits, type (u, s, bcd, f32), scale, add, unit and, to limit a row to one recorder channel, channel. With an ICD only its measurements are sent; a name already used on another recorder channel becomes <channel> <name>.

aircraft-icd.csv
name,unit,rt,tr,sa,word,label,bit,bits,type,scale
Cabin pressure,kPa,5,T,3,1,,,,s,0.01
GPS latitude,deg,5,T,3,2+3,,,,f32,
Heading,deg,,,,,320,13,16,s,0.0054932

Options

NameTypeDescription
xidml / xtce / tmatspathThe dictionary (iena, ccsds, ch10). Optional: without one, channels are raw words, bytes or subchannels as described above.
icdpathch10: the CSV that names and scales MIL-STD-1553 and ARINC-429 words (above). Without it they are raw.
framestrue | false
Default: false
ccsds: datagrams are TM Transfer Frames (CADUs) rather than Space Packets.
randomizedtrue | false
Default: false
ccsds frames: pseudo-randomized (CCSDS 131.0-B).
fecfauto | true | false
Default: auto
ccsds frames: they end in a frame error control field. auto takes it from the first frame (present when its CRC checks); a frame that fails it is dropped.
bind, group, interfacehost:port, addressWhere to listen, as for the udp source. A network address needs allow_inbound: true.
source_filterlistOnly datagrams from these addresses or networks.
transfer_formatauto | 1 | 2 | 3 | none
Default: auto
ch10 over UDP: the transfer header. auto finds it per sender from the first datagram only one format fits.
transport, connect, framing, frame_sizeTCP instead of UDP, as for the udp source. framing: stream (the default here) reads the connection as a stream of packets; fixed with frame_size cuts it into CADUs.
max_tagsnumber
Default: 5000
Channels the source may learn as they arrive (raw words, ids, APIDs); past it they are dropped and counted.

Health

As the udp source (packets, packets_per_s, values_per_s, decode_errors, dropped, seq_gaps), plus per format: datagrams that are not IENA; CCSDS idle packets and frames, frame-count gaps, frames that fail their FECF, partial packets; Chapter 10 damaged packets, packets of other data types, bus messages with an error flag (bus_errors) and messages the ICD does not name (not_in_icd).