IoT Smart Factory Hackathon: CodeStarter @ Red Hat Summit

3

IoT Smart Factory Hackathon: CodeStarter @ Red Hat Summit  #IoT #Cloud #BigData

  • For the CodeStarter, the Raspberry Pi was connected to:

    The intelligence on the edge was provided by the Eurotech ReliaGATE 20-26, a powerful IoT gateway that was running the recently announced Eclipse Kura 3.0, the edge computing platform for IoT, that introduces many new features for the edge computing, like Eclipse Kura Wires, an implementation of visual programming that can be used to simplify the development of solutions on the edge.

  • During the first phase, the participants could experiment with real IoT hardware and see how a Kura Wires graph could control, via OPC-UA, the sensors, and actuators connected to the Raspberry Pi that was acting as an industrial PLC.
  • For businesses looking for commercially supported offerings of the community projects being used at the CodeStarter here is the project-to-product mapping:

    At the CodeStarter event at Red Hat Summit, participants built an end-to-end IoT solution leveraging the latest IT and OT (Operations Technologies).

  • Based on the Industry 4.0 use case of a smart factory, the CodeStarter setup included Eurotech ReliaGATE 20-26, a powerful IoT gateway running the Eclipse Kura 3.0, the edge computing platform for IoT.
  • The participants were able to experiment with the complete solution using real IoT hardware, replicate the completed solution in a virtual environment and finally, use modern app development practices using OpenShift Container Platform.

At the May 2017 Red Hat Summit, IoT devs banded together to create an end-to-end smart factory solution. Check out their architecture, design, and source code.

@craigbrownphd: IoT Smart Factory Hackathon: CodeStarter @ Red Hat Summit #IoT #Cloud #BigData

At the Red Hat Summit in Boston last month, one IoT event stood out from the rest – a CodeStarter hackathon that brought together 80+ IoT enthusiasts to learn, tinker, and build an end-to-end IoT solution. The result was a complete IoT application that seamlessly integrates across IT and OT (Operations Technologies).

The CodeStarter was based on the Industry 4.0 use case of a smart factory: The physical systems are abstracted in a digital form and interoperate with other systems through open APIs. In addition, the decision-making is decentralized, i.e. moves closer to the edge and is automated through pre-defined rules. The ability to make decisions at the edge allows urgent problems to be solved in near real time, resulting in factory equipment and personnel safety and improved efficiency.

The CodeStarter setup included the following components:

The Raspberry Pi was connected to sensors and actuators, acting as an emulator of a real factory Programmable Logic Controller (PLC).

For the CodeStarter, the Raspberry Pi was connected to:

The intelligence on the edge was provided by the Eurotech ReliaGATE 20-26, a powerful IoT gateway that was running the recently announced Eclipse Kura 3.0, the edge computing platform for IoT, that introduces many new features for the edge computing, like Eclipse Kura Wires, an implementation of visual programming that can be used to simplify the development of solutions on the edge.

Furthermore, Kura 3.0 introduces a set of changes to simplify the management and the connection to multiple cloud services, including the open source IoT cloud platform Eclipse Kapua.

Finally, the latest version of Kura introduces a completely new set of APIs to ease the interaction with sensors, actuators and PLCs over fieldbus protocols (e.g. OPC-UA).

After an initial introduction of the new features and a description of the scenario, the CodeStarter participants were invited to:

Eclipse Kura Wires is a visual programming tool for creating data flow built on top of the usual Kura Java/OSGi stack. It eases application development by allowing the developer to express the application logic as a directed graph, without the need to interact with the underlying Java code and device complexities. In this way, the developer, interacting with simple nodes and connections, can easily prototype a solution working at a high level of abstraction and without sacrificing flexibility.

The following components of Kura Wires were used for the CodeStarter:

In addition, Kura Wires used the following components of Kura:

For more information about Kura Wires, you can visit Kura Wires: introduction and references.

During the first phase, the participants could experiment with real IoT hardware and see how a Kura Wires graph could control, via OPC-UA, the sensors, and actuators connected to the Raspberry Pi that was acting as an industrial PLC.

The Kura Wires graph could trigger the fan, light or buzzer per the following conditions:

A Virtual Box-based VM image provided all the components needed to build the data flow. To configure and test the setup in the virtual environment, the participants had to:

The participants implemented the same rules they experienced with real IoT hardware. They had, also, the possibility to earn bonus points by modifying their graphs and adding the following:

Red Hat OpenShift Container Platform enables developers to rapidly create, modify, and deploy applications on demand. At the CodeStarter, sample apps (Java and JavaScript) were provided to access and display sensor data using IoT services provided by Kapua (running on OpenShift as well). These apps can also trigger the actuators via the Kura API.

Developers configured, built, and deployed the sample app on OpenShift through the step by step exercise:

Developing containerized applications allows developers to write an IoT application once that could be deployed anywhere: from cloud to edge. As containers consist of infrastructure and application components, it allows multiple teams to collaborate on container creation. These containerized applications can be continually integrated and deployed, bringing the benefits of modern app dev practices to IoT.

As with any good open source project, all the code and documentation is available on GitHub for anyone to recreate the CodeStarter experience. In order to run the CodeStarter, all you’ll need to do is provision an instance of Kapua cloud service. Setting up Kapua on the OpenShift container platform is fairly straightforward (thanks to Henryk’s instructions).

Also, at the CodeStarter event, the commercially supported IoT Gateway (Eurotech ReliaGATE 20-26) was used to connect with edge devices but is not a mandatory requirement for the tutorial. Eurotech offers a family of IoT gateways for your IoT projects.

For businesses looking for commercially supported offerings of the community projects being used at the CodeStarter here is the project-to-product mapping:

At the CodeStarter event at Red Hat Summit, participants built an end-to-end IoT solution leveraging the latest IT and OT (Operations Technologies). Based on the Industry 4.0 use case of a smart factory, the CodeStarter setup included Eurotech ReliaGATE 20-26, a powerful IoT gateway running the Eclipse Kura 3.0, the edge computing platform for IoT. Kura provided interaction with sensors, actuators and PLCs over fieldbus protocols (e.g. OPC-UA).

The participants were able to experiment with the complete solution using real IoT hardware, replicate the completed solution in a virtual environment and finally, use modern app development practices using OpenShift Container Platform.

For those interested in recreating the CodeStarter experience, all the code and documentation is available on GitHub.

Though many people were involved, special thanks go to Benjamin Cabé  (Eclipse Foundation) and David Woodard, Matteo Maiero, Marco Carrer (Eurotech) and James Falkner, Chris Custine, David Bericat (Red Hat) for conceptualizing and putting together the event.

I’d like to thank Matteo Maiero, Software Engineer, Eurotech who helped me with this post.

IoT Smart Factory Hackathon: CodeStarter @ Red Hat Summit

Let’s block ads! (Why?)

IoT Newsletter

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply