sankyo-ict3k
Sankyo ICT3K5 library wrapper for Node.js. Should work with their ICT3K5/ICT3K7 card readers. Will work on Windows and only on 32bit Node.js due to library's limitations.
Installation
$ npm install sankyo-ict3k
Methods
.connect(object, callback)
Establishes connection with the card reader. Object containing port, baud rate fields should be passed to the method. Callback (optional) is executed after finishing connection attempt. Result of the operation is passed to the callback as an argument.
// object example port: "COM4" baudRate: 115200
.exec(object, callback)
Sends command to the connected device. Accepts object as an argument. Object contains command, parameter and data (optional) fields. Executes callback (optional) after finishing a command and passes result as an argument.
// object example command: 0x30 parameter: 0x30 data: 0x33 0x32 0x34 0x31 0x30 0x30 0x31 0x30 0x30 0x30
.disconnect()
Disconnects from the device.
Example usage
const ict3k = ;ict3k;
License
This is only a wrapper for Sankyo's publicly distributed ICT3K_6240 library. All rights for the library belong to Sankyo company and other respective owners.