hardbyte / python-can

The can package provides controller area network support for Python developers
https://python-can.readthedocs.io
GNU Lesser General Public License v3.0
1.29k stars 602 forks source link

USB2CAN #1352

Open jkljkjkjk opened 2 years ago

jkljkjkjk commented 2 years ago

Hi there

I am new here and I am wondering if the lib supports ZLG USBCAN series products in linux?

thanks a lot

j-c-cook commented 2 years ago

Have you ordered the product and tested it? SocketCan in the Linux kernel is network based, so the first step after plugging in the device would be to bring up the CAN interface. Then initialize your Bus with the "socketcan" channel.

I use a PCAN in Linux in a similar fashion described above. No additional drivers required. See python-can docs here.

jkljkjkjk commented 2 years ago

Yes, I've ordered the product, but still on the way. I understand that SocketCan is available on Linux and it is network based, however as far as I know, ZLG USBCAN does not support socketcan, that's why I was wondering if python-can supports ZLG usbcan series product, if it does, how to announce bus type as well as channel name.

PCAN no matter PCIE or USB types both support socketcan, I used PCIE PCAN before. But to be honest that is little bit expensive comparing to ZLG

thanks a lot