Installation

When the module is compiled, Linux kernel header is necessary.
Please install the kernel header in advance.

If you want to change the library install path to a location, such as /usr/local/lib, you should find the Makefile and change the install path in advance.
It is required to startup with root authority for install.

 

Extract the driver file which is downloaded.

This driver is provided in a compressed file.
You can use the following command in shell to extract it.

The following XXX is the driver version.
Please refer "File Structure" topic if you need to know more details.

# tar xvfz cssiXXX.tgz
................

 

Execute make, prepare to install the driver.

# cd contec/cssi
# make
................
# make install
................

 

To use HAT-sized CPI series devices, it is necessary to configure the I2C devices.

For how to configure I2C devices, please refer to [Configure I2C device].

When using a device other than the CPI series, there is no need to configure I2C device.
Please proceed to the next step.

 

Setup the used board by using Setup Tool (configuration).

Please set the device name you want to use and save the settings.
If you do not save the settings, the driver startup script will not run correctly.

Please refer "Setup Tool (configuration)" topic if you need more detail.

# cd config
# ./config
..... Setup the following .........

 

Start the driver by executing the driver startup script.

# ./contec_drv_start.sh

Start and stop the driver by executing contec_drv_start.sh and contec_drv_stop.sh.
If you want to start driver when the system started, please add the processing contents of start script to /etc/rc.d/rc.local.