Intelligent gateway, method for collecting data of Internet of Things, and Internet of Things system

Through the data abstraction module and dynamic language processing module of the intelligent gateway, the development difficulty of IoT data acquisition in different scenarios and protocols is solved, efficient and flexible data acquisition is achieved, and the development process is simplified.

CN115174314BActive Publication Date: 2024-11-19GUANGZHOU ROBUSTEL CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202210768758.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-11-19
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

Existing IoT data acquisition methods require customized development when facing different scenarios and protocols, which makes development difficult. In addition, traditional gateway software is based on C language, limiting the development of other languages ​​other than C language, making it difficult to achieve high-performance data acquisition.

Method used

An intelligent gateway was designed, including a data acquisition module, a data abstraction module, a data processing module and a platform docking module. Through the data abstract module, the data processing module is uniformly processed by a dynamic language to separate communication and Business processes, simplify development.

Benefits of technology

It realizes common data acquisition in different scenarios, reduces development difficulty, allows development of other languages ​​other than C language, and improves data acquisition efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115174314B_ABST
    Figure CN115174314B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of computer technology, and discloses an intelligent gateway, including the following modules: a data acquisition module: used to collect business data of Internet of Things devices, convert the business data into first intermediate data that can be recognized by a data abstraction module and send it to the data abstraction module; a data abstraction module: used to convert the first intermediate data into second intermediate data in the form of key-value pairs; a data processing module: used to encapsulate the key-value pairs in one or more copies of the second intermediate data into upload data that can be recognized by the platform and send it to the platform docking module; a platform docking module: used to send the upload data to the platform. The intelligent gateway no longer needs to consider fragmented Internet of Things devices and protocols when acquiring Internet of Things data, and can use a universal method to acquire data from different devices in the real physical world. In addition, the present invention also provides a method and system for collecting Internet of Things data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and more specifically, relates to an intelligent gateway, a method for collecting Internet of Things data, and an Internet of Things system. Background Art

[0002] The applicant has filed a prior patent application: "An intelligent gateway, data collection method and Internet of Things system" (application number: 202110676803.9), which proposes a data collection method to solve the problems encountered in Internet of Things data collection. The invention is applied to the software development process of the Internet of Things data collection system, which greatly improves the development efficiency. However, as the application scenarios of the Internet of Things become more and more extensive, this method still has certain limitations.

[0003] The data of the IoT's perceived world is fragmented, and the requirements of each cloud platform are also different. This method uses a modular approach to solve the problem of data collection and platform docking. However, for different usage scenarios, the programs of the scheduling module and the intermediate processing module still need to be customized and developed.

[0004] At present, traditional gateway embedded software is developed based on C language. Software developers need to have in-depth knowledge of embedded systems, C language, IoT protocols, etc. As a result, only a small number of developers who are familiar with gateways and IoT protocols can develop IoT data acquisition software for smart gateways.

[0005] In addition, the development of IoT data collection scheduling modules and intermediate processing modules also requires familiarity with the business processes of IoT data collection in different scenarios. The business requirements of different application scenarios will also vary greatly. It is also a great challenge for developers to correctly analyze various requirements and abstract the corresponding processing logic.

[0006] However, as chip computing performance continues to improve, more and more smart gateways are able to support programs developed in languages ​​other than C. For example, dynamic languages ​​such as Python and JavaScript can also run on high-performance gateways. Therefore, using high-performance smart gateways or edge computing platforms to collect IoT data requires a more optimized data collection method. Summary of the invention

[0007] The main purpose of the present invention is to provide an intelligent gateway, which adopts a data acquisition module to connect and collect specific Internet of Things protocol data, a cloud platform docking module to process the communication process with the specific platform, and a data processing module to process the business process of Internet of Things data collection. Due to the existence of the data abstraction module, the data processing module no longer needs to consider fragmented Internet of Things devices and protocols when acquiring Internet of Things data, and can use a universal method to acquire data from different devices in the real physical world.

[0008] In addition, the present invention also provides a method and system for collecting data of the Internet of Things.

[0009] According to a first aspect of the present invention, there is provided an intelligent gateway, comprising the following modules:

[0010] Data collection module: used to collect business data of IoT devices, convert the business data into first intermediate data that can be recognized by the data abstraction module, and send it to the data abstraction module;

[0011] Data abstraction module: used for converting the first intermediate data into second intermediate data in the form of key-value pairs;

[0012] Data processing module: used to obtain the second intermediate data from the data abstraction module, encapsulate the key-value pairs in one or more copies of the second intermediate data into upload data that can be recognized by the platform, and send the uploaded data to the platform docking module;

[0013] Platform docking module: used to send uploaded data to the platform;

[0014] There are at least two data acquisition modules, each of which is used to parse an Internet of Things protocol; each data acquisition module is used to collect business data of one or more Internet of Things devices with the same Internet of Things protocol; there are at least two platform docking modules, each of which is connected to an Internet of Things platform of one interface type.

[0015] In the above-mentioned intelligent gateway, the data processing module includes a data processing framework and a data processing submodule, and the data processing submodule is implemented based on a dynamic language;

[0016] The data processing framework is used to load one or more data processing submodules and convert key-value pairs into upload data of an interface type adapted to one or more platforms.

[0017] In the above-mentioned intelligent gateway, when the platform docking module receives multiple copies of uploaded data, the uploaded data is sent to the adapted platform according to the interface type corresponding to the uploaded data.

[0018] In the above-mentioned intelligent gateway, the platform docking module is also used to receive collection instructions from different platforms and send the collection instructions to the data collection module and the data processing module; the collection instructions include the type of business data and the ID of the Internet of Things device;

[0019] The data collection module collects the corresponding type of business data of the corresponding Internet of Things device according to the collection instruction;

[0020] The data processing module encapsulates the corresponding key-value pairs into upload data according to the collection instructions.

[0021] At the same time, the present invention also discloses a method for collecting IoT data, which is implemented by any of the above-mentioned intelligent gateways and comprises the following steps:

[0022] Step 1: The data collection module collects the business data of the IoT device, converts the business data into the first intermediate data that can be recognized by the data abstraction module, and sends it to the data abstraction module;

[0023] Step 2: The data abstraction module converts the first intermediate data into second intermediate data in the form of key-value pairs;

[0024] Step 3: The data processing module obtains the second intermediate data from the data abstraction module, encapsulates the key-value pairs in one or more copies of the second intermediate data into upload data that can be recognized by the platform, and sends the data to the platform docking module;

[0025] Step 4: The platform docking module sends the uploaded data to the platform.

[0026] In the above-mentioned method for collecting IoT data, the data processing module includes a data processing framework and a data processing submodule, and the data processing submodule is implemented based on a dynamic language;

[0027] The data processing framework is used to load one or more data processing sub-modules and encapsulate key-value pairs into upload data of an interface type adapted to one or more platforms.

[0028] The step 3 is specifically as follows:

[0029] Step 31: The data processing framework loads one or more data processing submodules;

[0030] Step 32: The data processing framework extracts one or more key-value pairs of the second intermediate data, and encapsulates the key-value pairs into upload data of an interface type adapted to one or more platforms.

[0031] In the above-mentioned method for collecting IoT data, the platform docking module is also used to receive collection instructions from different platforms and send the collection instructions to the data collection module and the data processing module; the collection instructions include the type of business data and the ID of the IoT device;

[0032] In the step 1, the data collection module collects the corresponding type of business data of the corresponding Internet of Things device according to the collection instruction;

[0033] The data processing module encapsulates the corresponding key-value pairs into upload data according to the collection instructions.

[0034] Finally, the present invention also discloses an Internet of Things system, including multiple Internet of Things devices, multiple cloud platforms, and any of the above-mentioned intelligent gateways;

[0035] An IoT device is connected to a data acquisition module;

[0036] The cloud platform and the platform docking module are in a one-to-one correspondence.

[0037] In the above-mentioned IoT system, one data acquisition module is connected to multiple IoT devices.

[0038] Compared with the method proposed in the prior patent of the applicant, this solution has the following advantages:

[0039] The communication process and business process in the IoT data collection process of the present invention are separated. The data collection module docks and collects specific IoT protocol data, and the cloud platform docking module processes the communication process with the specific platform. The data processing module processes the business process of IoT data collection. Due to the existence of the data abstraction module, the data processing module no longer needs to consider fragmented IoT devices and protocols when acquiring IoT data, and can use a universal method to acquire data from different devices in the real physical world.

[0040] At the same time, the data processing submodule is implemented in a scripted dynamic language. When this solution is applied to different IoT data collection scenarios, it is only necessary to modify the code of the data processing submodule according to the needs, and the programs of other modules can be fully reused.

[0041] The data processing module is implemented in a dynamic language. When developing data processing sub-module programs, there is no need to worry about the limitations of the Internet of Things protocol and the embedded environment. You only need to focus on the business process requirements of platform data collection, which greatly reduces the difficulty of software development. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The present invention is further described below in conjunction with the accompanying drawings and embodiments;

[0043] Figure 1 is a structural block diagram of Embodiment 1 of the present invention;

