- -
35
5.
USB
INTERFACE
HD21AB
and
HD21AB17
are fitted with an USB 2.0 interface.
Optionally, you can receive on request the serial connection cable
CP23
with mini-USB connector
on instrument’s side and USB 2.0 connector on computer’s side.
The USB connection requires the previous installation of the driver saved on the CD-ROM of the
instrument software.
Install the driver before connecting the USB cable to the PC
(please see the
details on chapter
6.1 Connection to the USB 2.0 port
).
Standard parameters of the instrument serial transmission are:
•
Baud rate 460800 baud
•
Parity
None
•
N. bit
8
•
Stop bit
1
•
Protocol
Xon/Xoff
The USB 2.0 connection does not require the setting of parameters.
The instruments are provided with a complete set of commands and data queries to be sent via the
PC.
All the commands transferred to the instrument must have the following structure:
XXCR
where:
XX
is the command code and
CR
is the Carriage Return (ASCII 0D)
The XX command characters are exclusively upper case characters. Once a correct command is
entered, the instrument responds with “&”; when any wrong combination of characters is entered,
the instrument responds with “?”.
The instrument response strings end with the sending of the CR command (Carriage Return) and LF
(Line Feed).
Before sending commands to the instrument via the serial port, locking the keyboard to avoid
functioning conflicts is recommended: Use the P0 command. When complete, restore the keyboard
with the P1 command.
Command
Response
Description
P0
&
Ping (locks the instrument keyboard for 70 seconds)
P1
&
Unlocks the instrument keyboard
S0
G0
Model HD21AB17
Instrument model
G1
M=Indoor Air Quality
Model description
G2
SN=12345678
Instrument serial number
G3
Firm.Ver.=01.00
Firmware version
G4
Firm.Date=2010/02/10
Firmware date
G5
cal 2010/02/10 10:30:00
Calibration date and time
C1
RH-T probe type, serial number, calibration date
C2
CO-CO
2
probe type, serial number, calibration date
GC
Print instrument’s heading
GB
ID=0000000000000000
User code (set with T2xxxxxxxxxxxxxxxx)
HA
Print the current data measurement
LR
Print the instrument memory map
KInn
Print the information of Loggging nn
KRaaaa
Print the recorded data in page aaaa
KE
&
Stop the data download
LE
&
Erase stored data