CAN driver for Geschwister Schneider USB/CAN devices and bytewerk.org candleLight USB CAN interfaces¶
Windows/Linux/Mac CAN driver based on usbfs or WinUSB WCID for Geschwister Schneider USB/CAN devices and candleLight USB CAN interfaces.
pip install "python-can[gs_usb]"
address to open the device. The parameters can be got by
pyusb as shown below:
import usb import can dev = usb.core.find(idVendor=0x1D50, idProduct=0x606F) bus = can.Bus(bustype="gs_usb", channel=dev.product, bus=dev.bus, address=dev.address, bitrate=250000)
Geschwister Schneider USB/CAN devices and bytewerk.org candleLight USB CAN interfaces such as candleLight, canable, cantact, etc.
Windows, Linux and Mac.
The backend driver depends on pyusb <https://pyusb.github.io/pyusb/> so a
pyusb backend driver library such as
libusb must be installed. On Windows a tool such as Zadig <https://zadig.akeo.ie/> can be used to set the USB device driver to
Supplementary Info on
The firmware implementation for Geschwister Schneider USB/CAN devices and candleLight USB CAN can be found in candle-usb/candleLight_fw. The Linux kernel driver can be found in linux/drivers/net/can/usb/gs_usb.c.
gs_usb interface in
PythonCan relys on upstream
gs_usb package, which can be found in https://pypi.org/project/gs-usb/ or https://github.com/jxltom/gs_usb.
gs_usb package is using
pyusb as backend, which brings better crossplatform compatibility.
Note: The bitrate
1M are supported in this interface, as implemented in the upstream
Note: Message filtering is not supported in Geschwister Schneider USB/CAN devices and bytewerk.org candleLight USB CAN interfaces.