1
0
Fork 0
docs/articles/misc/socket_can_linux
Luca Gambarotto 5a0d537fac Updated socket can instructions 2024-06-15 10:09:23 +02:00
..
Readme.md Updated socket can instructions 2024-06-15 10:09:23 +02:00

Readme.md

50

MISC - Socket CAN Linux

Connect interface

Physical CAN:

sudo ip link set can0 up type can bitrate 500000

Virtual CAN:

sudo ip link set vcan0 up type vcan

View and record dump

View:

candump can0

Record:

candump -l can0

Replay dump

Assume to replay a file recored on can0 on vcan0:

canplayer vcan0=can0 -I candump-2024-06-13_150626.log

To replay an infinite number of times:

canplayer vcan0=can0 -I candump-2024-06-13_150626.log -l -i

References