1 # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
3 @page dwx_dataspeedBridge_sample Dataspeed Bridge Sample
6 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
8 @section dwx_dataspeedBridge_description Description
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.
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).
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).
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.
27 @section dwx_dataspeedBridge_running Running the Sample
29 The command line for the sample is:
31 ./sample_dataspeedBridge --dbc=[path/to/dbc/file]
33 --params=[device=canN]
34 --rig=[path/to/rig/file]
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
43 Specifies the can driver.
44 Default value: can.socket
46 --params=[device=canN]
47 Specifies the actual can device.
48 Default value: device=can0
50 --rig=[path/to/rig/file]
51 Path to the rig configuration file.
52 Default value: path/to/data/samples/vehicleio/rig.json
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.
59 @section dwx_dataspeedBridge_qnx_notes QNX-Specific Notes
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
64 You can work-around this limitation by using two separate SoCs connected to
65 the same CAN Bus, as shown below.
68 +--+---(Physical Dataspeed CAN Bus: Vehicle messages or replayed CAN messages from Linux host system)
71 | (QNX SoC 1: Dataspeed Bridge Sample)
73 (QNX SoC 2: VehicleIO Sample using Generic VehicleIO back-end)
77 @section dwx_dataspeedBridge_more Additional information
79 For more information, see:
80 - @ref canbus_mainsection
81 - @ref vehicleio_mainsection