CANFD / CAN USB Converter
Linux Support
Ensure the gs_usb kernel module is enabled:
sudo modprobe gs_usb sudo modprobe can_dev
Connect the device to the USB, and check if it has initialized properly
ip link list
There should be sth like this
10: can0: NOARP,ECHO mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10 link/can
Connect UCCB device to CAN network.
Configure the device:
sudo ip link set can1 type can bitrate 1000000 dbitrate 4000000 fd on
Replace can0 with the name of your device and 500000 with the desired bitrate.
Bring the device up:
sudo ifconfig can0 up
Use the device with SocketCAN. For example,
candump can0
For more tools, see can-utils.
Windows 10/11 support
CAN is supported out of the box with uCANViewer.2.0
For FD support on Windows CANFD converter on windows, you need:
1. Install WSL as described here
2. If you are on Windows 10, compile the latest kernel with CAN support. There is no full tutorial on this, but take a look at this page
3. To connect USB devices, follow this tutorial, but in short. Install USBIPD. Ensure that the device is visible in Windows in Powershell
usbipd wsl list
You should see a device like the one below.
5-1 1d50:606f cfuc, cfuc DFU interface Not attached
Attach the device using the (pick your number from the list command, in my example, 5-1 )
usbipd wsl attach --busid 5-1
Now devices should be visible in WSL; check with lsusb
All stuff tools/sources/examples, etc, can be found here
Bootloader: The device supports a USB DFU bootloader for new firmware upload see dfu-utils tutorial.
Drivers: Device support gs_usb driver. The device is powered directly by USB
Embedded software: Embedded software is open source, and details can be found here
Hardware: Hardware is an open-source schematic, and PCB is done in KiCAD schematics here.
Releases: For releases, see the release link. If you want some QUI, please check SavvyCAN.
Random useful commands
sudo ip link set can0 type can bitrate 1000000 dbitrate 4000000 fd on sudo ifconfig can0 txqueuelen 99 #extending queue optional but if you getting queue full error consider sudo ip link set can0 up #generate random FD frames on can cangen can0 -g 4 -I i -x -f -b #go to bootlader sudo dfu-util -l sudo dfu-util -e sudo dfu-util --dfuse-address -d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000:leave -D ucan_gsusb_fw.bin #detailed info about can0 ip -details link show can0 #loopback test sudo ip link set can0 type can bitrate 100000 dbitrate 1000000 fd on loopback on
Reviews
There are no reviews yet.