sbrinkmann / rc522-rfid Goto Github PK
View Code? Open in Web Editor NEWnode.js module to access a rfid reader with rc522 chipset which is connected a raspberry pi
node.js module to access a rfid reader with rc522 chipset which is connected a raspberry pi
Hi!
First, thanks for this module!
Earlier I was working with python reading/writing rfid. Now that I moved to nodejs, I'm using your module to read but I'm still writing with my python module.
Reading and writing with python gives me an output like [1, 1, 1 , 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], datas I wrote on 16bytes.
Reading with your module gives me something like : 04be345ae43f80.
How can I retrieve my data with this module?
Thank you!
Hello, is there something special to run it on pi2? the server is running but don't get any output.
special pinout? could you put a picture of your setup?
(for info) MFRC522-python is working
thanks
First of all, thank you for writing this package. After tinkering around with it, I got it to work. Some remarks remain - you might put this in the readme so people don't have to search for it as long as I did.
I don't have the knowledge to solve all of the problems, but I'll look into it. Just wanted to report this to help others.
Hello,
First thank you a lot for you module.
I follow all the instruction but I still have this error ๐
module.js:340
throw err;
^
Error: Cannot find module 'dachshund-logger'
Do you know where can i find this module ?
thank you.
Amaury
I would be very interested to use this module to get the nfc card's data too...
Any ideas to get started ?
Cheers !
In this http://forum.arduino.cc/index.php?topic=199983.0 forum there is discussion about increasing the range of the RC522 reader. Could be interesting to add.
RC522 is read and writable, so we need write functionality and on scanStart event, scanEnd events if there are any other repositories which would do this work please share the link [email protected]. Thank you.
Hi,
I'm trying to npm install --save rc522-rfid
, but it gets broken compiling. Here is the output:
pi@raspberrypi ~/test-rc522/test-node-rc522-rfid $ npm install --save rc522-rfid
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
-
> [email protected] preinstall /home/pi/test-rc522/test-node-rc522-rfid/node_modules/rc522-rfid
> (node-gyp configure) || (exit 0)
> [email protected] install /home/pi/test-rc522/test-node-rc522-rfid/node_modules/rc522-rfid
> (node-gyp rebuild) || (exit 0)
make: Entering directory '/home/pi/test-rc522/test-node-rc522-rfid/node_modules/rc522-rfid/build'
CC(target) Release/obj.target/rc522/src/rc522.o
CC(target) Release/obj.target/rc522/src/rfid.o
CXX(target) Release/obj.target/rc522/src/accessor.o
../src/accessor.cc:24:33: error: 'Arguments' does not name a type
../src/accessor.cc:24:44: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
/home/pi/.node-gyp/0.12.4/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> RunCallback(const int&)':
/home/pi/.node-gyp/0.12.4/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/accessor.cc:25:15: error: within this context
../src/accessor.cc:27:58: error: invalid types 'const int[int]' for array subscript
../src/accessor.cc:70:50: error: 'New' is not a member of 'v8::String'
../src/accessor.cc:71:19: error: 'GetCurrent' is not a member of 'v8::Context'
../src/accessor.cc:84:15: error: 'class v8::HandleScope' has no member named 'Close'
../src/accessor.cc:84:31: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
/home/pi/.node-gyp/0.12.4/deps/v8/include/v8.h:305:28: note: declared here
../src/accessor.cc: In function 'void Init(v8::Handle<v8::Object>, v8::Handle<v8::Object>)':
../src/accessor.cc:89:15: error: 'NewSymbol' is not a member of 'v8::String'
../src/accessor.cc:89:78: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
../src/accessor.cc:89:78: note: candidate is:
/home/pi/.node-gyp/0.12.4/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)
/home/pi/.node-gyp/0.12.4/deps/v8/include/v8.h:3455:34: note: no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&)' to 'v8::Isolate*'
rc522.target.mk:83: recipe for target 'Release/obj.target/rc522/src/accessor.o' failed
make: *** [Release/obj.target/rc522/src/accessor.o] Error 1
make: Leaving directory '/home/pi/test-rc522/test-node-rc522-rfid/node_modules/rc522-rfid/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.18.11-v7+
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/test-rc522/test-node-rc522-rfid/node_modules/rc522-rfid
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
[email protected] node_modules/rc522-rfid
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.