CN109040280A - A kind of method and system based on Web monitoring industrial control equipment realtime curve - Google Patents

A kind of method and system based on Web monitoring industrial control equipment realtime curve Download PDF

Info

Publication number
CN109040280A
CN109040280A CN201810957399.0A CN201810957399A CN109040280A CN 109040280 A CN109040280 A CN 109040280A CN 201810957399 A CN201810957399 A CN 201810957399A CN 109040280 A CN109040280 A CN 109040280A
Authority
CN
China
Prior art keywords
websocket
client
request
real
control equipment
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.)
Pending
Application number
CN201810957399.0A
Other languages
Chinese (zh)
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.)
Hangzhou Dbappsecurity Technology Co Ltd
Original Assignee
Hangzhou Dbappsecurity 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 Hangzhou Dbappsecurity Technology Co Ltd filed Critical Hangzhou Dbappsecurity Technology Co Ltd
Priority to CN201810957399.0A priority Critical patent/CN109040280A/en
Publication of CN109040280A publication Critical patent/CN109040280A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method and systems based on Web monitoring industrial control equipment realtime curve, are related to the technical field of industrial control system safety, are applied to WebSocket server, comprising: obtain the WebSocket connection request that client is sent;The WebSocket connection between client is established based on WebSocket connection request;Obtain the data access request that client is sent based on WebSocket connection, wherein the real-time running data of target industrial control equipment to be visited is carried in data access request;The real-time running data of target industrial control equipment to be visited is inquired based on data access request, and after the real-time running data for inquiring target industrial control equipment to be visited, the real-time running data of target industrial control equipment to be visited is returned to client.It solves the problems, such as that there are data to obtain in real time under conventional information security scenario, meets requirement of the industrial data monitoring to real-time.

Description

