Skip to content

glcj/Merlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

00_01_intro.png

A brief introduction

Merlot (Karaf for Automation), is the implementation of a communications gateway for process automation using open source tools. Merlot is based on Karaf [1] a container for Java objects and applications based on OSGi technology [2].

In Merlot the code written for the development of gateway will be open source. This code will be optimized for use in embedded devices, and testing of IoT technology with Siemens S7 controllers.

During the development will benefit each of the features available in Karaf, for example: Hot deployment, Dynamic configuration, Logging System, Provisioning, Native OS integration, Shell Extensible console, Remote acces, Security framework, Managing instances, etc.

In short Merlot it comes as a communications gateway, specifically aimed at industrial applications and developed from scratch from the Karaf platform.

About the architecture of Merlot

The following image is a quick view of the fundamental components for which we will make a brief description

00_02_arquitectura.png

Of the components of Merlot:

  • Quartz [3]: is the component for scheduling tasks within Merlot. Karaf provides a "feature" that allows transparently urge as well as an OSGi service to the planned execution of tasks. This will be our next item of business.

  • ActiveMQ [4]: This is a broker for messaging, supports multiple protocols (for example MQTT) for the server and client libraries for multiple languages. ActiveMQ is the key to the integration of components based on IoT base.

  • Virtual Device: Since the aim of Merlot is to serve as a gateway for communication in process automation, the model of virtual devices associated with Merlot will be based on a MODBUS device type records. This concept will be used for shared memory model between the various components.

  • Netty [5]: This library enables the development of high-performance servers and very efficient in the management of host resources.

  • MODBUS Server: access to Merlot from field devices, either from a PLC, SCADA or HMI, can be performed using this protocol, one of the simplest and most used in industry. The server will be based on so Netty is expected to be very efficient in performance.

  • RTB (Real Time Database): I think this is a more complicated and difficult to implement parts. It is important to note that at no time think will reinvent the wheel in this regard, so we'll use a project called pvDatabaseJava, developed for the EPICS project. There are tons of documents, presentations and tutorials. In another publication of the blog we will summarize these services

  • H2 [6]: For data persistence and Remote Access configuration will use this database. The evaluations resource consumption is minimal so it is my leading candidate. The implementation of the database is done using JPA, so persistence is actually transparent.

  • EpicsCoreJava [7]: The component for the development of the database