An Internet of Things gateway information reporting system, method, device, equipment and medium

By introducing configuration modules into the Internet of Things gateway to determine the reporting level of alarm information and optimize the reporting path, the problem of low efficiency of IoT gateway information reporting in the prior art is solved, and faster and more efficient alarm information reporting is achieved.

CN116032693BActive Publication Date: 2025-05-16ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211626198.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-15
Publication Date
2025-05-16
Estimated Expiration
2042-12-15

AI Technical Summary

Technical Problem

In the prior art, the Internet of Things gateway has a low information reporting efficiency due to multiple conversions between the kernel layer and the application layer during the alarm information reporting process.

Method used

By introducing the first configuration module and the second configuration module into the Internet of Things gateway, the management platform sends information to the first configuration module to report the configuration information. The second configuration module determines the reporting level of the alarm information based on the configuration information, and adds it to the corresponding information queue, and reports it to the management platform in the order of the level from high to low.

Benefits of technology

It improves the efficiency of information reporting, reduces the conversion steps between the kernel layer and the application layer, and ensures rapid reporting of emergency alarm information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032693B_ABST
    Figure CN116032693B_ABST
Patent Text Reader

Abstract

The present application discloses an information reporting system, method, device, equipment and medium for an Internet of Things gateway. In the present application, a management platform sends information reporting configuration information to a first configuration module of an application layer of an Internet of Things gateway, and the first configuration module sends the information reporting configuration information to a second configuration module of a kernel layer of an Internet of Things gateway. After the second configuration module receives the alarm information sent by the information collection device, it determines the reporting level of the alarm information according to the information reporting configuration information, adds the alarm information to an information queue corresponding to the reporting level, and then reports the alarm information in the information queue to the management platform in descending order of level. After the kernel layer of the solution provided by the present application receives the alarm information, it does not need to send it to the application layer, and the alarm information is reported at the kernel layer, thereby improving the efficiency of information reporting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to an Internet of Things gateway information reporting system, method, device, equipment and medium. Background Art

[0002] In the era of the Internet of Everything, the IoT gateway plays a very important role, responsible for the access of sensing devices and the analysis and uploading of information. Due to the diversity of sensing devices, multiple types of information are accessed at the same time, but the relative importance of the accessed data varies due to the differences in sensing devices. For example, fire alarms and natural gas leak alarms are obviously more important than normal data such as temperature and humidity detection. For these data, it is necessary to notify the superior platform more quickly for further processing, which can also play a certain role in protecting people's lives and property to a certain extent.

[0003] In the prior art, the alarm information reported by the alarm device needs to be transmitted to the application layer through the kernel layer of the gateway, and the various alarm information is sorted by urgency at the application layer, and then sent to the kernel layer, and the kernel protocol stack of the kernel layer sends the alarm information according to the urgency. In the prior art, the alarm information is converted multiple times between the kernel layer and the application layer, which makes the alarm information reporting efficiency low. Summary of the invention

[0004] The embodiments of the present application provide an Internet of Things gateway information reporting system, method, apparatus, device and medium to solve the problem of low efficiency of Internet of Things gateway information reporting in the prior art.

[0005] In a first aspect, the present application provides an Internet of Things gateway information reporting system, the system comprising: an information collection device, an Internet of Things gateway and a management platform; the application layer of the Internet of Things gateway comprises a first configuration module, and the kernel layer of the Internet of Things gateway comprises a second configuration module;

[0006] The management platform is used to send information reporting configuration information to the first configuration module, and the first configuration module sends the information reporting configuration information to the second configuration module;

[0007] The information collection device is used to collect alarm information and send it to the second configuration module;

[0008] The second configuration module is used to determine the reporting level of the alarm information according to the information reporting configuration information, add the alarm information to the information queue corresponding to the reporting level; and report the alarm information in the information queue to the management platform in order from high to low levels.

[0009] In a second aspect, the present application provides a method for reporting Internet of Things gateway information, the method comprising:

[0010] Receive alarm information collected and sent by the information collection device, and information reporting configuration information sent by the first configuration module of the application layer of the Internet of Things gateway, wherein the information reporting configuration information is sent by the management platform to the first configuration module;

[0011] According to the information reporting configuration information, the reporting level of the alarm information is determined, and the alarm information is added to the information queue corresponding to the reporting level; and the alarm information in the information queue is reported to the management platform in descending order of level.

[0012] In a third aspect, the present application provides an IoT gateway information reporting device, the device comprising:

[0013] A receiving unit, used to receive alarm information collected and sent by the information collection device, and information reporting configuration information sent by the first configuration module of the application layer of the Internet of Things gateway, wherein the information reporting configuration information is sent by the management platform to the first configuration module;

[0014] The reporting unit is used to determine the reporting level of the alarm information according to the information reporting configuration information, add the alarm information to the information queue corresponding to the reporting level; and report the alarm information in the information queue to the management platform in descending order of level.

[0015] In a fourth aspect, the present application provides an Internet of Things gateway, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

[0016] Memory, used to store computer programs;

[0017] The processor is used to implement any of the method steps described above when executing the program stored in the memory.

[0018] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of the above items are implemented.

[0019] The present application provides an Internet of Things gateway information reporting system, method, apparatus, device and medium, the system comprising: an information collection device, an Internet of Things gateway and a management platform; the application layer of the Internet of Things gateway comprises a first configuration module, and the kernel layer of the Internet of Things gateway comprises a second configuration module; the management platform is used to send information reporting configuration information to the first configuration module, and the first configuration module sends the information reporting configuration information to the second configuration module; the information collection device is used to collect alarm information and send it to the second configuration module; the second configuration module is used to determine the reporting level of the alarm information according to the information reporting configuration information, and add the alarm information to the information queue corresponding to the reporting level; the alarm information in the information queue is reported to the management platform in descending order of level.

[0020] The above technical solution has the following advantages or beneficial effects:

[0021] In the present application, the management platform sends information reporting configuration information to the first configuration module of the application layer of the Internet of Things gateway, and the first configuration module sends the information reporting configuration information to the second configuration module of the kernel layer of the Internet of Things gateway. After the second configuration module receives the alarm information sent by the information collection device, it determines the reporting level of the alarm information according to the information reporting configuration information, adds the alarm information to the information queue corresponding to the reporting level, and then reports the alarm information in the information queue to the management platform in order from high to low. After the kernel layer of the solution provided by the present application receives the alarm information, it does not need to send it to the application layer, and the alarm information reporting is realized at the kernel layer, which improves the efficiency of information reporting. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 Schematic diagram of the IoT gateway information reporting system structure provided for this application;

[0024] Figure 2 Schematic diagram of the IoT gateway information reporting process provided for this application;

[0025] Figure 3 Schematic diagram of the IoT gateway information reporting system structure provided for this application;

[0026] Figure 4 The overall structure diagram of the IoT gateway information reporting system provided for this application;

[0027] Figure 5 The IoT gateway information reporting flow chart provided for this application;

[0028] Figure 6 Another IoT gateway information reporting flow chart provided for this application;

[0029] Figure 7 A schematic diagram of the structure of the IoT gateway information reporting device provided for this application;

[0030] Figure 8 Schematic diagram of the IoT gateway structure provided for this application. DETAILED DESCRIPTION

[0031] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0032] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0033] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0034] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0035] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0036] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0037] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

[0038] Figure 1 The schematic diagram of the structure of the Internet of Things gateway information reporting system provided in this application includes: an information collection device 11, an Internet of Things gateway 21 and a management platform 31; the application layer of the Internet of Things gateway includes a first configuration module 12, and the kernel layer of the Internet of Things gateway includes a second configuration module 22;

[0039] The management platform 31 is used to send information reporting configuration information to the first configuration module 12, and the first configuration module 12 sends the information reporting configuration information to the second configuration module 22;

[0040] The information collection device 11 is used to collect alarm information and send it to the second configuration module 22;

[0041] The second configuration module 22 is used to determine the reporting level of the alarm information according to the information reporting configuration information, add the alarm information to the information queue corresponding to the reporting level; and report the alarm information in the information queue to the management platform 31 in descending order of level.

[0042] The second configuration module stores the correspondence between the alarm information and the reporting level of each alarm category. For example, the reporting level of the alarm information of the fire category is higher than the reporting level of the alarm information of the temperature category. After receiving the alarm information, the second configuration module first determines the target alarm category of the alarm information by analyzing the alarm information, and then determines the reporting level of the alarm information according to the above correspondence.

[0043] In addition, the kernel protocol stack can receive every network data packet received from the network card, that is, it can obtain any data in the network message. For the received data packet, the destination IP address, destination port, and specific message body of the message can be extracted. In the kernel, the configured rules can be matched according to the obtained IP, port, and specific message content. If matched, it means that the message is of concern to us and needs to be accelerated; then the message is distributed to the specified acceleration queue according to the specific priority and sent out.

[0044] In the present application, the second configuration module is specifically used to update the destination address information of the alarm information according to the information reporting configuration information, and verify the updated alarm information to obtain the TCP or UDP data packet corresponding to the alarm information, and add the TCP or UDP data packet to the information queue corresponding to the reporting level.

[0045] The second configuration module is also used to maximize the matching of the alarm information with the matching rules in the information reporting configuration information. If the match is successful, the destination address information of the alarm information is updated according to the information reporting configuration information. If the match fails, the alarm information is sent to the first configuration module, and the first configuration module processes the alarm information and adds it to the information queue.

[0046] It should be noted that: maximizing the match means that the received message is fully matched one by one according to the priority of the rules issued by the configuration, that is, all the matching points in the current rule are hit for the match to be successful. If there is no match, the processing logic of the application layer: after the application layer receives the message sent by the kernel, it first checks whether there is a corresponding acceleration configuration rule saved. If there is, it will also make a priority allocation based on the specific message information and put it into the corresponding acceleration queue. Then, several data consumption threads will rotate each priority queue. If there is data in the queue, the network interface will be called to send the data; if there is no corresponding acceleration configuration rule at the application layer, the data will be directly sent to the network. Modify the destination address information of the data packet according to the general configuration, and recheck the process of generating TCP or UDP packets: This is mainly to consider the situation of message forwarding. For example, if the acceleration rule configured is that the data with IP and port of abcd and d are received, and the corresponding alarm type is fire, it will be sent to the service with IP a1.b1.c1.d1 and port d2. At this time, the IP and port of the corresponding original message must be modified, that is, the destination IP and destination port in the original alarm message have changed. This requires rechecking the message and modifying the check bit in the message to ensure that the message can be transmitted normally on the network after it is sent, and the destination address can be received and parsed normally. If the message is not rechecked, the modified message will be lost by the intermediate network device. The specific verification method is implemented in the kernel protocol stack in a standard way, so it will not be repeated. It should be clear that if the IP and port of the message are modified, the message verification needs to be rechecked.

[0047] The second configuration module is specifically used to traverse and query each information queue in real time or according to a set period in descending order of level to see whether there is any alarm information to be reported, and if so, report the alarm information to be reported to the management platform, thereby realizing the priority reporting of alarm information with a higher level.

[0048] The second configuration module is specifically used to traverse and query in real time or according to a set period in order from high to low whether there is alarm information to be reported in each information queue. If so, it is determined whether there is a token for the alarm information to be reported. If so, the alarm information to be reported is reported to the management platform. If there is no token for the alarm information to be reported, the alarm information to be reported is discarded. The number and scale of alarm information reports are controlled by allocating tokens. Specifically, the second configuration module is also used to allocate a preset number of tokens to each information queue whose level is less than the set level threshold. Such a setting can only limit the number and scale of alarm information reports for each information queue whose level is less than the set level threshold, thereby further ensuring that alarm information with a higher level is reported first.

[0049] In order to ensure that the application layer records the reported alarm information, the second configuration module of the present application is also used to mark the reported alarm information and send the marked alarm information to the first configuration module; the first configuration module is also used to count the reported alarm types and the number of alarm information of each alarm type based on the received marked alarm information.

