5a0d537fac | ||
---|---|---|
.. | ||
Readme.md |
Readme.md
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