This is an old revision of the document!
Software Development Kits (SDKs)
The SDKs are low-level programming interfaces, ready to be used in a custom software development (C, Python,…).
The tools are distributed via Debian packages on our repository http://repo.unipi.technology/debian/
Currently, the packages are supported only for Axon and Neuron generations - Evok for UniPi 1 & lite should be installed as described
Installing SDKs using apt
The apt is already preconfigured on our Neuron and Axon official images. This guide should be followed only when installing on a clean Raspbian OS.
Add the sources to the apt list
wget https://repo.unipi.technology/debian/unipi.list -O /etc/apt/sources.list.d/unipi.list wget https://repo.unipi.technology/debian/unipi_pub.gpg -O - | apt-key add
Let apt to update the unipi sources
apt-get update
And install the required kernel and unipi-firmware packages. This will automatically install the SysFS and Modbus TCP interfaces as well as support for RTC and serial lines.
For UniPi Neuron:
apt-get install neuron-kernel unipi-firmware unipi-modbus-tools
For UniPi Axon:
apt-get install axon-kernel unipi-firmware unipi-modbus-tools
Make sure to reboot the system in order to apply the changes!
After reboot, you can check the service status by
systemctl status unipitcp
The internal firmware will be automatically flashed to the current latest version. You can check the firmware version by
/opt/unipi-bin/fwspi -i 0