@serialpilot/parser-cctalk
v1.0.1
Published
A transform stream that frames ccTalk messages from coin/note acceptors.
Downloads
3,337
Maintainers
Readme
A Transform stream for parsing the ccTalk protocol used by coin acceptors and bill validators in vending machines and gaming hardware.
npm install @serialpilot/parser-cctalkUsage
const { SerialPilot, CCTalkParser } = require('serialpilot')
const port = new SerialPilot({ path: '/dev/ttyUSB0', baudRate: 9600 })
const parser = port.pipe(new CCTalkParser())
parser.on('data', frame => console.log(frame))The parser emits each ccTalk frame as a Buffer when fully received.
See the SerialPilot README for the full set of parsers.
