<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with SAPE SAP Editor -->
<SAP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="sap.xsd">
    <DocInfoSection>
        <DocName DocType="SAP">gmmsm</DocName>
        <DocNum Number="106" Project="8441"/>
        <Description>
            <Section>The Protocol Stacks are used to define the functionality of the GSM protocols for interfaces. The GSM specifications are normative when used to describe the functionality of interfaces, but the stacks and the subdivision of protocol layers does not imply or restrict any implementation.</Section>
            <Section>The protocol stack for GPRS consists of several entities. Each entity has one ore more service access points, over which the entity provides a service for the upper entity.</Section>
            <Section>Figure 1-1: Architecture of the GSM/GPRS protocol stack</Section>
            <Section>The information units passed via the SAPs are called primitives and consists of an operation code and several parameters. See the Users Guide for details.</Section>
            <Section>The entities of the GPRS protocol stack are:</Section>
            <Section>1.1 GRR (RLC/MAC) - Radio Link Control/Medium Access Control</Section>
            <Section>This layer contains two functions: The Radio Link Control function provides a radio-solution-dependent reliable link. The Medium Access Control function controls the access signalling (request and grant) procedures for the radio channel, and the mapping of LLC frames onto the GSM physical channel.</Section>
            <Section>1.2 LLC - Logical Link Control</Section>
            <Section>The LLC entity provides multiple highly reliable logical links for asynchronous data transfer between the MS and the network. It supports variable-length information frames, acknowledged and unacknowledged data transfer, flow and sequence control, error detection and recovery, notification of unrecoverable errors, user identity confidentiality, and ciphering of user and signaling data.</Section>
            <Section>1.3 GMM - GPRS Mobility Management</Section>
            <Section>The GMM entity provides procedures for the mobility of the MS, such as informing the network of its present location, and user identity confidentiality. It manages the GMM context (attach, detach, routing area updating), supports security functions such as authentication of user and MS, controls ciphering of data, and initiates the response to paging messages.</Section>
            <Section>1.4 SM - Session Management</Section>
            <Section>The main function of the session management (SM) is to support PDP context handling of the user terminal. Session Management activates, modifies and deletes the contexts for packet data protocols (PDP). Session Management services are provided at the SMREG-SAP and the SNSM-SAP for anonymous and non-anonymous access. The non-anonymous and anonymous access procedures for PDP context activation and PDP context deactivation are available at the SMREG-SAP. In addition there exists a PDP context modification for non-anonymous PDP contexts.</Section>
            <Section>1.5 SNDCP - Subnetwork Dependant Convergence Protocol</Section>
            <Section>SNDCP carries out all functions related to transfer of Network layer Protocol Data Units (N-PDUs) over GPRS in a transparent way. SNDCP helps to improve channel efficiency by means of compression techniques. The set of protocol entities above SNDCP consists of commonly used network protocols. They all use the same SNDCP entity, which then performs multiplexing of data coming from different sources to be sent using the service provided by the LLC layer.</Section>
            <Section>1.6 GACI - GPRS Application Control Interface</Section>
            <Section>The GACI is the GPRS extension of the ACI. It is specified in GSM 07.07 and 07.60. It is responsible for processing of the GPRS related AT Commands to setup, activate and deactivate the PDP context parameter. It also provides functionality for the interworking between GMM/SM/SNDCP and a packet oriented protocol like PPP.</Section>
            <Section>1.7 USART - Universal Synchronous Asynchronous Receiver Transmitter Driver</Section>
            <Section>The USART is a hardware component that facilitates a connection between the mobile station and terminal equipment (e.g. a PC). This interface uses some of the circuits described in V.24.</Section>
            <Section>The data exchange provided by this unit is serial and asynchronous (synchronous communication is not in the scope of this document). A driver that uses interrupts to manage a circular buffer for the sending and receiving direction is necessary in order to use this component in the GPRS. The driver has to be able to perform flow control.</Section>
            <Section>1.8 TOM - Tunnelling of Messages</Section>
            <Section>The TOM entity is present if and only if HS136 is supported (the feature flag FF_HS136 is enabled).</Section>
            <Section>The main function of TOM is to tunnel non-GSM signalling messages between the MS and the SGSN. The only non-GSM signalling which is currently supported by TOM is for the EGPRS-136 system (according to TIA/EIA-136-376). Data transfer in both uplink and downlink direction is possible. Two different priorities (high, low) of signalling data transfer are supported. TOM uses the unacknowledged mode of LLC and the acknowledged mode of GRR (RLC/MAC).</Section>
        </Description>
        <DocHistory>
            <DocVersion Number="001" Year="99"/>
            <Date Day="26" Month="7" Year="1999"/>
            <Author>HK</Author>
            <DocStatus State="BEING_PROCESSED"/>
            <Comment>Initial</Comment>
        </DocHistory>
        <DocHistory>
            <DocVersion Number="002" Year="99"/>
            <Date Day="21" Month="10" Year="1999"/>
            <Author>ANS</Author>
            <DocStatus State="BEING_PROCESSED"/>
            <Comment>Flow control removed.</Comment>
        </DocHistory>
        <DocHistory>
            <DocVersion Number="003" Year="00"/>
            <Date Day="16" Month="3" Year="2000"/>
            <Author>ANS</Author>
            <DocStatus State="BEING_PROCESSED"/>
            <Comment>GMMSM_SEQUENCE changed</Comment>
        </DocHistory>
        <DocHistory>
            <DocVersion Number="004" Year="00"/>
            <Date Day="23" Month="9" Year="2002"/>
            <Author>DPI</Author>
            <DocStatus State="BEING_PROCESSED"/>
            <Comment>Changes for cause concept</Comment>
        </DocHistory>
        <DocHistory>
            <DocVersion Number="005" Year="00"/>
            <Date Day="23" Month="1" Year="2003"/>
            <Author>FRI</Author>
            <DocStatus State="BEING_PROCESSED"/>
            <Comment>Changes for cause concept</Comment>
        </DocHistory>
        <DocRef>
            <RefId>[1]</RefId>
            <RefTitle>GSM 05.02 version 8.0.0 Release 1999Digital cellular telecommunications system (Phase 2+);Multiplexing and multiple access on the radio path</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[2]</RefId>
            <RefTitle>GSM 04.60 version 6.3.0 Release 1997Digital cellular telecommunications system (Phase 2+);General Packet Radio Service (GPRS);Mobile Station (MS) - Base Station System (BSS) interface;Radio Link Control/ Medium Access Control (RLC/MAC) protocol</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[3]</RefId>
            <RefTitle>GSM 04.08 version 6.3.0 Release 1997Digital cellular telecommunications system (Phase 2+);Mobile radio interface layer 3 specification</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[4]</RefId>
            <RefTitle>GSM 03.64 version 6.1.0 Release 1997Digital cellular telecommunications system (Phase 2+);General Packet Radio Service (GPRS);Overall description of the GPRS radio interface; Stage 2</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[5]</RefId>
            <RefTitle>GSM 03.60 version 6.3.1 Release 1997Digital cellular telecommunications system (Phase 2+);General Packet Radio Service (GPRS);Service description; Stage 2</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[6]</RefId>
            <RefTitle>GSM 04.07 version 6.3.0 Release 1997Digital cellular telecommunications system (Phase 2+);Mobile radio interface signalling layer 3; General aspects</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[7]</RefId>
            <RefTitle>GSM 04.64 version 6.3.0 Release 1997Digital cellular telecommunications system (Phase 2+);General Packet Radio Service (GPRS);Mobile Station - Serving GPRS Support Node (MS-SGSN)Logical Link Control (LLC) layer specification</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[8]</RefId>
            <RefTitle>GSM 05.08 version 6.4.0 Release 1997Digital cellular telecommunications system (Phase 2+);Radio subsystem link control</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[9]</RefId>
            <RefTitle>GSM 05.10 version 6.3.0 Release 1997Digital cellular telecommunications system (Phase 2+);Radio subsystem synchronization</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[10]</RefId>
            <RefTitle>GSM 03.20 TS 100 929: July 1998 (GSM 03.20 version 6.0.1)Security related network functions, ETSI</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[11]</RefId>
            <RefTitle>Draft GSM 03.22: August 1998 (GSM 03.22 version 6.1.0)Functions related to Mobile Station (MS) in idle mode and group receive mode, ETSI</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[12]</RefId>
            <RefTitle>GSM 04.65 V6.3.0: Subnetwork Dependant Convergence Protocol ETSI, March 1999</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[13]</RefId>
            <RefTitle>ITU-T V42bis ITU-T, Recommendation V.42 bis 1990</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[14]</RefId>
            <RefTitle>GSM 09.60 GPRS Tunneling Protocol (GTP) across the Gn and Gp Interface</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[15]</RefId>
            <RefTitle>RFC 1661 IETF STD 51 July 1994The Point-to-Point Protocol (PPP)</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[16]</RefId>
            <RefTitle>RFC 1662 IETF STD 51 July 1994PPP in HDLC-like Framing</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[17]</RefId>
            <RefTitle>RFC 1570 January 1994PPP LCP Extensions</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[18]</RefId>
            <RefTitle>RFC 1989 August 1996PPP Link Quality Monitoring</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[19]</RefId>
            <RefTitle>RFC 1332 May 1992The PPP Internet Protocol Control Protocol (IPCP)</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[20]</RefId>
            <RefTitle>RFC 1877 December 1995PPP IPCP Extensions for Name Server Addresses</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[21]</RefId>
            <RefTitle>RFC 2153 May 1997PPP Vendor Extensions</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[22]</RefId>
            <RefTitle>RFC 1334 October 1992PPP Authentication Protocols (for Password Authentication Protocol only)</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[23]</RefId>
            <RefTitle>RFC 1994 August 1996PPP Challenge Handshake Authentication Protocol (CHAP)</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[24]</RefId>
            <RefTitle>TIA/EIA-136-370Packet-Data Services - Enhanced General Packet Radio for TIA/EIA-136 (EGPRS-136) - Overview, Telecommunications Industry Association</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[25]</RefId>
            <RefTitle>TIA/EIA-136-376Packet-Data Services - EGPRS-136 Mobility Management, Telecommunications Industry Association</RefTitle>
        </DocRef>
        <DocRef>
            <RefId>[26]</RefId>
            <RefTitle>TIA/EIA-136-972Packet-Data Services - Stage 2 Description, Telecommunications Industry Association</RefTitle>
        </DocRef>
    </DocInfoSection>
    <ConstantsSection>
        <Description>
            <Section>This section contains all constants that are defined for the GMMSM SAP</Section>
        </Description>
        <Constant>
            <Alias>GMMSM_MAX_N_PDU_NUMBER_LIST</Alias>
            <Value ValueType="DEC">16</Value>
            <Comment>maximum sequence number value</Comment>
        </Constant>
        <History>
            <Date Day="27" Month="4" Year="1999"/>
            <Author>ANS</Author>
            <Comment>Initial</Comment>
        </History>
    </ConstantsSection>
    <PrimitivesSection PrimIDType="BIT16" SAPid="36">
        <Description>
            <Section>This section contains all primitives that are defined for the GMMSM SAP</Section>
        </Description>
        <Primitive>
            <Description>
                <Section>Request from SM to send an  ATTACH REQUEST message to the network to setup a GMM connection. The request is only performed in case the MS is not already attached. The GPRS attach is then indirectly caused by a requested non-anonymous PDP context activation.</Section>
            </Description>
            <PrimDef>
                <Name>GMMSM_ESTABLISH_REQ</Name>
                <PrimID Direction="UPLINK" Number="0"/>
                <PrimUsage>
                    <Sender>SM</Sender>
                    <Receiver>GMM</Receiver>
                </PrimUsage>
            </PrimDef>
            <History>
                <Date Day="26" Month="4" Year="1999"/>
                <Author>ANS</Author>
                <Comment>Initial</Comment>
            </History>
        </Primitive>
        <Primitive>
            <Description>
                <Section>The network has send the ATTACH ACCEPT message to the MS (the indirect attach was successful), or the MS has already been attached. Now session management can proceed with PDP context activation.</Section>
            </Description>
            <PrimDef>
                <Name>GMMSM_ESTABLISH_CNF</Name>
                <PrimID Direction="DOWNLINK" Number="0"/>
                <PrimUsage>
                    <Sender>GMM</Sender>
                    <Receiver>SM</Receiver>
                </PrimUsage>
            </PrimDef>
            <History>
                <Date Day="26" Month="7" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
        </Primitive>
        <Primitive>
            <Description>
                <Section>The network has rejected the attach. The MS has received the ATTACH REJECT message.</Section>
            </Description>
            <PrimDef>
                <Name>GMMSM_ESTABLISH_REJ</Name>
                <PrimID Direction="DOWNLINK" Number="1"/>
                <PrimUsage>
                    <Sender>GMM</Sender>
                    <Receiver>SM</Receiver>
                </PrimUsage>
            </PrimDef>
            <PrimItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>sm_cause</Name>
                </ItemLink>
                <Comment>error cause</Comment>
            </PrimItem>
            <History>
                <Date Day="26" Month="4" Year="1999"/>
                <Author>ANS</Author>
                <Comment>Initial</Comment>
            </History>
            <History>
                <Date Day="23" Month="9" Year="2002"/>
                <Author>DPI</Author>
                <Comment>UBYTE cause => USHORT cause</Comment>
            </History>
        </Primitive>
        <Primitive>
            <Description>
                <Section>GMM informs SM that the MS has been GPRS detached, e.g. by timer expiry, and therefore the PDP contexts are not valid anymore.</Section>
            </Description>
            <PrimDef>
                <Name>GMMSM_RELEASE_IND</Name>
                <PrimID Direction="DOWNLINK" Number="2"/>
                <PrimUsage>
                    <Sender>GMM</Sender>
                    <Receiver>SM</Receiver>
                </PrimUsage>
            </PrimDef>
            <History>
                <Date Day="26" Month="4" Year="1999"/>
                <Author>ANS</Author>
                <Comment>Initial</Comment>
            </History>
        </Primitive>
        <Primitive>
            <Description>
                <Section>GMM is requested to forward an SM-PDU to LLC in order to send it in unacknowledged mode to the peer entity.</Section>
                <Section>The parameter sdu contains the SM-PDU which is to be sent.</Section>
            </Description>
            <PrimDef>
                <Name>GMMSM_UNITDATA_REQ</Name>
                <PrimID Direction="UPLINK" Number="1"/>
                <PrimUsage>
                    <Sender>SM</Sender>
                    <Receiver>GMM</Receiver>
                </PrimUsage>
            </PrimDef>
            <PrimItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>sdu</Name>
                </ItemLink>
                <Comment>service data unit</Comment>
            </PrimItem>
            <History>
                <Date Day="21" Month="6" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
        </Primitive>
        <Primitive>
            <Description>
                <Section>GMM forwards an SM-PDU to SM, which has been received in unacknowledged mode via LLC from the peer entity.</Section>
                <Section>The parameter sdu contains the SM-PDU which has been received from the peer.</Section>
            </Description>
            <PrimDef>
                <Name>GMMSM_UNITDATA_IND</Name>
                <PrimID Direction="DOWNLINK" Number="3"/>
                <PrimUsage>
                    <Sender>GMM</Sender>
                    <Receiver>SM</Receiver>
                </PrimUsage>
            </PrimDef>
            <PrimItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>sdu</Name>
                </ItemLink>
                <Comment>service data unit</Comment>
            </PrimItem>
            <History>
                <Date Day="21" Month="6" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
        </Primitive>
        <Primitive>
            <Description>
                <Section>GMMSM_SEQUENCE_IND is used by GMM to fetch the receive NPDU number.</Section>
            </Description>
            <PrimDef>
                <Name>GMMSM_SEQUENCE_IND</Name>
                <PrimID Direction="DOWNLINK" Number="4"/>
                <PrimUsage>
                    <Sender>LLC</Sender>
                    <Receiver>SM</Receiver>
                </PrimUsage>
            </PrimDef>
            <PrimItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>npdu_list</Name>
                </ItemLink>
                <Control>[1..GMMSM_MAX_N_PDU_NUMBER_LIST]</Control>
                <Comment>list of received N-PDU numbers</Comment>
            </PrimItem>
            <History>
                <Date Day="24" Month="3" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
            <History>
                <Date Day="20" Month="1" Year="2000"/>
                <Author>ANS</Author>
                <Comment>moved from LLGMM</Comment>
            </History>
            <History>
                <Date Day="16" Month="3" Year="2000"/>
                <Author>ANS</Author>
                <Comment>number of elements included</Comment>
            </History>
        </Primitive>
        <Primitive>
            <Description>
                <Section>GMMSM_WIND_RES is used to deliver the received NPDU numbers to GMM.</Section>
            </Description>
            <PrimDef>
                <Name>GMMSM_SEQUENCE_RES</Name>
                <PrimID Direction="UPLINK" Number="2"/>
                <PrimUsage>
                    <Sender>SM</Sender>
                    <Receiver>GMM</Receiver>
                </PrimUsage>
            </PrimDef>
            <PrimItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>npdu_list</Name>
                </ItemLink>
                <Control>[1..GMMSM_MAX_N_PDU_NUMBER_LIST]</Control>
                <Comment>list of received N-PDU numbers</Comment>
            </PrimItem>
            <History>
                <Date Day="24" Month="3" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
            <History>
                <Date Day="20" Month="1" Year="2000"/>
                <Author>ANS</Author>
                <Comment>moved from LLGMM</Comment>
            </History>
            <History>
                <Date Day="16" Month="3" Year="2000"/>
                <Author>ANS</Author>
                <Comment>number of elements included</Comment>
            </History>
        </Primitive>
    </PrimitivesSection>
    <PrimStructElementsSection>
        <Description>
            <Section>Parameters shall be part of the primitives described above and, if applied, the parameters shall contain the values specified here. These values are selected to correspond to element values used in the air interface protocol.</Section>
        </Description>
        <PrimStructElem>
            <Description>
                <Section>This parameter contains an SM-PDU.</Section>
            </Description>
            <PrimStructElemDef Type="STRUCT">
                <Name>sdu</Name>
                <Comment>service data unit</Comment>
            </PrimStructElemDef>
            <PrimStructElemItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>l_buf</Name>
                </ItemLink>
                <Comment>length of content in bit</Comment>
            </PrimStructElemItem>
            <PrimStructElemItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>o_buf</Name>
                </ItemLink>
                <Comment>offset of content in bit</Comment>
            </PrimStructElemItem>
            <PrimStructElemItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>buf</Name>
                </ItemLink>
                <Control>[1]</Control>
                <Comment>buffer content</Comment>
            </PrimStructElemItem>
            <History>
                <Date Day="22" Month="6" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
        </PrimStructElem>
        <PrimStructElem>
            <Description>
                <Section>This parameter contains a vector of receive NPDU numbers.</Section>
            </Description>
            <PrimStructElemDef Type="STRUCT">
                <Name>npdu_list</Name>
                <Comment>list of received N-PDU numbers</Comment>
            </PrimStructElemDef>
            <PrimStructElemItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>nsapi</Name>
                </ItemLink>
                <Comment>NSAPI</Comment>
            </PrimStructElemItem>
            <PrimStructElemItem Presentation="MANDATORY">
                <ItemLink>
                    <DocName DocType="SAP">gmmsm</DocName>
                    <Name>receive_n_pdu_number_val</Name>
                </ItemLink>
                <Comment>Receive N-PDU Number value</Comment>
            </PrimStructElemItem>
            <History>
                <Date Day="20" Month="1" Year="2000"/>
                <Author>ANS</Author>
                <Comment>moved from LLGMM</Comment>
            </History>
        </PrimStructElem>
    </PrimStructElementsSection>
    <PrimBasicElementsSection>
        <Description>
            <Section>Parameters shall be part of the primitives described above and, if applied, the parameters shall contain the values specified here. These values are selected to correspond to element values used in the air interface protocol.</Section>
        </Description>
        <PrimBasicElem>
            <Description>
                <Section>This parameter contains an SM-PDU.</Section>
            </Description>
            <PrimBasicElemDef>
                <Name>l_buf</Name>
                <Type>U16</Type>
                <Comment>length of content in bit</Comment>
            </PrimBasicElemDef>
            <History>
                <Date Day="22" Month="6" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
        </PrimBasicElem>
        <PrimBasicElem>
            <Description>
                <Section>This parameter contains an SM-PDU.</Section>
            </Description>
            <PrimBasicElemDef>
                <Name>o_buf</Name>
                <Type>U16</Type>
                <Comment>offset of content in bit</Comment>
            </PrimBasicElemDef>
            <History>
                <Date Day="22" Month="6" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
        </PrimBasicElem>
        <PrimBasicElem>
            <Description>
                <Section>This parameter contains an SM-PDU.</Section>
            </Description>
            <PrimBasicElemDef>
                <Name>buf</Name>
                <Type>U8</Type>
                <Comment>buffer content</Comment>
            </PrimBasicElemDef>
            <History>
                <Date Day="22" Month="6" Year="1999"/>
                <Author>DB</Author>
                <Comment>Initial</Comment>
            </History>
        </PrimBasicElem>
        <PrimBasicElem>
            <Description>
                <Section>This parameter defines the cause of the received ATTACH REJECT message, which is indicated to SM.</Section>
            </Description>
            <PrimBasicElemDef>
                <Name>sm_cause</Name>
                <Type>U16</Type>
                <Comment>error cause</Comment>
            </PrimBasicElemDef>
            <ValuesLink>
                <DocName DocType="SAP">gmmsm</DocName>
                <Name>VAL_sm_cause</Name>
            </ValuesLink>
            <History>
                <Date Day="26" Month="4" Year="1999"/>
                <Author>ANS</Author>
                <Comment>Initial</Comment>
            </History>
            <History>
                <Date Day="9" Month="9" Year="1999"/>
                <Author>HK</Author>
                <Comment>changed cause to sm_cause</Comment>
            </History>
            <History>
                <Date Day="16" Month="11" Year="1999"/>
                <Author>ANS</Author>
                <Comment>#6 corrected</Comment>
            </History>
            <History>
                <Date Day="23" Month="11" Year="1999"/>
                <Author>ANS</Author>
                <Comment>POWER_OFF added</Comment>
            </History>
            <History>
                <Date Day="23" Month="9" Year="2002"/>
                <Author>DPI</Author>
                <Comment>Causes changed to 16 bit values</Comment>
            </History>
            <History>
                <Date Day="23" Month="1" Year="2003"/>
                <Author>FRI</Author>
                <Comment>changed causes from SM to GMM originated</Comment>
            </History>
        </PrimBasicElem>
        <PrimBasicElem>
            <Description>
                <Section>Reference : [1] section 10.5.5.11</Section>
            </Description>
            <PrimBasicElemDef>
                <Name>nsapi</Name>
                <Type>U8</Type>
                <Comment>NSAPI</Comment>
            </PrimBasicElemDef>
            <ValuesLink>
                <DocName DocType="SAP">gmmsm</DocName>
                <Name>VAL_nsapi</Name>
            </ValuesLink>
            <History>
                <Date Day="22" Month="7" Year="1999"/>
                <Author>ANS</Author>
                <Comment>Initial</Comment>
            </History>
        </PrimBasicElem>
        <PrimBasicElem>
            <Description>
                <Section>Reference : [1] section 10.5.5.11</Section>
            </Description>
            <PrimBasicElemDef>
                <Name>receive_n_pdu_number_val</Name>
                <Type>U8</Type>
                <Comment>Receive N-PDU Number value</Comment>
            </PrimBasicElemDef>
            <History>
                <Date Day="22" Month="7" Year="1999"/>
                <Author>ANS</Author>
                <Comment>Initial</Comment>
            </History>
        </PrimBasicElem>
    </PrimBasicElementsSection>
    <ValuesSection>
        <Description>
            <Section>This section contains all sets of values that are defined for the GMMSM SAP</Section>
        </Description>
        <Values>
            <Description>
                <Section>This former local values table was generated by the doc2XML converter tool. Please exchange this description by a more meaningful one !!!</Section>
            </Description>
            <ValuesDef>
                <Name>VAL_sm_cause</Name>
                <Comment>values for sm_cause</Comment>
            </ValuesDef>
            <ValuesItem>
                <Value ValueType="HEX">0A02</Value>
                <Alias>SM_ERRCS_IMSI_UNKNOWN</Alias>
                <Comment>IMSI unknown in HLR</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A03</Value>
                <Alias>SM_ERRCS_ILLEGAL_MS</Alias>
                <Comment>Illegal MS</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A04</Value>
                <Alias>SM_ERRCS_IMEI_NOT_ACCEPTED</Alias>
                <Comment>IMEI not accepted</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A06</Value>
                <Alias>SM_ERRCS_ILLEGAL_ME</Alias>
                <Comment>Illegal ME</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A07</Value>
                <Alias>SM_ERRCS_GPRS_NOT_ALLOWED</Alias>
                <Comment>GPRS services not allowed</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A08</Value>
                <Alias>SM_ERRCS_GSM_GPRS_NOT_ALLOWED</Alias>
                <Comment>GPRS services and non-GPRS services not allowed</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A09</Value>
                <Alias>SM_ERRCS_NO_MS_ID</Alias>
                <Comment>MS identity cannot be derived by the network</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A0A</Value>
                <Alias>SM_ERRCS_IMPLICIT_DETACHED</Alias>
                <Comment>Implicitly detached</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A0B</Value>
                <Alias>SM_ERRCS_PLMN_NOT_ALLOWED</Alias>
                <Comment>PLMN not allowed</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A0C</Value>
                <Alias>SM_ERRCS_LA_NOT_ALLOWED</Alias>
                <Comment>Location Area not allowed</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A0D</Value>
                <Alias>SM_ERRCS_ROAMING_NOT_ALLOWED</Alias>
                <Comment>Roaming not allowed in this location area</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A10</Value>
                <Alias>SM_ERRCS_MSC_TEMP_NOT_RECHABLE</Alias>
                <Comment>MSC temporarily not reachable</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A11</Value>
                <Alias>SM_ERRCS_NET_FAIL</Alias>
                <Comment>Network failure</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A16</Value>
                <Alias>SM_ERRCS_CONGESTION</Alias>
                <Comment>Congestion</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A5F</Value>
                <Alias>SM_ERRCS_SEMANTIC_INCORRECT</Alias>
                <Comment>Semantically incorrect message</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A60</Value>
                <Alias>SM_ERRCS_INVALID_M_INFO</Alias>
                <Comment>Invalid mandatory information</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A61</Value>
                <Alias>SM_ERRCS_TYPE_INVALID</Alias>
                <Comment>Message type non-existent or not implemented</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A62</Value>
                <Alias>SM_ERRCS_TYPE_INCOMPATIBLE</Alias>
                <Comment>Message type not compatible with the protocol state</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A63</Value>
                <Alias>SM_ERRCS_IE_INVALID</Alias>
                <Comment>Information element non-existent or not implemented</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A64</Value>
                <Alias>SM_ERRCS_COND_IE_ERROR</Alias>
                <Comment>Conditional IE error</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A65</Value>
                <Alias>SM_ERRCS_MESSAGE_INVALID</Alias>
                <Comment>Message not compatible with the protocol state</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A6F</Value>
                <Alias>SM_ERRCS_PROTOCOL_ERROR</Alias>
                <Comment>Protocol error, unspecified</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="HEX">0A70</Value>
                <Alias>SM_ERRCS_POWER_OFF</Alias>
                <Comment>local detach on power off</Comment>
            </ValuesItem>
            <ValuesRange ValueType="HEX">
                <MinValue>0A30</MinValue>
                <MaxValue>0A3F</MaxValue>
                <Comment>retry upon entry into a new cell</Comment>
            </ValuesRange>
            <ValuesDefault>
                <Comment>Protocol error, unspecified</Comment>
            </ValuesDefault>
            <History>
                <Date Day="4" Month="11" Year="2003"/>
                <Author>doc2XML</Author>
                <Comment>Initial</Comment>
            </History>
        </Values>
        <Values>
            <Description>
                <Section>This former local values table was generated by the doc2XML converter tool. Please exchange this description by a more meaningful one !!!</Section>
            </Description>
            <ValuesDef>
                <Name>VAL_nsapi</Name>
                <Comment>values for nsapi</Comment>
            </ValuesDef>
            <ValuesItem>
                <Value ValueType="DEC">5</Value>
                <Alias>GMMSM_NSAPI_5</Alias>
                <Comment>NSAPI 5</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">6</Value>
                <Alias>GMMSM_NSAPI_6</Alias>
                <Comment>NSAPI 6</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">7</Value>
                <Alias>GMMSM_NSAPI_7</Alias>
                <Comment>NSAPI 7</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">8</Value>
                <Alias>GMMSM_NSAPI_8</Alias>
                <Comment>NSAPI 8</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">9</Value>
                <Alias>GMMSM_NSAPI_9</Alias>
                <Comment>NSAPI 9</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">10</Value>
                <Alias>GMMSM_NSAPI_10</Alias>
                <Comment>NSAPI 10</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">11</Value>
                <Alias>GMMSM_NSAPI_11</Alias>
                <Comment>NSAPI 11</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">12</Value>
                <Alias>GMMSM_NSAPI_12</Alias>
                <Comment>NSAPI 12</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">13</Value>
                <Alias>GMMSM_NSAPI_13</Alias>
                <Comment>NSAPI 13</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">14</Value>
                <Alias>GMMSM_NSAPI_14</Alias>
                <Comment>NSAPI 14</Comment>
            </ValuesItem>
            <ValuesItem>
                <Value ValueType="DEC">15</Value>
                <Alias>GMMSM_NSAPI_15</Alias>
                <Comment>NSAPI 15</Comment>
            </ValuesItem>
            <ValuesDefault>
                <Comment>reserved</Comment>
            </ValuesDefault>
            <History>
                <Date Day="4" Month="11" Year="2003"/>
                <Author>doc2XML</Author>
                <Comment>Initial</Comment>
            </History>
        </Values>
    </ValuesSection>
</SAP>
