CAN bus under Linux (draft)
Bensuperpc February 01, 2025 [Software, Hardware] #Features #CAN #busCAN bus
Install tools for CAN bus
On debian/ubuntu based systems:
On arch based systems (AUR package):
From source: can-utils
Setup virtual interfaces
Create a virtual CAN interface:
Enable standard CAN interface:
Enable CAN FD interface:
Setup hardware interfaces
Enable hardware CAN interface:
Set standard CAN interface:
Set CAN FD interface:
Remove hardware interfaces
To remove the hardware CAN interface:
Receiving data
To read received data from a CAN interface:
Sending data
To send data to a CAN interface:
For CAN FD frames:
Or with extended data:
For CAN FD and BRS (Baud Rate Switch):