CANable-MKS
CANable-MKS copied to clipboard
How to run MKS CANable V2.0 in CAN-FD mode?
Hello!
Platform:
- Machine: ×86_64
- System: Linux
- Distribution: Ubuntu 22.04 Jammy Jellyfish
I bought Makerbase CANable V2.0 Pro S, it works well in CAN 2.0 Mode.
$ lsusb
- Bus 001 Device 002: ID 16d0:117e MCS CANable2 b158aa7 github.com/normaldotcom/canable2.git
$ sudo chmod 777 /dev/ttyACM0
$ sudo modprobe slcan
$ sudo slcan_attach -f -s8 -o /dev/ttyACM0
- attached tty /dev/ttyACM0 to netdevice can0
$ sudo slcand ttyACM0 can0
$ sudo ip link set can0 up type can bitrate 1000000
$ ip link show
- 5: can0: <NOARP,UP,LOWER_UP> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10 link/can
$ cansend can0 001#FFFFFFFFFFFFFFFC
Another terminal:
$ candump can0
- can0 001 [8] FF FF FF FF FF FF FF FC
But how to run this module in CAN FD Mode?
Then I try:
$ sudo ip link set can0 down
$ sudo ip link set can0 type can bitrate 1000000 dbitrate 5000000 fd on
- RTNETLINK answers: Operation not supported
$ sudo ip link set can0 type can bitrate 1000000 dbitrate 2000000 fd on
- RTNETLINK answers: Operation not supported
$ sudo ip link set can0 type can bitrate 1000000 dbitrate 1000000 fd on
- RTNETLINK answers: Operation not supported
It does not works...
How to do this, how to run MKS CANable V2.0 in CAN-FD mode?
sudo slcan_attach --help
-s
"slcan_attach" have only 8 speed modes where 8 equals 1000000 bitrate...
Can you help? Thank you!