Topic: lsnfc: simple command for POSIX systems

POSIX systems users usually known commands like lspci, lsusb or lspcmcia; I'm happy to announce that lsnfc now exists.
It was written for debugging purpose but it is already usable.

Output examples:

$ lsnfc
device = ACR122U102 - PN532 v1.4 (0x07)
  ISO14443A: NXP MIFARE DESFire (UID=04453501db2480)
  ISO14443A: NXP MIFARE DESFire (UID=042e4201db2480)
  ISO14443A: NXP MIFARE DESFire (UID=04145109db2480)
  ISO14443A: NXP MIFARE DESFire (UID=04443401db2480)
  ISO14443A: NXP MIFARE DESFire (UID=04400b09db2480)
5 tag(s) have been found.
$ lsnfc
device = ACR122U102 - PN532 v1.4 (0x07)
  ISO14443A: NXP MIFARE Classic 1K (UID=fccd5dd3)
  ISO14443A: NXP MIFARE Classic 1K (UID=5c6c5ed3)
  ISO14443A: NXP MIFARE Classic 1K (UID=6c185fd3)
3 tag(s) have been found.
$ lsnfc
device = ACR122U102 - PN532 v1.4 (0x07)
  ISO14443A: NXP MIFARE Ultralight (UID=04652e91212580)
  ISO14443A: NXP MIFARE Ultralight (UID=04ce4591212580)
  ISO14443A: NXP MIFARE Ultralight (UID=047a3991212580)
3 tag(s) have been found.

lsnfc is a part from nfcutils package in nfc-tools project (http://code.google.com/p/nfc-tools/).
As a part of nfc-tools, nfcutils is under GPL license and contributions are welcome.

Romuald Conty

Re: lsnfc: simple command for POSIX systems

Hi,

Using on libnfc 1.3.9, a new version of nfcutils is out !

With this version you now are able to detect more tags and lsnfc reports better DESFire and Ultralight by giving more information (e.g. EV1 or not, DESFire size, etc.)

$ lsnfc
device = ACS ACR 38U-CCID 01 00 / ACR122U102 - PN532 v1.4 (0x07)
NXP MIFARE Classic 1k (UID=6e0e57b8)
NXP MIFARE DESFire EV1 2k (UID=046e22c9c92480)
NXP MIFARE DESFire 4k (UID=042e4201db2480)
NXP MIFARE UltraLight C (UID=047816c1ff2680)
4 tag(s) on device.

Feel free to test and report bugs at: http://code.google.com/p/nfc-tools/issues/list

Romuald Conty