Module: | SelfSystem |
Name: | OpenSCADA system own protocol |
Type: | Protocol |
Source: | prot_SelfSystem.so |
Version: | 1.2 |
Author: | Roman Savochenko, Maxim Lysenko (2012) |
Description: | Provides own OpenSCADA protocol based at XML and one's control interface. |
License: | GPL |
The module of the transport protocol SelfSystem is designed to reflect the interface management of OpenSCADA system to the network, to provide an opportunity to the external systems to interact with the OpenSCADA system, as well as for the interaction of the stations constructed on the basis of OpenSCADA among themselves.
The first experience of using the functions of this module was the support of remote configuration of one OpenSCADA station from another through the network, by means of the module of configuration QTCfg.
The protocol is built on the mechanism of request-response. Requests and their structure are summarized in Table 1.
Table 1 Structure of the request.
Requests |
REQ: "SES_OPEN {user} {password}\n" REZ OK: "REZ 0 {ses_id}\n" REZ ERR: "REZ 1 Auth error. User or password error.\n" The request for the opening of the session on behalf of the user user with the password password. In case of success it will be received the session identifier, otherwise — the code and the error message. |
REQ: "SES_CLOSE {ses_id}\n" REZ: "REZ 0\n" Closure of the session. The result is always successful. |
REQ 1: "REQ {ses_id} {req_size}\n{control interface command}" REQ 2: "REQDIR {user} {password} {req_size}\n{control interface command}" REZ OK: "REZ 0 {rez_size}\n{control interface command result}" REZ ERR: "REZ 1 Auth error. Session is not valid.\n" REZ ERR: "REZ 2 {control interface err}" The main requests: the session and the direct are implemented by sending the standard command of OpenSCADA control interface to the field control interface command. As the result will it be received an answer from the management interface control interface command result or one of the errors. |
REQ: "ERR REQUEST" REZ ERR: "REZ 3 Command format error.\n" Any invalid request. |
Protocol supports the package of traffic. Only the data of the management interface is to be packed control interface command and control interface command result. The fact of the arrival of packaged request or response is determined by the negative value of the size of the request req_size or response rez_size.
To control the parameters of the package the module provides the configuration form (Fig. 1).
On this form, you can:
The internal structure if formed by means of the tree of XML requests of the language OpenSCADA control interface with the reservation of the redundant additional service attributes of the protocol in the root tag:
The result of the request is the tree of XML language of the management interface of OpenSCADA.
2011-04-05 17:55:16 | (32 Kb) | protocol_selfsystem_en.odt | The document in OpenDocument format | |
2015-05-05 17:18:02 | (86 Kb) | self_compr_en.png | The form of the configuration of the module parameters. |