Digital cellular telecommunications system (Phase 2) (GSM); Use of Data Terminal Equipment - Data Circuit terminating Equipment (DTE - DCE) interface for Short Message Service (SMS) and Cell Broadcast Service (CBS) (GSM 07.05)

RE/SMG-040705PR4

Digitalni celični telekomunikacijski sistem (faza 2) – Uporaba vmesnika za podatkovno terminalsko opremo –opremo za zaključevanje podatkovnih vodov(DTE-DCE) za storitev kratkih sporočil (SMS) in storitev celične radiodifuzije (GSM 07.05)

General Information

Status
Published
Publication Date
14-Oct-1996
Technical Committee
Current Stage
12 - Completion
Due Date
25-Oct-1996
Completion Date
15-Oct-1996
Standard
ETS 300 585 E4:2003
English language
70 pages
sale 10% off
Preview
sale 10% off
Preview
e-Library read for
1 day

Standards Content (Sample)


SLOVENSKI STANDARD
01-december-2003
'LJLWDOQLFHOLþQLWHOHNRPXQLNDFLMVNLVLVWHP ID]D ±8SRUDEDYPHVQLND]D
SRGDWNRYQRWHUPLQDOVNRRSUHPR±RSUHPR]D]DNOMXþHYDQMHSRGDWNRYQLKYRGRY
'7('&( ]DVWRULWHYNUDWNLKVSRURþLO 606 LQVWRULWHYFHOLþQHUDGLRGLIX]LMH *60

Digital cellular telecommunications system (Phase 2) (GSM); Use of Data Terminal
Equipment - Data Circuit terminating Equipment (DTE - DCE) interface for Short
Message Service (SMS) and Cell Broadcast Service (CBS) (GSM 07.05)
Ta slovenski standard je istoveten z: ETS 300 585 Edition 4
ICS:
33.070.50 Globalni sistem za mobilno Global System for Mobile
telekomunikacijo (GSM) Communication (GSM)
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

EUROPEAN ETS 300 585
TELECOMMUNICATION October 1996
STANDARD Fourth Edition
Source: ETSI TC-SMG Reference: RE/SMG-040705PR4
ICS: 33.060.50
Key words: Digital cellular telecommunications system, Global System for Mobile communications (GSM)
R
GLOBAL SYSTEM FOR
MOBILE COMMUNICATIONS
Digital cellular telecommunications system (Phase 2);
Use of Data Terminal Equipment - Data Circuit terminating
Equipment (DTE - DCE) interface for
Short Message Service (SMS) and Cell Broadcast Service (CBS)
(GSM 07.05)
ETSI
European Telecommunications Standards Institute
ETSI Secretariat
Postal address: F-06921 Sophia Antipolis CEDEX - FRANCE
Office address: 650 Route des Lucioles - Sophia Antipolis - Valbonne - FRANCE
X.400: c=fr, a=atlas, p=etsi, s=secretariat - Internet: secretariat@etsi.fr
Tel.: +33 4 92 94 42 00 - Fax: +33 4 93 65 47 16
Copyright Notification:
No part may be reproduced except as authorized by written permission. The copyright and the
foregoing restriction extend to reproduction in all media.
© European Telecommunications Standards Institute 1996. All rights reserved.

Page 2
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
Whilst every care has been taken in the preparation and publication of this document, errors in content,
typographical or otherwise, may occur. If you have comments concerning its accuracy, please write to
"ETSI Editing and Committee Support Dept." at the address shown on the title page.

Page 3
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
Contents
Foreword .7
0 Scope.9
0.1 Normative references.10
0.2 Definitions and abbreviations .10
1 Reference configuration .11
1.1 V.24 Interface Circuits .11
1.1.1 Circuit definitions for the SMS Block mode.11
1.1.2 Circuit definitions for the SMS Text and PDU modes.12
2 SMS Block Mode.13
2.1 Beginning and ending of SMS/CBS Block Mode.13
2.1.1 Beginning SMS/CBS Block Mode.13
2.1.2 Returning from SMS/CBS Block Mode To Default Mode.13
2.2 Protocol description.14
2.3 Requesting messages already held in the Mobile Termination .15
2.3.1 Requesting List Of Messages.15
2.3.2 Requesting Transfer Of Messages.15
2.3.2.1 Requesting Transfer Of A Specific Message.15
2.3.2.2 Requesting Transfer Of All Messages .16
2.3.3 Requesting Diversion Of Incoming Messages.16
2.3.3.1 Requesting SMS Messages.16
2.3.3.2 Requesting CBS Messages .17
2.3.3.3 Requesting indication of message arrival.17
2.3.4 Requesting Transfer Into Mobile Termination .18
2.3.5 Requesting Deletion Of Messages .18
2.4 Message functional definitions and contents.19
2.4.1 Commands Issued By The Terminal Equipment.19
2.4.1.1 List Request.20
2.4.1.2 Get Message .20
2.4.1.3 Get First Message.20
2.4.1.4 Get Next Message.20
2.4.1.5 Transfer Inc SMS.20
2.4.1.6 Indicate Inc SMS .21
2.4.1.7 Transfer Inc CBS.21
2.4.1.8 Insert SMS.21
2.4.1.9 Delete message.21
2.4.1.10 Unable to process.22
2.4.1.11 End SMS Mode .22
2.4.1.12 Acknowledge Message .22
2.4.2 Responses/Indications Issued By The MT .22
2.4.2.1 Message List.23
2.4.2.2 Message.23
2.4.2.3 Get Message Failure.23
2.4.2.4 Inc Message.24
2.4.2.5 Message Arrived.24
2.4.2.6 Insert SMS Complete.24
2.4.2.7 Insert SMS Failure.24
2.4.2.8 Delete Message Complete .25
2.4.2.9 Delete Message Failure.25
2.4.2.10 Unable To Process.25
2.4.2.11 End SMS Mode .25
2.4.2.12 Request Confirmed .26

Page 4
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
2.5 General message format and information elements coding.27
2.5.1 Message Type .27
2.5.2 Other Information Elements.28
2.5.2.1 Short Message Reference .28
2.5.2.2 SMS Transfer Type.29
2.5.2.3 Indication Type .30
2.5.2.4 Insert Type.31
2.5.2.5 Short Message Index .32
2.5.2.6 Short Message Data .34
2.5.2.7 Cause .36
2.5.2.8 Index Count .37
2.5.2.9 CBS Transfer Type .37
2.5.2.10 Page Index.38
2.5.2.11 Last Short Message.38
2.5.2.12 Confirm Type.39
2.5.2.13 TP-Failure Cause.40
3 Text Mode.41
3.1 Parameter Definitions.41
3.2 General Configuration Commands.43
3.2.1 Select Message Service +CSMS .43
3.2.2 Preferred Message Storage +CPMS.44
3.2.3 Message Format +CMGF .45
3.2.4 Enter SMS Block Mode Protocol +CESP.45
3.2.5 Message Service Failure Result Code +CMS ERROR.46
3.2.6 Informative Examples.46
3.3 Message Configuration Commands.47
3.3.1 Service Centre Address +CSCA .47
3.3.2 Set Text Mode Parameters +CSMP.47
3.3.3 Show Text Mode Parameters +CSDH .48
3.3.4 Select Cell Broadcast Message Types +CSCB.48
3.3.5 Save Settings +CSAS .49
3.3.6 Restore Settings +CRES.49
3.3.7 Informative Examples.49
3.4 Message Receiving and Reading Commands.50
3.4.1 New Message Indications to TE +CNMI .50
3.4.2 List Messages +CMGL .53
3.4.3 Read Message +CMGR.53
3.4.4 Informative Examples.54
3.5 Message Sending and Writing Commands.55
3.5.1 Send Message +CMGS .55
3.5.2 Send Message from Storage +CMSS .56
3.5.3 Write Message to Memory +CMGW .57
3.5.4 Delete Message +CMGD .57
3.5.5 Send Command +CMGC.57
3.5.6 Informative Examples.58
4 PDU Mode .60
4.1 List Messages +CMGL .60
4.2 Read Message +CMGR.60
4.3 Send Message +CMGS.61
4.4 Write Message to Memory +CMGW.61
4.5 Send Command +CMGC.62
Annex A (Normative): Character Set Conversions for SMS Text Mode.63
Annex B (Informative): Example of processing a data block.66
B.1 Example state diagrams for the block receiver .66

Page 5
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
B.2 Example of coding and decoding a data block.66
History .70

Page 6
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
Blank page
Page 7
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
Foreword
This fourth edition European Telecommunication Standard (ETS) has been produced by the Special Mobile
Group (SMG) Technical Committee (TC) of the European Telecommunications Standards Institute (ETSI).
This ETS defines a protocol for use of the V series DTE/DCE interface over the R reference point for SMS
and CBS procedures within the Digital cellular telecommunications system (Phase 2).
This ETS correspond to GSM 07.05 version 4.7.0.
The specification from which this ETS has been derived was originally based on CEPT documentation,
hence the presentation of this ETS may not be entirely in accordance with the ETSI/PNE rules.
Reference is made within this ETS to GSM Technical Specifications (GSM-TS) (note).
NOTE: TC-SMG has produced documents which give the technical specifications for the
implementation of the Digital cellular telecommunications system. Historically, these
documents have been identified as GSM Technical Specifications (GSM-TSs). These
TSs may have subsequently become I-ETSs (Phase 1), or ETSs (Phase 2), whilst
others may become ETSI Technical Reports (ETRs). GSM-TSs are, for editorial
reasons, still referred to in current GSM ETSs.
Transposition dates
Date of adoption of this ETS: 4 October 1996
Date of latest announcement of this ETS (doa): 31 January 1997
Date of latest publication of new National Standard
or endorsement of this ETS (dop/e): 31 July 1997
Date of withdrawal of any conflicting National Standard (dow): 31 July 1997

Page 8
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
Blank page
Page 9
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
0 Scope
This European Telecommunication Standard (ETS) defines three interface protocols for control of SMS
functions within a GSM mobile telephone from a remote terminal via an asynchronous interface.
Section 2 defines a binary protocol ("Block Mode"). The protocol includes error protection and is suitable
for use where the link may not be completely reliable. It will be of particular use where control of remote
devices is required. Efficient transfer of binary encoded user data is possible.
Section 3 defines a character-based interface based on "AT" commands ("Text Mode"). This mode is
suitable for unintelligent terminals or terminal emulators, and for application software built on command
structures like those defined in V.25ter. Some of the commands defined in Section 3 will also be useful for
implementations of Section 2 and/or Section 4, for example enabling an indication of incoming SMS
messages.
Section 4 defines a character-based interface with hex-encoded binary transfer of message blocks ("PDU
Mode"). This mode is suitable for software drivers based on AT command structures which do not
understand the content of the message blocks and can only pass them between the MT and "upper level"
software resident in the TE.
In all three modes, the terminal is considered to be in control for SMS/CBS transactions.
This specification considers the mobile termination to be a single entity. Other GSM Technical
Specifications describe the split of functionality between the mobile equipment and SIM.
The three "modes" referred to above, are represented in figure 0.1/GSM 07.05.
The "Block mode" is a self contained mode in its own right, and when entered, control will remain within
that mode until the procedures to exit the mode are executed, after which control is returned to the V.25ter
"command" state or "on-line command" state.
The "Text" and "PDU" modes are not in themselves V.25ter states but are simply sets of commands which
will operate in either the V.25ter "command" state or "on-line command" state. The "Text" and "PDU"
modes are transitory states and after each operation, control is automatically returned to the V.25ter
"command" state or "on-line command" state. Whilst in the V.25ter command state, the MS is available to
handle incoming and outgoing calls such as Data or Facsimile.
V.25ter
"com m and" state
and "on-line com m and" state
SM S SM S
Text PDU
Mode Mode
SM S Block Mode
Figure 0.1/GSM 07.05: Block, Text and PDU modes

Page 10
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
0.1 Normative references
This ETS incorporates by dated and undated reference, provisions from other publications. These
normative references are cited at the appropriate places in the text and the publications are listed
hereafter. For dated references, subsequent amendments to or revisions of any of these publications apply
to this ETS only when incorporated in it by amendment or revision. For undated references, the latest
edition of the publication referred to applies.
[1] GSM 01.04 (ETR 100): "Digital cellular telecommunication system (Phase 2);
Abbreviations and acronyms".
[2] GSM 03.38 (ETS 300 628): "Digital cellular telecommunication system
(Phase 2); Alphabet and language specific information".
[3] GSM 03.40 (ETS 300 536): "Digital cellular telecommunication system
(Phase 2); Technical realization of the Short Message Service (SMS) Point to
Point (PP)".
[4] GSM 03.41 (ETS 300 537): "Digital cellular telecommunication system
(Phase 2); Technical realization of Short Message Service Cell Broadcast
(SMSCB)".
[5] GSM 04.08 (ETS 300 557): "Digital cellular telecommunication system
(Phase 2); Mobile radio interface layer 3 specification".
[6] GSM 04.11 (ETS 300 559): "Digital cellular telecommunication system
(Phase 2); Point-to-Point (PP) Short Message Service (SMS) support on mobile
radio interface".
[7] GSM 04.12 (ETS 300 560): "Digital cellular telecommunication system
(Phase 2); Short Message Service Cell Broadcast (SMSCB) support on the
mobile radio interface".
[8] GSM 07.01 (ETS 300 582): "Digital cellular telecommunication system
(Phase 2); General on Terminal Adaptation Functions (TAF) for Mobile Stations
(MS)".
[9] GSM 07.07 (ETS 300 642): "Digital cellular telecommunication system
(Phase 2); AT command set for GSM Mobile Equipment (ME)".
[10] GSM 11.11 (ETS 300 608): "Digital cellular telecommunication system
(Phase 2); Specification of the Subscriber Identity Module - Mobile Equipment
(SIM - ME) interface".
[11] CCITT Recommendation V.25ter: "Serial Asynchronous Automatic Dialling And
Control".
[12] CCITT Recommendation V.24: "List of definitions for interchange circuits
between data terminal equipment (DTE) and data circuit-terminating equipment".
[13] CCITT Recommendation E.164: "Numbering plan for the ISDN era".
[14] CCITT Recommendation E.163: "Numbering plan for the international telephone
service".
0.2 Definitions and abbreviations
Abbreviations used in this specification are listed in GSM 01.04 [1].

Page 11
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
1 Reference configuration
�����������������������02%,/(�67$7,21��������������������!
‚¶¶¶¶¶¶¶¶¶¶¶¶¶¶„��������������������������‚¶¶¶¶¶¶¶¶¶¶¶¶¶¶„
•��������������•��������������������������•��������������•
•��02%,/(������•��������������������������•��������������•
•�(48,30(17����•��������������������������•�7(50,1$/�����•
…¶¶¶¶¶¶„�������…¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶‰�(48,30(17����•
•������•�������•��’&(�’7(�,17(5)$&(�������•��������������•
•6,0���•�������•��������������������������•��������������•
”¶¶¶¶¶¶¿¶¶¶¶¶¶¶»��������������������������”¶¶¶¶¶¶¶¶¶¶¶¶¶¶»
02%,/(�7(50,1$7,21��07��
Figure 1: Reference configuration
The mobile termination consists of the mobile equipment (ME) and the SIM. Messages may be stored in
either, but this specification does not distinguish between messages stored in the SIM or in the ME. The
management of message storage in the two parts of the mobile termination is a matter for the mobile
termination implementation.
1.1 V.24 Interface Circuits
The operation of the CCITT V.24 blue book interface circuits for SMS is shown in table 1.1/GSM 07.05.
Table 1.1/GSM 07.05: Use of V.24 interface circuits
V.24 CIRCUIT DESCRIPTION TE to MT MT to TE
CT102 signal ground x x
CT103 TXD x
CT104 RXD x
CT105 RTS x
CT106 CTS x
CT107 DSR x
CT108.2 DTR x
CT109 DCD x
NOTE: CT105 at the TE is connected to CT133 at the MT
1.1.1 Circuit definitions for the SMS Block mode
CT103
All commands from the TE to the MT are transferred across this circuit. Inband flow control is not
permitted during Block Mode.
CT104
All responses/indications from the MT to the TE are transferred across this circuit. Inband flow control is
not permitted during Block Mode.

Page 12
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
CT105
This circuit allows the TE to flow control the MT when in the Block Mode and at other times if hardware
flow control is enabled.
CT106
This circuit allows the MT to flow control the TE when in the Block Mode and at other times if hardware
flow control is enabled.
CT107
This circuit shall be set to the ON condition before entry into the Block Mode, and shall remain in the ON
condition during Block Mode. If the TE detects that this circuit returns to the OFF condition during the block
mode then the TE shall return CT108.2 to the OFF condition and exit the Block Mode.
CT108.2
This circuit shall be set in the ON condition before the AT+CESP command is sent from the TE to begin the
Block Mode, and shall be maintained in the ON condition during the Block Mode. It shall be returned to the
OFF condition after the command "END SMS MODE" has been accepted and acknowledged by the MT. If
the MT detects that this circuit returns to the OFF condition during the Block Mode then the MT shall exit
the Block Mode.
CT109
This circuit shall be set to the ON condition before entry into the Block Mode and remain in the ON
condition during the Block Mode. If the TE detects that this circuit returns to the OFF condition during the
Block Mode then the TE shall return CT108.2 to the OFF condition and shall exit the Block Mode.
1.1.2 Circuit definitions for the SMS Text and PDU modes
Only circuits CT102, CT103 and CT104 are mandatory for the Text and PDU modes. The functionality and
operation of other circuits shall be in accordance with V.25ter.

Page 13
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
2 SMS Block Mode
2.1 Beginning and ending of SMS/CBS Block Mode
2.1.1 Beginning SMS/CBS Block Mode
As described in TS GSM 07.01, the DTE/DCE interface is normally associated with the terminal adaptation
function (TAF), if such a function is available. When no data connection is in progress, and the terminal
equipment wishes to enter SMS/CBS mode, the command "AT+CESP" shall be issued by the TE through
the DTE/DCE interface requesting that the Block mode protocol described in this specification is to be
used. The syntax of this command is further described in section 3.2.4 later. The syntax for these
commands is derived from V.25ter, i.e. the command is encoded as an IA5 character string together with
delimiters as described in V.25ter.
Upon receipt of this command, the mobile termination shall respond as follows:
If the mobile termination supports SMS/CBS block mode commands, responses and indications as
described in this technical specification, it shall respond with "OK" and enter the SMS/CBS mode.
If the mobile termination does not support SMS/CBS block mode commands, responses and
indications as described in this technical specification, it shall respond with "ERROR" and remain in
the current mode.
If the SMS/CBS block mode command is accepted by the mobile termination, then all further commands,
responses and indications shall be as defined in section 2 of this technical specification. These SMS/CBS
mode commands, responses and indications use 8-bit encoded data and not IA5 characters.
2.1.2 Returning from SMS/CBS Block Mode To Default Mode
When the terminal equipment wishes to return to default mode from SMS/CBS mode, it shall issue the
command "END SMS MODE", described in section 2.4.1.11. The mobile termination shall respond with
"OK" to indicate that the DTE/DCE interface has returned to default mode. The TE shall change back to
default mode whether or not such a response is received.
The TE may also indicate that it has exit from the SMS/CBS mode through the use of CT 108/2 (see
section 1.1)
If an incoming data call arrives while the DTE/DCE interface is set to SMS/CBS mode, then the mobile
termination may autonomously issue the "END SMS MODE" indication (section 2.4.2.11) and revert to
default mode in order to connect the data call through the TAF.
The MT may exit from SMS/CBS mode autonomously if the power to the MT is switched off and then on
again. In addition, the MT manufacturer may provide MMI to change the mode back to the default mode. In
the latter case, the MT shall issue the "END SMS MODE" indication (section 2.4.2.11) and exit the
SMS/CBS mode immediately.
The MT may also indicate that it has exit from the SMS/CBS mode through the use of CT 107 and CT 109
(see section 1.1).
A BREAK condition in either direction at the DTE/DCE interface shall cause the TE and the MT to exit from
the SMS/CBS block mode and return to the default mode.
In the event where the TE or the MT find themselves unable to recover from a protocol error then either
entity may exit the SMS/CBS mode using any of the mechanisms described above. Confirmation of default
mode operation will be achieved through the use of AT commands and responses.

Page 14
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
2.2 Protocol description
The communication path between the MT and the TE across the DTE/DCE interface should be quite
reliable if it uses a short wire link. However, to ensure that the low error rate does not cause malfunction,
the following error protection scheme is provided.
Each message sent from the MT to the TE or vice-versa consists of a data block (DATA) and block check
sum (BCS, see figure 2.2.1). In the following description the notation DLE, STX, NUL and ETX refer to
control characters having the values 10 02 00 and 03 hexadecimal respectively.
�������������������’$7$�����������������!����%&6��!
�����‚¶¶¶¶�¶¶¶¶�¶¶¶¶¶¶¶¶¶¶���¶¶¶¶¶¶¶�¶¶¶¶�¶¶¶¶�¶¶¶¶�¶¶¶¶„
�����•’/(�•67;�•��0(66$*(�&217(17���•’/(�•(7;�•%&6�•%&6�•
�����•��+�•��+�•��������������������•��+�•��+�•06%�•/6%�•
�����”¶¶¶¶¿¶¶¶¶¿¶¶¶¶¶¶¶¶¶¶���¶¶¶¶¶¶¶¿¶¶¶¶¿¶¶¶¶¿¶¶¶¶¿¶¶¶¶»
Figure 2.2.1/GSM 07.05: Format of DTE/DCE interface messages
The data block consists of a start transmission sequence, set to 00010000 00000010 (10 02 hex), the
message content as defined below and an end transmission sequence, set to 00010000 00000011
(10 03 hex). The least significant bit of each octet is always transmitted first.
The block check sum is calculated at the transmitter by adding all of the octets in the message content
modulo 65536. Each bit of the 16-bit result is then inverted, and 1 is added to the answer.
During transmission of the message content and the BCS octets, any occurrence of the value 10 hex (DLE)
shall result in an additional "stuffing" octet of value 00 hex (NUL) being transmitted immediately following
the octet containing 10 hex. This is to ensure that the start and end markers are unambiguous. The
receiver shall remove stuffing octets by discarding any octet of value 00 hex (NUL) which immediately
follows an octet of value 10 hex (DLE).
After removal of any stuffing octets, the receiver can check the BCS by adding all of the octets in the
message content and the 16-bit BCS modulo 65536. The correct result is 0000 hex. If any message is
received with an incorrect BCS, then the message is discarded. No response is sent over the DTE/DCE
interface, but an indication may be provided to higher layers within the receiving entity.
The transmitter shall only send DLE when it is followed by STX, NUL or ETX. Therefore, if the receiver
sees a DLE followed by anything else then the receiver shall assume that some data has been lost, and
shall start to search for the start marker. An unexpected end marker at the receiver shall also result in a
search for a start marker. A start marker shall always be treated as the start of a new block, regardless
of which state the receiver is in.
Examples of state diagrams for a block receiver to implement this procedure are given in annex B,
together with an example of coding and decoding a message.
Only one Command/Response transaction shall be permitted at any one time from any sending or receiving
entity. It shall however be possible for a Command/Response transaction from one entity to be initiated
even if there is a Command/Response transaction in progress from the other entity.
If an immediate response is expected to a message sent over the DTE/DCE interface, then the sending
entity shall wait 10 seconds. If no response is received within this time, the sending entity shall repeat the
message. The message shall be repeated a maximum of 3 times, after which the sending entity shall exit
from the SMS/CBS mode and provide an error indication to the user.
If a message cannot be understood by the receiving entity even though it has a correct BCS, then it shall
return an UNABLE TO PROCESS message with cause value "Command not understood". The receipt of
an UNABLE TO PROCESS message should not in itself initiate re-transmission although re-transmission
may take place due to the timeout mechanism described earlier since an UNABLE TO PROCESS is
deemed to be an invalid response. The "Cause" may however be referred to a higher layer. An UNABLE
TO PROCESS shall not be sent as the result of an incorrect BCS.

Page 15
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
2.3 Requesting messages already held in the Mobile Termination
The TE may request the MT to provide SMS or CBS messages already stored. The TE will either request
all messages, or request a list of messages and subsequently ask for specific messages.
At the start of the SMS/CBS mode session, the MT shall number all messages contiguously, starting with
message number 1. These "Short Message References" are only valid for a single SMS/CBS MODE
session and should not be confused with the GSM 03.40 TP-Message-Reference. Each message retains
its Short Message Reference for the duration of the SMS/CBS mode session. New messages will normally
be given the lowest previously-unused Short Message Reference. However, if all Short Message
References have been used then the MT may reallocate Short Message References previously allocated
to now-deleted messages.
Short Message Reference 0 signifies that there are no messages in the MT. The value of 0 is used under
the following conditions:
- When an INSERT SMS command is used to transfer an SM over the air interface and not store it in
the MT then the MT will return a Short Message Reference of 0 in the REQUEST CONFIRMED
response and the ensuing INSERT SMS COMPLETE / INSERT SMS FAILURE indications.
- For Class 0 Sam's which are not stored in the MT.
- For TE specific Sam's which are not stored in the MT.
If Message number 0 is requested by the TE, the MT will always return an error cause, but will also
include the highest valid Short Message Reference (see section 2.3.2.1 below).
2.3.1 Requesting List Of Messages
The TE may request the MT to provide a list of SMS and CBS messages currently stored in the mobile
termination. This is achieved by the LIST REQUEST command (section 2.4.1.1). The MT divides the
messages stored into groups of 5 (called pages) and transfers the first 5 in a MESSAGE LIST response
(section 2.4.2.1) containing message references allocated by the MT, plus the relevant header information
described in GSM 03.40/04.11 and GSM 03.41/04.12.
If there are no messages stored in the MT, then the MESSAGE LIST response shall be empty.
The TE may then request further groups of up to 5 messages by repeating the LIST REQUEST command
for pages 2, 3, and so on. The MT will indicate that there are no more pages by responding with an empty
MESSAGE LIST response.
2.3.2 Requesting Transfer Of Messages
The TE may request the transfer of one or more messages by means of the commands described below.
The MT does not delete messages which have been transferred. Messages can only be deleted by the
DELETE MESSAGE command (section 2.4.1.9).
2.3.2.1 Requesting Transfer Of A Specific Message
The TE may request the MT to transfer a specific message by sending the GET MESSAGE command
(section 2.4.1.2), including the appropriate message reference. The MT will provide the full message
including header in a MESSAGE response (section 2.4.2.2). If the message reference is unallocated, then
the GET MESSAGE FAILURE response is returned with cause "No such message" and the highest valid
Message Reference (section 2.4.2.3).

Page 16
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
2.3.2.2 Requesting Transfer Of All Messages
The TE may request the MT to transfer all messages by sending the GET FIRST MESSAGE command
(section 2.4.1.3), followed by the appropriate number of GET NEXT MESSAGE commands
(section 2.4.1.4).
The MT shall be able to transfer all messages one-by-one, starting with the "first" and continuing with the
"next". The precise ordering of the messages is left to the MT implementation.
If the MT exits from SMS/CBS mode for any reason, then this information need not be retained.
On receipt of the GET FIRST MESSAGE command, the MT shall set a pointer to the first message, and
transfer this message using the MESSAGE response as described in section 2.3.2.1.
On receipt of the GET NEXT MESSAGE command, the MT shall move the pointer to the first available
message after the last message transferred (using either GET FIRST MESSAGE, GET MESSAGE or
GET NEXT MESSAGE), and transfer this message using the MESSAGE response as described in
section 2.3.2.1.
If the MT receives a GET NEXT MESSAGE command when all messages have been transferred to the
TE, or there are no messages stored in the MT, then the GET MESSAGE FAILURE response shall be
provided with the cause "No such message" (see section 2.4.2.3).
If the TE receives an out of sequence message then it shall attempt to transfer the missing message using
the GET MESSAGE command before continuing with GET NEXT MESSAGE. If this attempt fails with the
cause "no such message", it means that the message has been deleted, or it has been lost due to a failure
at the MT.
The MT includes a LAST SHORT MESSAGE REFERENCE in the GET MESSAGE FAILURE response.
This is so that the TE can detect whether or not the last short message was received in error.
If the MT receives a GET NEXT MESSAGE command prior to receiving a GET FIRST MESSAGE or GET
MESSAGE command, then it shall continue as if the command had been GET FIRST MESSAGE (i.e.
provide the "first" message and continue with the "next" on receipt of the subsequent GET NEXT
MESSAGE command).
2.3.3 Requesting Diversion Of Incoming Messages
The TE may request the MT to transfer SMS or CBS messages directly from the air interface to the
DTE/DCE interface, by the following procedures. If messages are diverted then they are not stored in the
MT. If messages are diverted and there is no communication path to the TE (e.g. because it has been
disconnected), the diversion shall be cancelled.
2.3.3.1 Requesting SMS Messages
The TE may request an indication of arrival of incoming SMS messages, or the direct transfer of incoming
SMS messages.
The TE requests new SMS messages by the TRANSFER INC SMS command (section 2.4.1.5). This
command will be sent with parameters indicating whether all incoming SMS messages are to be
transferred, or only those indicated as being for the TE.
The MT shall confirm receipt of this command with a REQUEST CONFIRMED message provided there is
memory available to store Sam's in the ME or the SIM. If there is no memory available, the MT shall
respond with "unable to process" with a cause value No memory.
The MT shall transfer incoming messages by the INC MESSAGE indication (section 2.4.2.4).
For an INC MESSAGE which contains a Short Message (SMS) info element id, the TE shall acknowledge
receipt of the INC MESSAGE with an ACKNOWLEDGE MESSAGE (section 2.4.1.12). The MT should not

Page 17
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
send another INC MESSAGE which contains a Short Message (SMS) info element id to the TE whilst it is
waiting for an ACKNOWLEDGE MESSAGE.
In the event of the MT not receiving an ACKNOWLEDGE MESSAGE within a time specified by the MT
manufacturer the MT shall exit the SMS mode automatically after "n" attempts to send the INC MESSAGE
(where n is a number specified by the MT manufacturer). The MT should attempt to store the
unacknowledged SM or Status Report (contained in the INC MESSAGE) in the MT or on the SIM as
appropriate.
The MT must not delay sending the RP-ACK defined in TS GSM 03.40 (to the SC) for longer than the
RP-ACK timeout specified in TS GSM 04.08. It may therefore be impractical for the MT to wait for
ACKNOWLEDGE MESSAGE from the TE before sending RP-ACK.
The TE requests the cessation of incoming message transfer by the same command, indicating no
incoming messages. The transfer of messages will automatically cease on exit of the SMS/CBS mode.
Transfer shall not recommence until a new request is issued by the TE.
2.3.3.2 Requesting CBS Messages
The TE may request the transfer of all cell broadcast messages directly from the air interface to the
DTE/DCE interface. This is achieved by the use of the TRANSFER INC CBS message (section 2.4.1.7).
The MT shall confirm receipt of this command with a REQUEST CONFIRMED message.
After receipt of this command, the MT shall transfer all CBS pages as they arrive on the air interface, using
the INC MESSAGE indication (section 2.4.2.4).
While the CBS pages are being transferred, any other indication or response required to be sent to the TE
will take precedence over the CBS pages. However, the MT shall not interrupt the transfer of a page to
send other information within the SMS/CBS mode (i.e. the MT shall wait until a page boundary).
The transfer of messages will automatically cease on exit of the SMS/CBS mode. Transfer shall not
recommence until a new request is issued by the TE.
2.3.3.3 Requesting indication of message arrival
If the TE requires an indication of incoming message arrival, the INDICATE INC SMS command
(section 2.4.1.6) shall be used.
The MT shall confirm receipt of this command with a REQUEST CONFIRMED message.
After receipt of this command, the MT shall indicate all incoming messages in the specified categories
(unless they are directly transferred) with the MESSAGE ARRIVED indication (section 2.4.2.5). This
indication shall be of the same format as the MESSAGE LIST response described in section 2.3.1.
The TE shall acknowledge receipt of the MESSAGE ARRIVED with an ACKNOWLEDGE MESSAGE.
(section 2.4.1.12). The MT should not send another MESSAGE ARRIVED to the TE whilst it is waiting for
an ACKNOWLEDGE MESSAGE.
In the event of the MT not receiving an ACKNOWLEDGE MESSAGE within a time specified by the MT
manufacturer the MT shall exit the SMS mode automatically after "n" attempts to send the MESSAGE
ARRIVED (where n is a number specified by the MT manufacturer). The MT should attempt to store the
unacknowledged SM or Status Report in the MT or on the SIM as appropriate.
The MT must not delay sending the RP-ACK defined in TS GSM 03.40 (to the SC) for longer than the
RP-ACK timeout specified in the TS GSM 04.08. It may therefore be impractical for the MT to wait for
ACKNOWLEDGE MESSAGE from the TE before sending RP-ACK.
The TE requests the cessation of incoming message indication by the INDICATE INC SMS command, with
the "no incoming messages" parameter.

Page 18
ETS 300 585 (GSM 07.05 version 4.7.0): October 1996
2.3.4 Requesting Transfer Into Mobile Termination
The TE may request transfer of SMS messages into the mobile termination. Cell broadcast messages
cannot be transferred in this direction.
The TE shall use the INSERT SMS command (section 2.4.1.8) to transfer the message. This command
shall indicate whether the message is to be stored in the MT, sent over the air interface or both. The
command shall include the full SMS message and header as described in GSM 03.40, except for the
message reference and message type indication (which are allocated by the MT).
Only one INSERT SMS command may be outstanding at any given instant. An INSERT SMS is deemed
complete when an INSERT SMS COMPLETE or an INSERT SMS FAILURE indication has been received
irrespective of whether an intermediate REQUEST CONFIRMED has been received.
Upon receipt of an INSERT SMS command, the MT shall act in the following way:
If the TE requested the MT to store the message, the MT shall attempt to store the message. If the
attempt is successful, the MT shall return an INSERT SMS COMPLETE indication (section 2.4.2.6),
including the message reference allocated by the MT. If the attempt fails (e.g. due to lack of memory), the
MT shall return an INSERT SMS FAILURE indication (section 2.4.2.7), providing a cause for the failure.
If the TE requested the MT to send the message, the MT shall respond immediately with a REQUEST
CONFIRMED message, and attempt to send the message. If the send attempt subsequently succeeds,
the MT shall send an INSERT SMS COMPLETE indication, including the message references allocated by
the MT. If the send attempt subsequently fails, the MT shall return an INSERT SMS FAILURE indication,
providing a cause for the failure.
If the TE requested the MT to store and send the message, the MT shall first attempt to store the
message. If no storage is available, the MT shall return an INSERT SMS FAILURE indication
(section 2.4.2.7) and shall not attempt to send the message. If storage is available, the MT shall store the
message and then respond with a REQUEST CONFIRMED message. If the send attempt is successful,
the MT shall return an INSERT SMS COMPLETE indication (section 2.4.2.6), including the message
references allocated by the MT. If the transmission of the message fails, then the MT shall return an
INSERT SMS FAILURE indication (section 2.4.2.7). This will show that the send attempt failed and provide
a cause. After that the MT shall delete the stored message.
2.3.5 Requesting Deletion Of Messages
The TE
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.

Loading comments...