@serialpilot/parser-spacepacket
v1.0.1
Published
A transform stream for the CCSDS Space Packet protocol.
Downloads
11,452
Maintainers
Readme
A Transform stream that parses CCSDS Space Packet framing — the international standard used by spacecraft telemetry/telecommand links (NASA, ESA, JAXA cubesat ground stations).
npm install @serialpilot/parser-spacepacketUsage
const { SerialPilot, SpacePacketParser } = require('serialpilot')
const port = new SerialPilot({ path: '/dev/ttyUSB0', baudRate: 9600 })
const parser = port.pipe(new SpacePacketParser())
parser.on('data', packet => {
console.log(packet.header.apid, packet.data)
})API
The parser emits SpacePacket objects with parsed primary header fields (version, type, secondary-header flag, APID, sequence flags, sequence count, length) and the raw data payload.
See the SerialPilot README for the full set of parsers.
