Setting / testing the COM interface
Setting the GSM radio transfer rate
Registering in the GSM network / PIN entry
Setting up and clearing down connections
Troubleshooting
The GSM module is a GSM terminal for transmitting data, faxes and SMS (short message service) text messages in GSM networks (GSM = global system for mobile communication).
The GSM Module M1 comprises the following components:
• GSM transceiver;
• Data and power supply unit;
• Serial interface (V.24) for data transmission and control;
• Manufacturer-specific interface for DC power supply, external antenna and audio
signals.
When the GSM Module M1 is registered in the network, it serves as a standard modem for fax and data transmission f or a computer connected to the V.24 interface. Special AT+C commands as per GSM 07.07 or GSM 07.05 for controlling GSM-related
functions (PIN entry, network selection, etc.) and for the short message service are
available via the V.24 interface.
Features
The GSM Module M1 offers the following features:
• Transparent data transmission at 2400, 4800 and 9600 bps (BS24,25,26);
• Group 3, Class 2 fax transmission conforming to TR-29.2 at 2400, 4800, 7200
and 9600 bps;
• Short message service mobile originated (SMS MO, TS22)
• Short message service mobile terminated (SMS MT, TS21)
Notes on safety
The GSM Module M1 conforms to GSM standards. Ho we v er, note that the device can
still emit radiation and therefore must not be used or e v en s witched on in certain environments.
• Leaving the GSM Module M1 switched on in airplanes is prohibited by law.
• The module must not be used near service stations, fuel depots, chemical plants or
blasting operations.
• The module may also interfere with the functioning of electronic medical devices
(hearing aids, pacemakers, etc.) that are not properly shielded. In case of doubt, consult your physician. Do not touch the antenna during a call.
• Using the GSM Module M1 in the direct vicinity of electronic devices (radios, televisions, PCs, etc.) can cause slight interference.
5
GSM Module M1
Description of the interfaces
The GSM Module M1 has interfaces for the power supply, for control and data transmission, for an external antenna and for a SIM card as well as an LED that indicates
operating statuses. These interf aces will be described below . F or a detailed description
including pin assignment, see the section entitled “Technical data”.
SIM card
The GSM Module M1 must have a SIM car d to operate in the GSM network. To install
this card, press the yellow button to eject the carrier and insert the SIM in the carrier.
Then push the carrier into the housing, making sure that it locks into place.
V.24 interface
The serial interface is used f or cont rolling the GSM Module M1 as w ell as for data, fax
and SMS transmission.
Connector:9-pin DSUB (female) conforming to DIN 41652
Pin assignment:See the section entitled “Technical data”
Logic:V.24 asynchronous
Baud rates:2400 - 19200 baud, autobauding
Parity:None
Character format:8 data bits
Stop bits:1
Level:Conforming to CCITT Recommendation V.28
Hybrid connector (manufacturer-specific)
The hybrid connector contains the power supply, ignition (for switching the device on
and off) and the connection f or the external antenna (GSM 900 MHz antenna). It is connected via the cable supplied.
Pin assignment:
Meaning of pins:See the section entitled “Technical data”.
Function LED
LED offDevice switched off – not ready
LED flashing slowlyDevice switched on – ready
LED flashing rapidlyDevice switched on – connection setup
For a detailed function indication, use the corresponding AT commands.
6
Installation / startup
Mounting the module
Two standard options are available for mounting the GSM Module M1 :
• Retaining clip
•Velcro
Before applying the velcro, make sure that the surface of the M1 (recess provided in
center of base) and the corresponding surface are free of dust and oil.
The mounting location must comply with the following environmental conditions:
• Temperature range -20 °C – +55 °C for full operability
• Temperature from insolation < 110 °C
• Light condensation permissible
Power supply / power consumption
Cable assignment
Po w er is supplied via the cable included in the scope of supply. The rele v ant wires ar e
marked as follows:
RedPOWER +8 V – +24 V DC
VioletIGNITION(ON/OFF)
BrownGNDGround
Switching the GSM module on/off
The GSM Module M1 switche s on when a positive voltage of 5 - 24 V is applied to IGNITION if a voltage of 8 - 24 V is simultaneously applied to POWER.
The module switches off when a voltage of less than +1 V is applied to IGNITION. An
existing call is correctly disconnected. This voltage must be applied for a minimum of
550 ms.
Important:
Be sure to switc h of f the module using IGNITION; simply disconnecting the pow er supply at POWER can damage the SIM if it is being written to at the time.
Voltage range
Nominal voltage:13,2 V DC
Extreme voltage:8 - 32 V DC
7
Installation / startup
Overvoltage / undervoltage
Correct operation of the M1 in send mode cannot be guaranteed if input voltages fall
below 8 V.
When input voltages exceed 32 V, the supply voltage is disconnected in order to protect the electronic components from an overvoltage.
Input voltages >100 V destroy the module.
Protection / on-board network connection
When installed, the M1 must be protected by a medium time-lag fuse with a nominal
value of 1A or a fast f use with a nominal value of 1.6 A. For vehicle installation the M1
must be directly connected to the battery.
Important:
Do not connect the ground cable to the power supply, since this could result in a short
circuit via the
Power consumption
antennacable.
Supply
voltage
12 V130 mA70 mA150 mA220 mA500 mA
24 V70 mA45 mA150 mA120 mA500 mA
Channel
search
StandbySend mode
TypicalMax.TypicalMax.
Setting / testing the COM interface
In order to control the GSM Module M1 and transfer data via the serial interface (COM
port), the interface parameters must be set.
The parameters settings are as follows:
COM port:1-4, depending on which one the M1 was connected to
Baud rate:2400 - 19200 baud, autobauding
Data bits8
ParityNonecorresponds to 8N1
Stop bits1
DuplexFull
For instr uctions on how to set these parameters, see the user guide for the computer
or terminal program used.
H
8
Installation / startup
In order to test the interface and your set tings, enter AT. The GSM module should then
respond with OK. If it does not do so, configure a different interface in the communication program and try again. Also check the cable. When this test has been successfully completed, check the functionality of the GSM module by entering AT&T1. This
command activates a test loop. From now on, all the characters entered from your
GSM module should be echoed on the computer. Terminate the test by entering the
escape sequence +++. If the test is acknowledged by the NO CARRIER code, the
GSM module’s data functionality is operating correctly.
Setting the GSM radio transfer rate
The transf er r ate (baud rate) via the r adio interf ace can be set , for example, using a terminal program. The ATBn command allows you to set the trans f er rate in the GSM network.
Enter the ATI8 command to display the current list.
ATBn[n=7,11,13,25,27,29,70,99]
OptionEffect
Bit/sSynchronismDistant station
ATB999600AsynchronousMode set to automode
ATB72400AsynchronousV.22bis
ATB114800AsynchronousV.32
ATB139600A synchronousV.32
ATB252400AsynchronousV.110 ISDN
ATB274800AsynchronousV.110 ISDN
ATB299600AsynchronousV.110 ISDN
ATB709600FaxFax Group 3
Example:
Enter:ATB13
M1Permanently switches mode to 9600 bit/s.
Enter:ATB7
M1Permanently switches mode to 2400 bit/s.
9
Installation / startup
Registering in the GSM network / PIN entry
In order for the GSM module to access the GSM network, you may have to enter the
PIN for the SIM card. You can do this using the AT+CPIN=“....” command. The
A T+CPIN? command allo ws y ou to inquir e whether or not y ou must enter a passw or d
and what type of password must be entered. The following blocks are possible:
• PIN or PUK
• Device code or PUK of the device code
• Network link: the network operator blocks the device so that, without a network
PIN, it runs only in its own network. If you wish to operate the device in another network, you must enter the PIN or PUK.
• Service operator link: similar to the network link but implemented by the service operator rather than the network operator (again, you must enter PIN or PUK).
Note:
The PIN (4-8 positions) is the PERSONAL IDENTIFICATION NUMBER and must be entered to unblock the device. You are allowed 3 attempts to enter your PIN. If you enter
the wrong PIN 3 times in a row, the PIN is blocked and must be unblocked by means
of a PUK (PIN UNBLOCKING KEY). You are allowed 10 attempts.
You can enter the PUK any number of times for the network link and service operator
link.
Example:
Enter:AT+CPIN?Queries the password to be entered.
GSM module+CPIN: SIM PINPIN for the SIM card; must be entered.
Enter:AT+CPIN=1234PIN entry
M1OKPIN was correct; the SIM card can be
accessed.
After entering the PIN, y ou can enter the AT+CREG? command to determine whether
the GSM module is registered in the GSM network.
Setting up and clearing down connections
Normally, you will set up connections with the aid of your communication program.
Howev er, y ou can also manually instr uct y our GSM module to set up and clear do wn a
connection. The simplest sequence would be as follows: Load your communication
program and enter the following command:
10
Installation / startup
Enter:AT&FLoads factory configuration.
GSM moduleOK
Enter:ATD<tel. no.>The dial command
M1Dials the telephone number and informs
you when it is successful.
CONNECT xxxx"xxxx" is the baud rate for the
connection. The GSM module is now
operating in transparent mode, i.e. entries
you make via the k eyboard are transmit ted
to the distant end.
Pause
Enter:+++Interrupt command:
Press the “+“ key three times in rapid
succession.
Pause
M1 returns:OKChanges to command mode.
Enter:ATHCommand to go on-hook
M1 returns:OKThe connection is cleared down; M1 has
gone on-hook.
For more information, see Technical reference sec7tion.
Troubleshooting
GSM module can still be accessed
As long as the GSM module is still responding to commands, you can enter the AT&F0
command to load the factory configuration. In any case, this will permit further operation.
• Check whether the communication program is configured for the serial interface to
which the GSM module is connected.
• Check the parameters of your communication program. The following settings will
always work:
Transfer rate2400 – 19200 baud
Data bits8
ParityNone
Stop bits1
DuplexFull
Check whether other programs (e.g. printer spooler) are interfering with the functioning of the communication program. Restart your computer without additional programs, with the operating system alone (switch off and then on).
11
Installation / startup
Connection cannot be set up
A number of factors can prevent connection setup.
Own errors
• No SIM card in the module.
• The PIN or another block is not unblocked.
• The GSM data module is not registered, i.e. it has not or has not yet been able to
register in the network.
• The M1 was manually set to an unavailable network operator by means of
+COPS=1.
• The M1 was signed off of the network by means of +COPS=2.
• Invalid characters in the dial string.
• Dial string contains more than 30 characters.
• Command line contains more than 39 characters.
System errors
• A connection is already set up.
• The call is not answered within 60 seconds after dialing because the distant station:
– is not ready,
– is not a modem,
– does not support the selected operating mode.
The GSM module returns NO CARRIER.
• The distant station is busy. The GSM module returns BUSY.
• Before the connection can be set up, the GSM module receives a signal from the
computer and returns NO CARRIER. If no connection is set up, the GSM module
goes on-hook and returns to command mode.
• The GSM network does not or does not yet support the fax/data modes. The GSM
module returns NO CARRIER.
• The GSM module is not registered in the GSM network. It returns NO DIALTONE.
• You have manually dialed a forbidden network operator; the radio modem no longer
registers.
12
Installation / startup
Incorrect characters on screen
• Duplicate characters on screen
Cause: Your communication program is set to half-duplex or echo.
Remedy: Enter A TE0 to deactivate command echo in command mode or
deactivate the echo in the communication program.
• Only the characters from the distant station are incorrect
Cause:The GSM module’s data format does not match that of the distant sta-
tion.
Remedy: Set the parameters in your communication program accordingly (data
bits, parity , stop bits to 8, N, 1).
GSM module does not dial
Cause: A cable has been disconnected.
Remedy: Make sure that all cables are securely connected. T ighten all connecting
screws.
Cause: The GSM network does not or does not yet support the fax/data
modes. The GSM module returns NO CARRIER.
Remedy: Ask your network operator when these modes will be supported in
your network.
Cause:The GSM module has activated barred dialing.
Remedy: Switch the GSM module off and then on.
Cannot receive fax
Cause:Some fax programs that support TR-29.2 Class 2 expect the bits of the
fax code to arrive in an order different from the one defined in the
SP2388 specification. If the GSM module transmits the fax data bits to
the computer in the wrong order, the fax progr am cannot receiv e whole
fax pages. For this reason, the GSM module has been equipped with
the AT+FOPT=n command.
Remedy: Enter one of the following two commands and then c heck whether the
system is functioning correctly: AT+FOPT=1,0 (bit order as specified in
TR-29.2 Class 2, Draft SP2388); AT+FOPT=1,1 (opposite bit order, fac-
tory configuration for all countries).
Cause:The GSM network does not yet support the fax/data modes. The GSM
module returns NO CARRIER.
Remedy: Ask your network operator when these services will be supported in
your network.
Cause:Your network operator has not released your SIM card for the fax/data
modes.
Remedy: Ask your network/service operator to release these features.
13
Overview of AT commands
General AT commands
A/Repeat previous command line
+++Switch to command mode when connected
ATAAnswer call
ATDxDial the dial string "x"
ATDIxDial ISDN number "x"
ATDLRedial last telephone number used
ATDS=nDial stored telephone number
ATE0Disable command echo
ATE1Enable command echo
ATHDisconnect existing connection
ATInDisplay product data
ATI0Display product code for GSM module
ATI1Display software checksum
ATI2Determine firmware ROM checksum
ATI8Display supported modes
ATI9Display device ID
ATO0Switch from command mode to transparent mode
ATQ0Display result codes
ATQ1Do not output result codes to computer
ATSn=xAssign value "x" to S-register "n"
ATSn?Read value of S-register "n"
ATS0=nGo off-hook after n-th ringing signal (n = "1" - "5")
ATS0=0No automatic answering of calls
ATV0Display result codes as digits
ATV1Display result codes as text
ATX0Display connection without baud rate. Ignore busy signal.
ATX1Display connection with baud rate. Ignore busy signal.
ATX2Same as A T X1
ATX3Same as ATX1 but report BUSY
ATX4Same as A T X3
ATZnLoad user profile "n"
AT&C0DCD always ON
AT&C1DCD line ON only in the presence of carrier signal (connection)
AT&D0Ignore DTR status
AT&D1At DTR -> OFF: Command mode without going on-hook
AT&D2At DTR -> OFF: Go on-hook, command mode, auto-answer off
A T&D3At DTR -> OFF: Go on-hook, factory configur ation same as AT&F
AT&FLoad factory configuration
AT&T0Terminate an active test
AT&T1Initiate local digital test loop
AT&VDisplay current configuration
AT&WnStore current configuration as user profile "n"
AT&YnLoad user profile "n" at pow er-up
14
Overview of AT commands
AT&Zn=xStore telephone number "x" in memory "n"
AT%DnAutomatic dialing with DTR
AT+Fax commands
GSM AT commands (GSM 07.07)
AT+CGMIDisplay manufacturer ID
AT+CGMMDisplay model ID
AT+CGMR Display version of GSM module
AT+CGSNDisplay serial number (IMEI)
AT+CHUPTerminate all calls
AT+CEERDisplay reason last call was disconnected
AT+CMEEExtended error messages to GSM 07.07
AT+CREGDisplay registration status
AT+COPSCommands relating to network operator selection
AT+CPINEnter PIN and query blocks
AT+CPIN2Enter PIN2 and query PIN2 blocks
AT+CPWDChange PIN
AT+CSQDisplay signal quality information
AT+CKPDKey simulation
AT+CXXSNSingle-numbering parameterization
AT+CXXMOCParameterize for outgoing calls
AT+CPBSSelect phonebook
AT+CPBRRead phonebook entry
AT+CPBWWrite phonebook entry
AT+CBSTSelect bearer service type
AT+CRCCellular result code
AT+CLIPCalling line identification presentation
AT+CPASPhone activity status
AT+FCLASSSelect mode
AT+CXXCIDCard identification
SMS AT commands (GSM 07.05)
AT+CSMS Select message service
AT+CPMS Preferred message storage
AT+CMGF Message format
AT+CSCA Service center address
AT+CMGR Read message
AT+CMGS Send message
AT+CMGWWrite message to memory
AT+CMGDDelete message
AT+CNMI New message indications
AT+CMGLList messages
Please note: The GSM module also recognizes some AT-standard commands that it
does not execute, but it ignores these commands and returns either OK or ERROR.
15
Technical reference section
The AT standard
With the development of intelligent modems, an command language was introduced
in the U.S . called the A T standard. O ver the past f ew year s, this language has been consistently enhanced and has gained international acceptance. Most modems and communication programs work with this command language or can be set to use it.
AT command line prefix
The A T standard is a line-oriented command language. Eac h command line must begin
with the letters AT, with the sole exception of the A/ command. The commands are introduced at the end of this section. The letter s A T are also known as the at tention code.
The attention code signals your GSM module that one or more commands will follow.
The GSM module examines this command line prefix.
Connecting to your GSM module
You have connected your GSM module to your PC. You can now connect to your GSM
module. To do so, start up a communication program on your PC.
Set the following transmission parameters (characteristics):
COM interface:1 - 4, depending on which one the M1 is connected to
Rate: 2400 - 19200 baud
Data bits:8
Parity:None
Stop bits:1
Duplex:Full
The GSM module supports autobauding on the V.24 interface with transfer r ates fr om
2400 to 19200 baud and the data format 8N1.
Command syntax of the AT standard
• Command lines must always begin with AT.
• Multiple commands can be combined on one command line. To improve legibility,
you can enter spaces between the individual commands. The GSM module ignores
these spaces.
• Commands that are specified in this manual with "0" in the last position can also be
entered without this "0". Example: ATQ has the same effect as ATQ0.
• A command line must end with a <CR> character, which is entered by pressing "Enter" on the keyboard. This fact will not be mentioned again in this manual.
16
Technical reference section
• The <CR> character can be followed by a <LF> character but this character will be
ignored by the GSM module.
Sample command lines:
ATH
ATS7?Q0E1
ATD0123456789
• When making corrections, use the Backspace key or Ctrl-H to delete the character
to the left of the cursor.
• The command line is not executed until the <CR> character is received.
Loading the factory configuration and displaying a configuration
The A T&F and AT&V commands allow y ou to load and display the f actory configuration.
Enter:AT&F0
M1 returns:OK
Enter:AT&V
M1:Loads the factory configuration and transfers it to the PC.
The settings are displayed on the screen.
ATVn - Result codes
The GSM module acknowledges all commands.
Example:
Enter:AT&F0
M1 returns:OK
The ATVn command allows you to determine whether result codes will appear as alphanumeric text or a numerical code:
ATVn[n=0,1]
OptionResult
A TV0Selects the short result code format (digits). Useful if the GSM module is
to be controlled from the computer using a communication program.
ATV1Selects the long result code format. Factory configuration.
17
Technical reference section
Overview of the short and long result code formats
Short
Long codeMeaning
code
0OKCommand executed, no error
1CONNECTConnection set up
2RINGRinging signal detected
3NO CARRIERConnection not set up or disconnected
4ERRORIncorrect command or command too long.
The AT+CMEE= 2 command allows you to display
extended error messages to GSM 07.07.
6NO DIALTONEConnection cannot be set up.
7BUSYDistant station busy
10CONNECT 2400Connection at 2400 bit/s
30CONNECT 4800Connection at 4800 bit/s
32CONNECT 9600Connection at 9600 bit/s
Please note:
In both cases, result codes are made up of ASCII characters. Long result codes must
begin and end with <CR> and <LF> characters. Short result codes only end with a
<CR> character.
A/ - Repeat previous command line
The A/ command allows you to reissue the previous command line in its entir ety. This
is the only command that is not preceded by AT and that does not have to end with
<CR> (Enter). A/ is mainly used when the line was busy or the call was not answer ed.
In this case, the GSM module repeats the dial command.
Example:
Enter:AT D 01999341
GSM module:BUSY
Enter:A/
GSM module:Reissues the command (= D 01999341).
18
Technical reference section
Setting up and clearing down connections
Once you have read through this section, y ou will be able to use y our GSM module together with your communication program to perform the following functions:
• Interrupt a connection using the escape command.
• Go off-hook.
• Set up a connection by manually dialing the telephone number.
• Store a telephone number.
• Dial a stored telephone number.
• Answer a call.
• Switch to auto-answer.
Operating modes
The GSM module operates in two different modes:
• Command mode
• Transparent mode
Command mode
When you switch on y our sy stem, the GSM module is in command mode and is ready
to receive and execute your commands. All characters that the GSM module receives
via the COM interface in this mode are interpreted as commands and, if a phone connection is present, are not transferred to the distant station.
Transparent mode
In transparent mode, the GSM module transf ers e v ery c har acter sent and recei ved via
the COM interface just as it is.
Escape command
Befo re attempting to dial your firs t call, y ou must kno w ho w to inter rupt or disconnect
a call at any time. This involves the following two steps:
•Enter
• Disconnect the call by entering ATH.
Example:
Situation: The GSM module is operating in transparent mode, i.e. a connection is set
up to a distant station.
Change to command mode:
• Do not press any key for at least one second.
• Press the
• Do not press another key for at least one second.
The GSM module switches to command mode, i.e. it interrupts the flow of data and
to switch to command mode.
key three times in rapid succession (within one second).
19
Technical reference section
returns the result code OK. The connection is not y et cleared do wn. T he pause before
and after the "+" c har acters ensur es that the GSM module will interpr et this command
as the escape command in transparent mode and will then switc h to command mode.
Going on-hook
• Disconnect the call by entering ATH (see next section).
ATH - Go on-hook
In command mode, the ATH command causes the GSM module to disconnect an existing call. The call is also disconnected if the distant station goes on-hook or the radio
connection in the GSM network is interrupted.
ATOn - Return to transparent mode
If you wish to interrupt the data flow only briefly, you can use the ATOn command to
return your GSM module to transparent mode, i.e. the data flows once again.
ATOn[n=0]
OptionResult
ATO0Switches the GSM module back to transparent mode when it was previ-
ously switched to command mode.
Setting the transfer rate
The GSM module supports the following tr ansfer rates:
Transfer rates
Rate
Bit/s
Bearer
service
Corresponding modem types
240024Analog modems conforming to V.22bis,
ISDN adapter to V.110 ISDN
480025Analog modemso conforming to V.32 with
fallback, ISDN adapter to V.110 ISDN
960026Analog modems conforming to V.32,
ISDN adapter to V.110 ISDN
To change and permanently set the rate for the radio link, use the ATBn command.
20
Technical reference section
Example:
Your PC is set to 19200 baud, i.e. higher than the maximum GSM transfer rate of 9600
bit/s. This means that the GSM module receives more data from the PC than it can
transfer to the GSM network. In order to pr e vent a data o verflo w, the module must be
able to interrupt the data flow from the PC. T his is accomplished b y means of the R TS/
CTS hardware data flow control.
ATBn - Select GSM module’s operating mode
The ATBn command also allows y ou to set the GSM module’s operating mode permanently for all connections.
the baud rate set for the PC.
Factory configuration
ATB139600AsynchronousV.32
ATB252400AsynchronousV.110 ISDN
ATB274800AsynchronousV.110 ISDN
ATB299600AsynchronousV.110 ISDN
ATB709600AsynchronousFax Group 3
Example:
Enter:ATB13
GSM module:Permanently switches the mode to 9600 bit/s with the result that
all radio connections are permanently set to a transfer rate of
9600 bit/s.
Enter:ATB99
GSM moduleAutomatically changes to the rate of the COM interface.
21
Technical reference section
ATD - Dial a telephone number
In order to dial a telephone number, enter the ATD command followed by the number.
Example:
Enter:ATD 0199341
GSM module Dials the telephone number 0199341.
and returns:CONNECT 2400
As soon as the module detects the carrier for the distant station, it returns the CONNECT result code. Data transfer can now begin.
Valid dial strings
• A dial string comprises digits from "0" to "9" (the telephone number), letters "A" to
"C" and the special dialing characters "i","+" and ";".
iThis character must be located between the ATD command and the
telephone number (ATDix) and causes the GSM module to switch to
ISDN mode for this call.
+This character must be located at the beginning of a dial string and
serves to access the international exchange of a GSM network.
Example:
You are in Sweden and wish to set up a connection to Munich.
Dial: ATD+4989<telephone number>
• A dial string must contain no more than 30 characters. A longer string will not be
dialed.
• A command line including the dial string must not exceed 39 characters. Although
longer command lines are displayed, they are rejected in their entirety.
Example:
ATD0045890235168338
This dial string comprises 1 6 c har acter s. T he command line on the screen contains
19 characters.
22
Technical reference section
ATDL - Redial last telephone number used
This command allows you to redial the last telephone number that you dialed, regardless of whether the last dialing attempt was successful.
Example:
Enter:ATD123456789GSM module dials 123456789
GSM module:BUSYT he number is busy.
Enter:ATDL
GSM module:Redials 123456789.
AT%Dn - Automatic dialing with DTR
The AT%Dn command allows you to activate and deactivate automatic dialing of the
telephone number stored in telephone number memory "0". The number is dialed if the
computer sets the DTR control line connected to the COM interface to ON.
AT%Dn[n=0..1]
OptionResult
AT%D0Deactivates automatic DTR dialing.
AT%D1Activates automatic DTR dialing if DTR switc hes fr om OFF to ON;
dials the telephone number "x" that was stored in telephone number
memory "0" by means of the AT&Z0=x command.
Example:
Enter:AT&Z0=123456789 Stores the telephone no. "123456789"
in telephone number memory "0".
GSM Data_Module: OKTelephone number has been stored.
Enter:AT%D1Activates DTR dialing.
GSM module:OKCommand has been executed.
DTR is OFF
DTR switches ON"123456789" is dialed automatically.
DTR switches OFFGSM module goes on-hook.
23
Technical reference section
ATA - Answer a call
The GSM module does not automatically answer calls after you switc h on your computer. In accordance with the factory configuration, it does not go off-hook. The ATA
command causes your GSM module to go off-hook when the phone rings. You determine whether or not you wish to answer.
ATS0=n - A uto-answer mode
The ATS0=n command allows you to configure your GSM module so that it will automatically answer calls. "n" represents the number of ringing signals before the call is
answered. Permissible values are from "0" to "5".
ATS0=n[n=0..5]
OptionResult
ATS0=0No auto-answer: incoming calls are ignored.
ATS0=1The GSM module goes off-hook after the first ringing signal.
...etc.
ATS0=5The GSM module goes off-hook after the fifth ringing signal.
You can use the ATA command to answer calls at any time, regardless of these settings.
Displaying and storing a configuration
The GSM module works with a set of parameters that determine its functioning. This
set of parameters is called the active configuration profile. V alues f or these parameters
are predefined in a factory configur ation that you can use at any time when you load it
using the AT&F command. The GSM Module M1 allows you to modify the active configuration profile by means of AT or S-register commands. These options will be described in subsequent sections. When you switch off the GSM module, any changes
you made to the active configuration pr ofile ar e lost. W hen you switch it on again, the
active configuration profile once again corresponds to the factory configuration. However, the GSM module has two non volatile memory bloc ks in whic h y ou can st ore configuration profiles (AT&Wn command, page 29). These blocks ar e user pr ofiles "0" and
"1". When you switch on y our s y stem, the GSM module loads the user profile that y ou
set by means of the AT&Yn command. For more information, see the section entitled
“AT&Yn - Configuration at power-up”.
Please note:
When the module is supplied, both user memories contain the factory profile.
24
Technical reference section
AT&F - Load factory profile
This command allows you to load the factory profile that was supplied with the GSM
module.
AT&F
OptionResult
AT&FIf your GSM module stops functioning due to a faulty configuration,
this command resets the module to the factory configuration.
AT&V - Display configuration
The A T&V0 comman d allows yo u to display the activ e configuration prof ile on the screen.
Enter: AT&V
The GSM module then transfers the inf ormation to the computer, which displays it on
the screen.
Example:
You have a GSM module and have loaded the factory configuration by means of the
AT&F command. Now enter the AT&V command. The following is displayed on the
screen:
This section describes the standard AT commands that allow you to configure your
GSM module. These commands are grouped according to subject area.
Screen outputs
Limits of screen outputs
When you receive data that is r eproduced on the screen (data ec ho), the text is usually
shifted upward when the edge of the screen is reached. When you generate screen
outputs using A T commands (e.g. AT&V), a maximum of 30 lines is display ed for each
command. If, for example, you enter the AT&V command several times on the same
line (AT&V&V&V), a maximum of 30 lines is displayed.
ATEn - Command echo
The A TEn command af f ects the echo of c haracters that the GSM module receiv es from
your computer when the GSM module is in command mode.
ATEn[n=0,1]
OptionResult
ATE0Command echo off: Select the ATE0 setting when the computer itself is
echoing keyboar d entries on the scr een and no command ec ho is expected from the GSM module. Please note: If you enter the ATE0 command
and your computer is expecting char acter echo, the computer will no longer display the entered characters on the screen. You are then working
blind.
ATE1Command echo on: Select the ATE1 setting when your computer is con-
figured to expect the characters received by your GSM module to be returned. Factory configuration.
ATQn - Activate and deactivate result codes
The A TQn command allo ws you to control the transmission of r esult codes as ackno wledgments to AT commands (e.g. OK, ERROR, RING).
ATQn[n=0,1]
OptionResult
ATQ0Outputs result codes.
ATQ1Suppresses result codes. Important for unattended operation.
26
Technical reference section
ATXn - Extended connect message
ATXn [n=0..4]
OptionResult
A TX0The GSM module returns only the CONNECT code as soon as a satisfac-
tory connection has been set up. A busy signal is ignored.
A TX1The GSM module transmits an extended connect message with transfer
rate information (CONNECT xxxx) as soon as a satisfactory connection has
been set up. For more information on extended result codes, see the AT V1
command. A busy signal is ignored.
ATX2Same as ATX1.
A TX3As in the case of ATX1, the GSM module transmits an extended connect
message. A bus y signal is detected and, if applicable, the BUSY code is
returned.
A TX4As in the case of ATX1, the GSM module transmits an extended connect
message. A bus y signal is detected and, if applicable, the BUSY code is
returned.
Control line options
AT&Cn - Data Carrier Detect (DCD) options
This command affects the DCD line connected to the computer’ s serial interface.
AT&Cn[n=0, 1]
OptionResult
AT&C0The GSM module sets the DCD control line connected to the computer’s
serial interface to ON regardless of the data carrier status of the distant
station.
AT&C1DCD specifies the data carrier status of the distant station. DCD ON
indicates that a connection exists.
27
Technical reference section
AT&Dn - Data Terminal Ready (DTR) options
AT&Dn[n=0..3]
OptionResult
AT&D0The GSM module ignores the status of the DTR control line connected
to the COM interface.
A T&D1When the DTR line switches from ON to OFF, the GSM module changes
to command mode. The existing connection to the distant station is not
cleared down.
AT&D2When the DTR line switches from ON to OFF, the GSM module sets up
a connection to the distant station, switches to command mode and
deactivates auto-answer mode. Auto-answer can be reactivated by
resetting DTR to ON.
A T&D3The transition of DTR to OFF has the same effect as an AT&F command,
i.e. the factory configuration is loaded. An existing connection to the distant station is cleared down.
Data flow control
Even if your PC is set, for example, to 19200 baud, the maximum GSM rate that can
be used is 9600 bit/s. A higher setting causes the GSM module to receive more data
from the PC than it can transfer to the GSM network. In order to prevent a data overflow, it must be able to interrupt the data flow from the PC. This is accomplished by
means of the RTS/CTS hardware data flow control, which switches over the COM interface so as to interrupt the RTS (computer) and CTS (GSM module) control lines.
Memory commands
The GSM module is equipped with a 128-byte nonvolatile RAM in whic h the values of
the modifiable S-registers and other values are stored. This section describes the values, how to store them and how to use them.
28
Technical reference section
AT&Zn=x - Store telephone number
The user memory can hold 4 telephone numbers. The AT&Zn= command allows you
to store a dial string in telephone number memory "n" (n represents a value fr om "0" to
"3").
Example:
Enter:AT&Z0 = 01999341
GSM module:OK
The A T&Zn= command sav es only digits and special character s ("i", "+"). It ignores punctuation, spaces and all meaningless characters. The dial string must contain no more
than 20 characters. If you enter a longer dial string, it is not stored and the ERROR code
is displayed on the screen. The AT&Zn= command itself is not stored with the dial
string.
ATDS=n - Dial stored telephone number
The ATDS=n command allows y ou to dial the "n"-th stored telephone number (n r epr esents a value from "0" to "3"). This command dials the dial string as though it were a
telephone number entered directly via the keyboard.
Example:
Enter:ATDS=0
GSM module: 01999341 and initiates the dialing procedure.
AT&Wn - Store configuration
When you modify the active configuration profile using AT or S-register commands,
these modifications exist only in the RAM and are deleted when you switch off your
GSM module. When switched on again, the GSM module loads the configuration from
a nonvolatile memory. The AT&Wn command allows y ou to store y our modifications in
this nonvolatile memory. Two separate memory areas are available for this purpose.
AT&Wn[n=0,1]
OptionResult
AT&W0Stores the active configuration profile in user memory "0".
AT&W1Stores the active configuration profile in user memory "1".
Consequently, you alwa ys have two differ ent user pr ofiles in your GSM module ready
to be called up.
29
Technical reference section
AT&Yn - Configuration at power-up
The A T&Yn command allows you to determine whic h user profile ("0" or "1") will be loaded at power-up.
AT&Yn[n=0,1]
OptionResult
AT&Y0The profile in user memory "0" will be loaded at power-up.
Factory configuration
AT&Y1The profile in user memory "1" will be loaded at power-up.
Please note:
When the module is supplied, both user memories contain the factory configuration.
ATZn - Load user profile
Regardless of how your active configuration profile is currently set up, the ATZn command allows you to reload your own user profile at any time. Any existing connection
is cleared down.
ATZn[n=0,1]
OptionResult
ATZ0Load user profile "0".
ATZ1Load user profile "1".
AT+C commands for GSM
Special AT commands are used for contr olling GSM-r elated functions of the GSM
Module M1 such as PIN entry, network selection and IMEI output and f or controlling the
short message service. These commands start with A T+C and are specified in the Technical Specifications (TS) GSM 07.07 for the general part and GSM 07.05 for SMS from the
ETSI (European Telecommunications Standards Institute). Standardization is not yet complete. Some of the commands implemented in the GSM Module M1 may still be
changed within the framew ork of the standardization process. F or the purpose of fut ure
compatibility, these commands are always prefix ed by +CXX.
Example:
Enter:AT+CXXSN = ?
GSM module+CXXSN: 1=voice/FAX
The implementation of the AT+C commands for GSM-related functions of the GSM
Module M1 is based on TS GSM 07.07 Version 0.1.0.
30
Technical reference section
AT+CGMI - Request manufacturer ID
This command provides you with the name of the module manufacturer.
This command provides you with the serial number of the GSM module. The serial
number has the GSM format.
AT+CGSN
OptionResult
AT+CGSNDisplays the serial number. In GSM, each mobile telephone is
assigned a unique number, known as the IMEI (International Mobile
Equipment Identity).
Example:
Enter:AT+CGSN
GSM module:IMEI: 445199518750
OK
AT+CHUP - Hangup call
This command allows you to terminate all calls.
AT+CHUP
OptionResult
AT+CHUPTerminate all calls.
Example:
Enter:AT+CHUP
GSM module:OK
AT+CEER - Extended error report
This command allows you to q uery the reason why the last call w as disconnected. The
information ret urned can be useful if ther e were problems with connection setup or if
a connection was interrupted.
AT+CEER
OptionResult
AT+CEERDisplays reason last call was disconnected.
32
Technical reference section
Example:
Enter:AT+CEER
GSM module:+CEER: 10,08
OK
AT+CMEE - Report mobile equipment error
If an error occurs while you are processing a command b y means of A T+C, the problem
may be located in the data or GSM section of the M1. For example, if a data connection
is set up, the phonebook cannot be accessed at the same time. Or is the problem in
the SIM card? Is it inserted or has the PIN been omitted? Extended error messages
help you isolate errors more easily. However, you must first enable these messages
from the PC using this command.
AT+CMEE
OptionResult
AT+CMEE=<mode n>Resets the mode.
AT+CMEE?Displays the way in which error messages are reported
to the PC.
A T+CMEE=?Displays the modes supported by the M1 in the form of
a complete list of the values that can be assumed by
<mode n>.
<mode n>n= [0..2]
0The error messages are not interpreted but, generally, only an ERROR
code is returned.
1When an error occurs, an extended message to the PC is gener ated that
specifies the cause of error as a number.
2Same as “1“ except that the error is output as text.
33
Technical reference section
Possible error messages in response to an AT+C command
0Phone failure
1No connection to phone (transceiver part of M1)
2Transceiver-adaptor link reserved
3Operation not allowed
4Operation not supported
5PH-SIM PIN required
10SIM not inserted
11SIM PIN required
12SIM PUK required
13SIM failure
14SIM busy
15SIM wrong
16Incorrect password
20Memory full
21Invalid index
22Not found
23Memory failure
24Text string too long(+CPBW)
25Invalid characters in te xt string
26Dial string too long
27Invalid characters in dial string
30No network service
31Network timeout
100Unknown
Example:
Enter:AT+CREG?
GSM module:+CME ERROR: 10
34
Technical reference section
AT+CREG - Network registr ati on
Data transmission is possible only if the GSM module is register ed in the network. This
command provides you with information on the module’s registration status in the network.
AT+CREG
OptionResult
AT+CREG?Displays mode n and the
registration status < CREG STATUS n>.
AT+CREG=?Displays a list of the modes supported.
AT+CREG=<mode n>Selects a new mode.
AT+CREG?
CommandAT+CREG?
Result code+CREG: <mode n>, <CREG status>
<mode n>n= [0]
0Changes in registration status are not forwarded to the PC.
<CREG status>status= [0..3]
STATUS nMeaningExplanation
0Not registered;
ME is not searching for a new oper-
No network operator found; the GSM module
cannot register, nor is it searching for a new
operator.
ator.
1RegisteredThe GSM module has successfully registered in
the network and all services are available.
2Not registered,
but ME is
searching for a
new operator.
3Registration
denied.
The M1 is not registered but is searching for a
new network operator.
See AT+COPS, commands relating to network
operator selection.
The selected network cannot be accessed at
this time.
4UnknownThe current status in relation to the network
cannot be determined at this time.
35
Technical reference section
Example:
Enter:AT+CREG?
GSM module:+CREG: 0,0 => not registered
OK
AT+COPS - Operator selection
These commands allow you to read out the current network operator, display a list of
available network operator s or select a operator directly. Various command extensions
are availabl e.
AT+COPS
CommandResult
AT+COPS?Displays current network operator.
AT+COPS=?Displa ys a list of network operators that are curr ently
available via radio.
AT+COPS=<mode n>,
<format f>,
Allows you to instruct the GSM module to use a specific network operator.
<network operator>
AT+COPS? - Display current network operator
This command displays the network operator that is currently selected. It also pro vides
you with information on whether the radio modem has selected this network operator
automatically or whether you manually instructed it to select this operator.
A result code with the follo wing format is ret urned in response to the AT+COPS? command:
AT+COPS?
CommandAT+COPS?
Result code+COPS: <mode n>, <format f>, <operator>
36
Technical reference section
< mode n>n= [0...3]
Mode nMeaningExplanation
0AutomaticNetwork operator is selected automatically.
1ManualNetwork operator is selected manually.
2Sign off of networkThe GSM-M1 is signed off of the network.
3Sets format f only.You can select the format for displaying the
network operator. This is true only of the read
command AT+COPS?.
<format f>n= [0..2]
0Long, alphanumeric
format
The operator is displayed in 16-character alphanumeric format.
2Numeric formatThe operator is displayed in numeric format.
OperatorNetwork operatorThe network operator is displayed in
format f.
Example:
Enter:AT+COPS?
GSM module:+COPS: 0, 0, " Operator Name "
OK
AT+COPS=? - Display list of available network operators
This command instructs the module to display a list of av ailable network operator s. The
list must first be generated. That process can take up to 60 seconds.
AT+COPS=?
CommandAT+COPS=?
Result code+COPS: List with (<STATUS n>,
Evaluate the result code using the following table:
<+COPS status n>n= [0..3]
STATUS nM eaningExplanation
0UnknownStatus unknown
1AvailableNetw o rk operator is available.
2CurrentThis network operator is the one currently in use.
3ForbiddenThis network operator is forbidden.
OperatorNetwork
operator
Displays the network oper ator in te xt format and
numeric format.
This command allows you to select a netw ork oper ator manually or to activate the automatic selection of a network operator . It is recommended that you first display a list of
available network operators.
AT+COPS= <mode n>, <format f>, <operator>
Mode nMode n specifies how the new network operator is to be selected.
The meaning is the same as for the AT+COPS? read command.
Format f<format f> specifies the format to be used for displaying the operator.
The GSM M1 supports only the numeric format for selection.
OperatorThe network operator to be used (numeric format).
Example:
Enter:AT+COPS=0The M1 automatically searches for a operator.
M1:OK
Enter:AT+COPS=1, 2, “26201“
GSM module:OK
38
Technical reference section
Please note:
The GSM module must not register when you select a forbidden operator manually!
Otherwise, you will not be able to set up any mor e connections. Display the list to find
out which operators are f orbidden and which are allo wed. Use the A T+CREG command
to find out whether or not the GSM module is registered. You will also be unable to set
up any connections if you have set mode n to “2” (sign off of network).
AT+CPIN - Enter PIN and query blocks
The PIN (personal identification number) is provided to pre vent unauthorized use of the
GSM module. The PIN is usually a 4-position secret code. If this block is activ ated, y ou
must enter your PIN befor e you can use the module’s full range of functions. When you
query the status, the syst em displays result codes r elating to the chip card and tells you
either that you must enter a PIN or that the chip card has already been read, in which
case PIN entry is unnecessary.
AT+CPIN
CommandResult
AT+CPIN?Queries the PIN that must be entered.
AT+CPIN=<PIN>[,
<new PIN>]
PIN entry . The PIN can comprise up to 8 positions.
If a PUK must be entered, the PIN is entered at the same
time. It will then be stored as a new PIN.
AT+CPIN?
Result codeMeaning
+CPIN: READYM1 expects no further password. All blocks are released
and services are available without restriction.
+CPIN: SIM PINM1 expects the PIN for the SIM card.
+CPIN: SIM PUKM1 expects the PUK for the SIM card, including a PIN.
+CPIN: PH-SIM PINM1 expects a device code.
+CPIN: PH-SIM
PUK
M1 expects the device PUK, including a PIN that is stored
as a device code.
39
Technical reference section
Example:
You enter the correct PIN:
Enter:AT+CPIN=“1234“
GSM module:OK
You enter an incorrect PIN:
Enter:AT+CPIN=“1234“
GSM module:+CME: ERROR: WRONG PASSWORD
AT+CPIN2 - Enter PIN2 and query PIN2 blocks
Phase 2 includes SIM cards with an FDN phonebook. You can activate a block on the
card in order to restrict the telephone numbers that can be called to those contained
in this directory. To modify these entries, you must enter PIN2 with the aid of the
AT+CPIN2 command. All entries are similar to those for the AT+CPIN command. This
command is accepted only if the card also supports this functionality.
Please note: PIN2 protects the FDN phonebook. In order to modify the FDN phonebook
by means of the A T+CPB W=... command, y ou must first enter PIN2. If you hav e not yet
done so, an error message is returned. After entering PIN2, you can read or write any
number of directory entries without having to enter PIN2 each time. As soon as y ou use
a command that is not related to the phonebook, PIN2 is “forgotten”. It is also forgotten
if you do not access the phonebook for a period of 5 minutes.
AT+CPIN2
CommandResult
AT+CPIN2?Queries whether PIN2 has already been entered, must still
be entered or is blocked.
AT+CPIN2=<PIN>[,
<new PIN>]
PIN2 entry. PIN2 can comprise up to 8 positions.
If PUK2 must be entered, PIN2 is entered at the same time.
It is then stored as a new PIN2.
AT+CPIN2?
Result codeMeaning
+CPIN: READYM1 does not expect PIN2; it has already been entered.
+CPIN: SIM PIN2M1 expects PIN2 for the SIM card.
+CPIN: SIM PUK2M1 expects PUK2 for the SIM card, including PIN2.
40
Technical reference section
Example:
You enter the correct PIN2:
Enter:AT+CPIN2=“1234“
GSM module:OK
You enter an incorrect PIN2:
Enter:AT+CPIN2=“1234“
GSM module:+CME: ERROR: WRONG PASSWORD
AT+CPWD - Change password
This command allows you to c hange the passw ord. Since more than one passwor d will
be available f or futur e uses, you must specify the name of the passw ord upon entering
it.
AT+CPWD
CommandResult
AT+CPWD=?Displays a list of the passwords supported. These cur-
rently include the PIN, device code and PIN2.
AT+CPWD=<name>,
<old password>,
<new password>
This command instructs the GSM module to change the
relevant password. When changing the password, you
must enter both the old and new passw ord . Th is ensures
that changes can be made only if access is authorized.
Example:
Enter:AT+CPWD=?Requests the list of passwords (SC = SIM,
PS = device code, P2 = PIN2)
GSM module:+CPWD: (“SC,8“,“PS,8“, “P2,8“)
OK
Enter:AT+CPWD= “sc“,“1234“,“4321“
GSM module:OKPassword was successfully ch anged.
The following result code is returned if the old PIN you enter is incorrect:
Enter:AT+CPWD= “sc“,“0123“,“4321“
GSM module:+CME ERROR: INCORRECT PASSWORD
The password was not changed because the
old PIN was incorrect.
41
Technical reference section
AT+CSQ - Signal quality
The quality of the radio connection between the GSM module and the base station
varies depending on environmental conditions. T his command provides you with inf ormation on the current reception quality.
AT+CSQ
CommandResult
AT+CSQDisplays current receive values.
AT+CSQ=?Displays a list of values representing receive levels and
receive errors.
AT+CSQ, AT+CSQ=?
CommandAT+CSQ
Result code+CSQ: <receive level>, <receive errors>
<receive level>
0-113 dBm or less
1-111 dBm
2...30-109... -53 dBm
31-51 dBm or greater
99Unknown or cannot be detected
<receive
errors>
(As a percentage): See GSM 05.08, section 8.2.4, Range
of Parameter.
99Unknown or cannot be detected
Example:
Enter:AT+CSQ
GSM module:+CSQ: 10, 1
OK
42
Technical reference section
AT+CKPD - Keypad control
This command allows you to simulate k ey strok es on the GSM mobile telephone. Input
corresponds to the actuation of keys on the Siemens S3COM.
AT+CKPD
CommandResult
AT+CKPD=<key>Instructs the GSM module to simulate the key <key>.
AT+CKPD=?Displays a list of keys that are supported.
AT+CKPD=?
CommandAT+CKPD=?
Result code+CKPD: “0123456789*#CDEISUXYZ[]“
<key>Meaning of the keys
0-9, *,#Key 0 - 9, “*“, “#“
“C“ or “c“Clears the display.
“E“ or “e“Simulates the End key.
“I“ or “i“Simulates the Info key.
“S“ or “s“Simulates the Start key.
“X“ or “x“Phonebook key
“Y“ or “y“Deletes the last character.
“Z“ or “z“Exits menu.
[Simulates the left softkey.
]Simulates the right softkey.
Example:
You would like to enter the key combination “*#06#“:
Enter:AT+CKPD=*#06#
GSM module:OK
43
Technical reference section
AT+CXXSN - Single-numbering parameterization
Some GSM network operators support single-numbering and some support multinumbering. Y ou can determine which f orm of numbering is supported by your operator from
whether your chip card has one number or more than one number at which it can be
called for multiple voice or data services.
Example:
• You apply for the 9600 bit/s data and fax transmission services from your network
operator and receive 2 telephone numbers with your chip card, one for when you
wish to be called via the 9600 bit/s data service and one so that you can be reached
via the fax service. This means that your network operator supports multinumbering.
• You have received only one telephone number for the 9600 bit/s data and fax services. This means that your network operator supports single-numbering. (Singlenumbering is not supported in Germany.)
When another party wishes to reach you, your telephone must decide which service
will answer the call before it rings. If you set your GSM module to fax, all incoming
calls will be answered by the FAX service.
AT+CXXSN
CommandResult
AT+CXXSNDisplays the value currently set for +CXXSN.
AT+CXXSN=<SN mode>Sets the single-numbering receive mode to the rele-
vant mode.
A T+CXXSN=?Displays a list of values for single-numbering r eceive
modes.
44
Technical reference section
AT+CXXSN=?
CommandAT+CXXSN=?
Result code+CXXSN: <0,1,2>
<SN mode>Meaning of the mode
0The next incoming call will be answered by the voice service
(TS11).
1The next incoming call will be answered by the voice/fax service.
This is required if your network operator supports only TS61 and
not TS62.
2The next call will be answered by the fax or data service, depend-
ing on the active application on your PC. If a fax application is
active, the module answers the call as a fax call.
Example:
You wish to set the SN mode to fax/data:
Enter:AT+CXXSN=2
GSM module:OK
45
Technical reference section
AT+CXXMOC - Parameterize for outgoing calls
The following services are available for fax transmission in GSM:
• Teleservice 61 (TS61) Combined voice and fax
This service exists as an imitation of combination fax machines and allows you to
change from a voice connection to fax transmission.
• Teleservice 62 (TS62) Automatic fax
This service is purely for faxing.
If your network operator supports only one of these services, you can use this command to configure your GSM module accordingly. You must do this in networks that
support only TS61 if you are to be able to send or receive faxes at all.
AT+CXXMOC
CommandResult
AT+ CXXMOCDisplays value currently set for + CXXMOC.
AT+ CXXMOC <MOC mode>Sets the single-numbering receive mode to the
relevant mode.
AT+ CXXMOC =?Displays a list of values for MOC modes.
AT+ CXXMOC =?
CommandAT+CXXMOC=?
Result code+CXXMOC: <0,1>
<MOC mode>Meaning of the mode
0Fax calls to the radio network are set up using
TS62.
1All outgoing fax calls are set up using TS61 fax/
voice, but calls are terminated when the fax
transmission is terminated.
Example:
You wish to set the MOC mode to TS61:
Enter:AT+CXXMOC=1
GSM module:OK
46
Technical reference section
AT+CPBS - Select phonebook memory storage
When reading or writing a phonebook entry, you must tell the M1 which phonebook
memory will be aff e cted b y the subsequent re ad/write jobs. T he f ollo wing phonebook
memories are supported in the M1:
• Phonebook on the SIM card
• Last number redial memory
• Own telephone numbers
• FDN phonebook (if this is also supported by the SIM card)
AT+CPBS
CommandR e su lt
AT+ CPBS= dir.Selects a new phonebook.
AT+ CPBS?Provides you with information on which phonebook is cur-
rently activated.
AT+ CPBS=?Displays a list of all the telephone directories supported.
MDLast number redial memory; displays the last telephone num-
bers that you dialed.
SMSIM card; this is the standard phonebook containing the
entries.
OWOwn telephone number; this phonebook contains your own
telephone numbers under which you can be reached. Normally, you only need to read this directory since you cannot
call your own number and it does not change.
FDFixed dialing number; this is a second phonebook. If the rele-
vant block is set, only the numbers fr om this FDN phonebook
can be called. This phonebook and the block are protected by
PIN2.
47
Technical reference section
AT+CPBR - Read phonebook entries
This command allows you to read the phonebook that was selected by means of the
AT+CPBS command. You must also enter the number of the relevant position or a
range of numbers.
AT+CPBR
CommandResult
A T+CPBR=index1[,inde x2]Reads the phonebook entry with the number index1.
If you also enter a second index, reads the phonebook from index1 to index2.
AT+CPBR=?Provides you with information on the maximum
number of entries that can be contained in the directory and the maximum size of these entries.
The test command provides you with information on the f ormat of the phonebook t hat
was selected by means of AT+CPBS.
AT+CPBR=?
CommandAT+CPBR=?
Result code+CPBR: <index>, <number length>, <text
length>
Meaning
IndexMaximum number of entries in the phonebook
Number lengthLength of a telephone number
Text lengthLength of a telephone number name
48
Technical reference section
AT+CPBW - Write phonebook entry
This command allows you to write an entry to the phonebook. You have the option of
entering the telephone number with or without a name.
AT+CPBW= [index][,number, [type], [text]]
Meaning
IndexStores the entry with the position number “index” in the phonebook.
If you omit the index, an available position is sought; otherwise, the
entry is written to the specified position, regardless of whether this
position is already being used. If you specify only an index without a
number or text, this means that you wish to delete the relevant entry.
NumberNumber to be written to the phonebook
TypeInternational145
Other129
Type of number; can be omitted.
If no type is specified, the type is automatically generated from the
telephone number.
A “+“ character at the beginning of the telephone number means that
its type is international.
TextName to be stored with this number
49
Technical reference section
AT+CBST - Select bearer service type
This command selects the bearer service with data rate and the connection element
to be used when data calls are originated.
AT+CBST
CommandResult
AT+CBST=[<speed>
Selects new speed, name and ce
[,<name>[,<ce>]]]
AT+CBST?Displays speed, name and ce
AT+CBST=?Displays list of supported speed, list of supported
name and list of supported ce (Connection Elements)
This command controls whether or not the extended f ormat of incoming call indi cation
is used. When enabled, an incoming call is indicated with unsolicited result code +
CRING: <type> instead of the normal RING.
AT+CRC
CommandResult
AT+CRC?Displays mode n
AT+CRC=?Displays a list of supported modes
AT+CRC=<mode n>Selects a new mode
AT+CRC?
CommandAT+CRC?
Rsult Code+CRC: <mode n>
<mode n>n=[0,1]
1enables extendet format
0disables extendet format
+CRING: <type>
<type>Meaning
ASYNCasynchronous transparent
FAXfacsimile
51
Technical reference section
AT+CLIP - Calling line identification presentation
This command refers to the GSM supplementary service CLIP (Calling Line Identification Presentation) that enables a called subscriber to get the calling line identity (CLI)
when receiving a call.
The set command + CMP=<n> enables or disables the presentation of the CLI at the
M1. It has no effect on the ex ecution of the service CLIP in the network. When enabled
+CLIP: <number>,<type> response is returned after every RING result code.
The read command +CLIP? gives the status of mode n and also triggers an interrogation of the provision status of CLIP in the network.
AT+CLIP
CommandResult
AT+CLIP?Displays mode n, mode m
AT+CLIP=?Displays a list of supported modes n
AT+CLIP=<mode n>Selects new mode
AT+CLIP?
CommandAT+CLIP?
Result Code+CLIP: <mode n>,<mode m>
<mode n>n=[0,1]
1enables extendet format
0disables extendet format
<mode m>m=[0,1,2]
0CLIP not provisioned
1CLIP provisioned
2unknown
52
Technical reference section
AT+CPAS - Phone activity status
This command returns the activity status of the GSM module M1. It can be used to interrogate the M1 before requesting action.
AT+CPAS
CommandResult
AT+CPASDisplays status
AT+CPAS=?Displays a list of supported stati
AT+CPAS=?
CommandAT+CPAS=?
Result Code+CPAS: 0 1 2 3 4 5
0ready
1unavailable
2unknown
3ringing
4call in progress
5asleep
53
Technical reference section
AT+FCLASS - Select mode
This command puts the M1 into a particular mode of operation (data, fax).
AT+FCLASS
CommandResult
AT+FCLASS?Displays mode n
AT+FCLASS=?Displays a list of supported modes
AT+FCLASS=<mode n>Selects new mode
AT+FCLASS?
CommandAT+FCLASS=?
Result Code0, 2
0data
2fax
Important
Example: The customer has a D2 card and uses M1 with the follo wing default set tings:
+FCLASS=0, B99, +CRC=0
When he receives a call (MTC), "RING" is displayed on his PC. The call can now be ac-
cepted by means of "ATA". The DSA in the M1 accepts the call as a data call proper irrespective of whether it is a data or fax call. T he r eason for this is that B99 causes the
incoming service identifier to be ignored. With fax calls, this causes problems of man y
kinds because the user does not know which service is being used.
The command "AT+CRC=1" allows the M1 to also indicate the service identifier for incoming calls so that the user what service is being used.
T o ensur e that all units involved in the call accept the call in the proper manner, the user
should select the correct service using AT+FCLASS before accepting the call.
.
54
Technical reference section
AT+CXXCID - Card identification
Execution of this command displays the SIM number.
AT+CXXCID
CommandResult
AT+CXXCIDDisplays SIM number
AT+CXXCID=?OK
AT+C commands for the short message service (SMS)
The module supports several of the AT+C commands specified in TS GSM 07.05 for
using the short message service with the M1. In order to provide an application on the
connected computer with complete information on the short messages, the M1 supports PDU mode. A PDU (protocol data unit) contains almost all the information relating
to a short message that is transferred in the GSM netw ork. For a more detailed description of the various PDUs, see TS GSM 03.40, which describes the implementation of
the short message service.
The implementation of AT+C commands for SMS is based on TS GSM 07.05
Version 4.4.0.
55
Technical reference section
AT+CSMS - Select message service
This command allows you to select the short message service.
<mem1>String type; memory from which messages are read and deleted
“SM“ SIM message storage
<mem2> String type; memory to which commands are written and sent
“SM“ SIM message storage
<total1>Integer type; total number of message locations in <mem1>
<total2>Integer type; total number of message locations in <mem2>
<used1>Integer type; number of messages currently in <mem1>
<used2>Integer type; number of messages currently in <mem2>
56
: <err>
<mem2>,<used2>,<total2>,
(list of supported <mem2>s)
Technical reference section
AT+CMGF - Message format
This command allows y ou to define the inpu t and output f o rmat of the short message.
Parameter command syntax
CommandPossible response(s)
+CMGF=[<mode>]
+CMGF?+CMGF: <mode>
+CMGF=?+CMGF: (list of supported <mode>s)
V a lues im plem ent ed
<mode>:
0PDU mode
AT+CSCA - Service center address
This command allows y ou to set the SMSC addr ess vi a whic h outgoing short messages are sent.
<index>Integer type; value in the range of location numbers supported by
the associated memory
<stat>Integer type in PDU mode; indicates the status of message in memory.
0Received, unread message (i.e. new message)
1Received, read message
2Stored, unsent message
3Stored, sent message
4All messages
: <err>
AT+CMGS - Send message
This command allows you to send a short message from the TE to the network. If the
short message is successfully sent, the message reference <mr> is returned to the
TE.
Action command syntax
CommandPossible r esponse(s)
If PDU mode (+CMGF=0):
+CMGS= <length><CR>PDU is given<ctrl-Z/ESC>
+CMGS=?
<mr>GSM 03.40 TP message reference in integer format
58
If send is successful:
+CMGS:<mr>,
If send fails:
+CMS
ERROR
: <err>
Technical reference section
AT+CMGW - Write message to memory
This command allows you to store a short message in the memory <mem2>. The
memory location is returned in <index>.
Action command syntax
CommandPossible response(s)
If PDU mode (+CMGF=0):
+CMGW= <length> [,<stat>]<CR>PDU
is given
+CMGW=?
AT+CMGD - Delete message
This command allows you to delete a short message from <mem1> at the location <index>.
AT+CMS ERROR - message service failure result codes
V alue defin itions
<err> Values used by common messaging commands
0...127Values from GSM 04.11 Annex E-2
128...255Values from GSM 03.40, section 9.2.3.22
300ME failure
301SMS service of ME reserved
302Operation not allowed
303Operation not supported
304Invalid PDU mode parameter
310SIM not inserted
311SIM PIN necessary
312PH-SIM PIN necessary
313SIM failure
314SIM busy
315SIM wrong
320Memory failure
321Invalid memory index
322 Memory full
330SMSC address unknown
331No network service
332Network timeout
500Unknown error
: <err>
60
Technical reference section
Fax operation conforming to TR-29.2
The GSM module functionally supports the follo wing commands as per th e fut ure EIA/
TIA 592 standard or acknowledges them with OK. For more inf ormation contact: EIAssociation, 2001 Eye Street, N. W., Washington, D. C. 20006, USA, Tel.: (1)-202-4574900 and specify "PN 2388".
Commands and result codes: Prompts
AT+FDT= AT+FET= AT+FDR
Commands and result codes: Messages
AT+FDCS:AT+FDIS:AT+FDTC:AT+FCFRAT+FTSI:
AT+FCSI:AT+FCIG:AT+FHT:AT+FHR:AT+FCON
AT+FET:AT+FPTS:AT+FHNG:
The active configuration profile for the GSM M1 module is stored in S-registers. Each
register is 8 bits long. A number of S-registers are reserv ed and must not be modified!
The other registers can be read b y means of the ATSn? command or ov erwrit ten using
the ATSn= command. You can modify some S-register values using AT commands.
This saves you from having to access the values directly in the S-register, i.e. you do
not have to f amiliarize your self with the actual values and meanings of the individual bit
positions within the S-register. This section provides an overview of the S-registers.
The factory configuration is printed in bold type.
61
Technical reference section
ATSn? - Read an S-register
The A TSn? command allo ws y ou to read the "n"-th S-r egister. P arameter "n" must be an
integer and designate an S-register.
Example:
Enter:ATS0?
GSM module:003
OK
Enter:ATS0?S7?
GSM module:003
030
OK
In response to the ATSn? command, the GSM module displays the register contents
as a three-digit decimal number . If more than one register is read on one command line,
the GSM module displays the register contents in the order in which the registers appear in the command string. The GSM module transmits a <CR> and <LF> character
after eac h set of register contents is display ed. If the command s yntax is incorrect, the
GSM module returns ERROR.
ATSn=x - Write to an S-register
The ATSn=x command allows you to instruct your GSM module to store the value "x"
in register "n". "n" and "x" must be integers and decimal numbers.
• n must designate an S-register.
• x must be from "0" to "255".
Example:
Enter:ATS0=3
GSM module:OK
This command sets register S0 to the value "3", i.e. the GSM module automatically answers a call af ter 3 ringing signals. T he GSM module acknowledges the command with
OK to indicate that the command was executed and a new command can be processed.
62
Technical reference section
Binary and decimal values in S-registers
Although you enter values f or S-registers as decimal number s, like all other v alues that
are stored in PCs they are stored in the registers in binary format:
Bit # 76543210
Binary11111111
Decimal1286432168421
The value of the register is obtained by adding together the values of all enabled bits.
In the example, all bits are enabled ("1") and the result is the number 255. Since all bits
can also be disabled ("0"), a total of 256 statuses can be stored in these 8 bit positions.
This means that more than one parameter can be stored in one register.
Example:
DecimalBinary
300000011
4300101011
10001 100100
If a command applies only to bits 3, 4 and 5 of an S-registers, up to 8 diff erent statuses
Registers in which a number of par ameter v a lues are stor ed ar e called bit position registers. If you wish to modify the parameter va lues in these register s directly, y ou must
add up the decimal values of all the bits to be set and enter the result using the A TSn=x
command. Since calculating such values is somewhat complicated, we r ecommend
that you use AT commands to modify the values and do not write dir ectly to the r egister. However, here is an example of how to do so:
Example:
S-register S22
Bit 7:Reserved, value is "0".
Bits 6, 5 and 4:Connection messages (ATXn command).
Bits 3 to 0:Reserved, value is "0".
You wish to enter the following parameter values:
Bit 7:Reserved, value is "0",
Isolated value: binary "0" = decimal "0",
Positioned value: binary "0 x x x x x x x" = decimal "0".
Bits 6, 5 and 4:Extended connect message,
ignore busy signal (ATX2),
Isolated value: binary "0 1 0" = decimal "2",
Positioned value: binary "x 0 1 0 x x x x" = decimal "32".
Bits 3 to 0:Reserved, value is "0",
Isolated value: binary "0 0 0 0" = decimal "0",
Positioned v a lue: binary "x x x x 0 0 0 0" = decimal "0".
Decimal input and binary storage:
Bit #76543210
Binary 00100000
Decimal(128)(64)32(16)(8)(4)(2)(1)
Enter the decimal total for 0+0+32+0+0+0+0+0=32.
Command:ATS22=32
64
Technical reference section
Overview of the S-registers
Please note:
The tables below do not include the reserved register s. Making entries in these unlisted, reserved registers can cause the GSM module to malfunction.
SxMeaning
S0Number of ringing signals after which the s ystem w ill answ er automatically,
i.e. the GSM module goes off-hook after the "n"-th ringing signal. Entering a
value for n from "1" to "5" activates auto-answer. The maximum value is 5
ringing signals. The value "0" deactiv ates auto-ans w er. The factory setting is
"0".
S1Internal counter for ringing signals. Each incoming ringing signal increments
the register contents by one. If the call was answered, the register is reset
to "0" after a preset interv al. This is a read-only register.
S2ASCII value of the escape command characters. The factory setting for all
countries is "43", which corresponds to the ASCII characters +++. S2 can
be set to any value from "1" to "127". If "0" or a value greater than "127" is
set, the escape command character is deleted. When the &D1, &D2 and
&D3 options are enabled, the GSM module returns to command mode as
soon as it detects that the level of the DTR signal has changed from ON to
OFF.
S3ASCII value of the <CR> character. The factory setting for all countries is
"13". <CR> terminates command lines and initiates their execution, as well
as terminating result codes. Permissible values are from "0" to "127".
S4ASCII value of the <LF> character. The factory setting for all countries is
"10". For long, alphanumeric result codes, <LF> is output after the <CR>
character. Permissible values are from "0" to "127".
S5ASCII value of the Backspace character. The factory setting is "8". Permissi-
ble values are from "33" to "127".
S7Wait time for connection after dialing. If no connection is detected within
the specified period of time, the GSM module goes on-hook. Permissible
values are from "0" to "60".
S12Wait time for AT commands in 50ths of a second. The period of time speci-
fied here must elapse before and after the escape sequence is entered so
that the GSM module can recognize it as a command. The factory setting
for all countries is "50" (= 1.0 s). Do not set too short of a wait time. Permissible values are from "0" to "255". As a r ule, this v alue should be no less than
"20".
65
Technical reference section
S14: Command echo, result codes
BitOptionsValues
0Reserved0
1Command echo (ATEn)01Echo off
Echo on
2Result codes (ATQn)01Display result codes
Suppress result codes
3Short format mode (ATVn)01Result codes as digits
Result codes as text
4Reserved0
5Reserved0
6Reserved0
7Reserved0
Software test loops
If you can still address your GSM module with your communication program, check
module functioning using the softw are test loops. Eac h test is initiated by means of an
AT command. Be sure to perform the tests in the sequence described.
AT&T0 - Terminate an active test
You can terminate an active test at any time:
Step 1:Enter the escape command “+++“. The GSM module
switches to command mode.
Step 2:Enter the AT&T0 command. The test is terminated.
Any commands that follow the AT&T0 command on the command line are ignored.
AT&T1 - Initiate local digital test loop
This test loop checks your GSM module and the mobile telephone. If this test is not
successfully completed, the problem is located in your GSM module or in a cable connection. Start the test loop and enter a random test message via the keyboard. The
GSM module does not send this message to the distant station but, instead, receives
it itself. It r et urns the mes sage to the computer, where it is displa y ed on the scr een. If
the GSM module correctly echoes the test message to the computer, the module has
successfully completed the local digital test.
Please note:
You can initiate this test only if no connection is set up; otherwise, the GSM module
returns ERROR.
Situation:Command mode, no connection.
Example:
Enter:AT&T1
GSM module:OK
Enter:ABC
GSM module:ABC
You can enter additional test data and check the echo.
Terminate this test by entering the following:
Enter:+++Escape command
ATI9Displays GSM module’s version ID. The GSM module transmits its ID.
69
Technical data
General
Type:M1
Housing:Plastic
Dimensions:116 x 67 x 30 mm
Weight:157 g
Memory:Flash EPROM
Input voltage:+8 V to +24 V DC
Nominal voltage:13,2 V DC
Input current:Max. 500 mA
Class of protection: III
Temperature range: -20 °C to +55 °C (operating)
-40 °C to +70 °C (storage)
V.24 interface
Connector:9-pin DSUB (female) to DIN 41652
Pin assignment:
PINDINEIACCITTDesignation
1M5DCD109Data Carrier Detect
2D2RX104Receive Data (out)
3D1TD103Transmit Data (in)
4S1.2DTR108.2Data Terminal Ready
5E2–102Signal Ground
6M1DSR10 7Data Set Ready
7S2RTS105Request To Send
8M2CTS106Clear To Send
9M3RI125Ring Indicator
Logic:V.24 asynchronous
Baud rates:2400 - 19200 baud, autobauding
Parity:None
Character format:8 data bits
Stop bits:1
Level:To CCITT Recommendation V.28
70
Technical data
Hybrid connector (manufacturer-specific)
Pin assignment:
Meaning of pins:
PINNameUsedMeaning
1PowerX8 V - 24 V DC
2Reserved
3BF-BusReserved
4NF ExtReserved
5TX_EReserved
6RX_EReserved
7IgnitionXActiv at e/deactivate 0 - 24 V
8Antenna ExtReserved
9AUDO_1Reserved
10AUDO_2Reserved
11HF_MICROReserved
12GNDAReserved
13GNDXGround
14GNDGround
Antenna:Impedance 50 ohms
71
Technical data
GSM modes
Fax
CCITT Rec.:CCITT T.30, T.4
Routes:MOC and MTC
Info.transf.mode:FAX G3
Clock mode:Synchronous
Connection elem.:Transparent
Structure:Unstructured
Radio channel:Full rate
Intermed. rate:8 or 16 kbit/s
User rate:2400, 4800 or 9600 bit/s
Teleservice:TS 61, TS 62
Data
GSM Rec.:GSM 7.01, 7.02, 4.21
Routes:MOC and MTC
Info.transf.mode:3.1 Khz audio ex PLMN (analog) or
UDI/V.110 (ISDN)
Clock mode:Asynchronous
Connection elem.:Transparent
Structure:Unstructured
Layer 2 protocol:NAV
Data bits:8
Parity bits:None
Bits/char.Always 10 bits/char.
Stop bits:1
Radio channel:Full rate
Intermed. rate:8 or 16 kbit/s
User rate:2400, 4800 or 9600 bit/s
Modem type:V.22bis, V.32
Bearer service:BS 24, BS 25, BS 26
SMS
GSM Rec.:GSM 03.40, 07.05
Routes:SMS MO and MT
Mode:PDU mode
Teleservice:TS22, TS21
72
GSM documentation
GSM reference documents
The following GSM reference documents are recommended:
GSM 03.40