Difference between revisions of "WISE-PaaS 2.0 EI-Agent"
(Add link to WISEAgent Sample Handler) |
(rename EI-Agent Command Format to Handshake Protocol) |
||
Line 24: | Line 24: | ||
== Architecture == | == Architecture == | ||
− | == [[EI-Agent_Command_Format]] == | + | == [[EI-Agent_Command_Format|EI-Agent H]][[EI-Agent_Command_Format|andshake Protocol]] == |
− | Denfine the MQTT publish/subscribe topics and payload data | + | Denfine the MQTT publish/subscribe topics and payload data JSON format. |
== EI-Agent Sample Client == | == EI-Agent Sample Client == |
Revision as of 01:43, 17 May 2017
EI-Agent – a software development framework to communicate between device and IoT/EI-PaaS Server.
Advantech provides a software development framework to communicate and exchange information between a device and IoT/EI-PaaS Server, called a EI-Agent framework.
The EI-Agent framework provides a rich set of user-friendly, intelligent and integrated interfaces, which speeds development, enhances security and makes agent application easier and simpler to communicate with IoT/EI-PaaS Server.
The framework has three benefits:
- Standardization - The communication protocol is based on the MQTT protocol to communicate and exchange data with WISE-PaaS/RMM Server. The IoT sensor data report format is following the IPSO Spec. in JSON format.
- Portability - Whole framework is written in C language and follow the ANSI C Standard, that C compilers are available for most systems and are often the first compiler provided for a new system.
- Scalability - The WISE Agent Framework is functional partitioning into discrete scalable, reusable modules, and plug & playable.
For scalability, Advantech implements several Software Modules to access sensor data or control target device, we called Plugins (or Handlers we called before).
Each plugin can be designed to handle specific jobs, such as:
- Sensor Plugin: the plugin access sensor data through Sensor driver or 3rd party library, or
- Remote Control Plugin: the plugin execute remote command on target device.
Based on those Plugins, Advantech also defined a set of APIs, called Plugin (Handler) APIs, to support custom plugins implementation.
User can implement their own Handler with these Plugin (Handler) APIs to access their sensor data or control their devices and plugged by WISE Agent to communicate with RMM Server.
Contents
Architecture
EI-Agent Handshake Protocol
Denfine the MQTT publish/subscribe topics and payload data JSON format.
EI-Agent Sample Client
- Sample Client - Simple client application example.
EI-Agent Sample Handler
- ModbusSample - only support Modbus-TCP and Modbus-RTU.
ModbusSample is one of handlers in EI-Agent framework and is used to collect devices’ data based on Modbus TCP or RTU protocol.
The library used in ModbusSample is libmodbus, which is a 3rd party free library to send/receive data according to the Modbus protocol.
This library is written in C and supports RTU (serial) and TCP (Ethernet) communication. The license of libmodbus is LGPL v2.1v.