Acrosser Technology AR-V6002FL User Manual page 63

Hide thumbs Also See for AR-V6002FL:
Table of Contents

Advertisement

On Windows platform:
1. In the driver directory, execute the 'setup.exe' program.
The CAN bus APIs
Before executing the applications which invoke the CAN bus APIs, users should make
sure that the Linux device driver or the Windows device driver of CAN bus has been
installed.
On Linux platform, after successfully installing the device driver, a character device
node named "/dev/can0" will be created automatically. The APIs open the device node
"/dev/can0" implicitly so acquiring a file descriptor of "/dev/can0" by users is not ncecssary.
In order not to degrade the performance of the CAN bus subsystem, the device node
"/dev/can0" is limited to be opened at most once at any moment, i.e., if application A
accesses CAN bus via the APIs, the application B which either tries to open '/dev/can0' or
uses CAN bus API will result in failure.
On Windows platform, after successfully installing the device driver, there is a device
which shows 'Device Driver for the AR-B6002 card' in the 'Device Manager'. The APIs on
Windows platform open this device implicitly. User can call the APIs directly without
opening the CAN Bus subsystem device.
CAN Message Format
// TPE DEFINE
typedef char
typedef unsigned char
typedef short
typedef unsigned short
typedef unsigned long
typedef int
typedef struct timeval {
long tv_sec;
long tv_usec;
} timeval;
typedef struct {
i32
i32
i8;
u8;
i16;
u16;
u32;
i32;
flags;
cob;
63
Revision: 1.0

Advertisement

Table of Contents
loading

Table of Contents