A.
Software control
Protocol
The device can be controlled either over USB or over Ethernet. The Statera USB in-
terface makes use of a HID device which means that no drivers need to be installed.
The communication protocol is as follows: packets of 8 bytes are used to communicate
with the device. The eight bytes are arranged as follows:
f
0
f
1
f
2
= or ?
x
0
x
1
x
2
x
3
The first three bytes consist of three ASCII command characters that select feature (f0-
f2) to be controlled. Note that these are case sensitive. Thereafter a (? or =) ASCII
character is used to respectively get or set the value of the selected control. The last
four bytes contain the value that will be set or get. The last four bytes (x0-x3) need
to be casted to an Little Endian Float (4 bytes DCBA) to either set or retrieve the
value.
As an example the following command sets the device into remote mode which
has to
be done before any other commands are accepted
: Rem=1 where the value 1
has to be casted to a four byte little endian float.
ASCII
R
e
m
=
\
0
\
0
e
?
Hex
0x52
0x65
0x6D
0x3D
0x00
0x00
0x80
0x3F
When connection to the device over ethernet the following command
has to be send
prior to setting the device into remote mode
otherwise the TCP connection will
be automatically shut down. Rem=SN where SN is the 7 digit device serial number.
For example when the serial number
X
= 7021134 the message is as follows:
ASCII
R
e
m
=
œ
D
¨
O
J
Hex
0x52
0x65
0x6D
0x3D
0x9C
0x44
0xD6
0x4A
After every message the device returns a similar eight byte message with the response.
The first two bytes in the response show the status. This can either be ”Ok” (in case
everything went alright)
ASCII
O
k
\
0
\
0
value (4 byte )
Hex
0x4F
0x6B
0x00
0x00
data
or ”Er” (in the case of an error).
Statera 15/100 version 1.1
15
Содержание Statera 15/100
Страница 2: ......