hartkopp / can-isotp

Linux Kernel Module for ISO 15765-2:2016 CAN transport protocol PLEASE NOTE: This module is part of the mainline Linux kernel since version 5.10
Other
239 stars 69 forks source link

Canfd support on virtual can? #29

Closed swanandb2 closed 4 years ago

swanandb2 commented 4 years ago

I want to learn can fd unfortunately I have pi can2 bord which does not support can fd. I am wondering if I can use virtual can for canfd?

hartkopp commented 4 years ago

Yes, you can use the virtual CAN for CAN FD and ISO-TP. By default vcan devices are created as CAN FD devices which you can see from the MTU value (CAN = 16, CAN FD = 72):

`$ ip -det link show vcan0

4: vcan0: <NOARP,UP,LOWER_UP> mtu 72 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/can promiscuity 0 minmtu 0 maxmtu 0 vcan numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 `