Industrial control equipment data acquisition system based on the Internet of Things
Through the industrial control equipment data acquisition system based on the Internet of Things, the problem of unified calling and data collection of different equipment protocols is solved, effective analysis and secure storage of data are achieved, plug-and-play is supported, and data utilization and security are improved.
Patent Information
- Application Number
- CN202310062583.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-13
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2043-01-13
AI Technical Summary
The data collection protocols of existing industrial control equipment vary, making data collection difficult. Moreover, the collected industrial data is dirty data and cannot be directly stored for analysis, making data use inconvenient.
Design an industrial control equipment data acquisition system based on the Internet of Things, including heterogeneous protocol modules and servers. By driving components such as protocol adapters, protocol adapter interfaces, device object models, and data analysis units, it realizes the collection, conversion, analysis, and storage of data information, unifies the data acquisition protocols of different devices, and processes and encrypts the data.
It realizes the unified calling of data acquisition protocols of different industrial control equipment, avoids the complexity of data acquisition, ensures the validity and security of data, supports plug and play, and improves the analysis and utilization rate of data.
Smart Images

Figure CN116743886B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial data acquisition, and in particular to an industrial control equipment data acquisition system based on the Internet of Things. Background Art
[0002] The Internet of Things (IoT) connects any object to the internet through information sensing devices, following agreed-upon protocols, for information exchange and communication, enabling intelligent identification, positioning, tracking, monitoring, and management. Real-time data collection from industrial control equipment through the IoT can help manufacturers and users better understand the operational parameters of the entire industrial control equipment. However, different types of industrial control equipment use different data collection protocols, making data collection difficult. Furthermore, the collected industrial data is dirty and cannot be directly stored for analysis, making it difficult to use later. Summary of the Invention
[0003] The purpose of the present invention is to propose an industrial control equipment data acquisition system based on the Internet of Things in order to solve the problems that the data acquisition protocols of existing industrial control equipment are different and the industrial data is dirty data, which cannot be used for analysis when directly stored, resulting in difficulty in data acquisition and inconvenience in subsequent data use.
[0004] The object of the present invention can be achieved by the following technical solution: an industrial control equipment data acquisition system based on the Internet of Things, including a heterogeneous protocol module and a server, wherein the heterogeneous protocol module is connected to the industrial control equipment and the server respectively, and is used to collect data information of the industrial control equipment and send it to the server; wherein the data information includes data name, monitoring value, monitoring video, monitoring picture and monitoring audio, etc.; the heterogeneous protocol module includes a driver protocol adapter, a protocol adapter interface, a device object model, a data analysis unit and a local storage unit;
[0005] The driver protocol adapter includes a model definition unit, a connection management unit, a data conversion unit, and a data command processing unit. The model definition unit is used to define the adapter model, which includes the adapter ID, adapter name, adapter interface, protocol library, and return value. The connection management unit is used to establish an IoT communication connection between the industrial control device and the gateway. The data conversion unit is used to connect the industrial control device to the driver adapter and convert the acquired terminal device data into a data format that conforms to the device object model specification. The data command processing unit is used to drive the adapter to process the server's operation request for the industrial control device, complete the service call to the industrial control device, process the call result, and finally return the result to the server.
[0006] The protocol adapter interface includes the access and authentication interface of the driver adapter, the function command interface, the message reporting and sending data interface, the attribute reading interface, the attribute writing interface and the device status monitoring interface; the access and authentication interface is used for industrial control device access and authentication; the function command interface is used to monitor the commands received by the industrial control device and automatically call the defined commands, reversely control the industrial control device to issue commands, and process and report responses to the commands; the message reporting and sending data interface is used for the industrial control device to actively report messages and define periodic reporting or manually trigger reporting; the attribute reading interface is used to receive the query attributes issued and to call when the industrial control device reports attributes for data collection;
[0007] The attribute writing interface is used when the industrial control device receives the setting attributes issued by the platform. The device status monitoring interface is used to report the status of the industrial control device at a fixed interval. If there is no status of the industrial control device for N consecutive times, the industrial control device will be set to offline status.
[0008] The device object model is used to abstract and summarize the functions of devices of different brands and categories to form a standard device object model. This allows all industrial control devices to be described, controlled, and understood in a unified language. The model consists of basic information and model modules.
[0009] The data analysis unit is used to analyze and process the data information collected from the industrial control equipment and send it to the server;
[0010] The local storage unit is used to cache data information and the comparison conditions, analysis models and encryption models corresponding to the data information.
[0011] As a preferred embodiment of the present invention, the adapter ID is used to define the unique identifier of the driver adapter when it is running in the server; the adapter name is used as a basic information of the driver adapter and is directly defined inside the driver adapter during the driver adapter development phase; the adapter interface is used for the driver adapter to provide data acquisition functions to the outside world; the protocol library is a private underlying data docking protocol library for each industrial control device, and the protocol library is encapsulated in the adapter interface; the return value is the data information of the industrial control device collected by the driver adapter.
[0012] As a preferred embodiment of the present invention, the basic information includes the device model name, user group, manufacturer, industry, and data format; the model module is a part with a certain functional combination that can be abstracted into a module, and the model module is composed of several attributes, functions, and events; attributes are used to describe the specific information and status of the device during operation; functions are the capabilities or methods of industrial control devices for external calls, and input and output parameters are set in the service call; events are used to actively report information to the server when the device is running, including information perceived and processed externally, alarms and faults, and multiple output parameters.
[0013] As a preferred embodiment of the present invention, the data analysis unit analyzes and processes the data information. The specific processing process is as follows:
[0014] Identify the data information, and when the data information belongs to the first category of information, perform a first operation on the data information; when the data information belongs to the second category of information, perform a second operation on the data information; when the data information belongs to the third category of information, perform a third operation on the data information; and when the data information belongs to the fourth category of information, perform a fourth operation on the data information;
[0015] The specific process of the first operation is as follows:
[0016] Obtaining the comparison conditions corresponding to the data information; when the data in the data information meets the comparison conditions, sending the data information to the local storage unit for caching, analyzing the capacity of the cache, and sending all the cached data information in the local storage unit to the server; when the data in the data information does not meet the comparison conditions, generating an exception instruction and sending the data information and the exception instruction to the server;
[0017] The specific process of the second operation is:
[0018] Obtain the analysis model corresponding to the data information, extract the monitoring values in the data information, filter and process the monitoring values, substitute the processed monitoring values into the corresponding analysis model, output the model set through the analysis model, and send the data information and model set to the server;
[0019] The specific process of the third operation is:
[0020] Obtain the encryption model corresponding to the data information, encrypt the data information using the encryption model, and send the encrypted data information to the server;
[0021] The specific process of the fourth operation is:
[0022] Mark the data information and send it to the server.
[0023] As a preferred embodiment of the present invention, the comparison condition includes the data name and the corresponding data range or data threshold; when the comparison condition of the data information is the data name and the corresponding data range, the monitoring value in the data information is compared with the data range. When the monitoring value is within the data range, the comparison condition is met; otherwise, the comparison condition is not met; when the comparison condition of the data information is the data name and the data threshold, the monitoring value in the data information is compared with the data threshold. When the monitoring value is less than the data threshold, the comparison condition is met; otherwise, the comparison condition is not met.
[0024] As a preferred embodiment of the present invention, the specific process of analyzing the cache capacity is as follows:
[0025] Collect data information for each cache moment and the total cache amount, sort each cache moment in chronological order, calculate the time difference between two adjacent cache moments to obtain the cache interval length, and sort all cache interval lengths in sequence; when the number of cache interval lengths is greater than the set number threshold, compare the two adjacent cache interval lengths, when the previous cache interval length is greater than the next cache interval length, calculate the time difference between the two to obtain the adjacent difference length one, when the previous cache interval length is less than the next cache interval length, calculate the time difference between the two and take the absolute value to obtain the adjacent difference length two; all the values corresponding to the adjacent difference length ones are The sum is performed to obtain the total value of neighbor difference 1, and the corresponding values of all neighbor difference durations 2 are summed to obtain the total value of neighbor difference 2; the total value of neighbor difference 1 is divided by the total value of neighbor difference 2 to obtain the neighbor separation ratio; the values of the neighbor separation ratio and the total amount of cache are extracted and marked as LG1 and HZ1 respectively, and all data names are set to correspond to a neighbor separation ratio coefficient and a total amount of cache coefficient, and the neighbor separation ratio coefficient and the total amount of cache coefficient corresponding to the data information are matched and marked as eg1 and eg2; the preset formula FS=(LG1×eg1+HZ1×eg2) / 2eg1 is substituted to obtain the base value FS of the data information; when the base value is greater than the set threshold, the cached data information is sent to the server.
[0026] As a preferred embodiment of the present invention, the specific process of encrypting data information through the encryption model is as follows:
[0027] Extract characters from the data information, set all characters to correspond to a unique identifier, the identifier is composed of several symbols, and match the characters in the data information with all characters in sequence to convert the data information into an identifier text composed of several identifiers in sequence;
[0028] Substitute the identification text into the encryption model, wherein the encryption model includes a pointer, a first ring and a second ring, the pointer is concentric with the first ring and the second ring, and the pointer is located inside the first ring, and the first ring is located inside the second ring; a number of filling areas are provided on the first ring and the second ring, and two identifications in a group in the identification text are filled in the filling areas corresponding to the first ring and the second ring in sequence, and then the first ring and the second ring are randomly rotated and the rotation angle is recorded; all the rotation angles are sequentially formed into an angle set; all the encryption models are sequentially formed into a model set; the angle set is marked in the data information so that the data information corresponds to the angle set one by one, the angle set is sent to the preset administrator terminal for storage, and the data information and the model set are sent to the server.
[0029] As a preferred embodiment of the present invention, the specific process of marking data information and sending it to the server is as follows:
[0030] The tag categories include direct storage and interval storage; direct storage and interval storage correspond to a name group, which includes several data names;
[0031] When the data name in the data information belongs to the group of names corresponding to direct storage, the data information is marked as direct data information;
[0032] When the data name in the data information belongs to the name group corresponding to the interval storage, the data information is marked as interval data information.
[0033] As a preferred embodiment of the present invention, an information management unit is provided in the server, and the information management unit is used to manage interval data information. The specific management process is as follows:
[0034] Obtain the storage time of the interval data information, calculate the time difference between the storage time and the current time to obtain the storage duration. When the storage duration is greater than the set duration threshold, obtain the pre-registered storage terminal, obtain the storage parameters of the storage terminal, process the storage parameters to obtain the optimal value, and send the interval data information to the storage terminal with the largest optimal value for storage.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] The present invention uses a driver adapter to encapsulate the data acquisition protocol according to the interface specification to form an adapter, encapsulates different data acquisition protocol libraries into driver adapters to form an adapter library, and defines a unified interface between the server and the adapter. When a new industrial control device is added to the workshop, the server only needs to instantiate an adapter of the corresponding protocol to complete data acquisition, thereby realizing unified calling and plug-and-play of different data acquisition protocols, avoiding the existing non-standard industrial data protocols and the inability to realize data acquisition of all industrial control devices;
[0037] The present invention analyzes and processes the collected data through a data analysis unit and performs corresponding operations, and then stores the data after processing, thereby avoiding a large amount of industrial data being dirty data, which cannot be used for analysis when directly stored, resulting in inconvenience in the subsequent use of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] To facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0039] Figure 1 It is a principle block diagram of the present invention;
[0040] Figure 2 This is a principle block diagram of the heterogeneous protocol module of the present invention;
[0041] Figure 3 This is a schematic diagram of the encryption model of the present invention. Implementation Method
[0042] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0043] See also Figure 1 As shown, the industrial control equipment data acquisition system based on the Internet of Things includes a heterogeneous protocol module and a server. The heterogeneous protocol module is connected to the industrial control equipment and the server respectively, and is used to collect data information of the industrial control equipment and send it to the server; the data information includes data name, monitoring value, monitoring video, monitoring picture and monitoring audio, etc.
[0044] See also Figure 2 As shown, the heterogeneous protocol module includes a driver protocol adapter, a protocol adapter interface, a device object model, a data analysis unit, and a local storage unit;
[0045] The main purpose of the driver protocol adapter is to actively acquire or passively receive device data and control the device (provided that the device supports being controlled by the program). In fact, it is a set of program logic, and this set of program logic is summarized into different driver modules according to different types of devices. This set of program logic can be implemented in programming languages such as C, Java, and C#, and custom device access drivers can be developed according to business protocol requirements. The driver protocol adapter includes a model definition unit, a connection management unit, a data conversion unit, and a data command processing unit; the model definition unit is used to define the adapter model, and the adapter model includes the adapter ID, adapter name, adapter interface, protocol library, and return value; among them, the adapter ID is used to define the unique identifier of the driver adapter when it runs in the server and is defined when the adapter is registered; the adapter name, as a basic information, is directly defined within the adapter during the adapter development phase; the adapter interface is the data acquisition function provided by the driver adapter to the outside world; the protocol library is the underlying data docking protocol library private to each industrial control device, and the protocol library is encapsulated in the adapter interface; the return value is the data information collected by the driver adapter from the industrial control device, which is eventually transmitted to the server for further processing;
[0046] The driver adapter encapsulates the data acquisition protocol according to the interface specification to form an adapter. Each adapter is an independently running dll or jar, which is dynamically loaded by the server at runtime to implement the protocol adaptation function of the corresponding OT device in a non-invasive manner. The driver adapter is a program written according to the agreed interface rules. It can change or expand the program function without changing the main program. An adapter framework usually includes the main program, interface, and adapter. Different data acquisition protocol libraries are encapsulated into driver adapters to form an adapter library, and a unified interface between the server and the adapter is defined. When new industrial control equipment is added to the workshop, the server only needs to instantiate an adapter of the corresponding protocol to complete data acquisition, thereby realizing unified calling and plug-and-play of different data acquisition protocols.
[0047] The connection management unit is used to establish IoT communication connections between industrial control devices and gateways;
[0048] The data conversion unit is used to connect the industrial control device to the driver adapter and convert the acquired terminal device data into a data format that conforms to the device object model specification. The data command processing unit is used to drive the adapter to process the server's operation request for the industrial control device, complete the service call of the industrial control device, process the call result, and finally return the result to the server.
[0049] The protocol adapter interface includes the access and authentication interface of the driver adapter, the function command interface, the message reporting and sending data interface, the attribute reading interface, the attribute writing interface and the device status monitoring interface; the access and authentication interface is used for industrial control device access and authentication; the function command interface is used to monitor the commands received by the industrial control device and automatically call the defined commands, reversely control the industrial control device to issue commands, and process and report responses to the commands; the message reporting and sending data interface is used for the industrial control device to actively report messages and define periodic reporting or manually trigger reporting; the attribute reading interface is used to receive the query attributes issued and to call when the industrial control device reports attributes for data collection;
[0050] The attribute writing interface is used when the industrial control device receives the setting attributes issued by the platform. The device status monitoring interface is used to report the status of the industrial control device at fixed intervals. If there is no status report for N consecutive times, the industrial control device will be set to offline status. For example, the device status is reported once every Ns times. Each status report is a heartbeat. If there is no heartbeat for N consecutive times, the device will be set to offline status.
[0051] The device object model is used to abstract and summarize the functions of devices of different brands and categories to form a standard device object model. This allows all industrial control devices to be described, controlled, and understood in a unified language. The model consists of basic information and model modules.
[0052] Basic information: describes the basic information of a device, including device model name, user group, manufacturer, industry, and data format;
[0053] Module: Parts with a certain functional combination can be abstracted into modules. Each module is composed of several attributes, functions, and events. The significance of the module layer is that as long as a small number of modules are defined, the functions of different products can be described through different module combinations;
[0054] Attributes: used to describe the specific information and status of the device during operation, such as the device's temperature, switch status, speed, etc. Attributes can be divided into two types: read-write and read-only, which support both reading and setting attributes.
[0055] Function: refers to the ability or method that a device can call externally. Input and output parameters can be set in service calls. Input parameters are the parameters used when the service is executed, and output parameters are the results after the service is executed. Compared to attributes, services can implement more complex business logic through a single instruction, such as executing a specific task. Services are divided into two calling modes: asynchronous and synchronous.
[0056] Events: Information proactively reported to the cloud during device operation. These typically include information, alarms, and faults that require external perception and processing. Events can include multiple output parameters. For example, notification information upon completion of a task; temperature and time information when a device malfunctions; and the operating status of a device when an alarm is issued. Events are highly severe and real-time, requiring monitoring and timely response, and proactive reporting to the cloud. Events can be subscribed to and pushed.
[0057] The upper-layer IoT system should support the definition of multiple sets of functions (attributes, functions, and events) for industrial control devices. A set of function definitions is a thing model module. Multiple thing model modules do not affect each other.
[0058] The device object model mainly solves the complex device modeling in industrial scenarios, making it easier to develop device protocol adaptations with different functions under the same product;
[0059] The data analysis unit analyzes and processes the data information collected from the industrial control equipment and sends it to the server; the specific processing process is as follows:
[0060] Identify the data information, and when the data information belongs to the first category of information, perform a first operation on the data information; when the data information belongs to the second category of information, perform a second operation on the data information; when the data information belongs to the third category of information, perform a third operation on the data information; and when the data information belongs to the fourth category of information, perform a fourth operation on the data information;
[0061] The specific process of the first operation is as follows:
[0062] Obtain the comparison conditions corresponding to the data information. When the data in the data information meets the comparison conditions, the data information is sent to the local storage unit for caching, the cache capacity is analyzed, and all cached data information in the local storage unit is sent to the server; when the data in the data information does not meet the comparison conditions, an exception instruction is generated and the data information and the exception instruction are sent to the server; the comparison conditions include the data name and the corresponding data range or data threshold; when the comparison conditions of the data information are the data name and the corresponding data range, the monitoring value in the data information is compared with the data range. When the monitoring value is within the data range, the comparison condition is met; otherwise, the comparison condition is not met; when the comparison conditions of the data information are the data name and the data threshold, the monitoring value in the data information is compared with the data threshold. When the monitoring value is less than the data threshold, the comparison condition is met; otherwise, the comparison condition is not met; the specific process of analyzing the cache capacity is as follows:
[0063] Collect data information for each cache moment and the total cache amount, sort each cache moment in chronological order, calculate the time difference between two adjacent cache moments to obtain the cache interval length, and sort all cache interval lengths in sequence; when the number of cache interval lengths is greater than the set number threshold, compare the two adjacent cache interval lengths, when the previous cache interval length is greater than the next cache interval length, calculate the time difference between the two to obtain the adjacent difference length one, when the previous cache interval length is less than the next cache interval length, calculate the time difference between the two and take the absolute value to obtain the adjacent difference length two; all the values corresponding to the adjacent difference length ones are The sum is performed to obtain the total value of neighbor difference 1, and the corresponding values of all neighbor difference durations 2 are summed to obtain the total value of neighbor difference 2; the total value of neighbor difference 1 is divided by the total value of neighbor difference 2 to obtain the neighbor separation ratio; the values of the neighbor separation ratio and the total amount of cache are extracted and marked as LG1 and HZ1 respectively, and all data names are set to correspond to a neighbor separation ratio coefficient and a total amount of cache coefficient, and the neighbor separation ratio coefficient and the total amount of cache coefficient corresponding to the data information are matched and marked as eg1 and eg2; the preset formula FS=(LG1×eg1+HZ1×eg2) / 2eg1 is substituted to obtain the base value FS of the data information; when the base value is greater than the set threshold, the cached data information is sent to the server.
[0064] The specific process of the second operation is:
[0065] Obtain the analysis model corresponding to the data information, extract the monitoring values in the data information, filter and process the monitoring values, substitute the processed monitoring values into the corresponding analysis model, output the model set through the analysis model, and send the data information and model set to the server;
[0066] The specific process of the third operation is:
[0067] Obtain the encryption model corresponding to the data information, encrypt the data information using the encryption model, and send the encrypted data information to the server; the specific process is:
[0068] Extract characters from the data information, set all characters to correspond to a unique identifier, the identifier is composed of several symbols, and match the characters in the data information with all characters in sequence to convert the data information into an identifier text composed of several identifiers in sequence;
[0069] See also Figure 3As shown, the identification text is substituted into the encryption model, wherein the encryption model includes a pointer 1, a first ring 2 and a second ring 3, the pointer 1 is concentric with the first ring 2 and the second ring 3, and the pointer 1 is located inside the first ring 2, and the first ring 2 is located inside the second ring 3; a plurality of filling areas 4 are provided on the first ring 2 and the second ring 3, and two identifications in a group of two in the identification text are filled in the filling areas 4 corresponding to the first ring 2 and the second ring 3 in sequence, and then the first ring 2 and the second ring 3 are randomly rotated and the rotation angles are recorded; all the rotation angles are sequentially formed into an angle set; all the encryption models are sequentially formed into a model set; the angle set is marked in the data information so that the data information corresponds to the angle set one by one, the angle set is sent to the preset administrator terminal for storage, and the data information and the model set are sent to the server; by encrypting the collected data information, the security of the data is guaranteed and the leakage of some core data of the industrial control equipment is avoided;
[0070] The specific process of the fourth operation is:
[0071] Mark the data information and send it to the server, specifically: set the marking category to include direct storage and interval storage; direct storage and interval storage correspond to a name group, and the name group includes several data names;
[0072] When the data name in the data information belongs to the group of names corresponding to direct storage, the data information is marked as direct data information;
[0073] When the data name in the data information belongs to the name group corresponding to the interval storage, the data information is marked as interval data information;
[0074] The local storage unit is used to cache data information and the comparison conditions, analysis models and encryption models corresponding to the data information;
[0075] The server is equipped with an information management unit, which is used to manage interval data information. The specific management process is as follows:
[0076] Obtain the storage time of the interval data information, calculate the time difference between the storage time and the current time to obtain the storage duration, when the storage duration is greater than the set duration threshold, obtain the pre-registered storage terminal, obtain the storage parameters of the storage terminal, wherein the storage parameters include the location, model and remaining storage capacity of the storage terminal, and process the storage parameters to obtain the storage optimization value, specifically: set all models to correspond to a model preset value, match the model in the storage parameter with all models to obtain the corresponding model preset value, calculate the position distance between the server location and the storage terminal location to obtain the transmission distance, extract the values corresponding to the transmission distance, model preset value and remaining storage capacity and mark them as M1, M2 and M3; use the formula CY=(M2×fs2+M3×fs3) / M1×fs1 to obtain the storage optimization value CY of the storage terminal, wherein fs1, fs2 and fs3 are preset weight coefficients, and send the interval data information to the storage terminal with the largest storage optimization value for storage.
[0077] When the present invention is in use, data collection and unified protocol calls are realized through heterogeneous protocol modules to provide data support for interconnection and interoperability. The driver adapter encapsulates the data collection protocol according to the interface specification to form an adapter, and encapsulates different data collection protocol libraries into driver adapters to form an adapter library, and defines a unified interface between the server and the adapter. When new industrial control equipment is added to the workshop, the server only needs to instantiate an adapter of the corresponding protocol to complete the data collection, thereby realizing unified calling and plug-and-play of different data collection protocols, avoiding the non-standard protocols of existing industrial data and the inability to realize data collection of all industrial control equipment; the collected data is analyzed and processed by the data analysis unit and corresponding operations are performed, and then stored after processing, avoiding a large amount of industrial data being dirty data, which cannot be used for analysis due to direct storage, resulting in inconvenience in the use of later data.
[0078] The preferred embodiments of the present invention disclosed above are intended only to help illustrate the present invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the present invention to specific embodiments. Obviously, many modifications and variations are possible based on the contents of this specification. These embodiments are selected and described in detail in this specification to better explain the principles and practical applications of the present invention, thereby enabling those skilled in the art to better understand and utilize the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. An industrial control equipment data acquisition system based on the Internet of Things, comprising a heterogeneous protocol module and a server, wherein the heterogeneous protocol module is connected to the industrial control equipment and the server respectively, and is used to collect data information of the industrial control equipment and send it to the server; characterized in that: The heterogeneous protocol module includes a driver protocol adapter, a protocol adapter interface, a device object model, a data analysis unit and a local storage unit; The drive protocol adapter includes a model definition unit, a connection management unit, a data conversion unit and a data command processing unit; The model definition unit is used to define the adapter model, which includes the adapter ID, adapter name, adapter interface, protocol library and return value; the connection management unit is used to establish an Internet of Things communication connection between the industrial control device and the gateway; The data conversion unit is used to connect the industrial control device to the driver adapter and convert the acquired terminal device data into a data format that conforms to the device object model specification; the data command processing unit is used to drive the adapter to process the server's operation request for the industrial control device, complete the service call of the industrial control device, process the call result, and finally return the result to the server; The protocol adapter interface includes an access and authentication interface for the driver adapter, a function command interface, a message reporting and sending data interface, an attribute reading interface, an attribute writing interface, and an equipment status monitoring interface; the access and authentication interface is used for industrial control equipment access and authentication; the function command interface is used to monitor the commands received by the industrial control equipment and automatically call the defined commands, reversely control the industrial control equipment to issue commands, and process and report responses to the commands; the message reporting and sending data interface is used for the industrial control equipment to actively report messages and define periodic reporting or manually trigger reporting; The attribute reading interface is used to receive query attributes issued and called when the industrial control device reports attributes to perform data collection; The attribute writing interface is used to call the industrial control device when it receives the setting attribute issued by the platform; the device status monitoring interface is used to report the status of the industrial control device once every fixed time. If there is no status of the industrial control device for N consecutive times, the industrial control device is set to an offline state; The device object model is used to abstract and summarize the functions of devices of different brands and categories to form a standard device object model, so that all industrial control devices can be described, controlled, and understood in a unified language. It consists of basic information and model modules. The data analysis unit is used to analyze and process the data information collected from the industrial control equipment and send it to the server; The local storage unit is used to cache data information and comparison conditions, analysis models and encryption models corresponding to the data information.
2. The industrial control equipment data acquisition system based on the Internet of Things according to claim 1 is characterized in that: The adapter ID is used to define a unique identifier for the driver adapter when it is running in the server; The adapter name is used as a basic information of the driver adapter and is directly defined inside the driver adapter during the driver adapter development phase; The adapter interface is used to drive the adapter to provide a data acquisition function to the outside world; The protocol library is a private underlying data docking protocol library of each industrial control device, and the protocol library is encapsulated in the adapter interface; The return value is the data information of the industrial control device collected by the driver adapter.
3. The industrial control equipment data acquisition system based on the Internet of Things according to claim 1 is characterized in that: The basic information includes the device model name, user group, manufacturer, industry, and data format; the model module is a part with a certain functional combination that can be abstracted into a module, and the model module consists of several attributes, functions, and events; attributes are used to describe the specific information and status of the device during operation; functions are the capabilities or methods of industrial control devices for external calls, and input and output parameters are set in the service call; events are used to actively report information to the server during device operation, including information perceived and processed externally, alarms and faults, and multiple output parameters.
4. The industrial control equipment data acquisition system based on the Internet of Things according to claim 1 is characterized in that: The data analysis unit analyzes and processes the data information, and the specific processing process is as follows: Identify the data information, and when the data information belongs to the first category of information, perform a first operation on the data information; when the data information belongs to the second category of information, perform a second operation on the data information; when the data information belongs to the third category of information, perform a third operation on the data information; and when the data information belongs to the fourth category of information, perform a fourth operation on the data information; The specific process of the first operation is as follows: Obtaining the comparison conditions corresponding to the data information; when the data in the data information meets the comparison conditions, sending the data information to the local storage unit for caching, analyzing the capacity of the cache, and sending all the cached data information in the local storage unit to the server; when the data in the data information does not meet the comparison conditions, generating an exception instruction and sending the data information and the exception instruction to the server; The specific process of the second operation is: Obtain the analysis model corresponding to the data information, extract the monitoring values in the data information, filter and process the monitoring values, substitute the processed monitoring values into the corresponding analysis model, output the model set through the analysis model, and send the data information and model set to the server; The specific process of the third operation is: Obtain the encryption model corresponding to the data information, encrypt the data information using the encryption model, and send the encrypted data information to the server; The specific process of the fourth operation is: Mark the data information and send it to the server.
5. The industrial control equipment data acquisition system based on the Internet of Things according to claim 4 is characterized in that: The comparison condition includes the data name and the corresponding data range or data threshold; when the comparison condition of the data information is the data name and the corresponding data range, the monitoring value in the data information is compared with the data range. When the monitoring value is within the data range, the comparison condition is met; No, the comparison condition is not met; when the comparison condition of the data information is the data name and the data threshold, the monitoring value in the data information is compared with the data threshold. When the monitoring value is less than the data threshold, the comparison condition is met; No, the comparison conditions are not met.
6. The industrial control equipment data acquisition system based on the Internet of Things according to claim 4 is characterized in that: The specific process of analyzing the cache capacity is as follows: Collect data information for each cache moment and the total cache amount, sort each cache moment in chronological order, calculate the time difference between two adjacent cache moments to obtain the cache interval length, and sort all cache interval lengths in sequence; when the number of cache interval lengths is greater than the set number threshold, compare the two adjacent cache interval lengths, when the previous cache interval length is greater than the next cache interval length, calculate the time difference between the two to obtain the adjacent difference length -, when the previous cache interval length is less than the next cache interval length, calculate the time difference between the two and take the absolute value to the second neighbor difference duration; sum up all the values corresponding to the first neighbor difference duration to obtain the total neighbor difference value one, and sum up all the values corresponding to the second neighbor difference duration to obtain the total neighbor difference value two; divide the total neighbor difference value one by the total neighbor difference value two to obtain the neighbor distance ratio; extract the values of the neighbor distance ratio and the total cache amount, set all data names to correspond to a neighbor distance ratio coefficient and a total cache amount coefficient, match the neighbor distance ratio coefficient and the total cache amount coefficient corresponding to the data information, and process it with the neighbor distance ratio and the total cache amount to obtain the base value of the data information; when the base value is greater than the set threshold, the cached data information is sent to the server.
7. The industrial control equipment data acquisition system based on the Internet of Things according to claim 4 is characterized in that: The specific process of encrypting data information through the encryption model is as follows: Extract characters from the data information, set all characters to correspond to a unique identifier, the identifier is composed of several symbols, and match the characters in the data information with all characters in sequence to convert the data information into an identifier text composed of several identifiers in sequence; Substitute the identification text into the encryption model, wherein the encryption model includes a pointer (1), a first ring (2) and a second ring (3), the pointer (1) is concentric with the first ring (2) and the second ring (3), and the pointer (1) is located in the first ring (2), and the first ring (2) is located in the second ring (3); a plurality of filling areas (4) are provided on the first ring (2) and the second ring (3), and two identifications in a group of two in the identification text are filled in the filling areas (4) corresponding to the first ring (2) and the second ring (3) in sequence, and then the first ring (2) and the second ring (3) are randomly rotated and the rotation angle is recorded; all the rotation angles are sequentially formed into an angle set; all the encryption models are sequentially formed into a model set; The angle set is marked in the data information so that the data information corresponds to the angle set one by one, the angle set is sent to a preset administrator terminal for storage, and the data information and model set are sent to the server.
8. The industrial control equipment data acquisition system based on the Internet of Things according to claim 4 is characterized in that: The specific process of marking the data information and sending it to the server is as follows: The tag categories include direct storage and interval storage; direct storage and interval storage correspond to a name group, which includes several data names; When the data name in the data information belongs to the group of names corresponding to direct storage, the data information is marked as direct data information; When the data name in the data information belongs to the name group corresponding to the interval storage, the data information is marked as interval data information.
9. The industrial control equipment data acquisition system based on the Internet of Things according to claim 8, characterized in that: The server is provided with an information management unit, which is used to manage interval data information. The specific management process is as follows: Obtain the storage time of the interval data information, calculate the time difference between the storage time and the current time to obtain the storage duration. When the storage duration is greater than the set duration threshold, obtain the pre-registered storage terminal, obtain the storage parameters of the storage terminal, process the storage parameters to obtain the optimal value, and send the interval data information to the storage terminal with the largest optimal value for storage.
Citation Information
Patent Citations
Industrial real-time data acquisition system based on wireless adapters
CN105488990A
Communication protocol adaptation control method for Internet of Things device and control system thereof
CN108650273A