A kind of method and system based on Web monitoring industrial control equipment realtime curve
Technical field
The present invention relates to the technical fields of industrial control system safety, are set more particularly, to one kind based on Web monitoring industry control The method and system of standby realtime curve.
Background technique
Application of the advanced manufacturing enterprise based on industrial data, organically combines product, machine, resource and people, no But conventionally manufactured enterprise can be pushed to make the transition to intelligent direction, additionally it is possible to which the information formed between enterprise and consumer is actively anti- Infeed mechanism provides feasible path to establish with the overall data solution for servicing as core, while being able to ascend service of goods Value opens up new way for manufacturing industry transition and upgrade.In addition, the safe and stable operation of process units is enterprise in process industry The precondition and guarantee of normal activity is carried out, therefore the real time status information for detecting process units is of great significance.Production Device real-time detection Web visualization system can effectively realize the data integration between various industrial control systems, and will production The real time data of device is shown with the formal intuition of webpage dynamic chart, provides timely standard for industry control safety manager True creation data information.For the Web visualization system of the prior art mainly by traditional Web technological development, real-time is poor, can not Meet actual demand well.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of sides based on Web monitoring industrial control equipment realtime curve Method and system, the present invention solve the technical issues of existing data can not obtain in real time under conventional information security scenario, meet Industrial data monitors the requirement to real-time property.
In a first aspect, the embodiment of the invention provides a kind of method based on Web monitoring industrial control equipment realtime curve, Applied to WebSocket server, comprising: obtain the WebSocket connection request that client is sent, wherein described WebSocket connection request is to request to establish the request that WebSocket is connect with WebSocket server;Based on described WebSocket connection request establishes the WebSocket connection between the client;The client is obtained based on described The data access request that WebSocket connection is sent, wherein target industrial control equipment to be visited is carried in data access request Real-time running data;Access request inquires the real-time running data of the target industrial control equipment to be visited based on the data, And after the real-time running data for inquiring the target industrial control equipment to be visited, returned to the client described wait visit The real-time running data for the target industrial control equipment asked.
Further, access request inquires the real time execution number of the target industrial control equipment to be visited based on the data According to including: to inquire the target industrial control equipment to be visited from RTDB in Industry Control based on target WebSocket connection Real-time running data, wherein the target WebSocket is connected as the RTDB in Industry Control and the WebSocket takes Connection between business device.
Further, the method also includes: establish the WebSocket server and the RTDB in Industry Control it Between WebSocket connection.
Further, the WebSocket connection request is HTTP request;It is built based on the WebSocket connection request It includes: the HTTP request for obtaining the client and sending that the vertical WebSocket between the client, which is connect, wherein described HTTP request includes head information, and the head information is to apply for the HTTP request of agreement upgrading;The head information is parsed, and Response message is determined according to parsing result;The response message is returned into the client, wherein the response message include with It is at least one lower: to agree to connection request, disagree connection request;If the response message that the client receives is same Meaning connection request, then the client is established WebSocket with the WebSocket specification server and is connect.
Further, the method also includes: obtain that the client sends disconnects request;Obtain the client End group is in the response message for disconnecting request and returning;Determine whether to disconnect and the client based on the response message Between WebSocket connection.
Further, the method also includes: to the client transmission disconnect request;Obtain client's end group In the response message for disconnecting request and returning;If the response message is to agree to disconnect, it is determined that disconnection and institute State the WebSocket connection between client.
Second aspect is based on Web monitoring industrial control equipment realtime curve the embodiment of the invention also provides a kind of System, is set to WebSocket server, comprising: first obtains module, for obtaining the WebSocket connection of client transmission Request, wherein the WebSocket connection request be to request to ask with what WebSocket server established that WebSocket connect It asks;Link block, for establishing the WebSocket connection between the client based on the WebSocket connection request; Second obtains module, the data access request sent for obtaining the client based on the WebSocket connection, wherein The real-time running data of target industrial control equipment to be visited is carried in data access request;Data interaction module, for being based on institute The real-time running data that data access request inquires the target industrial control equipment to be visited is stated, and described to be visited inquiring Target industrial control equipment real-time running data after, the reality of the target industrial control equipment to be visited is returned to the client When operation data.
Further, the data interaction module is also used to: being based on target WebSocket connection from RTDB in Industry Control The real-time running data of the middle inquiry target industrial control equipment to be visited, wherein the target WebSocket is connected as described Connection between RTDB in Industry Control and the server.
Further, the system is also used to: establish the WebSocket server and the RTDB in Industry Control it Between WebSocket connection.
The third aspect, the embodiment of the invention provides it is a kind of based on Web monitoring industrial control equipment realtime curve system, Include: RTDB in Industry Control, WebSocket server and client side, the WebSocket server respectively with the industry Real-time data base is connected with the client;The RTDB in Industry Control, for passing through bottom acquisition hardware interface to life The real-time running data of apparatus control system acquisition industrial control equipment is produced, and the real-time running data of the industrial control equipment is deposited Storage;The client is used for the WebSocket connection request sent to the WebSocket server;The WebSocket clothes Device be engaged in for establishing the WebSocket connection between the client based on the WebSocket connection request;The client End is also used to send data access request to the WebSocket server;The WebSocket server is used for based on described Data access request inquires the real-time running data of target industrial control equipment to be visited from the RTDB in Industry Control, and After the real-time running data for inquiring the target industrial control equipment to be visited, returned to the client described to be visited The real-time running data of target industrial control equipment.
It is directed to the poor technical problem of the Web visualization system real-time of the prior art, the present invention provides one kind and is based on Web monitors the method and system of industrial control equipment realtime curve, in the present invention, is realized by constructing one The WebSocket server of WebSocket specification, can be realized between client by the WebSocket server WebSocket connection can be realized the real-time running data for obtaining industrial control equipment in real time by the WebSocket connection.It mentions For method of the client to check real-time industrial data of the realization WebSocket connection based on Web, the present invention solves biography The technical issues of existing data can not obtain in real time under system information security scene, when meeting industrial data monitoring logarithm factually Property requirement solve the problems, such as not obtaining in real time under conventional information security scenario there are data, meet industrial data monitoring pair The requirement of real-time.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of method flow that industrial control equipment realtime curve is monitored based on Web provided in an embodiment of the present invention Figure;
Fig. 2 is that the WebSocket connection request provided in an embodiment of the present invention that is based on establishes WebSocket server and client The method flow diagram of WebSocket connection between end;
Fig. 3 is that client provided in an embodiment of the present invention actively issues disconnection WebSocket connection request processing method stream Cheng Tu;
Fig. 4 is that WebSocket server provided in an embodiment of the present invention actively issues at disconnection WebSocket connection request Manage method flow diagram;
Fig. 5 is a kind of system signal that industrial control equipment realtime curve is monitored based on Web provided in an embodiment of the present invention Figure;
Fig. 6 is that another system for monitoring industrial control equipment realtime curve based on Web provided in an embodiment of the present invention is shown It is intended to.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
According to embodiments of the present invention, a kind of method implementation based on Web monitoring industrial control equipment realtime curve is provided Example, it should be noted that step shown in the flowchart of the accompanying drawings can be in the calculating of such as a group of computer-executable instructions It is executed in machine system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from Sequence herein executes shown or described step.
Fig. 1 is a kind of method based on Web monitoring industrial control equipment realtime curve according to an embodiment of the present invention, application In WebSocket server, as shown in Figure 1, this method comprises the following steps:
Step S102 obtains the WebSocket connection request that client is sent, wherein the WebSocket connection request The request that WebSocket is connect is established with WebSocket server for request;The client is browser.
Step S104, the WebSocket established between the client based on the WebSocket connection request are connected It connects;
Step S106 obtains the data access request that the client is sent based on the WebSocket connection, wherein The real-time running data of target industrial control equipment to be visited is carried in data access request;
Step S108, access request inquires the real time execution number of the target industrial control equipment to be visited based on the data According to, and after the real-time running data for inquiring the target industrial control equipment to be visited, to described in client return The real-time running data of target industrial control equipment to be visited.
It is directed to the poor technical problem of the Web visualization system real-time of the prior art, the present invention provides one kind and is based on Web monitors the method and system of industrial control equipment realtime curve, in the present invention, is realized by constructing one The WebSocket server of WebSocket specification, can be realized between client by the WebSocket server WebSocket connection can be realized the real-time running data for obtaining industrial control equipment in real time by the WebSocket connection.This Invention solves the technical issues of existing data can not obtain in real time under conventional information security scenario, meets industrial data prison Control the requirement to real-time property.
In the present invention, the reality for the target industrial control equipment to be visited that client can return to WebSocket server The visual mode of user is shown luck line number accordingly.
Optionally, in the embodiment of the present invention, access request is inquired the target industry control to be visited and is set based on the data Standby real-time running data detailed process can be with are as follows:
The target industrial control equipment to be visited is inquired from RTDB in Industry Control based on target WebSocket connection Real-time running data, wherein the target WebSocket is connected as the RTDB in Industry Control and the WebSocket takes Connection between business device.
Specifically, in the present embodiment, RTDB in Industry Control is controlled by bottom acquisition hardware interface to process units System obtains the real-time running data of target industrial control equipment, and stores to real-time running data;Wherein, bottom acquisition hardware Interface includes at least one of: the port OPC, the port MQTT, independent development data collection terminal mouth, port Modbus etc..
Optionally, in the present embodiment, WebSocket server system for use in carrying is PWEBS system, wherein PWEBS system It is, using B/S system architecture, to realize industry spot real-time data acquisition, processing, storage and display using real-time data base as core System.
In the present invention, obtaining the WebSocket connection request that client is sent in step s 102 can ask for HTTP It asks, wherein HTTP request includes head information, and head information is to apply for the HTTP request of agreement upgrading.
Optionally, in step S104, WebSocket server and visitor are established based on the WebSocket connection request The detailed process of WebSocket connection between the end of family, can be as shown in Fig. 2, specific steps are as follows:
Step S201 obtains the HTTP request that the client is sent, wherein the HTTP request includes head information, institute Stating information is to apply for the HTTP request of agreement upgrading;
Step S202 parses the head information, and determines response message according to parsing result;
The response message is returned to the client by step S203, wherein the response message include it is following at least it One: agreeing to connection request, disagree connection request;
Step S204, if the response message that the client receives is agreement connection request, the client End is established WebSocket with the WebSocket server and is connect;
For example, client browser sends a HTTP request to WebSocket server, contained in the HTTP request Additional head information.For example, additional head information can be " Upgrade:WebSocket ", which shows this It is the HTTP request of an application agreement upgrading.WebSocket server parses this information, then, according to parsing As a result response message is generated.For example, generated response message is the response message for agreeing to connection request, then by this response Information returns to client, and establishes WebSocket with client and connect.
In embodiments of the present invention, WebSocket server passes through the WebSocket connection established between client, Realization is interacted with the real time data between client, and this WebSocket connection is once successfully established, so that it may persistently be deposited Request is being disconnected until any side in client or WebSocket server issues.
In an optional embodiment in embodiments of the present invention, as shown in figure 3, when client actively issues the company of disconnection In the case where connecing request, WebSocket server disconnects the WebSocket connection between client, and specific step is as follows:
What step S301, WebSocket server acquisition client was sent disconnects request;
Step S302, WebSocket server obtains client based on the response message for disconnecting request return;
Step S303, WebSocket server determines whether to disconnect between the client based on response message WebSocket connection.
In another optional embodiment in embodiments of the present invention, as shown in figure 4, working as WebSocket server master In the case that dynamic sending disconnects request, WebSocket server disconnects the tool of the WebSocket connection between client Steps are as follows for body:
Step S401, WebSocket server disconnects request to client transmission;
Step S402, WebSocket server obtains client based on the response message for disconnecting request return;
Step S403, if response message is to agree to disconnect, WebSocket server is disconnected between client WebSocket connection.
As can be seen from the above description, in the present invention, WebSocket specification is realized by constructing one WebSocket server can be realized the WebSocket between client by the WebSocket server and connect, passes through The WebSocket connection can be realized the real-time running data for obtaining industrial control equipment in real time.The present invention solves conventional information The technical issues of existing data can not obtain in real time under security scenario meets industrial data monitoring and wants to real-time property It asks.
Embodiment two:
The embodiment of the invention also provides a kind of systems based on Web monitoring industrial control equipment realtime curve, this is based on The system of Web monitoring industrial control equipment realtime curve is mainly used for executing to be based on provided by above content of the embodiment of the present invention The method that Web monitors industrial control equipment realtime curve monitors industrial control equipment based on Web to provided in an embodiment of the present invention below The system of realtime curve does specific introduction.
Fig. 5 is a kind of showing for system based on Web monitoring industrial control equipment realtime curve according to an embodiment of the present invention It is intended to, as shown in figure 5, mainly should include the first acquisition module 10 based on the system of Web monitoring industrial control equipment realtime curve, Link block 20, second obtains module 30 and data interaction module 40 wherein:
First obtains module 10, for obtaining the WebSocket connection request of client transmission, wherein WebSocket connects It connects request and establishes the request that WebSocket is connect with server for request;
Link block 20, for establishing the WebSocket connection between client based on WebSocket connection request;
Second acquisition module 30, the data access request sent for obtaining client based on the WebSocket connection, Wherein, the real-time running data of target industrial control equipment to be visited is carried in data access request;
Data interaction module 40 inquires the target industrial control equipment to be visited for access request based on the data Real-time running data, and after the real-time running data for inquiring the target industrial control equipment to be visited, to the client End returns to the real-time running data of the target industrial control equipment to be visited.
In the present invention, by constructing the WebSocket server for realizing WebSocket specification, by this WebSocket server can be realized the WebSocket between client and connect, can be real by the WebSocket connection The real-time running data of industrial control equipment is now obtained in real time.The present invention solve under conventional information security scenario existing data without The technical issues of method obtains in real time meets requirement of the industrial data monitoring to real-time property.
Optionally, data interaction module 40 is also used to: being looked into from RTDB in Industry Control based on target WebSocket connection Ask the real-time running data of the target industrial control equipment to be visited, wherein the target WebSocket is connected as the industry Connection between real-time data base and the server.
Optionally, which is also used to, and establishes between the WebSocket server and the RTDB in Industry Control WebSocket connection.
Optionally, if the WebSocket connection request is HTTP request;Link block 20 is used for: obtaining the client Hold the HTTP request sent, wherein the HTTP request includes head information, and the head information is to apply for that the HTTP of agreement upgrading is asked It asks;The head information is parsed, and response message is determined according to parsing result;The response message is returned into the client End, wherein the response message includes at least one of: agree to connection request, disagree connection request;If the client The response message received is terminated to agree to connection request, then the client and the WebSocket server are established WebSocket connection.
Optionally, which is also used to: obtain the client transmission disconnects request;Obtain client's end group In the response message for disconnecting request and returning;Determine whether to disconnect between the client based on the response message WebSocket connection.
Optionally, which is also used to: disconnecting request to client transmission;It obtains the client and is based on institute It states and disconnects the response message that request returns;If the response message is to agree to disconnect, it is determined that disconnect and the visitor WebSocket connection between the end of family.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Embodiment three:
System the embodiment of the invention also provides another kind based on Web monitoring industrial control equipment realtime curve, the base It is mainly used for executing base provided by above content of the embodiment of the present invention in the system of Web monitoring industrial control equipment realtime curve In the method for Web monitoring industrial control equipment realtime curve, set below to provided in an embodiment of the present invention based on Web monitoring industry control The system of standby realtime curve does specific introduction.
Fig. 6 is a kind of showing for system based on Web monitoring industrial control equipment realtime curve according to an embodiment of the present invention It is intended to, as shown in fig. 6, client 61 should be specifically included that based on the system of Web monitoring industrial control equipment realtime curve, WebSocket server 62 and RTDB in Industry Control 63, WebSocket server 62 are real-time with client 61 and industry respectively Database 63 is connected, in which:
Client 61, the WebSocket connection request for being sent to WebSocket server 62;Be also used to WebSocket server 62 sends data access request;
WebSocket server 62 is used to establish between client 61 based on WebSocket connection request WebSocket connection;
WebSocket server 62 is to be visited for being inquired from RTDB in Industry Control 63 based on data access request The real-time running data of target industrial control equipment, and after the real-time running data for inquiring target industrial control equipment to be visited, The real-time running data of target industrial control equipment to be visited is returned to client 61;
RTDB in Industry Control 63 is set for acquiring industry control to process units control system by bottom acquisition hardware interface Standby real-time running data, and the real-time running data of industrial control equipment is stored, wherein RTDB in Industry Control 63 can be with Multiple process units control systems are connected simultaneously.
Optionally, multiple general browsers are previously provided in client 61, wherein for each general browser packet Include at least one of: browser on computer terminal (IE browser including IE9.0 browser and 9.0 or more version, Google Chrome45, FireFox43 etc.) and mobile device terminal on browser.
Optionally, bottom acquisition hardware interface includes at least one of: the port OPC, the port MQTT, independent development data Acquire port, the port Modbus.
In the present invention, it can be realized the WebSocket between client by WebSocket server to connect, lead to Crossing the WebSocket connection can be realized the real-time running data for obtaining industrial control equipment in real time.The present invention solves traditional letter The technical issues of existing data can not obtain in real time under breath security scenario meets industrial data monitoring to real-time property It is required that.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, section or code of table, a part of the module, section or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is only used for.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of method based on Web monitoring industrial control equipment realtime curve, which is characterized in that be applied to WebSocket and take Business device, comprising:
Obtain client send WebSocket connection request, wherein the WebSocket connection request be request with WebSocket server establishes the request of WebSocket connection;
The WebSocket connection between the client is established based on the WebSocket connection request;
Obtain the data access request that the client is sent based on the WebSocket connection, wherein in data access request Carry the real-time running data of target industrial control equipment to be visited;
Access request inquires the real-time running data of the target industrial control equipment to be visited based on the data, and is inquiring After the real-time running data of the target industrial control equipment to be visited, the target work to be visited is returned to the client Control the real-time running data of equipment.
2. the method according to claim 1, wherein based on the data access request inquire it is described to be visited The real-time running data of target industrial control equipment includes:
The real-time of the target industrial control equipment to be visited is inquired from RTDB in Industry Control based on target WebSocket connection Operation data, wherein the target WebSocket is connected as the RTDB in Industry Control and the WebSocket server Between connection.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Establish the WebSocket connection between the WebSocket server and the RTDB in Industry Control.
4. the method according to claim 1, wherein the WebSocket connection request is HTTP request;It is based on The WebSocket connection that the WebSocket connection request is established between the client includes:
Obtain the HTTP request that the client is sent, wherein the HTTP request includes head information, and the head information is application The HTTP request of agreement upgrading;
The head information is parsed, and response message is determined according to parsing result;
The response message is returned into the client, wherein the response message includes at least one of: agreeing to that connection is asked It asks, disagrees connection request;
If the response message that the client receives be agree to connection request, the client with it is described WebSocket server establishes WebSocket connection.
5. the method according to claim 1, wherein the method also includes:
Obtain the client transmission disconnects request;
The client is obtained based on the response message for disconnecting request and returning;
Determine whether to disconnect the WebSocket connection between the client based on the response message.
6. the method according to claim 1, wherein the method also includes:
Request is disconnected to client transmission;
The client is obtained based on the response message for disconnecting request and returning;
If the response message is to agree to disconnect, it is determined that disconnect the WebSocket connection between the client.
7. a kind of system based on Web monitoring industrial control equipment realtime curve, which is characterized in that be set to WebSocket clothes Business device, comprising:
First obtains module, for obtaining the WebSocket connection request of client transmission, wherein the WebSocket connection Request establishes the request that WebSocket is connect with WebSocket server for request;
Link block, the WebSocket for being established between the client based on the WebSocket connection request are connected It connects;
Second acquisition module, the data access request sent for obtaining the client based on the WebSocket connection, In, the real-time running data of target industrial control equipment to be visited is carried in data access request;
Data interaction module inquires the real-time fortune of the target industrial control equipment to be visited for access request based on the data Row data, and after the real-time running data for inquiring the target industrial control equipment to be visited, it is returned to the client The real-time running data of the target industrial control equipment to be visited.
8. system according to claim 7, which is characterized in that the data interaction module is also used to:
The real-time of the target industrial control equipment to be visited is inquired from RTDB in Industry Control based on target WebSocket connection Operation data, wherein the target WebSocket is connected as the company between the RTDB in Industry Control and the server It connects.
9. system according to claim 8, which is characterized in that the system is also used to:
Establish the WebSocket connection between the WebSocket server and the RTDB in Industry Control.
10. a kind of system based on Web monitoring industrial control equipment realtime curve characterized by comprising industrial real-time data Library, WebSocket server and client side, the WebSocket server respectively with the RTDB in Industry Control and described Client is connected;
The RTDB in Industry Control, for acquiring industrial control equipment to process units control system by bottom acquisition hardware interface Real-time running data, and the real-time running data of the industrial control equipment is stored;
The client is used for the WebSocket connection request sent to the WebSocket server;
The WebSocket server is used to establish between the client based on the WebSocket connection request WebSocket connection;
The client is also used to send data access request to the WebSocket server;
The WebSocket server is inquired from the RTDB in Industry Control wait visit for access request based on the data The real-time running data for the target industrial control equipment asked, and in the real time execution number for inquiring the target industrial control equipment to be visited According to later, the real-time running data of the target industrial control equipment to be visited is returned to the client.
CN201810957399.0A 2018-08-21 2018-08-21 A kind of method and system based on Web monitoring industrial control equipment realtime curve Pending CN109040280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810957399.0A CN109040280A (en) 2018-08-21 2018-08-21 A kind of method and system based on Web monitoring industrial control equipment realtime curve

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810957399.0A CN109040280A (en) 2018-08-21 2018-08-21 A kind of method and system based on Web monitoring industrial control equipment realtime curve

