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
Loading...
+ 53 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.