Topic: PN531_USB

Is NXP's PN531_USB supposed to be a supported hardware?
I'm pretty new to PCSC and NFC and have no success getting it to work
on FC10 platform.
libnfc compiled without problems and seems to be communicating with pcscd-servers.
But I don't have any idea what driver to use with it or is it even required.
I did try ccid-1.3.10 as a driver but it didn't recognize PN531 also it did suspect it
tobe a compatible device.

[root@MohinetLT04 ccid-1.3.10]# src/parse
Parsing USB bus/device: 001/001
idVendor:  0x1D6B  iManufacturer: Linux 2.6.27.9-159.fc10.x86_64 ehci_hcd
idProduct: 0x0002  iProduct: EHCI Host Controller
  NOT a CCID/ICCD device

Re: PN531_USB

Hey Okko,

The PN531 should be supported, since it uses the same instructions/commands as the PN532.
Though the reader initialization/communication is not implemented yet. An example to work with a PN531 reader can be found here.

It would be awesome if we can work the initialization and add this to this library. The example I point out uses libusb, since PN531 is indeed no CCID device.

Currently only the ACR122 is added as working example for libnfc, but it is easy to add a pn531.c file which will redirects the instructions through libusb. let me know if you are interested to help working this out for the community.

Cheers,

  Roel

Re: PN531_USB

I made a very rough replacement for acr122.c file using the example you gave.
It seems to work.
So how do we integrate both choises into the library?

Okko

Re: PN531_USB

hey Okko,

I'm working on this right now. Maybe you can email me your progress so far


I slightly changing/optimizing the API. I guess version 1.1 will come soon.
If you are interested in developing for this library, let me know. I can add you to the svn.

Cheers,

  Roel

Re: PN531_USB

It should work now out-of-the-box (version 1.1.0 and higher), you can download it here. All PN531 USB devices are supported, most of them are cheap devices for example the small NFC dongles.

NOTE: If you have not configured your USB access rights, make sure you don't forget sudo.