[0044] Figure 2 This is the data collection process of embodiment 1 of the present invention;

[0045] Figure 3 This is the data reporting process of embodiment 1 of the present invention;

[0046] Figure 4 is a flow chart of Embodiment 2 of the present invention;

[0047] Figure 5 It is a structural diagram of Example 3 of the present invention. DETAILED DESCRIPTION

[0048] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0049] Example 1

[0050] refer to Figure 1 , an intelligent gateway, comprising the following modules:

[0051] Data collection module 11: used to collect business data of IoT devices, convert the business data into first intermediate data that can be recognized by the data abstraction module, and send it to the data abstraction module;

[0052] In the present invention, there are generally multiple data acquisition modules, each of which is used to parse an Internet of Things protocol; the business data is parsed based on the corresponding Internet of Things protocol, and the parsed data is converted to obtain the first intermediate data;

[0053] The format of the first intermediate data of any data acquisition module is the same, so that the data abstraction module can extract key-value pairs.

[0054] refer to Figure 2 , Figure 2 The specific process of data collection is shown: the data collection module runs and configures parameters, continuously reads data from IoT devices, and if the data changes, converts the data into first intermediate data and sends it to the data abstraction module.

[0055] The structure of the first intermediate data is as follows:

[0056]

[0057] Data Abstraction Module 12: Used to convert the first intermediate data into a second intermediate data in the form of a key-value pair according to;

[0058] In the invention patent previously applied for, the acquisition module actively sends data to the configuration module.

[0059] In order to increase the flexibility of the data processing module, the method of the present invention is that the data processing module actively requests data from the data abstraction module.

[0060] The advantage of this is that different data processing modules can decide on their own what cycle to collect and what data to collect (or only collect part of the data). When the data collection module obtains data, it can be accompanied by parameters to determine whether the data to be read is in a simple format or a complex format.

[0061] Each piece of second intermediate data is composed of one or more sets of key-value pairs. The structure of the second intermediate data is as follows:

[0062] Simple format:

[0063]

[0064] The complex formats listed above are just examples, and more attribute values ​​can be expanded.

[0065] The data abstraction module receives the first intermediate data sent by all data acquisition modules; any key-value pair of the converted second intermediate data has a corresponding device ID; that is, the corresponding key-value pair can be found according to the device ID and the data type in the key-value pair;

[0066] If the cloud platform needs to obtain several types of data from certain devices, it can collect data by sending data collection instructions containing device ID and data type to the data collection module.

[0067] Data processing module 13: used to obtain the second intermediate data from the data abstraction module, encapsulate the key-value pairs in one or more copies of the second intermediate data into upload data that can be recognized by the platform, and send the uploaded data to the platform docking module;

[0068] If the data collection instruction only needs to collect data from an IoT device associated with a data collection module, then the key-value pairs in a copy of the second intermediate data can be encapsulated as uploaded data;

[0069] If the data collection instruction needs to collect data of IoT devices associated with multiple data collection modules, then the key-value pairs in the multiple copies of the second intermediate data are encapsulated as upload data;

[0070] The data processing module also has the following functions:

[0071] Assume that there are three copies of the second intermediate data, containing key-value pairs A, B, C; D, E, F; G, H, I respectively;

[0072] To send part of the data to three different platforms, encapsulate it into three upload data according to the different interface types of the platforms; the first upload data a contains key-value pairs A, B, E; the second upload data b contains B, C, H; the third upload data c contains E, F, I.

[0073] Therefore, in the data processing module, all the first intermediate data are presented in the form of key-value pairs, and different key-value pairs are assembled and packaged according to different requirements of each platform.

[0074] Platform docking module 14: used to send uploaded data to the platform, receive collection instructions from different platforms, and send collection instructions to the data collection module and the data processing module; the collection instructions include the type of business data and the ID of the IoT device;

[0075] A platform docking module is configured for platforms of different interface types. After the data processing module generates the corresponding upload data, the upload data is sent to the corresponding platform docking module, and the platform docking module realizes the data upload.

[0076] As a further refinement of this embodiment, the data processing module 13 includes a data processing framework 130 and a data processing submodule 131, and the data processing submodule is implemented based on a dynamic language;

[0077] The data processing framework is used to load one or more data processing submodules and convert key-value pairs into upload data of an interface type adapted to one or more platforms.

[0078] One data processing submodule corresponds to one type of uploaded data; if there are three platform docking modules, the data processing framework should load three data processing submodules;

[0079] Corresponding to the above, after the three data processing sub-modules are loaded, the data processing framework can generate the above-mentioned upload data a, upload data b, and upload data c.

[0080] refer to Figure 3 , Figure 3 The specific process of data reporting is shown.

[0081] To be more specific, at the software level, the data processing framework is a data processing program, and the data processing sub-module is a script; the data processing sub-module is implemented in a scripted dynamic language. When this solution is applied to different IoT data collection scenarios, you only need to modify the code of the data processing sub-module according to the needs, and the other module programs can be completely reused.

[0082] The data processing module is implemented in a dynamic language. When developing data processing sub-module programs, there is no need to worry about the limitations of the Internet of Things protocol and the embedded environment. You only need to focus on the business process requirements of platform data collection, which greatly reduces the difficulty of software development.

[0083] Example 2

[0084] refer to Figure 4 A method for collecting IoT data is implemented using the smart gateway as described in Example 1, and comprises the following steps:

[0085] Step 1: The data collection module receives the data collection instruction sent by the platform docking module, collects the business data of the IoT device according to the data collection instruction, converts the business data into the first intermediate data that can be recognized by the data abstraction module, and sends it to the data abstraction module;

[0086] Step 2: The data abstraction module converts the first intermediate data into second intermediate data in the form of key-value pairs;

[0087] Step 3: The data processing module obtains the second intermediate data from the data abstraction module according to the data collection instruction, encapsulates the key-value pairs in one or more copies of the second intermediate data into upload data that can be recognized by the platform, and sends the data to the platform docking module; the data processing module includes a data processing framework and a data processing submodule, and the data processing submodule is implemented based on a dynamic language;

[0088] The data processing framework is used to load one or more data processing sub-modules and encapsulate key-value pairs into upload data of an interface type adapted to one or more platforms.

[0089] The step 3 is specifically as follows:

[0090] Step 31: The data processing framework loads one or more data processing submodules; the data processing submodules correspond to the platform docking modules one by one;

[0091] Step 32: The data processing framework extracts one or more key-value pairs of the second intermediate data, and encapsulates the key-value pairs into upload data of an interface type adapted to one or more platforms.

[0092] Step 4: The platform docking module sends the uploaded data to the platform.

[0093] The communication process and business process in the IoT data collection process of the present invention are separated. The data collection module docks and collects specific IoT protocol data, and the cloud platform docking module processes the communication process with the specific platform. The data processing module processes the business process of IoT data collection. Due to the existence of the data abstraction module, the data processing module no longer needs to consider fragmented IoT devices and protocols when acquiring IoT data, and can use a universal method to acquire data from different devices in the real physical world.

[0094] At the same time, the data processing submodule is implemented in a scripted dynamic language. When this solution is applied to different IoT data collection scenarios, it is only necessary to modify the code of the data processing submodule according to the needs, and the programs of other modules can be fully reused.

[0095] The data processing module is implemented in a dynamic language. When developing data processing sub-module programs, there is no need to worry about the limitations of the Internet of Things protocol and the embedded environment. You only need to focus on the business process requirements of platform data collection, which greatly reduces the difficulty of software development.

[0096] Example 3

[0097] refer to Figure 5 , an Internet of Things system, comprising a plurality of Internet of Things devices 2, a plurality of cloud platforms 3, and the intelligent gateway 1 as described in Example 1;

[0098] An IoT device is connected to a data acquisition module 11;

[0099] The cloud platform and the platform docking module 14 are in a one-to-one correspondence;

[0100] A data acquisition module 11 is connected to multiple IoT devices.

[0101] refer to Figure 3 , Figure 3 It shows the relationship between IoT devices, cloud platform and smart gateway;

[0102] There are 1 to 9 IoT devices, each with its own unique ID;

[0103] There are three cloud platforms, namely cloud platforms A1-C1;

[0104] Among them, IoT devices 1-3 use IoT protocol A; IoT devices 4-6 use IoT protocol B; IoT devices 7-9 use IoT protocol C;

[0105] The interface type of cloud platform A1 is A1; the interface type of cloud platform B1 is B1, and the interface type of cloud platform C1 is C1;

[0106] The intelligent gateway has: 3 data acquisition modules, which use IoT protocols A, B, and C respectively; they are connected to IoT devices 1-3, IoT devices 4-6, and IoT devices 7-9 respectively;

[0107] a data abstraction module;

[0108] A data processing framework, which is loaded with three data processing sub-modules. After loading, the data processing framework has the ability to encapsulate and adapt the uploaded data of the three cloud platforms;

[0109] Platform docking module;

