Professional Documents
Culture Documents
GSM/GPRS
User Guide
In no event, whether as a result of breach of contract, warranty, tort (including negligence) or otherwise, shall HE-APG or its
suppliers be liable of any special, consequential, incidental or penal damages including, but not limited to, loss of profit or revenues,
loss of use of the products or any associated equipment, damage to associated equipment, cost of capital, cost of substitute
products, facilities, services or replacement power, down time costs, or claims of original purchaser's customers for such damages.
To obtain warranty service, return the product to your distributor with a description of the problem, proof of purchase,
post paid, insured and in a suitable package.
Note: No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
Cscape, SmartStack, SmartStix and CsCAN are trademarks of Horner APG. KEPServerEX is trademark of Kepware
Technologies, Inc
Table of Contents
10. AT+CNMI New Message Indication to TE - Message Receiving and Reading Commands .. 50
11. AT+CMGL List Messages ....................................................................................................... 51
12. AT+CMGR Read Message ................................................................................................... 52
13. AT+CMGS Send Message - Message Sending and Writing Commands .............................. 52
14. AT+CMGD Delete Message ................................................................................................... 53
15. +CGDCONT Define PDP Context ........................................................................................ 53
16. $UDPAPI Modem API Address - UDP API Commands ......................................................... 54
17. PAD Commands ..................................................................................................................... 54
18. $PADSRC PAD Source Port .................................................................................................. 55
19. $ACTIVE TCP PAD State....................................................................................................... 55
20. $PADBLK PAD Block Size...................................................................................................... 56
21. $PADFWD PAD Forward Character ....................................................................................... 56
22. $PADTO PAD Timeout Value ................................................................................................. 57
23. DP Dial Command for UDP PAD ............................................................................................ 57
24. DT Dial Command for TCP PAD............................................................................................. 58
25. %CGPCO Set Type of Authentication, Username and Password.......................................... 59
26. $AREG Auto Registration ....................................................................................................... 60
27. $HOSTIF Configure Host to Modem Interface...................................................................... 60
INDEX ......................................................................................................................................................... 61
GSM Modem
GSM is a network used for connecting two devices and exchanging data. It can be used by an OCS with an internal modem
HE-GSM04A to communicate to other devices connecting to an Internet/GSM/PSTN network.
To install a GSM modem option card in an XLe/XLt/XL6 OCS, open the back cover of the OCS and connect the Modem HE-
GSM04A and then connect the antenna to the modem.
INSTALLATION PROCEDURE
1. Disconnect all power from the XLe/XLt/XL6 OCS (Operator Control Station) unit including I/O power.
2. Remove the four screws on the back of the XLe/XLt/XL6 unit and remove the back cover. The back cover will be replaced with the
extended back cover that ships with the communication add-on. Screws are re-used (Figure 1).
3. Plug the communication board onto the 24-pin connector. Make sure all the pins are properly aligned (Figure 2).
4. Place the extended back cover onto the unit. It can be helpful to tip it at an angle so the connector on the COM board passes
through the opening on the back cover.
5. Place the screw back into the hole and turn the screw slowly counter clockwise until it clicks into the threads. This prevents the screw
from being cross-threaded. Now, turn the screw clock-wise until the cover is firmly secured. Repeat this process for all four (4) screws.
With the GSM modem option card, the Data Exchange and Connectivity with Cscape can be established in the following two ways:
• GSM connectivity
• GPRS connectivity
1 GSM Functionality
• GSM data call can be used for:
• Peer to peer communication between two devices for exchanging register data.
• Connect to Cscape for downloading / uploading and debugging the application
• Send / receive configured SMS messages.
• Horner OCS firmware is designed to initialize a GSM modem to establish a GSM data call.
• In order to establish GSM data call connectivity using Horner OCS follow these steps.
• Select Program and GSM/GPRS/SMS Configuration from the Main Menu.
• Select the Enable GSM Data Connection checkbox in the GSM/GPRS/SMS Configuration window.
• If an SMS transmission needs to be carried out when the GSM connection is active then additional Data
Transmission Settings need to be entered for servicing SMS. If SMS needs to be serviced when a GSM
connection is active, select Enable SMS Configuration. This will enable Data Transmission Settings.
Select the checkbox and set the idle time after which SMS should be serviced i.e. if 10 secs is configured
in this field, when the connection is idle (status 6) for 10 secs, SMS send/received (Status 5) would be
serviced. If the checkbox is not selected, SMS will not be serviced.
• Additional ladder programming must be written to answer or to make GSM data call using communication
operation ladder blocks. Use of Communication blocks for GSM/GPRS connectivity is detailed in section 4.
• On the device, Change the default programming port to GSMGPRS from the system menu, serial port
option, i.e. OCS ‘system menu -> Set Serial Ports -> Dflt Pgm Port ->GSM’ for MJ1.
Note: The status of the connection will be updated in the CsCAN Status Register specified in the GSM/GPRS/SMS Configuration
window. Various status values are detailed in section 4.3.
Horner OCS firmware is designed to initialize the GSM modem to establish GPRS connectivity. This configuration needs to be done
for connectivity with remote server as well as for connectivity with Cscape.
• Open the GSM/GPRS/SMS Configuration by selecting Program, GSM/GPRS/SMS Configuration from the Main Menu.
• Select the Enable GPRS Data Connection check box.
• Configure Service Provider (Optional). If checked, the modem will get connected to the network provider mentioned
here. A register address can also be given here, where the service provider name can be mentioned in registers. If the
register option is selected, the service provider name should be terminated with a null. Only the first part of the name
of network service provider can also be mentioned, i.e. instead of O2 IRELAND, only O2 can also be mentioned.
• Configure a register address to store Signal strength (Optional). See section 4.4 for details.
• Configure Status register for CsCAN communication (Optional). See section 4.3 for details.
• Click on the GPRS Configuration settings button to configure GPRS according to the information obtained by the
Network Service Provider.
GPRS Configuration
The GPRS Access Point Configuration is mandatory and the fields are to be filled according to the
information obtained by your Network Service Provider.
GPRS Access Point Configuration
Select Get Access Point Configuration checkbox configure registers instead of fixed values.
Client mode: In this mode the OCS behaves as client and connects to a specific server (Server
IP/Port address to be specified in modem ladder block input).
Server mode: In this mode the OCS behaves as server and accepts connection requests from
specified client. Client IP addresses are to be specified in modem ladder block input.
• For added security, the IP address for Cscape connectivity with a single device can also
be specified. Enter the IP address of the device to connect to, for CsCAN connectivity
directly in CsCAN Source IP Addr field or select the Get Source IP Address from
Register checkbox and specify a %R register Address (32bit). When the IP address is
mentioned, Cscape will connect to only that address and will reject connection requests
from all other IP addresses.
Note: If the CsCAN Source IP Addr is 0.0.0.0, then the connection from any address will be
accepted.
Note: Server mode of operation is supported only when SIM with a static IP address or SIM
having semi-static IP address with VPN is used.
• CsCAN Source Port: When the modem is configured in server mode, the incoming
GPRS Packet Assembler/Disassembler connection request from any client will be accepted only via this port address. For Cscape
Configuration connectivity this should be configured as 10001. This can be set to any value for peer to
peer and data exchange provided the Server/Client port number is same. If Cscape
connectivity is also required with data exchange/peer to peer connectivity, set this port to
10001.
Transmission of GPRS packet can take place on reaching packet size or occurrence of timeout
or when forward character is found in the internal transmit buffer.
• Send Forward character: If this checkbox enabled, forward character will be sent
together with GPRS packet.
Additional ladder programming must be written to establish connection with remote server/client over GPRS service using
‘communication operation’ ladder blocks.
• Open the Add Target dialog by selecting Tools| Editor Options | Communications Port and then click
from the Main Menu.
• Select Ethernet as the communications port (COMM Ports) and GPRS mode.
• Specify modem IP address and timeout.
• The communication timeout for Cscape should be increased to take care of the GPRS latency (typically 30 to 40
seconds).
• The status of the connection will be updated in CsCAN Status Register specified in the GSM/GPRS/SMS
Configuration window. Various status values are described in the Section 4.3 Modem Status Register Value Definitions
table. The same table can be used for the CsCAN Status Register. When the modem status value is 6,
communications can be established.
KEPServerEX is the latest generation of Kepware's OPC server technology. The KEPServerEX gets the device and system data. It
then translates it into a standard communication protocol (OPC or DDE) that all clients can receive and understand.
The following dialog gives details about the version of KEPServerEX with which the GPRS connectivity has been tested.
To configure KEPServerEX, a new channel is to be configured followed by a new device and tags for data mapping. Create a new
channel by selecting New Channel from the Edit drop down on the KEPServerEX main menu:
• After selecting name, choose the Modbus Ethernet option from the Device driver drop down.
• Select the Enable Diagnostics check box and continue with other default settings.
• Add a new device by selecting New Device from the Edit submenu in KEPServerEX.
In the New Device – ID dialog, set the Device ID (IP address of the sim card used). The last digit of the Device ID is a modbus
slave ID, and it should match the settings from CSCAPE ( =2 as mentioned in the sample program).
• Enter the correct port number (the same as in Cscape configurator), and TCP/IP protocol and continue with other
default settings.
Note: The port number should be configured as 10001 if Cscape connectivity is also required.
To be able to read and change internal registers, tags have to be created. Select New Tag from the Edit drop down on
the KEPServerEx main menu.
• The following Tag Properties dialog box show entries for register %R900. Likewise other tags can be created.
After creating a new tag this screen will show all the tags created with Tag Name, Address, Data Type, Scan Rate, Scaling and
Description…
• To run OPC client, select Launch OPC Quick Client from Tools on the KEPServerEx main menu.
When a connection is made, the status register specified in the modem block will change to a 1. Test the data exchange.
Select the checkbox, Disconnect and Service SMS when connection is Idle, to enable the Idle State Timeout. Enter the time
duration from 10 to 240 seconds.
When using the internal GSM modem, Mode should be specified GSM Quad. The Protocol can be selected as CsCAN, Generic or
Modbus. For Modbus, Slave or Master block should be used.
Note: To use modem control block, the com port is to be opened first.
• GPRS connectivity
o Modem Control block with ‘Auto Dial’ option is used to connect to remote server/client using the GPRS service.
o Remote server IP and Port address must be entered in ‘Number’ text box in the format IP Address/Port.
o In case of device acting as client, the IP address of the server needs to be mentioned here.
o In case of device acting as server, the IP address can be given as 0.0.0.0. to accept connection from any client
or IP address of the client can also be mentioned to accept connection only from that specific IP address for
added security.
o Select type of protocol UDP or TCP over IP.
o Configure the status register to show the status of the connection. The status values are detailed in section 4.3.
o If the modem ladder block input is enabled then the modem tries establishing connection with a remote server in
client mode or waits for a connection request from the client in server mode.
Example:
o Modem control block with ‘Initialize Modem’ option is used for balance of minutes remaining from your service
provider.
o The service provider balance request string is entered in the ‘Init String’ box together with CUSD AT command.
o The response from the service provider is stored in consecutive register locations starting from ‘Status Address + 1’.
Note: The command to be sent for balance inquiry is: +CUSD = 1,”*111#”,15 where “*111#” is the string to request balance
remaining in SIM and may vary depending on the service provider.
Register
Modem Status Modem Output Power
Value
65535
Modem is inactive Disabled
(0xFFFF)
Modem command started and waiting for 65534
Disabled
response (0xFFFE)
Modem is not responding (Command 65533
Disabled
Timeout) (0xFFFD)
Enabled (Only in case of Initialization modem command else
Modem Command succeeded 0 (0x0)
Disabled)
Note:
• The status values are same for all GSM and GPRS modes i.e. Cscape connectivity or data exchange. However different
status registers should be used for different modes.
• Status of ‘6’ indicates Mode is waiting for connection request from specified client and it is applicable in case of GPRS
server mode.
• When the modem returns status ‘Connected’, then TX, RX or another communications ladder block can be used to
exchange data with a destination server according to protocol.
• Disabling the Modem Control ladder block input will disconnect GPRS service. The Status Register value changes to
65534 (0xFFFE i.e. indicates waiting for modem response for disconnect command) and then to 65535 (0xFFFF). It can
be used to trigger SMS sending on an alarm.
• SMS functionality works based upon ‘Data Transmission Settings’ in the SMS configuration window while the GSM/GPRS
connection is active.
• Connecting to a GPRS network and establishing connection with remote server may require 3 to 4 minutes.
• Breaking connection with a remote server may take 10 to 20 seconds.
• If a continuous error response is seen in the status register or 0xFFFE response while connecting the modem as the
default programming port then please check the following:
• If the default programming port is switched to the default serial port option from GSM/GPRS then the port should be
released after 20 to 30 seconds after complete GPRS connection drop.
• Only one modem control block in specific mode (Initialize/Auto Dial/Auto Answer) can be used in ladder. More than one
modem control block can be used in ladder if they are in different modes.
• GSM/GPRS signal strength value is updated in 16bit long register. The 16bit long value consists of 2 fields as below:
5 SMS Communications
5.1 Overview
SMS (Short Message Service) is a type of communications process that enables the transmission of short text messages and data
transfers to and from mobile devices such as cell phones. Messages are usually limited from 140 to 160 characters in length and
are stored and forwarded at SMS centers. This allows messages and data transfers to be retrieved immediately or at a later time
via an SMS center.
SMS communications provide an affordable and convenient means to send and receive data using mobile devices such as cell
phones. Businesses and industry often require 24-hour coverage of their operations and have personnel who are on-call after
normal work hours to handle work-related issues and emergencies. There are employees who are responsible for the proper
functioning of equipment and processes at remote sites. Managers need to be notified of significant events.
The SMS feature in selected Horner controllers provides the capability of sending and receiving text messages and register data
values using mobile devices such as a cell phone. Depending upon the configuration, approved group members can read and write
values into the controller's data registers. This kind of communication is referred to as a data transfer.
As part of the SMS configuration, a list of approved phone numbers and authorized messages that will be used for SMS
communications must be provided. Because the SMS feature allows users to read and write to controller registers it is important to
follow good standard security practices to safeguard systems. Whether users are allowed to write to registers or not, ensure that
security is in place to protect against unauthorized inputs to registers.
Cscape software is used to configure the necessary attributes in selected Horner controllers such as the XLe/XLt/XL6 to send and
receive short text messages and data transfers using SMS communications. After the SMS configuration is completed and
downloaded into the controller, approved group members can send and receive a variety of information such as register values and
emergency alerts using cell phones and other mobile devices.
Refer to SMS Communications for more information on SMS and its capabilities.
• Select the desired controller. This feature is available on OCS types XLe, XLt, and XL6 and requires Cscape 8.1 or
higher for SMS configuration. See How to Select a Controller Model if needed.
• Click Program and then select the GSM/GPRS/SMS Configuration tab on the Cscape main menu.
• Select the Enable SMS Configuration checkbox and then click SMS Configuration to begin SMS configuration.
• In this example, the screen is already configured. The SMS Configuration screen has several sections that require
configuration.
The Status Register contains a status bit indicating the condition of the SMS communication. The following table contains the
meaning of each status bit…
Status Bits
SMS Status Bits Description
Bit 13 Receive response failed Set within 10 seconds if Read SMS command fails
Set after 1 min of entering into RUN mode if Modem
Bit 14 Initialization Failed
initialization fails
Bit 15 Transmit Failed Set within 10 seconds if SMS Transmit fails
Bit 16 Communication Failed Set within 10 seconds if communication with modem fails
Bit 17 - Bit 24 Bit Error Rate value. See section 4.4 for details Updated within 30 sec after entering into RUN mode
Bit 25 – Bit 32 Receive level value. See section 4.4 for details Updated within 30 sec after entering into RUN mode
Count is incremented whenever a message is received from
Bit 33 - Bit 48 Invalid message count
not configured sender or in not configured message format.
Incremented every time when send / Receive of SMS fails. It
Bit 49 - Bit 56 Send/Receive retry count
is incremented within 10 seconds if Send / Receive failure.
This count is incremented whenever modem initialization
Bit 57 – Bit 64 Re-initialization count fails. The modem re-initializes itself if the send / receive
command fails for 10 consecutive times.
Bit 9 ATE Command Failed: This bit will be set if Echo off command to Modem returns Error or modem
fails to respond within 2 sec of sending this command.
CSMP Command failed: This bit will set if "Set SMS text mode parameter" command to Modem
Bit 10 returns error or Modem fails to respond within 2 Sec of sending this
command.
Status Bits for User Specific Initialization
If command(s) fails in the user script, a corresponding bit is set indicating failure. For example: Bit 1 is
Bit 1 – Bit 12
set when the first command in the script fails. Bit 2 is set when the 2nd command in the script fails.
The Message Buffer Register holds the latest SMS message string sent or received by the controller. An individual SMS message
can have up to 160 characters.
Configuration Parameters
If required, select the box and type in Center number (up to 16 digits). The Center Number uses
Center Number
numbers 0 – 9 and these special characters: , ( ) – +
If required, select the box and type Pin number (up to 4 digits). SIM Pin Code can have only digits 0
SIM Pin Code
– 9.
Command Interval This is the interval of time (in seconds) that the OCS poll for messages (valid range: 1 - 100).
Note: SMS service center number should be configured correctly to send a SMS successfully.
Be sure to click each button and perform the configuration procedures associated with each button.
Configure this screen to select the type of Modem Initialization that is going to be used.
Configuration of Initialization Status Register Settings and User Specific Modem Initialization Script in the above screen is
required when User Initialization Script is selected.
No Initialization (Modem Preconfigured): No initialization of GSM modem will be done. Select this
option if the attached GSM modem is pre-configured and does not require initialization.
Internal Modem Initialization: Select this option if you have an XLe/XLt/XL6 with internal modem.
Modem Initialization
Type Siemens TC Modem Initialization: In case of external GSM modem, select this option.
User Initialization Script: To use your own initialization script, select User Initialization Script. When
User Initialization Script is selected, the internal initialization of the device is not performed. It is
necessary to configure initialization status register and provide initialization script.
The type of Modem Initialization used affects various settings that are available on the COM Port
screen.
Enter the starting register address location used to store the additional modem initialization script’s
Address latest command executed. This is a block of 10 registers that are consecutive in memory. For
example, if you are using R301 to R310, you need to enter the starting register address as %R301.
Name Enter (or select) the I/O Name.
User Specific Modem
Enter your script in this box.
Initialization Script
Note: Before configuring this screen, you need to configure the Modem Initialization Settings screen. The type of Modem
Initialization used affects various settings that are available on the COM Port screen such as the Port, Baud Rate, and
Mode.
After configuring the Modem Initialization Settings, configure the port to be used for communications.
The following selections must match the default settings of the modem you are using.
Before creating Send or Receive messages, a directory of phone numbers should be created. Configure the following
screen to build a directory.
• Click Add Contact to add a member. See the following screen (New Contact Information).
• Click Modify Contact if a member is already added in the directory. To modify the member listing, either double-click the
row or highlight the row and click Modify Contact. The Modify Contact Information screen appears and is configured as
the New Contact Information screen shown below.
• Click Delete Contact to remove a listing after highlighting the row.
Enter a phone number or enter a register where the phone number is stored.
• If you want to change the phone number at runtime, you should enter a register
address. The register address points to the location where you can dynamically
change the phone number without having to perform the SMS configuration
procedures again.
Phone Number • Phone numbers can not have characters other than Numbers 0 through 9 and
these special characters: , ( ) – +.
If you specify a register address in the Phone Number field, you can give the phone number
Phone Number Name
an I/O name.
Comments Add details for clarification.
With the directory created, you may begin creating send and receive messages.
5.2.5 Incoming Messages Settings (RECEIVE): (Messages sent from Groups to the controller)
Before creating send or receive messages, a directory needs to be created. After the directory is created,
configure the following screen.
Message Attributes
Enter or select the group that can send an SMS message to the controller. Select the Ack
Message check box if you want to send an acknowledgement to the user that the controller has
received the message.
Messages can contain text and register data values that approved group members can read
and write into the controller's data registers at runtime. See Rules for Send and Receive
Messages.
SMS Message
Configuration • The text of the message is entered starting in the upper most left block of the text input
field (shown in green).
• In order to display register data values, click F2 = Edit Field button and configure the
Insert Value Field screen shown below:
Click the Fill Zeroes box and the Left Justified or Right Justified box if desired.
Click OK, and you will be returned to the SMS Configuration screen. If satisfied with the message, click OK.
5.2.6 Outgoing Messages Settings (SEND):(Messages sent from the controller to Groups)
Note: Before creating send or receive messages, a directory needs to be created. After the directory is created, configure
the following screen:
When Add New Message or Modify Message is clicked, the following screen appears. In this example, the screen is
already configured for a SEND message.
Click the Fill Zeroes box and the Left Justified or Right Justified box if desired.
Click OK, and you are returned to the SMS Configuration screen. If satisfied with the message, Click OK.
3. When the SMS Configuration dialog is closed, if a send message or receive message is found to have been
associated with a non-existing contact information group, then the user will be notified about the error and provided with
an opportunity to fix the same.
HE-GSM04 SPECIFICATIONS
Antenna Interface Female SMA.
Frequency bands EGSM 900, DCS 1800, and PCS 1900, GSM 850 capability.
GSM/GPRS features Provides for all GSM/GPRS authentication, encryption, and frequency hopping algorithms. GPRS Coding Schemes CS1-CS4
supported supported. Multi-Slot Class 10 (4RX/2TX, Max 5 Slots).
GCF Type Approval
PTCRB Type Approval
Regulatory FCC Certification (Part 24)
Agency approvals RTTE
CE (European Community Certification)
IC (Industry Canada) Approval
Mobile-originated and mobile-terminated SMS messages: up to 140 bytes or up to 160 GSM 7-bit ASCII characters.
Reception of Cell Broadcast Message
SMS Receipt acknowledgement
GSM/GPRS Circuit Switched Data (Transparent & Non-transparent up to 9.6 Kbps)
Functionality Voice (EFR, FR, HR)
Supports Unstructured Supplementary Service Data (USSD)
Multi-Slot Class 10 Supported (4Rx/2TX), (5 Slot Max)
PBCCH/PCCCH Supported.
SIM 3 V Mini-Subscriber Identity Module (SIM) compatible
Size (L x W) 82.3 mm x 34.6 mm x 3.1 mm
Weight Less than 80 grams
Operating & Storage 0°C to +60°C (Operating)
temperature -10°C to +85°C (Storage)
Relative humidity 5 - 95%
Air pressure (altitude) 70 kPa to 106 kPa (-400 m to 3000 m)
Frequency Power Class Transmit Power
1900 MHz 1-W conducted power maximum (30 dBm +/- 2 dB), measured at the
GSM Power Class 1
Transmit Power 1800 MHz antenna port
850 MHz 2-W conducted power maximum (33 dBm +/- 2 dB),
GSM Power Class 4
900 MHz measured at the antenna port
Frequency Sensitivity Mode
1900 MHz
-106 dBm (typical) GPRS Coding Scheme 1 (CS1)
Receive Power 1800 MHz
850 MHz -106 dBm (typical)
GPRS Coding Scheme 1 (CS1)
900 MHz
7 Installation / Safety
Warning: Electrical
Shock Hazard.
When found on the product, the
following symbols specify:
Warning: Consult
user documentation.
8 Technical Support
EUROPE USA
Email: tech.support@hornerirl.ie, Email: techsppt@heapg.com,
Fax: +353 (0)21 4321 826 Fax: +1 317 916 4274
Tel : +353 (0)21 4321 266 Tel: +1 317 916 4297
Website : http://www.horner-apg.com Website : http://www.heapg.com
9 Appendix
GSM
GPRS
B. AT Command Set
Command Function This command is used to setup an outbound voice or data call.
Command Functional Call Control
Group
Command Format Query N/A
Response N/A
Write Format N/A
Response N/A
Read Format N/A
Response N/A
Execution Format ATD1234567I;
Response NO DIALTONE or
NO CARRIER or
CONNECT <value> or
BUSY or
OK
Parameter Values
<n> V.25ter Dialing Digits = 0 – 9, *, #, +, A, B, C
V.25ter Dialing Modifiers = , (comma), T, P, !, @, W
<cmod> GSM Modifier Characters
I = Restrict CLI, i = Allow CLI
<;> Semicolon after dialing string or modifier indicates voice call and forces TA into command
mode after successful completion.
Modem Responses
NO DIALTONE if no dial tone is detected
NO CARRIER
if call cannot be set up
CONNECT <value>
when connected in a non-voice call (data mode) <value> dependent on ATX setting
BUSY
if dialed number is busy
OK
when successful voice call or TA ends current call and returns to command mode
Example:
ATD5551212I
The TA will dial the number 5551212 and will block the CLI when made.
<name> 0 none
<ce> 0 transparent
1 non-transparent
2 both, transparent preferred
3 both, non-transparent preferred
Example
Command Function Write command controls the presentation of an unsolicited result code +CREG: <stat>.
Read command returns the status of result code, which shows whether the network has
currently indicated the registration of the ME.
Command Functional Network Information
Group
Command Format Query AT+CREG=?
Response +CREG: (0,2)
OK
Write Format AT+CREG=[<n>]
Response OK
Read Format AT+CREG?
Response +CREG: <n>,<stat>[,<lac>,<ci>]
OK
Execution Format N/A
Response N/A
Parameter Values
<n> 0 disable network registration unsolicited result code
3 registration denied
4 unknown
5 registered, roaming
<lac> string type; two-byte location area code in hexadecimal format (e.g. "00C3" equals 195
in decimal)
operator <stat>, long and short alphanumeric format of the name of the operator,
and numeric format representation of the operator. Any of the formats may be
unavailable and will then be an empty field (,,). The list of operators comes in the
following order: Home network, networks referenced in SIM, and other networks.
Command Functional Network Information
Group
Command Format Query AT+COPS=?
Response +COPS: (2, “ “, “ “, “31022”), (3, “ “, “ “, “310380”)
OK
Write Format AT+COPS=<mode>
Response [, <format> [, oper>]]
OK or
+CME ERROR: <err>
Read Format AT+COPS?
Response +COPS: 0
OK
Execution Format N/A
Response N/A
Parameter Values
2 Current
3 Forbidden
Example:
To manually register the modem on a known PLMN: To read operator information:
1 Text mode
Notes Use of PDU mode requires an in depth understanding of PDU message and
header formats.
10. AT+CNMI New Message Indication to TE - Message Receiving and Reading Commands
4 “ALL”
Parameter Values
<cid> PDP Context Identifier
<PDP_type> “IP”
<”APN”> “Access Point Name”
<”PDP_addr”> ” Identifies the MT in the address space”
<d_comp> 0 off
1 on
<h_comp> 0 off
1 on
Notes AT+CGDCONT must be entered before Context activation.
AT+CGDCONT=1,”IP”,””,””,0,0 may be entered for networks that dynamically assign
the APN. Contact your service provider for correct APN information.
AT%CGPCO=0, “80C023160101001608757365726E616D650870617373
776F726480211001010010810600000000830600000000”, 1
INDEX
A H
ABOUT PROGRAMMING EXAMPLES ................................ 2 Handshake ..........................................................................34
Add Contact....................................................................... 35 HE-GSM04A..........................................................................5
Additional SMS Settings .................................................. 33
Advantages of using SMS................................................ 28
ATE command Failed ....................................................... 31 I
Auto Answer modem Option ........................................... 24
Idle State Timeout..............................................................21
Auto Dial modem Option.................................................. 23
Incoming Messages Settings ..............................................37
Initialization Status Register Settings .............................33
C Initialize modem Option ....................................................25
Insert Value Field.........................................................38, 41
Cell phone........................................................................... 28 Installation / Safety ..............................................................44
Center Number ................................................................... 31 INSTALLATION PROCEDURE .............................................5
CMGF Command Failed ..................................................... 31 Internal Modem Initialization ............................................33
CNMI Command Failed ...................................................... 31
COM Port Configuration Settings.................................... 34
COM Port Settings .............................................................. 34 K
Command Interval............................................................... 32
KEPServerEX ............................................................2, 15, 17
communication operation ladder blocks................................ 7
Configuration Parameters................................................ 31
Configure Sever/Client IP address...................................... 13 L
Configuring KEPServerEX for Data Exchange ................... 15
Connectivity with Cscape................................................ 7, 13 LIMITED WARRANTY AND LIMITATION OF LIABILITY....2
COPS Command Failed.................................................... 31
CPEE command Failed..................................................... 31
CPIN Command Failed ....................................................... 31 M
CREG Command Failed ..................................................... 31 Message Attributes..............................................................38
CSCA service center number command Failed................. 31 Message Buffer Register Settings ...................................31
CSQ Command Failed ...................................................... 31 Mobile Communications ......................................................28
Modbus...................................................................16, 17, 22
D Modem Command succeeded.............................................26
Modem command syntax error............................................26
Data Bits ............................................................................. 34 Modem Control Block ..........................................................23
data transfer........................................................................ 28 Modem detected no/lost carrier ...........................................26
Data Transfer Example...................................................... 28 Modem in Listen (Server) Mode ..........................................26
Data Transmission Settings ...................................... 7, 21, 26 Modem Initialization Settings...............................................33
Delete Contact ............................................................. 35, 36 Modem is connected ...........................................................26
Device ID ............................................................................ 18 Modem is inactive................................................................26
Modem is not responding ....................................................26
Modem is Ringing................................................................26
E Modem Status Register value definitions ......................26, 27
Modify Contact.............................................................35, 36
Edit submenu ...................................................................... 17
Enable Diagnostics ............................................................. 16
Enable SMS Configuration........................................... 7, 21 N
Ethernet ........................................................................ 13, 16
New Contact Information ...............................................35, 36
New Device ...................................................................17, 18
G New Tag..............................................................................19
No Initialization (Modem Preconfigured).........................33
GPRS (General Packet Radio Service) Functionality ......... 10
GPRS / GSM Modem Specifications .................................. 43
GPRS Configuration ..................................................... 10, 12 O
GPRS connectivity ................................................................ 5
GPRS latency ..................................................................... 13 OPC Quick Client...............................................................20
GPRS network .................................................................... 10 Open Port ............................................................................22
Group Name ....................................................................... 36 Outgoing Messages Settings ..............................................39
GSM Configuration ............................................................... 6 Overview..............................................................................28
GSM connectivity .................................................................. 5
GSM Functionality................................................................. 5
GSM Modem ......................................................................... 5 P
GSM Modem Settings – SMS Configuration....................... 30 Parity ...................................................................................34
GSM/GPRS/SMS Configuration window .................... 6, 9, 13 Peer to peer communication .................................................6
Phone Number ....................................................................36
Program and GSM /GPRS Config.......................................6
Protocol ..............................................................................22
S
T
Select Baud Rate ................................................................ 34
Send / Receive SMS....................................................... 9, 21 Tag Properties .....................................................................19
Short Message Service....................................................... 28 TCP/IP .................................................................................18
Siemens TC Modem Initialization .................................... 33 Technical Support................................................................44
sim card .............................................................................. 18 Trigger Variable Settings .....................................................38
SIM Pin Code...................................................................... 32
SMS configuration................................... 9, 21, 26, 28, 29, 36
SMS Configuration.............................................................. 29
U
SMS Configuration Parameters ....................................... 31 User Initialization Script....................................................33
SMS functionality is Active.................................................. 26 User Specific Modem Initialization Script.................................... 33
SMS Message Buffer Register Settings.......................... 31 Using SMS Communications with Horner Controllers ............... 28
SMS Message Configuration ..................................... 38, 40
SMS Security Measures ................................................... 28
SMS Status Bits ................................................................ 30 V
SMS Target Directory Settings ........................................... 35
Value Variable Settings .......................................................41
Status Bits ......................................................................... 30