CHAPTER 2. USBOARD-USS5
2.5. COMMAND SET
Byte 44
Cross echo configuration, 2 bits per group denoting the sending sensor (0 to 3). Default is 0, i.e. the first
sensor in the group.
Bytes 45-46
Fire interval in increments of 10 ms, 4 bits per group (0 for 10 ms, 1 for 20 ms and so on). Default is 20
ms.
Byte 47
Low-pass filter gain (see below) for distance measurements, in 0.0078125 increments. Default is 128, i.e.
gain 1, filtering disabled.
Byte 48
Reserved, set to arbitrary values when sending.
Byte 49
Hardware version, read only.
20
USBoard-USS5 V1.0.0
21
USBoard-USS5 V1.0.1
200
USBoard-USS5-IP V1.0.0
201
USBoard-USS5-IP V1.0.1
Bytes 50-53
Serial number, read only.
(In USBoard V1, only bytes 51-53 are used.)
The low pass filter feature can be used smoothen the measurements and to prevent single, potentially faulty, readings
from immediately switching the relays. Each new measurement of a sensor is added to the output value according to
the filter’s weight.
A setting of 0.3 means that the output is calculated from 70% of the previous output value and 30% of the new
measurement.
A setting of 1.0 means that each new measurement is directly used as output value while the old value is discarded, in
effect deactivating the filter.
2.5 Command Set
2.5.1 Command IDs
The following table shows the available commands of the USBoard-USS5.
Command
Value
Description
CMD_CONNECT
0
Check connection
CMD_SET_CHANNEL_ACTIVE
1
Activate channel for sending / receiving
CMD_GET_DATA_1TO8
2
Request data of sensors 1 to 8
CMD_GET_DATA_9TO16
3
Request data of sensors 9 to 16
CMD_WRITE_PARASET
4
Upload parameter set to board (volatile)
CMD_WRITE_PARASET_TO_EEPROM
5
Write parameter set to board’s EEPROM (non-volatile)
CMD_READ_PARASET
6
Read current parameter set
CMD_GET_ANALOGIN
7
Read values of analogue inputs
–
8-12
Reserved
CMD_GET_DATA
13
Request data of all sensors
2.5.2 CAN Communication
The default base address is
0x400
. This base address can be changed in the parameter set.
17