Chapter 24 Documentation¶
Chapter24 is a IRIG106 payload format encapsulating acquisition data. The full standard is defined in https://www.irig106.org/docs/106-17/chapter24.pdf
This module supports the creating and analysis of TmNSMessages
In typical use, a UDP payload is captured from the network or read from a PCAP file. This is then passed to the
AcraNetwork.IRIG106.Chapter24.TmNSMessage.unpack() method which converts it into an Chapter11 object
The payload of the UDP wrapper contains a Data Format packet (described in 10.6.1 of the spec) which is handled by the
TmNSMessage object AcraNetwork.IRIG106.Chapter24.TmNSMessage
Examples and details are available below
TmNSMessage Objects¶
- class AcraNetwork.IRIG106.Chapter24.TmNSMessage(flags: ~AcraNetwork.IRIG106.Chapter24.Flags = <factory>, msgtype: int = 0, optionwordcount: int = 0, version: int = 1, definitionid: int = 0, sequence: int = 0, length: int = 0, timestamp: int = 0, appfields: list[~AcraNetwork.IRIG106.Chapter24.OptionKind] = <factory>, payload: bytes = b'')¶
Class to represent an IRIG106 Chapter 24 TmNSMessage https://www.irig106.org/docs/106-17/chapter24.pdf
Supports pack, which converts the object into bytes or unpack which takes a buffer and converts it into a TmNSMessage
>>> import AcraNetwork.IRIG106.Chapter24 as ch24 >>> import struct >>> pkt = ch24.TmNSMessage() >>> pkt.flags.acquired = ch24.DataSourceAcquiredDataFlag.SIMULATED >>> pkt.flags.fragmentation = ch24.MessageFragmentationFlags.LASTFRAGMENT >>> pkt.definitionid = 0x1234 >>> pkt.sequence = 100 >>> pkt.payload = struct.pack(">HH", 0x1, 0x2) >>> b = pkt.pack()
- pack() bytes¶
Returns the TmNSMessage as bytes for packing into a UDP packet