An information processing method, a gateway and a computer readable storage medium

CN116886680BActive Publication Date: 2026-09-11SHENZHEN MINEW TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310886382.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-18
Publication Date
2026-09-11
Estimated Expiration
2043-07-18

AI Technical Summary

Technical Problem

[0003]为解决上述技术问题,本申请实施例期望提供一种信息处理方法、网关及计算机可读存储介质,解决了相关技术中更新过滤参数的方案存在数据包丢失,且LoRaWAN网络的稳定性差的问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116886680B_ABST
    Figure CN116886680B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an information processing method, which comprises: receiving a processing instruction sent by a first server, the processing instruction being used for operating a filtering parameter stored in a LoRaWAN application; in a case where a type of the processing instruction is a first type, updating the filtering parameter based on the processing instruction through a target execution unit in the LoRaWAN application; wherein the target execution unit has an operation permission on the filtering parameter. Embodiments of the present application also disclose a gateway and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to information processing technology in the field of communication technology, and more particularly to an information processing method, a gateway, and a computer-readable storage medium. Background Technology

[0002] In a Long Range Radio Wide Area Network (LoRaWAN), end devices communicate with a gateway via wireless signals. The gateway then forwards data packets sent by the end devices to the network server. To prevent the gateway from forwarding unnecessary data packets from end devices, filtering parameters are typically used in the gateway's LoRaWAN application to filter the packets before forwarding them to the network server. However, these filtering parameters are loaded into the LoRaWAN application during startup. If the parameters need to be updated, the LoRaWAN application must be restarted. During a restart, the LoRaWAN application cannot receive or forward data packets from end devices, leading to packet loss and poor network stability. Summary of the Invention

[0003] To address the aforementioned technical problems, this application aims to provide an information processing method, a gateway, and a computer-readable storage medium, resolving the issues of packet loss and poor stability of LoRaWAN networks in related technologies for updating filter parameters.

[0004] The technical solution of this application is implemented as follows:

[0005] An information processing method applied to a gateway, the method comprising:

[0006] Receive processing instructions sent by the first server for manipulating the filtering parameters stored in the LoRaWAN application;

[0007] When the processing instruction is of type 1, the filtering parameters are updated based on the processing instruction by the target execution unit in the LoRaWAN application; wherein the target execution unit has the permission to operate on the filtering parameters.

[0008] In the above scheme, before updating the filtering parameters based on the processing instruction by the target execution unit in the LoRaWAN application when the type of the processing instruction is the first type, the method further includes:

[0009] The target execution unit is created using the LoRaWAN application.

[0010] In the above scheme, updating the filtering parameters based on the processing instructions through the target execution unit in the LoRaWAN application includes:

[0011] The target execution unit parses the processing instructions to obtain the information to be updated.

[0012] The target execution unit updates the filtering parameters based on the information to be updated.

[0013] In the above scheme, before updating the filtering parameters based on the processing instruction by the target execution unit in the LoRaWAN application when the type of the processing instruction is the first type, the method further includes:

[0014] Upon receiving the processing instruction, the public gateway interface CGI application is executed;

[0015] When the processing instruction is of type 1, the processing instruction is sent to the target execution unit via the CGI application.

[0016] The method in the above scheme further includes:

[0017] When the processing instruction is of type 1, the CGI application updates the filtering parameters in the configuration file corresponding to the LoRaWAN application stored on the gateway based on the processing instruction.

[0018] The method in the above scheme further includes:

[0019] When the processing instruction is of type two, the CGI application, in response to the processing instruction, retrieves the filtering parameters from the configuration file corresponding to the LoRaWAN application stored on the gateway;

[0020] The filtering parameters are sent to the first server.

[0021] In the above scheme, after the filtering parameters are updated based on the processing instructions by the target execution unit in the LoRaWAN application when the type of the processing instruction is the first type, the method further includes:

[0022] The LoRaWAN application parses the data packets sent by the node to be processed to obtain the parameters to be processed.

[0023] If it is determined that the parameter to be processed meets the updated filtering parameters, the data packet is sent to the second server; wherein the first server and the second server are different.

[0024] In the above scheme, the filtering parameters are stored in a hash table in the LoRaWAN application.

[0025] A gateway, the gateway comprising: a processor, a memory, and a communication bus;

[0026] The processor is used to execute information processing programs in the memory to perform the following steps:

