Data collection method, control device, system and computer readable storage medium

By receiving and processing the configuration information of the edge acquisition gateway on the Internet of Things platform, and performing point table aggregation and issuance, the problem of inefficient configuration of edge-end devices in the prior art is solved, and efficient data acquisition and real-time status monitoring are achieved.

CN119182826BActive Publication Date: 2025-02-14国投融合科技股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411687401.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-02-14
Estimated Expiration
2044-11-25

AI Technical Summary

Technical Problem

Existing IoT platforms are inefficient in edge device configuration, making it difficult to monitor and manage device status in real time, especially in large-scale industrial application scenarios.

Method used

By receiving configuration information of the edge acquisition gateway, determining the acquisition channel, device point table and connection relationship, performing point table aggregation processing, generating a target aggregation point table, and issuing it to the edge acquisition gateway to realize data acquisition and status monitoring.

Benefits of technology

It reduces the number of points and data transmission times, saves network traffic, improves the data acquisition efficiency of edge gateways, and realizes real-time monitoring and troubleshooting through topology diagrams, simplifying the configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182826B_ABST
    Figure CN119182826B_ABST
Patent Text Reader

Abstract

The present application provides a data collection method, a control device, a system and a computer-readable storage medium, which relate to the field of data collection technology for the Internet of Things. The method comprises: after receiving configuration information about an edge collection gateway, determining at least one collection channel of the edge collection gateway, a point table of multiple devices and a connection relationship between the collection channel and the device according to the configuration information; performing aggregation processing on the point table according to the protocol type corresponding to each point table to obtain a target aggregation point table; sending the target aggregation point table to the edge collection gateway; receiving the collection data uploaded by the edge collection gateway; performing data analysis on the collection data to obtain the status of each collection channel and the status of each device; and displaying the collection channel, point table, connection relationship, device status and collection channel status through a topological structure diagram. The present application avoids the frequent sending of point tables, saves network traffic, improves data collection efficiency, and realizes real-time monitoring of the status of the collection channel and the status of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data collection in the Internet of Things, and in particular to a data collection method, a control device, a system and a computer-readable storage medium. Background Art

[0002] In the Internet of Things (IoT) system, data collection is one of the core links, especially in the Industrial Internet of Things (IIoT) environment, which needs to process data from a large number of devices and sensors. These devices usually communicate through different protocols (such as PLC-S7, Modbus, OPC UA, etc.). The data collection of these devices requires channel (such as Internet Protocol (IP), port) and point table configuration in the IoT platform so that edge devices can collect data and upload it to the platform. In existing IoT platforms, it mainly relies on manual configuration of collection channels and point tables (device data tables), which is a complex and error-prone process, especially in large-scale industrial application scenarios. Due to the lack of effective aggregation of multiple communication protocol point tables and management based on network topology, traditional IoT platforms usually face the following problems:

[0003] The configuration of channels and device point tables is too complicated, especially in large-scale device scenarios. Devices with different protocols need to be configured with collection channels and point tables separately, which makes it difficult to manage them in a unified manner.

[0004] The data interaction process between the platform and the edge gateway is not efficient. Each point table configuration needs to be sent down from the cloud separately, which wastes a lot of network traffic, especially when the device needs to update the point table frequently.

[0005] The channel status and device status are not intuitive to view, especially in scenarios where multiple protocols and multiple devices coexist. It is difficult to accurately and in real time determine the connection status of each channel and the online status of the device.

[0006] The efficiency of edge gateways in collecting device data is low, especially in the case of multiple point tables and multiple protocols. Summary of the invention

[0007] The technical purpose to be achieved by the embodiments of the present application is to provide a data acquisition method, a control device, a system and a computer-readable storage medium to solve the problems of low efficiency in edge device configuration in existing systems and difficulty in real-time monitoring and management of device status.

[0008] In order to solve the above technical problems, the embodiment of the present application provides a data collection method, which is applied to the Internet of Things platform, including:

[0009] After receiving the configuration information about the edge acquisition gateway, determine at least one acquisition channel of the edge acquisition gateway, a point table of multiple devices, and a connection relationship between the acquisition channel and the device according to the configuration information;

[0010] Aggregating the point tables according to the protocol types corresponding to the point tables to obtain a target aggregated point table;

[0011] Sending the target aggregation point table to the edge collection gateway;

[0012] Subscribe to receive the collection data uploaded by the edge collection gateway and collected according to the aggregation point table;

[0013] Performing data analysis on the collected data to obtain the collection channel status corresponding to each of the collection channels and the device status corresponding to each of the devices;

[0014] The acquisition channel, the point table, the connection relationship, the device status and the acquisition channel status are displayed through a topological structure diagram.

[0015] Specifically, in the method described above, the step of aggregating the point tables according to the protocol types corresponding to the point tables to obtain a target aggregated point table includes:

[0016] Sorting the point table according to the protocol type and the address type to obtain a sorted point table queue;

[0017] According to the protocol type in the point table queue, the point table is respectively imported into the protocol aggregation processing flow corresponding to the protocol type;

[0018] Execute each of the protocol aggregation processing flows to obtain a sub-aggregation point table corresponding to the protocol type;

[0019] Each of the sub-aggregation point tables is merged to obtain the target aggregation point table.

[0020] Preferably, the method as described above, before sorting the point list according to the protocol type and the address type to obtain the sorted point list queue, further comprises:

[0021] Performing data analysis on the information in each of the point tables to obtain data information having a preset data structure and corresponding to the protocol type;

[0022] The data information is standardized so that the point table has a unified point table format.

[0023] Optionally, in the method described above, the data information corresponding to the protocol type includes at least one of the following:

[0024] If the protocol type is a PLC protocol, the data information at least includes a data address, a data address type and a data type;

[0025] If the protocol type is Modbus protocol, the data information at least includes register type, data type and register address;

[0026] If the protocol type is the OPC UA protocol, the data information at least includes an identifier, a namespace, and an array index.

[0027] Preferably, according to the method described above, executing the protocol aggregation process to obtain a corresponding sub-aggregation point table includes at least one of the following:

[0028] If the protocol type is the PLC protocol, determine whether the data address type and data type of the adjacent point tables are the same; if they are the same, merge the point tables whose first address offsets are within a first preset address offset range to obtain the sub-aggregation point table corresponding to the protocol type, wherein the first preset address offset range corresponds to the data type;

[0029] If the protocol type is the Modbus protocol, determine whether the register address type and data type of the adjacent point tables are the same; if they are the same, merge the point tables whose second address offsets are within a second preset address offset range to obtain the sub-aggregation point table corresponding to the protocol type, wherein the second preset address offset range corresponds to the data type;

[0030] If the protocol type is the OPC UA protocol, determine whether the identifiers and namespaces of adjacent point tables are the same; if they are the same, merge the point tables with continuous array indexes to obtain the corresponding sub-aggregation point table.

[0031] Another embodiment of the present application further provides a data collection method, which is applied to an edge collection gateway, including:

[0032] Subscribe to receive the target aggregation point table issued by the IoT platform;

[0033] According to the point table in the target aggregation point table, establish connections with the configured devices of each protocol type and perform data collection tasks;

[0034] The collected data from the device is uploaded to the Internet of Things platform.

[0035] Another embodiment of the present application further provides a control device, which is applied to an Internet of Things platform, including:

[0036] A configuration module, configured to determine, after receiving configuration information about an edge acquisition gateway, at least one acquisition channel of the edge acquisition gateway, a point table of multiple devices, and a connection relationship between the acquisition channel and the devices according to the configuration information;

[0037] A point table aggregation module, used for aggregating the point tables according to the protocol types corresponding to the point tables to obtain a target aggregated point table;

[0038] A point table sending module, used to send the aggregated point table to the edge collection gateway;

[0039] A data receiving module, used for receiving and subscribing to the collected data uploaded by the edge collection gateway and collected according to the aggregation point table;

[0040] A first data processing module is used to perform data analysis on the collected data to obtain the collection channel status corresponding to each of the collection channels and the device status corresponding to each of the devices;

[0041] The network topology module is used to display the acquisition channel, the point table, the connection relationship, the device status and the acquisition channel status through a topology diagram.

[0042] Another embodiment of the present application further provides a control device, which is applied to an edge collection gateway, including:

[0043] The data communication module is used to subscribe to and receive the target aggregation point table issued by the Internet of Things platform;

[0044] A data collection module, used to establish connections with configured devices of various protocol types according to the point table in the target aggregation point table, and perform data collection tasks;

[0045] The data communication module is also used to upload the collected data from the device to the Internet of Things platform.

[0046] Another embodiment of the present application further provides an Internet of Things data collection system, including: an Internet of Things platform, an edge collection gateway, and multiple devices;

[0047] The Internet of Things platform is provided with a first processor, a first memory, and a first computer program stored in the memory and executable on the first processor, and the first computer program implements the steps of the data collection method described above when executed by the first processor;

[0048] The edge acquisition gateway is connected to the Internet of Things platform and multiple devices respectively. The edge acquisition gateway is provided with a second processor, a second memory, and a second computer program stored in the memory and executable on the second processor. When the second computer program is executed by the second processor, the steps of the data acquisition method described above are implemented.

[0049] Another embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data collection method applied to the Internet of Things platform as described above are implemented, or when the computer program is executed by a processor, the steps of the data collection method applied to the edge collection gateway as described above are implemented.

[0050] Another embodiment of the present application further provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the data collection method applied to the Internet of Things platform as described above, or, when executed by a processor, implement the steps of the data collection method applied to the edge collection gateway as described above.

[0051] Compared with the prior art, the data acquisition method, control device, system and computer-readable storage medium provided in the embodiments of the present application have at least the following beneficial effects:

[0052] The present application reduces the number of point table issuances and the amount of data transmission through point table aggregation when issuing point tables, thereby saving network traffic and facilitating improving the data collection efficiency of edge gateways; the device status and collection channel status obtained by data analysis are displayed through a network topology diagram, which facilitates real-time monitoring and troubleshooting of the collection channel status and device status, and facilitates users to configure through the topology diagram, simplifies the configuration process of collection channels and point tables, and improves the usability and scalability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 This is one of the flow charts of the data collection method applied to the Internet of Things platform of this application;

[0054] Figure 2 This is the second flow chart of the data collection method applied to the Internet of Things platform of this application;

[0055] Figure 3 This is the third flow chart of the data collection method applied to the Internet of Things platform of this application;

[0056] Figure 4 A flow chart of a data collection method applied to an edge collection gateway of the present application;

[0057] Figure 5 This is a schematic diagram of the structure of the control device applied to the Internet of Things platform of the present application;

[0058] Figure 6 This is a schematic diagram of the structure of the control device applied to the edge acquisition gateway of the present application;

[0059] Figure 7 This is a schematic diagram of the architecture of the data acquisition system used in the present application. DETAILED DESCRIPTION

[0060] In order to make the technical problems, technical solutions and advantages to be solved by the application clearer, the following will be described in detail in conjunction with the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help fully understand the embodiments of the application. Therefore, it should be clear to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the application. In addition, for clarity and brevity, the description of known functions and structures has been omitted.

[0061] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0062] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0063] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0064] In the embodiments provided in this application, it should be understood that "B corresponding to A" means that B is associated with A and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, but B can also be determined according to A and / or other information.

[0065] See also Figure 1 An embodiment of the present application provides a data collection method, which is applied to an Internet of Things platform, including:

[0066] Step S101, after receiving configuration information about an edge acquisition gateway, determining at least one acquisition channel of the edge acquisition gateway, a point table of multiple devices, and a connection relationship between the acquisition channel and the device according to the configuration information;

[0067] Step S102, performing aggregation processing on the point tables according to the protocol types corresponding to the point tables to obtain a target aggregated point table;

[0068] Step S103, sending the target aggregation point table to the edge collection gateway;

[0069] Step S104, subscribing to receive the collection data uploaded by the edge collection gateway and collected according to the aggregation point table;

[0070] Step S105, performing data analysis on the collected data to obtain the collection channel status corresponding to each of the collection channels and the device status corresponding to each of the devices;

[0071] Step S106, displaying the acquisition channel, the point table, the connection relationship, the device status and the acquisition channel status through a topology diagram.

[0072] In a specific embodiment of the present application, after receiving the configuration information about the edge acquisition gateway, the Internet of Things platform will determine at least one acquisition channel of the edge acquisition gateway, the point tables of multiple devices, and the connection relationship between the acquisition channel and the device based on the configuration information, and then aggregate all the point tables based on the protocol type corresponding to each point table, and aggregate the point tables of different devices and different protocol types into a target aggregated point table, so that when the point table is sent, multiple point tables can be directly sent to the edge acquisition gateway at one time, reducing the number of point table sends and the amount of data transmission, thereby saving network traffic and facilitating the improvement of the configuration efficiency of the edge acquisition gateway. Furthermore, the edge gateway performs data collection based on the aggregated point table and uploads the collected data, which improves the data collection efficiency. The Internet of Things platform receives the collected data uploaded by the edge gateway through subscription, wherein the subscription method preferably adopts message queue telemetry transmission (MessageQueuing Telemetry Transport, MQTT) technology subscription; after receiving the uploaded collection data, the collection channel status corresponding to each collection channel and the device status corresponding to each device can be obtained through data analysis, and then the collection channel, point table, connection relationship in the configuration information, and the device status and collection channel status obtained through data analysis are displayed through a topology diagram, which is convenient for real-time monitoring and troubleshooting of the collection channel status and device status, and is convenient for users to configure through the topology diagram, which simplifies the configuration process of the collection channel and point table, and improves the usability and scalability of the system.

[0073] To summarize, the present application reduces the number of point table sends and the amount of data transmission through point table aggregation when sending point tables, thereby saving network traffic and facilitating improving the data collection efficiency of the edge gateway; the device status and collection channel status obtained by data analysis are displayed through a network topology diagram, which facilitates real-time monitoring and troubleshooting of the collection channel status and device status, and facilitates users to configure through the topology diagram, simplifies the configuration process of the collection channel and point table, and improves the system's usability and scalability.

[0074] It should be noted that the configuration information may be a file uploaded by a user through a network or device, or may be directly obtained by the user inputting information into a network topology module.

[0075] It should be noted that the network topology module establishes acquisition channels through multiple interfaces of the edge gateway (such as RS485, RJ45, etc.), and configures the protocol type, connection method and other necessary parameters (such as IP address, port number or serial port baud rate, sampling period, etc.) required for communication with the device on the channel. The setting of these parameters ensures stable and efficient communication between the edge gateway and different devices.

[0076] The network topology module displays the connection relationship between the acquisition channels and devices through an intuitive topology diagram, and sets status indicators (small circles) next to the channels and devices to provide real-time feedback on the current operating status. The green indicator light indicates that the channel or device is online, and the gray one indicates offline. Through the visual network topology diagram, users can quickly identify the connection status of each channel and the operating status of the device, which greatly improves the intuitiveness and convenience of configuration management.

[0077] This network topology module not only simplifies the complex configuration process of multiple protocols and multiple devices, but also effectively displays the relationship between the edge acquisition gateway and each acquisition device through a graphical interface, significantly improving the efficiency and accuracy of data collection in the IoT system.

[0078] It should be noted that after receiving or processing the collected data, the IoT platform will also store the collected data or processing results. At the same time, it will send status update reminders to users through the status update function. This allows users to view the channels, device point tables, connection status, and device online status of the edge collection gateway configuration on the platform, so as to understand the overall operation of the collection system.

[0079] See also Figure 2 Specifically, in the method described above, the step of aggregating the point tables according to the protocol types corresponding to the point tables to obtain the target aggregated point table includes:

[0080] Step S201, sorting the point table according to the protocol type and the address type to obtain a sorted point table queue;

[0081] Step S202, according to the protocol type in the point table queue, importing the point table into the protocol aggregation processing flow corresponding to the protocol type respectively;

[0082] Step S203, executing each of the protocol aggregation processing flows to obtain a sub-aggregation point table corresponding to the protocol type;

[0083] Step S204, merging each of the sub-aggregation point tables to obtain the target aggregation point table.

[0084] In this embodiment, an example is given of how to perform point table aggregation, wherein, when performing point table aggregation, multiple point tables are first sorted according to protocol type and address type, so that each point table is sorted according to protocol type, address type or even specific address, so as to subsequently classify and aggregate point tables of the same protocol type, and avoid interspersing point tables of different protocol types to affect aggregation efficiency and aggregation effect. Further, it can also be convenient for the edge gateway to connect devices based on the order of protocol types after the point table is issued, for example, first connect devices of the first protocol type, and then connect devices of the second protocol type when all devices of the first protocol type are connected, so as to avoid frequent switching of protocol types affecting device connection efficiency.

[0085] In a specific embodiment, the point table sorting may be implemented by a Sort function, which may be:

[0086] .

[0087] in, is the sorted point list queue;

[0088] is a set of determined point tables;

[0089] is the protocol type;

[0090] The address type.

[0091] After obtaining the sorted point table queue, due to the differences in data information in the point tables of different protocol types, when performing point table aggregation, point tables of different protocol types cannot be directly aggregated or the aggregation method is complicated. Therefore, the point table of the same protocol type is imported into a protocol aggregation processing flow of the corresponding protocol type for processing to obtain the corresponding sub-aggregation point table, which is conducive to improving the aggregation efficiency and aggregation accuracy. At the same time, multiple protocol aggregation processing flows can be executed synchronously to further improve the aggregation efficiency. Then, multiple sub-aggregation point tables are merged to obtain the required target aggregation point table. In a specific embodiment, when importing the point table of the same protocol type into a protocol aggregation processing flow of the corresponding protocol type, it is necessary to first perform classification processing according to the protocol type, which can be specifically expressed as: ,in, The default protocol type The final target aggregation point table can be expressed as ,in, Indicates The sub-aggregation point table corresponding to each protocol type, Indicates the number of protocol types.

[0092] See also Figure 3 Preferably, the method as described above, before sorting the point list according to the protocol type and the address type to obtain the sorted point list queue, further comprises:

[0093] Step S301, performing data parsing processing on the information in each of the point tables to obtain data information having a preset data structure and corresponding to the protocol type;

[0094] Step S302: standardize the data information so that the point table has a unified point table format.

[0095] In this embodiment, in order to facilitate the accuracy of sorting and aggregating the point tables, before sorting, the information in each point table is subjected to data parsing and standardization processing so that all point tables have a unified point table format.

[0096] Among them, data analysis is used to convert the original information carried in each point table into data information with a preset data structure according to the protocol type, so as to facilitate subsequent standardized processing. The preset data structure is a unified internal data structure in the Internet of Things platform.

[0097] Standardization is used to convert point tables of different protocol types into a point table with a unified point table format, so that subsequent merging operations can be performed based on a unified standard. The standardization process includes unified processing of the address of the point table to ensure the consistency of the address format, and can also include marking the data type and data length in each protocol type.

[0098] Furthermore, when performing data parsing, due to different protocol types, the message types in the data information obtained by the data parsing processing of each point table are also different to a certain extent. Therefore, to facilitate understanding by those skilled in the art, the present application provides examples of the types of data information corresponding to the protocol type in some point tables in a specific embodiment:

[0099] If the protocol type is a PLC protocol (for example, a PLC-S7 protocol), the data information at least includes a data address, a data address type, and a data type;

[0100] If the protocol type is Modbus protocol, the data information at least includes register type, data type and register address;

[0101] If the protocol type is the OPC UA protocol, the data information at least includes an identifier, a namespace, and an array index.

[0102] Preferably, according to the method described above, executing the protocol aggregation process to obtain a corresponding sub-aggregation point table includes at least one of the following:

[0103] If the protocol type is the PLC protocol, determine whether the data address type and data type of the adjacent point tables are the same. If they are the same, merge the point tables whose first address offset is within the first preset address offset range to obtain the sub-aggregated point table corresponding to the protocol type, wherein the first preset address offset range corresponds to the data type; if at least one of the data address type and the data type is different, or the first address offset is outside the first preset address offset range, directly aggregate the point tables according to the order. In a specific embodiment, the first address offset is the absolute value of the difference between the data addresses of two adjacent point tables, and the calculation formula can be expressed as: ,in, is the first address offset, The current protocol type In another specific embodiment, the first preset address offset range corresponding to different data types is exemplified, wherein, if the data type is a bit data type (Bit), the first preset address offset range is less than or equal to 0.1; if the data type is an 8-bit integer data type (Int8 / Uint8), the first preset address offset range is less than or equal to 11; if the data type is a 16-bit integer data type (Int16 / Uint16), the first preset address offset range is less than or equal to 2; if the data type is a 32-bit integer data type (Int32 / Uint32) or a floating point data type (Float), the first preset address offset range is less than or equal to 4; if the data type is a bit data type (Int64 / Uint64) or a double-precision floating point data type (Double), the first preset address offset range is less than or equal to 8.

[0104] If the protocol type is the Modbus protocol, determine whether the register address type and data type of the adjacent point tables are the same. If they are the same, merge the point tables whose second address offset is within the second preset address offset range to obtain the sub-aggregated point table corresponding to the protocol type, wherein the second preset address offset range corresponds to the data type; if at least one of the register address type and the data type is different, or the second address offset is outside the second preset address offset range, aggregate directly according to the arrangement order. In a specific embodiment, the second address offset is the absolute value of the difference between the register addresses of two adjacent point tables, and the calculation formula can be expressed as: ,in, is the second address offset, The current protocol type In another specific embodiment, the second preset address offset range corresponding to different data types is exemplified, wherein, if the data type is a bit data type (Bit), an 8-bit integer data type (Int8 / Uint8) or a 16-bit integer data type (Int16 / Uint16), the second preset address offset range is less than or equal to 1; if the data type is a 32-bit integer data type (Int32 / Uint32) or a floating point data type (Float), the second preset address offset range is less than or equal to 2; if the data type is a bit data type (Int64 / Uint64) or a double-precision floating point data type (Double), the second preset address offset range is less than or equal to 4.

[0105] If the protocol type is OPC UA protocol, then determine whether the identifiers and namespaces of the adjacent point tables are the same. If they are the same, merge the point tables with continuous array indexes to obtain the corresponding sub-aggregated point table. If at least one of the identifiers and namespaces is different, or the array index is not continuous, then aggregate directly according to the arrangement order. In a specific embodiment, the algorithm for determining whether two adjacent point tables can be merged can be expressed as: ,in, The value of represents the adjacent point table and Whether the above conditions are met, Indicates the identifier and / or namespace corresponding to the th point table in the current protocol type, where the namespace is used to distinguish identifiers with the same name; Indicates the array index corresponding to the point table in the current protocol type; Indicates The length of the array corresponding to the point table.

[0106] It should be noted that the above-mentioned steps of executing the protocol aggregation processing flow and obtaining the corresponding sub-aggregation point table are examples based on the three protocol types used as examples. When the protocol type is other than the protocol type in the above example, the technician can determine whether two adjacent point tables can be merged based on the specific protocol type.

[0107] See also Figure 4 Another embodiment of the present application further provides a data collection method, which is applied to an edge collection gateway, comprising:

[0108] Step S401, subscribing to and receiving the target aggregation point table issued by the Internet of Things platform;

[0109] Step S402, establishing a connection with the configured devices of each protocol type according to the point table in the target aggregation point table, and executing a data collection task;

[0110] Step S403, uploading the collected data from the device to the Internet of Things platform.

[0111] In another embodiment of the present application, an example of a data collection method applied to an edge collection gateway is given, wherein the edge collection gateway is connected to the Internet of Things platform in communication, and receives the target aggregation point table issued by the Internet of Things platform by subscription, wherein the subscription method preferably adopts MQTT technology subscription. After obtaining the target aggregation point table, a connection can be established with the configured devices of each protocol type based on the point table in the target aggregation point table, and the data collection task can be performed. Since the point table in the target aggregation point table is obtained by aggregation processing based on the protocol type corresponding to the point table, the data table of multiple devices can be obtained by one subscription, so the edge gateway can configure the connection and data collection of multiple devices of multiple protocol types at one time. Compared with issuing each point table separately, the number of point table receptions and the amount of data transmission are reduced, thereby saving network traffic, and facilitating the improvement of the data collection efficiency of the edge gateway and improving the system response speed. Furthermore, the collected data collected from multiple devices based on the target aggregation point table can be uploaded to the Internet of Things platform together, so that the Internet of Things platform can perform data analysis based on the collected data, and the results obtained based on the data analysis are displayed through a topological structure diagram, so as to realize real-time monitoring and troubleshooting of the collection channel status and device status.

[0112] It should be noted that the communication connection methods between the edge acquisition gateway and the IoT platform include but are not limited to wireless local area networks (such as WIFI), mobile communication technologies (such as 4G, 5G), wired networks, etc.

[0113] In a specific implementation, the edge acquisition gateway also subscribes to instructions from the IoT platform, over-the-air (OTA) technology information, etc.

[0114] In a specific implementation, when the edge collection gateway uploads the collected data, the data will be packaged and uploaded with changes or in full according to the pre-configuration.

[0115] See also Figure 5 Another embodiment of the present application further provides a control device, applied to an Internet of Things platform, comprising:

[0116] Configuration module 501, configured to determine at least one acquisition channel of the edge acquisition gateway, a point table of multiple devices, and a connection relationship between the acquisition channel and the device according to the configuration information after receiving the configuration information about the edge acquisition gateway;

[0117] A point table aggregation module 502 is used to aggregate the point tables according to the protocol types corresponding to the point tables to obtain a target aggregated point table;

[0118] The point table sending module 503 is used to send the aggregated point table to the edge collection gateway;

[0119] The data receiving module 504 is used to subscribe and receive the collected data uploaded by the edge collection gateway according to the aggregation point table;

[0120] The first data processing module 505 is used to perform data analysis on the collected data to obtain the collection channel status corresponding to each of the collection channels and the device status corresponding to each of the devices;

[0121] The network topology module 506 is used to display the acquisition channel, the point table, the connection relationship, the device status and the acquisition channel status through a topology diagram.

[0122] Specifically, in the control device as described above, the point table aggregation module 502 includes:

[0123] A sorting unit, used for sorting the point table according to the protocol type and the address type to obtain a sorted point table queue;

[0124] A protocol identification and diversion unit, used for importing the point table into the protocol aggregation processing flow corresponding to the protocol type according to the protocol type in the point table queue;

[0125] A sub-aggregation unit, used to execute each of the protocol aggregation processing procedures to obtain a sub-aggregation point table corresponding to the protocol type;

[0126] The total aggregation unit is used to merge the sub-aggregation point tables to obtain the target aggregation point table.

[0127] Preferably, the control device as described above further comprises:

[0128] A data parsing unit, used for performing data parsing processing on the information in each of the point tables to obtain data information having a preset data structure and corresponding to the protocol type;

[0129] The standardization unit is used to perform standardization processing on each of the data information so that the point table has a unified point table format.

[0130] Optionally, in the control device as described above, the data information corresponding to the protocol type includes at least one of the following:

[0131] If the protocol type is a PLC protocol, the data information at least includes a data address, a data address type and a data type;

[0132] If the protocol type is Modbus protocol, the data information at least includes register type, data type and register address;

[0133] If the protocol type is the OPC UA protocol, the data information at least includes an identifier, a namespace, and an array index.

[0134] Preferably, the control device as described above, the sub-aggregation unit, comprises at least one of the following:

[0135] a first aggregation unit, configured to, if the protocol type is the PLC protocol, determine whether the data address types and data types of adjacent point tables are the same, and if they are the same, merge the point tables whose first address offsets are within a first preset address offset range to obtain the sub-aggregation point table corresponding to the protocol type, wherein the first preset address offset range corresponds to the data type;

[0136] A second aggregation unit is configured to, if the protocol type is the Modbus protocol, determine whether the register address types and data types of adjacent point tables are the same, and if they are the same, merge the point tables whose second address offsets are within a second preset address offset range to obtain the sub-aggregation point table corresponding to the protocol type, wherein the second preset address offset range corresponds to the data type;

[0137] The third aggregation unit is used to determine whether the identifiers and namespaces of adjacent point tables are the same if the protocol type is the OPC UA protocol; if they are the same, merging the point tables with continuous array indexes to obtain the corresponding sub-aggregation point table.

[0138] The control device embodiment of the present application is a device corresponding to the embodiment of the data collection method applied to the Internet of Things platform. All the implementation means in the above method embodiment are applicable to the embodiment of the device and can achieve the same technical effect. The above control device provided in the embodiment of the present application can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.

[0139] See also Figure 6 Another embodiment of the present application further provides a control device, applied to an edge acquisition gateway, comprising:

[0140] The data communication module 601 is used to subscribe to and receive the target aggregation point table issued by the Internet of Things platform;

[0141] The data collection module 602 is used to establish a connection with the configured devices of each protocol type according to the point table in the target aggregation point table, and perform a data collection task;

[0142] The data communication module 601 is also used to upload the collected data from the device to the Internet of Things platform.

[0143] In another embodiment, the control device further comprises:

[0144] The second data processing module is used to store and encapsulate the collected data.

[0145] The control device embodiment of the present application is a device corresponding to the embodiment of the data collection method applied to the edge collection gateway. All the implementation means in the above method embodiment are applicable to the embodiment of the device and can achieve the same technical effect. The above control device provided in the embodiment of the present application can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.

[0146] Another embodiment of the present application further provides an Internet of Things data collection system, including: an Internet of Things platform, an edge collection gateway, and multiple devices;

[0147] The Internet of Things platform is provided with a first processor, a first memory, and a first computer program stored in the memory and executable on the first processor. When the first computer program is executed by the first processor, the steps of the data collection method described above are implemented and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0148] The edge acquisition gateway is connected to the Internet of Things platform and multiple devices respectively. The edge acquisition gateway is provided with a second processor, a second memory, and a second computer program stored in the memory and executable on the second processor. When the second computer program is executed by the second processor, the steps of the data acquisition method described above are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0149] For the convenience of understanding by those skilled in the art, see Figure 7 , provides an architectural diagram of an Internet of Things data collection system.

[0150] Among them, the user sends configuration information to the Internet of Things platform; the Internet of Things platform aggregates the point table based on the configuration information, obtains the target aggregation point table and sends the target aggregation point table to the edge collection gateway; the edge collection gateway configures the point table based on the target aggregation point table and starts to collect data from the device; the edge collection gateway uploads the collected data to the Internet of Things platform, the Internet of Things platform processes the collected data, and displays the processing structure to the user through the network topology structure.

[0151] Another embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data collection method applied to the Internet of Things platform as described above are implemented, or when the computer program is executed by a processor, the steps of the data collection method applied to the edge collection gateway as described above are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0152] Another embodiment of the present application further provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the data collection method applied to the Internet of Things platform as described above, or, when executed by a processor, implement the steps of the data collection method applied to the edge collection gateway as described above, and can achieve the same technical effect. To avoid repetition, they are not repeated here.

[0153] In addition, the present application may repeat reference numerals and / or letters in different examples. This repetition is for the purpose of simplicity and clarity, and does not in itself indicate the relationship between the various embodiments and / or settings discussed.

[0154] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusions.

[0155] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A data collection method, applied to an Internet of Things platform, characterized in that: include: After receiving the configuration information about the edge acquisition gateway, determine at least one acquisition channel of the edge acquisition gateway, a point table of multiple devices, and a connection relationship between the acquisition channel and the device according to the configuration information; Aggregating the point tables according to the protocol types corresponding to the point tables to obtain a target aggregated point table; Sending the target aggregation point table to the edge collection gateway; Subscribe to receive the collection data uploaded by the edge collection gateway and collected according to the aggregation point table; Performing data analysis on the collected data to obtain the collection channel status corresponding to each of the collection channels and the device status corresponding to each of the devices; Display the acquisition channel, the point table, the connection relationship, the device status and the acquisition channel status through a topological structure diagram; The step of aggregating the point tables according to the protocol types corresponding to the point tables to obtain a target aggregated point table includes: Sorting the point table according to the protocol type and the address type to obtain a sorted point table queue; According to the protocol type in the point table queue, the point table is respectively imported into the protocol aggregation processing flow corresponding to the protocol type; Execute each of the protocol aggregation processing flows to obtain a sub-aggregation point table corresponding to the protocol type; Merging the sub-aggregation point tables to obtain the target aggregation point table; Before sorting the node list according to the protocol type and the address type to obtain a sorted node list queue, the method further includes: Performing data analysis on the information in each of the point tables to obtain data information having a preset data structure and corresponding to the protocol type; The data information is standardized so that the point table has a unified point table format.

2. The method according to claim 1, characterized in that The data information corresponding to the protocol type includes at least one of the following: If the protocol type is a PLC protocol, the data information at least includes a data address, a data address type and a data type; If the protocol type is Modbus protocol, the data information at least includes register type, data type and register address; If the protocol type is the OPC UA protocol, the data information at least includes an identifier, a namespace, and an array index.

3. The method according to claim 2, characterized in that Execute the protocol aggregation process to obtain a corresponding sub-aggregation point table, including at least one of the following: If the protocol type is the PLC protocol, determine whether the data address type and data type of the adjacent point tables are the same; if they are the same, merge the point tables whose first address offsets are within a first preset address offset range to obtain the sub-aggregation point table corresponding to the protocol type, wherein the first preset address offset range corresponds to the data type; If the protocol type is the Modbus protocol, determine whether the register address type and data type of the adjacent point tables are the same; if they are the same, merge the point tables whose second address offsets are within a second preset address offset range to obtain the sub-aggregation point table corresponding to the protocol type, wherein the second preset address offset range corresponds to the data type; If the protocol type is the OPC UA protocol, determine whether the identifiers and namespaces of adjacent point tables are the same; if they are the same, merge the point tables with continuous array indexes to obtain the corresponding sub-aggregation point table.

4. A data collection method, applied to an edge collection gateway, characterized in that: include: Subscribe to receive the target aggregation point table issued by the Internet of Things platform, wherein the target aggregation point table is determined by the Internet of Things platform after receiving the configuration information about the edge acquisition gateway, according to the configuration information, at least one acquisition channel of the edge acquisition gateway, a point table of multiple devices, and a connection relationship between the acquisition channel and the device; and the point table is aggregated according to the protocol type corresponding to each point table; the point table is aggregated according to the protocol type corresponding to each point table to obtain the target aggregation point table, including: sorting the point table according to the protocol type and the address type to obtain a sorted point table queue; According to the protocol type in the point table queue, the point table is respectively imported into the protocol aggregation processing flow corresponding to the protocol type; each of the protocol aggregation processing flows is executed to obtain a sub-aggregation point table corresponding to the protocol type; each of the sub-aggregation point tables is merged to obtain the target aggregation point table; before the point table is sorted according to the protocol type and the address type to obtain the sorted point table queue, the method further includes: performing data parsing processing on the information in each of the point tables to obtain data information having a preset data structure and corresponding to the protocol type; and performing standardization processing on each of the data information so that the point table has a unified point table format; According to the point table in the target aggregation point table, establish connections with the configured devices of each protocol type and perform data collection tasks; The collected data from the device is uploaded to the Internet of Things platform.

5. A control device, characterized in that: Applied to IoT platforms, including: A configuration module, configured to determine, after receiving configuration information about an edge acquisition gateway, at least one acquisition channel of the edge acquisition gateway, a point table of multiple devices, and a connection relationship between the acquisition channel and the devices according to the configuration information; A point table aggregation module, used for aggregating the point tables according to the protocol types corresponding to the point tables to obtain a target aggregated point table; A point table sending module, used to send the aggregated point table to the edge collection gateway; A data receiving module, used for receiving and subscribing to the collected data uploaded by the edge collection gateway and collected according to the aggregation point table; A first data processing module is used to perform data analysis on the collected data to obtain the collection channel status corresponding to each of the collection channels and the device status corresponding to each of the devices; A network topology module, used to display the acquisition channel, the point table, the connection relationship, the device status and the acquisition channel status through a topology diagram; The point table aggregation module includes: A sorting unit, used for sorting the point table according to the protocol type and the address type to obtain a sorted point table queue; A protocol identification and diversion unit, used for importing the point table into the protocol aggregation processing flow corresponding to the protocol type according to the protocol type in the point table queue; A sub-aggregation unit, used to execute each of the protocol aggregation processing procedures to obtain a sub-aggregation point table corresponding to the protocol type; A total aggregation unit, used for merging each of the sub-aggregation point tables to obtain the target aggregation point table; The control device further comprises: A data parsing unit, used for performing data parsing processing on the information in each of the point tables to obtain data information having a preset data structure and corresponding to the protocol type; The standardization unit is used to perform standardization processing on each of the data information so that the point table has a unified point table format.

6. A control device, characterized in that: Applied to edge acquisition gateways, including: The data communication module is used to subscribe to and receive the target aggregation point table issued by the Internet of Things platform, wherein the target aggregation point table is determined by the Internet of Things platform after receiving the configuration information about the edge acquisition gateway, based on the configuration information, at least one acquisition channel of the edge acquisition gateway, a point table of multiple devices, and a connection relationship between the acquisition channel and the device; and the point table is aggregated according to the protocol type corresponding to each of the point tables; wherein the point table is aggregated according to the protocol type corresponding to each of the point tables to obtain the target aggregation point table, including: sorting the point table according to the protocol type and the address type to obtain the sorted point table. point table queue; according to the protocol type in the point table queue, the point table is respectively imported into the protocol aggregation processing flow corresponding to the protocol type; each of the protocol aggregation processing flows is executed to obtain a sub-aggregation point table corresponding to the protocol type; each of the sub-aggregation point tables is merged to obtain the target aggregation point table; before the point table is sorted according to the protocol type and the address type to obtain the sorted point table queue, the method further includes: performing data parsing processing on the information in each of the point tables to obtain data information having a preset data structure and corresponding to the protocol type; performing standardization processing on each of the data information so that the point table has a unified point table format; A data collection module, used to establish connections with configured devices of various protocol types according to the point table in the target aggregation point table, and perform data collection tasks; The data communication module is also used to upload the collected data from the device to the Internet of Things platform.

7. An Internet of Things data collection system, characterized in that: include: IoT platform, edge acquisition gateway, and multiple devices; The Internet of Things platform is provided with a first processor, a first memory, and a first computer program stored in the memory and executable on the first processor, and the first computer program, when executed by the first processor, implements the steps of the data collection method according to any one of claims 1 to 3; The edge acquisition gateway is connected to the Internet of Things platform and multiple devices respectively. The edge acquisition gateway is provided with a second processor, a second memory, and a second computer program stored in the memory and executable on the second processor. When the second computer program is executed by the second processor, the steps of the data acquisition method as described in claim 4 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the data collection method applied to the Internet of Things platform as described in any one of claims 1 to 3 are implemented, or when the computer program is executed by the processor, the steps of the data collection method applied to the edge collection gateway as described in claim 4 are implemented.

9. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the data collection method applied to an Internet of Things platform as described in any one of claims 1 to 3, or, when executed by a processor, implement the steps of the data collection method applied to an edge collection gateway as described in claim 4.

Citation Information

Patent Citations

  • Security and protection data aggregation management system based on edge architecture as well as management method thereof

    CN109672750A

  • Internet of Things management system and communication method thereof

    CN110971666A