CN111031072A - Data acquisition system, method and computer equipment - Google Patents

Data acquisition system, method and computer equipment Download PDF

Info

Publication number
CN111031072A
CN111031072A CN201911415434.7A CN201911415434A CN111031072A CN 111031072 A CN111031072 A CN 111031072A CN 201911415434 A CN201911415434 A CN 201911415434A CN 111031072 A CN111031072 A CN 111031072A
Authority
CN
China
Prior art keywords
data
opc
client
local client
server
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
CN201911415434.7A
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.)
Beijing Likong Huacon Technology Co ltd
Original Assignee
Beijing Likong Huacon 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 Beijing Likong Huacon Technology Co ltd filed Critical Beijing Likong Huacon Technology Co ltd
Priority to CN201911415434.7A priority Critical patent/CN111031072A/en
Publication of CN111031072A publication Critical patent/CN111031072A/en
Pending legal-status Critical Current

Links

Images

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
    • 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/163In-band adaptation of TCP data exchange; In-band control procedures
    • 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/26Special purpose or proprietary protocols or architectures

Abstract

The invention discloses a data acquisition system, a data acquisition method and computer equipment, wherein the system comprises: OPC server, OPC passageway module includes: OPC customer end and TCP server; acquiring a connection request sent by a non-local client through a TCP (transmission control protocol) server, and judging whether the non-local client supports a preset communication protocol; and if the non-local client supports the preset communication protocol, the requested data is sent to the non-local client through the TCP server. The problem that in a local area network, only a local client can directly acquire data on a server, and a non-local OPC client can acquire data only after a COM/DCOM is configured through a complicated and professional operation process; the data collected by the local client in the OPC channel module is converted into TCP data transmission based on the preset communication protocol, so that the process of acquiring the data by the non-local client is simplified, the efficiency of acquiring the data is improved, and the usability and the expansibility of the OPC are improved.

Description

Data acquisition system, method and computer equipment
Technical Field
The invention relates to the technical field of data transmission, in particular to a data acquisition system, a data acquisition method and computer equipment.
Background
In the field of Windows-based applications and field process control, Object Linking and Embedding (OLE) technology is not only desktop application integration, but also defines and implements a mechanism that allows applications to "link" to each other as software "objects," a mechanism and protocol referred to as a component object model. The appearance of OLE technology (Object Linking and Embedding for Process Control, OPC) for Process Control establishes a bridge for Windows-based application programs and field Process Control applications, and the OPC protocol is based on microsoft COM/DCOM technology, and adopts a mode in which a client and a server exchange data, wherein one server can serve multiple clients in a local area network, but only a local OPC client can directly acquire data on the server, and OPC clients located on other computer devices have a defect that the data on the server can be acquired only by configuring cumbersome COM/DCOM.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect that only a local OPC client can directly acquire data on a server in the prior art, but an OPC client located on another computer device must configure COM/DCOM through a cumbersome operation to acquire data on the server, thereby providing a data acquisition system, method and computer device.
According to a first aspect, an embodiment of the present invention discloses a data acquisition system, including: OPC server, OPC passageway module includes: OPC customer end and TCP server; the OPC client is used for carrying out data transmission with the OPC server and the TCP server, receiving first data sent by the OPC server and transmitting the first data to the TCP server; the TCP server is used for acquiring a connection request sent by a non-local client; and judging whether the non-local client meets a preset communication protocol or not according to the connection request, and if the non-local client supports the preset communication protocol, transmitting second data to the non-local client.
With reference to the first aspect, in a first implementation manner of the first aspect, the OPC client is specifically configured to issue a first subscription request to the OPC server, and receive the first data sent by the OPC server according to the first subscription request.
With reference to the first aspect, in a second implementation manner of the first aspect, the TCP server is specifically configured to: extracting user identity information in the connection request; judging whether the non-local client supports a preset communication protocol or not according to the user identity information; if the non-local client supports a preset communication protocol, a connection is formed with the non-local client; acquiring a second subscription request sent by the non-local client according to the connection; and transmitting the second data to the non-local client according to the second subscription request.
With reference to the first aspect, in a third implementation manner of the first aspect, the number of the non-native clients is multiple, and the TCP server is configured to receive connection requests sent by the multiple non-native clients and send the requested data to the non-native clients that satisfy the preset communication protocol.
According to a second aspect, an embodiment of the present invention discloses a data acquisition method, which is applied to the OPC channel module in the first aspect or any implementation manner of the first aspect, and includes: acquiring a connection request sent by a non-local client; judging whether the non-local client supports a preset communication protocol or not according to the connection request; and if the non-local client side supports a preset communication protocol, transmitting second data to the non-local client side.
With reference to the second aspect, in a first implementation manner of the second aspect, the determining, according to the connection request, whether the non-local client satisfies a preset communication protocol specifically includes: extracting user identity information in the connection request; and judging whether the non-local client supports a preset communication protocol or not according to the user identity information.
With reference to the first embodiment of the second aspect, in the second embodiment of the second aspect, if the non-native client supports a preset communication protocol, a connection is formed with the non-native client; acquiring a second subscription request sent by the non-local client according to the connection; and transmitting the second data to the non-local client according to the second subscription request.
With reference to the first embodiment of the second aspect, in a third embodiment of the second aspect, the data acquisition method further includes: receiving connection requests sent by a plurality of non-local clients; respectively judging whether the plurality of non-local clients meet the preset communication protocol according to the plurality of connection requests; sending the requested data to the non-native client that satisfies the preset communication protocol.
According to a third aspect, an embodiment of the present invention discloses a computer device, including: at least one processor and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the processor executes the instructions to perform the steps of the data acquisition method according to any of the second aspect or the second aspect embodiments.
The technical scheme of the invention has the following advantages:
1. the embodiment of the invention provides a data acquisition system, a data acquisition method and computer equipment, wherein the system comprises: OPC server, OPC passageway module includes: OPC customer end and TCP server; the method comprises the steps that data transmission is carried out between an OPC client and an OPC server and between the OPC client and a TCP server, first data sent by the OPC server are received, and the first data are transmitted to the TCP server; acquiring a connection request sent by a non-local client through a TCP (transmission control protocol) server; and judging whether the non-local client meets a preset communication protocol or not according to the connection request, and if the non-local client supports the preset communication protocol, transmitting second data to the non-local client. By implementing the invention, the problem that only a local OPC client can directly acquire data on a server and a non-local OPC client can acquire data only by configuring COM/DCOM (COM/DCOM) which is more complicated and has certain specialty is solved, in actual operation, part of field workers can not be configured skillfully, the workload of users is increased, and in order to solve the problem, the OPC channel module bypasses the COM/DCOM configuration, converts the data acquired by the local OPC client in the OPC channel module into TCP (transmission control protocol) link transmission based on a private protocol CommServer (CommServer) protocol, simplifies the process of acquiring data by the non-local client, improves the efficiency of acquiring data, and increases the usability and expansibility of OPC.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a block diagram of a specific example of a data acquisition system in embodiment 1 of the present invention;
fig. 2 is a block diagram showing another specific example of a data acquisition system according to embodiment 1 of the present invention;
fig. 3 is a flowchart of a specific example of a data acquisition method in embodiment 2 of the present invention;
fig. 4 is a flowchart of a specific example of determining an identity of a non-local client in a data acquisition method in embodiment 2 of the present invention;
fig. 5 is a block diagram of a computer device according to embodiment 3 of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. 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.
In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The data acquisition system, the data acquisition method and the computer equipment provided by the embodiment of the invention solve the problems that in a local area network, only a local client can directly acquire data on a server, and when a local client does not acquire the data, the data can be acquired from the server only after the COM/DCOM is configured, and particularly, because the process of configuring the COM/DCOM is complicated and certain specialty is needed during configuration, in an actual application environment, an operator on site does not necessarily have professional knowledge for configuring the COM/DCOM, the COM/DCOM cannot be configured skillfully, so that the workload of a user is increased, and the actual production is influenced.
Example 1
An embodiment of the present invention provides a data acquisition system, which can be applied to a specific application scenario of interconnection and interworking in an industrial automation system, and as shown in fig. 1, the system includes: OPC server 10, OPC channel module 20.
In the present embodiment, the OPC server 10 is used for storing and transmitting data, and the data stored thereon may be the use data information, the operation data information, and the like of the user in the local client, which are the first data. The OPC server 10 itself may also be an executable program, which can perform data interaction with the industrial equipment at a target time interval, specifically, the OPC server 10 sends out data acquisition request information to transmit data with the industrial equipment; the OPC server 10 is provided with a data buffer area therein for storing data acquired by the OPC server 10 during data interaction, where the data includes two parts of information, time information and data information, the time information represents actual time for acquiring data from the industrial equipment, and the data information represents specific information of the data acquired from the industrial equipment. Since the data acquisition by the OPC server 10 is continuously performed at the interval target time, the time information and the data information are stored in correspondence, and thus the data information on the OPC server is updated as time changes.
An OPC channel module 20 comprising: an OPC client 201 and a TCP server 202; in this embodiment, the OPC channel module 20 may be connected to the OPC server 10, and issue a subscription request to the OPC server 10 and receive data information transmitted by the OPC server 10, where the data received by the OPC channel module is first data, and the data transmitted by the OPC channel module to the non-local client is second data; specifically, after the OPC client 201 is started and the connection with the OPC server 10 is completed, the OPC client 201 sends a subscription request to the OPC server, and at this time, after the data on the OPC server is updated, the updated data is directly transmitted to the OPC client 201 according to the data acquisition instruction of the OPC client 201.
The TCP server 202 is configured to obtain a connection request sent by the non-local client 301; judging whether the non-local client 301 supports a preset communication protocol or not according to the connection request; transmitting second data to the non-native client 301 if the non-native client 301 supports the preset communication protocol; in this embodiment, the TCP server 202 may be a server supporting the TCP protocol, and may be directly connected to a client supporting the TCP protocol through a TCP connection to transmit data; in the local area network, there may be a plurality of computer devices, where one of the computer devices is provided with the OPC server 10, and at this time, the computer device is a local client, and the other computer devices are all referred to as non-local clients 301; the non-local client 301 sends a connection request, where the connection request includes identity information of the non-local client 301 and specific information of data to be acquired, for example, specific step information and specific node information generated by the data information; the TCP server 202 may determine whether the non-local client 301 that sends the connection request satisfies a preset communication protocol, and specifically, the second data is all or part of the first data; the communication protocol may be a CommServer protocol, which is a proprietary protocol developed over TCP.
The OPC client 201 is configured to perform data transmission with the OPC server 10 and the TCP server 202, receive first data sent by the OPC server, and transmit the first data to the TCP server 202. In this embodiment, the OPC server receives that the data transmitted by the OPC server is the first data, and when receiving the subscription request of the OPC client, the OPC server pushes all the data stored therein, that is, the first data, to the OPC client, that is, the OPC client 201 can perform data transmission with the OPC server, specifically, by sending the first subscription request to the OPC server 10, the OPC server 10 periodically transmits the data stored by the server directly to the OPC client 201 that sent the subscription request after receiving the first subscription request, and when updating the data stored in the server, automatically sends the updated data to the OPC client 201. For example, the OPC client subscribes to data on the OPC server, and the OPC server pushes the data to the OPC client after receiving the subscription request. Specifically, a subscription request sent by an OPC client to an OPC server is a first subscription request;
for example, the OPC client 201 is further configured to perform data transmission with the TCP server 202, where the data is also the first data, specifically, after the OPC client 201 establishes a data transmission connection with the TCP server 202, the OPC client 201 and the TCP server 202 can automatically transmit the data, for example, after the data on the OPC server is updated, the OPC server automatically sends the updated data to the TCP server 202 without sending an additional subscription request or a data acquisition instruction by the TCP server 202.
In this embodiment, the connection request includes specific step information and specific node information for generating data to be acquired, corresponding data is matched in the TCP server 202 according to the step information and the node information, and the data is sent to the non-local client 301 through a preset TCP connection, specifically, a preset communication protocol is based on both the client and the server, the client supporting the comserver protocol sends a data acquisition request, after receiving the data acquisition request, the server sends back a corresponding data packet according to the comserver protocol, and then the client unpacks according to the comserver protocol to obtain specific information of the data.
The data acquisition system provided by the embodiment of the invention comprises: the system comprises an OPC server and an OPC channel module, wherein the data acquired from the OPC server can be pushed to a non-local client conforming to a preset communication protocol through the OPC channel module, specifically, a connection request sent by the non-local client is acquired through a TCP server in the OPC channel module, and whether the non-local client supports the preset communication protocol is judged; and if the non-local client supports the preset communication protocol, transmitting the second data to the non-local client. By implementing the method, only the local OPC client can directly acquire the data on the server in the local area network, the non-local OPC client can acquire the data only by the configured COM/DCOM, and as the configuration of the COM/DCOM is more complicated and has certain speciality, in the actual operation, part of field workers can not be configured skillfully, the workload of users is increased, and in order to solve the problem, the OPC channel module bypasses the COM/DCOM configuration, converts the data acquired by the local OPC client in the OPC channel module into a TCP link transmission based on a private protocol CommServer protocol, simplifies the process of acquiring the data by the non-local client, improves the efficiency of acquiring the data, and increases the usability and expansibility of the OPC. That is, the user can directly start the OPC channel module locally, and by cooperating with the client supporting the CommServer protocol, the COM/DCOM configuration can be bypassed, so that the same effect that the original non-local OPC client must collect the OPC server by configuring the COM/DCOM is achieved.
As an optional embodiment of the present application, the TCP server 202 is specifically configured to perform the following steps:
step S21: and extracting the user identity information and the identification information of the data in the connection request.
In this embodiment, the connection request sent by the non-native client 301 includes the identity information of the client sending the request and the identification information of the second data that the non-native client 301 wants to obtain, specifically, the identity information of the client may be analyzed according to the CommServer protocol, and has unique identification information, which may be a user ID or other information such as a user name.
Step S22: and judging whether the non-local client 301 supports the preset communication protocol or not according to the user identity information, and if the non-local client 301 supports the preset communication protocol, transmitting the requested data to the non-local client 301.
Step S23: if the non-local client supports the preset communication protocol, the connection is formed with the non-local client; in this embodiment, when the TCP server 202 determines that the non-native client meets the predetermined communication protocol according to the identity authentication information in the connection request, the TCP server 202 establishes a connection with the non-native client 301, that is, the TCP client, and subsequent data push is transmitted through the connection. The TCP server 202 is only accessible according to a predetermined communication protocol, i.e., the comserver protocol, and if the client does not support the protocol, the TCP server 202 disconnects the client.
Step S24: and acquiring a second subscription request sent by the non-local client according to the connection, and transmitting second data to the non-local client according to the second subscription request. In this embodiment, the data transmission may be that a TCP client sends a subscription request, the TCP server 202 sends a subscription reply after receiving the request, and the TCP client successfully subscribes the data on the TCP server 202, at this time, the data transmission is dominated by the TCP client, and the TCP client may periodically inquire the TCP server 202 whether the data on the TCP server 202 changes or not, and whether the data on the TCP server is updated or not, and when the data on the TCP server 202 changes, the data is automatically pushed to the TCP client, so that stable data transmission is established. The subscription request sent by the TCP client to the TCP server is the second subscription request.
In this embodiment, the identity information of the user includes the identity information of the non-local client 301 used by the user, which may be type information of a private protocol supported by the non-local client 301, and according to whether the non-local client 301 supports a preset communication protocol, the TCP server determines whether to transmit data stored in the TCP server, that is, data pushed by the OPC client, to the non-local client 301, and when transmitting data, according to a subscription request, all the first data may be transmitted, or a part of the first data may be transmitted; specifically, when the non-native client 301 supports a preset communication protocol, the TCP server transmits data to the non-native client; when non-native client 301 does not support the preset communication protocol, the TCP server does not transmit data to the non-native client.
The data acquisition system provided by the embodiment of the invention judges whether a preset communication protocol is met or not according to the connection request sent by the non-local client, and sends a data acquisition request to the TCP client according to the identification information of the data when the non-local client supports the preset communication protocol, specifically, the type information, the step information and the node information of the data are acquired.
As an alternative embodiment of the present application, the OPC client 201 is also used to obtain data directly from the local OPC server 10. In this embodiment, the local server, i.e. the OPC server 10 on the local client, can directly serve the local OPC client 201, without configuring cumbersome COM/DCOM, the OPC client 201 can directly obtain the data on the local OPC server 10, and the OPC client 201, i.e. the non-local client 301, installed on other computer equipment can obtain the data only after configuring the preset communication protocol.
As an optional embodiment of the present application, the local OPC client may also obtain data through the OPC channel module, which is similar to the way in which the non-local client obtains data, and is not described herein again.
As an optional embodiment of the present application, as shown in fig. 2, the OPC channel module in the data obtaining system may perform data exchange with a plurality of non-local clients, that is, the OPC channel module may transmit data to the plurality of non-local clients, specifically, may be a first non-local client 1, a second non-local client 2, … …, and the TCP server is configured to receive connection request information sent by the plurality of non-local clients and send subscribed data to the non-local clients meeting a preset communication protocol. In this embodiment, a plurality of computer devices may exist in the local area network, and if there are a plurality of clients, that is, non-local clients, which are disposed on other computer devices and any one of which is provided with the OPC server, the TCP server in the OPC channel module may receive a plurality of subscription requests, and determine whether to forward the received data to the plurality of non-local clients, respectively, according to the user identity information and the data identification information in the subscription requests.
As an optional implementation manner of the present application, the data acquisition method further includes: we refer to the data transfer between the OPC server and the OPC client as a first data flow; the data transmission between the OPC client and the TCP server is called a second data stream; the data transmission between the TCP server and the non-local client is referred to as a third data stream; specifically, the flow of the first data stream is data subscribed by the OPC client to the OPC server, and the OPC server may push the subscribed data to the OPC client according to the subscription request. The flow of the second data stream is that the OPC client can push the data stored thereon directly to the TCP server. The flow direction of the third data stream is that the TCP server judges whether the non-local client meets the preset communication protocol according to the subscription request sent by the non-local client, and sends the data stored on the non-local client to the non-local client.
Illustratively, the relationship between the three data streams is that the first data stream is not affected by the second data stream or the third data stream, that is, the data transmission between the OPC client and the OPC server is not affected by the subsequent TCP server; the second data stream is unaffected by the third data stream, but is affected by the first data stream; the third data stream is affected by the first data stream and the second data stream.
In the data acquisition system provided in the embodiment of the present invention, the local OPC client may directly perform data exchange with the local OPC server, and the TCP server may receive the subscription requests sent by the multiple non-local clients, determine whether each non-local client satisfies the preset communication protocol according to the user identity information in the subscription request, and respectively forward the received data information to the multiple non-local clients. The method provides a good human-computer interaction interface, provides data acquisition and transmission functions through the TCP server, forwards data in multiple paths, and ensures the distributed characteristic of the OPC server and the client.
Example 2
An embodiment of the present invention provides a data acquisition method, which may be applied to a specific application scenario of interconnection and intercommunication in an industrial automation system, and may also be applied to an OPC channel module in any one of the foregoing embodiments, as shown in fig. 3, where the method includes:
step S11: acquiring a connection request sent by a non-local client; for detailed implementation, reference may be made to the description of TCP server 202 of the above system embodiment.
Step S12: judging whether the non-local client supports a preset communication protocol or not according to the connection request; for detailed implementation, reference may be made to the description of TCP server 202 of the above system embodiment.
Step S13: and if the non-local client supports the preset communication protocol, transmitting the data to the non-local client. For detailed implementation, reference may be made to the above-mentioned OPC client 201 and TCP server 202 of the system embodiment.
The embodiment of the invention provides a data acquisition method, wherein the method comprises the following steps: acquiring a connection request sent by a non-local client, and judging whether the non-local client supports a preset communication protocol or not; and if the non-local client supports the preset communication protocol, transmitting the pre-stored data to the non-local client. By implementing the invention, the problem that only a local OPC client can directly acquire data on a server and a non-local OPC client can acquire data only by configuring COM/DCOM (COM/DCOM-to-COM/DCOM) which is complicated and has certain specialty is solved, in actual operation, part of field workers can not be configured skillfully, so that the workload of users is increased, and in order to solve the problem, the OPC channel module bypasses the COM/DCOM configuration, converts the data acquired by the local OPC client in the OPC channel module into a TCP (transmission control protocol) link transmission based on a private protocol CommServer (CommServer) protocol, simplifies the process of acquiring data by the non-local client, improves the efficiency of acquiring data, and increases the usability and expansibility of OPC.
As an optional implementation manner of this application, as shown in fig. 4, the step S12, according to the connection request, of determining whether the non-local client meets a preset communication protocol includes:
step S121: extracting user identity information in the connection request; for detailed implementation, reference may be made to the description of TCP server 202 of the above system embodiment.
Step S122: and judging whether the non-local client supports a preset communication protocol or not according to the user identity information. For detailed implementation, reference may be made to the above-mentioned OPC client 201 and TCP server 202 of the system embodiment.
According to the data acquisition method provided by the embodiment of the invention, whether the data stored on the server is pushed to the non-local client side is judged according to the identity information in the connection request sent by the non-local client side, and the data is sent to the non-local client side according to the identification information of the data when the non-local client side supports the preset communication protocol. And judging whether the non-local client meets the preset communication protocol or not according to the identity information in the connection request, so that the data transmission efficiency is improved, and the data transmission safety is ensured.
Example 3
An embodiment of the present invention provides a computer device 21, where the computer device 21 is configured to execute the steps of the data acquisition method according to any one of the above embodiments.
As shown in fig. 5, the computer device 21 includes:
at least one processor 211; and a memory 212 communicatively coupled to the at least one processor 211; the memory 212 stores instructions executable by the at least one processor 211, and when receiving data information, the processor 211 and the memory 212 are connected via a bus, so as to enable the at least one processor 211 to execute the data obtaining method shown in fig. 3 or fig. 4.
The memory 212, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the data acquisition methods in the embodiments of the present application. The processor 211 executes various functional applications of the server and data processing, i.e. implements the data acquisition method of the above-described method embodiments, by running non-transitory software programs, instructions and modules stored in the memory 212.
The memory 212 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a processing device operated by the server, and the like. Further, the memory 212 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 212 may optionally include memory located remotely from processor 211, which may be connected to a network connection device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 212, and when executed by the one or more processors 211, perform the method described in any of the embodiments above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (9)

