Professional Documents
Culture Documents
0 (2022-02)
b8 b7 b6 b5 b4 b3 b2 b1 Meaning
0 0 0 0 0 0 0 0 Select DF, EF or MF by file id
0 0 0 0 0 0 0 1 Select child DF of the current DF
0 0 0 0 0 0 1 1 Select parent DF of the current DF
0 0 0 0 0 1 0 0 Selection by DF name (see note)
0 0 0 0 1 0 0 0 Select by path from MF
0 0 0 0 1 0 0 1 Select by path from current DF
NOTE: This is selection by AID.
b8 b7 b6 b5 b4 b3 b2 b1 Meaning
- X X - - - - - Application session control (see note 2)
- 0 0 - - - - - - Activation/Reset
- 1 0 - - - - - - Termination
0 - - 0 0 1 - - Return FCP template
0 - - 0 1 1 - - No data returned
- - - - - - X X Selection by AID control
- - - - - - 0 0 - First or only occurrence
- - - - - - 0 1 - Last occurrence
- - - - - - 1 0 - Next occurrence
- - - - - - 1 1 - Previous occurrence
NOTE 1: Whether the FCP information is returned or not depends on the type of APDU.
NOTE 2: This only applies when P1 indicates SELECT by DF name.
If P1 = '00' and the data field is empty, then P2 shall be set to '0C' ('No data returned'). Then the MF is set as the Current
Directory.
To avoid ambiguities when P1 = '00', the following search order applies when selecting a file with a File ID (FID) as a
parameter:
When P1 = '04' (i.e. for selection by AID), a right truncated AID can be specified in the data field.
The response data contains the File Control Parameters (FCP) template of the selected file. The contents of the FCP
depend on the selected file. See below for the list of TLV that are returned in each case.
The value part of the FCP template data object consists of data objects, as shown in clause 11.1.1.3.1. It is mandatory
for data objects to be provided in the order given in the description of each response. New data objects can be added to
the end of the response data. The terminal shall ignore data objects with tags it does not support.
ETSI
87 ETSI TS 102 221 V17.1.0 (2022-02)
For transparent EF, file size is the length of the body part of the EF, and for linear fixed or cyclic EF, it is the record
length multiplied by the number of records of the EF. For a BER-TLV structure EF, file size is the memory used by the
allocated data objects.
ETSI
88 ETSI TS 102 221 V17.1.0 (2022-02)
For an EF, the "total file size" represents the allocated memory for the content and the structural information (if any) of
this EF.
For a BER-TLV structure EF, the structural information shall include any administrative overhead that is required to
store the TLV objects in the file. If a reserved file size according to clause 11.1.1.4.6.6 is defined for the file, any
memory space, that is allocated for the file accordingly, but is currently not used, shall be included in the total file size.
For a DF, the "total file size" represents the sum of the "total file sizes" of all the Efs and DFs contained in this DF plus
the amount of available memory in this DF. The size of the structural information of the selected DF itself is not
included.
• File descriptor.
Contents: File descriptor specifies the file accessibility, and the file type and structure.
ETSI