Using The M90-GSM's SMS Feature
Using The M90-GSM's SMS Feature
SMS messaging...................................................................................................................................................................1
About SMS messaging................................................................................................................................................1
Overview of M90 SMS messaging .....................................................................................................................................3
SMS phone book .........................................................................................................................................................3
Creating SMS messages......................................................................................................................................................4
Creating SMS text messages ...............................................................................................................................................4
Attaching variables......................................................................................................................................................4
Deleting variables .......................................................................................................................................................5
Testing messages.........................................................................................................................................................5
SMS Message Properties.............................................................................................................................................5
ACK-Acknowledge message ......................................................................................................................................6
Configuring SMS messaging features.........................................................................................................................6
Limit to Authorized Phone Numbers ..........................................................................................................................7
Using SMS messages in your application ...................................................................................................................7
Sending SMS messages from a GSM cell phone ................................................................................................................8
Writing SMS messages in your cell phone .........................................................................................................................8
Sending the message to the M90.................................................................................................................................9
Checking that the M90 has received the SMS message ..............................................................................................9
SMS messaging
About SMS messaging
SMS messaging is a feature of GSM-based cellular telephone services. Via SMS messaging the
M90 can use SMS messaging to send and receive data to and from a cell phone. Both fixed text and
variable data can be communicated. This feature can be used to transmit data and for remote
diagnostics.
In order to use this feature, you must connect the M90 to a GSM modem, sometimes called a cellular
IP modem. Other modems do not support connection to a cellular network.
SMS messaging is subject to all of the limitations of normal cellular network use, as for example
network availability.
Overview of M90 SMS messaging
To enable the M90 to use SMS messaging, you must:
Create the SMS phone book, which determines where the M90 can send SMS messages.
Create SMS messages.
Configure the SMS Message Properties for each SMS message.
Configure your SMS messaging features.
Download the project to the M90.
Connect the M90 to a GSM modem
After you have performed the above procedures, you can use SMS messages in your application.
Once SMS messages have been created, configured, and downloaded to the M90, the M90 can receive
these messages from a GSM cell phone.
Note that there are two formats for entering phone numbers shown below. If Limit to Authorized
Phone Numbers is not selected, the M90 can send and receive SMS messages to/from any number in
the Phone Book.
Format 1: The M90 can receive messages from this number. This is because the number is in full
GSM format, including the '+' in front of the country code.
Format 2: The M90 cannot receive messages from this number.
To edit the phone book, click in a number or description, then make your changes.
Cut and copy messages by clicking on the Cut button. This removes all of the text and variables
from a message, but does not delete the line.
Copy messages by clicking on the Copy button. This copies all of the text and variables.
Paste by clicking on the Paste button. You can paste over an existing message. This action erases
any information in the line.
Use the Insert button to add a line below the line containing the cursor.
Use the Delete button to remove a line below the line containing the cursor.
Attaching variables
You can attach up to 9 Integer or List Variables to an SMS message. Each variable can include up to
16 characters. Attaching variables to an SMS message is similar to attaching variables to an HMI
display. However, the variable must already be in the variable list--you cannot link a variable before it
has been created.
Integer variables can be sent and received with SMS messages. List variables can only be sent to a cell
phone.
As with HMI variables, you must create a Display Field for the display of the variable's value.
1. Click your cursor where you want to locate the variable text.
2. Hold down the Shift key on your PC keyboard, while you press the right-pointing arrow key. A square
is highlighted each time you press the arrow key. The first square displays the number of highlighted
squares.
3. Release the Shift key. The Select Operand and Address box opens.
4. Enter the variable number and description, then click OK as shown below.
The SMS message now appears together with the variable field.
Deleting variables
1. Place your cursor in the highlighted Variable field.
2. Press the Backspace or Delete key until the entire field is erased.
Testing messages
To test your messages, click on the Compile button. If, for example, you have attached 'illegal'
variables--not integer or list variables--the first illegal variable will be displayed.
ACK-Acknowledge message
This feature allows a cell phone user to check if the M90 has received a particular message.
The M90's embedded GSM modem settings are: 19200, 8 data bits, no parity, 1 stop bit. You may
need to manually change your modem's communication settings to match these parameters.
If your GSM modem requires a PIN code to connect to a GSM network, enter it as shown below.
Limit to Authorized Phone Numbers
Select this option to prevent the M90 from receiving SMS messages from any number not listed in the
SMS phone book.
The Receive MB is 12. When this message is received by the M90, MB 12 will turn ON. You must
turn the Receive MB OFF in your application in order to register the next time this message is
received.
Sending SMS messages from a GSM cell phone
To send SMS messages from your cell phone you must:
Write and download SMS messages to the M90 as described in Creating SMS messages.
Write an SMS message in your cell phone.
Send the message to the M90's GSM modem
Note that you can only send messages that have already been set in the M90. In addition, if an M90 is
configured with the Limited to Authorized Phone Numbers option, you will not be able to send it SMS
messages if your number is not in the list .
The fixed text in your cell phone is identical to the M90's SMS message in every detail: spaces,
characters--and note that characters are case-sensitive.
You bracket variable values with number signs (#) as shown below. These signs '#' do not count as
spaces.
The variable field in the M90 is big enough to hold the value.
The figure below shows the same SMS message: as it appears on a cell phone display, and as it
appears in the M90's SMS Messages List.
When you send this message from your cell phone, the value 110 will be written into Variable 1 in the
M90.
2. Use your cell phone to send the message "Holding Temperature:#110#" to the M90.
Although SMS messaging supports Integer and List variables, note that you can not send List variables
via cell phone.