5
  byte[] APDUCommand = { 
            (byte) 0x00, // CLA Class           
            (byte) 0xA4, // INS Instruction     
            (byte) 0x04, // P1  Parameter 1
            (byte) 0x00, // P2  Parameter 2
            (byte) 0x0A, // Length
            0x63,0x64,0x63,0x00,0x00,0x00,0x00,0x32,0x32,0x31 // AID
        };


    Intent intent = getIntent();
    Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
    IsoDep iso = IsoDep.get(tag);        
    iso.connect();

    byte[] result = iso.transceive(APDUCommand);

上記のコードを使用して、samsung galaxy s4 を使用して VisaPayWave NFC カードの詳細 (カード所有者の名前、有効期限、カード番号など) を読み取ります。私が得ている出力は[106、-126]です。使用している APDU コマンドが正しくないと思います。正しいコマンドを教えてください。

4

3 に答える 3