I4CE.ExchangeInverseAPDU

This command is deprecated. Do not use it in new code as we may remove it in the future!

This command is marked as deprecated as it is not supported by Baltech's SDK. There is currently no alternative for this command.

Send an APDU response to the APDU request received during the last call of I4CE.ExchangeInverseAPDU or I4CE.StartEmu, and receive the next PCD APDU request.

The Timeout parameter specifies the maximum time in ms to wait for the next APDU. If no request could be received from the PCD, I4CE.ExchangeInverseAPDU returns the I4CE.ErrTimeout status code.

In case the received APDU does not fit into the internal buffer of the emulated PICC, the part of the frame which could be processed is returned together with an I4CE.ErrOverflow status code. The buffer size is firmware dependent and can be retrieved via the Sys.GetBufferSize command.

The command returns the I4CE.ErrIso144State status code if the PICC is not in the proper state to exchange ISO14443-4 APDUs. This is the case if I4CE.StartEmu has not previously been successfully executed, or if the PCD has terminated the communication by e.g. executing the Iso14L4.Deselect command.

Properties

Parameters (request frame)

Name Type/Size Description
Length of Rsp Integer (16 bits) Length of Rsp in bytes
Rsp Raw data APDU which shall be sent to the PCD as a response to the last command.
Timeout Integer (16 bits)

Maximum time (in ms) to wait for the next ISO14443-4 APDU request.

A value of 0xFFFF corresponds to an infinite timeout.

Returned values (response frame)

Name Type/Size Description
Length of Cmd Integer (16 bits) Length of Cmd in bytes
Cmd Raw data Next ISO14443-4 APDU request received from the PCD.