iRZ ATM2-232 User Manual

Page 1
Page 2
Table of Contents
1. Introduction....................................................................................................................................................... 6
1.1. About this Document ................................................................................................................................... 6
1.2. Operating Instructions ................................................................................................................................. 6
1.3. Terms and Definitions ................................................................................................................................. 7
2. Product Overview ........................................................................................................................................... 10
2.1. Product Purpose and Main Functions ....................................................................................................... 10
2.2. Document Usage Procedure ..................................................................................................................... 11
2.3. Data Transfer Technology ......................................................................................................................... 11
2.4. Hardware Specifications ........................................................................................................................... 11
2.5. Physical Specifications .............................................................................................................................. 12
2.6. Electrical Specifications ............................................................................................................................ 12
2.7. GSM Module Specifications ...................................................................................................................... 13
2.8. Device Functional Circuit .......................................................................................................................... 13
2.9. Device View ............................................................................................................................................... 14
2.10. Interfaces ................................................................................................................................................. 15
2.10.1. Mini USB Connector .................................................................................................................... 15
2.10.2. DB9 Connector (RS232).............................................................................................................. 16
2.10.3. Power Connector ......................................................................................................................... 17
2.10.4. Terminal Connector (2GPIO+1GPO) .......................................................................................... 18
2.11. The Modem Status Indication ................................................................................................................. 19
2.11.1. Signal Strength Indicators ........................................................................................................... 19
2.12. Parameters and Attributes Used ............................................................................................................. 20
3. SIM Card Installation and Device Mounting ................................................................................................ 23
3.1. SIM Card Installation ................................................................................................................................. 23
3.2. Device Mounting........................................................................................................................................ 24
4. Device Operation Description ....................................................................................................................... 27
4.1. Modem Setup Preparation ........................................................................................................................ 27
4.2. Device Operating Procedure ..................................................................................................................... 28
4.3. Service Mode ............................................................................................................................................ 28
4.4. Offline Mode .............................................................................................................................................. 29
4.5. Updating Firmware .................................................................................................................................... 33
Page 3
4.6. Setting Up the Modem .............................................................................................................................. 34
4.7. Working with SIM Cards ............................................................................................................................ 34
4.8. Working with the Server ............................................................................................................................ 35
4.9. Working with the iRZ Collector Server ...................................................................................................... 37
4.10. Encapsulation Mode ................................................................................................................................ 38
4.11. Connecting to the Server via SMS Commands ...................................................................................... 39
4.12. Sending SMS on GPRS Connection Loss .............................................................................................. 39
4.13. Data Transmission via CSD .................................................................................................................... 40
4.14. Watchdog Timers .................................................................................................................................... 41
4.15. Real-Time Clock (RTC) ........................................................................................................................... 41
4.16. GPIO Pins Operation .............................................................................................................................. 41
4.16.1. Setting Up Pins of the «Input» Type ............................................................................................ 42
4.16.2. Setting Up Pins of the «Output» Type ......................................................................................... 43
4.16.3. GPIO Pins Control via SMS Commands ..................................................................................... 45
4.17. Operating with Incoming SMS Messages ............................................................................................... 46
4.18. Modem Operation in the Server Mode .................................................................................................... 46
4.18.1. Authentication of Connecting Clients .......................................................................................... 47
4.18.2. Monitoring and Control via iRZ Collector ..................................................................................... 48
4.18.3. TCP/IP Connection Control ......................................................................................................... 49
4.18.4. SMS on IP Address Change ....................................................................................................... 49
5. Log Main Messages ....................................................................................................................................... 50
5.1. Log Messages at the Modem Activation ................................................................................................... 50
5.2. Log Messages on the SIM Cards Used .................................................................................................... 51
5.3. Log Messages at the Operation with Servers ........................................................................................... 52
5.4. Log Messages at Sending SMS on GPRS Connection Loss ................................................................... 53
5.5. Log Messages at Receiving Signals from Outputs ................................................................................... 53
5.6. Log Messages at Receiving SMS Commands by the Modem .................................................................. 54
6. Contacts and Support .................................................................................................................................... 55
Page 4
List of Tables
Table 2.1 DB9 connector pin assignments ............................................................................................................... 16
Table 2.2 Power connector pin assignments ............................................................................................................ 18
Table 2.3 Terminal connector pin assignments ........................................................................................................ 18
Table 2.4 LED indication signals............................................................................................................................... 19
Table 4.1 Assignments of pins set to input ............................................................................................................... 42
Table 4.2 Output operation algorithm ....................................................................................................................... 43
Table 4.3 Available types of signals in the command mode ..................................................................................... 44
Table 5.1 The sample of start log content ................................................................................................................ 50
Table 5.2 The sample of log messages at the module activation ............................................................................. 51
Table 5.3 The sample of log messages on SIM cards used ..................................................................................... 52
Table 5.4 The sample of log messages at operation with servers ........................................................................... 52
Table 5.5 The sample of log messages at sending SMS messages on GPRS connection error ............................ 53
Table 5.6 The sample of log messages at receiving signals from pins .................................................................... 53
Table 5.7 The sample of log messages at receiving SMS commands by the modem ............................................. 54
List of Images
Fig. 1.1 Interaction diagram when using the iRZ Collector software solution – the modem operates in a client mode
..................................................................................................................................................................................... 8
Fig. 1.2 Interaction diagram when using the iRZ Collector software solution – the modem operates in a server
mode ............................................................................................................................................................................ 8
Fig. 2.1 ATM functional diagram ............................................................................................................................... 14
Fig. 2.2 Front Panel .................................................................................................................................................. 14
Fig. 2.3 Back Panel ................................................................................................................................................... 15
Fig. 2.4 Mini USB connector ..................................................................................................................................... 16
Fig. 2.5 DB9 connector ............................................................................................................................................. 16
Fig. 2.6 Power connector .......................................................................................................................................... 18
Fig. 2.8 Signal strength indicators (a sample for the CSQ signal strength from 16 to 19) ....................................... 20
Fig. 3.1 Removing the SIM card tray from the modem ............................................................................................. 23
Fig. 3.2 Inserting the SIM card into the tray .............................................................................................................. 24
Fig. 3.3 The АТМ modem drawing dimensions ........................................................................................................ 25
Fig. 3.4 Device mounting – mounting the modem on a DIN rail to the side panel ................................................... 25
Page 5
Fig. 3.5 Device mounting – mounting the modem on a DIN rail with the front panel facing up ................................ 26
Fig. 3.6 Device mounting – mounting the modem on the wall .................................................................................. 26
Fig. 4.1 Procedure of selecting a production server ................................................................................................. 36
Fig. 4.2 The diagram of operation with one server without backup .......................................................................... 36
Fig. 4.3 The diagram of operation with two servers .................................................................................................. 37
Fig. 4.4 The diagram of operation with two IP addresses on one server ................................................................. 37
Fig. 4.5 Methods of remote access to the modem .................................................................................................... 46
Fig. 4.6 Types of client authentication at connection to the modem-server ............................................................. 47
Fig. 4.7 The interaction diagram when using the iRZ Collector software solution - the modem operates in the
server mode ............................................................................................................................................................... 49
Page 6
1. Introduction
1.1. About this Document
The document contains description and operating procedure of the iRZ ATM2-232 GSM/GPRS modem (he­reinafter referred to as ATM). The document is intended for the users who are in charge of configuration and maintenance of systems where data is transmitted via this device.
Document version
Firmware Version
Hardware Version
Issue Date
3.8
11.08
02
12.03.2015
Written by
Y. Petrova, P. Malikova
Approved by
D. Pavlov, G. Samakova
See also:
on getting started with the ATM Control utility and the modem basic setup – the «Setting Up iRZ ATM
Step by Step. ATM Control» document;
on setting up the modem via ATM Control – the «User Guide on the ATM Control Modem Configuration
Utility» document;
on setting up the modem via AT commands – the «AT Commands to Set Up the iRZ ATM2-232 Mod-
em» document;
on the benefits of the specialized iRZ Collector server – the «iRZ Collector. Solution Overview»
document;
on the use of the iRZ Collector dispatching application – the «iRZ Collector Dispatching Software Setup
and Operation User Guide» document.
1.2. Operating Instructions
The modem can interfere with electronic devices, therefore there are the following limitations on its use:
Power off the modem in medical centres and keep it away from medical equipment (for example, cardiac
pacemakers, and hearing aids). Power off the modem in aircraft, take measures against accidental switch-on. Power off the modem near gas stations, enterprises of chemical industry, in areas where blasting operations
are in progress. At close range the modem can interfere with television and radioreceiver operation. To ensure safe operation, follow the recommendations: Do not expose the modem to aggressive influences (high temperatures, corrosive chemicals, dust, water,
etc.).
Page 7
Protect the modem from impacts, drops and extreme vibration. Do not attempt to disassemble or modify the modem. Such actions will void the warranty.
Note! Use the device in compliance with the operating instructions. The end user shall have no coverage
or benefits under the warranty if the product has been subject to abnormal use and storage.
1.3. Terms and Definitions
Local configuration or firmware updating – configuration or updating of the modem firmware connected to a
computer via a USB cable. For the ATM modem they are performed via the ATM Control program.
Remote configuration or firmware updating – configuration or updating of the modem firmware located on the site, from the dispatching center. For the ATM modem they are performed via the iRZ Collector dispatching application which is used together with the iRZ Collector server application.
Modem-client the ATM modem operating in the TCP/IP client mode, i.e. the modem is connected to the data collection server and transmits it data from an external device.
Modem-server the ATM modem operating in the server mode, i.e. the modem awaits incoming connections and processes them.
The system of data collection and device control (hereinafter referred to as system) – a set of tools for automated data collection from external devices, located on sites, and their control as well as its processing, ac­cumulation and transmission.
Server a computer or specialized computer equipment with the installed server software for processing client requests (in the terms of a client-server interaction model).
iRZ Collector solution iRZ-manufactured software solution including the server and the dispatching applica- tions of iRZ Collector.
iRZ Collector server application the iRZ Collector server software to be installed on a data collection server. It enables a third-party polling software, acting as a client (in the terms of a client-server interaction model), to re­ceive data from the modems, which also act as a client. That is, the server application serves as a kind of «layer» enabling their interaction (see Fig. 1.1).
Page 8
For ease of reference, hereinafter the server with the installed iRZ Collector server application is referred as the iRZ Collector server.
In case when the ATM modem operates in the server mode, it accepts connections itself: it no longer requires a broker to interact with the polling software, operating in a client mode. In this case the iRZ Collector solution can be still used to monitor and control the system modems (see Fig. 1.2).
Fig. 1.1 Interaction diagram when using the iRZ Collector software solution – the modem operates in a client mode
Fig. 1.2 Interaction diagram when using the iRZ Collector software solution – the modem operates in a server
mode
The iRZ Collector dispatching application the iRZ Collector dispatching software which operates together with the iRZ Collector server application and enables remote monitoring and control of the system modems. It can be used in the dispatching center or data collection server as well as in any computer with the operating system supporting the application.
External devices polling software is used in the dispatching center to poll external devices and is provided by their manufacturer. Generally, it operates in the client mode, and therefore the following two methods are used to interact with the modem: First – the modem operates in the client mode, and a special-purpose «layer» (for exam­ple, the iRZ Collector server application) is used to interact with it. Second – the modem operates in the server mode that enables a third-party software to connect it directly.
Page 9
However in the second case each modem requires an external1 static IP address. Dispatching center – data collection and dispatching center intended to poll external devices, installed on
sites, and to monitor and control the system modems.
Data collection server2 – the server where all the system data is accumulated and processed: data from ex-
ternal devices and system service information. The modem-clients are connected to the data collection server and transmit the required data, the external device polling software is also connected to the server and re­quests the data received by the server from the modem.
External device the device mounted on a site and connected to the modem via the RS232 communica- tions interface. Heat and energy meters, as well as any systems of telemetry and telemechanics, may act as external devices.
SMS command – an SMS message sent to the modem, containing a character-based command of a certain format.
1
If your company rents an access point (APN) from a mobile network carrier, the modem will use an internal static ad-
2
Used if the modem and the external devices polling software operate as clients. If the modem operates in the server
mode, the software can be connected to it directly and read out the required data.
Page 10
10
2. Product Overview
2.1. Product Purpose and Main Functions
The iRZ ATM GSM/GPRS modem provides data transmission over GPRS via TCP/IP protocol stack.
The device is designed for operation in telemetry systems.
The modem can operate in any of the three modes: client, server or CSD only. In the Client mode (hereinaf­ter – modem-client) the modem is connected to the data collection server and transmits data from an external device. In the Server mode (hereinafter – modem server), the modem, on the contrary, waits for the client in­coming connection (for example, from a dispatcher computer) on a certain port and processes it. In the CSD only mode data is transmitted via CSD (voice channel) with no data transmission over GPRS and the offline mode available.
For operation in the Client mode you can use any SIM card, for operation in the Server mode it is recom­mended to use a SIM card with an external1 static IP address. For operation in the CSD only mode you can use any CSD-enabled SIM card.
In the Client and Server modes the modem automatically connects to GPRS. After that the modem estab­lishes connection to the specified server (if operating in the client mode) or opens an incoming port and waits for incoming connections (if operating in the server mode).
The device provides transparent communication between a third-party external devices polling software and an external device connected to the modem via RS232 interface. The modem tracks the GPRS connection sta­tus and in case of connection loss, the modem restores it (see section «Device Operating Procedure»)
The ATM modem allows for the use of two SIM cards providing backup mobile communication (see section
«Working with SIM Cards»).
The client mode supports backup Internet connection – the main server switches to a backup server in case of disconnection. Switching between servers is also available by a signal from the modem GPIO pins (see sec­tion «Working with the Server»).
The modem-client can operate with a standard server (see section «Working with the Server») or a special­purpose iRZ Collector server. The iRZ Collector server provides transparent data communication between a third-party polling software, operating as a client, and the modems which also operate as clients and do not have static IP addresses (see section «Working with the Server»).
The modem supports data transmission over CSD (voice channel). If there are phone numbers enabled in the modem settings, data transmission over CSD is available in the client and server mode. In addition, ATM supports a separate mode for data transmission only over CSD.
1
If your company rents an access point (APN) from a mobile network carrier, addresses of the sites for such network
will be internal. In this case it is recommended to use a private static address.
Page 11
11
The modem has additional pins (GPIOs) to monitor and control external devices (see section «GPIO Pins
Operation»). ATM can send SMS messages at change of pin signal strength enabling remote control of ex-
ternal devices connected to the modem. The pins state can be changed by sending SMS command to the modem enabling remote control of external devices.
The modem features the offline mode supporting all functions except GPRS connection (see section
«Offline Mode»). Offline mode provides economy of traffic and power consumption. It is used if there is no
need for continuous connection.
ATM tracks the GSM module hangup and provides its additional restart by a signal from the configurable watchdog timer (see section «Watchdog Timers»). The modem provides operation within a wide range of in­put voltages and temperatures.
During its operation the modem displays messages in the log via USB interface in a real time. To view and analyze the log on a computer, use any terminal program (see section «Log Main Messages»).
2.2. Document Usage Procedure
The modem functionality, described in sections «Service Mode», «Offline Mode», «Updating Firmware»,
«Setting Up the Modem», «Working with SIM Cards», «Connecting to the Server via SMS Commands», «Sending SMS on GPRS Connection Loss», «Data Transmission via CSD», «Watchdog Timers», «Real-Time
Clock (RTC)», «GPIO Pins Operation», «Operating with Incoming SMS Messages», refer both to the Client
and Server modes. In cases when the action of a function depends on the modem operating mode, it is speci- fied directly in the function description.
Sections «Working with the Server» and «Working with the iRZ Collector Server» refer only to the Client
mode, section «Modem Operation in the Server Mode» only to the Server mode.
In the CSD only mode the modem cannot operate as a client or a server, data can be transmitted only over CSD. The CSD only mode does not support: GPRS connection (including operation with the server), of­fline mode, remote firmware updating and settings change as well as the Modbus protocol for a COM port. Other features are supported in the same way as for the Client and Server modes.
2.3. Data Transfer Technology
The ATM GSM/GPRS modem supports the following data transmission technologies:
GPRS; CSD; SMS.
2.4. Hardware Specifications
ATM has the following hardware specifications:
Page 12
12
GSM/GPRS module – BGS2; Mini USB for setting up and logging the modem operation; dual SIM card support; antenna connector – SMA; communication connector – RS232; power connector – MicroFit 4; terminal connector – 2 GPIO + 1 GPO.
2.5. Physical Specifications
ATM has the following physical specifications:
housing dimensions (without connectors) – max 66 × 83 × 25 mm (L × W × D); product dimensions (with connectors) – max 74 × 83 × 25 mm (L × W × D); product weight – not exceeding 120 g; operating temperature: -40°С to +65°С; storage temperature: -50°С to +85°С; permissible humidity – the device ensures safe operation at relative humidity of maximum 80% at 25°С.
2.6. Electrical Specifications
Power supply:
power voltage 7 to 40 V (DC); current consumption in GPRS mode, max: at power voltage of +12 V – 250 mA; at power voltage of +24 V – 125 mA; current consumption in the offline mode, max: at power voltage of +12 V – 60 mA; at power voltage of +24 V – 30 mA.
GPIO 1 and 2 in the input mode:
resistance of the programmable pullup to power voltage – 10 kΩ; resistance of the programmable pullup to ground – 47 kΩ; maximum voltage of level “0” (low level) – 0.8V; minimum voltage of level “1” (high level) – 2.0V; maximum allowable input voltage – 40V.
GPIO 2 in the “input” mode set to ADC:
Page 13
13
current measurement parameters:
current measurement range, mA: 0 to 30; current measurement error, mA: 0.2.
voltage measurement parameters:
voltage measurement range, V: 0 to 40; voltage measurement error, V: 0,2.
GPIO 1 and 2 in the output mode:
output type – open collector to ground; output resistance – 120 Ω; maximum output current – 10 mА.
GPO 3 in the «output» mode:
output type – open collector to power voltage; output resistance – max 2 Ω; maximum output current – 500 mА.
2.7. GSM Module Specifications
Bandwidth:
900/1800 MHz; 850/900/1800/1900 MHz (optional). Transmitter output power: at frequency of 850/900 MHz 2 W; at frequency of 1800/1900 MHz 1 W.
2.8. Device Functional Circuit
The modem main components:
power connector; voltage converter; GSM module; SMA connector for external antenna; microcontroller (MC); mini USB; RTC module battery; 9-pin RS232 (DB-9); 4-pin terminal connector (GPIO); SIM1 and SIM2 holders (SIM1 and SIM2);
Page 14
14
an operating SIM selection module (SIM selection); LEDs; hard reset and signal strength detection button (Firmware key).
Fig. 2.1 ATM functional diagram
2.9. Device View
The device view is given in Fig. 2.2 and Fig. 2.3:
Fig. 2.2 Front Panel
Page 15
15
Fig. 2.3 Back Panel
Numbers in Fig. 2.2 and Fig. 2.3 illustrate:
1. mini USB connector;
2. SIM 1 tray (SIM 1);
3. SIM 1 tray eject button (SIM 1);
4. SIM 2 tray (SIM 2);
5. SIM 2 tray eject button (SIM 2);
6. SIM 1 LED indication (SIM 1);
7. SIM 2 LED indication (SIM 2);
8. antenna connector;
9. terminal connector (2 GPIO + 1 GPO);
10. DB9 connector (RS232);
11. MicroFit 4 power connector;
12. hard reset and signal strength detection button.
2.10. Interfaces
The device is equipped with two serial interfaces: Mini USB and RS232 as well as the GPIO programmable
interface.
2.10.1. Mini USB Connector
The mini USB interface is used to set up the modem and log its operation (log removal). For operation of the modem via Mini USB, it is required to install the USB driver which can be downloaded from the official website of the Radiofid Group of Companies (www.radiofid.ru) in section «Support». The computer determines the
Page 16
16
modem as a virtual COM port. The modem is powered via Mini USB interface only for operation in the service mode.
Fig. 2.4 Mini USB connector
Note 1. USB is used in the «device» mode, therefore it can be used only for connection to a computer or
other host controller.
Note 2. With a terminal program, for example, Hyper Terminal, close a COM port in this program before
you connect a USB cable. After that, connect the USB cable. Then open the COM port.
2.10.2. DB9 Connector (RS232)
The connector is used to connect the modem to an external device with the RS232 interface (COM port). Port factory settings: baud rate – 9600, data bits – 8, parity – not used, stop bits – 1. All the parameters of the operating COM port are changed in the service mode.
Fig. 2.5 DB9 connector
Table 2.1 DB9 connector pin assignments
Pin
Signal
Direction
Assignment
1
DCD
Modem – device
Carrier Detect
Page 17
17
Pin
Signal
Direction
Assignment
2
RXD
Modem – device
Receive Data
3
TXD
Device – modem
Transmit Data
4
DTR
Device – modem
Data Terminal Ready
5
GND
Ground. Connected to the negative terminal of the power supply
6
DSR
Modem – device
Data Set Ready
7
RTS
Device – modem
Request To Send
8
CTS
Modem – device
Clear To Send
9
RI
Modem – device
Ring Indicator
Important! The RS232 (COM port) standard does not allow hot plugging. To prevent damage to the
COM port, wait at least 5 seconds to plug and unplug connected devices after turning off power.
The DCD, DSR, CTS, RING pins can be set to a high or low state in the encapsulation mode (see section
4.10 «Encapsulation Mode») or in the service mode using the ATM Control application. By default, the DCD, DSR, CTS pins are set to a high state, RING – to a low state.
The modem supports operation with the COM port via the Modbus protocol. There are two protocol imple­mentations available – Modbus RTU and Modbus ASCII.
Modbus RTU is a packet switching protocol used for operation with external devices via the RS232, RS485 and RS422 interfaces. When operating in the GPRS network, overload of base stations might cause data link failure. The modem operating with Modbus RTU prevents data link failure (over 1.5 times character length), i.e. the modem task is to transmit a single data packet over the RS-232/RS-422/RS-485 interfaces. The Pause op­tion allows the user to manually set the time interval of data absence, which will enable the modem to identify the end of data packet. Modbus RTU is required especially if it used to operate in an external device.
Specify the Modbus ASCII protocol in the modem settings only if it is recommended to use by the manufac­turer of an external device.
2.10.3. Power Connector
The connector
MicroFit 4
is used to supply power to the modem.
Page 18
18
Fig. 2.6 Power connector
Table 2.2 Power connector pin assignments
Pin
Signal
Assignment
1
Not used
2
Not used
3 GND
Negative terminal of power supply voltage
4
+ Uin
Positive terminal of constant power supply voltage. Protected by a fuse and overvoltage (when applying voltage to input of over 40V) and reverse polarity protection circuit
2.10.4. Terminal Connector (2GPIO+1GPO)
Fig. 2.7 Terminal connector
Table 2.3 Terminal connector pin assignments
Pin (see Fig. 2.7)
Name
Assignment
1
GPIO3 (GPO)
Power general-purpose output
2
GPIO2/ADC
Configurable general-purpose output
3
GPIO1
Configurable general-purpose output
4
GND
Ground. Connected to the negative terminal of the power supply
1 4
3
2
Page 19
19
2.11. The Modem Status Indication
To display the modem operation status, it is equipped with LED indication. The LEDs are placed above the SIM card trays.
When you turn on the modem, both LEDs light up for 300 msec. In case of the RTC-timer failure, LEDs can light up for 10 seconds while RTC is being initialized.
At the modem operation, the indication is performed via the LED placed above the tray with an active SIM card (the SIM card operating at a given moment is called active, the second one – inactive). LED signal inter­pretation is shown in Table 2.4.
Table 2.4 LED indication signals
Active SIM card
indicator
Inactive SIM card
indicator
Operating mode
300 msec on / 300 msec off
Off
Module loading, SIM card verification, logging to network
150 msec on / 1500 msec off
Off
Establishing GPRS connection Solid on
Off
GPRS connection is established, the modem is con­nected
Off
Off
No power
Single simultaneous blinking (150 msec on / 150 msec off)
Switching off and restart / switching on Both LEDs are solid
Service mode
Both LEDs are blinking (150 msec on / 150 msec off)
SIM cards operation error (PIN code error or no SIM cards in the trays)
2.11.1. Signal Strength Indicators
The ATM modem is equipped with the hard reset button1 which is also designed to detect the signal strength of the modem. This feature allows you to find an optimal location to mount the modem antenna on a site. Signal strength is displayed in the log and indicated by the LED for each SIM card of the modem.
To determine the signal strength, press the button using a thin object and release it. The LEDs indicate the signal strength within a minute, after that the modem returns to the previous operation mode. With GPRS or CSD connection established, the connection is terminated by pressing the button, and after the end of signal verification it is re-established. Signal detection is not supported in the service mode.
1
The button is placed on the side of the modem with the RS232 connector (see Fig. 2.3). Early models are not equipped
with this button. The hard reset button function is described in section «Updating Firmware».
Page 20
20
When pressing the button, both LEDs light up for 200 msec, after the pause of one second each LED starts to blink in accordance with a signal strength of its SIM card.
Depending on the CSQ signal strength, the LED of each SIM card blinks certain times:
1 time – signal strength is below 9; 2 times – signal strength is from 9 to 15; 3 times – signal strength is from 16 to 19; 4 times – signal strength is from 20 to 24; 5 times – signal strength is over 24.
Each LED blinking lasts for 80 / 400 msec: 80 мs – LED is on, 400 msec – LED is off. The pause of 4 seconds is followed by LED blinking of certain number of times. After that the modem detects signal level and the process is repeated – the LED blinks the number of times corresponding to the CSQ signal strength, then follows a four-second pause – and so until a minute passes from the time the button has been pressed (see the sample in Fig. 2.8).
Fig. 2.8 Signal strength indicators (a sample for the CSQ signal strength from 16 to 19)
2.12. Parameters and Attributes Used
Key attributes of the АТМ2-232 Modem:
1. Device model – Automatic Terminal-Modem ATM2-232.
2. Software version.
3. Hardware board version.
4. Device name – a unique device name containing 4 characters (digits and Latin letters). It is specified in
each SMS message1 sent by the modem. The device name is used to distinguish SMS messages from different modems. Case-insensitive: aaaa and AAAA – the same device name.
5. Default value – name.
1
For example, the modem can send SMS messages in case of GPRS connection loss or on signals from external
pins.
Page 21
21
6. Login – a string of 4–16 characters (digits and Latin letters, case sensitive), unique for each device. It
can be used for the modem authentication on a standard server (not iRZ Collector) if IMEI-based authen­tication is not sufficient. In addition, it can be used for iRZ protocol-based authentication (for more details, refer to section «Authentication of Connecting Clients»). By default the modem login is equal to the mod­em IMEI value.
SIM cards key attributes:
1. Mobile network carrier settings:
APN (Internet access point name); Login (user name); Password.
Request for network settings at the mobile operator of your SIM card.
2. PIN code (required if PIN code request is activated on the SIM card).
Key Attributes (for the modem-client operation)
1. Server IP address – the server IP address to which the modem-client is to be connected and transmit data
from an external device. It is required to specify a public static IP address of the data collection server or network gateway (if the data collection server is in the local network behind the gateway). In the latter case it is required to set up port forwarding from the gateway IP:port to the server data collection IP:port. If you rent an APN (access point) from a service provider, it is required to specify a private address of the data collection server as an IP address. The address is 4 bytes long, consists of four decimal numbers, each ranging from 0 to 255, separated by dots. For example, 83.58.124.13.
2. Server port is a network port of data collection server where it waits for connection of modem-clients. Val-
ue – 0 to 65000. This port should not be used by other services. If data collection server is located in the local network behind network gateway, it is required to set up port forwarding from the gateway IP:port to the IP:port of the server data collection.
If you plan to use the backup server, it is required to enter its IP address and port and authorize its use.
Key Attributes (for the modem-client operation)
1. Incoming port is a network port of the modem-server where it waits for connection of clients.
Value – 0 to 65000. This port should not be used by other services.
ATM Passwords
The password to access the service mode – 4 characters (digits or Latin characters, case sensitive). It is
used to protect against unauthorized configuration of the modem. Access to the modem settings is pro­vided when the correct password to access the server mode is entered. Default value – 5492.
Page 22
22
Password to access the modem server mode is requested in the ATM Control utility when connecting the modem to a computer. In this case the utility does not require a password if it corresponds to the default value or to the password of a previous connected modem. The latter is implemented for easy consecutive configura­tion of several modems with identical passwords.
When configuring the modem by AT commands, the password should be entered in the terminal program to switch to the service mode (otherwise, you may fail to configure it).
SMS command password – 4 characters (digits and Latin characters, case-sensitive). This password must
be specified at the beginning of texts with SMS commands sent to the modem. If the password is not spe­cified or incorrect, the modem will ignore the SMS command. Default value – 5492.
The password to access the iRZ Collector server (GPRS password) – 4-16 characters (digits and Latin
characters, case-sensitive). It is used to protect the modem against unauthorized connections to the iRZ Collector server or to the ATM modem-server. Default value – 5492.
ATM Modes
Service mode – designed to configure the modem. Operating mode – the basic mode of the modem to transmit data. Offline mode – an operating mode in which the modem performs it’s all functions except for connection to
GPRS network. It is used to save traffic and power consumption, when no continuous connection to net­work is required.
Page 23
23
3. SIM Card Installation and Device Mounting
3.1. SIM Card Installation
To connect the modem to the Internet over cellular network, a mini-SIM card is required (a standard SIM
card). Prepare a SIM card, if required, reset the PIN code request.
Note! A mini-SIM card differs from SIM cards of other formats by its size.
Take notice when buying a SIM card from your mobile operator since the modem does not provide support for SIM cards of other formats.
To install the SIM card in the modem, follow the steps below:
1. Press the button near the SIM card tray using a thin object (see 1 in Fig. 3.1)
2. Remove the SIM card by pulling the tray (see 2 in Fig. 3.1).
3. Place the SIM card in the ejected tray (see Fig. 3.2).
4. Insert the tray with the installed SIM card back into the SIM 1 slot.
If you plan to use two SIM cards for backup mobile connection, repeat the stages 1-4 for the second SIM card and insert the tray with it into the SIM 2 slot.
Fig. 3.1 Removing the SIM card tray from the modem
Page 24
24
Fig. 3.2 Inserting the SIM card into the tray
Note! The tray placed in the SIM card slot must be turned with the SIM card contact side facing up.
Failure to observe this requirement may result in the damage of the SIM card and tray.
3.2. Device Mounting
There are two ways of mounting the modem on DIN rail as well as mounting on a wall using self-tapping screws.
The special clips on the side allow you to mount the modem on DIN rail with no extra attachments - just snap the modem side clips on the DIN rail (see Fig. 3.4).
To mount the modem on a DIN rail on the front side, use two WAGO mounting brackets (see Fig. 3.5). Fas­ten the mounting brackets with four Din7982 ST2.2x9 self-tapping screws at the rear side of the device (the housing is provided with 4 holes). The mounting brackets and self-tapping screws are not included in the pack­age and to be purchased separately from the manufacturer.
To mount the modem on a wall, use self-tapping screws: the modem housing is provided with two holes for them (see Fig. 3.6).
It is recommended to use the Din7981 ST2.9x25 self-tapping screws.
The dimensions of the device (in mm), clips and holes for self-tapping screws are illustrated in the drawing figure (see Fig. 3.3).
Page 25
25
Fig. 3.3 The АТМ modem drawing dimensions
Fig. 3.4 Device mounting – mounting the modem on a DIN rail to the side panel
Page 26
26
Fig. 3.5 Device mounting – mounting the modem on a DIN rail with the front panel facing up
Fig. 3.6 Device mounting – mounting the modem on the wall
Page 27
27
4. Device Operation Description
4.1. Modem Setup Preparation
Before you use the modem in a site, it needs to be configured. To do this, follow the steps below:
1. Prepare the modem for configuration:
a. Connect the modem to a computer using the USB A cable Mini USB cable (not supplied with the
package).
b. Press the eject button of each SIM tray using a thin object. c. Pull both SIM card trays out of the modem (it is not necessary to remove them fully). d. Start the ATM Control configuration utility – the program will display all data on the modem except for
current time and IMEI.
e. If the password used to access the service mode for the connected modem is not the default one, enter
it1 and click OK – the utility will show current time and the modem IMEI.
2. Set up the modem using the application
2
:
a. Open the tab Settings → Basic in the application and specify basic parameters for the modem: mobile
network carrier parameters for the SIM cards used and communications server settings (when using the modem in the Client mode) / network settings (when using the modem in the Server mode).
b. If more advanced settings are required, specify advanced options in the tab Settings → Advanced. c. Save the specified parameters using the Record button in the form of a down arrow.
3. If you need to use the specified parameters later on, save them to a file on your computer using the Save
button. In this case two files with the same names, but with different extensions .atm and atm.2, are created. The file with the .atm extension is designed for further use in the ATM Control application. The file with the .atm2 extension is designed for further remote configuration of the modem via the iRZ Collec­tor dispatching application.
4. Unplug the USB cable from the modem.
5. Set the modem into the operating mode:
a. Insert the SIM cards into the trays, the trays – into the modem. b.
Plug the antenna, data cable and power cable into the modem.
c. Apply voltage to the modem using the power connector. The modem establishes GPRS connection us-
ing the primary SIM card. The start log with main settings and state of its pins is displayed over the USB interface.
1
The program does not request this password if the default password (5492) is used or the modem password coincides
with the one specified for the previous modem.
2
For more detailed information on the modem setup via the ATM Control program, refer to the document «User Guide
on the ATM Control Modem Configuration Utility».
Page 28
28
To switch off the modem, disable power voltage applied to it. Data transmission over GPRS will be termi­nated.
4.2. Device Operating Procedure
When enabled, the modem verifies power supply voltage. If it is less than the allowable voltage, the log will prompt an error message (“POWER ERROR”), and the modem will wait for power voltage sufficient to operate.
After supplying voltage to the modem sufficient for operation, the SIM card is verified. If the SIM card re­quests a PIN code, the modem is loaded using the PIN code specified in the settings. When the PIN code is incorrect, the modem deletes it from the memory to prevent SIM card locking. If the PIN code is not specified in the modem settings, but the SIM card requires it, the modem does not operate with this SIM card until the tray is restarted.
After the SIM card's successful loading, the modem registers with the network and clears the memory of SMS messages. The modem establishes GPRS connection and connects to the server (in the Client mode) / opens the port for incoming client connections (in the Server mode).
When operating with the standard server (not iRZ Collector), the modem reestablishes connection with it if there is no data transmission within the specified time interval. Default time interval – 1 minute. The interval can be changed in the tab Settings Advanced GPRS of the ATM Control configuration utility (TCP/IP con- nection verification time).
When operating with the iRZ Collector specialized server, the modem sends a keepalive packet to the iRZ Collector server to verify connection if data transmission is not available for over a minute. If there is no re­sponse to the keepalive packets, the server clears the connection.
When the modem operates in the Server mode, test connection to the public servers is performed to verify connection. For more details, refer to TCP/IP Verification.
The modem provides continuous monitoring of pins and checks for incoming1 SMS messages.
The modem checks for SIM cards and switches to the service mode if both trays are not available.
4.3. Service Mode
The service mode is used to configure the modem. The service mode is enabled automatically if both SIM trays are ejected from the modem. If the modem has at least one tray available, it switches to the operating mode.
1
SMS messages received by the modem. Such message may contain the command to connect to the server, enable or disable the offline mode or to control the modem pins. For more details on the modem SMS commands, refer to sections
«Connecting to the Server via SMS Commands», «Offline Mode», «GPIO Pins Control via SMS Commands».
Page 29
29
Data communication with a computer is carried out via USB interface in the service mode. In this case the
modem is recognized as a virtual COM port.
You can configure the modem using the ATM Control configuration utility as well as using the AT commands in any terminal program. The ATM Control utility is available for free download from the official website of the Radiofid Group of Companies (www.radiofid.ru).
All AT commands, except passwords, are case-insensitive (at$sim1? is equal to AT$SIM1?). Any AT com­mand must end with the <CR> new line character (the Enter key). If the entered command is incorrect, an error message is displayed in the log.
To enter the service mode, it is required to enter the corresponding password (default value – 5492).
Before entering the password in the terminal application, only the query for the version and model of the de­vice and the IMEI module are available.
4.4. Offline Mode
In the offline mode the modem performs all its functions, except for connection to the GPRS network. In this case the modem remains registered in the GSM network, supports calls and SMS messages, operation of the GPIO pins, watchdog timers and switch to the primary SIM card. Offline mode provides economy of traffic and power consumption. It is used if no continuous GPRS connection is required.
Switching to the offline mode indicates GPRS termination; exit from the offline mode indicates that GPRS connection is established (GPRS connection access).
Switch to the offline mode can be implemented:
If the GPRS operation interval set in the settings is expired When recognizing the code word by the modem When data transmission is not available within the specified time interval On call By SMS command
Access to GPRS is performed:
By the specified exact time By period On call By SMS command By GPIO status change
Enter/exit the offline mode on call
Page 30
30
For operation of this option, enable the GPRS access on call or switch to offline mode on call in the modem settings, and specify a phone number in the international format (+7ХХХХХХХХХХ) for making calls to the modem.
If you have both the switch to offline mode on call and GPRS access on call configured, the device will change its status – if the device has been in the offline mode, it switches to the GPRS access, and vice versa, if GPRS connection has been established, it switches to the offline mode.
Switch to the offline mode/GPRS access by SMS SMS command specifies a certain action - GPRS access or switch to the offline mode. SMS command format:
XXXX wait on – to switch to the offline mode (exit GPRS); XXXX wait off – to exit the offline mode (exit GPRS);
where XXXX is a password for SMS message (four digits or Latin characters, case-sensitive). Default pass-
word – 5492. There must be a space after the password in the message.
Switch to the offline mode by a code word When detecting a set of characters in data stream with the sequence corresponding to the sequence speci-
fied in the settings, the modem terminates the GPRS connection and switches to the offline mode.
The code word can be a sequence of any symbols from 1 to 32 and from 0x00 to 0xFF. When entering the
code word, it is recommended to use non-printable characters in addition to ASCII-symbols, since in this case the coincidence probability of the code word with payload is reduced.
It is not recommended to specify the commands used by the GPRS module and the commands used in the
communications protocol between the ATM2 modem and the iRZ Collector software as well as sequences that are parts of these commands.
The following commands are not to be used as a code word:
NO CARRIER CONNECT SISW (^SISW; SISW:) SISR (^SISR; SISR:) RING ERROR OK \xB5\xBC\xBD\xBE\xBF (\x indicates hexadecimal notation) AT$IMEI=ATM TYP=ATM PSW=
Page 31
31
VER= SIM= CSQ= TIM= TIM=CALL TIM=SMS WORD= LOG= INT= REV= HDW= MOD=SRV IP= PORT= OK%%% MOD=FRM MOD=SET MOD=DAT PASSWRONG PASSOK
Data can be written in hexadecimal format with a special character $ (for example, \xB5 = $B5) in the code
word filed of the ATM Control configuration utility.
The modem configuration via AT commands and the terminal application is given in the document «The AT
commands for the iRZ АТМ2-232 Modem Configuration».
GPRS access by exact time
When this option is enabled, the modem will establish GPRS connection at a specified time once a day.
There will be no changes if the modem has not switched to the offline mode. The reboot time is set in the hh: mm format from 00:00 to 23:59.
To apply this option, enable it in the service mode.
GPRS access by GPIO status change
To enable this option in the ATM Control application, do the following steps:
Set GPIO to «input»; Select the servers to which ATM2 is to be connected; Set a fixation step for ADC.
Page 32
32
Periodic operation mode
When this option is enabled, the modem establishes GPRS connection at regular intervals beginning from its
activation or exit from the service mode. There will be no changes if the modem has not switched to the offline mode. The period is set in the hh:mm format from 0:00 to 1000:59. If the value is set to 0:00, operation by pe­riod is disabled, i.e. GPRS connection will not be established.
GPRS connection duration – the modem operation interval at GPRS connection. The GPRS connection
duration is set in the hh:mm format from 0:00 to 1000:59. If the value is set to 0:00, the operation time in
GPRS is not limited, in this case the modem does not switch to the offline mode. The modem operation interval at GPRS connection is started when any indication of the GPRS access is activated.
For proper operation of this option with the configured GPRS access by exact time, the duration of GPRS
connection must not exceed 24 hours. When operating by period, the duration of GPRS connection must not exceed the specified period in the settings.
If the modem operates with the iRZ Collector server, the modem is connected to the server and sends the of-
fline mode schedule in the start log when supplying power and exiting the service mode.
You can set up1 the offline mode in the service mode via the ATM Control configuration utility in the tab Set-
tings Advanced Wait or using special AT commands via any terminal application. The ATM Control utili­ty, starting from version 4.5, supports all the settings of the offline mode.
Setting examples
1. GPRS access by exact time.
For example, the modem is set for GPRS access at 07:30; GPRS connection duration is 0:40. In this case, the modem will enable GPRS connection at 07:30 on a daily basis and disable it (switch to the
offline mode) at 08:10.
2. Periodic operation mode
For example, the modem is set for GPRS access at 10:00; duration – 01:00; the code word – “ENDLINK”,
the power to the modem has been supplied at 15:30. In this case the modem will enable GPRS connection im­mediately after power supply and will support it for an hour, but if during this hour the modem does not run into the word ENDLINK in the data flow, it will disable GPRS connection and switch to the offline mode. Next con­nections are to be established at 1:30; 11:30; 21:30; 7:30, etc.
3. If power is switched off and resupplied, for example, at 20:10, report on establishing GPRS connection is
made from this time, i.e. the first GPRS connection is enabled immediately after supplying power, and the next one – at 6:10; 16:10, etc.
1
If the modem RTC has been disrupted, the access to the offline mode by the parameters set in the settings is not per-
formed, i.e. the modem has a permanent connection to the server.
Page 33
33
If power is switched off and resupplied, for example, at 20:10, report on establishing GPRS connection is
made from this time, i.e. the first GPRS connection is enabled immediately after supplying power, and the next one – at 6:10; 16:10, etc.
4.5. Updating Firmware
The modem can use two firmwares of various types to operate. First type – the factory firmware installed by
the manufacturer and is no longer changed. Second type – a firmware which you can update via ATM Control (hereinafter referred to as updatable firmware). The factory firmware is always available in the modem. If the firmware fails to update, the modem switches to the operation with the factory firmware. When the modem has a successfully installed updatable firmware, the modem will always boot up with it.
When the modem operates with the updatable firmware and receives a request for the next updating, the
modem switches to operation with the factory firmware, after that deletes an old version of the updatable firm­ware and loads a new one. After a successful firmware loading, the modem operates with a new version of the updatable firmware.
The firmware version can be found in the log via any terminal program or in the ATM Control Configuration
Utility (the Device tab). The first two digits in the version number stand for the firmware type used by the mod­em: 01 – factory firmware, 02 – updatable firmware. The next two digits in the version number is a sequence number of the firmware version. For example, 01-02 – a factory firmware of the second version, 02-03 – an up­datable firmware of the third version.
The modem is provided with a hard reset button (see Fig. 2.3). This function may be required if the operation of the updatable firmware has had a failure, preventing its up-
dating and the modem switch to the factory firmware. In this case it is required to perform a hard reset, and up­date the firmware (updatable) which caused the failure using the ATM Control utility.
To implement a hard reset, power off the modem, press the button using a thin object, and holding the button
apply power to the modem. After supplying power, release the button.
The modem firmware can be updated both locally by connecting it to a computer – via the ATM Control con-
figuration utility, and remotely (when using the iRZ Collector solution) – via the iRZ Collector dispatching appli­cation. Remote firmware updating is supported if you use the iRZ Collector solution in your data collection and device management system.
Local firmware updating via the ATM Control configuration utility is viewed in the document «User Guide on
the ATM Control Modem Configuration Utility».
For more details on remote firmware updating via iRZ Collector, refer to the document «iRZ Collector. Dis-
patching Software Setup and Operation Guide».
To update a firmware, use the firmware files from the official website of the Radiofid Group of Companies
(www.radiofid.ru). Download the required firmware file to your computer from which you will update the modem firmware.
Page 34
34
Use the Device tab in the ATM Control utility (the Software Updating button) for local firmware updating.
4.6. Setting Up the Modem
The ATM initial settings are made using the ATM Control utility or AT commands. Further the modem para-
meters can be changed both locally using the the ATM Control utility or AT commands and remotely via the iRZ Collector dispatching application. Remote configuration is supported if you use the iRZ Collector solution in your data collection and device management system.
Local configuration via the ATM Control utility is viewed in the section «Modem Settings» of the «User Guide
on the ATM Control Modem Configuration Utility» document. Local configuration via AT commands is viewed in
the document «AT Commands to Set Up the iRZ ATM2-232 Modem». For more details on the remote modem configuration, refer to the document «iRZ Collector. Dispatching Software Setup and Operation Guide».
Use a previously created modem configuration file to provide remote configuration of the modem. The ATM
configuration file can be created and saved via the ATM Control utility.
Note! The modem does not handle incoming calls, SMS commands and pins signals in the firmware up-
date and setup modes. In addition, watchdog timers, offline mode access on schedule and switch to a pri­mary SIM card are enabled.
4.7. Working with SIM Cards
The modem supports two SIM cards and enables backup mobile communication. SIM card to be deployed
for current operation is regarded as an operating card (or active). After supplying power and prior to each acti­vation of the module, the modem selects an operating SIM card and verifies its PIN code. If one of the SIM cards is not available in the modem or the PIN code specified in the modem settings is invalid, the modem switches to another SIM card. To switch to a problem SIM card, restart its tray or the modem.
By priority, the SIM card can be primary or secondary. The primary SIM card is recognized in accordance
with the specified settings or on a signal from GPIO pins (see «GPIO Pins Operation»). SIM1 is primary by de­fault. When the tray with the primary SIM card appears in the modem, the modem switches to it.
The modem switches from the operating SIM card to another SIM card in the following cases:
the operating SIM card is removed from the device; the primary SIM card has appeared in the modem; the primary SIM card is reassigned on the pins signal, and it is not an operating one at the given moment; the modem cannot establish GPRS connection using the operating SIM card within the specified time in-
terval;
it is time to switch to the primary SIM card.
Page 35
35
The modem operation with SIM cards is set up in the tab Settings → Advanced → SIM of the ATM Control
utility.
4.8. Working with the Server
The modem-client provides transparent data communication between the server and an external device,
connected to the modem, in GPRS network over TCP/IP. To set up connection, specify an IP address and the server port in the modem settings (the tab Settings → Basic in the ATM Control utility).
Either one or two IP:ports can be arranged to access the modems in the backup mode on one server. When
using the second IP address (for example, from other provider), the access to the server is available even if access is not provided by the first address. On this account, there can be the following combinations with max­imum available backup use:
one server – with two IP:ports (two IP:ports for modems in total count); two servers – with two IP:ports (four IP:ports for modems in total count); three servers – one server with two IP:ports and two servers with one IP:port (four IP:ports for modems in
total count);
four servers – each server has one IP:port (four IP:ports for modems in total count).
If you are intended to use backup server(s), enable the use of these servers in the modem settings
and specify their IP address and port. The modem switches to a backup server (or to another IP ad­dress of the same server) at loss of connection to the first server (or to the first IP address of the same server) or on signal from the modem pins. The flow diagram (see Fig. 4.1) illustrates the pro­cedure of selecting a production server when operating with two servers, one of which is a backup one.
Page 36
36
Fig. 4.1 Procedure of selecting a production server
The figure illustrates the diagram of operation with the server without backup Internet connection (see Fig.
4.2), the diagram of operation with two servers (see Fig. 4.3) and the diagram of operation with two IP ad­dresses on one server (see Fig. 4.4).
Fig. 4.2 The diagram of operation with one server without backup
Page 37
37
Fig. 4.3 The diagram of operation with two servers
Fig. 4.4 The diagram of operation with two IP addresses on one server
4.9. Working with the iRZ Collector Server
The ATM modem supports operation both with a common server and the server with the installed iRZ Collec-
tor server software (hereinafter – the iRZ Collector server).
The primary function of the iRZ Collector server is to provide communication between the modem-client and
the external device polling software, which also serves as a client. Two clients cannot intercommunicate direct­ly: they need a server. For this reason, the iRZ Collector server has been developed, which serves as a «layer» between the modem client and the software-client providing their communication. Besides, the iRZ Collector provides remote monitoring, firmware updating and configuring the system of modems, as well as sending SMS command to the modem via the dispatching application.
When the modem operates in the Client mode, the iRZ Collector server is used for its first intended purpose
– to receive data from external devices. In addition, the modems can be monitored and controlled via the iRZ Collector dispatching application.
Page 38
38
When the modem operates in the Server mode, it is accessed directly from the dispatching center. Thus, it is
not required to refer to the iRZ Collector server to receive data from external devices. However, the iRZ Collec­tor software solution can be still used to monitor and control the modems.
When establishing GPRS connection, the modem sends a start packet to the iRZ Collector server and waits
for a response. After receiving the response the modem switches to the data transmission mode. In case of a response error, the modem re-establishes connection.
To set up the operation of the modem-client with the iRZ Collector server, it is required to check the box for
the Integration into IRZ Collector option and specify an IP address and the server port in the ATM Control utility (the tab Settings Basic).
The modem-server operation with the iRZ Collector server is given in the section «Monitoring and Control via
iRZ Collector».
4.10. Encapsulation Mode
When operating with the iRZ Collector server, the encapsulation mode is available. The encapsulation mode
enables the modem to receive control commands and response to the server inquiries without interrupting con­nection to the server (see «User Guide on the ATM Control Modem Configuration Utility»).
The following inquiries can be made from the server:
CSQ signal strength; data on detected base stations; the module temperature; GPIO pins status; COM port pins status; current settings reading.
ATM2 can process the following commands:
GPIO status change; change of external COM port pins status; external COM port rate change (АТМ2 responds to the server immediately after receiving the command,
but executes the command in 1 minute after receipt);
selection of a primary SIM card (АТМ2 responds to the server immediately after receiving the command,
but executes the command in 1 minute after receipt);
switch to the offline mode.
Page 39
39
4.11. Connecting to the Server via SMS Commands
The modem provides the option of a single connection to the server by an SMS command. When receiving
such command, the modem is connected to the server with the address specified in the SMS message. In this case the server switch is not allowed. The sample of SMS command to connect to the server: 0000
ATIP208.245.23.12:10234TIME 255IRZ
.
0000 – password for SMS commands specified in the modem, a space is required after the password.
Format – 4 characters (Latin characters and digits, case sensitive). Default value – 5492 (can be changed in the service mode).
ATIP208.245.23.12:10234 – the command to the modem for its connection to the server via IP address
208.245.23.12 with the port 10234 (entered with no character spacing). TIME255 – time in minutes within which the modem is to be connected to the server (10 – 360 minutes). The parameter is optional: if it is not specified in the SMS message, the connection is
established for 10 minutes. If it is set to TIME0, the modem will operate with the specified server before any of the following events take place: power reset, access to the service mode or receiving other SMS command.
IRZ – required to be specified if the iRZ Collector server is used. If the system uses a common server, the
parameter iRZ is not required.
After the time, specified in the SMS message, the modem is loaded with the saved settings. The modem switches to the saved settings when it is restarted on power or exiting the service mode. The time settings, specified in the SMS message, are not stored in the device memory and are valid only within the time, specified in the message.
To use the function of connection to the server on SMS command, first enable its use in the modem settings. Check the box for the Allow settings change via SMS (the tab Settings Advanced SMS in the ATM Control utility).
For more details, see the section «SMS messages» in the document «User Guide on the ATM Control Mod-
em Configuration Utility».
4.12. Sending SMS on GPRS Connection Loss
The modem supports sending SMS in the Client and Server modes, reporting on the GPRS connection loss. In case of GPRS connection loss and no connection within the specified time interval, the modem sends an SMS error message to the indicated telephone number. By default, this option is disabled. It can be enabled in the tab Settings Advanced GPRS of the ATM Control utility.
The number for the modem to send SMS messages can be set in the tab Settings Advanced SMS of the ATM Control utility.
An SMS message on GPRS connection loss contains the following data:
Page 40
40
device model; device name if specified in settings (default value – name); «GPRS-ERROR» string;
time of GPRS connection loss. The sample of SMS on GPRS connection loss: АТМ2-232,0003,GPRS-ERROR,15:15:58. If an SMS message fails to be sent, the modem will try to send the message again in the time interval speci-
fied in the settings. Default time interval – 30 minutes. The interval value can be changed in the tab Settings Advanced SMS of the ATM Control utility (parameter: SMS resending timeout). To disable SMS resending on connection loss, set the resending interval to 0.
The SMS message on GPRS connection is not sent if connection is not restored within the specified time in-
terval as well as when the modem switches to the service, offline or CSD mode.
4.13. Data Transmission via CSD
The ATM modem supports data transmission via CSD (over voice channel). Data transmission via CSD is always available if allowed telephone numbers are specified in the modem set-
tings. You can specify the numbers for calls to be enabled in the tab Settings Advanced CSD of the ATM Control utility.
CSD is supported both in the Client and the Server modes of the modem operation. In addition, the modem
features a separate mode of data transmission only via CSD.
At an incoming call the modem determines its type: voice call or data transmission. If it is a voice call, the
modem refers it to the offline mode. If it is determined as data transmission, the modem compares the tele­phone number, from which the call has been received, with the phone numbers enabled in the settings. If the number coincides with the enabled ones (or all numbers are enabled), the modem switches to the CSD mode. In this case, transparent data communication between an external device and a connection initiator1 is estab­lished. Connection is supported until the initiator does not end the call. The modem enables self-contained exit from the CSD mode only if the SIM card is removed from the modem.
You can enable up to four phone numbers or enable the CSD mode initiation from any number. The CSD mode is regarded as dominant: if the call is received during data transmission over GPRS, the
GPRS connection is broken and the CSD mode is set. After data transmission via CDS is complete, the modem returns to the action performed before switching to the CSD mode. If there has been connection to the server, connection to the server is established. If the modem-server has been connected, the modem establishes con­nection and waits for incoming connections.
1
For example, by the dispatching center.
Page 41
41
If the modem has connected to GPRS, GPRS is set, but if the modem has been in the offline mode - the
modem returns to the offline mode.
The CSD mode is not available during the embedded software (firmware) update process and the modem
settings change.
In the CSD only mode, in which data transmission is possible only via CSD, GPRS connection, offline mode,
remote firmware updating and settings change and Modbus protocol for COM port are not available.
4.14. Watchdog Timers
The modem provides continuous monitoring of the GSM module state. If the GSM module stops responding
to the service commands, it restarts. However, if there has been a fault, but the module continues to respond to the service commands, the module will not restart. In case of such fault, the modem is fitted with two types of watchdog timers.
The modem has an interval and daily watchdog timers. The interval watchdog time restarts the module at the
specified interval after its last activation. Default restart interval – 24 hours.
The daily watchdog timer restarts the module once a day at the specified time. By default, the daily timer is
disabled.
The watchdog timers are set up in the tab
Settings → Advanced → WDT
of the ATM Control utility.
4.15. Real-Time Clock (RTC)
Real-time clock (RTC) is a source of time for the modem services which require timestamps or compliance
with a schedule to operate. For example, the modem determines time of SMS sending and receiving via RTC and starts the watchdog timers. RTC is set up in the tab
Settings → Advanced
RTC of the ATM Control
utility.
When enabled, the modem performs the RTC verification. If there has been the RTC fault, both LEDs light
for 4 seconds, and the current time is set to 0:00:00.
4.16. GPIO Pins Operation
To control external devices (for example, sensors), the modem has three configurable GPIO pins (see Fig.
2.7). Pin 1 and 2 can be set both to «input» and «output», pin 2 can be set to ADC. Pin 3 is power, always operates as an «output». The modem GPIO is set up in the tab Settings Advanced GPIO of the ATM Control utility.
Page 42
42
4.16.1. Setting Up Pins of the «Input» Type
The pin set to «input» can operate in the normal or inverse modes. In the normal mode the input high level
(level «1») is regarded as an active signal, and the low level (level «0») – a passive one.
The modem regards the input high level in the inverse mode as a passive signal, and the low level - as an
active one.
To set an action to be performed when an active input signal appears, it is required to specify the operation
algorithm for an input. The signal, coming to input, is a signal of at least 1 second duration.
The input operation algorithm (see Table 4.1) is set in the tab Settings Advanced GPIO of the ATM
Control utility.
Table 4.1 Assignments of pins set to input
Input operation algorithm
State at the passive
level on input
State at the active level on
input
Code
Assignment
0
No settings
1*
Primary SIM card assign­ment
Primary SIM card
Secondary SIM card 5
Event with SMS sending
Sending SMS message
15
Pulse counter**
Counting pulses received
* If similar code of an algorithm is assigned for two pins at once, this algorithm will be relevant only for the
GPIO1 operation.
** The pulse counter is active only when the ADC mode is disabled. The ATM Control application features
the Minimum pulse width option which allows the user to specify a minimum time period to support the GPIO active state for identifying a pulse by the modem.
The modem is fitted with the input pull-up to supply voltage. By default, the pull-up is disabled and the input
is pulled down to the negative supply voltage (GND) via the 47 k resistor. When the pull-up is enabled, the input is pulled up to the Uin power supply voltage (TJ6-6P6C connector) via the 10 k resistor.
The encapsulation mode has an option of pin state automatic sending to the selected server (see section
«Encapsulation Mode»). Each pin has its own server selected in the ATM Control utility. And it can be one and the same server.
The change in state for a digital pin is considered to be a change for 1 sec. The GPIO 1 pin, set to input, can operate as ADC. Depending on the settings, ATM2 can measure current or
voltage.
Current measurement parameters:
Current measuring range, mA: 0 to 30. Current measurement error, mA: ±0.2.
Page 43
43
Voltage measurement parameters:
Voltage measuring range, V: 0 to ATM2 supply voltage. Voltage measurement error, V: ±0.2.
Change of the measurable value (voltage/current) is considered its change by a fixation step. Fixation step is
set in the ATM Control configuration utility.
For automatic data sending to the ADC server, do the following steps in the ATM Control configuration utility:
1. select a server for data transmission;
2. set up the server sending mode:
by state change (measurements are performed once per second); by period:
measurement interval: number of measurements to be sent.
In the automatic data transmission mode ATM2 can store up to 150 last values for ADC and 2 last states af-
ter the change for digital inputs and measurement time. There is an option to exit the offline mode by the GPIO pin state change to send data (see section «Offline Mode»).
4.16.2. Setting Up Pins of the «Output» Type
The pin set to «output» can operate in normal or inverse mode. In the normal mode the output high level
(level «1») is regarded as an active signal, and the low level (level «0») – a passive one. When enabling the inverse mode, output high level corresponds to a passive signal, and the low level – to an active signal.
To select an event by which the modem will produce an active or passive output signal, it is required to spe-
cify the output operation algorithm. The output operation algorithm (see Table 4.2) is set in the tab Settings
Advanced GPIO of the ATM Control utility.
Table 4.2 Output operation algorithm
Output operation algorithm
Output active state
Output passive state
Code
Assignment
0
No functions
1
Connection status
GPRS connection is established
No GPRS connection
2
Active SIM card
Primary SIM card
Secondary SIM card
3
SIM cards are available
SIM card is available (at least one)
No SIM cards
Page 44
44
Output operation algorithm
Output active state
Output passive state
Code
Assignment
4
Operation via CSD
Operation via CSD
6
Data link activity
GPRS
When data is received over GPRS, the pin switches to an active state, and data transmission begins after the pause of 150 msec.
when no data is available to
transmit over GPRS or in a COM port within the time pe­riod specified in the Data absence time option (in the ATM Control application);
after restart of module.
CSD
CSD connection is open
CSD connection is closed
7
Alarm status
Module is disabled
Module is enabled
8
Command mode (per­forming a task by SMS command)
See section «GPIO Pins Control via SMS Commands»
The command mode enables the modem output control via single-acting SMS commands. The output can
be transferred into an active or passive state as well as an output signal can be generated by sending an SMS command to the modem. Two types of output signal are available for the command mode: pulse of the speci­fied duration and trigger. By default, the trigger is used. For more details on output control, refer to the section «GPIO Pins Control via SMS Commands».
Table 4.3 Available types of signals in the command mode
Signal type
Description
Pulse
Pulse is generated by the output active state. Pulse duration – 1 to 255 seconds. Default value – 1 second.
If during the pulse action an event, reinitializing the pulse output triggering, occurs, the output remains in the active state for the specified duration starting a count from the time of the event.
Trigger
The pin state is changed into the opposite one and stored (if output state memory is enabled).
Up (active state)
Set for an output only by an SMS command. The output state switches to active and is stored (if state memory is enabled).
If the pin is in an active state, data is transmitted without a pause when received.
Page 45
45
Signal type
Description
Down (passive state)
Set for an output only by an SMS command. The output state switches to passive and is stored (if state memory is enabled).
The modem can save the outputs state and restore it when restarted. By default, this option is disabled for
pins 1 and 2, enabled – for pin 3. Only the pulse active state is not stored: after restarting the modem, the pin is set to the passive state.
You can disable saving of each pin state – in this case the pin is set to the passive state after restarting the
modem.
Note! When changing the GPIO settings, the state of all the modem pins is reset to the passive state.
4.16.3. GPIO Pins Control via SMS Commands
The modem can perform an action with an output by an SMS command:
to set the active state of an output; to set the passive state of an output; to change the output state into the opposite one (trigger); to generate a pulse of the specified duration.
To control pins via SMS commands, first set up this pin (otherwise the modem will ignore an SMS command
for the pin):
«direction» – «output»;
«output operation algorithm» = 8 (command mode). The pin is set up in the tab SettingsAdvanced GPIO of the ATM Control utility. SMS command to control the pin must contain the following data (all enumerated parameters below must be
separated from each other by a space):
SMS command password – 4 symbols (digits and Latin characters, case sensitive), default value – 5492;
output number (out1, out2 or out3);
command (if the command is not specified, the device produces the signal set in the settings);
duration (only for pulse). The samples of SMS messages for pins control:
5492 out3 – the event of a signal on output 3 specified in the modem settings (pulse or trigger);
5492 out2 up – output 2 is set to the active state;
5492 out3 down – output 3 is set to the passive state;
5492 out2 pulse – a pulse appears on output 2. The pulse duration is equal to the value set in the modem
settings (default value – 1 second);
Page 46
46
5492 out2 pulse – a pulse of 2 seconds duration appears on output 2.
4.17. Operating with Incoming SMS Messages
Incoming SMS commands are used for pins control in this modem version (see section «GPIO Pins Control
via SMS Commands») to enter and exit the offline mode (see section «Offline Mode») as well as for single
connection to the server (see section «Connecting to the Server via SMS Commands»).
The SMS commands, received by the modem, are displayed in the log, and the password specified in the
SMS command is not displayed in the open form. If the password or command is invalid, the modem ignores the SMS command received. If the password is invalid, the log prompts an error message «Password Error».
4.18. Modem Operation in the Server Mode
The server mode can be relevant if a company rents an access point (APN) from the mobile network carrier
(or a public static IP address is rented for each modem). When APN is rented to all devices of the system (modems and a dispatcher center), private IP addresses are set. In this case, there is no need to rent public static IP addresses for modems or operate with modems via the iRZ Collector server (see Fig. 4.5).
Fig. 4.5 Methods of remote access to the modem
In the Server mode the modem supports the same functions as in the Client mode. In the same way as it is
described in the sections «Service Mode», «Offline Mode», «Updating Firmware», «Setting Up the Modem»,
«Working with SIM Cards», «Connecting to the Server via SMS Commands», «Sending SMS on GPRS Con­nection Loss», «Data Transmission via CSD», «Watchdog Timers», «Real-Time Clock (RTC)», «GPIO Pins Operation», «Operating with Incoming SMS Messages».
Page 47
47
In the Server mode the modem supports operation with the IRZ Collector software solution. To receive data
from an external device connected to the modem-server there is no need to deploy the iRZ Collector server ­the modem-server can be accessed directly. However, the iRZ Collector server enables the remote modems to be monitored and controlled from the dispatching center. For more details on the modem-server operation with the iRZ Collector server, refer to the «Monitoring and Control via iRZ Collector» section.
In addition, the modem features additional functions in the Server mode: the mode of clients connection to
the modem, and sending SMS message when changing IP address. However, the option of the offline mode access is not available if no data is found.
Specify the port number for incoming connections (the Incoming Port parameter in the tab Settings → Ba-
sic of the ATM Control utility).
4.18.1. Authentication of Connecting Clients
The modem-server can operate only with one client at one time. The modem-server can limit the attempts to connect clients. For this purpose one of the authentication types
is used: by iRZ protocol, by IP address or with no authentication. Note: If authentication is disabled, connection is established to any client which tries to connect to the modem-server.
Fig. 4.6 Types of client authentication at connection to the modem-server
The iRZ protocol-based authentication is designed for the cases when the ATM modem-client or iRZ proto-
col-enabled software, is installed in the dispatching center. The iRZ protocol-based authentication is imple­mented by the GPRS password or by the login – GPRS password pair. The right to connect to the modem­server is not provided for each client, but only for one which has a valid GPRS password or the login – GPRS password pair (depending on the modem-server settings). This means that their values, specified in the set­tings of a connecting client, are to coincide with those specified in the modem-server settings.
At authentication by GPRS password: if a new client tries to connect to the modem, and there has been no
data or keepalive packets communication with a current client within a minute, operating connection to the cur­rent client is terminated and connection to a new client is established. Operation with the current client contin­ues in a different way.
Page 48
48
At authentication by login and GPRS password: if a new client tries to connect to the modem and its login
and password are valid, the modem establishes operating connection to a new client and terminates the pre­vious connection. If the login and password do not match, the modem-server continues to operate with the pre­vious client.
IP address authentication is used when the client holds a public static IP address (when renting APN from
the mobile network carrier – a private static IP address), the clients with other IP addresses fail to operate with the modem-server.
At authentication by IP address: An IP address of the connecting client is compared with the IP address set
in the modem-server settings. If the address matches, connection to a new client becomes operational and the previous connection is terminated. If not, the modem-server continues its operation with the previous client.
Without authentication mechanism: when the modem is already working with the current client, and a new
client is trying to connect the modem at the same time, 2 options are possible:
If data has been transmitted during the last minute, operation with the current client proceeds. In this case
connection of a new client is terminated.
If data has not been transmitted within a minute, connection to a current client is terminated, and connec-
tion to a new connected client is established.
The type of authentication is set up in the tab Settings → Advanced → GPRS of the ATM Control utility (the
Connection Mode parameter).
4.18.2. Monitoring and Control via iRZ Collector
When the modem operates in the Server mode, data from an external device can be received directly with-
out a «layer» in the form of the iRZ Collector server application. However the iRZ Collector software solution enables the modems to be monitored and controlled1 via the iRZ Collector dispatching application. In this case the modem-server is monitored and controlled in the same way as the modem-client since the modem is still a client in relation to the iRZ Collector server (see Fig. 4.7).
When the command for the settings change and the firmware update is received from iRZ Collector, the
modem-server terminates all connections and switches to the Client mode. After setting up / updating the firm­ware, the modem returns to the Server mode and opens the port for incoming connections.
The operation of the modem-server with the iRZ Collector server can be set up in the tab Settings → Basic
of the ATM Control application. For this purpose check the box for the Control via iRZ Collector option and specify an IP address and port of the iRZ Collector server.
1
For more details on the modem monitoring and control via the iRZ Collector dispatching application, see the document
«iRZ Collector. Dispatching Software Setup and Operation Guide».
Page 49
49
Fig. 4.7 The interaction diagram when using the iRZ Collector software solution - the modem operates in the
server mode
4.18.3. TCP/IP Connection Control
To establish test connection check, the modem-server can connect to two public servers. When using iRZ
Collector, test connection is available only with one public server.
If the modem is unable to connect to any of the test servers (or TCP/IP connection control is disabled), the
modem closes an incoming connection port and opens it again.
Such connection check is performed via the TCP/IP connection check interval specified in the modem set-
tings. The interval can be set in the tab Settings → Advanced → GPRS of the ATM Control application.
By default, Yandex (www.ya.ru with port 80) and Google public DNS server (8.8.8.8 with port 53) are used
as public servers to test connection.
Set addresses of test servers for TCP/IP connection check using the tab Settings → Basic of the ATM Con-
trol utility.
4.18.4. SMS on IP Address Change
The modem-server supports sending of SMS messages to the specified phone number reporting on an IP
address change. The modem-server sends an SMS message at the first connection and at each subsequent connection when the current IP address differs from the previous one. IP address can be changed due to SIM card change or when using a SIM card with a dynamic public IP address.
SMS message sending on the modem-server IP address change can be enabled in the tab Settings → Ad-
vanced → GPRS of the ATM Control utility.
Page 50
50
5. Log Main Messages
During its operation the modem displays messages in the log via USB interface in a real time. The log can
be viewed in any terminal application.
5.1. Log Messages at the Modem Activation
The start log, holding basic modem settings and outputs status, is produced when enabling the modem. An
example of such log is given in Table 5.1.
Table 5.1 The sample of start log content
Log Message
Message Decoding
Automatic Terminal-modem ATM2-232 Software: 01-01 Hardware: 01
--------------------------------------­Name device: ATM2
--------------------------------------­00:11:04 Work mode = «Client»
--------------------------------------­IRZ servers = ON Server1 IP:port = «89.223.42.88:5000» Server2 IP:port = «85.26.210.128:0000» Switch servers = OFF
--------------------------------------­SIM1 apn = «internet.mts.ru» SIM1 login = «mts» SIM1 password = «mts» SIM1 PIN code = no pin
--------------------------------------­SIM2 apn = «internet.mts.ru» SIM2 login = «mts» SIM2 password = «mts» SIM2 PIN code = ****
--------------------------------------­Main SIM = SIM1 Work SIM = SIM2 Protocol: TCP/IP
Device name Device software version Hardware version
Device name
Current time Operating mode – «Client»
Operation with the iRZ Collector server is enabled IP address and first server port IP address and second server port Server switching is disabled
First SIM card APN User name or login for the first SIM card First SIM card password PIN code for the first SIM card is not specified in settings
APN for the second SIM card User name or login for the second SIM card Second SIM card password The second SIM card uses PIN code
Primary SIM card - SIM1 Operating (active) SIM card - SIM2 Protocol - TCP/IP
Page 51
51
Log Message
Message Decoding
--------------------------------------­TIMEOUT - reconnect GPRS = 1 min TIMEOUT - change the SIM due to connection errors =
10 min TIMEOUT - return to the main SIM = 0 min
--------------------------------------­GPIO state: GPIO1 = IN GPIO2 = IN GPIO3 = OUT Physical state = 1 Logical state = 0
GPRS reconnect interval SIM card switch interval Interval to switch to the primary SIM card (the option is
disabled by default)
GPIO pins status GPIO1 input GPIO2 input GPIO3 output The GPIO3 high voltage corresponds to a low logic level
(reversed)
After applying voltage to the modem, sufficient for operation, the module is enabled. The samples of log messages appearing at this stage are given in Table 5.2.
Table 5.2 The sample of log messages at the module activation
Log Message
Message Decoding
POWER OK
Power supply is normal
Start the module...
Enabling the module
Module ok
Module is enabled
356495040048235
IMEI (15-digit number unique for each modem)
+CSQ: 13,99
Verifying signal strength
+CREG: 0,1
Verifying network registration
^SMOND:250,01,00EA,0ADE,40,1022,86,,,0,,,0,250,01,00EA,0AE1,14,796,92,2 50,01,00EA,,54,676,105,250,01,0000,,14,678,107,250,01,0000,,06,62,112,250,0 1,0000,, 00,0,0,250,01,0000,,00,0,0,0,15,99
Data on base stations1
5.2. Log Messages on the SIM Cards Used
The samples of log messages, related to the SIM cards used in the modem, are given in Table 5.3.
1
For decoding data on base stations in the message, refer to the module documentation.
Page 52
52
Table 5.3 The sample of log messages on SIM cards used
Log Message
Message Decoding
SIM-tray 1 is empty
No SIM1 in the tray
SIM2 error, SIM-tray 1 missing
SIM2 is faulty, no SIM1 in the tray
PIN code for SIM1 = ****
PIN code is enabled in the settings
PIN code for SIM1 = no pin
PIN code is disabled in the settings
+CPIN: READY
PIN code request is not set on SIM card, download is continued
+CPIN: SIM PIN
PIN code request is set on SIM card
Work SIM – error
PIN code on the operating SIM is invalid
5.3. Log Messages at the Operation with Servers
The samples of log messages which can be displayed at the modem operation with a common server and
the specialized iRZ Collector server are given in Table 5.4.
Table 5.4 The sample of log messages at operation with servers
Log Message
Message Decoding
CONNECT
Connection to the server is enabled
Reboot…
Closing open connections and rebooting the module
Restart connect
Reconnection to the server
ATM - IRZ server: START CODE
Sending a start message to the iRZ Collector server
Waiting for server response... Server response OK
Waiting for response from the iRZ Collector server The response packet from the iRZ Collector server is re-
ceived
Server response error
The iRZ Collector server response error
ATM - IRZ server: keep alive
If data is not received within a minute, the iRZ Collector server sends a keepalive packet
Password ERROR
When trying to update the firmware / configure the mod­em remotely via the iRZ Collector, an invalid password of the service mode has been specified
OK%%%1
The modem has received the packet No.0 and requests the next packet (i.e. packet No.1) etc. till the download of the firmware or configuration file is complete
Page 53
53
5.4. Log Messages at Sending SMS on GPRS Connection Loss
The modem sends SMS messages if GPRS connection is lost or not available within the specified time inter-
val with the result of SMS sending displayed in the log. The samples of log messages are given in Table 5.5.
Table 5.5 The sample of log messages at sending SMS messages on GPRS connection error
Log Message
Message Decoding
ATM2-232: send sms Telephone number for send SMS: +70000000000 Send sms:ATM2-232,0001,GPRS-ERROR,00:20:06 Send sms ok
A phone number to send SMS message
SMS text SMS message is successfully sent
Send sms error
SMS sending error
5.5. Log Messages at Receiving Signals from Outputs
The samples of log messages, which can be displayed when receiving signals from outputs, are given in
Table 5.6.
Table 5.6 The sample of log messages at receiving signals from pins
Log Message
Message Decoding
EVENT GPIO 1, 17:06:42 select the main SIM
Active signal event in pin 1 at 17:06:42 Function - selection of a primary SIM card
EVENT GPIO 2, 17:06:06 not function for input
Active signal event in pin 2 at 17:06:06 Function - no
EVENT GPIO 1, 17:10:55 select the current server
Active signal event in pin 1 at 17:10:55 No function for pin
EVENT GPIO 1, 17:54:02 Telephone number for send SMS: 80000000000
Active signal event in output 1 at 17:54:02 Function - sending SMS to a number
Page 54
54
5.6. Log Messages at Receiving SMS Commands by the Modem
Incoming SMS messages are used to control GPIO pins (see «GPIO Pins Control via SMS Commands»), to
enter and exit the offline mode («Offline Mode») as well as for single connection to the server («Connecting to
the Server via SMS Commands»). SMS commands received by the modem are displayed in the log. The sam-
ples of log messages at receiving SMS commands are given in Table 5.7.
Table 5.7 The sample of log messages at receiving SMS commands by the modem
Log Message
Message Decoding
**** out1
Text of the received SMS command. Command result ­the signal specified in the modem settings (trigger or pulse) - appears in output 1
SMS COMMAND – ENABLED SMS COMMAND - IP:PORT OK Server1 IP:port = 85.26.210.128:2222 Work time = 10 min Switch servers = OFF IRZ servers = OFF
Connection to the server via SMS commands is enabled
Connect the server for 10 minutes: IP address
85.26.210.128, port - 2222 Server switching is disabled The iRZ Collector server is not used (connect to the com-
mon server)
Page 55
55
6. Contacts and Support
To get a new firmware, documentation and related software versions, please use the following contacts:
The company's website: http://www.radiofid.ru/ Phone number in St. Petersburg: +7 (812) 318-18-19 E-mail
: support@radiofid.ru
Our specialists are always ready to answer your questions, assist in installation or configuration, and solve
problems regarding the equipment operation.
Note! Before contacting the technical support service, it is recommended to update your modem software
up to the latest version.
Loading...