APDU I/O API Examples
The following are examples of how to use the APDU I/O API:
To Power Up And Power Down the Card
The dual-interface simulator is implemented in such a way that once the client establishes connection to a port, the next command must be powerUp
on that port. For example, the following sequence is valid:
-
Connect on "contacted" port.
-
Send
powerUp
to it. -
Exchange some APDUs.
-
Connect on "contactless" port.
-
Send
powerUp
to it. -
Exchange more APDUs
However, the following sequence is not valid:
-
Connect on "contacted" port.
-
Connect on "contactless" port.
-
Send
powerUp
to any port.
To power up and power down the card: