Sending SMS Messages and E-mails



Similar documents
Using HyperTerminal with Agilent General Purpose Instruments

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

MT-350 SMS. Operation Manual. PORTech Communications Inc.

Vicon Flash Upgrade Software

Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000

T-BOXN12R. First steps with T-BOXN12R. You can make it wireless. Date: Version 1.0

RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: / 97 / 98 (M)

Print Server Application Guide

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

Knowledge Base POS/C31A Troubleshooting

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

Configuring the Siemens TC35 modems for use with the MI2292

PM1122 INT DIGITAL INTERFACE REMOTE

Aquadyne TechTip TITLE: TROUBLESHOOTING PC COM PORT AND MODEM PRODUCTS AFFECTED SYMPTOMS POSSIBLE CAUSES

Modbus Communications for PanelView Terminals

ON-GUARD. Guard Management System. Table of contents : Introduction Page 2. Programming Guide Page 5. Frequently asked questions Page

How to setup a serial Bluetooth adapter Master Guide

Instructions on How to Use HyperTerminal to Test Serial Ports ...

USB to RS-422/485 Serial Adapter

Connecting the DG-102S VoIP Gateway to your network

Print Server Application Guide. This guide applies to the following models.

SETTING UP A REMOTE MODEM CONNECTION Application Note 27

CONCEPT1 RS232 COMMUNICATION

enervista UR Setup Software Quick Connect Instructions:

ETM9350-1/ Quick Start Guide

Technical Manual. For use with Caller ID signaling types: Belcore 202, British Telecom, & ETSI

Starting Guide - Poseidon 3265 First steps for remote monitoring with Poseidon & GSM

Plena Voice Alarm System Firmware update

32 Transferring Projects and Data

PRN_LOAD :22

Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System

Simplex Fire Products U File Transfer Utility Guide

NortechCommander Software Operating Manual MAN R6

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

ABUS WIRELESS ALARM SYSTEM

User manual Compact Web PLC WP240 series IEC-line

PTPhoneManager II. User guide

1.1 Connection Direct COM port connection. 1. Half duplex RS232 spy cable without handshaking

Global Monitoring + Support

Config software for D2 systems USER S MANUAL

Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0

OWNERS MANUAL. Status Monitor. for Windows 95, 98, ME, NT 4, 2000 & XP. SIGNALCRAFTERS TECH, INC.

Vicon Flash Upgrade Software

Operating Instruction MEW01652 Revision -

M2M 3350 GSM/GPRS Modem User s Manual & Reference Guide Revision 1 June 2007

M72. Quectel Cellular Engine. EVB User Guide M72_EVB_UGD_V1.0

RcWare SoftPLC Modbus server mapping editor User manual

PL-2303 (Chip Rev H, HX, X) USB to Serial Adapter Windows Driver Installer Manual

SA-9600 Surface Area Software Manual

A L ERT. Quick Start With

WindO/I-NV2 Utility Pass-Through Tool

Date Rev. Details Author

Acton Research Technical Support SpectraPro Diagnostic Procedure

POS Integration. Prepared by: Binh Nguyen

Application & Quick-Start Guide

GSM HOME SECURITY SYSTEM

USER GUIDE Programming Adapter Cable for Fujitsu Flash Microcontroller- F²MC-16LX/FR Family Fujitsu Microelectronics America, Inc.

Dial-Up / Leased-Line Modem. User Manual. AGM Electronics, Inc Dial-Up / Leased-Line Modem, Series ( ) Manual Rev A + - DLM CTS RTS DTR DSR

Table of Contents. Creating a VC1000 Network... 3

Using a USB to Serial adapter and Terminal Emulator in Windows 7 to communicate with a DM101

ABB solar inverters. User s manual ABB Remote monitoring portal

Accessing Diagnostics using a Dialup Modem

Communications Instructions for DOOSAN, FANUC Controls

LAN / WAN Connection Of Instruments with Serial Interface By Using a Terminal Server

