29 |
P a g e
8.4
Write Command
The Write command accepts the repetition information, the starting register address to receive the data and the
data values. Multiple data elements may be written from a single command and the data values will be interpreted
according to the formatting suffixes or minimum size required to represent the value. Floating point values are
indicated by including a decimal point in the value. Strings are represented by using double quotes (“…”). Commas
or spaces may be used to separate the individual values.
W(rite) <repetition options> register [<number> <format>> …]
8.5
View Command
The View command allows viewing common Smart Sensor attributes. The View command accepts an option that
specifies what is to be displayed. If no option is provided the command assumes the
V
iew
I
nformation option.
V(iew) <repetition options> <I(nformation) | (D(ata) | L(og) | N(ext)>
Information Group
Attributes (registers)
Usage
I(nformation)
Device Name (0xe0),
Device ID (0x00)
Number of Sensors (0x00)
Number of Outputs (0x00)
Provides summary of the device status
and health used to take the
measurements.
D(ata)
Current Time,
Sensor Readings,
Sensor Units
Provides summary of current time,
reading values and units of measure.
L(og)
Extract Start, Extract End,
Number Records
Provides information on information
contained in Log file
N(ext)
Extract Time
Extract Data
Extracts and displays the next log file
record
View Information
Device: Device Name, ID: 00000001
Type: BTH-SP, Version: 1.25.4.0
Manufactured: 2017/08/25, Operating Hours: 11-13:33:48
Calibrated: 2017/08/25, Calibration Hours: 11-13:33:48
Oper Volt: 3.3 Vdc,Oper Temp: 21 oC, Fault Code: 0
Sensors: 3, Outputs: 2
View L
Start Time: 11-13:06:41, End Time: 11-13:33:59, Records Available: 820
V Data
11-13:34:03 21.0 .C 28.0 %RH 1017.0 mbar
V N
11-13:34:01 21.0 .C 28.0 %RH 1017.0 mbar
W 0x80 123.4
[Dev: 0x68 Reg: 0x80 Cnt: 0x04]
R 0x80 1f
[Dev: 0x68 Reg: 0x80 Cnt: 0x04 -> 123.4 ]
W 0xe0 "Device Name"
[Dev: 0x68 Reg: 0xe0 Cnt: 0x0c]
R 0xe0 20s
[Dev: 0x68 Reg: 0xe0 Cnt: 0x14 -> "Device Name" ]