Libnfc:FAQ

From NFC Tools
(Difference between revisions)
Jump to: navigation, search
(phone emulates a card, libnfc device reads the card)
(No NFC device found error)
 
(One intermediate revision by one user not shown)
Line 3: Line 3:
  
 
Since v1.7.0, your PN532 UART device needs some configuration in newly introduced configuration file (eg. /etc/nfc/libnfc.conf).
 
Since v1.7.0, your PN532 UART device needs some configuration in newly introduced configuration file (eg. /etc/nfc/libnfc.conf).
<br>Please read [https://code.google.com/p/libnfc/source/browse/NEWS NEWS file], then copy libnfc.conf.sample to the right place.
+
<br>Please read [https://github.com/nfc-tools/libnfc/blob/master/README README file], then copy libnfc.conf.sample to the right place.
 
<br>Make sure to put the file in SYSCONFDIR/nfc/libnfc.conf
 
<br>Make sure to put the file in SYSCONFDIR/nfc/libnfc.conf
 
<br>If you don't want SYSCONFDIR to be /usr/local/etc, use  ./configure --sysconfdir=/etc
 
<br>If you don't want SYSCONFDIR to be /usr/local/etc, use  ./configure --sysconfdir=/etc
Line 9: Line 9:
 
=== with an ACR122U under Windows===
 
=== with an ACR122U under Windows===
 
Remove ACR122U drivers from ACS
 
Remove ACR122U drivers from ACS
 +
 +
==''Unable to claim USB interface (Device or resource busy)''==
 +
 +
You did not read the [https://github.com/nfc-tools/libnfc/blob/master/README README]!
 +
 +
Udev rules have not been installed...
 +
 
==''Too small reply'' error==
 
==''Too small reply'' error==
 
=== With Touchatag or ACR122U ===
 
=== With Touchatag or ACR122U ===
Line 29: Line 36:
 
Check [[Libllcp]]
 
Check [[Libllcp]]
  
===phone emulates a card, libnfc device reads the card===
+
===phone emulates a card, libnfc device reads/writes to the card===
 
For PN544 based NFC phones, only possible with a patched Android, e.g. CyanoGenMod 10.1 contains already the required patches.
 
For PN544 based NFC phones, only possible with a patched Android, e.g. CyanoGenMod 10.1 contains already the required patches.
 
<br>See e.g. http://nelenkov.blogspot.com/2012/10/emulating-pki-smart-card-with-cm91.html
 
<br>See e.g. http://nelenkov.blogspot.com/2012/10/emulating-pki-smart-card-with-cm91.html
  
===libnfc device emulates a card, phone writes to the card===
+
===libnfc device emulates a card, phone reads/writes to the card===
 
Check nfc-emulate-forum-tag2.c and nfc-emulate-forum-tag4.c here: [[Libnfc:nfc-emulate]]
 
Check nfc-emulate-forum-tag2.c and nfc-emulate-forum-tag4.c here: [[Libnfc:nfc-emulate]]
  
 
[[Category:Libnfc]]
 
[[Category:Libnfc]]

Latest revision as of 12:55, 19 April 2015

Contents

[edit] No NFC device found error

[edit] with a UART-based reader

Since v1.7.0, your PN532 UART device needs some configuration in newly introduced configuration file (eg. /etc/nfc/libnfc.conf).
Please read README file, then copy libnfc.conf.sample to the right place.
Make sure to put the file in SYSCONFDIR/nfc/libnfc.conf
If you don't want SYSCONFDIR to be /usr/local/etc, use ./configure --sysconfdir=/etc

[edit] with an ACR122U under Windows

Remove ACR122U drivers from ACS

[edit] Unable to claim USB interface (Device or resource busy)

You did not read the README!

Udev rules have not been installed...

[edit] Too small reply error

[edit] With Touchatag or ACR122U

Avoid using pcscd and libnfc with acr122_usb driver all together.
You can stop pcscd or disable support of that reader by pcscd by changing the libccid list of supported readers.

You've to know that those readers are very bad regarding all NFC features and you can expect troubles when using any command not sending immediately a reply: nfc-poll, emulation and p2p modes.

[edit] How do I change the libccid list of supported readers?

  • Get the libccid source code;
  • edit the file readers/supported_readers.txt;
  • remove the line with the VID/PID of the reader you want to disable;
  • reinstall the libccid driver, or just the regenerated src/Info.plist.

[edit] How to get some communication between a phone and a libnfc reader?

You've basically three options to communicate between phone and libnfc device:

[edit] NFC p2p

Check Libllcp

[edit] phone emulates a card, libnfc device reads/writes to the card

For PN544 based NFC phones, only possible with a patched Android, e.g. CyanoGenMod 10.1 contains already the required patches.
See e.g. http://nelenkov.blogspot.com/2012/10/emulating-pki-smart-card-with-cm91.html

[edit] libnfc device emulates a card, phone reads/writes to the card

Check nfc-emulate-forum-tag2.c and nfc-emulate-forum-tag4.c here: Libnfc:nfc-emulate

Personal tools
Namespaces

Variants
Actions
Navigation
Documentation
Misc
Toolbox
Partners