[0050] In addition, if the first configuration module does not send information reporting configuration information to the second configuration module. In order to realize the rapid reporting of IoT gateway information, the second configuration module is also used to receive customized information reporting configuration information, wherein the customized information reporting configuration information is loaded into the second configuration module through the insmod loading module.

[0051] Figure 2 The schematic diagram of the IoT gateway information reporting process provided for this application includes the following steps:

[0052] S101: Receive alarm information collected and sent by an information collection device, and information reporting configuration information sent by a first configuration module of an application layer of an Internet of Things gateway, wherein the information reporting configuration information is sent by a management platform to the first configuration module.

[0053] S102: Determine the reporting level of the alarm information according to the information reporting configuration information, add the alarm information to the information queue corresponding to the reporting level; and report the alarm information in the information queue to the management platform in descending order of level.

[0054] The Internet of Things gateway information reporting method provided in the present application is applied to the second configuration module of the kernel layer of the Internet of Things gateway in the Internet of Things gateway information reporting system.

[0055] Determining the reporting level of the alarm information according to the information reporting configuration information includes:

[0056] The target alarm category of the alarm information is determined, and the reporting level of the alarm information of the target alarm category is determined according to the target alarm category and the corresponding relationship between the alarm information of each alarm category and the reporting level in the information reporting configuration information.

[0057] The step of adding the alarm information to the information queue corresponding to the reporting level comprises:

[0058] According to the information reporting configuration information, the destination address information of the alarm information is updated, and the updated alarm information is verified to obtain the TCP or UDP data packet corresponding to the alarm information, and the TCP or UDP data packet is added to the information queue corresponding to the reporting level.

[0059] Before updating the destination address information of the alarm information according to the information reporting configuration information, the method further includes:

[0060] Maximizing the matching of the alarm information with the matching rules in the information reporting configuration information, and if the match is successful, updating the destination address information of the alarm information according to the information reporting configuration information;

[0061] If the match fails, it also includes:

[0062] The alarm information is sent to the first configuration module, and the first configuration module processes the alarm information and adds it to the information queue.

[0063] The step of reporting the alarm information in the information queue to the management platform in descending order of levels includes:

[0064] In real time or according to a set period, each information queue is traversed and queried in descending order of level to see whether there is any alarm information to be reported. If so, the alarm information to be reported is reported to the management platform.

[0065] The step of reporting the alarm information in the information queue to the management platform in descending order of levels includes:

[0066] In real time or according to a set period, query each information queue in order from high to low whether there is alarm information to be reported. If so, determine whether there is a token for the alarm information to be reported. If so, report the alarm information to be reported to the management platform. If there is no token for the alarm information to be reported, discard the alarm information to be reported.

[0067] Before querying in real time or according to a set period in descending order of levels whether there is any alarm information to be reported in each information queue, the method further includes:

[0068] A preset number of tokens is allocated to each message queue whose level is less than a set level threshold.

[0069] The method further comprises:

[0070] The reported alarm information is marked, and each marked alarm information is sent to the first configuration module; and the first configuration module counts each reported alarm type and the number of alarm information of each alarm type according to each marked alarm information received.

[0071] The method also includes:

[0072] Receive customized information reporting configuration information, wherein the customized information reporting configuration information is loaded into the second configuration module through the insmod loading module.

[0073] The information collection equipment of this application includes various sensor devices and monitoring equipment.

[0074] The IoT gateway is used to receive the acceleration configuration and rules issued by the management platform's custom configuration, such as the network port that needs to be accelerated, the specified destination address (IP, domain name, etc.) that needs to be accelerated, and the message to be accelerated that needs to be matched according to the specified content in the message payload; it includes the first configuration module of the application layer and the second configuration module of the kernel layer. Among them, the first configuration module includes a custom acceleration configuration module and a data processing module, and the second configuration module includes kernel cache acceleration configuration rules, a data matching module, and a kernel protocol stack.

[0075] The management platform mainly refers to the third-party platform or cloud platform to which the gateway is connected, which is used to receive data information pushed by the gateway and then perform further data analysis.

