27.11 Exchange protocol tests

3GPP51.010-1Mobile Station (MS) conformance specificationPart 1: Conformance specificationTS

27.11.1 Character transmission

27.11.1.1 Bit/character duration during the transmission from the ME to the SIM

27.11.1.1.1 Definition

Data is transmitted serially across the SIM/ME interface. A character comprises:

– the start bit;

– eight data bits;

– the parity bit.

27.11.1.1.2 Conformance requirement

The bit/character duration and the delay between two consecutive characters (between start leading edges) sent by the ME shall be in the range specified.

3GPP TS 11.11, subclause 5.9.

27.11.1.1.3 Test purpose

To verify the timing during the transmission from the ME to the SIM.

27.11.1.1.4 Method of test

27.11.1.1.4.1 Initial conditions

The ME is connected to the SIM simulator, and powered on.

27.11.1.1.4.2 Procedure

A number of characters are transmitted from the ME to the SIM simulator. The SIM simulator shall measure the bit/character duration and the delay between two consecutive characters for all characters transmitted by the ME.

27.11.1.1.5 Test requirement

The timing shall be in the range specified.

27.11.1.2 Bit/character duration during the transmission from the SIM simulator to the ME

27.11.1.2.1 Definition

Data is transmitted serially across the SIM/ME interface. A character comprises:

– the start bit;

– eight data bits;

– the parity bit.

27.11.1.2.2 Conformance requirement

Responses with maximum and minimum bit/character duration times shall be accepted by the ME.

3GPP TS 11.11, subclause 5.9.

27.11.1.2.3 Test purpose

To verify the acceptance of maximum and minimum bit/character duration during the transmission from the SIM to the ME.

27.11.1.2.4 Method of test

27.11.1.2.4.1 Initial conditions

The ME is connected to the SIM simulator, and powered on.

27.11.1.2.4.2 Procedure

The SIM simulator shall send responses with the maximum and minimum bit/character durations specified in 3GPP TS 11.11.

27.11.1.2.5 Test requirement

The ME shall accept the response and act accordingly.

27.11.1.3 Inter-character delay

27.11.1.3.1 Definition

The inter-character delay is defined as the time between the start edge of a character and the start edge of the previous character. It is given by:

– the length of a character plus an extra guard time of N etu during transmission from the ME to the SIM. N is indicated in ATR character TC1;

– the work waiting time during transmission from the SIM to the ME.

27.11.1.3.2 Conformance requirement

1) If TC1 is 0 or 255 the ME shall work with the SIM.

2) If TC1 is not 0 or 255 the ME shall repeat the reset at least 2 times before it rejects the SIM.

3) The ME shall accept characters sent by the SIM with the work waiting time within the specified range.

3GPP TS 11.11, clause 5.9.

27.11.1.3.3 Test purpose

1) To verify the correct evaluation of the character TC1 indicated in the ATR.

2) To verify that the ME accepts the minimum and maximum work waiting time during the transmission from the SIM to the ME.

27.11.1.3.4 Method of test

27.11.1.3.4.1 Initial conditions

The ME is connected to the SIM simulator, and powered on.

27.11.1.3.4.2 Procedure

a) Upon reception of a reset the SIM simulator transmits the ATR as follows:

a.1) N = 0.

character name

content

meaning

TS

3B

direct convention

T0

40

TA1, TB1, TD1 not transmitted, TC1 transmitted, no historical characters

TC1

00

N = 0

a.2) N = 255.

character name

content

meaning

TS

3B

direct convention

T0

40

TA1, TB1, TD1 not transmitted, TC1 transmitted, no historical characters

TC1

FF

N = 255

a.3) N = Value other than 0 and 255.

character name

content

meaning

TS

3B

direct convention

T0

40

TA1, TB1, TD1 not transmitted, TC1 transmitted, no historical characters

TC1

00 < XX < FF

0 < N < 255

b) The SIM simulator transmits with a work-waiting-time of 12 etu.

c) The SIM simulator transmits with a work-waiting-time of 9 600 etu.

27.11.1.3.5 Test requirement

In steps a.1) and a.2) the ME shall work with the SIM simulator.

In step a.3) the ME shall repeat the reset at least 2 times and then reject the SIM simulator.

In steps b) and c) the ME shall work with the SIM simulator.

27.11.1.4 Error handling during the transmission from the ME to the SIM

27.11.1.4.1 Definition

Error checking is done for each character transmitted by making use of the parity bit. If the SIM detects a parity error, an error signal is sent to the ME, and the ME retransmits that character.

