devnied / EMV-NFC-Paycard-Enrollment

A Java library used to read and extract data from NFC EMV credit cards (Android/PCSC).
Apache License 2.0
1.44k stars 586 forks source link

sample-pcsc with NFC USB reader cound not get anything #6

Closed yoldar closed 9 years ago

yoldar commented 9 years ago

Hi! When I try to read card number with PC/SC card in ACS ACR1281 1S Dual Reader there is only responces with "resp: File not found". What I am missing?

INFO main - Terminals: [PC/SC terminal ACS ACR1281 1S Dual Reader 00 00, PC/SC terminal ACS ACR1281 1S Dual Reader 00 01, PC/SC terminal ACS ACR1281 1S Dual Reader 00 02] INFO main - card: PC/SC card in ACS ACR1281 1S Dual Reader 00 01, protocol T=1, state OK DEBUG main - Try to read card with Payment System Environment DEBUG main - Select PSE Application DEBUG main - send: 00 A4 04 00 0E 31 50 41 59 2E 53 59 53 2E 44 44 46 30 31 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - PSE not found -> Use kown AID DEBUG main - Try to read card with AID DEBUG main - Select AID: A0 00 00 00 03 DEBUG main - send: 00 A4 04 00 05 A0 00 00 00 03 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 00 03 10 10 DEBUG main - send: 00 A4 04 00 07 A0 00 00 00 03 10 10 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 00 98 08 48 DEBUG main - send: 00 A4 04 00 07 A0 00 00 00 98 08 48 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 00 04 DEBUG main - send: 00 A4 04 00 05 A0 00 00 00 04 00 DEBUG main - resp: 6F 65 84 08 A0 00 00 00 04 00 00 00 A5 59 73 4A 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 02 55 65 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04 01 2A 02 6E 01 02 9F 6E 06 19 81 01 04 01 00 9F 65 01 FF 90 00 DEBUG main - resp: 6F 65 -- File Control Information (FCI) Template 84 08 -- Dedicated File (DF) Name A0 00 00 00 04 00 00 00 (BINARY) A5 59 -- File Control Information (FCI) Proprietary Template 73 4A -- Directory Discretionary Template 06 07 -- Object Identifier (OID) 2A 86 48 86 FC 6B 01 (BINARY) 60 0C -- [UNKNOWN TAG] 06 0A -- Object Identifier (OID) 2A 86 48 86 FC 6B 02 02 01 01 (BINARY) 63 09 -- [UNKNOWN TAG] 06 07 -- Object Identifier (OID) 2A 86 48 86 FC 6B 03 (BINARY) 64 0B -- [UNKNOWN TAG] 06 09 -- Object Identifier (OID) 2A 86 48 86 FC 6B 04 02 55 (BINARY) 65 0B -- [UNKNOWN TAG] 06 09 -- Object Identifier (OID) 2B 85 10 86 48 64 02 01 03 (BINARY) 66 0C -- [UNKNOWN TAG] 06 0A -- Object Identifier (OID) 2B 06 01 04 01 2A 02 6E 01 02 (BINARY) 9F 6E 06 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code 19 81 01 04 01 00 (BINARY) 9F 65 01 -- Track 2 bit map for CVC3 FF (BINARY) 90 00 -- Command successfully executed (OK) DEBUG main - resp: Command successfully executed (OK) DEBUG main - Response Status <9000> : Command successfully executed (OK) DEBUG main - send: 80 A8 00 00 02 83 00 00 DEBUG main - resp: 6D 00 DEBUG main - resp: 6D 00 -- Instruction code not supported or invalid DEBUG main - resp: Instruction code not supported or invalid DEBUG main - Response Status <6D00> : Instruction code not supported or invalid DEBUG main - send: 80 A8 00 00 02 83 00 00 DEBUG main - resp: 6D 00 DEBUG main - resp: 6D 00 -- Instruction code not supported or invalid DEBUG main - resp: Instruction code not supported or invalid DEBUG main - Response Status <6D00> : Instruction code not supported or invalid DEBUG main - Select AID: A0 00 00 00 05 DEBUG main - send: 00 A4 04 00 05 A0 00 00 00 05 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 00 25 DEBUG main - send: 00 A4 04 00 05 A0 00 00 00 25 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 00 42 DEBUG main - send: 00 A4 04 00 05 A0 00 00 00 42 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 00 29 DEBUG main - send: 00 A4 04 00 05 A0 00 00 00 29 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 00 65 DEBUG main - send: 00 A4 04 00 05 A0 00 00 00 65 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 01 21 10 10 DEBUG main - send: 00 A4 04 00 07 A0 00 00 01 21 10 10 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 01 41 00 01 DEBUG main - send: 00 A4 04 00 07 A0 00 00 01 41 00 01 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 01 52 30 10 DEBUG main - send: 00 A4 04 00 07 A0 00 00 01 52 30 10 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 01 54 DEBUG main - send: 00 A4 04 00 05 A0 00 00 01 54 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 02 28 DEBUG main - send: 00 A4 04 00 05 A0 00 00 02 28 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 02 77 DEBUG main - send: 00 A4 04 00 05 A0 00 00 02 77 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 03 24 DEBUG main - send: 00 A4 04 00 05 A0 00 00 03 24 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 03 33 DEBUG main - send: 00 A4 04 00 05 A0 00 00 03 33 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 03 59 DEBUG main - send: 00 A4 04 00 05 A0 00 00 03 59 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 03 71 DEBUG main - send: 00 A4 04 00 05 A0 00 00 03 71 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 04 39 DEBUG main - send: 00 A4 04 00 05 A0 00 00 04 39 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 05 24 10 10 DEBUG main - send: 00 A4 04 00 07 A0 00 00 05 24 10 10 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 04 32 00 01 DEBUG main - send: 00 A4 04 00 07 A0 00 00 04 32 00 01 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: D2 76 00 00 25 45 50 01 00 DEBUG main - send: 00 A4 04 00 09 D2 76 00 00 25 45 50 01 00 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: D5 78 00 00 02 10 10 DEBUG main - send: 00 A4 04 00 07 D5 78 00 00 02 10 10 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: F0 00 00 00 03 00 01 DEBUG main - send: 00 A4 04 00 07 F0 00 00 00 03 00 01 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 00 24 01 DEBUG main - send: 00 A4 04 00 06 A0 00 00 00 24 01 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 01 21 10 10 DEBUG main - send: 00 A4 04 00 07 A0 00 00 01 21 10 10 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 04 54 DEBUG main - send: 00 A4 04 00 05 A0 00 00 04 54 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 04 76 6C DEBUG main - send: 00 A4 04 00 06 A0 00 00 04 76 6C 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found DEBUG main - Select AID: A0 00 00 03 71 00 01 DEBUG main - send: 00 A4 04 00 07 A0 00 00 03 71 00 01 00 DEBUG main - resp: 6A 82 DEBUG main - resp: 6A 82 -- File not found DEBUG main - resp: File not found DEBUG main - Response Status <6A82> : File not found INFO main - card number: null

yoldar commented 9 years ago

Sorry, I missed boolean EmvParser(provider, true) :)