wrappers for libnfc?

490 views
Skip to first unread message

Ofer Nave

unread,
Sep 17, 2013, 9:25:21 PM9/17/13
to nfc-too...@googlegroups.com
First time playing with hardware.  Just got a PN532 hooked up to a Raspberry Pi, installed libnfc, was able to use nfc-poll -- everything's working.

However, my C is very rusty, so I'd like to control it with a high level language like Ruby, Python, or Perl.  I found a ruby gem called 'nfc', and it worked, but it only reads, not writes.  I found a python module called 'nfcpy', but it fails to detect the device.  I don't see any other viable candidates.

Suggestions?

-ofer

Philippe Teuwen

unread,
Sep 18, 2013, 5:09:16 AM9/18/13
to nfc-too...@googlegroups.com
RFIDIOt can now use libnfc as reader, have a look.
https://github.com/AdamLaurie/RFIDIOt

nfcpy is not using libnfc.

There is also a wrapper pynfc, but maybe it needs some small updates to
match the current libnfc API.
https://code.google.com/p/pynfc/
> --
> You received this message because you are subscribed to the Google
> Groups "nfc-tools developers group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to nfc-tools-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Mark Van Holstyn

unread,
Oct 26, 2013, 10:04:13 PM10/26/13
to nfc-too...@googlegroups.com
Hi Ofer,

You mentioned you were able to get the nfc Ruby gem working with the PN532. I've been having trouble with it. Can you provide some sample code or let me know what you had to do to get it working?

Thanks,

Mark
Reply all
Reply to author
Forward
0 new messages