
HD2016
- 12 -
V1.4
4
ASCII PROPRIETARY PROTOCOL
The ASCII proprietary protocol is mainly used to set the operating parameters of the instru-
ment by sending serial commands from a PC. The protocol can be used both with RS485 and
SDI-12 physical interface.
The rain gauge should be connected to the PC by using a converter from RS485 or SDI-12
(depending on the rain gauge output used) to USB or RS232C (depending on the PC port
used). The use of the
RS48
cable incorporating an RS485/USB converter is recommended. If a
USB converter is used, it is necessary to install the relevant USB drivers in the PC.
N
OTES ON THE INSTALLATION OF UNSIGNED USB DRIVER
:
before installing unsigned USB driver into operating sys-
tems starting from Windows 7, it is necessary to restart the PC by disabling the driver signing request. If the
operating system is 64-bit, even after installation the request of driver signing have to be disabled each time
the PC is restarted.
The ASCII proprietary protocol can be activated both at instrument power-on and while the in-
strument is operating with the Modbus-RTU or SDI-12 protocols.
In order to activate the ASCII proprietary protocol at the rain gauge power-on, the DIP switch
S1 on the electronic board must be set to OFF (toward the ASCII indication, see the figure
3.1.2 on page 7) before turning the instrument on. If activated at power-on, the protocol op-
erates with the following communication parameters:
•
Baud Rate = 57600
•
Data bits = 8
•
Parity = None (N)
•
Stop bits = 1
•
Flow control = None
If the rain gauge is powered with the DIP switch S1 set to ON (toward the MODBUS indication
on the electronic board), the Modbus-RTU or SDI-12 protocol, depending on the physical inter-
face used, is activated by default. In this case, the ASCII proprietary protocol can be activated
without turning the rain gauge off and without changing the setting of the DIP switch S1 by the
following procedure:
1.
In the PC, start a serial communication program (many free programs suitable for the pur-
pose can be found on the Internet), then set the COM port number to which the instrument is
connecting and the communication parameters with which the instrument is operating
(19200 8E1 by default for RS485 Modbus-RTU, 1200 7E1 for SDI-12).
2.
Send the command
|||
(sequence of three 124 decimal code ASCII characters followed by
the Enter key). The instrument replies with
@
.
3.
Within 10 seconds from the reply of the instrument, send the command
@
(64 decimal
code ASCII character followed by the Enter key). The instrument replies with
address
: &
,
where nnn is the address of the instrument (if the instrument does not receive the com-
mand @ within 10 seconds, the ASCII proprietary protocol is not activated; in this case, re-
peat from point 2). The ASCII proprietary protocol is now active keeping the communication
parameters of the previous protocol (therefore, it is not necessary to change the settings of
the serial communication program).
To disable the ASCII proprietary protocol after use and return to the previous protocol, send
the command
#
(or power cycle the instrument).
After activation of the ASCII proprietary protocol, the serial commands given below can be
sent.
To change the rain gauge parameters, the serial command
CAL USER ON
must be sent first
(the instrument replies with
address
: USER ENABLED!). In order to cancel the command
CAL USER ON, send the command
CAL END
(the instrument replies with
address
: LOCKED).
The command CAL USER ON is automatically disabled after 5 minutes of inactivity. If the set-
tings should be only read, the command CAL USER ON is not required.
Содержание HD2016
Страница 4: ...HD2016 4 V1 4 2 DESCRIPTION ...
Страница 30: ...HD2016 30 V1 4 NOTES ...
Страница 31: ......