GS USB Setup and First CAN Frames
Switch to the GS USB firmware before setting up the application. For a two-channel test, wire CAN_H to CAN_H and CAN_L to CAN_L. Follow the hardware guide for the reference ground and connector pins. Terminate both ends with 120 Ω and set both channels to normal transmit and receive mode.
Windows with EcuBus-Pro
- In Windows Device Manager, check that the GS USB device appears without a driver error. The first interface can appear as
CANmeleon GS USB CAN1. - In EcuBus-Pro, select the GS_USB (CANDLE) backend and assign the detected channels.
- Set both channels to 500 kbit/s for Classic CAN. For CAN FD, enable FD and set both channels to 500 kbit/s arbitration and 2 Mbit/s data.
- Send a standard frame with ID
0x123and payload11 22 33 44 55 66 77 88. For the FD example, select an FD frame and enable BRS. Check the same ID and payload on the receiving channel.
Linux with SocketCAN
Install can-utils and iproute2 using your distribution’s package manager. Connect the device and list the CAN interfaces:
sudo modprobe gs_usb
ip -brief link show type can
readlink -f /sys/class/net/can0/device/driver
readlink -f /sys/class/net/can1/device/driverReplace can0 and can1 throughout with the interfaces for your two wired channels. Check that the driver paths end in gs_usb. For CAN FD, both interfaces and the kernel driver must support FD.
sudo ip link set can0 down
sudo ip link set can1 down
sudo ip link set can0 type can bitrate 500000 fd off
sudo ip link set can1 type can bitrate 500000 fd off
sudo ip link set can0 up
sudo ip link set can1 upRun candump can1 in one terminal, then send cansend can0 123#1122334455667788 in another. Confirm the frame appears on can1. For a CAN FD test, bring both interfaces down and replace each configuration line with sudo ip link set can0 type can bitrate 500000 dbitrate 2000000 fd on and the equivalent for can1. Bring both back up and send cansend can0 123##11122334455667788. The first 1 after ## enables BRS.
When finished, stop candump and bring the two test interfaces down. Termination settings and troubleshooting (Chinese)