Page tree

Contact: / /

Skip to end of metadata
Go to start of metadata

Full User Manual, Windows/Linux/Mac OS ready-made tools and source code please refer to below github link:

General Description

USB2CAN-X2 is a really 'plug and play' and bi-directional port powered USB to CAN converter which realizes long-distance communication between your Raspberry Pi/SBC/PC and other devices stably though CAN- Bus connection.

Dual channels can be set up independently , It's a cost-effective solution that are safe and reliable for all your data-conversion / device-protection applications for any experienced engineer

interfacing to expensive industrial equipment yet simple enough for home use by an amateur hobbyist.

USB2CAN can also be applied to obtain the data of car via the OBD connector, but you need to configured and secondary development by yourself.

Support Linux system , It's a socket-can device in Linux, not need to install any driver and fully compatible with other socket-can software in Linux such as can-utils.

Support Mac OS version equal or above 10.11 and provide development library for help customer develop own applications.

Support Win7/Win8/Win10 and provide C#/C++ demo and dynamic link libraries for help customer develop own applications.

We provide four kinds of USB2CAN, the hardware appearance is different but the software ,firmware features are 100% same.

Windows and MacOs Quick Start

(1) Open the USB2CAN tools.

Down and install the ready-made tool.One tool interface is only for one channel. If you want to use two channel at the same time, Please open two interfaces.

(2) Scan For Devices 

Plug the usb2can-x2 device into the USB port of your computer, click ‘Scan Device’ button. You’ll Find two the USB2CAN device and named with different ID. 

(3)  Setting The BandRate And Working Mode. 

Setting below parameters in the red box before open device.

Normal mode: The CAN module will appear on the CAN-bus, and it can send and receive

CAN messages,communication with other CAN devices directly.

Silent mode: The module will appear on the CAN-bus, but in a passive state. It can receive

CAN messages, but cannot transmit CAN messages or answer. This mode can be used

as a bus monitor because it does not affect CAN-bus communications but can observe

the CAN-bus states.

Loopback mode: For USB2CAN self-test, CAN module receives its own messages.

In this mode, the send part of the CAN module is connected internally with the reception


(4) Start USB2CAN-x2 Device

Click 'Open device', the TX/RX LED light up.

(5) Send/Receive Data

After Open device, the device will automatic received data. The send data will be marked in black, Receive data will be marked in green. Error Frame will be marked in red. Every message will comes with the time stamp and serial number.

Linux/Ubuntu/Raspbian Quick Start

(1) ifconfig -a

Type command ‘ifconfig -a’ to check ‘can0’ and ‘can1’device is available in system.

(2) dmesg

You can type command ‘dmesg’ for see more information about USB2CAN module at the bottom.

(3) Install can-utils Tools

sudo apt-get install can-utils

(4) Install can-utils Tools

Initialize CAN port, After below command, you could see the the TX/RX light on for CAN0 and CAN1 channels.

sudo ip link set can0 down

sudo ip link set can0 type can bitrate 125000

sudo ip link set can0 up

sudo ip link set can1 down

sudo ip link set can1 type can bitrate 125000

sudo ip link set can1 up

(5) Set CAN0 as receiver

candump can0

(6) Set CAN1 as sender

cansend can1 123#1234567890 

(7) Loopback Mode Test

sudo ip link set can0 down

sudo ip link set can0 type can bitrate 125000 loopback on

sudo ip link set can0 up

candump can0 & cansend can0

  • No labels