sudo ifconfig can0 txqueuelen 10000
sudo ip link set can0 up type can bitrate 1000000
candump -L can0 > cityscope_normal.log
- Initial a virtual CAN interface.
sudo modprobe vcan # Create a vcan network interface with a specific name(vcan0) sudo ip link add dev vcan0 type vcan sudo ip link set vcan0 up
- Play the recorded log.
canplayer vcan0=can0 -I ./test_data/cityscope_normal.log