7 Data download to SIM

3GPP51.014Release 4Specification of the SIM Application Toolkit for the Subscriber Identity Module - Mobile Equipment (SIM - ME) interfaceTS

7.1 SMS-PP data download

7.1.1 Procedure

If the service "data download via SMS Point-to-point" is allocated and activated in the SIM Service Table (see TS 51.011 [20]), then the ME shall follow the procedure below:

– When the ME receives a Short Message with:

protocol identifier = SIM data download, and

data coding scheme = class 2 message,

or

when the ME receives a Short Message with:

protocol identifier=ANSI-136 R-DATA (see 3G TS 23.040 [30]) and

data coding scheme = class 2 message, and the ME chooses not to handle the message ( e.g. MEs not supporting EGPRS over TIA/EIA-136 do not need to handle the message),

then the ME shall pass the message transparently to the SIM using the ENVELOPE (SMS-PP DOWNLOAD) command as defined below.

– The ME shall not display the message, or alert the user of a short message waiting.

– The ME shall wait for an acknowledgement from the SIM.

– If the SIM responds with ’90 00′, the ME shall acknowledge the receipt of the short message to the network using an RP-ACK message.

– If the SIM responds with ’93 00′, the ME shall either retry the command or send back an RP-ERROR message to the network with the TP-FCS value indicating ‘SIM Application Toolkit Busy’ (see TS 23.040 [6]).

– If the SIM responds with ‘9F XX’, the ME shall use the GET RESPONSE command to get the response data. The response data from the SIM will be supplied by the ME in the TP-User-Data element of the RP-ACK message it will send back to the network (see TS 23.040 [6] and TS 24.011 [9]). The values of protocol identifier and data coding scheme in RP-ACK shall be as in the original message.

  • If the SIM responds with ‘6F XX’, the ME shall send back an RP-ERROR message to the network with the TP-FCS value indicating "SIM data download error". The values of protocol identifier and data coding scheme in RP-ERROR shall be as in the original message.

NOTE: The preferred way for a SIM application to indicate a Data Download error is by using the specific code ‘9E XX’ as desribed in the following bullet point.

– If the ME has indicated in TERMINAL PROFILE that it supports the status word ‘9E XX’ and if the SIM responds with ‘9E XX’, the ME shall use the GET RESPONSE command to get the response data. The response data from the SIM will be supplied by the ME in the TP-User-Data element of the RP-ERROR message it will send back to the network (see TS 23.040 [6] and TS 24.011 [9]). The values of protocol identifier and data coding scheme in RP-ERROR shall be as in the original message. The value of the TP-FCS element of the RP-ERROR shall be "SIM data download error".

If the service "data download via SMS-PP" is not allocated and activated in the SIM Service Table, and the ME receives a Short Message with the protocol identifier = SIM data download and data coding scheme = class 2 message, then the ME shall store the message in EFSMS in accordance with TS 51.011 [20].

NOTE: MEs not supporting SIM Application Toolkit are likely to store data download messages in EFSMS, as if they were normal short messages.

7.1.2 Structure of ENVELOPE (SMS-PP DOWNLOAD)

Direction: ME to SIM

The command header is specified in TS 51.011 [20].

Command parameters/data:

Description

Section

M/O

Min

Length

SMS-PP download tag

13.1

M

Y

1

Length (A+B+C)

M

Y

1 or 2

Device identities

12.7

M

Y

A

Address

12.1

O

N

B

SMS TPDU (SMS-DELIVER)

12.13

M

Y

C

– Device identities: the ME shall set the device identities to:

Source: Network

Destination: SIM

– Address: The address data object holds the RP_Originating_Address of the Service Centre (TS‑Service-Centre-Address), as defined in TS 24.011 [9].

Response parameters/data:

It is permissible for the SIM not to provide response data. If the SIM responds with ’90 00′ then no response parameter shall be available, otherwise the SIM shall respond with ‘9F XX’ or ‘9E XX’ and the following data is returned:

Byte(s)

Description

Length

1‑X (X≤128)

SIM Acknowledgement

X

7.2 Cell Broadcast data download

7.2.1 Procedure

If the service "data download via SMS-CB" is allocated and activated in the SIM Service Table (see TS 51.011 [20]), then the ME shall follow the procedure below:

– When the ME receives a new Cell Broadcast message, the ME shall compare the message identifier of the Cell Broadcast message with the message identifiers contained in EFCBMID.

– If the message identifier is found in EFCBMID, the cell broadcast page is passed to the SIM using the ENVELOPE (CELL BROADCAST DOWNLOAD) command, defined below. The ME shall not display the message.

  • If the message identifier of the incoming cell broadcast message is not found in EFCBMID, then the ME shall determine if the message should be displayed, by following the procedures in TS 23.041 [7] and TS 51.011 [20].
  • If the SIM responds with ’93 00′, the ME shall consider that the Cell Broadcast page has not been delivered successfully. The ME may retry to deliver the same Cell Broadcast page.

The ME shall identify new cell broadcast pages by their message identifier, serial number and page values.

7.2.2 Structure of ENVELOPE (CELL BROADCAST DOWNLOAD)

Direction: ME to SIM

The command header is specified in TS 51.011 [20].

Command parameters/data:

Description

Section

M/O

Min

Length

Cell Broadcast Download tag

13.1

M

Y

1

Length (A+B)

M

Y

1 or 2

Device identities

12.7

M

Y

A

Cell Broadcast page

12.5

M

Y

B

– Device identities: the ME shall set the device identities to:

Source: Network

Destination: SIM

Response parameters/data: None for this type of ENVELOPE command.