5 General commands

07.073GPPAT Command set for GSM Mobile Equipment (ME)Release 1998TS

ITU‑T Recommendation V.25ter [14] includes "Generic DCE Control" commands with the prefix +G. These commands are for the identification of the TA. Four of those commands are adapted here to be the identification commands of the ME. Syntax is otherwise similar but the prefix is +CG. TIA IS‑99 [15] uses same commands for base station identification.

5.1 Request manufacturer identification +CGMI

Table 3: +CGMI action command syntax

Command

Possible response(s)

+CGMI

<manufacturer>

+CME ERROR: <err>

+CGMI=?

Description

Execution command causes the TA to return one or more lines of information text <manufacturer>, determined by the ME manufacturer, which is intended to permit the user of the TA to identify the manufacturer of the ME to which it is connected to. Typically, the text will consist of a single line containing the name of the manufacturer, but manufacturers may choose to provide more information if desired. Refer subclause 9.2 for possible <err> values.

Defined values

<manufacturer>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters.

Text shall not contain the sequence 0<CR> or OK<CR>

Implementation

Optional.

5.2 Request model identification +CGMM

Table 4: +CGMM action command syntax

Command

Possible response(s)

+CGMM

<model>

+CME ERROR: <err>

+CGMM=?

Description

Execution command causes the TA to return one or more lines of information text <model>, determined by the ME manufacturer, which is intended to permit the user of the TA to identify the specific model of the ME to which it is connected to. Typically, the text will consist of a single line containing the name of the product, but manufacturers may choose to provide more information if desired. Refer to subclause 9.2 for possible <err> values.

Defined values

<model>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters.

Text shall not contain the sequence 0<CR> or OK<CR>

Implementation

Optional.

5.3 Request revision identification +CGMR

Table 5: +CGMR action command syntax

Command

Possible response(s)

+CGMR

<revision>

+CME ERROR: <err>

+CGMR=?

Description

Execution command causes the TA to return one or more lines of information text <revision>, determined by the ME manufacturer, which is intended to permit the user of the TA to identify the version, revision level or date, or other pertinent information of the ME to which it is connected to. Typically, the text will consist of a single line containing the version of the product, but manufacturers may choose to provide more information if desired. Refer subclause 9.2 for possible <err> values.

Defined values

<revision>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters.

Text shall not contain the sequence 0<CR> or OK<CR>

Implementation

Optional.

5.4 Request product serial number identification +CGSN

Table 6: +CGSN action command syntax

Command

Possible response(s)

+CGSN

<sn>

+CME ERROR: <err>

+CGSN=?

Description

Execution command causes the TA to return one or more lines of information text <sn>, determined by the ME manufacturer, which is intended to permit the user of the TA to identify the individual ME to which it is connected to. Typically, the text will consist of a single line containing the IMEI (International Mobile station Equipment Identity; refer GSM 03.03 [7]) number of the ME, but manufacturers may choose to provide more information if desired. Refer subclause 9.2 for possible <err> values.

Defined values

<sn>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters.

Text shall not contain the sequence 0<CR> or OK<CR>

Implementation

Optional.

5.5 Select TE character set +CSCS

Table 7: +CSCS parameter command syntax

Command

Possible response(s)

+CSCS=[<chset>]

+CSCS?

+CSCS: <chset>

+CSCS=?

+CSCS: (list of supported <chset>s)

Description

Set command informs TA which character set <chset> is used by the TE. TA is then able to convert character strings correctly between TE and ME character sets.

When TA‑TE interface is set to 8‑bit operation and used TE alphabet is 7‑bit, the highest bit shall be set to zero.

NOTE: It is manufacturer specific how the internal alphabet of ME is converted to/from the TE alphabet.

Read command shows current setting and test command displays conversion schemes implemented in the TA.

Defined values

<chset> (conversion schemes not listed here can be defined by manufacturers):

"GSM" GSM default alphabet (GSM 03.38 subclause 6.2.1); this setting causes easily software flow control (XON/XOFF) problems

"HEX" character strings consist only of hexadecimal numbers from 00 to FF; e.g. "032FE6" equals three 8-bit characters with decimal values 3, 47 and 230; no conversions to the original ME character set shall be done.

NOTE: If ME is using GSM default alphabet, its characters shall be padded with 8th bit (zero) before converting them to hexadecimal numbers (i.e. no SMS‑style packing of 7‑bit alphabet).

"IRA" international reference alphabet (ITU‑T T.50 [13])

