18 lines
525 B
Plaintext
18 lines
525 B
Plaintext
# the CANable V2.0 does not seem to obej the sjw argument.
|
|
# hence it will miss can bus messages esp 0x0F1FD000 etc.
|
|
# 10DEC2024
|
|
|
|
sudo ip link set dev can0 down
|
|
sudo ip link set dev can0 up type can bitrate 100000 sjw 4
|
|
sudo ip link set dev can0 up
|
|
|
|
|
|
#
|
|
# SJW cannot be changed currently using slcan (which is a serial terminal such as /dev/ttyACM0 linked to the linux kernel)
|
|
# see
|
|
# https://github.com/linux-can/can-utils/issues/30
|
|
# https://github.com/torvalds/linux/commit/80bcf5ec9927
|
|
#
|
|
sudo ip --details link show can0
|
|
|