Skip to content

adamczykpiotr/linux-canbus-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

linux-canbus-cpp

CodeFactor

Small & easy to use wrapper library for CAN & CAN-FD

Examples:

Building:

g++ ./example/example-can.cpp -o 

Testing:

Setup virtual CAN network:

## Setup VCAN
ip link add dev vcan0 type vcan   # Create virtual can interface
ip link set dev vcan0 up          # Start newly created interface

## Setup VCAN FD
ip link add dev vcan1 type vcan   # Create virtual can interface
ip link set vcan1 mtu 72          # Set maximum transmission unit to 72 bytes (fd frame size)
ip link set dev vcan1 up          # Start newly created interface

TODOs:

  • Receiving frames
    • Blocking mode
    • Non-blocking mode
    • Socket-based filtering
  • Sending frames
  • CAN-FD Support

About

Small & easy to use wrapper library for CAN & CAN-FD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages