Difference between revisions of "WISE-Agent"
Line 1: | Line 1: | ||
− | ==Introduction== | + | == Introduction == |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ==Architecture== | + | WISE Agnet – a software development framework to communicate between device and RMM Server.<br/>Advantech provides a software development framework to communicate and exchange information between a device and RMM Server, called a WISE Agent framework.<br/>The WISE 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 RMM Server.<br/>The framework has three benefits: |
− | TBD<br /> | + | |
− | [[File:WISEAgentArchitecture.png|760x600px|WISEAgent SW Architecture]] | + | *Standardization - The communication protocol is based on the [http://mqtt.org/ MQTT protocol] to communicate and exchange data with WISE-PaaS/RMM Server. The IoT sensor data report format is following the [http://www.ipso-alliance.org/ IPSO Spec.] in [http://www.json.org/ JSON format]. |
+ | *Portability - Whole framework is written in C language and follow the [https://en.wikipedia.org/wiki/ANSI_C 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. | ||
+ | |||
+ | == Architecture == | ||
+ | |||
+ | TBD<br/>[[File:WISEAgentArchitecture.png|760x600px|WISEAgent SW Architecture]] | ||
+ | |||
+ | == Handlers == | ||
+ | |||
+ | In RMM Agent we provide several handlers and can be classified in three different categories: | ||
+ | |||
+ | *Monitoring Handlers - sensor data monitoring and control. | ||
− | |||
− | |||
− | |||
Such as: Hard-disk Monitor, SUSI Control, Network Monitor, Process Monitor, IoT Gateway and Modbus. | Such as: Hard-disk Monitor, SUSI Control, Network Monitor, Process Monitor, IoT Gateway and Modbus. | ||
− | * Control Handlers - remote control target device. | + | |
+ | *Control Handlers - remote control target device. | ||
+ | |||
Such as: Power On/Off, Remote KVM, Screenshot, Terminal, Protection and Recovery. | Such as: Power On/Off, Remote KVM, Screenshot, Terminal, Protection and Recovery. | ||
− | * Agent Improvement Handlers - to increase the agent reliability or functionality. | + | |
+ | *Agent Improvement Handlers - to increase the agent reliability or functionality. | ||
+ | |||
Such as: Server Redundancy. | Such as: Server Redundancy. | ||
− | ==[[WISE-Agent Sample Handler]]== | + | == [[WISE-Agent_Sample_Handler|WISE-Agent Sample Handler]] == |
+ | |||
*'''Modbus Handler''' - version 2.0 only support Modbus-TCP, Modbus-RTU supported since version 3.0. | *'''Modbus Handler''' - version 2.0 only support Modbus-TCP, Modbus-RTU supported since version 3.0. | ||
− | |||
− | |||
− | |||
− | The flow of WISE Agent communicating with a device based on Modbus by Modbus handler is described as follows. <br /> | + | '''Modbus handler''' is one of handlers in WISE Agent framework and is used to collect devices’ data based on Modbus TCP protocol.<br/>The library used in Modbus handler is [http://libmodbus.org/documentation/ libmodbus], which is a 3rd party free library to send/receive data according to the Modbus protocol.<br/>This library is written in C and supports RTU (serial) and TCP (Ethernet) communication. The license of libmodbus is LGPL v2.1v. |
− | The WISE Agent uses the Modbus handler as the interface to handle all the communication with the device based on Modbus protocol. | + | |
+ | The flow of WISE Agent communicating with a device based on Modbus by Modbus handler is described as follows.<br/>The WISE Agent uses the Modbus handler as the interface to handle all the communication with the device based on Modbus protocol. | ||
*'''Steps of Modbus Handler:''' | *'''Steps of Modbus Handler:''' | ||
Line 36: | Line 41: | ||
**'''Step4''' If you no more need the communication, WISE Agent can disconnect with the device. | **'''Step4''' If you no more need the communication, WISE Agent can disconnect with the device. | ||
− | [[File:Modbus-Step.png|760x600px|Steps of Modbus handler]] | + | [[File:Modbus-Step.png|760x600px|Steps of Modbus handler]] |
+ | |||
+ | == [[WISE-Agent_Verification_Tool|WISE-Agent Verification Tool]] == | ||
− | |||
*Agent Tester | *Agent Tester | ||
Revision as of 09:24, 30 September 2016
Contents
Introduction
WISE Agnet – a software development framework to communicate between device and RMM Server.
Advantech provides a software development framework to communicate and exchange information between a device and RMM Server, called a WISE Agent framework.
The WISE 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 RMM 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.
Architecture
Handlers
In RMM Agent we provide several handlers and can be classified in three different categories:
- Monitoring Handlers - sensor data monitoring and control.
Such as: Hard-disk Monitor, SUSI Control, Network Monitor, Process Monitor, IoT Gateway and Modbus.
- Control Handlers - remote control target device.
Such as: Power On/Off, Remote KVM, Screenshot, Terminal, Protection and Recovery.
- Agent Improvement Handlers - to increase the agent reliability or functionality.
Such as: Server Redundancy.
WISE-Agent Sample Handler
- Modbus Handler - version 2.0 only support Modbus-TCP, Modbus-RTU supported since version 3.0.
Modbus handler is one of handlers in WISE Agent framework and is used to collect devices’ data based on Modbus TCP protocol.
The library used in Modbus handler 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.
The flow of WISE Agent communicating with a device based on Modbus by Modbus handler is described as follows.
The WISE Agent uses the Modbus handler as the interface to handle all the communication with the device based on Modbus protocol.
- Steps of Modbus Handler:
- Step1 Modbus handler reads in INI file and is ready to set up connection with device according to the configuration in the INI file.
- Step2 Modbus handler establishes a Modbus connection
- Step3 WISE Agent communicates with the device.
- Step4 If you no more need the communication, WISE Agent can disconnect with the device.
WISE-Agent Verification Tool
- Agent Tester