2N M2M Solution 2N SmartCom User Manual 1.9.0

www.2n.czFirmware
Version
2N SmartCom
®
Wireless Device Management over IP
User Manual
1.9.0
The 2N TELEKOMUNIKACE joint-stock company is a Czech manufacturer and supplier of telecommunications equipment.
The product family developed by 2N TELEKOMUNIKACE a.s. includes GSM gateways, private branch exchanges (PBX), and door and lift communicators. 2N TELEKOMUNIKACE a.s. has been ranked among the Czech top companies for years and represented a symbol of stability and prosperity on the telecommunications market for almost two decades. At present, we export our products into over 120 countries worldwide and have exclusive distributors on all continents.
2N is a registered trademark of 2N TELEKOMUNIKACE a.s.. Any product and/or other
®
names mentioned herein are registered trademarks and/or trademarks or brands protected by law.
2N TELEKOMUNIKACE administers the FAQ database to help you quickly find information and to answer your questions about 2N products and services. On www.faq.2n.cz you can find information regarding products adjustment and instructions for optimum use and procedures „What to do if...“.
Declaration of Conformity
2N TELEKOMUNIKACE hereby declares that the 2N SmartCOM product complies with all
®
basic requirements and other relevant provisions of the 1999/5/EC directive. For the full wording of the Declaration of Conformity see the CD-ROM enclosed and at www.2n.cz.
The 2N TELEKOMUNIKACE company is the holder of the ISO 9001:2009 certificate. All development, production and distribution processes of the company are managed by this standard and guarantee a high quality, technical level and professional aspect of all our
Content
1. Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1 Product Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.3 Terms and Symbols Used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2. Description and Installation . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 Basic Version Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 PRO Version Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3 Before You Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4 Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3. Function and Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.1 Putting in Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.2 GSM LED Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.3 Input and Output Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.4 Input Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4. Configuration by Terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.2 List of Supported AT Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5. Configuration by SMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6. Terminal Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
7. Control Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
7.1 SC Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.2 Control Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.3 Control Panel Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
8. AT API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
8.1 AT API Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
8.2 Supported Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
9. User Defined Functions - UDF . . . . . . . . . . . . . . . . . . . . . . . . 117
9.1 UDF Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
9.2 UDF Condition Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
10. sc_config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
11. Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
11.1 Firmware Upgrade (Update) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
11.2 Factory Default Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
11.3 Repairs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
12. Technical Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
12.1 Technical Parameters for Basic Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
12.2 Technical Parameters for PRO Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
13. Supplementary Information . . . . . . . . . . . . . . . . . . . . . . . . . 144
13.1 List of Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
13.2 Regulations, Laws and Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
13.3 General Instructions and Cautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147

1. Product Overview

In this section, we introduce the product, outline its application2N SmartCOM
®
options and highlight the advantages following from its use. The section also includes safety precautions. Here is what you can find in this section:
1.1 Product Description
1.2 Upgrade
1.3 Terms and Symbols Used
®
52N TELEKOMUNIKACE a.s., www.2n.cz

1.1 Product Description

The GPRS communication unit is a new product developed and2N SmartCOM
®
manufactured to provide the maximum utility value, quality and reliability. We hope you will be fully satisfied with the for a long time. Use 2N SmartCOM
®
2N
®
in accordance herewith for the purposes it was designed and SmartCOM
manufactured for.
is designed for Internet connection via the GPRS network and data2N SmartCOM
®
retransmission from peripherals connected to RS 232/485/M–Bus via the IP protocol and GPRS network to a data requesting server or device. Two relay outputs can be controlled and switched and parameters can be measured on two galvanically connected inputs.
Safety Precautions
Do not switch on in the vicinity of medical apparatuses to2N SmartCOM
®
avoid interference. The minimum distance of the antenna and pacemakers should be 0.5m at least.
Do not switch aboard a plane.2N SmartCOM
®
Do not switch near petrol stations, chemical facilities or2N SmartCOM
®
sites where explosives are used.
Any mobile telephone use prohibition based on RF energy radiation applies
to too.2N SmartCOM
®
may disturb the function of TV sets, radio sets and PCs.2N SmartCOM
®
Warning! contains components that can be swallowed by2N SmartCOM
®
small children (SIM card, antenna, etc.).
Never exceed the voltage value specified on the adapter. Check the available
voltage range before connecting to a different power supply.2N SmartCOM
®
When comes to the end of its operational life, dispose of it2N SmartCOM
®
in accordance with applicable regulations.
is equipped with an external antenna connector. The2N SmartCOM
®
antenna has to be located indoors for safety reasons.
®
62N TELEKOMUNIKACE a.s., www.2n.cz
Warning
Do not place the unit near heat sources (such as space heaters, hot air heaters, etc.).
2N SmartCOM® only works reliably under the conditions specified in
this User Manual. Any unauthorised interventions and/or changes in use and operation may result in malfunction or destruction of the product.
®
72N TELEKOMUNIKACE a.s., www.2n.cz

1.2 Upgrade

The manufacturer reserves the right to modify in order to improve its2N SmartCOM
®
qualities.
Manual
Version
Changes in Documentation
1.0.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.0.x
1.1.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.1.x
1.3.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.3.x
1.4.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.4.x
1.5.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.5.x
1.6.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.6.x
1.7.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.7.x
1.8.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.8.x
1.9.0
The User Manual corresponds to FW version 2N SmartCOM
®
.1.9.x
Caution
The manufacturer is committed to upgrading the firmware according to the clients' requirements. Refer to the 2N web sites forwww.2n.cz
the current and GSM module firmware versions and2N SmartCOM
®
User Manual updates. Refer to the Maintenance section for firmware2N SmartCOM
®
upgrade details.
®
82N TELEKOMUNIKACE a.s., www.2n.cz

1.3 Terms and Symbols Used

Symbols Used in Manual
The following symbols and pictograms are used in the manual:
Safety
abide by this information to prevent persons from injury.Always
Warning
abide by this information to prevent damage to the device.Always
Caution
Important information for system functionality.
Tip
Useful information for quick and efficient functionality.
Note
Routines or advice for efficient use of the device.
AT Command AT command stored in the hyper terminal.
Future Functions and Features
The in this document designates the functions and features that aregrey–marked text under preparation or development at present.
®
92N TELEKOMUNIKACE a.s., www.2n.cz

2. Description and Installation

In this section we describe the product and its installation. 2N SmartCOM
®
Here is what you can find in this section:
2.1 Basic Version Description
2.2 PRO Version Description
2.3 Before You Start
2.4 Mounting
®
102N TELEKOMUNIKACE a.s., www.2n.cz
1.
2.
3.
4.
5.

2.1 Basic Version Description

2N SmartCOM® consists of a board carrying a power supply, RS 232 and RS
485/M–Bus interfaces and a GSM module. The GSM module is responsible for a continuous Internet connection via GPRS and two relays for output contact control.
Connectors for optional devices are located in the upper part of the u2N SmartCOM
®
nit. Refer to the figures below for description. The whole system is2N SmartCOM
®
enclosed in a solid aluminium case.
Figure: 2N SmartCOM® Description (Top View)
Relay output terminals Input circuit terminals GSM LED indicator SIM holder GSM antenna SMA connector
®
112N TELEKOMUNIKACE a.s., www.2n.cz
1.
2.
3.
Figure: 2N SmartCOM® Connectors (Bottom View)
RS 232 bus connector RS 485 bus connector Power supply connector
®
122N TELEKOMUNIKACE a.s., www.2n.cz
1.
2.
3.
4.

2.2 PRO Version Description

2N SmartCOM PRO® contains all basic version interfaces plus a terminal for
gel–lead–acid accumulator connection, a real time clock function, Wireless M–Bus and ZigBee (both optional) and Ethernet interface (optional). Refer to the figures below for
description. The whole system is enclosed in a solid aluminium case.2N SmartCOM
®
Figure: 2N SmartCOM® Description (Bottom View)
RS 232 connector Power supply and battery connector: U +, U – – contacts for input supply voltage
in in
Batt+, Batt– – contacts for gel–lead–acid accumulator RS 485/M–Bus/RS232 connector (depends on the device version) Ethernet interface (optional)
®
132N TELEKOMUNIKACE a.s., www.2n.cz
1.
2.
3.
4.
5.
6.
Figure: 2N SmartCOM® Connectors (Top View)
SMA connector for ZigBee antenna (optional) SMA connector for Wireless M–Bus antenna (optional) Input circuit terminal block: RE1, RE2 – relay contacts IN1, IN2 – input circuits (type is determined by jumper settings) GND – ground to be used with input circuits IN1 and IN2 U +, U – – auxiliary contacts with supply voltage, to be used e.g. for connecting
in in
supply voltage to relays (directly connected to U +, U – contacts on 4–pin
in in
power supply connector) Signalling LEDs (ZigBee, WMbus, GSM LED) SIM holder SMA connector for GSM antenna
®
142N TELEKOMUNIKACE a.s., www.2n.cz

2.3 Before You Start

Installation Conditions
Install the GSM antenna with respect to the signal quality in the2N SmartCOM
®
location. Where the signal is poor, use a higher gain antenna (not included in the delivery).
Install off sensitive devices and human bodies to avoid EM2N SmartCOM
®
interference. Refer to the Technical Parameters ( ) for the allowed range of workingS. 6 temperatures.
2N SmartCOM® may not be operated on sites exposed to direct sunshine or in
the vicinity of heat sources.
2N SmartCOM® is designed for indoor use. Never expose it to rain, running
water, condensation moisture, mist, etc.
2N SmartCOM® may not be exposed to aggressive gases, acid vapours,
solvents and similar chemicals.
Caution
Make sure that you are equipped with all necessary technical means, particularly a GPRS supporting SIM card with PIN request disable or a
PIN identical with that set in the configuration. 2N SmartCOM
®
®
152N TELEKOMUNIKACE a.s., www.2n.cz

2.4 Mounting

External Antenna Connection
Screw the enclosed antenna into the SMA antenna connector.
Figure: Antenna Connection
Caution
Tighten the antenna connector ; never use agently with your hand tool!
Note
The antenna should be located in one and the same building with 2N
®
for safety reasons. SmartCOM
SIM Card Installation
Find the SIM card holder near the top.2N SmartCOM
®
®
162N TELEKOMUNIKACE a.s., www.2n.cz
1.
2.
Figure: SIM Card Installation
Insert the SIM card in the holder. Push the card in until it clicks into position.
Caution
Make sure that the GSM provider's SIM card is intended for the GSM network supported by your version and that2N SmartCOM
®
GPRS–based data transmission is activated. Make sure that the SIM card does not request the PIN or that the PIN
is identical with that set in the configuration.2N SmartCOM
®
Remember to set the relevant SIM and provider's services (call forwarding, call barring, preferred networks, SMS centre, etc.) on your
mobile phone ( ) before inserting the SIM card in 2N MeterModem
®
2N SmartCOM.
®
Power Supply
2N SmartCOM® is DC supplied from a 12V/0.5A power adapter. Make sure that the voltage value and polarity comply with the data specified at the powe2N SmartCOM
®
r connector before connecting your to an adapter other than that2N SmartCOM
®
included in the delivery.
is DC supplied in the range of 5–50V. Make sure that the2N SmartCOM PRO
®
voltage value and polarity comply with the data specified at the powe2N SmartCOM
®
r connector before connecting your to an adapter other than that2N SmartCOM
®
included in the delivery. Connect the supply voltage to the 4–pin connector next to the RS232 connector. You can also connect there a gel–lead–acid accumulator as a power supply backup. The supply voltage is also present on the 10–pin input circuit terminal block on the opposite side of the device. These contacts can be used as auxiliary, e.g. for connecting supply voltage to relays.
®
172N TELEKOMUNIKACE a.s., www.2n.cz
Warning
Never connect the power supply until you have connected the
antenna to avoid the GSM module damage. Never connect any incompliant power supply to avoid electric accident or system damage
®
182N TELEKOMUNIKACE a.s., www.2n.cz

3. Function and Use

In this section we provide the basic and extended functions of the pro2N SmartCOM
®
duct. Here is what you can find in this section:
3.1 Putting in Operation
3.2 GSM LED Indicator
3.3 Input and Output Circuits
3.4 Input Calibration
®
192N TELEKOMUNIKACE a.s., www.2n.cz

3.1 Putting in Operation

Operational state is 's main function. In this state, periodic data2N SmartCOM
®
readouts from input circuits are made. responds to queries from the2N SmartCOM
®
superior data concentrator, which can be the server, monitors the2N SmartCOM
®
events on the RS-232 / 485 / M-Bus interfaces and sends the acquired data to the server via GPRS, or Ethernet in the case of the PRO ETH version.
Initialisation
Insert the PIN–disabled data SIM card in and connect the GSM2N SmartCOM
®
antenna and power supply as instructed in ., Mounting. Subs. 2.3 When the power supply is connected, the LED indicator on the upper2N SmartCOM
®
side of the module flashes three times quickly and then starts flashing in longer intervals. Refer to . for LED status details. The GPRS module startsSubs. 3.2 communicating with the provider in about 10 seconds trying to log in and obtain the IP address. The LED starts shining constantly to indicate a successful login.
Tip
2N SmartCOM® is working if the LED indicator is shining, thus
indicating a successful mobile provider connection and IP address assignment.
To identify the IP address assigned by the mobile provider or perform 2N SmartCOM
®
the basic configuration upon power up, get connected via the serial port (RS 232). The port is in the data mode upon power up, retransmitting all data from the input to the GPRS network. Use the +++ sequence preceded and followed by a 1–second delay to
switch into the configuration mode. When your replies OK, start2N SmartCOM
®
configuring using the AT commands as listed below.
Restart the serial port to return to the data mode. To do so, you can either send the ATO command or disconnect from the power supply.2N SmartCOM
®
Tip
can also be configured via Terminal Config. Refer to 2N SmartCOM
®
.S. 6 If you cannot use a PC, make the basic settings using SMS messages. Refer to for details.S. 5
When your has been programmed as required, connect the device to2N SmartCOM
®
the available serial ports RS-232 / 485 / M-Bus. Launch the hyperterminal and get connected to the public IP address via port 10000, which, together2N SmartCOM
®
with the serial port, can be used for configuring. Use port 10001 for retransmitting data to RS-232 and port 10002 for retransmitting data to RS-485 / M-Bus.
®
202N TELEKOMUNIKACE a.s., www.2n.cz
1.
2.
3.
4.
5.

3.2 GSM LED Indicator

Here the variable statuses of the server connection indicating LED are described. This LED can have two functions: signals the terminal connection to GPRS in the
stand-alone mode and to the SC server in the TCP client mode both for 2N
®
and . SmartCOM 2N SmartCOM®PRO
For , however, set the scchled1 parameter to determine2N SmartCOM PRO ETH
®
whether the LED shall signal the GSM or ETH interface state.
Figure: Front Panel with LED Indicator
NO LIGHT – POWER OFF – indicates that the 12V power supply of the GPRS
module is disconnected or works erroneously, or the fuse is defective. THREE QUICK FLASHES – START or RESTART – indicates the system start or restart. This status must occur whenever the power supply is connected. SLOW FLASHING – INITIALISATION – indicates the process of module login to the provider and IP network. VERY QUICK FLASHING – ERROR – indicates an error due to a wrong PIN, missing SIM card, or fewer than three remaining PIN entering attempts.
CONSTANT SHINING – OK – logged in, IP address assigned,2N SmartCOM
®
connection successfully established. A quick flash indicates data transmission in this status.
®
212N TELEKOMUNIKACE a.s., www.2n.cz

3.3 Input and Output Circuits

