Driver Installation and Configuration
The Alius USB2CAN Dual-Channel Debugger requires correct drivers to work properly on a computer. This document details the steps for installing and configuring drivers on Windows and Linux operating systems, helping you quickly complete driver setup.
Windows Drivers
Supported Operating Systems
The Windows drivers for the Alius USB2CAN Debugger support the following operating systems:
- Windows 2000 (SP4 or higher)
- Windows XP (SP2 or higher)
- Windows Vista
- Windows 7
- Windows 10
- Windows 11
Automatic Installation (Recommended)
In most cases, Windows will automatically detect and install the drivers for the Alius USB2CAN Debugger.
Steps:
- Connect the Alius USB2CAN Debugger to the USB port of your computer
- Windows will automatically detect the new hardware and attempt to install the driver
- Wait for Windows to complete the driver installation
- Open “Device Manager” and check “Ports (COM & LPT)” to confirm that the device is installed correctly
Manual Installation
If Windows fails to automatically install the driver, you can install it manually.
Steps:
- Visit the Alius official website and download the latest Windows driver package
- Extract the driver package to a temporary directory
- Connect the Alius USB2CAN Debugger to the USB port of your computer
- Open “Device Manager” (right-click “This PC” → “Manage” → “Device Manager”)
- In the device list, find the device with a yellow exclamation mark (usually displayed as “Unknown Device” or “USB Serial Device”)
- Right-click the device and select “Update Driver”
- Select “Browse my computer for driver software”
- Click “Browse” and select the extracted driver directory
- Click “Next”, Windows will start installing the driver
- If a “Windows can’t verify the publisher of this driver software” warning appears, click “Continue Anyway”
- Wait for the installation to complete
- After installation, in “Device Manager” under “Ports (COM & LPT)”, you should see the COM port corresponding to the Alius USB2CAN device
Driver Verification
After installation, please verify that the driver is installed correctly.
Steps:
- Open “Device Manager”
- Expand “Ports (COM & LPT)”
- Find the Alius USB2CAN device (usually displayed as “Alius USB2CAN Serial Port (COMx)”)
- Right-click the device and select “Properties”
- In the “General” tab, confirm that the device status is “This device is working properly”
- In the “Driver” tab, view the driver version and date
Driver Update
When a new driver version is released, it is recommended to update to the latest version for better performance and stability.
Steps:
- Visit the Alius official website and download the latest Windows driver package
- Extract the driver package
- Open “Device Manager”
- Find the Alius USB2CAN device
- Right-click the device and select “Update Driver”
- Follow the manual installation steps to select the new driver directory
- Complete the update
Driver Uninstallation
If you need to uninstall the driver (e.g., changing computers or troubleshooting), please follow these steps.
Steps:
- Open “Device Manager”
- Find the Alius USB2CAN device
- Right-click the device and select “Uninstall Device”
- In the pop-up dialog box, check “Delete the driver software for this device” (optional)
- Click “Uninstall”
- Disconnect the Alius USB2CAN Debugger from the computer
Linux Drivers
Supported Operating Systems
The Linux drivers for the Alius USB2CAN Debugger support most major Linux distributions, including:
- Ubuntu (16.04 and higher)
- Debian (8 and higher)
- Fedora (24 and higher)
- CentOS (7 and higher)
- Arch Linux
- openSUSE
Automatic Recognition
In most modern Linux distributions, the Alius USB2CAN Debugger will be automatically recognized as a USB serial device without the need to manually install drivers.
Steps:
- Connect the Alius USB2CAN Debugger to the USB port of your computer
- Open a terminal
- Use the following command to view kernel messages:
You should see output similar to the following:dmesg | tail[ 1234.567890] usb 3-1: new full-speed USB device number 5 using xhci_hcd [ 1234.678901] usb 3-1: New USB device found, idVendor=1234, idProduct=5678 [ 1234.678902] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1234.678903] usb 3-1: Product: Alius USB2CAN [ 1234.678904] usb 3-1: Manufacturer: Alius [ 1234.678905] usb 3-1: SerialNumber: 1234567890 [ 1234.789012] usbcore: registered new interface driver usbserial [ 1234.789013] usbcore: registered new interface driver usbserial_generic [ 1234.789014] usbserial: USB Serial support registered for generic [ 1234.789123] usbcore: registered new interface driver ftdi_sio [ 1234.789124] usbserial: USB Serial support registered for FTDI USB Serial Device [ 1234.789234] ftdi_sio 3-1:1.0: FTDI USB Serial Device converter detected [ 1234.789345] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0 - Use the following command to view the device node:
You should see a device node similar tols /dev/ttyUSB*/dev/ttyUSB0
Permission Configuration
In Linux systems, accessing serial devices requires appropriate permissions. By default, only the root user and members of the dialout group can access serial devices.
Method 1: Add User to dialout Group (Recommended)
- Open a terminal
- Use the following command to add the current user to the
dialoutgroup:sudo usermod -a -G dialout $USER - Log out and log back in for the group changes to take effect
Method 2: Use udev Rules
- Create a udev rules file:
sudo nano /etc/udev/rules.d/99-alius-usb2can.rules - Add the following content to the file:
Note: Please replaceSUBSYSTEM=="tty", ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", MODE="0666"1234and5678with the actual Vendor ID and Product ID of the Alius USB2CAN Debugger. You can use thelsusbcommand to view this information. - Save and close the file
- Reload udev rules:
sudo udevadm control --reload-rules sudo udevadm trigger - Disconnect and reconnect the Alius USB2CAN Debugger
CANAL API Installation
To use the CANAL API on Linux, you need to install the CANAL library.
Steps:
- Download the CANAL API source code
- Extract the source code package
- Open a terminal and enter the source code directory
- Compile and install:
make sudo make install - Update the dynamic linker cache:
sudo ldconfig
Troubleshooting
Problem 1: Device Not Recognized
Solution:
- Check if the USB cable is intact
- Try connecting to a different USB port
- Check kernel logs (
dmesg) to view error messages - Confirm that the correct driver module (
ftdi_sio) is loaded in the kernel
Problem 2: Permission Denied
Solution:
- Add the user to the
dialoutgroup - Run the application using
sudo - Configure udev rules
Problem 3: Device Node Does Not Exist
Solution:
- Check kernel logs to see if the device is recognized
- Manually load the driver module:
sudo modprobe ftdi_sio - Reconnect the device
Application Examples
Using MiniCAN to Monitor CAN Bus
MiniCAN is a popular CAN bus monitoring tool that supports the Alius USB2CAN Debugger.
Steps:
- Download and install MiniCAN
- Connect the Alius USB2CAN Debugger
- Start MiniCAN
- Select the corresponding COM port or device node
- Configure the baud rate
- Start monitoring
Using Python-CAN Library
Python-CAN is a powerful Python library for CAN bus communication.
Installation:
pip install python-can
Sample Code:
import can
# Create bus
bus = can.interface.Bus(bustype='serial', channel='/dev/ttyUSB0', bitrate=500000)
# Send message
msg = can.Message(arbitration_id=0x100, data=[0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08])
bus.send(msg)
# Receive messages
for msg in bus:
print(f"ID: {msg.arbitration_id}, Data: {msg.data}")
Technical Support
If you encounter any problems during driver installation and configuration, please contact the Alius technical support team. Please provide the following information:
- Operating system version
- Driver version
- Error screenshots or logs
- Detailed problem description
We are dedicated to serving you.