Sending / receiving SMS using a GSM modem Application note



Similar documents
WAGO PFC 750-8xx Interface to Horner HMI Application note

Transmitting s with the WAGO IPC Application note

Transmitting s in a local network with a WAGO CONTROLLER Application note

Using the WAGO PROFINET Coupler as Remote I/O with a Siemens S7 PLC

Remote Connection to a WAGO using a High-Speed Internet connection Application note

Connect Ethernet-Controller to TO-PASS web portal via GPRS-Router Application note

Accessing EtherNet/IP Network Variables in a WAGO with a ControlLogix PLC Application note

WAGO-I/O-SYSTEM in ABB robot control systems Application note

Ethernet PFC Sending Application note

Using the SysLibFile.lib and the WagoLibFtp.lib for file access Application note

Configuration a Profibus-DP node using Step7 and WAGO-I/O components Application note

Application note. A103202, English Version 1.0.1

Ethernet/IP Comms between a WAGO and a Mettler Toledo JAGXTREME Terminal Application note

Transmitting s with the library "WagoLibMail_02.lib" Application note

Using library WagoLibMySQL to communicate with MySQL-Databases Application note

WAGO PFC as a MODBUS MASTER Application note

Application Note. WAGO EtherNet/IP Communications with a CompactLogix PLC Using Explicit Messaging. A500620e, English Version: 1.0.

EtherNet/IP communications between a WAGO PFC and a SICK IVC-2D Camera Application note

WAGO-I/O-SYSTEM. Using library WagoLibMSSQL_03.lib in CoDeSys 2.3 for interface to Microsoft SQL Server 200x. Application Note

Modular I/O System ETHERNET StarterKit Quick Start ETHERNET Fieldbus Controller

WAGO Software CODESYS Library WagoLibDiagnosticIDs.lib for accessing the internal diagnostics protocol

THE KNX IP CONTROLLER. Taking Proven Technology to the Next Level

Using library WagoLibHttp_02.lib to communicate with remote web server Application note

DK40 Datasheet & Hardware manual Version 2

Modular I/O System Quick Start for WAGO-I/O-IPC /000-xxx Features

Manual Serial PCI Cards

emobility WAGO Leading the Charge

Manual. Source Control. TwinCAT 3. Version Date

Documentation for. KL2602 and KL2622. Two-channel Relay Output Terminals for 230 V AC / 30 V DC. Version: 1.4 Date:

Manual TC3 PLC HMI. TwinCAT 3. Version: Date: Order No.: TF1800

Application Note. Terminal Server G6

SIM808 V2.2.5 user manual V1.2. Electrodragon.com

RJ45 Shielded (standard) port pinout. CS9000, Jetstream , Lanstream 2000, RTA8/RJX, RRC16, MTA8/RJX & SXDC8/RJX

SIMATIC NET. CP AS-Interface Master B C. Preface Contents. Technical Description and Installation Instructions Interface to the User Program

Evaluation Board. i-modul and Socket. Manual

Brake module AX5021. Documentation. Please read this document carefully before installing and commissioning the brake module!

Hardware Reference. Linux Device Server IGW/922 with DIL/NetPC ADNP/9200

Application. Characteristics RTU560. Data Sheet Communication Unit 560CMD11. Communication Unit 560CMD11

User Manuals. Connection to Siemens S5 PU (AS511) Part Number: Version: 2. Date:

Universal Serial Bus (USB) to DH-485 Interface Converter

JUMPFLEX 857 Series ma V ma. Transducers / Relay and Optocoupler Modules

Testing Data Radio Modem with Serial Port Tool V1.20

L16. Quectel GNSS Engine. EVB User Guide L16_EVB_UGD_V1.0

M3 ORANGE Snap-On. User Guide. Product Model: A-SNO-ATYP-060-R00. Compatible Device: M3 ORANGE. Version 2.2 Released in March 2013

BK MIKRO9. Tool monitoring system. Getting Started with Profibus Release 1.00 /

ELAN DIGITAL SYSTEMS LTD. SL232 PC- CARD USER S GUIDE

M3 Single-Slot Cradle. User Guide. Cradle Model: A-1CR-U R00, A-1CR-U00D-040-R00, A-1CR-US R00, A-1CR-U0ED-110-R00

F2103 GPRS DTU USER MANUAL

Event Monitor Application Note 80000NT10028a Rev

TTL to RS232 Adapter User Guide

ETM9350-1/ Quick Start Guide

S7 for Windows S7-300/400

FTP Automation Guide

Save offset to Encoder from PLC

GSM Interfacing Board

Validity 1. Improvements in STEP 7 2. Improvements in WinCC 3. Simatic. Readme. Readme

CPU PN/DP: Configuring an ET. 200S as PROFINET IO device SIMATIC. PROFINET CPU PN/DP: Configuring an ET 200S as PROFINET IO device

Communication Unit 560CMU05 Data sheet

A L ERT. Quick Start With

Programmable set for Ethernet Modbus/TCP in IP67 TI-BL67-PG-EN-2

xepi 2 Installation Guide Diagnostic Unit and Configuration Interface Doc. Version 4.0 English

Standard Screen Current Alarm Display. Sample Screen Manual. Mitsubishi Electric Corporation

SIMATIC NET. DP Base Programming Interface for CP 5613/CP Preface, Contents. Basic Steps in Creating a DP Application 1

NEC Express5800 Series NEC ESMPRO AlertManager User's Guide

WinCC. Communication Manual. Manual 2. This manual is part of the documentation package with the order number: 6AV6392-1CA05-0AB0 C79000-G8276-C156-01

PN L, Revision B, October Epic 950 TM. Master Programmer User s Guide

DANGER indicates that death or severe personal injury will result if proper precautions are not taken.

Job Scheduler User Guide IGSS Version 11.0

SCADAPack E ISaGRAF 3 User Manual

Real-time Ethernet with TwinCAT network variables

SIMATIC HMI. WinCC flexible 2008 Getting Started - First-Time Users Getting Started. Printout of the Online Help 06/2008 A5E

SMD Terminal Blocks with Push-Buttons

ABB solar inverters. User s manual ABB Remote monitoring portal

PCB TERMINAL BLOCKS. Product Overview

Programmable Safety Systems PSS-Range

How To Use An Adh8012 Gsm Gprs Module With A Gsm (Gsm) Gpros (Gsp) Gpls (Geo) Gsp (Gpl) Gs

SIMATIC. SIMATIC Logon. User management and electronic signatures. Hardware and Software Requirements. Scope of delivery 3.

Alignment and Couplings

ASi-INspektor Starterkit

Product Information Sheet UH36 Hi Pot Tester

WEB log. Device connection plans

DMX2PWM 9 Channel Dimmer Setup Manual

WEB log. Device connection plans

OfficeServ Link. User Guide. Version 2.1 June 2005

Installation Guide Smart-UPS X Tower/Rack-Mount 2U 2000/2200/3000 VA

MicroTech II McQuay Maverick II Rooftop Unit Controller BACnet Communication Module (MS/TP)

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

Moxa TCC-100/100I User s Guide

Elo Interactive Digital Signage (IDS): Remote Management

SIMATIC. WinCC V7.0. Getting started. Getting started. Welcome 2. Icons 3. Creating a project 4. Configure communication 5

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

Installation instructions CAN/RS232-USB interface CANfox EC / / 2010

BIS Automation Engine

Plant automation and telecontrol in one system. SIMATIC PCS 7 TeleControl SIMATIC PCS 7. Answers for industry.

CMMP Function Activation of Multiturn Encoder for Endless Positioning

SIMATIC HMI. WinCC flexible Getting Started First Time User. Order number 6ZB5370-1CL02-0BA2. Edition 04/2006 A5E

RS - SPM. Serial parallel translator module

HT580 User Reference Guide. Version 1.0

SUPPORT GUIDE FOR. NOKIA MODEM DRIVER AND DIAL-UP for the Nokia 810. Copyright Nokia. All rights reserved Issue 0.4

GSM. Quectel Cellular Engine. GSM TCPIP Application Notes GSM_TCPIP_AN_V1.1

Transcription:

Sending / receiving SMS using a GSM modem, English Version 1.0.4

2 General Copyright 2003 by WAGO Kontakttechnik GmbH & Co. KG All rights reserved. WAGO Kontakttechnik GmbH & Co. KG Hansastraße 27 D-32423 Minden Phone: +49 (0) 571/8 87 0 Fax: +49 (0) 571/8 87 1 69 E-Mail: info@wago.com Web: http://www.wago.com Technical Support Phone: +49 (0) 571/8 87 5 55 Fax: +49 (0) 571/8 87 85 55 E-Mail: support@wago.com Every conceivable measure has been taken to ensure the correctness and completeness of this documentation. However, as errors can never be fully excluded we would appreciate any information or ideas at any time. We wish to point out that the software and hardware terms as well as the trademarks of companies used and/or mentioned in the present manual are generally trademark or patent protected.

Table of Contents 3 TABLE OF CONTENTS 1 Important comments... 4 1.1 Legal principles... 4 1.1.1 Copyright... 4 1.1.2 Personnel qualification... 4 1.1.3 Intended use... 4 1.2 Range of validity... 5 1.3 Symbols... 5 2 Description... 6 3 Reference Material... 6 4 Solution... 7 5 Programming the Controller... 8 5.1 Sending / receiving SMS messages... 8 5.2 Parsing received messages... 9 5.2.1 LAMP (procedure)... 10 5.2.2 MESSAGE (procedure)... 10 6 Display... 11 7 Tables... 12 7.1 Various Initialization strings... 12 7.2 Files required... 12

4 Important comments 1 Important comments 1.1 Legal principles 1.1.1 Copyright To ensure fast installation and start-up of the units described in this manual, we strongly recommend that the following information and explanation is carefully read and adhered to. This manual is copyrighted, together with all figures and illustrations contained therein. Any use of this manual which infringes the copyright provisions stipulated herein, is not permitted. Reproduction, translation and electronic and photo-technical archiving and amendments require the written consent of WAGO Kontakttechnik GmbH & Co. KG. Non-observance will entail the right of claims for damages. 1.1.2 Personnel qualification 1.1.3 Intended use The use of the product detailed in this manual is exclusively geared to specialists having qualifications in PLC programming, electrical specialists or persons instructed by electrical specialists who are also familiar with the valid standards. WAGO Kontakttechnik GmbH & Co. KG declines all liability resulting from improper action and damage to WAGO products and third party products due to non-observance of the information contained in this manual. For each individual application, the components supplied are to work with a dedicated hardware and software configuration. Modifications are only admitted within the framework of the possibilities documented in the manuals. All other changes to the hardware and/or software and the non-conforming use of the components entail the exclusion of liability on part of WAGO Kontakttechnik GmbH & Co. KG. Please direct any requirements pertaining to a modified and/or new hardware or software configuration directly to WAGO Kontakttechnik GmbH & Co.KG.

Important comments 5 1.2 Range of validity 1.3 Symbols This application note is based on the stated hardware and software of the specific manufacturer as well as the correspondent documentation. This application note is therefore only valid for the described installation. New hardware and software versions may need to be handled differently. Please note the detailed description in the specific manuals. Danger Always observe this information to protect persons from injury. Warning Always observe this information to prevent damage to the device. Attention Marginal conditions must always be observed to ensure smooth operation. ESD (Electrostatic Discharge) Warning of damage to the components by electrostatic discharge. Observe the precautionary measure for handling components at risk. Note Routines or advice for efficient use of the device and software optimisation. More information References to additional literature, manuals, data sheets and INTERNET pages

6 Description 2 Description This application example demonstrates how to send and receive short messages using a GSM modem. For demonstration purposes the "lamp" procedure has been used in this example. This procedure allows up to three parameters to be parsed. The procedure name and the parameters included in the message are separated by a comma. It is therefore possible to switch one or several lamps by sending a SMS message. To gain a better understanding of this procedure, arriving messages can be displayed and direct message input is possible before sending the message. For this application a standard mobile phone is used as GSM modem. The following mobile phones have been tested: Siemens S25 with Siemens data cable Siemens S35 with Siemens data cable Siemens S45 with Siemens data cable Nokia 6210 with DLR-3 data cable Ericson T68i with data cable Furthermore, the following GSM modules were tested: Siemens C35i Siemens M20T Siemens TC35i INSYS GSM small When using GSM modules, all AT commands that can be executed automatically should be deactivated (refer to manufacturer's manual). 3 Reference Material Manufacturer Name Version / Item No. WAGO Ethernet controller 750-842 WAGO 4-channel dig. output module 750-504 WAGO Serial interface RS232 750-650 / 003-000 WAGO End module 750-600 WAGO Interface module 289-545 Siemens Siemens Data cable for S25..S45 Mobile phone S25 / S35 / S45 Nokia Data cable for 6210 DLR-3 Nokia Mobile phone 6210 6210

Solution 7 4 Solution TxD - (3) RxD - (2) RTS/CTS - (7+4) 289-545 GND - (5) 750-600 750-842 750-504 750-650/003-000 Picture 4-1: GSM_SMS call up The standard interface module from WAGO (item no.: 289-545) makes it possible to use a standard mobile phone data cable.

8 Programming the Controller 5 Programming the Controller Programming the controller includes sending / receiving SMS messages as well as parsing received messages (RPC interface). 5.1 Sending / receiving SMS messages Sending and receiving messages is done using the "GSM_SMS" module from the "SMS_01.LIB" library. Received messages are registred in the "RECEIVED_SMS" structure by the module (see picture 5.1-1) Picture 5.1-1: GSM_SMS call up Messages to be sent are registred in "SEND_SMS". The transmission is activated by setting the START_SEND_SMS parameter once (see also library description ML00300d).

Programming the Controller 9 5.2 Parsing received messages Received messages are delivered to the SMS_RPC module to be parsed. This module first checks whether a new valid message has been received and decomposes the message into its individual parts by calling the "PARSE_SMS_MESSAGE" function. Subsequently, the individual parts of the message are located in the "message structure. The procedure name (function name) can now be parsed using an appropriate "IF command" and the corresponding procedure is called. Procedure calls can be added to the application by the user at any time, since this part of the program is located outside the library. Picture 5.1-2: call up interface (RPC) The "lamp" and "message" procedures have been implemented in this application example. For example, the second lamp (fisrt parameter following the procedure name) is switched on by a message containing "lamp,2,1,0 (second parameter). With the third parameter set, no return message needs to be sent afterwards.

10 Programming the Controller 5.2.1 LAMP (procedure) WAGO-I/O-PRO 32 procedure example Category: Name: Used for: Demonstration LAMP Programmable couplers Parameter: Range: Comment: 1 ½ Addressing lamp => 1 -> 1st storey 2 -> ground 2 0/1 0 -> lamp off 1 -> lamp on 3 0/1 0 -> no return message 1 -> SMS return message to the sender Function description: Using this procedure, a digital output is switched on or off according to the parameters. After switching, a return message (SMS) is generated for the sender provided the third parameter is set to 1. 5.2.2 MESSAGE (procedure) WAGO-I/O-PRO 32 procedure example Category: Name: Used for: Demonstration MESSAGE Programmable couplers Parameter: Range Comment: None Function description: This procedure sends a return message (SMS) to the procedure initiator (sender nummer).

Display 11 6 Display The display supporting this application example is divided into three parts: the SMS reception window (blue), the SMS transmission window (green) and the picture of a building showing how the message is processed. Picture 6-1: Display

12 Tables 7 Tables 7.1 Various Initialization strings NOKIA_6210_INIT : STRING := 'ATE0 /AT+CMGF=0 /AT+CNMI=2,2,0,0,0 '; SIEMENS_S45_INIT : STRING := 'ATE0 /AT+CMGF=0 /AT+CNMI=1,1,0,0,1 '; SIEMENS_C35i_INIT : STRING := 'AT+CPIN=1234 /ATE0 /AT+CMGF=0 /AT+CNMI=1,1,0,0,1 //'; SIEMENS_M20_INIT : STRING := 'AT+CPIN=1234 /ATE0 /AT+CMGF=0 /AT+CNMI=1,1,0,0,1 /'; ERICSON_T68i_INIT : STRING := 'ATE0 /AT+CMGF=0 /AT+CNMI=3,1,0,0,0 /AT+CPMS="ME","ME" '; INSYS_GSM_SMALL_INIT : STRING := 'AT+CPIN=1234 /ATE0 /AT+CMGF=0 /AT+CNMI=1,1,0,0,1 /AT+CPMS="SM","SM","SM" /'; SIEMENS_TC35i_INIT : STRING := 'AT+CPIN="1234" /ATE0 /AT+CMGF=0 /AT+CNMI=3,1,0,0,1 /AT+CPMS="MT","MT", MT ' ; WESTERMO_GDW11_INIT : STRING := 'AT+CPIN=1234 /ATE0 /AT+CMGF=0 /AT+CNMI=1,1,0,0,1 /AT+CPMS="SM","SM","SM" /'; WAGO_761_510_INIT : STRING := 'ATE0+CMGF=0+CNMI=2,1,0,0,1+CPMS="MT","MT","MT" ///'; AT commands that can be executed automatically must be deactivated using appropriate software (refer to manufacturer's manual). 7.2 Files required Column headline GSM_SMS_01_lib.pro GSM_SMS_01.Lib Serial_Interface_01.Lib SerComm.Lib SerComm.HEX Standard.Lib Project example Protocol driver used to control a GSM modem Driver for serial interfaces Basic functionality of serial interfaces Hex file for basis functionality Standard functions

Tables 13 Standard.HEX Hex file for the standard functions

14 Tables

WAGO Kontakttechnik GmbH & Co. KG Postfach 2880 D-32385 Minden Hansastraße 27 D-32423 Minden Phone: 05 71/8 87 0 Telefax: 05 71/8 87 1 69 E-Mail: info@wago.com Internet: http://www.wago.com