User Manual

Table Of Contents
LeddarVu User Guide Page 126 of 129
Appendix C Example of a LeddarVu CAN Bus
Detection Request
A request is sent to the sensor, this request is an 8 bytes message that is addressed to the
message ID 0x740, the sensor then replies with multiple 8 bytes message that is addressed to the
message ID 0x750 +.
There are two possible modes:
1. For example, if we want to obtain a detection frame (polling), in the mode multiple message,
we send this request: 0x740: 02, 01, 00, 00, 00, 00, 00, 00
The sensor will then answer with the following sequence:
0x750: 02 01 00 00 00 00 00 00: echo of the successful request
0x751: 08 64 00 00 41 8D 26 00: number of detections (8), led power (100%), timestamp
(2526529msec)
0x752: 77 05 8F 00 01 00 07 00: detection of the channel #7, distance (0x0577 = 1399cm),
amplitude (0x008F = 143/64 = 2.2344 counts), flag info (0x0001 = valid)
0x753: 0E 05 D3 00 01 00 06 00: detection of the channel #6
0x754: 05 05 EC 00 01 00 05 00: detection of the channel #5
0x755: 03 05 F9 00 01 00 04 00: detection of the channel #4
0x756: 0D 05 F2 00 01 00 03 00: detection of the channel #3
0x757: 1B 05 ED 00 01 00 02 00: detection of the channel #2
0x758: 2D 05 B9 00 01 00 01 00: detection of the channel #1
0x759: 97 05 9F 00 01 00 00 00: detection of the channel #0
2. If we want the sensor to send data streaming in the mode simple message, we initiate the
communication with the request:
0x740: 03, 00, 00, 00, 00, 00, 00, 00
The sensor will then answer with the following sequence:
0x750: 03 00 00 00 00 00 00 00: echo of the successful request
0x751: 08 64 00 00 41 8D 26 00: detection frame N: number of detections (8), led power
(100%), timestamp (2526529msec)
0x752: 77 05 8F 00 01 00 07 00: detection of the channel #7, distance (0x0577 = 1399cm),
amplitude (0x008F = 143/64 = 2.2344 counts), flag info (0x0001 = valid)
0x752: 0E 05 D3 00 01 00 06 00: detection of the channel #6
0x752: 05 05 EC 00 01 00 05 00: detection of the channel #5
0x752: 03 05 F9 00 01 00 04 00: detection of the channel #4
0x752: 0D 05 F2 00 01 00 03 00: detection of the channel #3
0x752: 1B 05 ED 00 01 00 02 00: detection of the channel #2
0x752: 2D 05 B9 00 01 00 01 00: detection of the channel #1