DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/dataspeedBridge/README.md
Go to the documentation of this file.
1 # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_dataspeedBridge_sample Dataspeed Bridge Sample
4 @tableofcontents
5 
6 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
7 
8 @section dwx_dataspeedBridge_description Description
9 
10 Dataspeed Bridge sample shows how to convert CAN signals coming to/from a Dataspeed
11 drive-by-wire system to a generic NVIDIA-defined CAN bus format, as defined in the NVIDIA-
12 provided Database CAN (DBC) file.
13 
14 The sample expects that the Dataspeed CAN bus messages are flowing over the actual CAN bus
15 or a virtual CAN network (say vcan0).
16 
17 The sample intercepts the CAN bus messages, converts
18 them to the NVIDIA `generic` drive-by-wire format, and puts the converted messages back on the CAN bus. If the vehicleio sample
19 is running with `type=generic`, it picks up and displays vehicle parameters
20 gleaned from these generic messages, such as the status for brake, throttle, and steering.
21 For information on vehicleio, see @ref dwx_dataspeedBridge_more (end of this section).
22 
23 The sample can also send CAN bus messages with
24 generic commands that influence vehicle controls such as throttle, brake, and steering.
25 It does so by converting the messages to Dataspeed commands and then executing them.
26 
27 @section dwx_dataspeedBridge_running Running the Sample
28 
29 The command line for the sample is:
30 
31  ./sample_dataspeedBridge --dbc=[path/to/dbc/file]
32  --driver=[can.socket]
33  --params=[device=canN]
34  --rig=[path/to/rig/file]
35 
36 where
37 
38  --dbc=[path/to/dbc/file]
39  DBC file with which to parse CAN data.
40  Default value: path/to/data/samples/sensors/can/AutonomousVehicleCANSignals.dbc
41 
42  --driver=[can.socket]
43  Specifies the can driver.
44  Default value: can.socket
45 
46  --params=[device=canN]
47  Specifies the actual can device.
48  Default value: device=can0
49 
50  --rig=[path/to/rig/file]
51  Path to the rig configuration file.
52  Default value: path/to/data/samples/vehicleio/rig.json
53 
54 If you do not have an access to the actual Dataspeed-equipped vehicle, please see
55 @ref dwx_vehicleio_sample for information on how to replay pre-recorded
56 Dataspeed messages on either virtual CAN or physical CAN using Linux.
57 
58 @if QNX
59 @section dwx_dataspeedBridge_qnx_notes QNX-Specific Notes
60 
61 On QNX, outgoing CAN messages cannot be seen locally, thus it is not possible to
62 run both Dataspeed Bridge Sample and VehicleIO Sample on the same SoC, such as
63 Xavier 1 or 2.
64 You can work-around this limitation by using two separate SoCs connected to
65 the same CAN Bus, as shown below.
66 
67 ```
68 +--+---(Physical Dataspeed CAN Bus: Vehicle messages or replayed CAN messages from Linux host system)
69 | |
70 | +
71 | (QNX SoC 1: Dataspeed Bridge Sample)
72 +
73 (QNX SoC 2: VehicleIO Sample using Generic VehicleIO back-end)
74 ```
75 @endif
76 
77 @section dwx_dataspeedBridge_more Additional information
78 
79 For more information, see:
80 - @ref canbus_mainsection
81 - @ref vehicleio_mainsection