Internet Of Things Sensors
  • Cover
  • Summary
  • About This Training
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon a Time ...
  • Introduction
    • Topologies
    • Data Compression
  • Communication Protocols
    • I2C
      • Linux
      • Arduino
    • Serial Peripheral Interface
    • Serial Communication
      • Laboratory
        • Arduino and Linux
    • Infrared
    • Pulse Width Modulation
  • Microsystems Technologies
    • Actuators
    • Sensors
    • Transducers
  • Layers of Abstraction
    • Intel® IoT Developer Kit Libraries
      • MRAA
      • UPM
      • Laboratory
      • Contributions
    • Linux I2C Device Interface
      • LCD RGB Color Display
      • LCD RGB Text
      • LCD RGB Display Off
      • Temperature
    • Linux I2C Subsystem
  • Data Engines
    • Sparkfun
  • Wrap-Up
    • Online Training
    • Challenge
  • References
  • Sandbox
Powered by GitBook
On this page
  • Contributions
  • UPM
  • Porting
  • Naming Conventions
  • Contributions
  • Documentation
  1. Layers of Abstraction
  2. Intel® IoT Developer Kit Libraries

Contributions

PreviousLaboratoryNextLinux I2C Device Interface

Last updated 7 years ago

Contributions

You can contribute with source code to UPM community!

UPM

Porting

Porting arduino libraries to libmraa as UPM libraries is usually fairly easy. The issues typically come from misunderstanding of how a non real time OS deals with interrupts and timers. It also highly depends on the sensor.

A concrete example is explained in detail on @ref

Naming Conventions

UPM attempts to follow a clear naming pattern. Modules should be sensibly named and then placed in ${libdir}/upm and headers in ${includedir}/upm, all modules should be prefixed with libupm-. The upmmodule_init will automatically name python UPM modules as pyupm and javascript modules as jsupm_. For example for src/grove/ the library built will be libupm-grove.so, the python module pyupm_grove and the js module jsupm_grove.

Contributions

Here are the rules of contribution...

Documentation

It is highly encouraged to provide at least some basic documentation for the sensors that you want to add to UPM...

Porting a module from Arduino
max31855
Naming a module
Contributing a module
Writing sensor documentation