Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Different performance under different protocol

JavaCard Applet Development Related Questions and Answers.
Rasiand
Posts: 12
Joined: Mon Mar 14, 2016 8:25 am
Points :133
Contact:

Different performance under different protocol

Post by Rasiand » Fri Nov 25, 2016 1:46 am

Hi everyone in here,

I am experiencing a strange problem now :( . When I sent "8060000004" command, the applet performed differently under T0 and T1 protocol.
T0 protocol: It threw"6F00" while running into this code line short le = apdu.setOutgoing();
T1 protocol: It can return test_out value without any problem.
My code:

Code: Select all

private void Test(APDU apdu) 
    {
        byte[] buffer = apdu.getBuffer(); 
        short le = apdu.setOutgoing();          
        apdu.setOutgoingLength((byte)4);   
        apdu.sendBytesLong(test_out, (short)0, (short)4);
    }


Does anyone tell me where I made the mistake? Thanks very much.
Last edited by Rasiand on Fri Nov 25, 2016 7:30 am, edited 1 time in total.

chico0609
Posts: 59
Joined: Mon Sep 14, 2015 5:05 am
Points :416
Contact:

Re: Different performance under different protocol

Post by chico0609 » Fri Nov 25, 2016 7:27 am

When using T0 protocol, INS denotes an instruction code (see ISO/IEC 7816-4).The values ’6X’ and ’9X’ are invalid.
Try to use use non- ’6X’ and ’9X’ instead.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 51 guests

JavaCard OS : Disclaimer