I've a USB to can device but I don't know how to driver it on my linux system. 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. 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.
Mainline Linux has supported this interface since kernel version 3.9, via the usb_8dev
driver.
I am using both the rev.1 and rev.2 USB2CAN adapters with out of the box Ubuntu 18.04 and 20.04 distributions.
$ lsmod | egrep 'can|8dev'
can_raw 20480 0
can 24576 1 can_raw
usb_8dev 20480 0
can_dev 28672 1 usb_8dev
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.