You are on page 1of 3

83 ETSI TS 102 221 V17.1.

0 (2022-02)

10.2.2 Status words of the commands


Table 10.16 shows for each command the possible status conditions returned (marked by an asterisk *).

Table 10.16: Commands and status words

MANAGE SECURE
TERMINAL PROFILE

MANAGE CHANNEL
SEARCH RECORD

DEACTIVATE FILE
UPDATE RECORD

GET CHALLENGE

TRANSACT DATA
UPDATE BINARY

RETRIEVE DATA
AUTHENTICATE

SUSPEND UICC
READ RECORD

ACTIVATE FILE

GET IDENTITY
READ BINARY

UNBLOCK PIN
CHANGE PIN
DISABLE PIN
Status words

ENABLE PIN

CAPABILITY
VERIFY PIN

RESPONSE
ENVELOPE
INCREASE

TERMINAL

TERMINAL
SET DATA

CHANNEL
STATUS
SELECT

FETCH
90 00 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
91 XX * * * * * * * * * * * * * * * * * * * * * * * * * * * *
93 00 *
98 50 *
98 62 * *
62 00 * * * * * * * * * * * * * * * * * * * * * * * * * * *
62 81 * *
62 82 * * *
62 83 * *
62 85 * *
62 F1 * * * *
62 F2 * *
62 F3 * *
63 F1 * * *
63 F2 *
63 CX * * * * * * * * *
64 00 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
65 00 * * * * * * * * * * * * * * * * * * * *
65 81 * * * * * * * * * * * * *
67 XX * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
68 00 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
68 81 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
68 82 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
69 00 * * * * * * * * * * * * * * * * * * * * * * * * * * * *
69 81 * * * * * * * *
69 82 * * * * * * * * * * * * * *
69 83 * * * * *
69 84 * * * * * * * * * * * * * *
69 85 * * * * * * * * * * * * * * * * *
69 86 * * * * * * * * * *

ETSI
84 ETSI TS 102 221 V17.1.0 (2022-02)

MANAGE SECURE
TERMINAL PROFILE

MANAGE CHANNEL
SEARCH RECORD

DEACTIVATE FILE
UPDATE RECORD

GET CHALLENGE

TRANSACT DATA
UPDATE BINARY

RETRIEVE DATA
AUTHENTICATE

SUSPEND UICC
READ RECORD

ACTIVATE FILE

GET IDENTITY
READ BINARY

UNBLOCK PIN
CHANGE PIN
DISABLE PIN
Status words

ENABLE PIN

CAPABILITY
VERIFY PIN

RESPONSE
ENVELOPE
INCREASE

TERMINAL

TERMINAL
SET DATA

CHANNEL
STATUS
SELECT

FETCH
69 89 * * * * * * * * * * * * * * * * * * * * * * * * *
6A 80 * * * * * * * * *
6A 81 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
6A 82 * * * * * * * * * * *
6A 83 * * *
6A 84 * * *
6A 86 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
6A 87 * * *
6A 88 * * * * * * * *
6B 00 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
6E 00 * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
6F XX * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
92 XX *
98 63 * *
98 64 *

The responses '91 XX', and '93 00' can only be given by a UICC to a terminal supporting CAT (see ETSI TS 102 223 [4]).

The behaviour of the terminal when receiving the response APDU from the ENVELOPE command with status word '6FXX', '62XX' and '63XX' is defined in clause 7.4.2.2.

ETSI
85 ETSI TS 102 221 V17.1.0 (2022-02)

10.3 Logical channels


Commands referring to a certain logical channel carry the respective logical channel number in:

• the two least significant bits of the CLA byte defined in table 10.3. Logical channels are numbered from 0 to 3.
The basic logical channel (number 0) is permanently available;

• the four least significant bits of the CLA byte defined in table 10.4a. Logical channels are numbered from
4 to 19 (extended logical channels).

The MANAGE CHANNEL command shall be used to open and close a logical channel. The channel number is
assigned by the UICC.

11 Commands

11.1 Generic commands


11.1.0 Introduction
Clause 11.1 lists the basic command and response APDU formats that are used by applications residing on a UICC. It is
up to each application to determine which commands it uses. If an application does not support a command, it shall
return the appropriate status word, see clause 10.2.

11.1.1 SELECT

11.1.1.1 Functional description


This function selects a file according to the methods described in clause 8.4. After a successful selection the record
pointer and the current tag pointer are undefined.

Input:

• File ID, application ID, path or empty.

Output:

• If the selected file is the MF, a DF or an ADF:

- File ID, total file size, PIN status and other application specific data.

• If the selected file is an EF:

- File ID, file size, total file size, access conditions, invalidated/not invalidated indicator, structure of EF,
length of the records in case of linear fixed structure or cyclic structure and reserved and maximum file
size in case of BER-TLV structure.

11.1.1.2 Command parameters and data


Code Value
CLA As specified in clause 10.1.1
INS As specified in clause 10.1.2
P1 Selection control, see table 11.1
P2 Selection control, see table 11.2
Lc Length of subsequent data field or empty
Data File ID, DF name, or path to file, according to P1
Le Empty, '00', or maximum length of data expected in response

ETSI

You might also like