[0110] During the data processing, if cloud platform A1 wants to obtain the operating data of IoT device 1, IoT device 4, and IoT device 7, it will generate a data collection instruction and send it to the platform docking module, which will send the data collection instruction to the three data collection modules. The three data collection modules will respectively collect the corresponding operating data of IoT device 1, IoT device 4, and IoT device 7 and convert them into the first intermediate data that can be recognized by the data abstraction module. The data abstraction module will extract the key-value pairs of the three first intermediate data, and at this time, the data abstraction module will continue to obtain other key-value pairs, and each first intermediate data will be converted into the second intermediate data, which will all be sent to the data processing framework. The data processing framework will extract the required key-value pairs from the second intermediate data and convert them into upload data adapted to the cloud platform, and the platform docking module corresponding to the cloud platform will send the upload data to the cloud platform. A data collection process is completed.

[0111] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. An intelligent gateway, It is characterized in that Includes the following modules: Data collection module: used to collect business data of IoT devices, convert the business data into first intermediate data that can be recognized by the data abstraction module, and send it to the data abstraction module; Data abstraction module: used for converting the first intermediate data into second intermediate data in the form of key-value pairs; Data processing module: used to obtain the second intermediate data from the data abstraction module, encapsulate the key-value pairs in one or more copies of the second intermediate data into upload data that can be recognized by the platform and send it to the platform docking module; Platform docking module: used to send uploaded data to the platform; There are at least two data acquisition modules, each of which is used to parse an IoT protocol; each of which is used to collect business data of one or more IoT devices with the same IoT protocol; there are at least two platform docking modules, each of which is connected to an IoT platform of one interface type; The data processing module actively requests data from the data abstraction module; The data processing module includes a data processing framework and a data processing submodule, and the data processing submodule is implemented based on a dynamic language; The data processing framework is used to load one or more data processing submodules and convert key-value pairs into upload data of an interface type adapted to one or more platforms.

2. The intelligent gateway according to claim 1, It is characterized in that When the platform docking module receives multiple copies of uploaded data, it sends the uploaded data to the adapted platform according to the interface type corresponding to the uploaded data.

3. The intelligent gateway according to claim 1, It is characterized in that The platform docking module is also used to receive collection instructions from different platforms and send the collection instructions to the data collection module and the data processing module; the collection instructions include the type of business data and the ID of the Internet of Things device; The data collection module collects the corresponding type of business data of the corresponding Internet of Things device according to the collection instruction; The data processing module encapsulates the corresponding key-value pairs into upload data according to the collection instructions.

4. A method for collecting IoT data, Features: The method is implemented by the intelligent gateway as described in any one of claims 1 to 3, comprising the following steps: Step 1: The data collection module collects the business data of the IoT device, converts the business data into the first intermediate data that can be recognized by the data abstraction module, and sends it to the data abstraction module; Step 2: The data abstraction module converts the first intermediate data into second intermediate data in the form of key-value pairs; Step 3: The data processing module obtains the second intermediate data from the data abstraction module, encapsulates the key-value pairs in one or more copies of the second intermediate data into upload data that can be recognized by the platform, and sends the data to the platform docking module; Step 4: The platform docking module sends the uploaded data to the platform.

5. The method for collecting Internet of Things data according to claim 4, Features: The data processing module includes a data processing framework and a data processing submodule, and the data processing submodule is implemented based on a dynamic language; The data processing framework is used to load one or more data processing submodules and encapsulate key-value pairs into upload data of an interface type adapted to one or more platforms; The step 3 is specifically as follows: Step 31: The data processing framework loads one or more data processing submodules; Step 32: The data processing framework extracts one or more key-value pairs of the second intermediate data, and encapsulates the key-value pairs into upload data of an interface type adapted to one or more platforms.

6. The method for collecting Internet of Things data according to claim 4, Features: The platform docking module is also used to receive collection instructions from different platforms and send the collection instructions to the data collection module and the data processing module; the collection instructions include the type of business data and the ID of the Internet of Things device; In the step 1, the data collection module collects the corresponding type of business data of the corresponding Internet of Things device according to the collection instruction; The data processing module encapsulates the corresponding key-value pairs into upload data according to the collection instructions.

7. An Internet of Things system, It is characterized in that Comprising multiple IoT devices, multiple cloud platforms, and the intelligent gateway as described in any one of claims 1 to 4; An IoT device is connected to a data acquisition module; The cloud platform and the platform docking module are in a one-to-one correspondence.

8. The Internet of Things system according to claim 7, It is characterized in that One data acquisition module connects multiple IoT devices.

Citation Information

Cited By

  • Intelligent gateway, dynamic debugging method and Internet of Things system

    CN117395137A

  • An intelligent gateway, a dynamic debugging method and an Internet of Things system

    CN117395137B