hsilomedus / raspi-pn532 Goto Github PK
View Code? Open in Web Editor NEWJava and pi4j implementation for the pn532 nfc module with a Raspberry Pi
Java and pi4j implementation for the pn532 nfc module with a Raspberry Pi
Hi,
first of all thanks for sharing this library.
When I run your program, using i2c connection, everything runs ok.
But after a few moments I get the error:
pn532i2c.writeCommand exception occured: Error writing to /dev/i2c-1 at address 0x24 to address 0x24. Got -20001.
Do you know what could be causing this?
Modified for personal use, figured I might as well upload the changes: https://github.com/ScottyDoesKnow/raspi-pn532
Just putting this here because it seems this repo is dead.
hey so i'm testing you're code with out the pn532 board Connect and im getting the following error when running the program
pi@raspberrypi ~/NetBeansProjects/NFC/dist $ sudo java -jar NFC.jar
Starting up...
Exception: Cannot open file handle for /dev/i2c-1 got -1 back.
Exception in thread "main" java.lang.NullPointerException
at nfc.PN532I2C.writeCommand(PN532I2C.java:97)
at nfc.PN532I2C.writeCommand(PN532I2C.java:156)
at nfc.PN532.getFirmwareVersion(PN532.java:28)
at nfc.Main.main(Main.java:16)
is this becouse i don't have the board connected ore is there somthing wrong with my setup ?
Hi there,
It would be great to add a license to the project.
I would like to use your code for commercial purposes but without any license I'm not sure about the right to do it.
Thanks
hey so im traying youre code out and i can't get it working with this board
http://www.ebay.com/itm/311005959514?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
and the following wirring im running a raspberry pi 2 mobel b
MOSI pin 19 to MOSI
MISO pin 21 to MISO
SCLK pin 23 to SCLK
pin 24 to ss
GPIO 0 pin 11 to RSTO
3.3v pin 1 to vcc
gnd pin 6 to gnd
the output from the program is when set in debug mode
Starting up...
Beginning SPI.
Wiringpisetup is 0
Wiringpispisetup is 16
Waking SPI.
getFirmwareVersion
Medium.writeCommand([0] )
Medium.waitForAck()
Medium.readSpiStatus()
Medium.checkSpiAck()
Medium.readResponse(..., 6, 1000)
pn532i2c.readResponse bad length checksum
Didn't find PN53x board
I forked this a while back and got it working for personal use, but I've finally put the time in to basically re-write everything and make sure it all actually works this time. You can find it here: https://github.com/ScottyDoesKnow/raspi-pn532-v2
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.