This package has been deprecated

Author message:

not maintained anymore

rfid-chafon

1.1.2 • Public • Published

RFID-Chafon

I recently bought a usb rfid reader. The "driver" and the "app" were propietaries solutions for windows xp and not usable by mac or linux. So I decided to reverse engineer the protocol and implement this small node js lib.

Installation

$ npm install debug

Usage

Example readtag.js:

var RFID = require('./index');
 
let rfid = new RFID('/dev/tty.usbserial');
 
rfid.open()
    .then(() => {
        return rfid.read().then(result => {
            console.log(result);
            rfid.close();
        });
    }).catch(e => {
        console.error(e);
        rfid.close();
    });
 

Example writetag.js:

var RFID = require('./index');
 
let rfid = new RFID('/dev/tty.usbserial');
 
rfid.open()
    .then(() => {
        return rfid.write().then(result => {
            console.log(result);
            rfid.close();
        });
    }).catch(e => {
        console.error(e);
        rfid.close();
    });
 

Readme

Keywords

Package Sidebar

Install

npm i rfid-chafon

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

7.7 kB

Total Files

6

Last publish

Collaborators

  • ulfalfa