Overview
Installation
-- Shared library
-- Test GUI
-- Kernel module
Usage information
Overview
Provided is a shared library and a kernel module. Either can be used to talk to the OSIF, but you must only use 1 at a time.
The kernel module exports the I2C bus as a /dev/i2c device
The shared library uses libusb to communicate with the I2C devices, and more using the OSIFlib.so.1.0.1
Most applications need sudo root access to communicate over the I2C bus.
Installation
Linux/Mac build dependencies:
libusb
libusb-dev
qt3-core
qt3-dev
gcc
For *nix and Mac platforms grab the latest CVS from the OpenServo CVS
Extract and using a terminal browse to the directory.
Building the shared library:
1) Browse to OpenServo/Interfaces/OpenServo_InterFace/driver/Version_2/dll
2) in the terminal run "make". You can substite in either make -f Makefile. + win32 for Windows or linux-shared for all other platforms.
3) Copy the shared library file libOSIFlib.so.* /usr/lib/
"sudo cp libOSIFlib.so.* /usr/lib/"
4) type "sudo ldconfig -n"
Summary:
make
sudo cp libOSIFlib.so.* /usr/lib/
sudo ldconfig -n
Building the OpenServo GUI
1) Browse to CVS/OpenServo/Interfaces/OpenServo_InterFace/Applications/OpenServo_Control
2) in terminal console, type (no quotes) "qmake" This will generate the needed files for the build.
now type "make"
3) You should now have the executable in the ./bin directory
be sure to run it sudo to gain access to the USB port.
summary:
qmake
make
Building the Kernel module
1) Browse to CVS/OpenServo/Interfaces/OpenServo_InterFace/deviers/Version_2/kernel/
2) type "make"
3) type "sudo insmod osif.ko"
4) You should now see /dev/i2c-x device appear
Example controlling OpenServo

![View your cart items []](/sites/all/modules/ecommerce/cart/images/cart_empty.png)