This subsection describes the input and output circuits of including2N SmartCOM
®
main use, control and location.
Tip
2N SmartCOM® is equipped with reliable terminals for easier and
faster connection.
Input Circuits
2N SmartCOM® is equipped with two inputs, which are mutually galvanically
connected with the GND reference point (have a common GROUND). Remember to keep the parameters specified in the Technical Parameters at the end of this manual.
The input circuits can work in three modes – voltage, current or logical levels – as configured.
Voltage measurement
Voltage can be measured in the range between 0 and 10V DC. Make sure that the 2N
®
jumpers are set as shown in Figure 3.3 before using this mode. Use the SmartCOM
AT commands listed in (ADC) for reading and calibration.Subs. 4.2
Current measurement
Electric current can be measured in the range between 4 and 20 mA. Make sure that the jumpers are set as shown in Figure 3.3 before using this mode. 2N SmartCOM
®
Use the AT commands listed in (ADC) for reading and calibration.Subs. 4.2
Logical level monitoring
You can monitor the logical levels of voltage and current signals. Use other commands that those intended for classic measurements and define the threshold levels. Again, use the AT commands for reading values on input circuits.
Pulse counting on S0 inputs
Make sure that the jumpers are set as shown in the figure below for pulse counting on S0 inputs. The S0 input has thus a power supply of its own and can be connected directly to the switch or relay contacts. The counter is disabled by default and has to be enabled using the AT commands included in .Subs. 4.2
The figures below show the location of jumpers for current/voltage input switching. Release the screws and remove the case cover to get access to the jumpers. See the figure to the right for correct setting.
®
222N TELEKOMUNIKACE a.s., www.2n.cz
Figure: Jumper Setting–Basic Version
Figure: Jumper Setting–PRO version
Output Circuits
2N SmartCOM® is equipped with two relay outputs for turning on/off electrical
appliances (by an additional power switch, depending on their power input), or signalling, control and so on. Remember to keep the parameters specified in the Technical parameters at the end of this manual.
You can control the relay outputs with the AT commands from the CMD mode of the RS 232 interface, via a remote GPRS connection to the SIM card IP address, or using an SMS message. Refer to for AT command details and for SMSSubs. 4.2 S. 5 configuration details.
®
232N TELEKOMUNIKACE a.s., www.2n.cz
Caution
Any manual setting is valid until the next change orAttention!
device power off. does not keep in mind the relay2N SmartCOM
®
settings and restores the default status upon power up. Set the parameter determining the relay position upon power up to 2
to make your remember the last contact position2N SmartCOM
®
before power off. Refer to the configuration subsections for more details.
RS-232 and RS-485 / M–Bus Interfaces
Find the interface connectors on the bottom side of . Refer to 2N SmartCOM
®
Subs.
. A 9-pin D-sub connector is used for RS-232 and a 6-pin RJ12 connector is used2.1
for RS-485 or M-Bus in the basic version. Follow the wiring2N SmartCOM
®
instructions on the label. and use a2N SmartCOM®PRO 2N SmartCOM PRO ETH
®
3-pin WAGO terminal for bus connection located on the bottom panel next to the power supply terminals. Follow the wiring instructions on the label.
IP Access
To access via the IP protocol, use a Telnet supporting terminal and2N SmartCOM
®
get connected to the public IP address. must be in2N SmartCOM
®
2N SmartCOM
®
mode 3 , STANDALONE, to provide access to three ports, each of which serves one interface.
Tip
Port 10000 – helps you configure, control the output relays and
measure quantities on the input circuits. Port 10001 – works as a data pipe to port RS 232 retransmitting all RS 232 events to GPRS. Port 10002 – works as a data pipe to port RS 485 / M–Bus retransmitting all RS 485 events to GPRS.
Gel–Lead–Acid Accumulator Charger
This function is available in the version only, which contains an2N SmartCOM PRO
®
intelligent charger for an external gel–lead–acid accumulator. Charging is controlled automatically and terminated when the accumulator has been completely charged. In the case of power failure, the system is fed continuously by the accumulator and, upon power recovery, the accumulator is charged automatically. A 6V or 12V accumulator can be used and charged on condition that the power voltage is 1V higher at least than the maximum voltage of the accumulator.
®
242N TELEKOMUNIKACE a.s., www.2n.cz
Real Time Clock
This function is available in the version only. The real time clock2N SmartCOM PRO
®
is backed up by a super capacitor, which keeps it running for 2 days in the event of switch–off or power failure. The clock is programmed via the configuration AT interface
or from the Server automatically.2N SmartCOM
®
Wireless M–Bus Interface
This function is available in the version only, which is equipped2N SmartCOM PRO
®
with an optional Wireless M-Bus interface. The WM-Bus interface parameters depend on the module used (radio frequency, e.g.). You can define up to 64 meters from which the device can collect readings. Having received a WM-Bus message from a meter
defined in the meter table, saves the message into a circular2N SmartCOM PRO
®
buffer in the internal memory. The saved data can be retrieved and deleted starting from the oldest record. When the memory fills up, the oldest data are deleted automatically to make space to new records. You can define the minimum reading interval for each meter. Any reading received from a meter before the end of this interval will not be stored.
The WM-Bus module can work and support encrypted messages in four modes: T1, S1, C1 and T1+C. In the basic configuration, the terminal does not decrypt messages and saves them as received. If you enter the correct encryption key and enable decryption, the received message will be decrypted and saved as a decrypted message. The encryption keys are not stored in the terminal memory for safety reasons, but written directly into the module. Therefore, if encryption fails, make sure that the device is transmitting properly, check the device settings in the terminal and re-enter the encryption key.
®
252N TELEKOMUNIKACE a.s., www.2n.cz
ZigBee Interface
This function is available in the and 2N SmartCOM PRO
®
2N SmartCOM PRO ETH
®
versions only, which are equipped with an optional ZigBee communication module. The ZigBee interface parameters depend on the module used (radio frequency, e.g.). You can define up to 16 devices for mutual communication. The IEEE 802.15.4 – ZigBee communication technology is a member of the wireless PAN group (Personal
). Another, very popular PAN member, IEEE 802.15.1 – Bluetooth, isArea Networks widely used in consumer electronics, but is not suitable for all industrial applications. This is why a new wireless communication standard, ZigBee, has been developed for
At present, over sixty firms including world leaders inindustrial automation. automation are involved in ZigBee development and improvement. ZigBee has been designed as a simple and flexible technology for extensive wireless networks where no large data volumes are transmitted. Reliability, simple and undemanding implementation, low power requirements and, last but not least, a good price make ZigBee a perfect solution. Like Bluetooth, ZigBee is intended for connection of low-power devices in PANs over distances of up to 75 metres. Being equipped with multi-drop ad-hoc routing, ZigBee also provides communication over longer distances without requiring direct visibility of the devices connected. It is widely used in industrial applications and sensor networks as it needs no special licence (has a general licence). Its working bands are approximately 868 MHz, 902–928 MHz and 2.4 GHz and
20, 40, 250 .transmisition rates amount to kbps
®
262N TELEKOMUNIKACE a.s., www.2n.cz