[0076] Figure 3 The schematic diagram of the IoT gateway information reporting system structure provided for this application is as follows: Figure 3 As shown, it includes a service platform system (management platform), an Internet of Things gateway system (Internet of Things gateway) and an alarm information collection system. The service platform system includes a third-party platform or a cloud platform. The alarm information collection system includes gas collection equipment, optical fiber vibration collection equipment, cable leakage collection equipment, optical cable leakage collection equipment, water immersion collection equipment, cameras, water sensing collection equipment, vibration collection equipment, infrared collection equipment, boost collection equipment, temperature and humidity collection equipment, etc.

[0077] After the IoT gateway is registered with the service platform system, the service platform system can configure and send the corresponding configuration information to be accelerated and the importance level of the specified message; after the IoT gateway is started, the configuration information to be accelerated and the importance level of the specified message can be customized to be added and modified on the gateway's web configuration page.

[0078] The information reporting configuration information includes a matching rule configuration table (Table 1), a matching strategy configuration table (Table 2) and a general configuration table (Table 3). It should be noted that the information in the following three tables is only for example.

[0079]

[0080] Table 1

[0081]

[0082]

[0083] Table 2

[0084]

[0085] Table 3

[0086] Figure 4 The overall structure diagram of the IoT gateway information reporting system provided for this application. Figure 3 As shown, the custom acceleration configuration module: receives the acceleration configuration information sent by the platform or web configuration, and then generates the corresponding personalized configuration information at the gateway to configure the kernel layer sent. Data processing module: used to receive the marked acceleration sending completion message notified by the kernel, and to perform secondary analysis on it, such as message type statistical analysis, alarm number statistical analysis, etc. The second configuration module in the kernel layer, namely the kernel acceleration module: mainly receives the personalized configuration sent by the acceleration configuration module of the application layer, and generates matching rule configuration tables, matching strategy configuration tables, and matching general configuration tables; generates independent message queues according to specific configuration rules and acceleration levels, creates sending threads, and performs reorganization of new messages when forwarding messages.

[0087] When the platform system or the gateway web sends the custom acceleration configuration to the custom acceleration configuration module: 1) The custom acceleration configuration module parses the specific message type to be accelerated according to the custom grammatical rules, such as the message IP, port, or certain fields in the message that need to be accelerated, or even the value of the field of interest, and then configures it in the device kernel, such as through iocrl; 2) When the kernel receives the acceleration configuration information sent by the upper-layer configuration, it parses and generates the corresponding rule chain, and generates the specified priority queue according to the priority; 3) When the kernel receives the network data packet received by the network card, the data matching module transfers the matched data to the sending queue to be forwarded according to the current matching rules and the priority, one queue for each priority, and the sending queues are arranged from high to low according to the priority; 4) The data sending thread searches from the high priority queue to the low priority queue in turn according to whether there is data in the sending queue. If there is data, the data is directly sent to the protocol stack for sending; the data after sending is marked with a sending completion tag, and then notified to the application layer through mechanisms such as netlink, and the application layer records the data and further analyzes it.

[0088] Figure 5The IoT gateway information reporting flow chart provided for this application includes the following steps:

[0089] S201: The IoT gateway registers on the service platform or logs in to the gateway web.

[0090] S202: The custom configuration sends the acceleration general configuration, acceleration rules and other configuration information to the gateway custom acceleration configuration module.

[0091] S203: The gateway custom acceleration configuration module parses the acceleration configuration information sent by the platform, and then performs corresponding conversion configuration into the kernel.

[0092] S204: The kernel receives the corresponding network message and performs data analysis.

[0093] S205: Maximize the matching of the parsed data according to the issued matching rules to determine whether the match is successful. If yes, proceed to S206; if not, proceed to S207.

[0094] S206: Determine whether the corresponding matching strategy is matched, if yes, proceed to S208, if not, proceed to S209.

[0095] S207: Send the message to the IP layer of the protocol stack, and it will be received and processed by the application layer normally.

[0096] S208: Execute a corresponding strategy (such as a token bucket) according to the corresponding matching strategy.

