User Guide

100 | 127 © 2021 LeddarTech Inc.
Answer Header Structure
Some servers specify that the sensor must respond to requests with an answer. In these cases, the answer
minimally consists of an answer header and may be followed by data (specific to the request).
Table 33: Answer header definition
Item
Size (bytes)
Description
Protocol version
2
Protocol version specific to each server (identification,
configuration, data)
Answer code
2
Answer code used to provide feedback on the request
execution
Answer size
4
Size of the complete request: header plus data
Request code
2
Code of the request the answer applies to
Reserved bytes
6
Reserved for alignment. Must be set at 0.
Total
16
N/A
Table 34: Answer codes
Error Code Name
Value
Description
OK
0x0000
Request properly handled
ERROR
0x0001
General error
FLASH_ERROR
0x0002
Error related to flash memory read or write
HARDWARE_ERROR
0x0003
Error caused by abnormal hardware operation
INVALID_DATA
0x0004
The request contained invalid data.
INVALID_REQUEST
0x0005
The request is invalid (not defined/supported).
PROTOCOL_ERROR
0x0006
Error in the protocol (invalid header or packet structure)
UNSUPPORTED_PROTOCOL
0x0007
Unsupported protocol version (as specified in the
request header)
LIMITED_MODE
0x0008
The device is in a limited mode of operation and
cannot service this request.
OUTPUT_SIZE_TOO_LONG
0x0009
The constructed response is larger than the maximum
supported packet size.
MISSING_ELEMENT
0x000A
The request is missing a required element.
Device-specific
0x0100
Application-specific codes