Overview
Installation Directory Content
The Qmix SDK for Raspberry Pi archive extracts a number of files into the final SDK folder. The following overview shows which files are available in which directories:
- Root SDK Folder - contains all unit test cases.
- config - provides the configuration files for running the provided tests (the configuration use simulated devices only)
- doc - contains this HTML documentation
- examples - here you find a number of C examples that show how to use the different labbCAN libraries
- include - contains the C include files for each single labbCAN library
- lib - Contains all shared libraries of the SDK. Unike the Linux SDK the Raspi SDK does use the system's libraries. See the Requirements and Dependencies section for more information on what libraries are required for the SDK.
- plugins - contains the LED array plugin and may be used for later addition of custom plugins
- python - Contains the complete Python integration for the Qmix SDK
- sila - The Python based QmixSDK_SiLA library for CETONI devices
Requirements and Dependencies
- Note
- The SDK has been compiled for and has only been tested on a Raspberry Pi 3B+ running Raspbian Buster (version July 2019)!
The Qmix SDK depends on the Qt5 libraries Qt5Core and Qt5SerialPort. You need to ensure that both libraries are properly installed on your Raspberry Pi. Further you will need the following system libraries for the SDK to work properly:
- libsocketcan
- libboost-
- chrono
- filesystem
- serialization
- system
- thread
- timer
- test
You can easily install them by running the following command on your Raspi:
sudo apt install -y libsocketcan-dev \
libboost-chrono-dev libboost-filesystem-dev libboost-serialization-dev \
libboost-system-dev libboost-thread-dev libboost-timer-dev libboost-test-dev
Connecting the Raspi to your Qmix system
To use the Raspberry Pi for controlling all of CETONI's devices, you need to connect directly to the CAN bus. Since the Raspi does not have any CAN interfaces, you need to use a CAN bus board to connect to the bus either via DB9 or 3 way screw terminal. The following CAN boards have been tested on a Raspberry Pi 3B+:
- PiCAN2 CAN-Bus Board for Raspberry Pi 2/3
- Note
- You need to close the solder bridges on the righthand side on SJ1, SJ2 and SJ3 to use the board with a CAN cable. Refer to the User Guide for more information on the hardware installation of the board.
Using a CAN Power Cable and an IXXAT CAN Bus Terminator you can easily connect your Qmix devices with the Raspberry Pi. Plug in the CETONI interface of the CAN Power Cable into the socket of the last module of your system where you would normally plug in the bus termination plug. The other end of the CAN Power Cable first needs to be plugged into the IXXAT CAN Bus Terminator and then into the 9 pin D-Sub socket of the PiCAN2 CAN-Bus Board.
Using the SDK
Further information on how to use the SDK and getting started with development can be found in the QmixSDK Linux Documentation .
If you would like to use the Raspberry Pi as a SiLA2-to-CAN converter and control your neMESYS syringe pumps via SiLA2, continue with the SiLA neMESYS documentation at GitHub.
Continue with QmixSDK Linux Documentation >>