This product is an adapter board for connecting up to four M12 IO-Link devices to a Raspberry PI for operation with open source software. The repository contains the IO-Link master stack for using the adapter board.
- Christian Nesich, Balluff
- Daniel Kessler, Balluff
- Dominik Nille, Balluff
- Pascal Frei
- Markus Gafner, BFH
For an automatic and fast setup of your Pi, the ZIP folder can be downloaded under Releases. After downloading, the ZIP folder must be unpacked. Then run the shell script to setup all requirements with the following command:
sh quick_setup.shExecute the already pre-compiled binary with
./openiolinkTo use the application on RaspberryPi 4B, the operating system Raspbian is used. Also, the library WiringPi and the build tool CMake is required. The Library WiringPi is offical deprecated for buster and bullseye debian-based os.
This can get installed using the command:
sudo apt-get install mosquitto wiringpi cmakeIf wiringpi is not available install the .deb file provided in this repo using the command:
sudo dpkg -i wiringpi-2.61-1.debThe easiest way to compile the project is, to copy all sources to the RaspberryPi, and compile the project on the RaspberryPi itself or use Visual Studio Code with a SSH Connection.
- Copy all source files to a folder you like, for example
/home/pi/projects/ - With the SSH-connection, move to the folder you copied the files:
cd /home/pi/projects/ - Initialize CMake:
cmake . - Build the binary:
make
If every step was successful, in the project folder should be an executable file, for example openiolink. This one can be executed using ./openiolink.