How To Connect A Directsofl To A Powerpoint With An Acd With An Ctel With An Dm-Tel Modem On A Pc Or Ipad Or Ipa (Powerpoint) With A Powerline 2 (Powerline

FLASH PROCEDURE for GSM BENTEL and DSC cards

WinLIN Setup and Operation:

Connecting the Console Port to a PC

Keep it Simple Timing

RS-232 COMMUNICATIONS

Single channel data transceiver module WIZ2-434

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

TICO-EN. TiXML-Console TICO. User Manual V

F2103 GPRS DTU USER MANUAL

LOVELINK III- Process Monitoring, Logging, Graphing, & Configuration

Serial to Bluetooth Adapter

Bluetooth Serial Adapter

USB DRIVER INSTALLATION GUIDE

GSMPBX version 1.3 Datasheet

SenseLink TM. End-Point Controller. Addendum

Cable Specifications and Information

BIODEX. ATOMLAB 500/WIPE TEST COUNTER DATA MANAGER SOFTWARE Version 1.10 (and higher). OPERATION MANUAL

Installing ABACUS ELECTRICS USB Optical Probes under Windows 7

Remote control software manual for soft starter DG[ Document code: I88.GB Remote control software manual page 1 DG[

Connecting a Metrologic MS9535 to a USB BT Adapter (Client Mode)

Application Note 2. Using the TCPDIAL & TCPPERM Commands to Connect Two TransPort router Serial Interfaces Over TCP/IP.

CENTRONICS interface and Parallel Printer Port LPT

2-Port RS232/422/485 Combo Serial to USB2.0 Adapter (w/ Metal Case and Screw Lock Mechanism) Installation Guide

Data Bulletin. Communications Wiring for POWERLINK G3 Systems Class 1210 ABOUT THIS BULLETIN APPLICATION INTRODUCTION.

Cable Specifications and Information

RS232 Board datasheet

Fanuc 0 M/T Model C Serial (RS232) Connection Guide

MULTIFUNCTIONAL DIGITAL SYSTEMS. Network Fax Guide

OWNERS MANUAL. WattsVIEW. Power Monitor Model: DC WattsVIEWTM. Models: DC Serial DC-1000 USB DC-25000

LTM-1338B. Plus Communications Manual

Synergy Controller Application Note 4 March 2012, Revision F Tidal Engineering Corporation Synergy Controller Bar Code Reader Applications

WAMLocal. Wireless Asset Monitoring - Local Food Safety Software. Software Installation and User Guide BA/WAM-L-F

Configuration Guide for Users

Transcription:

GDW-11 GSM Modem Sending SMS Messages and E-mails AN-0139-ENG rev 3.1 Page 1

Contents 1. Introduction - Sending SMS Messages... 2. Configuring the GDW-11... 3. Configuring Hyperterminal. 4. Method 1- Using DTR to trigger a message... 5. Method 2 - Sending messages stored in the GDW-11..... 6. Method 3 - Send a message directly from a PLC.. 7. Sending an email 8. Appendix - 1. AN-0139-ENG rev 3.1 Page 2

1. Introduction - Sending SMS Messages GSM Network There are three different methods to cause the GDW-11 to issue an SMS message: Method 1. Toggle the DTR line on the RS232 port This method is limited to sending 1 stored message and is suitable for applications where a closed contact is available to indicate a fault or status. Method 2. Send a stored message by issuing a command to the modem The messages are stored on the SIM card and are sent when a specific command is issued from the connected equipment. A SIM card can normally store between 15 & 20 messages. This method requires a single line of ASCII text to initiate the transmission. Method 3. Send a message directly from connected equipment/plc Both the command and message content are sent directly to the modem. The amount of messages that can be sent is only restricted by available memory in the PLC program. This method requires a small amount of programming in the PLC to ensure the commands are timed properly. This application note will explain what is required to set-up a GDW-11 for all three of the methods listed above. In order to complete these instructions you will need the following items as a pre-requisite: Network SIM Card GD-Tool configuration software Straight through, male to female, 9 way serial cable (for programming GDW-11) The GD-Tool configuration software is supplied on a CD-ROM with the GDW-11, or it can be downloaded from the Westermo website: www.westermo.co.uk The serial cable will need to be fully terminated, GD-Tool will not work with just pins 2,3 & 5 connected! IMPORTANT NOTE Network providers do not guarantee the delivery of an SMS message. For this reason we would never recommend using SMS messaging to indicate critical alarms. AN-0139-ENG rev 3.1 Page 3

2. Configuring the GDW-11 Start the GD-Tool program and connect the PC to the GDW-11 with the serial cable. Power up the modem, then click on the Autoconnect button to establish comm s. Click here to commence comm s Once GD-Tool has read all of the settings in the modem, there will be several tabs available to click on. For this application, we are only interested in the Serial and SMS tabs. Note: These are example settings AN-0139-ENG rev 3.1 Page 4

Configuring the GDW-11.cont d In order to send an SMS, the modem needs to know the network service centre n u m b e r t o s e n d t h e message to. Under normal circumstances t h i s i n f o r m a t i o n i s automatically read from the sim card. However, should this field appear blank, it will be necessary to enter the c o r rect s e rvice c e n t r e number, otherwise it will not be able to issue an SMS message. The list below shows the numbers for the major networks. Network Service Centre Addresses: +447802000332 +447785016005 +447782000800 +447958879890 +447973100973 +447958879979 AN-0139-ENG rev 3.1 Page 5

3. Configuring Hyperterminal to make a connection In order to program the GDW-11 with the desired SMS messages, or prepare the sim card for use, a terminal program is required to send the instruction commands. This section will show you how to set-up Hyperterminal for this purpose. Check the serial cable is still attached to the GDW-11 and make sure that the modem is powered up. Click on the Windows start button, go to Programs, Accessories, Communications and select Hyperterminal. When the program starts choose a name for your connection and select OK. When this dialogue box appears set the Connect using box to the COM port connected to the GDW-11. Then click on the OK button Note: These are example settings Set-up the COM port for the settings to match those already set for the GDW- 11 serial port, and click on the OK button. AN-0139-ENG rev 3.1 Page 6

The main terminal window will now be displayed. To test the modem is responding type the command: AT <CR> The modem should respond with OK. If you don t see any characters when you type the commands, it is likely that the echo is switched off. This will not affect the operation of the modem, but if you wish to see what you re typing, use the command: ATE1<CR> (switches the echo on) Now refer to the next section for configuring the GDW-11 for sending text messages. AN-0139-ENG rev 3.1 Page 7

4. Method 1- Using DTR to trigger a message If the application doesn t have an intelligent device which is capable of issuing a command to the modem, it is possible to send a single SMS message by raising the DTR line high. If the connected device isn t capable of raising the DTR line, it s possible to use the modem s own DSR line to trigger the message. The DTR line should be connected to GND, via a 10K ohm pull down resistor. The diagram below shows how the connection should be made. 6 4 DSR DTR Relay External application 10K 5 GND Add this pull down resistor if the modem is in a noisy environment With the hardware connection in place, the modem needs to be setup for this mode to operate correctly. Using the Hyperterminal session that was created in the previous section, type in the following AT commands : AT&S0<CR> AT%D2<CR> AT&W<CR> (This sets the DSR line permanently high) (Activates automatic transmission of SMS if DTR line triggered on) (Stores the above settings in memory) Finally, the actual SMS message needs to be stored onto the sim card. When DTR is triggered it will send the message that is stored in location 1 of the sim card memory. As it is not possible to specify the location for storing the message, the only way to ensure that the message is put into location 1 is by deleting all the messages from the SIM card. This is done with the following command: AT+CMGD=1,4<CR> Refer to the next page for completing this section. AN-0139-ENG rev 3.1 Page 8

Method 1-.continued Now the message can be entered, using the commands below: AT+CMGW= your phone number <CR> The modem will respond with > as a prompt to enter the text to be stored. At this prompt type the following: >MESSAGE CONTENT<Ctrl+Z> Immediately after pressing Ctrl+ Z, the modem will respond with +CMGW: 1, this indicates that the message has been stored in location 1. The screen shot below shows the whole sequence more obviously. AN-0139-ENG rev 3.1 Page 9

5. Method 2 - Sending messages stored in the GDW-11 If the connected device is capable of sending ASCII text strings to the modem, then you can use it to issue commands, which will send specific messages that are stored on the sim card. The amount of messages you can store on a sim card will vary according to its capacity, but it is usually between 15 & 20 messages. Number of the mobile to send text to Message content Location of message With the Hyperterminal session running, it is necessary to delete any SMS messages that may have been previously stored on the sim card. Type the following command: AT+CMGD=1,4<CR> The modem should respond with OK to indicate this command has worked. To check if the memory is now clear type this command: AT+CMGL= ALL If the memory is empty then the modem will respond with OK. If there are any stored messages they will be listed on the screen Now it is possible to start storing the desired messages. The first part of the command stores the number of the mobile phone that the text will be sent to. Type the following command: AT+CMGW= your phone number <CR> The modem will respond with > as a prompt to enter the text to be stored. At this prompt type the following: >MESSAGE CONTENT<Ctrl+Z> Immediately after pressing Ctrl+ Z, the modem will respond with +CMGW: X, (where X is the location number where the message is stored) followed by OK The screen shot on the left shows the above sequence more obviously AN-0139-ENG rev 3.1 Page 10

Method 2 -...continued Repeat the command for every message that you wish to store, remembering to note the number of the location where the message gets stored. Use the form provided in Appendix 1 for this purpose. Following the example from the previous page, the location, message and phone number list for the sim card would be: SIM CARD MESSAGE NUMBER TO SEND TEXT TO Location 1: PUMP 1 FAULT 07941582455 Location 2: PUMP 1 STOPPED 07941582455 Location 3: PUMP 1 OVERSPEED 07941582455 Location 4: PUMP 1 ON FIRE 07941582455 Location 5: PUMP 1 MISSING! 07941582455 If you want to check the message list stored, use the AT+CMGL= ALL command to view the sim memory. The command required to send a message is as follows: AT+CMSS=X<CR> Where X is the location of the message to be sent The carriage return at the end of the line is required to force the command to be actioned. Different devices implement ASCII control characters in different ways, so you will need to alter the <CR> command to suit your device. The most common forms are either ^M or /CR To send the messages stored in the previous example, the commands for each message would be as follows: SIM CARD MESSAGE COMMAND REQUIRED Location 1: PUMP 1 FAULT AT+CMSS=1 Location 2: PUMP 1 STOPPED AT+CMSS=2 Location 3: PUMP 1 OVERSPEED AT+CMSS=3 Location 4: PUMP 1 ON FIRE AT+CMSS=4 Location 5: PUMP 1 MISSING! AT+CMSS=5 AN-0139-ENG rev 3.1 Page 11

6. Method 3. Send a message directly from a PLC This final method is the most powerful, as the message and required commands are sent dynamically from the PLC. However, as dynamic texting is a two step process, it is important that the PLC program gets the timing of the commands correct. Wait for this prompt before sending the second string Send this command first Status indicating message was sent The two strings that need to be sent from the PLC are as follows: AT+CMGS= your phone number <CR> After receiving this first command, the modem will now be waiting for the message content to be sent. The PLC should now send the second string: MESSAGE CONTENT<Ctrl+Z> When the modem sees Ctrl+ Z the terminating character it will send the SMS immediately, and respond with +CMGS: X, (where X is the reference number. Outgoing messages are not stored) followed by OK If both commands are sent one after the other without a delay the modem will report an error. There must be a small delay after the first command to allow the modem to respond with the message prompt (ASCII character 62), before the second command is issued. The screen shot on the left shows the s e q u e n c e w h e n d o n e m a n u a l l y w i t h Hyperterminal. The carriage return <CR> and Ctrl- Z terminating characters are implemented differently, depending on the PLC manufacturer. Therefore, you will need to alter these commands to suit your device. The most common forms are either ^M or /CR for <CR>, and ^Z or /SUB for Ctrl-Z AN-0139-ENG rev 3.1 Page 12

7. Sending E-mails Overview GDW-11 Network SMS Centre SMS to Email Service Desktop e-mail Technically, the GDW-11 isn t actually capable of sending an e-mail. However, by using an SMS to E-mail forwarding service the same process is accomplished. E-mails give you greater flexibility for handling the original SMS message, as most e-mail programs give you the ability to forward to other users and groups. There are several companies that offer this service, but the two services we have tested are: O2's mmail service for O2 SIM cards only Send SMS to: 212 SMS2Email service for any network Send SMS to: 07766 404142 The cost of sending the message is charged at your standard network rate, there are no additional charges. To send a message just add the email recipient to the start of the SMS message and then send it to the number for the forwarding service. The message can be stored or dynamic, as described in the previous sections of this application note. For example: To send the email message "Plant alarm: Pump 1 shutdown to joe.bloggs@westermo.co.uk create the text message as follows: joe.bloggs@westermo.co.uk Plant alarm: Pump 1 shutdown (N.B. there must be a space after the email address) Then send the text to one of the service providers numbers: 212 or 07766 404142 IMPORTANT NOTE Network providers do not guarantee the delivery of an SMS message. For this reason we would never recommend using SMS messaging to indicate critical alarms. AN-0139-ENG rev 3.1 Page 13

8. Appendix - 1 Photocopy this page and use it to make a note of where your messages are stored in the SIM card, and which mobile number they will be sent to. SIM SMS Message Mobile Number Location e.g.pump 1 FAULT 1 07941 582455 AN-0139-ENG rev 3.1 Page 14

Westermo Teleindustri AB SE-640 40 Stora Sundby, Sweden Westermo Web site: Sweden www.westermo.se support.sverige@westermo.se Phone: +46 (0)21 548 08 00 Fax: +46 (0)21 351850 France www.westermo.fr support@westermo.fr Tél : +33 1 69 10 21 00 Fax : +33 1 69 10 21 01 United Kingdom Web: www.westermo.co.uk technical@westermo.co.uk Telephone: +44 (0)1489 580585 Fax: +44 (0)1489 580586 Singapore sales@westermo.com.sg Phone: +65 6743 9801 Fax: +65 6745 0670 Germany www.westermo.de support@westermo.de Tel: +49(0)7254 95400-0 Fax: +49(0)7254-95400-9 International support@westermo.se Phone: +46 (0)16 42 80 00 Fax: +46 (0)16 42 80 01 AN-0139-ENG rev 3.1 Page 15