You are on page 1of 3

113 ETSI TS 102 221 V17.1.

0 (2022-02)

11.1.17 MANAGE CHANNEL

11.1.17.1 Functional description


This command opens and closes logical channels. The open function opens a new logical channel other than the basic
channel '0'. The UICC shall support channel number assignment by the UICC. If the TERMINAL CAPABILITY
command with the tag '81' (Extended logical channels terminal support) is not sent by the terminal then the UICC shall
not open more than 3 logical channels in addition to the basic channel. The UICC shall first assign channel numbers in
the range 1 to 3 before assigning the extended logical channels number (i.e. from 4 to 19). The close function explicitly
closes a logical channel. When a channel has been successfully closed, the channel can be reassigned. The basic logical
channel '0' is always available and cannot be closed.

Input:

• None.

Output:

• None; or

• the channel number of the logical channel assigned by the UICC.

11.1.17.2 Command parameters and data


Code Value
CLA As specified in clause 10.1.1
INS As specified in clause 10.1.2
P1 Logical channel operation code, see table 11.19
P2 See table 11.20
Lc Not present
Data Not present
Le Not present or length of expected data

Table 11.19: Coding of P1

b8 b7 b6 b5 b4 b3 b2 b1 Meaning
0 0 0 0 0 0 0 0 Open logical channel
1 0 0 0 0 0 0 0 Close logical channel
NOTE: All other values are RFU.

Table 11.20: Coding of P2

b8 b7 b6 b5 b4 b3 b2 b1 Meaning
0 0 0 0 0 0 0 0 If P1='00': Logical channel to be internally assigned by the UICC
If P1 '00': reserved
0 0 0 0 0 0 0 1 Logical channel number 1
0 0 0 0 0 0 1 0 Logical channel number 2
0 0 0 0 0 0 1 1 Logical channel number 3
0 0 0 - - - - - ...
0 0 0 1 0 0 1 1 Logical channel number 19
NOTE 1: All other values are RFU.
NOTE 2: Values '01', '02', '03', … '13' are valid only with P1='80'.

Response data:

Byte(s) Description Length


1 Logical channel number 1

Response data shall only be returned if the value of the parameters P1-P2 of the command is '0000'.

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

11.1.18 GET CHALLENGE

11.1.18.1 Functional description


This function is used to create a random number. The generated random number is associated with the logical channel
specified in the GET CHALLENGE command CLA. The maximum length of the random number returned by the
UICC is specified by the Le parameter in the command parameters data.

The quality of the random number generated by this command is determined by the application and is outside the scope
of the present document.

The generated random number may be used internally by the UICC in procedures specified by the application. The
validity of the random number is at least for the next command, on the same logical channel, following the GET
CHALLENGE command if not specified differently by the application. The random number referenced is always the
latest generated on the logical channel specified in the CLA by the command referencing the usage of a generated
random number.

Input:

• None.

Output:

• Random number.

11.1.18.2 Command parameters and data


Code Value
CLA As specified in clause 10.1.1
INS As specified in clause 10.1.2
P1 '00'
P2 '00'
Lc Not present
Data Not present
Le Maximum length of response data
Response data:

Byte(s) Description Length


1 to Lr Random number Lr

11.1.19 TERMINAL CAPABILITY

11.1.19.1 Functional description


This function is used to inform the UICC about terminal capability.

As a precondition to all the provisions in subsequent clauses, this command shall not be issued by the terminal if the
Terminal capability mechanism is not indicated inside the supported system command field; see clause 11.1.1.4.6.8.

Input:

• Terminal capabilities.

Output:

• None.

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

11.1.19.2 Command parameters and data

11.1.19.2.0 Base coding


Code Value
CLA As specified in clause 10.1.1
INS As specified in clause 10.1.2
P1 '00'
P2 '00'
Lc Length of the subsequent data field
Data Command data
Le Not present
Command data:

The command data are organized inside the constructed TLV object for terminal capability information:

Byte(s) Description Length


1 Terminal capability constructed Tag = 'A9' 1
2 Length 1
3 to 2+X Proprietary data, constructed X

The following TLV objects are defined for the terminal capability template (tag 'A9'). Additional private TLV objects
(bits b7 and b8 of the first byte of the tag set to 1) may be present after the TLV objects defined in this clause.

Description Tag Clause


Terminal power supply '80' 11.1.19.2.1
Extended logical channels terminal support '81' 11.1.19.2.2
Additional interfaces support '82' 11.1.19.2.3
Additional Terminal capability indications '83' 11.1.19.2.4
related to eUICC

11.1.19.2.1 Terminal power supply


Terminals shall issue the TERMINAL CAPABILITY command with a terminal power supply TLV object during a new
card session before the first application selection.

The terminal power supply is indicated by tag '80' within the constructed TLV object. The first byte indicates the actual
used supply voltage class. The coding of this byte is the same as for the supply voltage class indication in the ATR, see
table 6.1. Unused bits are set to RFU. The second byte indicates the maximum available power supply in mA for the
actual used supply voltage class.

Byte(s) Description Value Length


1 Tag '80' 1
2 Length '03' 1
3 Actual used Supply voltage class 1
4 Maximum available power supply of the terminal '0A' to '3C' 1
5 Actual used clock frequency '0A' to 'FF' 1

The actual used clock frequency is coded in Hexadecimal format. The resolution is 0,1 MHz, i.e. '0A' is 1 MHz and 'FE'
is 25,4 MHz. The value 'FF' indicates that no clock frequency is indicated.

For the Maximum available power supply of the terminal, it is advised that terminal only uses values corresponding to
10 mA, 30 mA and 60 mA.

11.1.19.2.2 Extended logical channels terminal support


Terminals supporting more logical channels than the standard logical channels shall indicate it to the UICC by issuing
the TERMINAL CAPABILITY command with an extended logical channels terminal support TLV object during a new
card session before the first application selection.

ETSI

You might also like