[0027] Receive processing instructions sent by the first server for manipulating the filtering parameters stored in the LoRaWAN application;

[0028] When the processing instruction is of type 1, the filtering parameters are updated based on the processing instruction by the target execution unit in the LoRaWAN application; wherein the target execution unit has the permission to operate on the filtering parameters.

[0029] A computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the information processing method described above.

[0030] The information processing method, gateway, and computer-readable storage medium provided in the embodiments of this application receive a processing instruction sent by a first server for operating on filtering parameters stored in a LoRaWAN application; when the type of the processing instruction is a first type, the filtering parameters are updated based on the processing instruction by a target execution unit in the LoRaWAN application; wherein the target execution unit has the authority to operate on the filtering parameters; thus, during the operation of the LoRaWAN application, the filtering parameters are updated based on the first type of processing instruction by the target execution unit in the LoRaWAN application, ensuring the normal operation of the LoRaWAN application, eliminating the need to restart the LoRaWAN application to update the filtering parameters as in related technologies, and solving the problems of data packet loss and poor stability of the LoRaWAN network in related technologies for updating filtering parameters. Attached Figure Description

[0031] Figure 1 A flowchart illustrating an information processing method provided in an embodiment of this application;

[0032] Figure 2 A flowchart illustrating another information processing method provided in an embodiment of this application;

[0033] Figure 3 This is a schematic diagram of the structure of another information processing system provided in the embodiments of this application;

[0034] Figure 4 This is a schematic diagram of the structure of an information processing device provided in an embodiment of this application;

[0035] Figure 5 This is a schematic diagram of the structure of a gateway provided in an embodiment of this application. Detailed Implementation

[0036] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0037] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0038] This application provides an information processing method, which can be applied to a gateway, as described below. Figure 1 As shown, the method includes the following steps:

[0039] Step 101: Receive processing instructions sent by the first server for manipulating the filtering parameters stored in the LoRaWAN application.

[0040] The operations include any of the following: "Add", "Delete", "Modify", and "Query"; the gateway can also be called a LoRaWAN gateway; the gateway receives data packets sent by the nodes to be processed (end devices) through the running LoRaWAN application and filters the data packets based on stored filtering parameters; if the parameters in the data packet meet the filtering parameters, the data packet is forwarded to the second server through the LoRaWAN application; the first server is the server that manages or sets parameters for the gateway; the second server is the network server in the LoRaWAN network, which can also be called a LoRaWAN server.

[0041] In one feasible implementation, the first server is a Hypertext Transfer Protocol (HTTP) server, also known as an HTTP Server.

[0042] In this embodiment of the application, the processing instruction may be generated by the first server based on the received user demand information and then sent to the gateway; of course, the processing instruction may also be generated by the first server based on the amount of data packets received by the gateway and / or the gateway's operating status information and then sent to the gateway.

[0043] It should be noted that after the LoRaWAN application starts, a target data structure is created to load (store) the filtering parameters from the configuration file corresponding to the LoRaWAN application on the gateway into the target data structure. This ensures the timeliness of the loading of the filtering parameters and the timely filtering of data packets based on the loaded filtering parameters.

[0044] Step 102: If the processing instruction is of type 1, the filtering parameters are updated based on the processing instruction by the target execution unit in the LoRaWAN application.

[0045] The target execution unit has the authority to manipulate the filtering parameters. The processing instructions include a first type and a second type; the first type can be a query, and the second type is an update.

[0046] In this embodiment, the gateway can parse the processing command, obtain the data of the target field carried in the processing command, and determine the type of the processing command based on the data of the target field. When the type of the processing command is the first type, the processing command can be sent to the target execution unit in the LoRaWAN application on the gateway through the Common Gateway Interface (CGI) application. The target execution unit then performs at least one of the operations of "adding," "deleting," and "modifying" on the filter parameters stored on the LoRaWAN application based on the processing command to update the filter parameters. The filter parameters include at least the identification information of the end device.

[0047] In one feasible implementation, the target execution unit can be a LoRaWAN application with permissions to manipulate the filtering parameters; the identification information of the end device can be the Media Access Control Address (MAC) of the end device.

