2017-06-29 64 views
1

我正在開發一個接口,使用帶NFC和智能卡/芯片閱讀器的Android設備從信用卡中讀取信息。有了這張卡,我可以使用NFC讀取信息,但是當使用芯片讀卡器時,我會得到不同的錯誤,如「6E 00 - 不支持的類別」或「69 85 - 使用條件不滿意」。第一個APDU沒問題,但在發送「80 a8 00 00 02 83 00 00」後,我收到了錯誤信息。請參見下面的完整不成功APDU消息流:信用卡芯片讀取錯誤

 transceive(3) in: 00 a4 04 00 0e 32 50 41 59 2e 53 59 53 2e 44 44 46 30 31 00 
    SendAPDU data: 00 a4 04 00 0e 32 50 41 59 2e 53 59 53 2e 44 44 46 30 31 00,tw:3 
    tmpTransTimeout(3):0 
    SendAPDU ret:0,outlen:91,tw:3 
    picc transceive success! 
    transceive out: 6f 57 84 0e 32 50 41 59 2e 53 59 53 2e 44 44 46 30 31 a5 45 bf 0c 42 61 1b 4f 07 a0 00 00 00 42 10 10 50 02 43 42 87 01 01 9f 2a 08 02 00 00 00 00 00 00 00 61 23 4f 07 a0 00 00 00 04 10 10 50 0a 4d 41 53 54 45 52 43 41 52 44 87 01 02 9f 2a 08 02 00 00 00 00 00 00 00 90 00 
    resp: 6F 57 84 0E 32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 A5 45 BF 0C 42 61 1B 4F 07 A0 00 00 00 42 10 10 50 02 43 42 87 01 01 9F 2A 08 02 00 00 00 00 00 00 00 61 23 4F 07 A0 00 00 00 04 10 10 50 0A 4D 41 53 54 45 52 43 41 52 44 87 01 02 9F 2A 08 02 00 00 00 00 00 00 00 90 00 
    resp: 
    6F 57 -- File Control Information (FCI) Template 
      84 0E -- Dedicated File (DF) Name 
       32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 (BINARY) 
      A5 45 -- File Control Information (FCI) Proprietary Template 
       BF 0C 42 -- File Control Information (FCI) Issuer Discretionary Data 
         61 1B -- Application Template 
           4F 07 -- Application Identifier (AID) - card 
            A0 00 00 00 42 10 10 (BINARY) 
           50 02 -- Application Label 
            43 42 (=CB) 
           87 01 -- Application Priority Indicator 
            01 (BINARY) 
           9F 2A 08 -- The value to be appended to the ADF Name in the data field of the SELECT command, if the Extended Selection Support flag is present and set to 1 
             02 00 00 00 00 00 00 00 (BINARY) 
         61 23 -- Application Template 
           4F 07 -- Application Identifier (AID) - card 
            A0 00 00 00 04 10 10 (BINARY) 
           50 0A -- Application Label 
            4D 41 53 54 45 52 43 41 52 44 (=MASTERCARD) 
           87 01 -- Application Priority Indicator 
            02 (BINARY) 
           9F 2A 08 -- The value to be appended to the ADF Name in the data field of the SELECT command, if the Extended Selection Support flag is present and set to 1 
             02 00 00 00 00 00 00 00 (BINARY) 
    90 00 -- Command successfully executed (OK) 
    resp: Command successfully executed (OK) 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 00 42 10 10 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 00 42 10 10 00,tw:3 
    SendAPDU ret:0,outlen:63,tw:3 
    picc transceive success! 
    transceive out: 6f 3b 84 07 a0 00 00 00 42 10 10 a5 30 50 02 43 42 87 01 01 9f 11 01 01 9f 12 0e 54 72 61 6e 73 61 63 74 69 6f 6e 20 43 42 5f 2d 04 66 72 65 6e bf 0c 0a df 60 02 0b 14 9f 4d 02 0b 14 90 00 
    resp: 6F 3B 84 07 A0 00 00 00 42 10 10 A5 30 50 02 43 42 87 01 01 9F 11 01 01 9F 12 0E 54 72 61 6E 73 61 63 74 69 6F 6E 20 43 42 5F 2D 04 66 72 65 6E BF 0C 0A DF 60 02 0B 14 9F 4D 02 0B 14 90 00 
    resp: 
    6F 3B -- File Control Information (FCI) Template 
      84 07 -- Dedicated File (DF) Name 
       A0 00 00 00 42 10 10 (BINARY) 
      A5 30 -- File Control Information (FCI) Proprietary Template 
       50 02 -- Application Label 
         43 42 (=CB) 
       87 01 -- Application Priority Indicator 
         01 (BINARY) 
       9F 11 01 -- Issuer Code Table Index 
         01 (NUMERIC) 
       9F 12 0E -- Application Preferred Name 
         54 72 61 6E 73 61 63 74 69 6F 6E 20 43 42 (=Transaction CB) 
       5F 2D 04 -- Language Preference 
         66 72 65 6E (=fren) 
       BF 0C 0A -- File Control Information (FCI) Issuer Discretionary Data 
         DF 60 02 -- VISA Log Entry 
            0B 14 (BINARY) 
         9F 4D 02 -- Log Entry 
            0B 14 (BINARY) 
    90 00 -- Command successfully executed (OK) 
    resp: Command successfully executed (OK) 
    transceive(3) in: 80 a8 00 00 02 83 00 00 
    SendAPDU data: 80 a8 00 00 02 83 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6e 00 
    resp: 6E 00 
    resp: 
    6E 00 -- Class not supported 
    resp: Class not supported 
    transceive(3) in: 80 a8 00 00 02 83 00 00 
    SendAPDU data: 80 a8 00 00 02 83 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 69 85 
    resp: 69 85 
    resp: 
    69 85 -- Conditions of use not satisfied 
    resp: Conditions of use not satisfied 
    transceive(3) in: 00 a4 04 00 0f a0 00 00 00 42 10 10 02 00 00 00 00 00 00 00 00 
    SendAPDU data: 00 a4 04 00 0f a0 00 00 00 42 10 10 02 00 00 00 00 00 00 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 00 04 10 10 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 00 04 10 10 00,tw:3 
    SendAPDU ret:0,outlen:67,tw:3 
    picc transceive success! 
    transceive out: 6f 3f 84 07 a0 00 00 00 04 10 10 a5 34 50 0a 4d 41 53 54 45 52 43 41 52 44 87 01 02 9f 11 01 01 9f 12 0a 4d 41 53 54 45 52 43 41 52 44 5f 2d 04 66 72 65 6e bf 0c 0a df 60 02 0b 14 9f 4d 02 0b 14 90 00 
    resp: 6F 3F 84 07 A0 00 00 00 04 10 10 A5 34 50 0A 4D 41 53 54 45 52 43 41 52 44 87 01 02 9F 11 01 01 9F 12 0A 4D 41 53 54 45 52 43 41 52 44 5F 2D 04 66 72 65 6E BF 0C 0A DF 60 02 0B 14 9F 4D 02 0B 14 90 00 
    resp: 
    6F 3F -- File Control Information (FCI) Template 
      84 07 -- Dedicated File (DF) Name 
       A0 00 00 00 04 10 10 (BINARY) 
      A5 34 -- File Control Information (FCI) Proprietary Template 
       50 0A -- Application Label 
         4D 41 53 54 45 52 43 41 52 44 (=MASTERCARD) 
       87 01 -- Application Priority Indicator 
         02 (BINARY) 
       9F 11 01 -- Issuer Code Table Index 
         01 (NUMERIC) 
       9F 12 0A -- Application Preferred Name 
         4D 41 53 54 45 52 43 41 52 44 (=MASTERCARD) 
       5F 2D 04 -- Language Preference 
         66 72 65 6E (=fren) 
       BF 0C 0A -- File Control Information (FCI) Issuer Discretionary Data 
         DF 60 02 -- VISA Log Entry 
            0B 14 (BINARY) 
         9F 4D 02 -- Log Entry 
            0B 14 (BINARY) 
    90 00 -- Command successfully executed (OK) 
    resp: Command successfully executed (OK) 
    transceive(3) in: 80 a8 00 00 02 83 00 00 
    SendAPDU data: 80 a8 00 00 02 83 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6e 00 
    resp: 6E 00 
    resp: 
    6E 00 -- Class not supported 
    resp: Class not supported 
    transceive(3) in: 80 a8 00 00 02 83 00 00 
    SendAPDU data: 80 a8 00 00 02 83 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 69 85 
    resp: 69 85 
    resp: 
    69 85 -- Conditions of use not satisfied 
    resp: Conditions of use not satisfied 
    transceive(3) in: 00 a4 04 00 0f a0 00 00 00 04 10 10 02 00 00 00 00 00 00 00 00 
    SendAPDU data: 00 a4 04 00 0f a0 00 00 00 04 10 10 02 00 00 00 00 00 00 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 00 03 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 00 03 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 00 03 10 10 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 00 03 10 10 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 00 98 08 48 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 00 98 08 48 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 00 04 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 00 04 00,tw:3 
    SendAPDU ret:0,outlen:67,tw:3 
    picc transceive success! 
    transceive out: 6f 3f 84 07 a0 00 00 00 04 10 10 a5 34 50 0a 4d 41 53 54 45 52 43 41 52 44 87 01 02 9f 11 01 01 9f 12 0a 4d 41 53 54 45 52 43 41 52 44 5f 2d 04 66 72 65 6e bf 0c 0a df 60 02 0b 14 9f 4d 02 0b 14 90 00 
    resp: 6F 3F 84 07 A0 00 00 00 04 10 10 A5 34 50 0A 4D 41 53 54 45 52 43 41 52 44 87 01 02 9F 11 01 01 9F 12 0A 4D 41 53 54 45 52 43 41 52 44 5F 2D 04 66 72 65 6E BF 0C 0A DF 60 02 0B 14 9F 4D 02 0B 14 90 00 
    resp: 
    6F 3F -- File Control Information (FCI) Template 
      84 07 -- Dedicated File (DF) Name 
       A0 00 00 00 04 10 10 (BINARY) 
      A5 34 -- File Control Information (FCI) Proprietary Template 
       50 0A -- Application Label 
         4D 41 53 54 45 52 43 41 52 44 (=MASTERCARD) 
       87 01 -- Application Priority Indicator 
         02 (BINARY) 
       9F 11 01 -- Issuer Code Table Index 
         01 (NUMERIC) 
       9F 12 0A -- Application Preferred Name 
         4D 41 53 54 45 52 43 41 52 44 (=MASTERCARD) 
       5F 2D 04 -- Language Preference 
         66 72 65 6E (=fren) 
       BF 0C 0A -- File Control Information (FCI) Issuer Discretionary Data 
         DF 60 02 -- VISA Log Entry 
            0B 14 (BINARY) 
         9F 4D 02 -- Log Entry 
            0B 14 (BINARY) 
    90 00 -- Command successfully executed (OK) 
    resp: Command successfully executed (OK) 
    transceive(3) in: 80 a8 00 00 02 83 00 00 
    SendAPDU data: 80 a8 00 00 02 83 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6e 00 
    resp: 6E 00 
    resp: 
    6E 00 -- Class not supported 
    resp: Class not supported 
    transceive(3) in: 80 a8 00 00 02 83 00 00 
    SendAPDU data: 80 a8 00 00 02 83 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 69 85 
    resp: 69 85 
    resp: 
    69 85 -- Conditions of use not satisfied 
    resp: Conditions of use not satisfied 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 00 05 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 00 05 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 00 25 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 00 25 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 00 42 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 00 42 00,tw:3 
    SendAPDU ret:0,outlen:63,tw:3 
    picc transceive success! 
    transceive out: 6f 3b 84 07 a0 00 00 00 42 10 10 a5 30 50 02 43 42 87 01 01 9f 11 01 01 9f 12 0e 54 72 61 6e 73 61 63 74 69 6f 6e 20 43 42 5f 2d 04 66 72 65 6e bf 0c 0a df 60 02 0b 14 9f 4d 02 0b 14 90 00 
    resp: 6F 3B 84 07 A0 00 00 00 42 10 10 A5 30 50 02 43 42 87 01 01 9F 11 01 01 9F 12 0E 54 72 61 6E 73 61 63 74 69 6F 6E 20 43 42 5F 2D 04 66 72 65 6E BF 0C 0A DF 60 02 0B 14 9F 4D 02 0B 14 90 00 
    resp: 
    6F 3B -- File Control Information (FCI) Template 
      84 07 -- Dedicated File (DF) Name 
       A0 00 00 00 42 10 10 (BINARY) 
      A5 30 -- File Control Information (FCI) Proprietary Template 
       50 02 -- Application Label 
         43 42 (=CB) 
       87 01 -- Application Priority Indicator 
         01 (BINARY) 
       9F 11 01 -- Issuer Code Table Index 
         01 (NUMERIC) 
       9F 12 0E -- Application Preferred Name 
         54 72 61 6E 73 61 63 74 69 6F 6E 20 43 42 (=Transaction CB) 
       5F 2D 04 -- Language Preference 
         66 72 65 6E (=fren) 
       BF 0C 0A -- File Control Information (FCI) Issuer Discretionary Data 
         DF 60 02 -- VISA Log Entry 
            0B 14 (BINARY) 
         9F 4D 02 -- Log Entry 
            0B 14 (BINARY) 
    90 00 -- Command successfully executed (OK) 
    resp: Command successfully executed (OK) 
    transceive(3) in: 80 a8 00 00 02 83 00 00 
    SendAPDU data: 80 a8 00 00 02 83 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6e 00 
    resp: 6E 00 
    resp: 
    6E 00 -- Class not supported 
    resp: Class not supported 
    transceive(3) in: 80 a8 00 00 02 83 00 00 
    SendAPDU data: 80 a8 00 00 02 83 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 69 85 
    resp: 69 85 
    resp: 
    69 85 -- Conditions of use not satisfied 
    resp: Conditions of use not satisfied 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 00 29 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 00 29 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 00 65 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 00 65 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 01 21 10 10 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 01 21 10 10 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 01 41 00 01 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 01 41 00 01 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 01 52 30 10 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 01 52 30 10 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 01 54 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 01 54 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 02 28 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 02 28 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 02 77 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 02 77 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 03 24 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 03 24 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 03 33 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 03 33 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 03 59 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 03 59 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 03 71 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 03 71 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 04 39 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 04 39 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 05 24 10 10 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 05 24 10 10 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 04 32 00 01 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 04 32 00 01 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 09 d2 76 00 00 25 45 50 01 00 00 
    SendAPDU data: 00 a4 04 00 09 d2 76 00 00 25 45 50 01 00 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 d5 78 00 00 02 10 10 00 
    SendAPDU data: 00 a4 04 00 07 d5 78 00 00 02 10 10 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 f0 00 00 00 03 00 01 00 
    SendAPDU data: 00 a4 04 00 07 f0 00 00 00 03 00 01 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 06 a0 00 00 00 24 01 00 
    SendAPDU data: 00 a4 04 00 06 a0 00 00 00 24 01 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 01 21 10 10 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 01 21 10 10 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 05 a0 00 00 04 54 00 
    SendAPDU data: 00 a4 04 00 05 a0 00 00 04 54 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 06 a0 00 00 04 76 6c 00 
    SendAPDU data: 00 a4 04 00 06 a0 00 00 04 76 6c 00,tw:3 
    isIccInsert:1 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    transceive(3) in: 00 a4 04 00 07 a0 00 00 03 71 00 01 00 
    SendAPDU data: 00 a4 04 00 07 a0 00 00 03 71 00 01 00,tw:3 
    SendAPDU ret:0,outlen:2,tw:3 
    picc transceive success! 
    transceive out: 6a 82 
    resp: 6A 82 
    resp: 
    6A 82 -- File not found 
    resp: File not found 
    reconnect 
+0

你有沒有通過它的卡申請規範?如果你有英文同樣的話,請在這裏分享。這不是像Visa或萬事達卡這樣的非常常見的應用程序。 APDU的第一個字節是它的類,並且GET PO錯誤顯示不支持類80。出於好奇,你可以試試00而不是測試,看看會發生什麼。 – adarsh

+0

抱歉,不確定你的意思是「你有沒有通過它的卡申請規範」 – Delcasda

+0

每個應用程序將有其應用程序規範文件,其詳細的功能。根據EMV標準,獲得PO命令的內容不錯,但仍然被拒絕。因此,最好查看相應的應用程序規範手冊,瞭解哪些情況會遇到哪些錯誤。它也會有關於其狀態機行爲的詳細信息。 – adarsh

回答

0

根據規範(V4.3冊表43)您的FCI讀取PSE後應包含標籤(SFI), 必填字段所以我不太瞭解你的FCI。它缺少一個必填字段(標籤88)。你確定你發佈的回覆?見表43第1冊v4.3。你使用哪個規範?同樣,要獲得可用於交易的卡的申請,則需要按照第1章第12.3.2節中的步驟進行操作。從中你可能會發現你的應用程序提供了一個PDOL,你必須提供它才能成功讀取處理選項。這就是爲什麼你可能會得到69 85.