Home · All Classes · Grouped Classes · Annotated · Functions

[Previous: Modem Emulator - Identification] [Next: Modem Emulator - Supplementary Services]

Modem Emulator - Network

The AT commands in this section are used for accessing network services on GSM and similar networks.

AT+CIMI Request International Mobile Subscriber Identity

The AT+CIMI command retrieves the IMSI value from the SIM.

CommandPossible Responses
AT+CIMI<IMSI>
AT+CIMI+CME ERROR: 10

An error will be returned if there is no SIM present, or the SIM is still being initialized and the IMSI is not available yet.

Conforms with: 3GPP TS 27.007.

AT+CNUM Subscriber Number

The AT+CNUM command retrieves the MSISDN's related to the subscriber from the SIM.

CommandPossible Responses
AT+CNUM
    +CNUM: [<alpha>],<number>,<type>[,<speed>,<service>[,<itc>]]
    ...

Execution command returns the MSISDN's related to the subscriber from the SIM. If the subscriber has different MSISDN's for different services, each MSISDN is returned on a separate line.

<alpha>String indicating the name of a phonebook entry corresponding to <number>. Usually this is empty.
<number>String type phone number of calling address in format specified by <type>.
<type>Type of address octet in integer format (refer 3GPP TS 24.008).
<speed>GSM bearer speed value. See 3GPP TS 27.007 for more information.
<service>
  • Asynchronous modem
  • Synchronous modem
  • PAD access
  • Packet access
  • Voice
  • Fax
<itc>
  • 0 3.1 kHz
  • 1 UDI

Conforms with: 3GPP TS 27.007.

AT+COPS Operator Selection

The AT+COPS command is used to select operators, to request the current operator details, and to request a list of the available operators.

CommandPossible Responses
AT+COPS=[<mode>[,<format>[,<oper>[,<AcT>]]]]OK, +CME ERROR: <err>
AT+COPS?+COPS: <mode>[,<format>,<oper>[,<AcT>]]
AT+COPS=?+COPS: [list of supported (<stat>,long <oper>,short <oper>,numeric <oper>[,<AcT>])][,,(list of supported <mode>s),(list of supported <format>s)]

Set command forces an attempt to select and register the network operator. <mode> is used to select whether the selection is done automatically by the MT or is forced by this command to use operator <oper>. If the selected operator is not available, no other operator shall be selected (except for <mode>=4). The selected operator name format shall apply to further read commands. <mode>=2 forces an attempt to deregister from the network.

Read command returns the current mode, the currently selected operator and the current access technology (AcT). If no operator is selected, <format>, <oper>, and <AcT> are omitted.

Test command returns a set of five parameters, each representing an operator present in the network. Each set consists of a <stat> integer indicating the availability of the operator, long and short alphanumeric names for the operator, the numeric name for the operator, and the access technology.

<mode>
  • 0 automatic
  • 1 manual
  • 2 deregister from the network
  • 3 set only <format>
  • 4 manual/automatic; if manual selection fails, use automatic
<format>
  • 0 long format alphanumeric <oper>
  • 1 short format alphanumeric <oper>
  • 2 numeric <oper>
<oper>String type indicating the name of the operator according to <format>.
<stat>
  • 0 unknown
  • 1 available
  • 2 current
  • 3 forbidden
<AcT>
  • 0 GSM
  • 1 GSM Compact
  • 2 UTRAN

Conforms with: 3GPP TS 27.007.

AT+CREG Network Registration

The AT+CREG command control the presentation of unsolicited network registration changes.

CommandPossible Responses
AT+CREG=[<n>]OK, +CME ERROR: 3
AT+CREG?+CREG: <n>,<stat>[,<lac>,<ci>]
AT+CREG=?+CREG: (0-2)

Set command controls the presentation of an unsolicited result code +CREG: <stat>[,<lac>,<ci>] when there is a change in the network registration status.

Read command returns the presentation value and the current network registration status.

<n>
  • 0 disable network registration result code
  • 1 enable network registration unsolicited result code +CREG: <stat>
  • 2 enable network registration unsolicited result code +CREG: <stat>[,<lac>,<ci>]
<stat>
  • 0 not registered and not currently searching for a network
  • 1 registered, home network
  • 2 not registered and searching for a network
  • 3 registration denied
  • 4 unknown
  • 5 registered, roaming
<lac>String type, indicating the two byte location area code in hexadecimal format.
<ci>String type, indicating the two byte cell ID in hexadecimal format.

Conforms with: 3GPP TS 27.007.

[Previous: Modem Emulator - Identification] [Next: Modem Emulator - Supplementary Services]


Copyright © 2007 Trolltech Trademarks
Qtopia 4.3.0