Labs

Libraries Updates

Yocto Updating the MRAA I/O and UPM sensor libraries

You can check the version of the MRAA and UPM libraries installed on your board and update them to the latest versions available:

The MRAA I/O library (or libmraa) is a low-level library that offers a translation from the general purpose input/output (GPIO) interfaces to the pins available on the Intel® Galileo or Intel® Edison boards. MRAA makes it easier for developers and sensor manufacturers to map their sensors and actuators on top of supported hardware and to allow control of low-level communication protocol by high-level languages and constructs.

The UPM sensor library (or libupm) is a repository of sensor representations, written in C++ and utilizing MRAA. UPM is a high-level repository for sensors that use the MRAA library. Each sensor links to libmraa and is not meant to be interlinked, although some groups of sensors may be. Each sensor contains a header that allows you to interface with it.

The latest versions of MRAA and UPM can be found at their respective GitHub pages:

Updating the MRAA and UPM libraries

Establish a serial communication session with your board. To ensure that you have the latest versions of the MRAA and UPM libraries, enter the following commands:

root@board:~# echo "src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/mraa-upm.conf

opkg update

Enter the following commands to install the MRAA and UPM libraries:

root@board:~# opkg install libmraa0

opkg install upm

Checking the version of the MRAA and UPM libraries installed on your board Establish a serial communication session with your board. To check the version number of the MRAA library installed on your board, enter the following command:

root@board:~# opkg info libmraa0

To check the version number of the UPM library installed on your board, enter the following command:

root@board:~# opkg info upm

In the example image below, the version numbers are indicated with the red arrows.

Note: be aware that the path to the repo is not updated, the newest path is http://iotdk.intel.com/repos/2.0/intelgalactic/ where the latest version of these libraries are. Reader should be aware of always keep updated to path changes by surfing regularly to http://iotdk.intel.com/repos/.

Original Link to this info

Last updated