pokusew / nfc-pcsc

Easy reading and writing NFC tags and cards in Node.js
MIT License
531 stars 131 forks source link

Help with SPI and I2C connected PN532 reader #101

Open ronie19 opened 4 years ago

ronie19 commented 4 years ago

Is this compatible with PN532 reader connected by SPI/I2C ? Or only USB devices ?

timonsku commented 4 years ago

You would have to implement the PCSC API which this package is using to talk to NFC readers. This is unlikely to be worth it, you will wanna directly talk to your reader.

ronie19 commented 4 years ago

You would have to implement the PCSC API which this package is using to talk to NFC readers. This is unlikely to be worth it, you will wanna directly talk to your reader.

Any possible ways of doing that ? I am trying to get it recognised by pcsc_scan command in terminal. But no way I am able to get it via spi. I am only able to operate it with libnfc.

timonsku commented 4 years ago

To be fair, if you are unsure on how to approach that the task of implementing a pcsc driver is probably too much. libnfc already allows you to interact with the NFC reader and access all its functionality. I would suggest you use that to integrate with your application.

jonasclaes commented 2 years ago

ifdnfc is your solution

ronie19 commented 2 years ago

ifdnfc is your solution

Yes, I did it. However it worked with 64-bit linux due to buffer length issues in 32-bit linux