Siemens M1 User Manual

GSM
Module M1
User Guide
Fax
SMS
V.24
Contents
GSM Module M1
Product description Features
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Notes on safety Description of the interfaces
SIM card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
V.24 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Hybrid connector (manufacturer-specific) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Function LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Installation / startup
Mounting the module Power supply / power consumption
Cable assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Switching the GSM module on/off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Voltage range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Overvoltage / undervoltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Protection / on-board network connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Power consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
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
GSM module can still be accessed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Connection cannot be set up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Own errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
System errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Incorrect characters on screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
GSM module does not dial. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Cannot receive fax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Overview of AT commands
General AT commands
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
GSM AT commands (GSM 07.07) SMS AT commands (GSM 07.05)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1
Contents
Technical reference section
The AT standard
AT command line prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Connecting to your GSM module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Command syntax of the AT standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Loading the factory configuration and displaying a configuration . . . . . . . . . . . 17
ATVn - Result codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
A/ - Repeat previous command line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Setting up and clearing down connections
Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Command mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Transparent mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Escape command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
ATH - Go on-hook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
ATOn - Return to transparent mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Setting the transfer rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
ATBn - Select GSM module’s operating mode . . . . . . . . . . . . . . . . . . . . . . . . . 21
ATD - Dial a telephone number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Valid dial strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
ATDL - Redial last telephone number used AT%Dn - Automatic dialing with DTR
ATA - Answer a call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
ATS0=n - Auto-answer mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Displaying and storing a configuration
AT&F - Load factory profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
AT&V - Display configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Configuring the module using AT commands
Screen outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Limits of screen outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
ATEn - Command echo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
ATQn - Activate and deactivate result codes . . . . . . . . . . . . . . . . . . . . . . . . 26
ATXn - Extended connect message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Control line options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
AT&Cn - Data Carrier Detect (DCD) options. . . . . . . . . . . . . . . . . . . . . . . . . 27
AT&Dn - Data Terminal Ready (DTR) options. . . . . . . . . . . . . . . . . . . . . . . . 28
Data flow control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Memory commands
AT&Zn=x - Store telephone number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
ATDS=n - Dial stored telephone number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
AT&Wn - Store configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
AT&Yn - Configuration at power-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
ATZn - Load user profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
. . . . . . . . . . . . . . . . . . . . . . . . . . 26
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2
Contents
AT+C commands for GSM
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
AT+CGMI - Request manufacturer ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
AT+CGMM - Request model ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
AT+CGMR - Request revision ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
AT+CGSN - Request product serial number ID . . . . . . . . . . . . . . . . . . . . . . . . . 32
AT+CHUP - Hangup call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
AT+CEER - Extended error report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
AT+CMEE - Report mobile equipment error . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
AT+CREG - Network registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
AT+COPS - Operator selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
AT+COPS? - Display current network operator . . . . . . . . . . . . . . . . . . . . . . 36
AT+COPS=? - Display list of available network operators . . . . . . . . . . . . . . 37
AT+COPS= .., .. - Use this network operator. . . . . . . . . . . . . . . . . . . . . . . . 38
AT+CPIN - Enter PIN and query blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
AT+CPIN2 - Enter PIN2 and query PIN2 blocks . . . . . . . . . . . . . . . . . . . . . . . . 40
AT+CPWD - Change password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
AT+CSQ - Signal quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
AT+CKPD - Keypad control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
AT+CXXSN - Single-numbering parameterization . . . . . . . . . . . . . . . . . . . . . . . 44
AT+CXXMOC - Parameterize for outgoing calls . . . . . . . . . . . . . . . . . . . . . . . . 46
AT+CPBS - Select phonebook memory storage . . . . . . . . . . . . . . . . . . . . . . . . 47
AT+CPBR - Read phonebook entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
AT+CPBW - Write phonebook entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
AT+CBST - Select bearer service type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
AT+CRC - Cellular result code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
AT+CLIP - Calling line identification presentation . . . . . . . . . . . . . . . . . . . . . . . 52
AT+CPAS - Phone activity status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
AT+FCLASS - Select mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
AT+CXXCID - Card identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
AT+C commands for the short message service (SMS)
. . . . . . . . . . . . . . . . . . 55
AT+CSMS - Select message service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
AT+CPMS - Preferred message storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
AT+CMGF - Message format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
AT+CSCA - Service center address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
AT+CMGR - Read message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
AT+CMGS - Send message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
AT+CMGW - Write message to memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
AT+CMGD - Delete message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
AT+CNMI - New message indications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
AT+CMGL - List messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
AT+CMS ERROR - message service failure result codes . . . . . . . . . . . . . . . . . 60
Fax operation conforming to TR-29.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
3
Contents
The S-registers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
ATSn? - Read an S-register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
ATSn=x - Write to an S-register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Binary and decimal values in S-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Bit position registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Overview of the S-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
AT&Tn - Test functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
AT&T0 - Terminate an active test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
AT&T1 - Initiate local digital test loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
ATIn - Display GSM module I-data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Technical data
General V.24 interface Hybrid connector (manufacturer-specific) GSM modes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Fax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
SMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
GSM documentation
GSM reference documents ETSI contact
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
General information
CE-Sign Service
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
4
GSM Module M1
Product description
The GSM module is a GSM terminal for transmitting data, faxes and SMS (short mes­sage service) text messages in GSM networks (GSM = global system for mobile com­munication).
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 mo­dem for fax and data transmission f or a computer connected to the V.24 interface. Spe­cial 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 envi­ronments.
• 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, con­sult your physician. Do not touch the antenna during a call.
• Using the GSM Module M1 in the direct vicinity of electronic devices (radios, tele­visions, 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 trans­mission, 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 con­nected via the cable supplied.
Pin assignment:
Meaning of pins: See the section entitled “Technical data”.
Function LED
LED off Device switched off – not ready LED flashing slowly Device switched on – ready LED flashing rapidly Device 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:
Red POWER +8 V – +24 V DC Violet IGNITION(ON/OFF) Brown GND Ground
Switching the GSM module on/off
The GSM Module M1 switche s on when a positive voltage of 5 - 24 V is applied to IG­NITION 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 sup­ply 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 pro­tect 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
antenna cable.
Supply voltage
12 V 130 mA 70 mA 150 mA 220 mA 500 mA 24 V 70 mA 45 mA 150 mA 120 mA 500 mA
Channel search
Standby Send mode
Typical Max. Typical Max.
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 bits 8 Parity None corresponds to 8N1 Stop bits 1 Duplex Full
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 communi­cation program and try again. Also check the cable. When this test has been success­fully 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 ter­minal program. The ATBn command allows you to set the trans f er rate in the GSM net­work.
Enter the ATI8 command to display the current list.
ATBn [n=7,11,13,25,27,29,70,99] Option Effect
Bit/s Synchronism Distant station ATB99 9600 Asynchronous Mode set to automode ATB7 2400 Asynchronous V.22bis ATB11 4800 Asynchronous V.32 ATB13 9600 A synchronous V.32 ATB25 2400 Asynchronous V.110 ISDN ATB27 4800 Asynchronous V.110 ISDN ATB29 9600 Asynchronous V.110 ISDN ATB70 9600 Fax Fax Group 3
Example:
Enter: ATB13 M1 Permanently switches mode to 9600 bit/s.
Enter: ATB7 M1 Permanently 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 net­work, you must enter the PIN or PUK.
• Service operator link: similar to the network link but implemented by the service op­erator 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 en­tered 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 PIN PIN for the SIM card; must be entered. Enter: AT+CPIN=1234 PIN entry M1 OK PIN 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&F Loads factory configuration. GSM module OK Enter: ATD<tel. no.> The dial command M1 Dials 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: OK Changes to command mode. Enter: ATH Command to go on-hook M1 returns: OK The 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 opera­tion.
• 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 rate 2400 – 19200 baud Data bits 8 Parity None Stop bits 1 Duplex Full
Check whether other programs (e.g. printer spooler) are interfering with the function­ing of the communication program. Restart your computer without additional pro­grams, 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 ATA Answer call ATDx Dial the dial string "x" ATDIx Dial ISDN number "x" ATDL Redial last telephone number used ATDS=n Dial stored telephone number ATE0 Disable command echo ATE1 Enable command echo ATH Disconnect existing connection ATIn Display product data ATI0 Display product code for GSM module ATI1 Display software checksum ATI2 Determine firmware ROM checksum ATI8 Display supported modes ATI9 Display device ID ATO0 Switch from command mode to transparent mode ATQ0 Display result codes ATQ1 Do not output result codes to computer ATSn=x Assign value "x" to S-register "n" ATSn? Read value of S-register "n" ATS0=n Go off-hook after n-th ringing signal (n = "1" - "5") ATS0=0 No automatic answering of calls ATV0 Display result codes as digits ATV1 Display result codes as text ATX0 Display connection without baud rate. Ignore busy signal. ATX1 Display connection with baud rate. Ignore busy signal. ATX2 Same as A T X1 ATX3 Same as ATX1 but report BUSY ATX4 Same as A T X3 ATZn Load user profile "n" AT&C0 DCD always ON AT&C1 DCD line ON only in the presence of carrier signal (connection) AT&D0 Ignore DTR status AT&D1 At DTR -> OFF: Command mode without going on-hook AT&D2 At DTR -> OFF: Go on-hook, command mode, auto-answer off A T&D3 At DTR -> OFF: Go on-hook, factory configur ation same as AT&F AT&F Load factory configuration AT&T0 Terminate an active test AT&T1 Initiate local digital test loop AT&V Display current configuration AT&Wn Store current configuration as user profile "n" AT&Yn Load user profile "n" at pow er-up
14
Overview of AT commands
AT&Zn=x Store telephone number "x" in memory "n" AT%Dn Automatic dialing with DTR AT+ Fax commands
GSM AT commands (GSM 07.07)
AT+CGMI Display manufacturer ID AT+CGMM Display model ID AT+CGMR Display version of GSM module AT+CGSN Display serial number (IMEI) AT+CHUP Terminate all calls AT+CEER Display reason last call was disconnected AT+CMEE Extended error messages to GSM 07.07 AT+CREG Display registration status AT+COPS Commands relating to network operator selection AT+CPIN Enter PIN and query blocks AT+CPIN2 Enter PIN2 and query PIN2 blocks AT+CPWD Change PIN AT+CSQ Display signal quality information AT+CKPD Key simulation AT+CXXSN Single-numbering parameterization AT+CXXMOC Parameterize for outgoing calls AT+CPBS Select phonebook AT+CPBR Read phonebook entry AT+CPBW Write phonebook entry AT+CBST Select bearer service type AT+CRC Cellular result code AT+CLIP Calling line identification presentation AT+CPAS Phone activity status AT+FCLASS Select mode AT+CXXCID Card 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+CMGW Write message to memory AT+CMGD Delete message AT+CNMI New message indications AT+CMGL List 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 con­sistently enhanced and has gained international acceptance. Most modems and com­munication 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 in­troduced 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 "En­ter" 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 al­phanumeric text or a numerical code:
ATVn [n=0,1] Option Result A TV0 Selects the short result code format (digits). Useful if the GSM module is
to be controlled from the computer using a communication program.
ATV1 Selects the long result code format. Factory configuration.
17
Technical reference section
Overview of the short and long result code formats
Short
Long code Meaning
code
0 OK Command executed, no error 1 CONNECT Connection set up 2 RING Ringing signal detected 3 NO CARRIER Connection not set up or disconnected 4 ERROR Incorrect command or command too long.
The AT+CMEE= 2 command allows you to display
extended error messages to GSM 07.07. 6 NO DIALTONE Connection cannot be set up. 7 BUSY Distant station busy
10 CONNECT 2400 Connection at 2400 bit/s 30 CONNECT 4800 Connection at 4800 bit/s 32 CONNECT 9600 Connection 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 to­gether 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 con­nection 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 ex­isting 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] Option Result ATO0 Switches 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
2400 24 Analog modems conforming to V.22bis,
ISDN adapter to V.110 ISDN
4800 25 Analog modemso conforming to V.32 with
fallback, ISDN adapter to V.110 ISDN
9600 26 Analog 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 perma­nently for all connections.
ATBn [n=7,11,13,25,27,29,70,99]
Result
Option
ATB99 Automatically sets the mode to match
ATB 7 2400 Asynchronous V.22bis ATB11 4800 Asynchronous V.32
Bit/s Synchronism Dist ant station
the baud rate set for the PC. Factory configuration
ATB13 9600 Asynchronous V.32 ATB25 2400 Asynchronous V.110 ISDN ATB27 4800 Asynchronous V.110 ISDN ATB29 9600 Asynchronous V.110 ISDN ATB70 9600 Asynchronous Fax 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 module Automatically 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 CON­NECT 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 ";".
i This 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