[0097] S209: Forward the message that needs to be accelerated to the destination address according to the data in the general configuration, modify the corresponding network data packet destination address information, and re-check the message to generate TCP and UDP data packets with complete and correct information, and put them into the corresponding acceleration queue according to the priority level.

[0098] S210: The data sending thread polls the message to be sent from the acceleration queue, and then directly sends the message from the kernel, and then marks the message that has been sent as sent, and notifies the application layer.

[0099] When the platform system or gateway web does not send the custom acceleration configuration to the custom acceleration configuration module:

[0100] 1) When the platform or web does not support the issuance of custom acceleration configuration information, a .ko kernel module can also be implemented through customization; then it can be loaded into the kernel through insmod; 2) The custom ko module contains custom matching rules and the message priority and operation strategy of the corresponding message, as shown in Matching Content Configuration Table 1 and Matching Content Configuration Table 2, and a specified priority message queue is created according to the corresponding priority; 3) When the kernel protocol stack receives a network message from the network card, if a complete message is received, the received message is matched according to the rule of maximizing the match, and the matched message is placed in the corresponding queue according to its priority, and then the message sending thread is sent from the protocol stack according to the priority queue polling.

[0101] Figure 6 Another IoT gateway information reporting flow chart provided for this application includes the following steps:

[0102] S301: Insomod loads the custom data matching module into the kernel.

[0103] S302: The kernel receives the corresponding network message and performs data analysis.

[0104] S303: Maximize the matching of the parsed data according to the issued matching rules to determine whether the match is successful. If yes, proceed to S304; if not, proceed to S305.

[0105] S304: Determine whether the corresponding matching strategy is matched, if yes, proceed to S306, if not, proceed to S307.

[0106] S305: The message is sent to the IP layer of the protocol stack, and is normally received and processed by the application layer.

[0107] S306: Execute a corresponding strategy (such as a token bucket) according to the corresponding matching strategy.

[0108] S307: Forward the message that needs to be accelerated to the destination address according to the data in the general configuration, modify the corresponding network data packet destination address information, and re-check the message to generate TCP and UDP data packets with complete and correct information, and put them into the corresponding acceleration queue according to the priority level.

[0109] S308: The data sending thread polls the message to be sent from the acceleration queue, and then directly sends the message from the kernel, and then marks the message that has been sent as sent, and notifies the application layer.

[0110] Figure 7 The schematic diagram of the IoT gateway information reporting device structure provided for this application includes:

[0111] The receiving unit 71 is used to receive the alarm information collected and sent by the information collection device, and the information reporting configuration information sent by the first configuration module of the application layer of the Internet of Things gateway, wherein the information reporting configuration information is sent by the management platform to the first configuration module;

[0112] The reporting unit 72 is used to determine the reporting level of the alarm information according to the information reporting configuration information, add the alarm information to the information queue corresponding to the reporting level; and report the alarm information in the information queue to the management platform in descending order of level.

[0113] The reporting unit 72 is specifically configured to determine a target alarm category of the alarm information, and determine a reporting level of the alarm information of the target alarm category according to the target alarm category and the correspondence between the alarm information of each alarm category and the reporting level in the information reporting configuration information.

[0114] The reporting unit 72 is specifically used to update the destination address information of the alarm information according to the information reporting configuration information, and verify the updated alarm information to obtain the TCP or UDP data packet corresponding to the alarm information, and add the TCP or UDP data packet to the information queue corresponding to the reporting level.

[0115] The reporting unit 72 is further configured to maximize the matching of the alarm information with the matching rules in the information reporting configuration information, and if the match is successful, perform a step of updating the destination address information of the alarm information according to the information reporting configuration information;

[0116] If the match fails, the alarm information is sent to the first configuration module, and the first configuration module processes the alarm information and adds it to the information queue.

[0117] The reporting unit 72 is specifically used to traverse and query each information queue in real time or according to a set period in descending order of level to see whether there is any alarm information to be reported. If so, the alarm information to be reported is reported to the management platform.

[0118] The reporting unit 72 is specifically used to traverse and query in real time or according to a set period in order from high to low whether there is alarm information to be reported in each information queue. If so, it is determined whether there is a token for the alarm information to be reported. If so, the alarm information to be reported is reported to the management platform. If there is no token for the alarm information to be reported, the alarm information to be reported is discarded.

[0119] The reporting unit 72 is further configured to allocate a preset number of tokens to each information queue whose level is less than a set level threshold.

[0120] The reporting unit 72 is also used to mark the reported alarm information and send each marked alarm information to the first configuration module; so that the first configuration module counts the reported alarm types and the number of alarm information of each alarm type according to the received marked alarm information.

[0121] The receiving unit 71 is further configured to receive user-defined information reporting configuration information, wherein the user-defined information reporting configuration information is loaded into the second configuration module via the insmod loading module.

[0122] This application also provides an Internet of Things gateway, such as Figure 8 As shown, it includes: a processor 81, a communication interface 82, a memory 83 and a communication bus 84, wherein the processor 81, the communication interface 82, and the memory 83 communicate with each other through the communication bus 84;

[0123] The memory 83 stores a computer program, and when the program is executed by the processor 81, the processor 81 executes any one of the above method steps.

[0124] The communication bus mentioned in the IoT gateway can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0125] The communication interface 82 is used for communication between the IoT gateway and other devices.

[0126] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0127] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0128] The present application also provides a computer storage readable storage medium, wherein the computer readable storage medium stores a computer program executable by an Internet of Things gateway, and when the program runs on the Internet of Things gateway, the Internet of Things gateway implements any of the above method steps when executed.

[0129] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0130] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An Internet of Things gateway information reporting system, characterized in that: The system includes: an information collection device, an Internet of Things gateway and a management platform; the application layer of the Internet of Things gateway includes a first configuration module, and the kernel layer of the Internet of Things gateway includes a second configuration module; The management platform is used to send information reporting configuration information to the first configuration module, and the first configuration module sends the information reporting configuration information to the second configuration module; The information collection device is used to collect alarm information and send it to the second configuration module; The second configuration module is used to determine the reporting level of the alarm information according to the information reporting configuration information, add the alarm information to the information queue corresponding to the reporting level; and report the alarm information in the information queue to the management platform in descending order of level.

2. The system according to claim 1, characterized in that The second configuration module is specifically used to determine the target alarm category of the alarm information, and determine the reporting level of the alarm information of the target alarm category according to the corresponding relationship between the alarm information of each alarm category and the reporting level in the information reporting configuration information.

3. The system according to claim 1, characterized in that The second configuration module is specifically used to update the destination address information of the alarm information according to the information reporting configuration information, and verify the updated alarm information to obtain the TCP or UDP data packet corresponding to the alarm information, and add the TCP or UDP data packet to the information queue corresponding to the reporting level.

4. The system according to claim 3, characterized in that The second configuration module is also used to maximize the matching of the alarm information with the matching rules in the information reporting configuration information. If the match is successful, the destination address information of the alarm information is updated according to the information reporting configuration information. If the match fails, the alarm information is sent to the first configuration module, and the first configuration module processes the alarm information and adds it to the information queue.

5. The system according to claim 1, wherein: The second configuration module is specifically used to traverse and query each information queue in real time or according to a set period in descending order of level to see whether there is any alarm information to be reported. If so, the alarm information to be reported is reported to the management platform.

6. The system according to claim 1, wherein: The second configuration module is specifically used to traverse and query in real time or according to a set period in order from high to low whether there is alarm information to be reported in each information queue. If so, determine whether there is a token for the alarm information to be reported. If so, report the alarm information to be reported to the management platform. If there is no token for the alarm information to be reported, discard the alarm information to be reported.

7. The system according to claim 6, characterized in that The second configuration module is further configured to allocate a preset number of tokens to each information queue whose level is less than a set level threshold.

8. The system of claim 1, wherein: The second configuration module is further used to mark the reported alarm information and send each marked alarm information to the first configuration module; The first configuration module is further used to count the reported alarm types and the number of alarm information of each alarm type according to the received marked alarm information.

9. The system according to claim 1, characterized in that The second configuration module is further used to receive customized information reporting configuration information, wherein the customized information reporting configuration information is loaded into the second configuration module through the insmod loading module.

10. A method for reporting Internet of Things gateway information, characterized in that: The method comprises: Receive alarm information collected and sent by the information collection device, and information reporting configuration information sent by the first configuration module of the application layer of the Internet of Things gateway, wherein the information reporting configuration information is sent by the management platform to the first configuration module; According to the information reporting configuration information, the reporting level of the alarm information is determined, and the alarm information is added to the information queue corresponding to the reporting level; and the alarm information in the information queue is reported to the management platform in descending order of level.

11. The method according to claim 10, characterized in that Determining the reporting level of the alarm information according to the information reporting configuration information includes: The target alarm category of the alarm information is determined, and the reporting level of the alarm information of the target alarm category is determined according to the target alarm category and the corresponding relationship between the alarm information of each alarm category and the reporting level in the information reporting configuration information.

12. The method according to claim 10, characterized in that The step of adding the alarm information to the information queue corresponding to the reporting level comprises: According to the information reporting configuration information, the destination address information of the alarm information is updated, and the updated alarm information is verified to obtain the TCP or UDP data packet corresponding to the alarm information, and the TCP or UDP data packet is added to the information queue corresponding to the reporting level.

13. The method according to claim 12, characterized in that Before updating the destination address information of the alarm information according to the information reporting configuration information, the method further includes: Maximizing the matching of the alarm information with the matching rules in the information reporting configuration information, and if the match is successful, updating the destination address information of the alarm information according to the information reporting configuration information; If the match fails, it also includes: The alarm information is sent to the first configuration module, and the first configuration module processes the alarm information and adds it to the information queue.

14. The method according to claim 10, characterized in that The step of reporting the alarm information in the information queue to the management platform in descending order of levels includes: In real time or according to a set period, each information queue is traversed and queried in descending order of level to see whether there is any alarm information to be reported. If so, the alarm information to be reported is reported to the management platform.

15. The method according to claim 10, characterized in that The step of reporting the alarm information in the information queue to the management platform in descending order of levels includes: In real time or according to a set period, query each information queue in order from high to low whether there is alarm information to be reported. If so, determine whether there is a token for the alarm information to be reported. If so, report the alarm information to be reported to the management platform. If there is no token for the alarm information to be reported, discard the alarm information to be reported.

16. The method according to claim 15, characterized in that Before querying in real time or according to a set period in descending order of levels whether there is any alarm information to be reported in each information queue, the method further includes: A preset number of tokens is allocated to each message queue whose level is less than a set level threshold.

17. The method according to claim 10, characterized in that The method further comprises: The reported alarm information is marked, and each marked alarm information is sent to the first configuration module; and the first configuration module counts each reported alarm type and the number of alarm information of each alarm type according to each marked alarm information received.

18. The method according to claim 10, characterized in that The method further comprises: Receive customized information reporting configuration information, wherein the customized information reporting configuration information is loaded into a second configuration module of the kernel layer of the Internet of Things gateway through an insmod loading module.

19. An Internet of Things gateway information reporting device, characterized in that: The device comprises: A receiving unit, used to receive alarm information collected and sent by the information collection device, and information reporting configuration information sent by the first configuration module of the application layer of the Internet of Things gateway, wherein the information reporting configuration information is sent by the management platform to the first configuration module; The reporting unit is used to determine the reporting level of the alarm information according to the information reporting configuration information, add the alarm information to the information queue corresponding to the reporting level; and report the alarm information in the information queue to the management platform in descending order of level.

20. An Internet of Things gateway, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 10-18 when executing a program stored in a memory.

21. 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 a processor, the method steps described in any one of claims 10-18 are implemented.

Citation Information

Patent Citations

  • Network fault diagnosis method and device and computer readable storage medium

    CN109787817A

  • Network security protection method of Internet of Things equipment and Internet of Things equipment

    CN109962885A