bri
Version:
BRI (Basic Reader Interface) - Intermec's proprietary protocol implementation for node.js
67 lines (54 loc) • 1.36 kB
JavaScript
var net = require('net');
commands = {
'FACDFLT': {
description: 'Allow to reset the reader to its factory defaults',
parameters: [],
},
'FACDFLTF4': {
description: 'Allow to reset the reader to its factory defaults - using checksums',
parameters: [],
},
'ATTRIBUTE': {
description: 'Displays the current values for all attributes (or a set of attributes) of the reader',
parameters: [
'CHKSUM',
'DENSEREADERMODE',
'FIELDSEP',
'FIELDSTRENGTH',
'IDREPORT',
'IDTIMEOUT',
'IDTRIES',
'INITIALQ',
'INITTRIES',
'NOTAGRPT',
'RDTRIES',
'RPTTIMEOUT',
'SELTRIES',
'SESSION',
'TAGTYPE',
'TIMEOUTMODE',
'TTY',
'UNSELTRIES',
'WRTRIES'
]
},
'BRIVER': {
description: 'Displays current BRI version on you reader'
}
};
function TCPConnector(params) {
var defaultParameters = {
port: 2189
};
}
function SerialConnector(params) {
}
function Reader(params) {
this.withConnector = function() {
// Serial, USB, Bluetooth or TCP
}
}
function If2(params) {
}
module.exports.Reader = Reader;
module.exports.If2 = If2;