kvaser开发环境安装
下载驱动及SDK
windows驱动下载和安装:点击VERSION下载
驱动:kvaser_drivers_setup.exe (根据设备编号查找,4xHs和2xHs是不同的)
Kvaser CANlib SDK:canlib.exe
python module or (pip install canlib)
linux驱动下载和安装
可参考文档:
Canlib 总线打开/总线关闭 和 报文发送/报文接收:
https://pycanlib.readthedocs.io/en/v1.19.205/canlib/sendandreceive.html
使用 Kvasers Python 包 canlib 设置和发送 CAN 消息:
$ cd canlib/examples
$ ./listChannels
https://www.kvaser.com/developer-blog/running-python-wrapper-linux/
kvadblib处理数据库:
https://www.kvaser.com/developer-blog/handling-can-databases-python/
使用数据库发送带有从 Python 设置的物理值的信号:
https://www.kvaser.com/developer-blog/send-receive-database-signals/
python-can中关于Kvaser接口(未使用此方式)
https://python-can.readthedocs.io/en/master/interfaces/kvaser.html#can.interfaces.kvaser.canlib.KvaserBus
扩展:
Kvaser CANlib SDK,可以看到canlib的函数的讲解和示例,如果canlib sdk中有对应的C函数那么大概率会有对应的python api