3.4 Input Calibration

A 10-bit A/D converter is connected to the IN1 and IN2 input terminals, which converts the measured value to a number ranging between 0 and 1023. Practically, the 0 - 1020 range is used; the remaining three steps are used for overvoltage detection.
The purpose of calibration is to compensate the inaccuracy of components and external factors and to ensure that the 960 value of the A/D converter matches exactly 10V in each input. The value usually oscillates slightly around this point. Let us give an example: suppose you place two terminals next to each other under identical external conditions. One terminal will measure 966 and the other 957 for 10V. Calibrate the input to eliminate such inconsistency.
Note
Keep in mind that an uncalibrated input is not non-functional. It is able to measure and read values less precisely, but sufficiently for rough voltage or current detection.
For calibration, use the terminals and AT commands described in , or theSubs. 4.2 Terminal Config tool - refer to - for setting and application details. The followingS. 6 figure shows the calibration diagram and basic principle. The meaning of the curves are explained below.
Figure: Calibration Diagram
The green lines indicate that no calibration has been made yet. The A/D converter
®
272N TELEKOMUNIKACE a.s., www.2n.cz
works in the whole range and deviations may occur from the actual value measured on the input. If you, in this situation, set Threshold low to 0V and Threshold high to 10V on the input, the terminal will be calibrated for 10V precisely. For 0 on the input, the AT command will return 0. For 10, we obtain 100. Thus, the calibrated input can be considered 0 - 100% of the calibrated range.
The red lines mean that the input has been calibrated to the interval of 3 to 8V, i.e. to the range of 5V. This range now represents new measurement limits. If you apply 3V or less on the input, you are in the calibrated min area and the AT command will return 0. If you apply 8V or more, you are in the calibrated max area and the AT command will return 100. This means that the measured range width has narrowed by 50% and 0 - 100% is now mapped to the input range of 3 - 8V.
The blue line is an example of measuring in the calibrated range of 0 to 10V. Apply– precisely one half of the calibrated voltage, i.e. 5V, to the input. The AT command will return 50, i.e. one half of the 0 - 100 range again. In this case, 5V is the centre of the calibrated range. If, however, the range was shifted, the value would be shifted too as shown below.
The yellow line shows the case that 7V is applied to the input. In case you measure 7V in the calibrated 10V range, the AT command will return 70 as 70 represents 70% of the calibrated range. But if the range is just 3 to 8V as in the red case, 7V will represent 80% of the calibrated range of 5V and the AT command will return 80.
If you use the calibrated input for reading logic values, keep in mind that the calibrated area is considered unstable. Values lower than the set minimum
No value iswill be 0 and those exceeding the maximum will be 1. guaranteed in an unstable area and a spurious state change may occur any time in the interval. Practically, the decisive level is near the middle of the set interval.
®
282N TELEKOMUNIKACE a.s., www.2n.cz

