Hi,
On 09/24/2013 09:55 PM, Gabriel Durante wrote:
> Hello all,
> I want to know if It's possible to make a libnfc driver to use a
> atmega8u2 (DFU programmed as serial to usb converter) and a shield
> with a PN532 from NXP.
>
> I think that most of the work is already made, I'm planning to use
> ACR122 driver as a base.
>
> My current setup is a Freaduino UNO with a NFC Shield that uses a PN532.
>
> UNO 8U2 firmware is a CDC ACM driver.
First of all have a look at
https://code.google.com/p/mfocuino/
They have already a support to "convert" arduino + nfc shield into a
libnfc reader for PC.
If you want to try on your own, I wouldn't go for the ACR122 which is a
PCSC+CCID reader.
It's an extra effort and it adds a layer which brings its own problems
(card emulation & p2p are very tricky with ACR122)
Better to look at pn532_uart (as you're talking about serial to usb
converter)
or if you want to support more than libnfc mode, something like the
arygon driver where you can control the microcontroller for other things
then communicate with the pn532 through light additional framing (e.g.
for arygon, direct command for pn532 have to start with an extra char "2")
Have fun
Phil