How do I choose the applet I’m sending commands to?

Julien SIMON

In the normal case, commands are sent to the current applet, i.e. the last one that has been selected using the SELECT command. However, if the platform supports logical channels, multiple applets may be currently selected: dispatching is based on the value of the class byte in the APDU header.