Topic: arc122S some NFC commands work others just stop

Hi All

I got given a ARC122S to test afew things with door security.

I am having a weird thing where the nfc-poll command works fine shows up the UID and other details nicely. However other commands like nfc-list or lsnfc commands just sit there.

When i run the list command it as i expects does not find any of the USB devices. and then tries the driver for acr122s. It lowers the baud of ttyUSB0 to 9600. It sends some messages back and forth but instead of continuing on it then suddenly tries to use ttyS1 which well there is no device there and it just sits there and idles.

the nfc-poll command will query ttyUSB0 set it to 9600 and then have no problem continuing and finding the card

Is there something i can adjust to force it only to try the ttyUSB ports instead of moving on to the real serial ports?

I have compiled from an SVN 1330.

Re: arc122S some NFC commands work others just stop

Ok so this is odd. It finds the reader in the other tools once i delete the other ttySx devices from /dev

Re: arc122S some NFC commands work others just stop

Hi,

Internally the libnfc's ACR122S driver uses uart_list_port() to probe serial ports :
http://code.google.com/p/libnfc/source/ … 122s.c#485

and uart_list_port() on Linux, try ttyUSBx first then ttySx :
http://code.google.com/p/libnfc/source/ … osix.c#337
http://code.google.com/p/libnfc/source/ … posix.c#56

So I don't understand what happend to you.

Romuald Conty