Page 1 of 1

Contactless Interface

Posted: Wed Jul 04, 2018 9:59 am
by naresh
Hello sir,
I want to Know whether my application used "CONTACTLESS INTERFACE" or NOT.

Regards,
Naresh.

Re: Contactless Interface

Posted: Wed Jul 04, 2018 10:15 pm
by BirdKing
On javacard, the API "APDU.getProtocol()" should help you to find which protocol.

Re: Contactless Interface

Posted: Thu Jul 05, 2018 4:02 am
by happy123654
static native byte javacard.framework.APDU.getProtocol ( )

Returns the ISO 7816 transport protocol type, T=1 or T=0 in the low nibble and the transport media in the upper nibble in use.
Returnsthe protocol media and type in progress Valid nibble codes are listed in PROTOCOL_* constants above. See PROTOCOL_T0.

public static final byte PROTOCOL_T0 = 0;
public static final byte PROTOCOL_T1 = 1;
public static final byte PROTOCOL_MEDIA_CONTACTLESS_TYPE_A = -128;
public static final byte PROTOCOL_MEDIA_CONTACTLESS_TYPE_B = -112;