INSTALLATION MANUAL 6195-2201 CE Approved GSM-modem www.westermo.se © Westermo Teleindustri AB • 2000 • REV.
Warning! It is of most importance that all regulations regarding use of the GSM modem is followed. Violation against any regulation may cause withdrawn of the subscription or at major violations lead to prosecution.
Content: 1.0 Functional description 2.0 Specifications 3.0 Connections 3.1 3.2 ................................................................................................................................ 4 ..................................................................................................................................................................... 5 6 Terminal connections (DCE) ..........................................................................................
Functional description The GS-01 modem provides RS-232/V.24 up to 9 600 bit/s connections over GSM networks. It can be used instead of serial cable to link PLC’s, data loggers, security and surveillance system or for data acquisition. It is possibility to have an external signal (DTR) to trigger the modem to call a pre-set number. This makes it ideal for alarm monitoring and remote diagnostics from unmanned stations.
2.0 Specifications Frequency Radio power Antenna Serial interface Transmission Data Data format Handshake Transmission SMS Transmission Fax SIM-card Power supply Power consumption Fuse Temperature range Humidity Dimensions, mm Weight 900 MHz 2 W, Class 4 External, 870 -960 MHz, 50 Ohms, SMA-connector RS-232/V.24, 15 pin D-sub connector, female (HD) Asynchronous 2 400, 4 800, 9 600 bit/s Transparent and Non Transparent mode In Non Transparent mode only: 300, 1 200, 1200/75 Mode 3.1 KHz (PSTN) and V.
3.0 Connections Power Supply 5-32V DC 15-pole D-sub connector, female RS-232/V.24 LED indication SIM card SIM card holder Antenna SMA connector Button to eject the SIM card holder 3.1 Terminal connections (DCE) RS-232/V.24, 15-pin D-sub, female, High density Direction O O I I – O I O O Audio Boot Reset I = Input on GS-01 Connection no. 1 6 2 8 9 7 12 11 13 4 5 10 15 3 14 CCITT 109 104 103 108.
4.0 Installation 4.1 SIM-card To get the modem to work is it necessary to have a GSM subscription from a network provider. They will provide you with a SIM card that should be mounted in the SIM card holder. Use a sharp element and press the yellow button to eject the holder. Mount the SIM card in the holder and make sure it is correctly installed before it is pushed back into the modem. 4.2 Antenna Remove the protection from the SMA connector and connect the enclosed antenna.
5.0 Configuration Note! To be able to configure the modem all the AT-commands has to be written with capital letters, e.g. AT+CPIN. In this manual we have only described the most frequently used commands. For the complete AT-commands manual, please, visit our web, www.westermo.se where you can find it in PDF-format. General commands +CGMM – Request model identification This command is used to get the supported bands (GSM 900, DCS 1800 or PCS 1900).
Call control commands D – Dial command Command syntax: ATD [I / i] [G/g] [;] ATD> [I / i] [G/g] [;] ATD> mem [I / i] [G/g] [;] ATD> [I / i] [G/g] [;] The ATD command is used to establish a speech, data or fax call. For a data or fax call, the application sends to the GSM module the following ASCII string: (the bearer has to be selected before with the +CBST command) ATD where is the called phone number.
Direct dialling from a phonebook location (stored in SIM card) can be done with the following command: ATD> ; for calling from the selected phonebook (by +CPBS command) ATD>”BILL”; for calling ”BILL” from the selected phonebook ATD> mem (mem is ”SM”, ”FD” or ”ON”, see +CPBS command) is a way to directly dial from a phonebook number.
H – Hang-Up command The command ATH (or ATH0) is used by the application to disconnect the remote user. In case of multiple calls, all calls are released (active, held and waiting calls). The specific Wavecom command ATH1 has been appended to disconnect only the outgoing call. It can be useful in case of multi communication.
AT%Dn – Automatic dialling with DTR This command allows to activate and deactivate automatic dialling of the phone number stored in the first location of ADN phonebook. The number is dialled on DTR OFF to ON transition. Sets commands: Options: ; AT%D0 AT%D1; AT%D1 Example: Application to GSM GSM to application AT%D[;] n (0–1) for activate or deactivate the automatic dialling. Informs the module that the number is a voice rather than a fax or data number. Deactivates automatic DTR dialling.
ATS0 – Automatic answer This S0-parameter controls the automatic answering feature of the mobile. Application to GSM GSM to application Application to GSM GSM to application ATS0=2 Automatic answer after 2 rings OK ATS0? Current value 002 Always 3 characters with leading OK zeros Application to GSM ATS0=0 No automatic answer GSM to application OK Command valid All others S-parameters (S6,S7,S8 ...) are not implemented.
Network service commands +CSQ – Signal Quality This command shall be used to know the received signal strength indication () and the channel bit error rate () with or without any SIM card inserted. : 0: –113 dBm or less 1: –111 dBm 2...30: –109 to –53 dBm 31: –51dBm or greater 99: not known or not detectable : 0...7: as RXQUAL values in the table GSM 05.
Application to GSM AT+CREG= GSM to application Application to GSM GSM to application OK AT+CREG=? +CREG: (0–2) Disable/enable network registration Unsolicited result code Command valid 0,1,2 values are supported Security commands +CPIN – Enter PIN This command is used to enter ME passwords (CHV1 / CHV2 / PUK1 /PUK2…) which are needed before any other functionality of the ME can be used. The CHV1/CHV2 length is between 4 and 8 digits, the PUK1/PUK2 length is 8 digits only.
To know which code has to be entered (or not), the following interrogation command can be used: AT+CPIN? The possible responses are: +CPIN: READY ME is not pending for any password +CPIN: SIM PIN CHV1 is required +CPIN: SIM PUK PUK1 is required +CPIN: SIM PIN2 CHV2 is required +CPIN: SIM PUK2 PUK2 is required +CPIN: PH-SIM PIN SIM lock (phone-to-SIM) is required +CPIN: PH-NET PIN Network personnalisation is required +CME ERROR: SIM failure (13) absent (10) etc...
Of course if SIM PIN2 is blocked, SIM PUK2 is required instead of SIM PIN2.
+CLCK – Facility lock This command shall be used by the application to lock, unlock or interrogate a ME or network facility .
Defined values The following values are supported: ”PS”: ”SC”: ”AO”: ”OI”: ”OX”: ”AI”: ”IR”: ”AB”: ”AG”: ”AC”: ”PN”: ”FD”: SIM lock facility with a 8 digits password. PIN enable ( = 1) / disable ( = 0) BAOC (Barr All Outgoing Calls) BOIC (Barr Outgoing International Calls) BOIC-exHC (Barr Outg. Internat Calls except to Home Country) BAIC (Barr All Incoming Calls) BIC-Roam (Barr Inc.
Supplementary Services commands +CLCK – Call barring This command allows control of the call barring supplementary service. Locking, unlocking or querying the status of a call barring is possible for all or a specific class. Command Syntax: AT+CLCK= , [, [, ] ] Response Syntax: (for =2 and command successful) +CLCK: [, [+CLCK: , , [...
GSM to application OK Password changed Application to GSM AT+CPWD=”AO”,1234,5555 Change password GSM to application +CME ERROR: 16 Wrong password Application to GSM AT+CPWD=”AO”,5555,1234 Change password GSM to application OK Password changed Whatever the facility, the change of password is performed for all calls barring. +CLIP – Calling line identification presentation This command allows control of the calling line identification presentation supplementary service.
Phonebook commands +CPBS – Select phonebook memory storage This command selects phonebook memory storage. The available phonebooks are the ADN (SIM), FDN (SIM fixdialling, restricted phonebook), and MSISDN (SIM own numbers) phonebooks.
+CPBF – Find phonebook entries This command returns phonebook entries which alphanumeric field start with a given string. The AT+CPBF= ”” command can be used to display all phonebook entries sorted in alphabetical order.
Application to GSM GSM to application Application to GSM GSM to application Application to GSM GSM to application Application to GSM GSM to application AT+CPBW=,”0345221100”, 129,”SOS” +CME ERROR: 20 AT+CPBW=57,”112”, 129 ,”WM” +CME ERROR: 21 AT+CPBW=7, ”012345678901234567 890”,129 ,”WAVE” +CME ERROR: 26 AT+CPBW=7, ”0122334455”,129 , ”WAVECOM TEL” +CME ERROR: 24 Write at the first free location Phonebook full Write at loc 57 (wrong) Invalid index Write at loc.
Data commands +CBST – Bearer type selection Command syntax: AT+CBST= , , No data compression is provided and only asynchronous modem is supported ( = 0). Description Modem type 0 (default) Autobauding None 1 300 bit/s V.21 2 1 200 bit/s V.22 3 1 200/75 bit/s V.23 4 2 400 bit/s V.22bis 5 2 400 bit/s V.26ter 6 4 800 bit/s V.32 7 9 600 bit/s V.32 8 Specific 65 300 bit/s V.110 66 1 200 bit/s V.110 68 2 400 bit/s V.110 70 4 800 bit/s V.110 71 9 600 bit/s V.
+FCLASS – Select mode This command puts the module into a particular mode of operation (data or fax).
+CRC – Cellular result codes This command enables a more detailed ring indication, in case of incoming call (voice or data). Instead of the string ”RING”, an extended string is used to indicate which type of call is ringing (e.g. +CRING: VOICE). These extended indications are: +CRING: ASYNC for asynchronous transparent +CRING: REL ASYNC for asynchronous non-transparent +CRING: VOICE for normal speech.
V24-V25 commands +IPR – Fixed DTE rate This commands specifies the data rate at which the DCE will accept commands.
+ICF – DTE-DCE character framing This command is used to determine the local serial port start-stop (asynchronous) character framing that the DCE shall use.
+IFC – DTE-DCE local flow control This command is used to control the operation of local flow control between the DTE and DCE.
&C – Set DCD signal This commands controls the Data Carrier Detect (DCD) signal. Application to GSM GSM to application Application to GSM AT&C0 OK AT&C1 GSM to application OK DCD always on Command valid DCD matches state of the remote modem’s data carrier Command valid &D – Set DTR signal This commands controls the Data Terminal Ready (DTR) signal.
Q – Result code suppression Determines whether the mobile sends result codes or not. Application to GSM GSM to application Application to GSM ATQ0 OK ATQ1 GSM to application (none) DCE transmits result codes Command valid Result codes are suppressed and not transmitted No response V – DCE response format Determines the DCE response format, with or without header characters , and with the use of numeric result codes.
E – Echo This command is used to determines whether or not the modem echoes characters received by an external application (DTE). Application to GSM GSM to application Application to GSM GSM to application ATE0 OK ATE1 OK Characters are not echoed Done Characters are echoed Done &F – Restore factory settings This command is used to restore the factory settings from EEPROM.
I – Request identification information This command causes the GSM module to transmit one or more lines of specific information text. Display the manufacturer followed by model identifications. This command is equivalent to +CGMI and +CGMM. I3: Display the revision identification (equivalent to +CGMR). I4: Display the modem configuration in RAM (equivalent to &V0). I5: Display the modem configuration in EEPROM (equivalent to &V1). I6: Display the modem data features.
Short Message commands Parameters definition - Destination Address, coded like GSM 03.40 TP-DA. Data Coding Scheme, coded like in document [5]. Discharge Time in string format: ”yy/MM/dd,hh:mm:ss±zz” (Year [00-99], Month [01–12], Day [01–31], Hour, Minute, Second and Time Zone [quarters of an hour]). First Octet, coded like SMS-SUBMIT first octet in document [4], default value is 17 for SMS-SUBMIT.
+CSMS – Select message service The supported services are GSM originated (SMS-MO) and terminated short message (SMS-MT), Cell Broadcast Message (SMS-CB) services. The syntax is: AT+CSMS= : 0: SMS AT commands are compatible with GSM 07.05 Phase 2 version 4.7.0. 1: SMS AT commands are compatible with GSM 07.05 Phase 2 + version . Application to GSM AT+CSMS=0 SMS AT command Phase 2 version 4.7.
If the command is correct, the following indication message is sent: +CPMS: ,,, When is selected, all following +CMGL, +CMGR and +CMGD commands are related to the type of SMS stored in this memory. Application to GSM AT+CPMS=? Possible message storages GSM to application +CPMS: ((”SM”,”BM”), Read, list, delete: SMS or (”SM”)) CBM.
Application to GSM GSM to application Application to GSM AT+CMGF=0 OK AT+CMGS=14 0001030691214365000004 C9E9340B +CMGS: 4 PDU message format PDU mode valid Send complete MSG in PDU mode, no SC address GSM to application MSG correctly sent, OK is returned The message is composed of the SC address («00 means no SC address given, use default SC address read with +CSCA command) and the TPDU message. The length of octets of the TPDU buffer is 14, coded as GSM 03.
+CSDH – Show text mode parameters This commands gives more informations in text mode result codes. These informations are in brackets in commands +CMTI, +CMT, +CDS, +CMGR, +CMGL. Application to GSM GSM to application AT+CSDH? +CSDH: 0 OK Current value Do not show header values +CNMI – New message indication This command selects the procedure how receiving the message from the network.
: set the rules for storing received CBMs (Cell Broadcast Message) types depend on its coding scheme, the setting of Select CBM Types (+CSCB command) and . Default is 0. 0 No CBM indications are routed to the TE. The CBMs are stored. 1 The CBM is stored and an indication of the memory location is routed to the customer application using unsolicited result code: +CBMI: ”BM”, 2 New CBMs are routed directly to the TE using unsolicited result code.
GSM to application GSM to application +CMGS: 7 OK +CDS: 2, 116, ”+33146290800”, 145, ”98/10/01,12:30:07+04”, ”98/10/01 12:30:08+04”, 0 Successful transmission Message was delivered correctly +CMGR – Read message This command allows the application to read stored messages.
+CMGL – List message This command allows the application to read stored messages, by indicating the type of the message to read.
+CMGS – Send message Command syntax in text mode: AT+CMGS= [ , ] text is entered Command syntax in PDU mode: AT+CMGS= PDU is entered The field is the address of the terminal network to whom the message is sent. To send the message, simply type character (ASCII 26). The text can contain all existing characters except and (ASCII 27). This command is abortable using the character when entering text.
+CMGW – Write Message to Memory This command stores a message to memory storage (either SMS-SUBMIT or SMS-DELIVERS). The memory location is returned (no choice possible as with phonebooks +CPBW). The entering of text or PDU is done similarly as specified in command Send Message +CMGS.
+CMSS – Send Message From Storage This command sends message with location value from storage to the network. Command syntax: Response syntax: AT+CMSS=[, [,] ] +CMSS: or +CMS ERROR: if sending fails If new recipient address is given, it will be used instead of the one stored with the message.
SM from the same . MTI: Message Type Indicator b1=0 & b0=0 -> SMS-DELIVER (in the direction SC to MS) b1=0 & b0=1 -> SMS-SUBMIT (in the direction MS to SC) In text mode is only coded in ”relative” format. The default value is 167 (24 hours).
+CSCA – Service center address This command shall be used to indicate to which service center the message has to be sent. The GSM module has no default value for this address. If the application tries to send a message without having indicated the service centre address, an error will be generated. So, the application has to indicate this address at initialization. This address is then valid all the time. The application may change it if needed.
GSM to application AT+CSCB=1 Application to GSM OK Deactivate the reception of CBMs CBM reception is completely stopped +WCBM – Cell Broadcast Message Identifiers Command syntax: AT+WCBM= [, , ] This specific command is used to read the SIM file EF-CBMI. This file is not used with +CSCB command, the application should read this file (AT+WCBM?) and combine the Message Identifiers with those required for the application.
+WMGO – Message overwriting The +CMGW writes a SMS to the first free location. To write a SMS to a specified location, the +WMGO specific command forces the module to write a SMS (with +CMGW command) to the location specified with +WMGO, but just for one +CMGW command. Command syntax: AT+WMGO= location number of the SIM record to write or overwrite Possible responses: OK if is a valid SMS location, for AT+WMGO=? and for AT+WMGO? +CME ERROR: 21 if is out of the SIM capacity range.
6.0 LED Function • LED Off • LED On • LED flashing slowly • LED flashing rapidly Device switch off – Not ready Device switched on – Connecting to network Device switched on – Idle mode Device switched on – Transmission mode 7.0 Application examples The AT-commands are used to configure the modems. The AT-commands can be sent from a terminal or a PC with a terminal program (Hyperterminal, Procomm etc.) Make sure the number of data bits is the same in both the modem and the terminal.
7.3 GS-01 to TD-32 (Analogue) Data between GS-01 and TD-32 with GS-01 in the dialing end. GS-01 in the dialling end AT+CPIN=xxxx Insert PIN number if required AT+CBST=7,0,1 Bearer type selection. Choose data rate and protocol. (9 600, V.32) ATDxxxxxxxxxx Dial the number AT&W Store active configuration TD-32 in the receiving end. Factory default settings except for SW4. It was set for 9 600,8,N,1 i.e. 2,3,5 and 6 ON. TD-32 answers automatically after 2 ring signals 7.
7.5 GS-01 to GS-01 with Short GS-01 in the sending end AT+CPIN=xxxx AT+CMGS=”0709999999” > Hello darling. Message Service SMS Insert PIN number if required After the AT command, type the number to dial followed by Enter. Do not forget the “ “. The cursor will jump to the next line and a > will appear. Type your message followed by ctrl Z. no is the number of SMS that have been sent. +CMGS: no OK The same procedure is done when a message is sent to a GSM cellular phone.
8.0 Trouble Shooting 8.1 The modem does not answer through the serial link a) Is the modem correctly powered on? (see table under section “Connections”) b) Is the serial cable suitable and adjusted in both ends (see table under section “Connections”) c) Check that the communication program is properly configured: • Data Bits: 8 • Parity: None • Stop bit: 1 • Data rate: 2 400, 4 800 or 9 600 bit/s d) Does any program interfere with your communication program (conflict on communication port access) 8.
8.
Subsidiaries Westermo Data Communications Ltd Unit 14 Talisman Business Centre • Duncan Road Park Gate, Southampton • SO31 7GA Phone: +44(0)1489 580 585 • Fax.:+44(0)1489 580586 E-Mail: sales@westermo.co.uk • Web: www.westermo.co.uk Westermo Data Communications GmbH Bruchsaler Straße 18, 68753 Waghäusel Tel.: +49(0)7254-95400-0 • Fax.:+49(0)7254-95400-9 E-Mail: westermo.germany@t-online.