CN111176242A - Monitoring data transmission method and device of distributed control system - Google Patents

Monitoring data transmission method and device of distributed control system Download PDF

Info

Publication number
CN111176242A
CN111176242A CN202010066526.5A CN202010066526A CN111176242A CN 111176242 A CN111176242 A CN 111176242A CN 202010066526 A CN202010066526 A CN 202010066526A CN 111176242 A CN111176242 A CN 111176242A
Authority
CN
China
Prior art keywords
data
monitoring
preset
monitoring data
bit number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010066526.5A
Other languages
Chinese (zh)
Other versions
CN111176242B (en
Inventor
陆卫军
顾耀挺
陈银桃
王有为
鲁沈婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Supcon Technology Co Ltd
Original Assignee
Zhejiang Supcon Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Supcon Technology Co Ltd filed Critical Zhejiang Supcon Technology Co Ltd
Priority to CN202010066526.5A priority Critical patent/CN111176242B/en
Publication of CN111176242A publication Critical patent/CN111176242A/en
Application granted granted Critical
Publication of CN111176242B publication Critical patent/CN111176242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • G05B19/4186Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication by protocol, e.g. MAP, TOP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a monitoring data transmission method and a monitoring data transmission device of a distributed control system, wherein the method comprises the following steps: when receiving an equipment operation data packet, determining data protocol information of the equipment operation data packet; judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information; if the equipment operation data packet meets the transmission condition, mapping each original data in a data area of the equipment operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data; generating a monitoring data message according to each monitoring data; and sending the monitoring data message to a preset cloud server side. Compared with the traditional external providing mode through OPC software, the method can effectively avoid data leakage risks caused by potential security loopholes and high-risk port opening in an operating system environment depending on the OPC software, and further guarantee the security of data.

Description

Monitoring data transmission method and device of distributed control system
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a monitoring data transmission method and apparatus for a distributed control system.
Background
With the development of automation Control technology, many large enterprises generally adopt a Control System integrating management and Control, wherein the most widely used is a Distributed Control System (DCS), which is a new generation of instrument Control System based on a microprocessor and adopting a design principle of decentralized Control function, centralized display operation, and consideration of both sub-Control and self-governing and comprehensive coordination.
The DCS is generally in a closed state due to its characteristics, and is low in external openness, but with the development of the industrial internet of things technology, people need to collect more industrial production data to improve the production efficiency and production supervision of the process industry. In the prior art, DCS real-time data is mainly provided externally through OPC (OLE for process Control) software, but because an operating system environment on which OPC software depends may have potential security holes, there is a risk of leakage in the data transmission process.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a monitoring data transmission method of a distributed control system, which can ensure the safety of data.
The invention also provides a monitoring data transmission device of the distributed control system, which is used for ensuring the realization and the application of the method in practice.
A monitoring data transmission method of a distributed control system comprises the following steps:
when receiving an equipment operation data packet, determining data protocol information of the equipment operation data packet;
judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information;
if the equipment operation data packet meets the transmission condition, mapping each original data in a data area of the equipment operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data;
generating a monitoring data message according to each monitoring data;
and sending the monitoring data message to a preset cloud server side.
Optionally, the method for determining whether the device operation data packet meets the preset transmission condition according to the data protocol information includes:
determining a protocol type of the data protocol information;
judging whether the protocol type is matched with a preset protocol type to be acquired or not;
if so, determining that the data protocol information meets the transmission condition;
and if not, determining that the data protocol information does not meet the transmission condition.
Optionally, the method may map each original data in the data area of the device operation data packet according to a preset mapping rule to obtain the monitoring data corresponding to each original data, and includes:
determining data identification information of each original data in a data area of the equipment operation data packet, wherein the data identification information comprises the bit number type and the monitoring bit number of the data to which the data identification information belongs;
for each original data, determining a mapping bit number queue of the data according to the bit number type of the original data, determining a data buffer position corresponding to the data in the mapping bit number queue according to the monitoring bit number, and mapping the data to the data buffer position to obtain the monitoring data corresponding to the original data.
Optionally, the method for generating the monitoring data packet according to each piece of monitoring data includes:
and carrying out format conversion on each monitoring data according to a preset format conversion rule, and filling each monitoring data after format conversion into a preset message template to obtain a monitoring data message.
Optionally, the sending the monitoring data packet to a preset cloud server includes:
judging whether the current uploading period is preset or not;
if not, when the uploading period is reached, encrypting the monitoring data message by using a preset encryption algorithm, and sending the encrypted monitoring data message to a preset cloud server terminal.
A monitoring data transmission apparatus of a distributed control system, comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for determining the data protocol information of a device operation data packet when receiving the device operation data packet;
the judging unit is used for judging whether the equipment operation data packet meets the preset transmission condition according to the data protocol information;
the mapping unit is used for mapping each original data in the data area of the equipment operation data packet according to a preset mapping rule when the equipment operation data packet meets the transmission condition to obtain monitoring data corresponding to each original data;
the generating unit is used for generating a monitoring data message according to each monitoring data;
and the sending unit is used for sending the monitoring data message to a preset cloud server side.
The above apparatus, optionally, the determining unit includes:
the first determining subunit is used for determining the protocol type of the data protocol information;
the first judging subunit is used for judging whether the protocol type is matched with a preset protocol type to be acquired;
the second determining subunit is configured to determine that the data protocol information satisfies the transmission condition under the condition that the protocol type is matched with the protocol type to be acquired;
and the third determining subunit is configured to determine that the data protocol information does not satisfy the transmission condition under the condition that the protocol type does not match the protocol type to be acquired.
The above apparatus, optionally, the mapping unit includes:
a fourth determining subunit, configured to determine data identification information of each original data in a data area of the device operation data packet, where the data identification information includes a bit number type and a monitoring bit number of data to which the data identification information belongs;
the first generating subunit is configured to, for each piece of original data, determine a mapping bit number queue of the data according to a bit number type of the original data, determine a data buffer position corresponding to the data in the mapping bit number queue according to the monitoring bit number, and map the data to the data buffer position to obtain monitoring data corresponding to the original data.
The above apparatus, optionally, the generating unit includes:
and the second generation subunit is used for carrying out format conversion on each monitoring data according to a preset format conversion rule, and filling each monitoring data after the format conversion into a preset message template to obtain a monitoring data message.
The above apparatus, optionally, the sending unit includes:
the second judgment subunit is used for judging whether the current uploading period is preset or not;
and the sending subunit is used for encrypting the monitoring data message by applying a preset encryption algorithm when the uploading period is reached if the monitoring data message is not in the uploading period, and sending the encrypted monitoring data message to a preset cloud server terminal.
Compared with the prior art, the invention has the following advantages:
the invention provides a monitoring data transmission method and a monitoring data transmission device of a distributed control system, wherein when an equipment operation data packet is received, data protocol information of the equipment operation data packet is determined; judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information; if the equipment operation data packet meets the transmission condition, mapping each original data in a data area of the equipment operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data; generating a monitoring data message according to each monitoring data; and sending the monitoring data message to a preset cloud server side. The data security can be guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for monitoring data transmission of a distributed control system according to the present invention;
fig. 2 is a flowchart of another method of monitoring data transmission of a distributed control system according to the present invention;
fig. 3 is a flowchart of another method of monitoring data transmission of a distributed control system according to the present invention;
FIG. 4 is an exemplary diagram of an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a monitoring data transmission device of a distributed control system according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a monitoring data transmission method of a distributed control system, which can be applied to various system platforms, wherein an execution main body of the method can be a processor of a gateway, the gateway can be a computer terminal or various mobile devices, and a flow chart of the method is shown in fig. 1 and specifically comprises the following steps:
s101: and when the obtained equipment operation data packet is obtained, determining the data protocol information of the equipment operation data packet.
The method provided by the embodiment of the invention can acquire the equipment operation data packet through the controller in the DCS, the controller acquires monitoring data through the I/O card, the acquired data is packaged according to a specific protocol and a bit number table to obtain the equipment operation data packet, the equipment operation data packet is sent to the process control network in a broadcasting or multicasting mode, and the gateway acquires the equipment operation data packet sent by the controller through the process control network. The operating system running on the gateway may be an embedded real-time operating system. The invention is not further limited herein and, as the case may be, is within the scope of the invention.
In the method provided by the embodiment of the invention, the process control network is respectively connected with the gateway, the operation station of the DCS, the engineer station of the DCS, the data server and the controller, and the controller is connected with each I/O card.
S102: and judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information.
According to the method provided by the embodiment of the invention, in the process control network, equipment operation data packets of various protocol types may exist, such as DCS real-time data protocol, HTTP data protocol, FTP data protocol and the like. Specifically, whether the device operation data packet meets the transmission condition or not can be judged according to the protocol type of the data protocol information, wherein when the protocol type of the data protocol information is the DCS real-time data protocol, the device operation data packet is judged to meet the transmission condition.
S103: if the equipment operation data packet meets the transmission condition, mapping each original data in the data area of the equipment operation data packet according to a preset mapping rule to obtain the monitoring data corresponding to each original data.
In the method provided by the embodiment of the present invention, if the device operation packet does not satisfy the transmission condition, the device operation packet is discarded.
Specifically, the original data may be mapped to a preset buffer position, and the data in the buffer position may be determined as the monitoring data.
The device operation data packet meeting the transmission condition comprises a packet header and a data area, wherein the packet header comprises protocol information of the device operation data packet, a specific field of the protocol information comprises information of a protocol type, a bit number type, a starting sequence number, an ending sequence number, a data area length and the like of the protocol information, the data area of the device operation data packet comprises a plurality of data, and each data of the data area is device monitoring data corresponding to each monitoring bit number.
S104: and generating a monitoring data message according to each monitoring data.
In the method provided by the embodiment of the invention, the monitoring data can be converted into the formats of JSON or XML and the like, and the monitoring data message is generated according to the monitoring data after format conversion.
S105: and sending the monitoring data message to a preset cloud server side.
In the method provided by the embodiment of the invention, in the process of transmitting the monitoring data message to the cloud server, the monitoring data message can be transmitted to the cloud server in real time, and the monitoring data message can also be periodically sent to the cloud server.
The embodiment of the invention provides a monitoring data transmission method of a distributed control system, which comprises the following steps: when receiving an equipment operation data packet, determining data protocol information of the equipment operation data packet; judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information; if the equipment operation data packet meets the transmission condition, mapping each original data in a data area of the equipment operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data; generating a monitoring data message according to each monitoring data; and sending the monitoring data message to a preset cloud server side. The gateway uses an embedded real-time operating system, no security hole exists in a common operating system, and the application gateway processes the equipment running data.
In the method provided in the embodiment of the present invention, based on the foregoing implementation process, specifically, the determining, according to the data protocol information, whether the device operation data packet meets a preset transmission condition may include, as shown in fig. 2:
s201: determining a protocol type of the data protocol information.
In the method provided by the embodiment of the present invention, the data protocol information may be a protocol type, such as DCS real-time data protocol, HTTP data protocol, FTP data protocol, and the like.
S202: and judging whether the protocol type is matched with a preset protocol type to be acquired.
In the method provided in the embodiment of the present invention, one way of determining whether the protocol type matches the protocol type to be acquired may be: and determining the identification number of the protocol type, and comparing the identification number with the identification number of the protocol type to be acquired.
S203: and if so, determining that the equipment operation data packet meets the transmission condition.
In the method provided by the embodiment of the present invention, when the protocol type matches the protocol type to be acquired, it is determined that the device operation data packet satisfies the transmission condition, and specifically, the protocol type to be acquired may be a DCS real-time data protocol type.
S204: and if not, determining that the equipment operation data packet does not meet the transmission condition.
In the method provided by the embodiment of the present invention, when the identification number corresponding to the protocol type is not consistent with the identification number corresponding to the protocol to be acquired, it is determined that the device operation data packet does not satisfy the transmission condition.
In the method provided by the embodiment of the present invention, the device operation packet may be discarded when the device operation packet does not satisfy the transmission condition.
By applying the method provided by the embodiment of the invention, the data meeting the requirements can be quickly obtained by judging the protocol type.
In the method provided in the embodiment of the present invention, based on the implementation process, specifically, the setting process of the mapping rule includes:
when a configuration instruction is received, determining each data identification information appointed by the configuration instruction in an imported configuration file;
generating mapping bit number queues according to data identification information specified by the configuration instruction;
and allocating a data buffer position for each monitoring bit number in each mapping bit number queue.
In the method provided by the embodiment of the invention, the configuration file comprises data identification information of each monitoring node in the DCS, the configuration file imported by a user through an operation terminal is received, and a configuration instruction sent by the user through the operation terminal is received, wherein the configuration instruction comprises data identification information selected by the user, and each data identification information comprises a bit number type and a monitoring bit number.
Each bit number of each bit number type corresponds to a pre-established data buffer position, as shown in fig. 3, which is an exemplary diagram provided by the present invention illustrating a relationship between each data identification information and a data buffer position, each bit number type corresponds to a vertical queue, each vertical queue comprises each monitoring bit number, and each monitoring bit number corresponds to a data buffer position in a data buffer area; the pkt shown in fig. 3 is a data buffer position, the horizontal direction represents a bit number type, the vertical direction represents a bit number hanging below the corresponding bit number type, and each bit number has a specific buffer area inside for storing captured data.
In the method provided in the embodiment of the present invention, based on the implementation process, specifically, an implementation manner of mapping each original data in the data area of the device operation data packet according to a preset mapping rule to obtain the monitoring data corresponding to each original data may be:
determining data identification information of each data in a data area of the equipment operation data packet, wherein the data identification information comprises the bit number type and the monitoring bit number of the original data to which the data identification information belongs;
for each original data, determining a mapping bit number queue of the original data according to the bit number type of the data, determining a data buffer position corresponding to the original data in the mapping bit number queue according to the monitoring bit number, and mapping the original data to the data buffer position to obtain the monitoring data corresponding to the data identification information.
Specifically, the data area of the device operation data packet includes a plurality of data, each data includes a data identification information, the data identification information includes a bit number type and a monitoring bit number of the data, the bit number type may be a regular AI bit number, a regular AO bit number, a regular DI bit number, a regular DO bit number, and the like, each bit number type may be represented by different characters, for example, the regular AI bit number may be represented by a flag "0", the regular AO bit number may be represented by a flag "1", the regular DI bit number may be represented by a flag "2", and the regular bit number DO may be represented by a user flag "3".
Another implementation manner of mapping the data in the data area of the device operation data packet according to the preset mapping rule to obtain each monitoring data of the device operation data packet may be as follows:
the bit number type of the device operation data packet is obtained from the packet header of the device operation data packet, a corresponding mapping bit number queue is determined according to the bit number type, data in the data area is divided into a plurality of bit numbers, wherein the byte length of the original data corresponding to each bit number is the same, for example, the length of the data area of the device operation data packet is 500, the byte length of the original data is 20 bytes, the current data area has 25 bit numbers, and each original data in the data area is sequentially matched with the mapping bit number queue corresponding to the bit number type, so that each original data is mapped to a corresponding data buffer position.
Specifically, the structure of the device operation packet satisfying the transmission condition is shown in table 1:
Figure BDA0002376123280000091
TABLE 1
Each piece of original data includes configuration information such as a serial number, a control station address, an address, and the like, and actual data, where serial number 1 to the actual data shown in table 1 are one piece of original data, and if the data length in the packet header is 500, the serial number m may be 25.
In the method provided in the embodiment of the present invention, based on the foregoing implementation process, specifically, the generating a monitoring data packet according to each piece of monitoring data includes:
and carrying out format conversion on each monitoring data according to a preset format conversion rule, and filling each monitoring data after format conversion into a preset message template to obtain a monitoring data message.
In the method provided by the embodiment of the present invention, the monitoring data is directly converted into readable or usable format data, such as JSON format data and XML format data, and each converted data is packed, that is, each monitoring data packet is filled into a preset packet template, so as to obtain a monitoring data packet.
In the method provided in the embodiment of the present invention, based on the implementation process, specifically, the sending the monitoring data packet to a preset cloud server includes:
judging whether the current uploading period is preset or not;
if not, when the uploading period is reached, encrypting the monitoring data message by using a preset encryption algorithm, and sending the encrypted monitoring data message to a preset cloud server terminal.
And when the uploading period is reached, uploading the monitoring data message.
If the current time is in the preset uploading period, the monitoring data message can be directly encrypted by using an encryption algorithm, and the encrypted monitoring data message is sent to the cloud server.
Preferably, the encryption algorithm may be a TLS encryption algorithm.
Referring to fig. 4, an exemplary diagram of an embodiment of the present invention includes a cloud server 401, a gateway 402, an engineer station 403, an operator station 404, a data server 405, and a controller 406.
The gateway, the engineer station, the operator station and the data server are respectively connected to the process control network.
The controller is connected with each I/O module and the communication module through an I/O bus.
In practice, the operator station may load the configured bit number table into the controller, and the controller collects the device operation data of each device through each I/O module, for example: the motor temperature of the water pump, the working environment humidity of the equipment and the like.
And the operator station loads the bit number table into the gateway and sends a configuration instruction to the gateway, so that the gateway generates a mapping rule according to the configuration instruction and the bit number table and stores the mapping rule in a gateway memory.
The controller packages the collected equipment operation data to obtain an equipment operation data packet, and transmits the equipment operation data packet to the control network in a broadcasting or multicasting mode, and the gateway determines the data protocol information of the equipment operation data packet when receiving the equipment operation data packet through the control network; judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information; if the equipment operation data packet meets the transmission condition, mapping each original data of the data area of the equipment operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data; generating a monitoring data message according to each monitoring data; and sending the monitoring data message to a preset cloud server side.
The gateway may send the message to a preset cloud server through a network, where the network according to the embodiment of the present invention is a medium providing a communication link, and the network may include various connection types, such as a wired connection, a wireless communication link, or an optical fiber cable.
It should be understood that the number of gateways, controllers, operator stations, data servers, and engineer stations shown in fig. 4 is merely illustrative, and that there may be multiple gateways, controllers, operator stations, data servers, and engineer stations as desired.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a monitoring data transmission device for a distributed control system, which is used to implement the method in fig. 1 specifically, and the monitoring data transmission device for a distributed control system provided in the embodiment of the present invention may be applied to a security management platform server, and a schematic structural diagram of the monitoring data transmission device is shown in fig. 5, and specifically includes:
a receiving unit 501, configured to determine, when receiving an apparatus operation data packet, data protocol information of the apparatus operation data packet;
a determining unit 502, configured to determine whether the device operation data packet meets a preset transmission condition according to the data protocol information;
a mapping unit 503, configured to map, according to a preset mapping rule, each piece of original data in a data area of the device operation data packet when the device operation data packet meets the transmission condition, to obtain monitoring data corresponding to each piece of original data;
a generating unit 504, configured to generate a monitoring data packet according to each piece of monitoring data;
a sending unit 505, configured to send the monitoring data packet to a preset cloud server.
The embodiment of the invention provides a monitoring data transmission device of a distributed control system, which comprises: when receiving an equipment operation data packet, determining data protocol information of the equipment operation data packet; judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information; if the equipment operation data packet meets the transmission condition, mapping each original data in a data area of the equipment operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data; generating a monitoring data message according to each monitoring data; and sending the monitoring data message to a preset cloud server side. The data security can be guaranteed.
In an embodiment of the present invention, based on the above scheme, optionally, the determining unit 502 includes:
the first determining subunit is used for determining the protocol type of the data protocol information;
the first judging subunit is used for judging whether the protocol type is matched with a preset protocol type to be acquired;
the second determining subunit is configured to determine that the data protocol information satisfies the transmission condition under the condition that the protocol type is matched with the protocol type to be acquired;
and the third determining subunit is configured to determine that the data protocol information does not satisfy the transmission condition under the condition that the protocol type does not match the protocol type to be acquired.
In an embodiment provided by the present invention, based on the above scheme, optionally, the mapping unit 503 includes:
a fourth determining subunit, configured to determine data identification information of each original data in a data area of the device operation data packet, where the data identification information includes a bit number type and a monitoring bit number of data to which the data identification information belongs;
the first generating subunit is configured to, for each piece of original data, determine a mapping bit number queue of the data according to a bit number type of the original data, determine a data buffer position corresponding to the data in the mapping bit number queue according to the monitoring bit number, and map the data to the data buffer position to obtain monitoring data corresponding to the original data.
In an embodiment provided by the present invention, based on the above scheme, optionally, the generating unit 504 includes:
and the second generation subunit is used for carrying out format conversion on each monitoring data according to a preset format conversion rule, and filling each monitoring data after the format conversion into a preset message template to obtain a monitoring data message.
In an embodiment provided by the present invention, based on the above scheme, optionally, the sending unit 505 includes:
the second judgment subunit is used for judging whether the current uploading period is preset or not;
and the sending subunit is used for encrypting the monitoring data message by applying a preset encryption algorithm when the uploading period is reached if the monitoring data message is not in the uploading period, and sending the encrypted monitoring data message to a preset cloud server terminal.
The specific principle and the implementation process of each unit and each module in the monitoring data transmission device of the distributed control system disclosed in the embodiment of the present invention are the same as the monitoring data transmission method of the distributed control system disclosed in the embodiment of the present invention, and reference may be made to the corresponding parts in the monitoring data transmission method of the distributed control system provided in the embodiment of the present invention, which are not described herein again.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the device where the storage medium is located is controlled to execute the monitoring data transmission method of the distributed control system.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 6, which specifically includes a memory 601 and one or more instructions 602, where the one or more instructions 602 are stored in the memory 601 and configured to be executed by one or more processors 603 to perform the following operations on the one or more instructions 602:
when receiving an equipment operation data packet, determining data protocol information of the equipment operation data packet;
judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information;
if the equipment operation data packet meets the transmission condition, mapping each original data in a data area of the equipment operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data;
generating a monitoring data message according to each monitoring data;
and sending the monitoring data message to a preset cloud server side.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The monitoring data transmission method of the distributed control system provided by the invention is described in detail, a specific example is applied in the method to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A monitoring data transmission method of a distributed control system is characterized by comprising the following steps:
when receiving an equipment operation data packet, determining data protocol information of the equipment operation data packet;
judging whether the equipment operation data packet meets preset transmission conditions or not according to the data protocol information;
if the equipment operation data packet meets the transmission condition, mapping each original data in a data area of the equipment operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data;
generating a monitoring data message according to each monitoring data;
and sending the monitoring data message to a preset cloud server side.
2. The method according to claim 1, wherein the determining whether the device operation packet satisfies a preset transmission condition according to the data protocol information includes:
determining a protocol type of the data protocol information;
judging whether the protocol type is matched with a preset protocol type to be acquired or not;
if so, determining that the data protocol information meets the transmission condition;
and if not, determining that the data protocol information does not meet the transmission condition.
3. The method according to claim 1, wherein mapping each original data in a data area of the device operation data packet according to a preset mapping rule to obtain monitoring data corresponding to each original data comprises:
determining data identification information of each original data in a data area of the equipment operation data packet, wherein the data identification information comprises the bit number type and the monitoring bit number of the data to which the data identification information belongs;
for each original data, determining a mapping bit number queue of the data according to the bit number type of the original data, determining a data buffer position corresponding to the data in the mapping bit number queue according to the monitoring bit number, and mapping the data to the data buffer position to obtain the monitoring data corresponding to the original data.
4. The method according to claim 1, wherein the generating a monitoring data packet according to each monitoring data includes:
and carrying out format conversion on each monitoring data according to a preset format conversion rule, and filling each monitoring data after format conversion into a preset message template to obtain a monitoring data message.
5. The method according to claim 1, wherein the sending the monitoring data packet to a preset cloud server side includes:
judging whether the current uploading period is preset or not;
if not, when the uploading period is reached, encrypting the monitoring data message by using a preset encryption algorithm, and sending the encrypted monitoring data message to a preset cloud server terminal.
6. A monitoring data transmission device of a distributed control system, comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for determining the data protocol information of a device operation data packet when receiving the device operation data packet;
the judging unit is used for judging whether the equipment operation data packet meets the preset transmission condition according to the data protocol information;
the mapping unit is used for mapping each original data in the data area of the equipment operation data packet according to a preset mapping rule when the equipment operation data packet meets the transmission condition to obtain monitoring data corresponding to each original data;
the generating unit is used for generating a monitoring data message according to each monitoring data;
and the sending unit is used for sending the monitoring data message to a preset cloud server side.
7. The apparatus according to claim 6, wherein the determining unit comprises:
the first determining subunit is used for determining the protocol type of the data protocol information;
the second judgment subunit is used for judging whether the protocol type is matched with a preset protocol type to be acquired;
the second determining subunit is configured to determine that the data protocol information satisfies the transmission condition under the condition that the protocol type is matched with the protocol type to be acquired;
and the third determining subunit is configured to determine that the data protocol information does not satisfy the transmission condition under the condition that the protocol type does not match the protocol type to be acquired.
8. The apparatus of claim 6, wherein the mapping unit comprises:
a fourth determining subunit, configured to determine data identification information of each original data in a data area of the device operation data packet, where the data identification information includes a bit number type and a monitoring bit number of data to which the data identification information belongs;
the first generating subunit is configured to, for each piece of original data, determine a mapping bit number queue of the data according to a bit number type of the original data, determine a data buffer position corresponding to the data in the mapping bit number queue according to the monitoring bit number, and map the data to the data buffer position to obtain monitoring data corresponding to the original data.
9. The apparatus of claim 6, wherein the generating unit comprises:
and the second generation subunit is used for carrying out format conversion on each monitoring data according to a preset format conversion rule, and filling each monitoring data after the format conversion into a preset message template to obtain a monitoring data message.
10. The apparatus of claim 6, wherein the sending unit comprises:
the first judgment subunit is used for judging whether the current uploading period is preset or not;
and the sending subunit is used for encrypting the monitoring data message by applying a preset encryption algorithm when the uploading period is reached if the monitoring data message is not in the uploading period, and sending the encrypted monitoring data message to a preset cloud server terminal.
CN202010066526.5A 2020-01-20 2020-01-20 Monitoring data transmission method and device of distributed control system Active CN111176242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010066526.5A CN111176242B (en) 2020-01-20 2020-01-20 Monitoring data transmission method and device of distributed control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010066526.5A CN111176242B (en) 2020-01-20 2020-01-20 Monitoring data transmission method and device of distributed control system

Publications (2)

Publication Number Publication Date
CN111176242A true CN111176242A (en) 2020-05-19
CN111176242B CN111176242B (en) 2021-07-23

Family

ID=70648172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010066526.5A Active CN111176242B (en) 2020-01-20 2020-01-20 Monitoring data transmission method and device of distributed control system

Country Status (1)

Country Link
CN (1) CN111176242B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770099A (en) * 2020-06-29 2020-10-13 浙江中控技术股份有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN115412601A (en) * 2022-08-26 2022-11-29 浙江中控技术股份有限公司 Data acquisition method and device, electronic equipment and nonvolatile storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050130605A1 (en) * 2003-12-12 2005-06-16 Karschnia Robert J. Bus powered wireless transmitter
CN102985883A (en) * 2009-12-10 2013-03-20 埃森哲环球服务有限公司 Energy facility control system
CN102984757A (en) * 2012-11-16 2013-03-20 感知集团有限公司 Gateway data processing method and gateway data processing device for Internet of Things
US20150177733A1 (en) * 2012-07-12 2015-06-25 Abb Research Ltd Method and sensor node network interface system for wireless control of an industrial process
CN105446707A (en) * 2014-07-09 2016-03-30 杭州海康威视系统技术有限公司 Data conversion method
CN108663088A (en) * 2018-05-18 2018-10-16 苏州大学 Intelligent photovoltaic power station distribution cloud monitors system
CN109005082A (en) * 2018-07-03 2018-12-14 中国人民解放军国防科技大学 Method and device for capturing Ethernet message by using CRC (Cyclic redundancy check) field
CN109639793A (en) * 2018-12-10 2019-04-16 广东浪潮大数据研究有限公司 A kind of cluster NAS system monitoring method, device, equipment and medium
CN110320873A (en) * 2019-07-05 2019-10-11 武汉魅客科技有限公司 A kind of real-time three-dimensional presentation system based on distributed sensor

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050130605A1 (en) * 2003-12-12 2005-06-16 Karschnia Robert J. Bus powered wireless transmitter
CN102985883A (en) * 2009-12-10 2013-03-20 埃森哲环球服务有限公司 Energy facility control system
US20150177733A1 (en) * 2012-07-12 2015-06-25 Abb Research Ltd Method and sensor node network interface system for wireless control of an industrial process
CN102984757A (en) * 2012-11-16 2013-03-20 感知集团有限公司 Gateway data processing method and gateway data processing device for Internet of Things
CN105446707A (en) * 2014-07-09 2016-03-30 杭州海康威视系统技术有限公司 Data conversion method
CN108663088A (en) * 2018-05-18 2018-10-16 苏州大学 Intelligent photovoltaic power station distribution cloud monitors system
CN109005082A (en) * 2018-07-03 2018-12-14 中国人民解放军国防科技大学 Method and device for capturing Ethernet message by using CRC (Cyclic redundancy check) field
CN109639793A (en) * 2018-12-10 2019-04-16 广东浪潮大数据研究有限公司 A kind of cluster NAS system monitoring method, device, equipment and medium
CN110320873A (en) * 2019-07-05 2019-10-11 武汉魅客科技有限公司 A kind of real-time three-dimensional presentation system based on distributed sensor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DAO-GANG PENG: "《2008 International Conference on Embedded Software and Systems Symposia》", 《DESIGN AND REALIZATION OF MODBUS PROTOCOL BASED ON EMBEDDED LINUX SYSTEM》 *
孙文君: "《基于DCS控制的工业电气监控系统的设计与研究》", 《工业仪表与自动化装置》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770099A (en) * 2020-06-29 2020-10-13 浙江中控技术股份有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN115412601A (en) * 2022-08-26 2022-11-29 浙江中控技术股份有限公司 Data acquisition method and device, electronic equipment and nonvolatile storage medium

Also Published As

Publication number Publication date
CN111176242B (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US11825547B2 (en) System, method and apparatus for virtual building management
CN111163147A (en) Gateway device, multi-protocol data transmission method and computer device
CN106254437B (en) Internet of Things communication means
CN111176242B (en) Monitoring data transmission method and device of distributed control system
CN110417783B (en) Data transmission method and device based on Internet of things, storage medium and terminal
WO2015176389A1 (en) Method, apparatus and system for collecting device information
US9503380B2 (en) Communication apparatus, communication method, and computer readable medium
CN101567861B (en) Data synchronization method and application system between heterogeneous application systems
CN108881470A (en) A kind of data remote monitoring system and its implementation
CN111885197B (en) Data transmission method and device based on Internet of things, cloud platform and computer equipment
CN110995859A (en) Intelligent transformer substation supporting platform system based on ubiquitous Internet of things
CN110347694B (en) Equipment monitoring method, device and system based on Internet of things
CN104412566A (en) Methodes and nodes for handling an address of a resource
CN115150432A (en) Networking system of Internet of things and communication method thereof
CN105049485A (en) Real-time video processing oriented load-aware cloud calculation system
CN110320837A (en) It is a kind of can edge calculations industrial computer
CN111737084A (en) Information monitoring method and device, intelligent equipment, computer equipment and medium
CN111987802A (en) Distribution network district data communication processing system
CN112637370B (en) Data processing method, device, equipment and storage medium
CN106685078A (en) Smart grid remote monitoring system based on Android system
CN114513792A (en) Remote network control method and device based on eSIM card
CN113452582A (en) Data transmission method, equipment, system and medium based on automatic analysis
CN116437377A (en) Communication method, system, electronic device and medium for device control communication protocol
Pathania Traffic prioritization in an MQTT gateway
CN104683199B (en) CANopen Lwip gateways and train operation monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant