Checking That The New Device Has Been Successfully Installed; Driver Installation On Linux - ZLG MiniPCIeCAN-II Product User Manual

Minipcie interface can card
Table of Contents

Advertisement

MiniPCIeCAN-II
MiniPCIe Interface CAN Card User Manual

3.2.2 Checking That the New Device Has Been Successfully Installed

Check if the "USBCAN" device is already in the current hardware list in the "Universal
Serial Bus Device" device class. After successful installation, you can see the "USBCAN"
device under the "Universal Serial Bus Device" device class in the "Device Manager"
interface. The following figure shows the normal installation of the "ZLG USBCAN series
intelligent CAN interface card" on the computer. See Figure 3.5.
When the USBCAN mini intelligent CAN interface card and the PC are in data
transmission, the SYS indicator on the interface card flashes in green.

3.3 Driver Installation on Linux

A. The usbcan driver is implemented based on libusb. First, install the dependent
library with the following command:
#apt-get install libusb-1.0-0
B. Copy "usbcan.so, libusbcan.so.1" to the "/lib" directory, and run make in the test
directory for compilation.
Note: Ask the R&D department for usbcan.ko and libusbcan.so.1 files.
C. In the "./test" in the test directory, view the parameter calling example as
reference for the test.
D. test will test each channel in a self-send and self-receive manner. If the card is
normal, the number of frames sent and received and the sending speed will be
displayed in the end
Note: The USB driver delivered with Linux is used. The old way of publishing was not open source.
Therefore, customers need to apply for a custom driver to the R&D department each time the kernel is
replaced.
Figure 3.5 Installation completed
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
8
User Manual

Advertisement

Table of Contents
loading

Table of Contents