[0048] The information processing method provided in the embodiments of this application receives a processing instruction sent by a first server for operating on filtering parameters stored in a LoRaWAN application; when the type of the processing instruction is a first type, the filtering parameters are updated based on the processing instruction by a target execution unit in the LoRaWAN application; wherein the target execution unit has the permission to operate on the filtering parameters; thus, during the operation of the LoRaWAN application, the filtering parameters are updated based on the first type of processing instruction by the target execution unit in the LoRaWAN application, ensuring the normal operation of the LoRaWAN application, eliminating the need to restart the LoRaWAN application to update the filtering parameters as in related technologies, and solving the problems of data packet loss and poor stability of the LoRaWAN network when updating filtering parameters in related technologies.

[0049] Based on the foregoing embodiments, embodiments of this application provide an information processing method, referring to... Figure 2 As shown, the method includes the following steps:

[0050] Step 201: The gateway receives a processing instruction from the first server to operate on the filtering parameters stored in the LoRaWAN application.

[0051] Step 202: The gateway creates a target execution unit through the LoRaWAN application.

[0052] In this embodiment of the application, the target execution unit can be created after the LoRaWAN application is started.

[0053] Specifically, after the LoRaWAN application starts, a target data structure can be created first. After storing the filtering parameters in the configuration file into the target data structure, a target execution unit can be created. This ensures the timeliness of creating the target execution unit, so that when the target execution unit receives a first type of processing instruction, it can update the filtering parameters based on the processing instruction, thus improving the timeliness of updating the filtering parameters.

[0054] In one feasible implementation, the target execution unit is a thread created by the LoRaWAN application that has permission to operate on the filtering parameters stored in the LoRaWAN application.

[0055] It should be noted that if no processing instruction of the first type is received, the target execution unit is in a dormant state, which will not occupy resources and reduces network overhead.

[0056] It should be noted that step 202 can be executed before step 201; step 202 can also be executed after step 201; of course, step 202 and step 201 can also be executed simultaneously. In this embodiment of the application, the execution order between step 201 and step 202 is not limited.

[0057] Step 203: Upon receiving a processing instruction, the gateway runs the public gateway interface CGI application.

[0058] In this embodiment of the application, upon receiving a processing instruction, the gateway immediately runs a CGI application to process the instruction in a timely manner.

[0059] In one feasible implementation, when the transceiver on the gateway receives a processing instruction, the gateway immediately runs a CGI application. The CGI application parses the processing instruction to obtain data from the target field and determines the type of the processing instruction based on this data. This allows for subsequent processing of the instruction based on its type. The target field is the field that characterizes the type of the processing instruction.

[0060] It should be noted that steps 204 to 208 or steps 209 to 210 can be executed after step 203.

[0061] Step 204: If the type of the processing instruction is Type 1, the gateway sends the processing instruction to the target execution unit through the CGI application.

[0062] In the embodiments of this application, when the type of the processing instruction is the first type, that is, the processing instruction is an update instruction, the CGI application can forward the processing instruction to the target execution unit through inter-process communication; when the type of the processing instruction is the second type, the CGI application does not forward the processing instruction.

[0063] Step 205: The gateway parses the processing instructions through the target execution unit in the LoRaWAN application to obtain the information to be updated.

[0064] In the embodiments of this application, the information to be updated may be new filtering parameters; of course, the information to be updated may also be operation instructions for the filtering parameters.

[0065] In one feasible implementation, the information to be updated can be a deletion instruction for some of the filter parameters; the information to be updated can also be a modification instruction for some of the filter parameters; or the information to be updated can be an addition instruction for filter parameters, carrying the filter parameters to be added. The operation instruction information includes at least one of the following: deletion instruction, modification instruction, and addition instruction.

[0066] Step 206: The gateway updates the filtering parameters based on the information to be updated through the target execution unit in the LoRaWAN application.

[0067] In this embodiment, when the information to be updated is a new filter parameter, the filter parameter stored in the LoRaWAN application can be replaced with the new filter parameter to update the filter parameter stored in the LoRaWAN application; when the information to be updated is operation instruction information for filter parameters, at least one of the operations of "delete", "modify" and "add" can be performed on some filter parameters based on the information to be updated to update the filter parameters.

[0068] It should be noted that filtering parameters can be stored using a hash table within the LoRaWAN application; the target data structure includes a hash table. Filtering parameters can include the mapping between node identifiers and target content parameters, and these parameters can be stored in the hash table using the node identifier as an index. This achieves optimal lookup speed, saves time in packet filtering, and improves the overall packet filtering rate. The node identifier can be the node's MAC address.

[0069] Step 207: The gateway uses the LoRaWAN application to parse the data packets sent by the node to be processed to obtain the parameters to be processed.

[0070] In this context, the node to be processed is an end device in the LoRaWAN network. The gateway can receive data packets sent by the node to be processed through a LoRaWAN application. The LoRaWAN application can parse the data packets to obtain the parameters to be processed. These parameters include the identification information of the node to be processed and data content parameters. The identification information of the node to be processed has a higher priority than the data content parameters.

[0071] It should be noted that the data content parameters can be set according to the actual business. In this embodiment of the application, the specific data content parameters are not limited.

[0072] In one feasible implementation, the identification information of the node to be processed is the MAC address of the node to be processed, and the data content parameters are the Received Signal Strength Indicator (RSSI) and the Power of Signal (SNR).

[0073] Step 208: If the parameters to be processed are determined to meet the updated filtering parameters, the gateway sends a data packet to the second server.

[0074] The first server and the second server are different.

[0075] In this embodiment, if the updated filtering parameters contain the identifier information of the node to be processed, then the parameter to be processed is determined to satisfy the updated filtering parameters; or, if the updated filtering parameters contain the identifier information of the node to be processed, the target content parameter corresponding to the identifier information is determined from the updated filtering parameters, and if the data content parameter satisfies the target content parameter, then the parameter to be processed is determined to satisfy the updated filtering parameters. Of course, if it is determined that the parameter to be processed does not satisfy the updated filtering parameters, then the data packet is discarded. Thus, through the LoRaWAN application, when it is determined that the parameter to be processed satisfies the updated filtering parameters, the data packet is forwarded to the second server, achieving data packet filtering, avoiding the forwarding of data packets from unnecessary nodes, reducing the number of data packets forwarded by the gateway, and reducing the gateway's workload.

[0076] It should be noted that, through the target execution unit in the LoRaWAN application, the filtering parameters stored in the LoRaWAN application can be updated based on the first type of processing instructions during the LoRaWAN application's operation. This eliminates the need to first update the filtering parameters in the configuration file corresponding to the LoRaWAN application stored on the gateway, and then restart the LoRaWAN application to load the new filtering parameters from the configuration file. This saves time in updating filtering parameters and avoids the problem of packet loss due to the inability to send and receive data during the LoRaWAN application restart process. This improves the security and stability of the gateway's data packet sending and receiving, and further enhances the stability of the LoRaWAN network.

[0077] Step 209: If the processing instruction is of type 2, the gateway, in response to the processing instruction, retrieves the filtering parameters from the configuration file corresponding to the LoRaWAN application stored on the gateway via the CGI application.

[0078] In this embodiment of the application, when the processing instruction is of the second type, that is, when the processing instruction is a query instruction, the CGI application can respond to the processing instruction and obtain the node's filtering parameters from the configuration file corresponding to the LoRaWAN application; wherein, the node can be some end devices in the LoRaWAN network or all end devices in the LoRaWAN network.

[0079] Step 210: The gateway sends the filtering parameters to the first server.

[0080] In this embodiment, the gateway can send filtering parameters to the first server via a transceiver; of course, the gateway can also send filtering parameters to the first server via a CGI application; thus, different sending methods can be flexibly selected to send filtering parameters to the first server, improving the flexibility of sending filtering parameters to the first server.

[0081] In other embodiments of this application, the information processing method further includes the following steps:

[0082] Step 211: If the processing instruction is of type 1, update the filtering parameters in the configuration file corresponding to the LoRaWAN application stored on the gateway based on the processing instruction via the CGI application.

[0083] The configuration file, also known as the local configuration file, is automatically loaded during the startup process of the LoRaWAN application so that the LoRaWAN application can process services subsequently.

[0084] In this embodiment of the application, when the type of the processing instruction is the first type, the CGI application can parse the processing instruction to obtain the information to be updated; the information to be updated may be new filtering parameters; of course, the information to be updated may also be operation instruction information for the filtering parameters.

[0085] When the information to be updated is a new filter parameter, the CGI application can replace the filter parameter stored in the configuration file with the new filter parameter to update the filter parameter in the configuration file; when the information to be updated is an operation instruction for the filter parameter, at least one of the operations of "delete", "modify" and "add" can be performed on some filter parameters in the configuration file based on the information to be updated to update the filter parameter in the configuration file.

[0086] It should be noted that steps 211 and 206 can be executed simultaneously; or step 211 can be executed after step 206; or step 211 can be executed before step 206. This application embodiment does not limit the execution order between steps 206 and 211.

[0087] It should be noted that the information processing method provided in this application embodiment can update the filtering parameters by adding, deleting, or modifying them during the LoRaWAN program's operation, without needing to restart the LoRaWAN application to update the filtering parameters. This avoids data packet loss and maintains the stability and data continuity of the LoRaWAN network. Moreover, the filtering parameters are stored in the LoRaWAN application with the node's MAC address as the index, enabling optimal speed for finding and filtering data packets, thus improving the gateway's data packet forwarding rate.

[0088] It should be noted that the descriptions of the same steps and contents in the embodiments of this application as in other embodiments can be found in the descriptions of other embodiments, and will not be repeated here.

[0089] The information processing method provided in the embodiments of this application updates the filtering parameters based on the first type of processing instructions through the target execution unit in the LoRaWAN application during the operation of the LoRaWAN application. This ensures the normal operation of the LoRaWAN application and eliminates the need to restart the LoRaWAN application to update the filtering parameters, as is the case in related technologies. This solves the problems of data packet loss and poor stability of the LoRaWAN network when updating filtering parameters in related technologies.

[0090] Based on the foregoing embodiments, other embodiments of this application also provide an information processing system, such as... Figure 3 As shown, the information processing system includes end devices, a first server (HTTP server), a second server (LoRaWAN server), and a gateway; wherein the gateway establishes communication connections with the end devices, the first server, and the second server respectively.

[0091] When the LoRaWAN application starts, it reads and loads the configuration file containing filtering parameters stored in the gateway. This allows the LoRaWAN application to process services during operation. During the LoRaWAN application's operation, the filter unit within the application filters data packets from end devices sent by the uplink thread based on the filtering parameters and sends the filtered packets to the second server. When the gateway receives a processing instruction from the HTTP server, it starts the CGI application. If the processing instruction is determined to be an update instruction, the CGI application forwards the instruction via inter-process communication to the thread on the LoRaWAN application with the authority to operate on the filtering parameters stored in the LoRaWAN application. This thread can then update the filtering parameters stored in the LoRaWAN application based on the processing instruction. Simultaneously, if the processing instruction is determined to be an update instruction, the CGI application can update the filtering parameters in the configuration file based on the instruction. This update ensures that the configuration file is loaded with the latest filtering parameters upon the next restart of the CGI application, guaranteeing the validity of the loaded filtering parameters at the next startup.

[0092] It should be noted that the descriptions of the same steps and contents in the embodiments of this application as in other embodiments can be found in the descriptions of other embodiments, and will not be repeated here.

[0093] The information processing system provided in the embodiments of this application updates the filtering parameters based on the first type of processing instructions through the target execution unit in the LoRaWAN application during the operation of the LoRaWAN application, ensuring the normal operation of the LoRaWAN application. It does not require restarting the LoRaWAN application to update the filtering parameters as in related technologies, thus solving the problems of data packet loss and poor stability of the LoRaWAN network in the related technologies for updating filtering parameters.

[0094] Based on the foregoing embodiments, this application provides an information processing apparatus that can be applied to... Figures 1-2 In the information processing method provided in the corresponding embodiment, refer to Figure 4 As shown, the information processing device 3 includes:

[0095] The acquisition unit 31 is used to receive a processing instruction sent by the first server for operating on the filtering parameters stored in the LoRaWAN application;

[0096] The processing unit 32 is used to update the filtering parameters based on the processing instructions through the target execution unit in the LoRaWAN application when the type of the processing instruction is the first type; wherein the target execution unit has the operation authority to the filtering parameters.

[0097] In other embodiments of this application, the processing unit 32 is further configured to perform the following steps:

[0098] Create the target execution unit using the LoRaWAN application.

[0099] In other embodiments of this application, the processing unit 32 is further configured to perform the following steps:

[0100] The target execution unit parses the processing instructions to obtain the information to be updated;

[0101] The target execution unit updates the filtering parameters based on the information to be updated.

[0102] In other embodiments of this application, the processing unit 32 is further configured to perform the following steps:

[0103] Upon receiving a processing instruction, run the public gateway interface CGI application;

[0104] When the type of the processing instruction is type 1, the processing instruction is delivered to the target execution unit through the CGI application.

[0105] In other embodiments of this application, the processing unit 32 is further configured to perform the following steps:

[0106] When the processing instruction is of type 1, the CGI application updates the filtering parameters in the configuration file corresponding to the LoRaWAN application stored on the gateway based on the processing instruction.

[0107] In other embodiments of this application, the processing unit 32 is further configured to perform the following steps:

[0108] When the processing instruction is of type two, the CGI application retrieves the filtering parameters from the configuration file corresponding to the LoRaWAN application stored on the gateway in response to the processing instruction.

[0109] Send the filtering parameters to the first server.

[0110] In other embodiments of this application, the processing unit 32 is further configured to perform the following steps:

[0111] The LoRaWAN application parses the data packets sent by the node to be processed to obtain the parameters to be processed.

[0112] If the parameters to be processed are determined to meet the updated filtering parameters, a data packet is sent to the second server; the first server and the second server are different.

[0113] In other embodiments of this application, filtering parameters are stored in a hash table within the LoRaWAN application.

[0114] It should be noted that the specific implementation process of the steps performed by each unit in the embodiments of this application can be referred to Figures 1-2 The implementation process of the information processing method provided in the corresponding embodiments will not be described in detail here.

[0115] The information processing apparatus provided in the embodiments of this application updates the filtering parameters based on the first type of processing instructions through the target execution unit in the LoRaWAN application during the operation of the LoRaWAN application, ensuring the normal operation of the LoRaWAN application. It does not require restarting the LoRaWAN application to update the filtering parameters as in related technologies, thus solving the problems of data packet loss and poor stability of the LoRaWAN network when updating filtering parameters in related technologies.

[0116] Based on the foregoing embodiments, embodiments of this application provide a gateway that can be applied to... Figures 1-2 In the information processing method provided in the corresponding embodiment, refer to Figure 5 As shown, the gateway 4 may include a processor 41, a memory 42, and a communication bus 43;

[0117] Communication bus 43 is used to realize the communication connection between processor 41 and memory 42;

[0118] The processor 41 is used to execute the information processing program in the memory 42 to perform the following steps:

[0119] Receive processing instructions sent by the first server for manipulating the filtering parameters stored in the LoRaWAN application;

[0120] When the processing instruction is of type 1, the filter parameters are updated based on the processing instruction by the target execution unit in the LoRaWAN application; wherein the target execution unit has the authority to operate on the filter parameters.

[0121] In other embodiments of this application, the processor 41 is used to execute an information processing program in the memory 42 to perform the following steps:

[0122] Create the target execution unit using the LoRaWAN application.

[0123] In other embodiments of this application, the processor 41 is used to execute the information processing program in the memory 42 via the target execution unit in the LoRaWAN application, and updates the filtering parameters based on processing instructions to implement the following steps:

[0124] The target execution unit parses the processing instructions to obtain the information to be updated;

[0125] The target execution unit updates the filtering parameters based on the information to be updated.

[0126] In other embodiments of this application, the processor 41 is used to execute an information processing program in the memory 42 to perform the following steps:

[0127] Upon receiving a processing instruction, run the public gateway interface CGI application;

[0128] When the type of the processing instruction is type 1, the processing instruction is delivered to the target execution unit through the CGI application.

[0129] In other embodiments of this application, the processor 41 is used to execute an information processing program in the memory 42 to perform the following steps:

[0130] When the processing instruction is of type 1, the CGI application updates the filtering parameters in the configuration file corresponding to the LoRaWAN application stored on the gateway based on the processing instruction.

[0131] In other embodiments of this application, the processor 41 is used to execute an information processing program in the memory 42 to perform the following steps:

[0132] When the processing instruction is of type two, the CGI application retrieves the filtering parameters from the configuration file corresponding to the LoRaWAN application stored on the gateway in response to the processing instruction.

[0133] Send the filtering parameters to the first server.

[0134] In other embodiments of this application, the processor 41 is used to execute an information processing program in the memory 42 to perform the following steps:

[0135] The LoRaWAN application parses the data packets sent by the node to be processed to obtain the parameters to be processed.

[0136] If the parameters to be processed are determined to meet the updated filtering parameters, a data packet is sent to the second server; the first server and the second server are different.