1. A data acquisition system, comprising: OPC server, OPC channel module:
the OPC channel module comprises: OPC customer end and TCP server;
the OPC client is used for carrying out data transmission with the OPC server and the TCP server, receiving first data sent by the OPC server and transmitting the first data to the TCP server;
the TCP server is used for acquiring a connection request sent by a non-local client; and judging whether the non-local client meets a preset communication protocol or not according to the connection request, and if the non-local client supports the preset communication protocol, transmitting second data to the non-local client.
2. The system according to claim 1, wherein the OPC client is specifically configured to issue a first subscription request to the OPC server, and receive the first data sent by the OPC server according to the first subscription request.
3. The system of claim 1, wherein the TCP server is specifically configured to:
extracting user identity information in the connection request;
judging whether the non-local client supports a preset communication protocol or not according to the user identity information;
if the non-local client supports a preset communication protocol, a connection is formed with the non-local client;
and acquiring a second subscription request sent by the non-local client according to the connection, and transmitting the second data to the non-local client according to the second subscription request.
4. The system of claim 1, wherein: the number of the non-local clients is multiple, and the TCP server is used for receiving connection requests sent by the multiple non-local clients and sending the requested data to the non-local clients meeting the preset communication protocol.
5. A data acquisition method applied in the OPC channel module of any one of claims 1-4, comprising:
acquiring a connection request sent by a non-local client;
judging whether the non-local client supports a preset communication protocol or not according to the connection request;
and if the non-local client side supports a preset communication protocol, transmitting second data to the non-local client side.
6. The method according to claim 5, wherein the determining, according to the connection request, whether the non-local client side satisfies a preset communication protocol specifically includes:
extracting user identity information in the connection request;
and judging whether the non-local client supports a preset communication protocol or not according to the user identity information.
7. The method according to claim 6, wherein the transmitting second data to the non-native client if the non-native client supports a preset communication protocol specifically includes:
if the non-local client supports a preset communication protocol, a connection is formed with the non-local client;
acquiring a second subscription request sent by the non-local client according to the connection;
and transmitting the second data to the non-local client according to the second subscription request.
8. The method of claim 7, further comprising:
receiving connection requests sent by a plurality of non-local clients;
respectively judging whether the plurality of non-local clients meet the preset communication protocol according to the plurality of connection requests;
sending the requested data to the non-native client that satisfies the preset communication protocol.
9. A computer device, comprising:
at least one processor and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and wherein the processor performs the steps of the data acquisition method as recited in any one of claims 5-8 by executing the instructions.
CN201911415434.7A 2019-12-31 2019-12-31 Data acquisition system, method and computer equipment Pending CN111031072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911415434.7A CN111031072A (en) 2019-12-31 2019-12-31 Data acquisition system, method and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911415434.7A CN111031072A (en) 2019-12-31 2019-12-31 Data acquisition system, method and computer equipment

