2010-12-13 12:58:04 +01:00
|
|
|
*-
|
|
|
|
* Public platform independent Near Field Communication (NFC) library
|
|
|
|
* Copyright (C) 2009, Roel Verdult
|
|
|
|
* Copyright (C) 2010, Romain Tartière, Romuald Conty
|
|
|
|
-*
|
|
|
|
|
|
|
|
General Information
|
|
|
|
===================
|
|
|
|
|
|
|
|
libnfc is a library which allows userspace application access to NFC devices.
|
|
|
|
|
|
|
|
The official web site is:
|
|
|
|
http://www.libnfc.org/
|
|
|
|
|
|
|
|
The official forum site is:
|
|
|
|
http://www.libnfc.org/community/
|
|
|
|
|
|
|
|
The official development site is:
|
|
|
|
http://libnfc.googlecode.com/
|
|
|
|
|
2011-02-07 13:31:08 +01:00
|
|
|
Important note: this file covers POSIX systems, for Windows please read README-Windows.txt
|
|
|
|
|
2010-12-13 12:58:04 +01:00
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
See the file 'INSTALL'
|
|
|
|
|
|
|
|
How to report bugs
|
|
|
|
==================
|
|
|
|
|
|
|
|
To report a bug, visit http://code.google.com/p/libnfc/issues/list and fill
|
|
|
|
out a bug report form.
|
|
|
|
|
|
|
|
If you have questions, remarks, we encourage you to post this in the developers
|
|
|
|
community:
|
2009-08-26 11:37:12 +02:00
|
|
|
http://www.libnfc.org/community
|
|
|
|
|
2010-12-13 12:58:04 +01:00
|
|
|
Please make sure to include:
|
|
|
|
|
|
|
|
* The version of libnfc
|
|
|
|
|
|
|
|
* Information about your system. For instance:
|
|
|
|
|
|
|
|
- What operating system and version
|
|
|
|
- For Linux, what version of the C library
|
|
|
|
|
|
|
|
And anything else you think is relevant.
|
|
|
|
|
|
|
|
* How to reproduce the bug.
|
|
|
|
|
|
|
|
Please include a short test program that exhibits the behavior.
|
|
|
|
As a last resort, you can also provide a pointer to a larger piece
|
|
|
|
of software that can be downloaded.
|
|
|
|
|
|
|
|
* If the bug was a crash, the exact text that was printed out
|
|
|
|
when the crash occured.
|
|
|
|
|
|
|
|
* Further information such as stack traces may be useful, but
|
|
|
|
is not necessary.
|
|
|
|
|
|
|
|
Patches
|
|
|
|
=======
|
|
|
|
|
2011-02-18 10:01:30 +01:00
|
|
|
Patches can be posted to http://code.google.com/p/libnfc/issues/list or
|
2010-12-13 12:58:04 +01:00
|
|
|
can be sent directly to libnfc's developers: http://www.libnfc.org/contact
|
|
|
|
|
|
|
|
If the patch fixes a bug, it is usually a good idea to include
|
|
|
|
all the information described in "How to Report Bugs".
|
|
|
|
|
|
|
|
Building
|
|
|
|
========
|
|
|
|
|
|
|
|
It should be as simple as running these two commands:
|
|
|
|
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
|
|
|
|
Troubleshooting
|
|
|
|
===============
|
|
|
|
|
2010-12-13 14:07:55 +01:00
|
|
|
Touchatag/ACR122:
|
|
|
|
-----------------
|
|
|
|
If your Touchatag or ACR122 device fails being detected by PCSC-lite daemon
|
|
|
|
(pcsc_scan doesn't see anything) then try removing the bogus firmware detection
|
2011-02-02 15:20:16 +01:00
|
|
|
of libccid: edit libccid_Info.plist configuration file (usually
|
|
|
|
/etc/libccid_Info.plist) and locate "<key>ifdDriverOptions</key>", turn
|
|
|
|
"<string>0x0000</string>" value into 0x0004 to allow bogus devices and restart
|
|
|
|
pcscd daemon.
|
2010-12-13 14:07:55 +01:00
|
|
|
|
|
|
|
ACR122:
|
|
|
|
-------
|
|
|
|
Using an ACR122 device with libnfc and without tag (e.g. to use NFCIP modes or
|
2011-02-02 15:20:16 +01:00
|
|
|
card emulation) needs yet another PCSC-lite tweak: You need to allow usage of
|
|
|
|
CCID Exchange command. To do this, edit libccid_Info.plist configuration file
|
|
|
|
(usually /etc/libccid_Info.plist) and locate "<key>ifdDriverOptions</key>",
|
2010-12-13 12:58:04 +01:00
|
|
|
turn "<string>0x0000</string>" value into 0x0001 to allow CCID exchange or
|
2010-12-13 14:07:55 +01:00
|
|
|
0x0005 to allow CCID exchange and bogus devices (cf previous remark) and
|
|
|
|
restart pcscd daemon.
|
|
|
|
|
2011-02-02 15:44:38 +01:00
|
|
|
Warning: if you use ACS CCID drivers (acsccid), configuration file is located
|
|
|
|
in something like: /usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Info.plist
|
|
|
|
|
2010-12-13 14:07:55 +01:00
|
|
|
SCL3711:
|
|
|
|
--------
|
|
|
|
Libnfc cannot be used concurrently with the PCSC proprietary driver of SCL3711.
|
|
|
|
Two possible solutions:
|
|
|
|
* Either you don't install SCL3711 driver at all
|
|
|
|
* Or you stop the PCSC daemon when you want to use libnfc-based tools
|
2010-12-13 12:58:04 +01:00
|
|
|
|
|
|
|
Proprietary Notes
|
|
|
|
=================
|
2009-08-26 11:37:12 +02:00
|
|
|
|
2010-12-13 12:58:04 +01:00
|
|
|
FeliCa is s registered trademark of the Sony Corporation.
|
|
|
|
MIFARE is a trademark of NXP Semiconductors.
|
|
|
|
Jewel Topaz is a trademark of Innovision Research & Technology.
|
|
|
|
All other trademarks are the property of their respective owners.
|
2009-08-26 11:37:12 +02:00
|
|
|
|