marcus905 / libnfc

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

Problem with sending APDU commands #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

I'm trying to send APDU command (SELECT applet) to dual interface smart card 
via ACR-122U-A9

My, applet's AID is: F75246544101, so full select command is: 
00A4040006F75246544101

But when I'm trying to send It i always get "-1" error:

debug   libnfc.chip.pn53x   InListPassiveTarget
debug   libnfc.chip.pn53x   No timeout
debug   libnfc.driver.acr122_usb    TX: 6f 0d 00 00 00 00 00 00 00 00 ff 00 00 00 08 
d4 4a 01 00 a0 d9 89 78 
debug   libnfc.driver.acr122_usb    RX: 80 0e 00 00 00 00 00 00 81 00 d5 4b 01 01 00 
04 28 04 a0 d9 89 78 90 00 
Tag found: a0d98978
debug   libnfc.chip.pn53x   InDataExchange
debug   libnfc.chip.pn53x   No timeout
debug   libnfc.driver.acr122_usb    TX: 6f 13 00 00 00 00 00 00 00 00 ff 00 00 00 0e 
d4 40 01 00 a4 04 00 06 f7 52 46 54 41 01 
debug   libnfc.driver.acr122_usb    RX: 80 00 00 00 00 00 00 00 fe 00 
error   libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
debug   libnfc.driver.acr122_usb    ACR122 Abort

Can you please point me what is the correct way to send APDUs?

Original issue reported on code.google.com by maximch...@gmail.com on 28 Dec 2013 at 10:18

GoogleCodeExporter commented 9 years ago
This is not a helpdesk but a bugreporting system.
Please ask your question on the forum http://www.libnfc.org/community/
And to do so in a constructive way, provide a full dump using the environment 
variable LIBNFC_LOG_LEVEL=3

Original comment by yob...@gmail.com on 29 Dec 2013 at 12:00