"PCCPxxx" PC character set Code Page xxx

"PCDN" PC Danish/Norwegian character set

"UCS2" 16-bit universal multiple-octet coded character set (ISO/IEC10646 [32]); UCS2 character strings are converted to hexadecimal numbers from 0000 to FFFF; e.g. "004100620063" equals three 16-bit characters with decimal values 65, 98 and 99, $(AT R97)$

"8859-n" ISO 8859 Latin n (1‑6) character set

"8859-C" ISO 8859 Latin/Cyrillic character set

"8859-A" ISO 8859 Latin/Arabic character set

"8859-G" ISO 8859 Latin/Greek character set

"8859-H" ISO 8859 Latin/Hebrew character set

Implementation

Mandatory when a command using the setting of this command is implemented.

5.6 Request international mobile subscriber identity +CIMI

Table 8: +CIMI action command syntax

Command

Possible response(s)

+CIMI

<IMSI>

+CME ERROR: <err>

+CIMI=?

Description

Execution command causes the TA to return <IMSI>, which is intended to permit the TE to identify the individual SIM which is attached to ME. Refer subclause 9.2 for possible <err> values.

Defined values

<IMSI>: International Mobile Subscriber Identity (string without double quotes)

Implementation

Optional.

5.7 Multiplexing mode +CMUX $(MUX MS-TE)$

Table 9: +CMUX parameter command syntax

Command

Possible response(s)

+CMUX=<mode>[,<subset>[,

<port_speed>[,<N1>[,<T1>

[,<N2>[,<T2>[,<T3>

[,<k>]]]]]]]]

+CME ERROR: <err>

+CMUX?

+CMUX: <mode>,[<subset>],<port_speed>,
<N1>,<T1>, <N2>,<T2>,<T3>[,<k>]
+CME ERROR: <err>

+CMUX=?

+CMUX: (list of supported <mode>s),(list of supported <subset>s),(list of supported <port_speed>s),(list of supported <N1>s),(list of supported <T1>s),(list of supported <N2>s),(list of supported <T2>s),(list of supported <T3>s),(list of supported <k>s)

Description

This command is used to enable/disable the GSM 07.10 multiplexing protocol control channel. Refer to subclause 9.2 for possible <err> values. The AT command sets parameters for the Control Channel. If the parameters are left out, the default value is used.

Read command returns the current mode and the settings.

Test command returns the supported modes and parameters.

It is recommended that the ME/TA/TE should autobaud to the +CMUX command up to and including an interface speed of 9600 bits/s.

The OK or +CME ERROR: <err> response is returned at the speed of the +CMUX command prior to entering <mode>.

It is recommended that whenever the multiplexer control channel is released the ME/TA/TE should assume an interface rate of up to and including 9600 bits/s for auto bauding purposes irrespective of any previous higher speed having been selected.

If a +CMUX command is issued whilst in any multiplexer mode then that +CMUX command shall be ignored and the ME/TA shall return an +CME ERROR: <err> response.

Defined values

<operation> (multiplexer Transparency Mechanism)

0 Basic option

1 Advanced option

<subset>:

This parameter defines the way in which the multiplexer control channel is set up. A virtual channel may subsequently be set up differently but in the absence of any negotiation for the settings of a virtual channel, the virtual channel shall be set up according to the control channel <subset> setting.

0 UIH frames used only

1 UI frames used only

2 I frames used only

Default value: 0

<port_speed> (transmission rate):

1 9 600 bit/s

2 19 200 bit/s

3 38 400 bit/s

4 57 600 bit/s

5 115 200 bit/s

6 230 400 bits/s

<N1> (maximum frame size):

1- 32768

default Value : 31 (64 if Advanced option is used)

<T1> (acknowledgement timer in units of ten milliseconds):

1-255, where 10 is default (100 ms)

<N2> (maximum number of re-transmissions):

0-100, where 3 is default

<T2> (response timer for the multiplexer control channel in units of ten milliseconds):

2-255, where 30 is default (300 ms)

NOTE: T2 must be longer than T1.

<T3> (wake up response timer in seconds):

1-255, where 10 is default

<k> (window size, for Advanced operation with Error Recovery options):

1-7, where 2 is default

Implementation

Mandatory, if GSM 07.10 supported in the ME/TA.

5.8 ITU‑T V.25ter [14] generic TA control commands

Table 10: V.25ter generic TA control commands

Command

Section

Impl.

Use in GSM

Z[<value>]

6.1.1

mand.