Publications (1)

Publication Number Publication Date
CN109040280A true CN109040280A (en) 2018-12-18

Family

ID=64627475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810957399.0A Pending CN109040280A (en) 2018-08-21 2018-08-21 A kind of method and system based on Web monitoring industrial control equipment realtime curve

Country Status (1)

Country Link
CN (1) CN109040280A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600955A (en) * 2020-05-18 2020-08-28 山东汇贸电子口岸有限公司 Websocket-based foreground processing method and system
CN113726587A (en) * 2021-11-04 2021-11-30 海尔数字科技(青岛)有限公司 Network security management method and equipment
CN115103040A (en) * 2022-07-01 2022-09-23 厦门汉印电子技术有限公司 Client, industrial control equipment, control method and device thereof, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566558A (en) * 2012-02-21 2012-07-11 南京农业大学 System and method for managing intelligent greenhouse based on Android platform
CN102801799A (en) * 2012-08-03 2012-11-28 国电南瑞科技股份有限公司 Real-time monitoring system based on B/S architecture
CN105337787A (en) * 2014-07-29 2016-02-17 北京奇虎科技有限公司 Multi-server monitoring method, device and system
CN107180086A (en) * 2017-05-09 2017-09-19 中国石油集团川庆钻探工程有限公司 A kind of drilling well real time data quick storage and dissemination method
US9807102B1 (en) * 2016-08-18 2017-10-31 Adam Modras Real-time communication support system within a group

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566558A (en) * 2012-02-21 2012-07-11 南京农业大学 System and method for managing intelligent greenhouse based on Android platform
CN102801799A (en) * 2012-08-03 2012-11-28 国电南瑞科技股份有限公司 Real-time monitoring system based on B/S architecture
CN105337787A (en) * 2014-07-29 2016-02-17 北京奇虎科技有限公司 Multi-server monitoring method, device and system
US9807102B1 (en) * 2016-08-18 2017-10-31 Adam Modras Real-time communication support system within a group
CN107180086A (en) * 2017-05-09 2017-09-19 中国石油集团川庆钻探工程有限公司 A kind of drilling well real time data quick storage and dissemination method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600955A (en) * 2020-05-18 2020-08-28 山东汇贸电子口岸有限公司 Websocket-based foreground processing method and system
CN113726587A (en) * 2021-11-04 2021-11-30 海尔数字科技(青岛)有限公司 Network security management method and equipment
CN113726587B (en) * 2021-11-04 2022-02-08 海尔数字科技(青岛)有限公司 Network security management method and equipment
CN115103040A (en) * 2022-07-01 2022-09-23 厦门汉印电子技术有限公司 Client, industrial control equipment, control method and device thereof, and storage medium

