DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

samples/sensors/plugins/canbus/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_canbus_plugin_sample CAN Plugin Sample
4 @tableofcontents
5 
6 @section dwx_can_plugin_sample_description Description
7 
8 The CAN Plugin sample implements a sensor driver for a CAN
9 using the comprehensive sensor plugin framework. This uses a DriveWorks
10 @ref canbus_mainsection sensor to provide raw data.
11 
12 It also provides sources for a refcounted-`BufferPool` data structure
13 that may be used as reference for other implementations.
14 
15 @section dwx_can_plugin_sample_run Running the sample
16 
17 This sample compiles as a shared library (.so) that can be used with the
18 DriveWorks Sensor Abstraction Layer (SAL).
19 
20 This plugin can be used to test and verify functionality:
21 
22  ./sample_canbus_logger --driver=can.custom
23  --params=decoder-path=[path_to_decoder.so]
24 
25 For playing back CAN data recorded with a custom plugin, the following
26 command line can be used:
27 
28  ./sample_canbus_logger --driver=can.virtual
29  --params=file=[path_to_recording.bin],
30  decoder-path=[path_to_decoder.so]
31 
32 @note The precompiled decoder library is called `libsample_can_plugin.so`.
33 
34 @section dwx_can_plugin_sample_more Additional Information
35 
36 For more information, please refer to @ref sensorplugins_canbussensor.