27.11.1.4.2 Conformance requirement

Subsequent to Answer to Reset and the protocol type selection, the error detection and character repetition procedure specified in GSM 11.11 is mandatory for transmission on the basis of T = 0. On receipt of an error signal, the ME shall repeat the previously transmitted character.

3GPP TS 11.11, subclause 5.10.

27.11.1.4.3 Test purpose

To verify the error handling during the transmission from the ME to the SIM.

27.11.1.4.4 Method of test

27.11.1.4.4.1 Initial conditions

The ME is connected to the SIM simulator, and powered on.

27.11.1.4.4.2 Procedure

The SIM simulator shall transmit an error signal in response to a received character in accordance with ISO 7816‑3, subclause 6.3.3.

27.11.1.4.5 Test requirement

The ME shall repeat the character in accordance with ISO 7816‑3, subclause 6.3.3.

27.11.1.5 Error handling during transmission from the SIM to the ME

27.11.1.5.1 Definition

Error checking is done for each character transmitted by making use of the parity bit. If the ME detects a parity error, an error signal is sent to the SIM, and the SIM retransmits that character.

27.11.1.5.2 Conformance requirement

Subsequent to Answer to Reset and the protocol type selection, the error detection and character repetition procedure specified in GSM 11.11 is mandatory for transmission on the basis of T = 0. On receipt of a response with a parity error, the ME shall send an error signal and expect the previously transmitted character to be repeated.

3GPP TS 11.11, subclause 5.10.

27.11.1.5.3 Test purpose

To verify the error handling during the transmission from the SIM to the ME.

27.11.1.5.4 Method of test

27.11.1.5.4.1 Initial conditions

The ME is connected to the SIM simulator, and powered on.

27.11.1.5.4.2 Procedure

The SIM simulator shall send a response with a parity error and check that the ME performs error handling in accordance with ISO/IEC 7816‑3, subclause 6.3.3.

27.11.1.5.5 Test requirement

The ME shall send an error signal in accordance with ISO/IEC 7816‑3, subclause 6.3.3, and expect a repetition of the character. The ME shall correctly evaluate the character when repeated by the SIM simulator.

27.11.2 Answer to reset (RST)

27.11.2.1 Void

27.11.2.2 Acceptance of SIMs with active low RST

27.11.2.2.1 Definition

Active low RST is one possible implementation of reset, and MEs must be able to accept SIMs with active low reset.

27.11.2.2.2 Conformance requirement

The ME shall accept a SIM with active low reset by putting the RST contact to state H. The signal timing shall be in accordance with the specification.

3GPP TS 11.11, clause 5.

ISO/IEC 7816‑3, subclause 5.3.2.

27.11.2.2.3 Test purpose

To verify that the ME accepts a SIM with active low reset. The timing of the RST signal shall be in accordance with the specification.

27.11.2.2.4 Method of test

27.11.2.2.4.1 Initial conditions

The SIM simulator is configured for active low reset. The ME is connected to the SIM simulator and powered on.

27.11.2.2.4.2 Procedure

The SIM simulator measures the timing of the RST signal.

27.11.2.2.5 Test requirement

The ME shall accept the SIM simulator with active low reset. The RST signal shall be put to state H after a minimum of (400/fi)s.

27.11.2.3 Characters of the answer to reset

27.11.2.3.1 Definition

When the SIM is reset, it sends up to 33 characters to the ME, containing information which must be interpreted by the ME to ascertain the transmission protocol to be used.

27.11.2.3.2 Conformance requirement

1. The ME shall adopt the data encoding convention and initial etu time defined in the initial character TS of the ATR.

3GPP TS 11.11, subclause 5.8.

2. The ME shall be able to receive interface characters for other transmission protocols than T = 0, historical characters and a check byte, even if only T = 0 is used by the ME.

3GPP TS 11.11, subclause 5.8.1.

27.11.2.3.3 Test purpose

1. To verify that the ME adopts the appropriate data encoding convention and initial elementary time unit (etu) defined in the initial character TS of the Answer to Reset.

2. To verify that the ME accepts interface characters for transmission protocols other than T=0, historical characters and the check byte.

27.11.2.3.4 Method of test

27.11.2.3.4.1 Initial conditions

The ME is connected to the SIM (or SIM simulator).

27.11.2.3.4.2 Procedure

a) The ME is powered on

b) The SIM (or SIM simulator) sends an ATR as follows:

character name

content

meaning

TS

3B

direct convention

T0

9F

TB1, TC1 not transmitted, TA1, TD1 transmitted, 15 historical characters

TA1

11

default values F = 372, D = 1

TD1

80

TA2, TB2, TC2 not transmitted, TD2 transmitted, protocol T=0 offered

TD2

01

TA2, TB2, TC2, TD2 not transmitted, protocol T=1 offered

Ti

53 49 4D 20 53 55 42 47 52 4F 55 50 20 39 35

historical characters

TCK

4F

check byte

c) The ME is made to send further commands to the SIM (or SIM simulator) (e.g. by entering the PIN).

d) The ME is switched off and on. This time the SIM (or SIM simulator) sends an ATR as follows:

character name

content

meaning

TS

3F

inverse convention

T0

9F

TB1, TC1 not transmitted, TA1, TD1 transmitted, 15 historical characters

TA1

11

default values F = 372, D = 1

TD1

80

TA2, TB2, TC2 not transmitted, TD2 transmitted, protocol T=0 offered

TD2

01

TA2, TB2, TC2, TD2 not transmitted, protocol T=1 offered

Ti

53 49 4D 20 53 55 42 47 52 4F 55 50 20 39 35

historical characters

TCK

4F

check byte

e) The ME is made to send further commands to the SIM (e.g. by entering the PIN).

27.11.2.3.5 Test requirement

1. After step b), the ME shall work with the SIM (or SIM simulator).

2. After step d), the ME shall work with the SIM (or SIM simulator).

27.11.2.4 PPS procedure

27.11.2.4.1 Definition

The PPS procedure is required to select the standard transmission protocol if the SIM does not use this as a default.

27.11.2.4.2 Conformance requirement

If the ME receives an Answer to Reset where TA1 is not equal to "11", it shall initiate the PPS procedure as defined in 3GPP TS 11.11.

3GPP TS 11.11, subclause 5.8.2.

27.11.2.4.3 Test purpose

To verify that ME uses the PPS procedure as specified in 3GPP TS 11.11.

27.11.2.4.4 Method of test

27.11.2.4.4.1 Initial conditions

The ME is connected to the SIM (or SIM simulator).

27.11.2.4.4.2 Procedure

a) The ME is powered on.

b) The SIM (or the SIM simulator) sends an ATR as follows:

character name

content

meaning

TS

3B

direct convention

T0

10

TB1, TC1, TD1 not transmitted, TA1 transmitted, no historical characters

TA1

77

invalid values for F and D

27.11.2.4.5 Test requirement

After step b), the ME shall send to the SIM (or the SIM simulator) "FF00FF".

27.11.2.5 Reset repetition

27.11.2.5.1 Definition

If transmission errors result in the ATR being unintelligible to the ME, the ME performs the reset again. The minimum number of reset attempts is three.

27.11.2.5.2 Conformance requirement

Following receipt of a wrong ATR, the ME shall perform a reset. The ME shall not reject the SIM until at least three consecutive wrong ATRs are received.

3GPP TS 11.11, subclause 5.10.

27.11.2.5.3 Test purpose

To verify that the ME repeats the reset procedure on receipt of a wrong ATR, and does not reject the SIM unless at least three consecutive wrong ATRs are received.

27.11.2.5.4 Method of test

27.11.2.5.4.1 Initial conditions

The ME is connected to the SIM simulator.

27.11.2.5.4.2 Procedure

a) The ME is powered on.

b) The SIM simulator sends a non understandable answer to reset to the ME. (e.g. a wrong TS byte), at each reset initiated by the ME.

27.11.2.5.5 Test requirement

After step b), the ME shall repeat the reset at least two times.

27.11.2.6 Speed Enhancement

27.11.2.6.1 Definition

MEs that support speed enhancement use a specific PPS sequence to indicate the use of different transmission parameters F and D. If this PPS fails, the ME retries with standard parameters.

27.11.2.6.2 Conformance requirement

1. If speed enhancement is implemented in the ME, it is mandatory to support F=512 and D=8 (in addition to the default values F=372 and D=1).

2. If the SIM does not answer the PPS request within the initial waiting time the ME shall reset the SIM. After two failed PPS attempts using F=512 and D=8 or values indicated in TA1, (no PPS response from the SIM) the ME shall initiate PPS procedure using default values.

3. If this also fails (no PPS response from the SIM) the ME may proceed using default values without requesting PPS.

3GPP TS 11.11, subclause 5.8.3.

27.11.2.6.3 Test purpose

1. To verify that the ME supports the transmission parameters F=512 and D=8.

2. To verify that the ME resets the SIM if the SIM does not answer the PPS request within the initial waiting time and initiates a PPS procedure using default values F=372 and D=1 after the second failed PPS attempt.

3. To verify that if the ME proceeds it uses the default values without requesting PPS.

27.11.2.6.4 Method of test

27.11.2.6.4.1 Initial conditions

The ME is connected to the SIM simulator.

27.11.2.6.4.2 Procedure

Part 1:

a) The ME is powered on.

b) The SIM simulator sends an ATR as follows:

character name

content

meaning

TS

3B

direct convention

T0

10

TB1, TC1, TD1 not transmitted, TA1 transmitted, no historical characters

TA1

94

F=512, D=8

c) After receipt of the PTS Request, the SIM simulator answers with the PTS Response "FF 10 94 7B" using a work waiting time of 9600 etu (initial waiting time).

d) The ME and SIM simulator transmits with enhanced speed (F=512, D=8).

Part 2:

e) The ME is switched off and on. The SIM simulator sends an ATR as in step b).

f) After receipt of the PPS Request, the SIM simulator does not answer within the initial waiting time.

g) After being reset by the ME the SIM simulator sends an ATR as in step b)

h) After receipt of the PPS Request, the SIM simulator does not answer within the initial waiting time

i) After being reset by the ME the SIM simulator sends an ATR as in step b)

j) After receipt of the PPS Request using default values "FF 00 FF", the SIM simulator answers with the PPS Response "FF 00 FF" using a work waiting time of 9600 etu (initial waiting time).

k) The SIM simulator sends with normal speed (F=372, D=1),

Part 3:

l) The ME is switched off and on. The SIM simulator sends an ATR as in step b).

m) After receipt of the PPS Request, the SIM simulator does not answer within the initial waiting time.

n) After being reset by the ME the SIM simulator sends an ATR as in step b)

o) After receipt of the PPS Request, the SIM simulator does not answer within the initial waiting time

p) After being reset by the ME the SIM simulator sends an ATR as in step b)

q) After receipt of the PPS Request using default values "FF 00 FF", the SIM simulator does not answer within the initial waiting time

r) The ME may reset the SIM

s) After being reset by the ME the SIM simulator sends an ATR as in step b)

t) If the ME reset the SIM in step p) it shall not send a PPS request

u) The SIM simulator sends with normal speed (F=372, D=1),

Note: Part 3 is optional for ME27.11.2.6.5 Test requirement

After step b) the ME shall send to the SIM simulator the PPS Request "FF 10 94 7B".

After step c) the ME shall work with the SIM simulator.

After step e) the ME shall send to the SIM simulator the PPS Request "FF 10 94 7B" .

After step f) the ME shall reset the SIM after the initial waiting time has expired.

After step g) the ME shall send to the SIM simulator the PPS Request "FF 10 94 7B".

After step h) the ME shall reset the SIM after the initial waiting time has expired.

After step i) the ME shall send to the SIM simulator the PPS Request "FF 00 FF".

After step m) the ME may reset the SIM after the initial waiting time has expired.

After step t) the ME shall not send a PPS request to the SIM simulator but continue to work with the SIM using default values (F=372, D=1).

27.11.3 Command processing, procedure bytes

27.11.3.1 Definition

The procedure bytes ACK, NULL, and SW1 are sent from the SIM to the ME, and give the ME an acknowledgement for the previous instruction, information concerning transfer of data and the card status at the end of the command.

27.11.3.2 Conformance requirement

On the basis of protocol T = 0, the ME shall correctly use the different modes of data transmission defined in ISO/IEC 7816‑3, subclause 8.2.2.

3GPP TS 11.11, clause 5

ISO/IEC 7816: 1990, subclause 8.2.2.

27.11.3.3 Test purpose

To verify that the ME uses correctly the different modes of data transmission.

27.11.3.4 Method of test

27.11.3.4.1 Initial conditions

The ME is connected to the SIM simulator and powered on.

27.11.3.4.2 Procedure

a) The ME is made to initiate a VERIFY CHV command.

b) The SIM simulator answers the first 3 bytes with ACK=INS complemented.

c) The SIM simulator answers the next data byte with NULL (NULL="60").

d) The SIM simulator then sends ACK=INS. This byte is sent when the elapsed time since step b) is greater than the work waiting time.

e) The SIM simulator answers the transmission of the rest of the data with NULL.

f) The SIM simulator then sends SW1 and SW2, indicating correct execution of the command ("90" and "00" for SW1 and SW2 respectively). These bytes are sent when the elapsed time since step d) is greater than the work waiting time.

27.11.3.5 Test requirement

The command shall be executed correctly.