An OSGi-based Application Framework for M2M Service Gateways
Until recently, machine-to-machine projects have been approached as embedded systems designed around custom hardware, custom software, and custom network connectivity. The challenge of developing such projects was given by the large customization and integration costs and the small re-usability across similar engagements. The results were often proprietary systems leveraging proprietary protocols.
The emergence of the service gateway model, which operates on the edge of an M2M deployment as an aggregator and controller, has opened up new possibilities. Cost effective service gateways are now capable of running modern software stacks opening the world of M2M to enterprise technologies and programming languages. Advanced software frameworks, which isolate the developer from the complexity of the hardware and the networking sub-systems, can now be offered to complement the service gateway hardware into an integrated hardware and software solution.
Kura aims at offering a Java/OSGi-based container for M2M applications running in service gateways. Kura provides or, when available, aggregates open source implementations for the most common services needed by M2M applications. Kura components are designed as configurable OSGi Declarative Service exposing service API and raising events. While several Kura components are in pure Java, others are invoked through JNI and have a dependency on the Linux operating system.
For more information, see the Eclipse project proposal.
Eclipse Kura is compatible with Java 8 (
Bundle-RequiredExecutionEnvironment: JavaSE-1.8) and OSGi R6.
Development for Kura can be done in Eclipse IDE using the Kura Development Environment, in a gateway or in a Docker container.
The Eclipse Installer based setup works for the main used platforms like Linux, Mac OS and Windows.
Before installing Kura, you need to have the following programs installed in your system
Using Brew you can easily install both Java and Maven from the command line.
Use the following commands in a terminal
brew tap adoptopenjdk/openjdk brew cask install adoptopenjdk8
java -version to make sure it is installed correctly.
brew install [email protected]
mvn -versionto ensure that Maven has been added to the PATH.
If Maven cannot be found, try running
brew link [email protected] --force.
sudo apt install openjdk-8-jdk
You can follow the tutorial from the official Maven site. Remember that you need to install the 3.5.x version.
The simplest way to start developing on Eclipse Kura is to use an Eclipse Installer based setup. To correctly setup the environment, proceed as follows:
At first startup Eclipse IDE will checkout the code, perform a full build and configure a few Working Sets. Now you are ready to develop on Eclipse Kura.
To raise an issue, please report a bug on GitHub issues.
Currently, the emulator web ui is not properly working on Windows so, with your setup, you will be able to build and deploy you applications, but not be able to use the Eclipse IDE based Kura emulator.
The full build of Kura is only supported for Linux and Mac Os based systems.
Currently the maven build on Windows requires to disable the tests and will fail when it tries to create the installers for the target platforms.
Eclipse Kura provides pre-built installers for common development boards. Check the following link to download the desired installers.
Eclipse Kura is available also as a Docker container
To easily run, use:
docker run -d -p 8080:8080 -t eclipse/kura.