User Guide

54A0049_7.0_EN / Leddar Pixell User Guide 121 | 127
Example 3: Get Constant Values From a Connected Sensor
In the following example, we want to know LT_COMM_ID_FILTERED_SCALE and LT_COMM_ID_DISTANCE_SCALE constant values to interpret
incoming detection data. Requests sent by host and sensor answers will be described below.
The host sends a request to the connected sensor via the configuration server to get a list of constant values.
Fig. 82: Host sends a request to the configuration server
Table 55: Get elements list
Item
Value
Request header
Server protocol version
Configuration server protocol Version 2 = 0x0002
Request code
CFG_REQUEST_GET = 0x0002
Request size
20 bytes = 0x00000014
Element header
Element code
ELEM_LIST = 0x0070
Element count
2 elements = 0x0002
Element size
2 bytes per element = 0x00000002
Element data
List of elements
0x1004 (LT_COMM_ID_FILTERED_SCALE)
0x1003 (LT_COMM_ID_DISTANCE_SCALE)
Host
Configuration
request packet
Sensor
Configuration
server
Data server
Identification
server