GithubHelp home page GithubHelp logo

sbrinkmann / rc522-rfid Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 51.0 189 KB

node.js module to access a rfid reader with rc522 chipset which is connected a raspberry pi

Python 0.27% JavaScript 2.22% C++ 78.61% C 18.91%

rc522-rfid's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rc522-rfid's Issues

Getting written data from rfidserialnumber

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!

Raspberry PI 2 - MFRC522

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

Some remarks

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.

Error: Cannot find module 'dachshund-logger'

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

Rfid Read & Write

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.

Unable to npm install

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.