The following examples illustrate exchanges of data and procedure bytes between the terminal and the UICC when standard logical channels are used (see
clause 10.1.1).
Note the following:
-
The use of procedure bytes '60' and is not illustrated.
-
[Data(X)] means X bytes of data.
-
Case 2 and 4 commands may have Le = '00' requesting the return of all data from the UICC up to the maximum available.
The examples in
clauses C.1.1 to
C.1.4 illustrate typical exchanges using case 1 to 4 commands. The examples in the
clauses C.1.5 and
C.1.6 illustrate the more extensive use of procedure bytes '61 XX' when used with cases 2 and 4 commands. The example in
clause C.1.7 illustrates a warning condition with a case 4 command.
A C-APDU of {CLA INS P1 P2} is passed from the terminal to the UICC (note that P3 of the C-TPDU is set to '00').
An R-APDU of {90 00} is returned from the UICC to the terminal.
In this first example, a C-APDU of {CLA INS P1 P2 Le = 00} is passed from the terminal to the UICC with Luicc < 256 bytes.
An R-APDU of {[Data(Luicc)] 90 00} is returned from the UICC to the terminal.
In this second example, a C-APDU of {CLA INS P1 P2 Le = 00} is passed from the terminal to the UICC with Luicc = 256 bytes.
An R-APDU of {[Data(Luicc)] 90 00} is returned from the UICC to the terminal.
A C-APDU of {CLA INS P1 P2 Lc [Data(Lc)]} is passed from the terminal to the UICC.
An R-APDU of {90 00} is returned from the UICC to the terminal.
A C-APDU of {CLA INS P1 P2 Lc [Data (Lc)] Le = 00} is passed from the terminal to the UICC.
An R-APDU of {[Data(Luicc)] 90 00} is returned from the UICC to the terminal.
The GET RESPONSE command is sent on the same logical channel as the C-TPDU.
A C-APDU of {CLA INS P1 P2 Le = 00} is passed from the terminal to the UICC with Luicc < 256 bytes.
Where YY ≤ XX,
An R-APDU of {[Data(YY + ZZ)] 90 00} is returned from the UICC to the terminal.
The GET RESPONSE command is sent on the same logical channel as the C-TPDU.
A C-APDU of {CLA INS P1 P2 Lc [Data Lc] Le = 00} is passed from the terminal to the UICC.
An R-APDU of {[Data(XX + YY)] 90 00} is returned from the UICC to the terminal.
The GET RESPONSE command is sent on the same logical channel as the C-TPDU.
A C-APDU of {CLA INS P1 P2 Lc [Data Lc] Le = 00} is passed from the terminal to the UICC.
An R-APDU of {[Data(Luicc)] 62 XX} is returned from the UICC to the terminal containing the data returned together with the warning status bytes.
The GET RESPONSE command is sent on the same logical channel as the C-TPDU.