TA sets all parameters to their defaults as specified by a user memory profile or by the manufacturer, and resets TA

&F[<value>]

6.1.2

mand.

TA sets all parameters to their defaults as specified by the manufacturer

I[<value>]

6.1.3

opt.

request manufacturer specific information about the TA (software cannot use this command to determine the capabilities of a TA)

+GMI

6.1.4

mand.

request TA manufacturer identification (may equal to +CGMI)

+GMM

6.1.5

mand.

request TA model identification (may equal to +CGMM)

+GMR

6.1.6

mand.

request TA revision identification (may equal to +CGMR)

+GSN

6.1.7

opt.

request TA serial number identification (may equal to +CGSN)

+GOI

6.1.8

opt.

request ISO system global object identification of the TA (general format defined in ITU‑T Recommendation X.208; encoding rules in ITU‑T Recommendation X.209)

+GCAP

6.1.9

mand.

request overall capabilities of TA; the response code for a TA building on the present document shall be +CGSM

+GCI=<T.35>

6.1.10

opt.

selects the country of installation for the TA using ITU‑T Recommendation T.35 Annex A country codes

5.9 PCCA STD‑101 [17] select wireless network +WS46

PCCA STD‑101 [17] includes a command to select the cellular network (Wireless Data Service; WDS) to operate with the TA. PCCA calls this as WDS‑Side Stack Selection. This command may be used when TA is asked to indicate the networks in which it can operate.

Table 11: +WS46 parameter command syntax

Command

Possible response(s)

+WS46=[<n>]

+WS46?

<n>

+WS46=?

(list of supported <n>s)

Description

Set command selects to WDS side stack <n> to be used by the TA. Read command shows current setting and test command displays side stacks implemented in the TA.

Defined values

<n>:

12 GSM digital cellular

refer PCCA STD‑101 [17] for other values

Implementation
Mandatory in PCCA STD‑101, but optional for GSM.

5.10 Informative examples

When beginning to build a communication link, a general TE application controlling a TA needs to determine the TA and the ME to which it is connected. V.25ter [14] has seven commands for TA identification from which four are mandatory to be implemented in a TA. An example of this command sequence requesting manufacturer (+GMI), model (+GMM), revision (+GMR) and serial number (+GSN) information would be:

AT+GMI

Manufacturer ABC

OK

AT+GMM

GSM Ultimate Data Device

OK

AT+GMR

1.00

OK

AT+GSN

987612345‑123

OK

The maximum lengths of the information responses are defined to be 2048 characters, but it is recommended that they are kept as simple as in the example. The serial number command is defined as optional. Another optional command is Global Object Identification command (+GOI) which should return the object identifiers of ITU‑T Recommendation X.208 as numeric strings delimited by periods. The Complete Capabilities List command (+GCAP) should indicate the major capability areas of the TA. The support of different areas is presented in the response of +GCAP command. Each area may be presented by the selection command name of a specific capability area (e.g. +FCLASS for fax support) or some other predefined response. For instance, a GSM TA with fax capabilities could respond as follows:

AT+GCAP

+GCAP: +CGSM,+FCLASS,+W

OK

The first supported area in the response is presented with +CGSM. It is the response text to show that some or all GSM commands of the present document are supported. Second response text (+FCLASS) informs that some fax or voice capabilities are present, and the third text (+W) about the presence of wireless commands as specified by PCCA STD‑101 [17]. Command +FCLASS=? (refer e.g. ITU‑T T.31 [11] and T.32 [12]) should be used to query the supported fax capabilities and +WS46=? to query the wireless data services available:

AT+FCLASS=?;+WS46=?

0,1,2,2.0

(12)

OK

The TA of this example supports GSM data services, and fax service class 1 (TIA‑578‑A), 2 (manufacturer specific) and 2.0 (ITU‑T T.32 [12]/ TIA‑592).

The present document defines commands for ME identification which are similar to those for TA identification in V.25ter [14], for an example:

AT+CGMI

Mobile Manufacturer XYZ

OK

AT+CGMM

GSM Phone 1234

OK

AT+CGMR

1.00

OK

AT+CGSN

123456121234561

OK

Manufacturer, model and version commands work similarly as for TA, except that the serial number query returns the International Mobile Station Equipment Identity (IMEI) number. IMEI is fifteen digits long and consists of a type approval code, a final assembly code, a serial number and a spare digit (refer GSM 03.03 [7]). When the TA is implemented inside ME, the responses for both TA and ME queries will most likely follow the responses of ME identification.