Similar Documents

Publication Publication Date Title
CN111491013B (en) Server scheduling method, device, system, storage medium and computer equipment
CN107103004B (en) Method, device and system for processing data in webpage
CN109040280A (en) A kind of method and system based on Web monitoring industrial control equipment realtime curve
CN109547524B (en) User behavior storage method, device, equipment and storage medium based on Internet of things
CN110658794A (en) Manufacturing execution system
US20180107703A1 (en) Decentralized distributed database consistency
CN112437047A (en) Remote server management method, system and related device
CN112087499A (en) Internet of things cloud management method and system
CN109586962A (en) IPv4 is upgraded to processing unit, method and the electronic equipment of the HTTPS exterior chain problem of IPv6
CN104935660A (en) System, method and device for developing and operating cloud program
CN111641669B (en) Dynamic load balancing in a network-centric process control system
CN117439838B (en) Edge computing gateway master-slave machine-oriented self-adaptive rapid networking method
CN108874531A (en) Method, apparatus, system and electronic equipment for the service of fusing
CN114153862A (en) Service data processing method, device, equipment and storage medium
CN103001962A (en) Business support method and system
CN116755799A (en) Service arrangement system and method
CN109710878A (en) Data interactive method and server
CN110071840A (en) Upgrade method, device and client
CN109271454A (en) A kind of method and the network equipment that data are synchronous
CN108459902A (en) Method, apparatus and electronic equipment for order-processing business
CN108289165A (en) A kind of implementation method, device and terminal device controlling camera based on mobile phone
CN113094131A (en) Prompt resource display method, device, terminal, server and storage medium
CN108337300B (en) Man-machine interface communication method and system applied to narrow-band Internet of things
CN105323088A (en) Springboard processing method and springboard processing device
CN109961261A (en) A kind of collaborative management method and system of the unified cooperation office of intelligence

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218