SOFTWARE INSTALLATION AND
5
PROGRAMMING GUIDE
5.1 Introduction
5.1.1 CAN bus
Overview
The CAN bus APIs provide interfaces to CAN bus subsystem. By invoking these APIs,
programmers can implement applications which have the functions listed below:
1.
Set the BAUD rate.
2.
Send the CAN packages over the CAN bus.
3.
Receive the CAN packages via the CAN bus hardware interface.
In this CAN bus API package, we provides:
1.
On Linux platform:
Linux driver module of CAN bus subsystem and the driver load / unload scripts.
On Windows platform:
Device driver and install program of CAN bus subsystem.
2.
API header file.
API libraries in static library format and shared library format.
3.
CAN bus test utility and its source code.
Installation Procedure of CAN Bus Driver
On Linux platform:
1. Change to the 'root' user account.
2. In the 'driver' directory, execute the script 'modld'.
3. Execute 'lsmod'.
4. Make sure 'arb104d' is in the module list.
5. If the driver is no longer needed, execute the script 'modul' to unload the driver.
62
Revision: 1.0