Skip to content

driveblocks/can_dbc_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CAN DBC parser

This CAN DBC parser reads and interprets CAN database (DBC) files, which contain information on how to decode raw CAN bus data into understandable signals and messages.

This repository is a fork of the CAN DBC parser used in the Indy Autonomous Challenge (IAC). The original repository contains an integration of this parser into a ros2 node which allows to publish received CAN messages as ros2 topics.

How to set up the CAN interface

All necessary steps are described in detail here. The instructions below will guide you through all the necessary steps to bring up a CAN interface.

For quick setup, you can run one of the scripts provided in the scripts folder, e.g.

bash scripts/launch_can_interface.sh 4 250000

This will bring up 4 can interfaces with a bitrate of 250000 each (currently, only identical bitrates are supported).

Step-by-step instructions:

  1. Print all available ip interfaces and see if some CAN interfaces are available. A CAN interface, for example can0, should show up.

    ip link show
  2. Before enabling the SocketCAN interface, we need to configure it. Run the command below after adjusting the bitrate to your interface.

    ip link set can0 type can bitrate 250000
  3. Enabling a specific SocketCAN interface is also called “bringing the interface up”:

    ip link set up can0
  4. Test the can interface with the command below. If the CAN socket is not available, this message will throw an error.

    ip addr ls dev can0
  5. Finally, received CAN messages can be tested with can-utils:

    sudo apt install can-utils
    candump can0

Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors