Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 1.07 KB

File metadata and controls

36 lines (20 loc) · 1.07 KB

C++ application to interface with virtual CAN network

CAN C++ library obtained from socketcan-cpp.

Setup the virtual CAN interface.

Followed the tutorial bring vcan interface up using Ubuntu 18.04.

Upon successful installation of virtual CAN network by running

ifconfig

The output should show the vcan interface up as seen here:

Once the interface is up, it is time to compile the C++ app. To do so follow the commands:

mkdir build
cd build
cmake ..
make

Once the build is complete, it can be run for example the read_write.cpp app:

./read_write

Leading to the following output:

More socket CAN reference pointers: How_to_configure_and_use_CAN_bus