4. Configuration by Terminal

In this section we describe the configuration using AT commands2N SmartCOM
®
entered into the command line. Here is what you can find in this section:
4.1 Configuration
4.2 List of Supported AT Commands
®
292N TELEKOMUNIKACE a.s., www.2n.cz

4.1 Configuration

The basic configuration and firmware download take place during the2N SmartCOM
®
manufacturing process. In general, no additional configuration is necessary except for GPRS connection to the Internet on the GSM module and the port baud rates, which may be different depending on the providers and types of peripherals. You can
configure in one of the following two ways.2N SmartCOM
®
Via the RS-232 serial interface; or Via the IP interface.
Configuration via RS 232
The RS-232 port is always in the data mode upon power up, which means that it retransmits all captured events to GPRS port 10001. Therefore, to configure 2N
®
via the serial port, switch the port into the command mode first and then SmartCOM get connected to it using your PC serial port. The baud rate is 115,200 bps by default. Now enter the following sequence of characters, preceded and followed by a 1–second delay, into the terminal:
+++
When answers OK, you can start configuring the device using the AT2N SmartCOM
®
commands listed in .Subs. 4.2
Restart the RS-232 port when you have finished configuring to return into the data mode. Send the following command:
at^scport1="restart"
Configuration via IP
If you know the public IP address, you can configure the device2N SmartCOM
®
remotely too using the IP protocol. If not, connect to using RS-232 as2N SmartCOM
®
described above and send one of the following commands (for GPRS/Ethernet):
at^sccfg="local_ip" at^sceth="local_ip"
2N SmartCOM® will send you the IP address as negotiated with the provider or
assigned by the DHCP server in the Ethernet case. If a fixed public IP address is activated on the SIM card, the SIM will always use this IP address. If a dynamic public IP address is used, check the IP address whenever your restart the device.
®
302N TELEKOMUNIKACE a.s., www.2n.cz
Loading...
+ 119 hidden pages