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

In most cases, Windows will automatically detect and install the drivers for the Alius USB2CAN Debugger.

Steps:

  1. Connect the Alius USB2CAN Debugger to the USB port of your computer
  2. Windows will automatically detect the new hardware and attempt to install the driver
  3. Wait for Windows to complete the driver installation
  4. 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:

  1. Visit the Alius official website and download the latest Windows driver package
  2. Extract the driver package to a temporary directory
  3. Connect the Alius USB2CAN Debugger to the USB port of your computer
  4. Open “Device Manager” (right-click “This PC” → “Manage” → “Device Manager”)
  5. In the device list, find the device with a yellow exclamation mark (usually displayed as “Unknown Device” or “USB Serial Device”)
  6. Right-click the device and select “Update Driver”
  7. Select “Browse my computer for driver software”
  8. Click “Browse” and select the extracted driver directory
  9. Click “Next”, Windows will start installing the driver
  10. If a “Windows can’t verify the publisher of this driver software” warning appears, click “Continue Anyway”
  11. Wait for the installation to complete
  12. 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:

  1. Open “Device Manager”
  2. Expand “Ports (COM & LPT)”
  3. Find the Alius USB2CAN device (usually displayed as “Alius USB2CAN Serial Port (COMx)”)
  4. Right-click the device and select “Properties”
  5. In the “General” tab, confirm that the device status is “This device is working properly”
  6. 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:

  1. Visit the Alius official website and download the latest Windows driver package
  2. Extract the driver package
  3. Open “Device Manager”
  4. Find the Alius USB2CAN device
  5. Right-click the device and select “Update Driver”
  6. Follow the manual installation steps to select the new driver directory
  7. Complete the update

Driver Uninstallation

If you need to uninstall the driver (e.g., changing computers or troubleshooting), please follow these steps.

Steps:

  1. Open “Device Manager”
  2. Find the Alius USB2CAN device
  3. Right-click the device and select “Uninstall Device”
  4. In the pop-up dialog box, check “Delete the driver software for this device” (optional)
  5. Click “Uninstall”
  6. 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:

  1. Connect the Alius USB2CAN Debugger to the USB port of your computer
  2. Open a terminal
  3. Use the following command to view kernel messages:
    dmesg | tail
    You should see output similar to the following:
    [ 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
  4. Use the following command to view the device node:
    ls /dev/ttyUSB*
    You should see a device node similar to /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)

  1. Open a terminal
  2. Use the following command to add the current user to the dialout group:
    sudo usermod -a -G dialout $USER
  3. Log out and log back in for the group changes to take effect

Method 2: Use udev Rules

  1. Create a udev rules file:
    sudo nano /etc/udev/rules.d/99-alius-usb2can.rules
  2. Add the following content to the file:
    SUBSYSTEM=="tty", ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", MODE="0666"
    Note: Please replace 1234 and 5678 with the actual Vendor ID and Product ID of the Alius USB2CAN Debugger. You can use the lsusb command to view this information.
  3. Save and close the file
  4. Reload udev rules:
    sudo udevadm control --reload-rules
    sudo udevadm trigger
  5. 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:

  1. Download the CANAL API source code
  2. Extract the source code package
  3. Open a terminal and enter the source code directory
  4. Compile and install:
    make
    sudo make install
  5. 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 dialout group
  • 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:

  1. Download and install MiniCAN
  2. Connect the Alius USB2CAN Debugger
  3. Start MiniCAN
  4. Select the corresponding COM port or device node
  5. Configure the baud rate
  6. 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.