严格按照操作手册说明进行:
位置: linuxcan/README 以及 linuxcan/doc/faq
验证是否成功:
Make sure the modules are loaded. The following command should print
kvcommon and at least one more module:
~/collectprogram/collectws$ lsmod | grep 'kvcommon\|mhydra\|leaf\|usbcanII\|kvpciefd\|kvpcican\|kvpcicanII\|kvvirutalcan'
leaf 26990 1
kvcommon 58711 1 leaf
验证多少路CAN: 30881 是can id.
:~/collectprogram/collectws$ /usr/doc/canlib/examples/listChannels
CANlib version 5.23
Found 1 channel(s).
ch 0: Kvaser Leaf Light v2 73-30130-00685-0, s/n 30881, v3.3.0.769 (leaf v8.23.482)