marcus905 / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

acr122.c:151: PCSC context not found #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I compiled the current libnfc from svn and tried to use it with my touchatag 
device. libnfc-list gives:

nfc-list uses libnfc 1.5.0 (r1122)
nfc-list: DBG nfc.c:156
nfc-list:     0 device(s) found using PN53x USB driver
nfc-list: DBG acr122.c:151
nfc-list:     PCSC context not found
nfc-list: DBG arygon.c:99
nfc-list:     Serial auto-probing have been disabled at compile time. Skipping 
autoprobe.
No NFC device found.

I do - however - have libpcsclite1 (1.7.0-2ubuntu2) installed. Any suggestions 
how to resolve this?

Some notes: Running nfc-list as root doesn't change anything, so it doesn't 
seem to be a permissions thing.. when I install pcscd, it suddenly works 
(trying to not have another daemon running, though) and the output changes to

Connected to NFC device: ACS ACR 38U-CCID 00 00 / ACR122U102 - PN532 v1.4 (0x07)

This is on a xubuntu 11.04 installation on amd64.

Original issue reported on code.google.com by gottfrie...@gmail.com on 9 Jul 2011 at 9:25

GoogleCodeExporter commented 9 years ago
I have the same problem, i have tried libnfc-1.5, and libnfc 1.4.2 and i still 
have the same problem.
I will try with an older version of ubuntu

Original comment by zou...@gmail.com on 21 Jul 2011 at 12:25

GoogleCodeExporter commented 9 years ago
I don't understand what is your problem: when the PC/SC context is not found 
that means pcscd daemon is not reachable. AFAIK, pcscd is a requirement to run 
ACR122 driver from libnfc.

So, the solution is already pointed out: install all requierements (ie. pcscd)

Original comment by romu...@libnfc.org on 21 Jul 2011 at 12:36

GoogleCodeExporter commented 9 years ago
Sorry, from the Installation Instructions it wasn't clear to me that pcscd had 
to be installed as well - I thought the note mean that the daemon functionality 
was somehow included in the "-lite" package.

Since the pcsc-lite package on Ubuntu (and probably Debian) has no dependency 
on pcscd I ran into the issue described above.

But since you say that there is no way around having the daemon running I 
already know enough now.. so feel free to close this bug!

Original comment by gottfrie...@gmail.com on 21 Jul 2011 at 2:17

GoogleCodeExporter commented 9 years ago
Actually, the pcscd is a requirement only if you want to reach an ACR122 device.

Original comment by romu...@libnfc.org on 6 Sep 2011 at 1:34

GoogleCodeExporter commented 9 years ago

Original comment by romu...@libnfc.org on 29 Sep 2011 at 9:18