Chapter 3 Software Configuration; Installation - Korenix JetBox 8152 User Manual

Linux canbus
Hide thumbs Also See for JetBox 8152:
Table of Contents

Advertisement

Chapter 3 Software Configuration

3-1

Installation

Prerequisites
To make CANBus work correctly. We have to install three components first.
Make sure your network is connected.
1. GCC : call "yum install gcc"
2. OpenSSL : call "yum install openssl"
3. OpenSSL-devel : call "yum install openssl-devel.i386"
After install these components, the CANBUS library and follow example code
will work successfully.
Do the following steps to setup the driver
1.
Login in as root. ( username : root, password : korenix )
2.
Default CanBus code are built-in jetbox linux environment. Go to the path
/CanBus and you will see the follow directory.
3.
In the "library" directory. You will see the two files below.
libmycanbus.so.1.0.0 :
It contains all CanBus functions that user can use it to program.
mycanbus.h :
It defines CanBus structure, message type and baud rates settings.
All details will be shown in Chapter 4.
4.
In the "example" directory. You will see the files below.
Korenix | Software Configuration
7

Advertisement

Table of Contents
loading

Table of Contents