[0137] In other embodiments of this application, filtering parameters are stored in a hash table within the LoRaWAN application.

[0138] It should be noted that the specific implementation process of the steps executed by the processor in this embodiment can be referred to Figures 1-2 The implementation process of the information processing method provided in the corresponding embodiments will not be described in detail here.

[0139] The gateway provided in the embodiments of this application updates the filtering parameters based on the first type of processing instructions through the target execution unit in the LoRaWAN application during the operation of the LoRaWAN application, ensuring the normal operation of the LoRaWAN application. It does not require restarting the LoRaWAN application to update the filtering parameters as in related technologies, thus solving the problems of data packet loss and poor stability of the LoRaWAN network in the related technologies for updating filtering parameters.

[0140] Based on the foregoing embodiments, embodiments of this application provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement... Figures 1-2 The corresponding embodiments provide the steps of the information processing method.

[0141] It should be noted that the aforementioned computer-readable storage media can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM), etc.; or it can be various electronic devices that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0142] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0143] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0144] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0145] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0146] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0147] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0148] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. An information processing method characterized by comprising: Applied to a gateway, the method includes: Receive processing instructions sent by the first server for manipulating the filtering parameters stored in the LoRaWAN application; Upon receiving the processing instruction, the public gateway interface CGI application is executed; When the processing instruction is of type 1, the filtering parameters are updated based on the processing instruction by the target execution unit in the LoRaWAN application; wherein the target execution unit has the permission to operate on the filtering parameters; the target execution unit is a thread created by the LoRaWAN application that has the permission to operate on the filtering parameters stored in the LoRaWAN application, and the filtering parameters are stored through a hash table in the LoRaWAN application; When the processing instruction is of type two, the CGI application, in response to the processing instruction, retrieves the filtering parameters from the configuration file corresponding to the LoRaWAN application stored on the gateway; and sends the filtering parameters to the first server.

2. The method according to claim 1, characterized in that, When the type of the processing instruction is the first type, before updating the filtering parameters based on the processing instruction by the target execution unit in the LoRaWAN application, the method further includes: The target execution unit is created using the LoRaWAN application.

3. The method according to claim 1, characterized in that, The step of updating the filtering parameters based on the processing instructions through the target execution unit in the LoRaWAN application includes: The target execution unit parses the processing instructions to obtain the information to be updated. The target execution unit updates the filtering parameters based on the information to be updated.

4. The method according to claim 1, characterized in that, When the type of the processing instruction is the first type, before updating the filtering parameters based on the processing instruction by the target execution unit in the LoRaWAN application, the method further includes: When the processing instruction is of type 1, the processing instruction is sent to the target execution unit via the CGI application.

5. The method according to claim 4, characterized in that, The method further includes: When the processing instruction is of type 1, the CGI application updates the filtering parameters in the configuration file corresponding to the LoRaWAN application stored on the gateway based on the processing instruction.

6. The method according to claim 1, characterized in that, When the type of the processing instruction is the first type, after the target execution unit in the LoRaWAN application updates the filtering parameters based on the processing instruction, the method further includes: The LoRaWAN application parses the data packets sent by the node to be processed to obtain the parameters to be processed. If it is determined that the parameter to be processed meets the updated filtering parameters, the data packet is sent to the second server; wherein the first server and the second server are different.

7. A gateway, characterized in that, The gateway includes: a processor, a memory, and a communication bus; The processor is used to execute information processing programs in memory to perform the following steps: Receive processing instructions sent by the first server for manipulating the filtering parameters stored in the LoRaWAN application; Upon receiving the processing instruction, the public gateway interface CGI application is executed; When the processing instruction is of type 1, the filtering parameters are updated based on the processing instruction by the target execution unit in the LoRaWAN application; wherein, the target execution unit has the permission to operate on the filtering parameters; the target execution unit is a thread created by the LoRaWAN application that has the permission to operate on the filtering parameters stored in the LoRaWAN application, and the filtering parameters are stored through a hash table in the LoRaWAN application; When the processing instruction is of type two, the CGI application, in response to the processing instruction, retrieves the filtering parameters from the configuration file corresponding to the LoRaWAN application stored on the gateway; and sends the filtering parameters to the first server.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the information processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Micro-service gateway plug-in dynamic loading method, device and system and storage medium thereof

    CN112988274A