-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IFD-NFC is inactive #9
Comments
Ok, for future generations, terminals are not found due to some bug described here nevetheless
|
I got a similar problem with my SCL3711 reader, it shows "Card removed" although nfc-list detects the a card. The output of pcsc_scan after installing ifdnfc:
vs. the output of nfc-list:
Any hints on how to detect the card? |
Same here. After installing
and
All
|
I think I just found out how this is supposed to be used!
Selecting the first option (0) enables the ifdnfc I'm not sure though why it still reports the device as inactive, I'll have to dig into the source to find that out |
I found the issue! The Line 45 in 0e48e8e
that in turn is passed by to SCardControl here:Line 171 in 0e48e8e
that calls the libpcsclite library here:https://github.com/LudovicRousseau/PCSC/blob/a98d3858602f94c5e9a0876353e02c0f2cd2dcaa/src/winscard_clnt.c#L2209 that sends a message on the pcscd here:https://github.com/LudovicRousseau/PCSC/blob/a98d3858602f94c5e9a0876353e02c0f2cd2dcaa/src/winscard_svc.c#L703 that is passed in the wincard implementation here: https://github.com/LudovicRousseau/PCSC/blob/a98d3858602f94c5e9a0876353e02c0f2cd2dcaa/src/winscard.c#L1301 that calls the ifdnfc 's IFDHControl implementation through IFDControl here:https://github.com/LudovicRousseau/PCSC/blob/a98d3858602f94c5e9a0876353e02c0f2cd2dcaa/src/winscard.c#L1349 that seems to handle the request successfully, but we get a SCARD_E_INSUFFICIENT_BUFFER as a result, probably from here: https://github.com/LudovicRousseau/PCSC/blob/a98d3858602f94c5e9a0876353e02c0f2cd2dcaa/src/winscard_clnt.c#L2276 So increasing the receive buffer to fit the whole response (that contains the device name) fixes the inactive message problem! |
Dear ifdnfc community,
My goal is to use my PN532 reader in Java@RPi4
I've setup
libnfc
properly withpn532_uart
driverMy
/etc/nfc/libnfc.conf
looks like this:and
nfc-scan-device
returns:Then I've compiled
ifdnfc
and whileservice pcscd status
gives me:and my
/etc/reader.conf.d/libifdnfc
looks like this:Unfortunately
ifdnfc-activate
returns:I'm already on aarch64 bit, because on 32bit system
ifdnfc-activate
was returningInsufficient buffer
My Java program:
returns
[]
terminals...What can I do in order to make
ifdnfc
"active"?Kind regards
The text was updated successfully, but these errors were encountered: