Beruflich Dokumente
Kultur Dokumente
Application note
A111900, English
Version 1.0.4
2 General
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.
Application note
A111900
Table of Contents
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
Solution ................................................................................................... 7
Display .................................................................................................. 11
7 Tables.................................................................................................... 12
7.1
Various Initialization strings.............................................................. 12
7.2
Files required .................................................................................... 12
Application note
A111900
Important comments
1 Important comments
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.
Application note
A111900
Important comments
1.3 Symbols
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
Application note
A111900
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
WAGO
WAGO
WAGO
WAGO
WAGO
Name
Ethernet controller
4-channel dig. output module
Serial interface RS232
End module
Interface module
Siemens
Siemens
Nokia
Nokia
DLR-3
6210
Application note
A111900
Solution
4 Solution
TxD - (3)
RxD - (2)
RTS/CTS - (7+4)
289-545
GND - (5)
750-600
750-842
750-504
750-650/003-000
The standard interface module from WAGO (item no.: 289-545) makes it possible to use a standard mobile phone data cable.
Application note
A111900
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).
Application note
A111900
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.
Application note
A111900
10
Category:
Name:
Used for:
Parameter:
1
Range:
0/1
0/1
Comment:
Addressing lamp => 1 -> 1st storey
2 -> ground
0 -> lamp off
1 -> lamp on
0 -> no return message
1 -> SMS return message to the sender
Function description:
Category:
Name:
Used for:
Parameter:
None
Range
Comment:
Function description:
This procedure sends a return message (SMS) to the procedure initiator (sender
nummer).
Application note
A111900
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.
Application note
A111900
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).
Project example
GSM_SMS_01.Lib
Serial_Interface_01.Lib
SerComm.Lib
SerComm.HEX
Standard.Lib
Standard functions
Application note
A111900
Tables
Standard.HEX
Application note
A111900
13
14
Tables
Application note
A111900
http://www.wago.com