8000 GitHub - ulfalfa/rfid-chafon · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

2 watching

Forks

Repository files navigation

#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();
	});

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0