Publications (1)

Publication Number Publication Date
CN111031072A true CN111031072A (en) 2020-04-17

Family

ID=70197812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911415434.7A Pending CN111031072A (en) 2019-12-31 2019-12-31 Data acquisition system, method and computer equipment

Country Status (1)

Country Link
CN (1) CN111031072A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463414A (en) * 2020-12-14 2021-03-09 招商局金融科技有限公司 Multi-client data interaction method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681497A (en) * 2011-03-15 2012-09-19 中国科学院沈阳自动化研究所 Remote monitoring system of sewage disposal process and implementation method thereof
WO2014015893A1 (en) * 2012-07-24 2014-01-30 Siemens Aktiengesellschaft Write access to a variable in a server
CN104469901A (en) * 2013-09-17 2015-03-25 华为终端有限公司 Method and device for data processing
CN104978634A (en) * 2015-07-09 2015-10-14 蓝飞鹏 Data processing system
CN105807705A (en) * 2014-12-30 2016-07-27 中国科学院沈阳自动化研究所 House refuse recycling processing process monitoring method based on Internet of Things technology
CN107291058A (en) * 2017-08-01 2017-10-24 西安交通大学 A kind of continuous casting production process data acquisition monitoring system
US10230807B2 (en) * 2014-09-10 2019-03-12 Siemens Aktiengesellschaft Method and apparatus for energy-optimized data transmission using the OPC UA protocol in radio networks

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681497A (en) * 2011-03-15 2012-09-19 中国科学院沈阳自动化研究所 Remote monitoring system of sewage disposal process and implementation method thereof
WO2014015893A1 (en) * 2012-07-24 2014-01-30 Siemens Aktiengesellschaft Write access to a variable in a server
CN104469901A (en) * 2013-09-17 2015-03-25 华为终端有限公司 Method and device for data processing
US10230807B2 (en) * 2014-09-10 2019-03-12 Siemens Aktiengesellschaft Method and apparatus for energy-optimized data transmission using the OPC UA protocol in radio networks
CN105807705A (en) * 2014-12-30 2016-07-27 中国科学院沈阳自动化研究所 House refuse recycling processing process monitoring method based on Internet of Things technology
CN104978634A (en) * 2015-07-09 2015-10-14 蓝飞鹏 Data processing system
CN107291058A (en) * 2017-08-01 2017-10-24 西安交通大学 A kind of continuous casting production process data acquisition monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463414A (en) * 2020-12-14 2021-03-09 招商局金融科技有限公司 Multi-client data interaction method and device, electronic equipment and storage medium
CN112463414B (en) * 2020-12-14 2024-02-09 招商局金融科技有限公司 Multi-client data interaction method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6107261B2 (en) Relay device, image processing device, and communication system
CN110012083B (en) Data transmission method, server and data transmission device
US10326659B2 (en) Device and method for automatic switching of communication protocol of network devices based on user action
US9385990B2 (en) Relay server and relay communication system
CN111031072A (en) Data acquisition system, method and computer equipment
KR101395830B1 (en) Session checking system via proxy and checkhing method thereof
JP6531817B2 (en) Relay apparatus, image processing apparatus and communication system
JP6265257B2 (en) Relay device, image processing device, and communication system
US8145698B1 (en) Self organizing peer-to-peer system, method, and/or apparatus
CN112565458B (en) Platform remote control method and device, storage medium and electronic equipment
KR101723172B1 (en) IoT(Internet of Thing) Service Offering Method
KR20150088462A (en) Method for linking network device in cloud environment and apparatus therefor
JP6566070B1 (en) Flow management server, flow management system, flow management method, and flow management program
CN111642031B (en) Method for connecting multiple devices, electronic device and computer readable storage medium
JP2008301159A (en) Inter-network mediating device
KR102000199B1 (en) Method and Server Apparatus for Providing Internet of Things Platform Service
JP2019179560A (en) Relay device, image processing device, and communication system
EP3211861B1 (en) Electric power system
JP6651178B1 (en) Computer program, information processing method, information processing apparatus, and information processing system
JP5769267B2 (en) Wireless communication terminal, communication system, communication system control method, and program
JP2019103118A (en) Communication relay device, communication relay program, and communication relay method
CN114338633B (en) Method and system for remotely connecting Linux server
US20230412369A1 (en) Communication system, information processing device, information processing method, and computer program product
JP7205129B2 (en) Information processing system, client device and information processing program
JP2017527232A (en) Method and apparatus for handling interactions between devices

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: 20200417