简体   繁体   English

我在哪里可以找到 Linux 系统上的 usb2can 驱动程序?

[英]where can I find usb2can driver on linux system?

I've a USB to can device but I don't know how to driver it on my linux system.我有一个 USB to can 设备,但我不知道如何在我的 linux 系统上驱动它。 The usb2can device uses Cortex M3 micro-controller(STM32F205) with internal CAN controller, which supports CAN protocols 2.0A and 2.0B , but only supply windows driver. usb2can 设备使用 Cortex M3 微控制器(STM32F205)和内部 CAN 控制器,支持 CAN 协议 2.0A 和 2.0B,但只提供 windows 驱动程序。 Where can I find the similar driver to use.我在哪里可以找到要使用的类似驱动程序。 How to write the driver for such device?如何为此类设备编写驱动程序?

Thanks in advance.提前致谢。

If your Linux is configured to support SocketCAN, the USB2CAN device should be supported.如果您的 Linux 配置为支持 SocketCAN,则应该支持 USB2CAN 设备。

Mainline Linux has supported this interface since kernel version 3.9, via the usb_8dev driver. Mainline Linux 从内核版本 3.9 开始通过usb_8dev驱动程序支持此接口。

I am using both the rev.1 and rev.2 USB2CAN adapters with out of the box Ubuntu 18.04 and 20.04 distributions.我正在使用 rev.1 和 rev.2 USB2CAN 适配器以及开箱即用的 Ubuntu 18.04 和 20.04 发行版。

$ lsmod | egrep 'can|8dev'
can_raw                20480  0
can                    24576  1 can_raw
usb_8dev               20480  0
can_dev                28672  1 usb_8dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM