public interface ReaderMessage extends HCIMessage
| Modifier and Type | Field and Description |
|---|---|
static byte |
MULTIPLE_TARGET_STATUS
when there are several targets in the field irrespective
of the RF technology
|
static byte |
PARAM_ID_TYPE_A_READER_APPLICATION_DATA
The historical bytes as defined in ISO/IEC 14443-3 for type A
|
static byte |
PARAM_ID_TYPE_A_READER_ATQA
Pre-formatted ATQA as defined in ISO/IEC 14443-3 for type A
(see TS 102 622 for coding of the value)
|
static byte |
PARAM_ID_TYPE_A_READER_DATARATE_MAX
Maximum data rate supported
|
static byte |
PARAM_ID_TYPE_A_READER_FWI
SFGT Frame waiting time and start-up frame guard time as
defined in ISO/IEC 14443-4 for type A
|
static byte |
PARAM_ID_TYPE_A_READER_OPERATING_STATUS
reader RF gate registry OPERATION STATUS for type A
see TS 102 622 for the coding of the value.
|
static byte |
PARAM_ID_TYPE_A_READER_SAK
Pre-formatted SAK as defined in ISO/IEC 14443-3 for type A
|
static byte |
PARAM_ID_TYPE_A_READER_UID
UID as defined in ISO/IEC 14443-3 for type A
|
static byte |
PARAM_ID_TYPE_B_READER_AFI
Application family identifier as defined in ISO/IEC 14443-3
for type B used by the reader to poll the target
|
static byte |
PARAM_ID_TYPE_B_READER_APPLICATION_DATA
Application data as defined in ISO/IEC 14443-3 for ATQB
|
static byte |
PARAM_ID_TYPE_B_READER_HIGHER_LAYER_DATA
Higher layer data as defined in ISO/IEC 14443-3 for ATTRIB command
|
static byte |
PARAM_ID_TYPE_B_READER_HIGHER_LAYER_RESPONSE
Higher layer response as defined in ISO/IEC 14443-3 for answer
to ATTRIB command
|
static byte |
PARAM_ID_TYPE_B_READER_OPERATING_STATUS
reader RF gate registry OPERATING STATUS for type B
see TS 102 622 for the coding of the value.
|
static byte |
PARAM_ID_TYPE_B_READER_PUPI
PUPI as defined in ISO/IEC 14443-3 for type B
|
static byte |
RESP_ANY_E_TIMEOUT
An Applet level time-out occurred.
|
static byte |
RESP_WR_RF_ERROR
The target has returned an RF error.
|
static byte |
SINGLE_TARGET_STATUS
when there is a single target in the reader field and
the activation of the target is completed
|
RESP_ANY_E_CMD_NOT_SUPPORTED, RESP_ANY_E_INHIBITED, RESP_ANY_E_NOK, RESP_ANY_E_NOT_CONNECTED, RESP_ANY_E_PIPE_NOT_OPENED, RESP_ANY_E_REG_ACCESS_DENIED, RESP_ANY_E_REG_PAR_UNKNOWN, RESP_ANY_OK, TYPE_COMMAND, TYPE_EVENT, TYPE_RESPONSE| Modifier and Type | Method and Description |
|---|---|
void |
prepareAndSendGetParameterCommand(byte paramid)
This non-blocking method builds the HCI command ANY_GET_PARAMETER for the
indicated information and sends it to the Contactless Reader Gate of the CLF.
|
void |
prepareAndSendWriteXchgDataCommand(byte timeout,
byte[] data,
short offset,
short len)
This non-blocking method builds the HCI command WR_XCHG_DATA with the data passed
in the parameter data and sends it to the Contactless Reader Gate of the CLF.
|
void |
restartReaderModeProcedure()
This method sends first the HCI event EVT_END_OPERATION and then the
HCI event EVT_READER_REQUESTED.
|
getInstruction, getReceiveBuffer, getReceiveLength, getReceiveOffset, getType, isComplete, isHeadingstatic final byte RESP_ANY_E_TIMEOUT
static final byte RESP_WR_RF_ERROR
static final byte SINGLE_TARGET_STATUS
static final byte MULTIPLE_TARGET_STATUS
static final byte PARAM_ID_TYPE_A_READER_UID
static final byte PARAM_ID_TYPE_A_READER_ATQA
static final byte PARAM_ID_TYPE_A_READER_APPLICATION_DATA
static final byte PARAM_ID_TYPE_A_READER_SAK
static final byte PARAM_ID_TYPE_A_READER_FWI
static final byte PARAM_ID_TYPE_A_READER_DATARATE_MAX
static final byte PARAM_ID_TYPE_A_READER_OPERATING_STATUS
static final byte PARAM_ID_TYPE_B_READER_PUPI
static final byte PARAM_ID_TYPE_B_READER_APPLICATION_DATA
static final byte PARAM_ID_TYPE_B_READER_AFI
static final byte PARAM_ID_TYPE_B_READER_HIGHER_LAYER_RESPONSE
static final byte PARAM_ID_TYPE_B_READER_HIGHER_LAYER_DATA
static final byte PARAM_ID_TYPE_B_READER_OPERATING_STATUS
void prepareAndSendGetParameterCommand(byte paramid)
throws HCIException,
javacard.framework.SystemException
paramid - shall be one of the PARAM_* values defined in this interfaceHCIException - with the following reason code: HCI_CURRENTLY_DISABLED if the HCI interface was disabled
HCI_FRAGMENTED_MESSAGE_ONGOING if the Contactless Framework is still receiving a fragmented HCI Message
HCI_RESOURCES_NOT_AVAILABLE if the contactless framework does not have enough resources to process the command
javacard.framework.SystemException - with the following reason code: ILLEGAL_VALUE if the paramID does not match with the predefined valuesvoid prepareAndSendWriteXchgDataCommand(byte timeout,
byte[] data,
short offset,
short len)
throws HCIException,
java.lang.NullPointerException,
java.lang.ArrayIndexOutOfBoundsException,
javacard.framework.SystemException
timeout - value according to TS 102 622, or -1 if no timeout value is givendata - byte array holding the data to send to the CLFoffset - into the byte array indicating the start of the data to send to the CLFlen - overall length of data that will be send to the CLFHCIException - with the following reason code: HCI_CURRENTLY_DISABLED if the HCI interface was disabled
HCI_FRAGMENTED_MESSAGE_ONGOING if the Contactless Framework is still receiving a fragmented HCI Message
HCI_RESOURCES_NOT_AVAILABLE if the contactless framework does not have enough resources to process the command
java.lang.NullPointerException - if data is nulljava.lang.ArrayIndexOutOfBoundsException - if operation would cause access of data outside
array bounds.javacard.framework.SystemException - with the following reason code: ILLEGAL_VALUE if the timeout value does not match with the predefined valuesvoid restartReaderModeProcedure()
throws HCIException
HCIException - with the following reason code: HCI_CURRENTLY_DISABLED if the HCI interface was disable
HCI_CONDITIONS_NOT_SATISFIED if the Applet is not ACTIVATED