Gateway configuration method, device and system and storage medium

By broadcasting configuration parameters to multiple gateway devices by a single gateway device, the batch automatic configuration of LoRaWAN gateway is realized, solving the problem of low manual configuration efficiency in the existing technology, and improving the efficiency and accuracy of gateway configuration.

CN119211007APending Publication Date: 2024-12-27SHENZHEN HAIDAO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411410004.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The configuration method of the existing LoRaWAN gateway requires manual connection with USB data cable or network cable, resulting in the need of a construction worker equipped with a laptop and configuration tool, which is inefficient and inconvenient, especially when multiple people install it at the same time, it is time-consuming and labor-intensive, and the environment is harsh and technical. Uneven levels lead to very inefficient installation.

Method used

Through a single gateway device, the configuration parameters are broadcast to multiple gateway devices to be configured in the same area. The transceiver module is used to broadcast messages regularly within the preset interval time, and the response information is received to determine the number of configurations successfully, and the multiple gateways are automatically completed. Configure to avoid manual connection and manual confirmation.

Benefits of technology

The batch configuration of a single gateway to multiple gateways is realized, which improves configuration efficiency and convenience, reduces manual errors and omissions, and improves configuration accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211007A_ABST
    Figure CN119211007A_ABST
Patent Text Reader

Abstract

The invention discloses a gateway configuration method, device and system and a storage medium, and the method comprises the steps: obtaining an input configuration parameter which comprises a target configuration number of second gateway equipment; forming the configuration parameters into a broadcast message; broadcasting the broadcast message to at least one second gateway device to be configured in the same area; receiving response information of at least one second gateway device; determining the number of successfully configured second gateway devices based on the response information; judging whether the number of the successfully configured second gateway devices is equal to the target configuration number of the second gateway devices or not; and if the number of the successfully configured second gateway devices is equal to the target configuration number of the second gateway devices, storing the configuration result. Through the method, the gateway configuration efficiency and convenience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things technology, and in particular to a configuration method, device, system and storage medium for a gateway. Background Art

[0002] The gateway mainly serves as a bridge between the terminal and the background server. It receives terminal data through LoRa and transmits the received terminal data to the network server through WiFi, Ethernet, 4G, etc. to achieve a closed loop.

[0003] The LoRaWAN (LoRa Wide Area Network) gateways currently on the market are usually configured by default to use the network server specified by the manufacturer when they leave the factory. However, in actual deployment, customers may need to configure the gateway to connect to other third-party network servers that support the LoRaWAN protocol, or private network servers developed by customers themselves, so a series of configurations need to be performed on the gateway, including setting the address, port, and data reporting interval of the target network server. Most existing configuration methods rely on USB data cables or network cables, and require construction workers to prepare laptops, host computer software, ladders and other tools for manual configuration.

[0004] However, the existing configuration method can only configure one gateway device at a time. If you want to speed up the installation progress, multiple people are required to perform the installation work at the same time, and each person needs to be equipped with a laptop and configuration tools, which is time-consuming and labor-intensive. In addition, due to factors such as the harsh environment and the uneven technical levels of construction workers, this manual configuration method can easily cause many inconveniences to the construction workers, resulting in very low installation efficiency. Summary of the invention

[0005] The present application provides a gateway configuration method, device, system and storage medium, which can improve the efficiency and convenience of gateway configuration.

[0006] In a first aspect, the present application provides a gateway configuration method, which is applied to a first gateway device, wherein the number of the first gateway device is 1, and the method includes:

[0007] Acquire input configuration parameters, wherein the configuration parameters include a target configuration quantity of the second gateway device;

[0008] Combining configuration parameters into broadcast messages;

[0009] Broadcasting a broadcast message to at least one second gateway device to be configured in the same area;

[0010] receiving response information of at least one second gateway device;

[0011] Based on the response information, determine the number of successfully configured second gateway devices;

[0012] Determining whether the number of successfully configured second gateway devices is equal to the target configuration number of second gateway devices;

[0013] If the number of successfully configured second gateway devices is equal to the target configuration number of second gateway devices, the current configuration result is saved.

[0014] A further technical solution is to determine whether the number of successfully configured second gateway devices is equal to the target configuration number, and further include:

[0015] If the number of successfully configured second gateway devices is less than the target configuration number, return to the step of receiving response information of at least one second gateway device and perform a loop operation until the number of successfully configured second gateway devices is equal to the target configuration number, and then save the current configuration result.

[0016] A further technical solution is that after obtaining the input configuration parameters, the method includes:

[0017] Set communication channel parameters;

[0018] Initializing a built-in transceiver module of the first gateway device based on the communication channel parameters;

[0019] Broadcasting a broadcast message to at least one second gateway device to be configured in the same area includes:

[0020] The transceiver module is used to periodically broadcast a broadcast message to at least one second gateway device to be configured in the same area within a preset interval.

[0021] A further technical solution is to obtain input configuration parameters, including:

[0022] Start the preset server;

[0023] The configuration parameters of the network server address, port, target configuration quantity of the second gateway device, and target configuration identifier are obtained from the interactive interface of the preset server.

[0024] In a second aspect, the present application provides a gateway configuration method, which is applied to a second gateway device, wherein the number of the second gateway device is at least one and the number of the first gateway device is 1, and the method includes:

[0025] Polling and waiting for a broadcast message broadcast by the first gateway device;

[0026] If a broadcast message broadcast by the first gateway device is received, the broadcast message is parsed to obtain parameters of the network server address, port, and target configuration identifier;

[0027] If the target configuration identifier is inconsistent with the initial identifier of the second gateway device, the network server address and port are saved, and the initial identifier is modified to the target configuration identifier;

[0028] Send its own device address or serial number to the first gateway device.

[0029] A further technical solution is that after sending its own device address or serial number to the first gateway device, the method further includes:

[0030] Waiting for response confirmation information sent by the first gateway device;

[0031] If the response confirmation information sent by the first gateway device is received, return to the step of "polling and waiting for the broadcast message broadcast by the first gateway device";

[0032] If the response confirmation information sent by the first gateway device is not received, return to the step of "sending its own device address or serial number to the first gateway device".

[0033] A further technical solution is that the initial identifier is the last configured identifier or the default identifier at the factory.

[0034] In a third aspect, the present application provides a gateway configuration device, the gateway configuration device comprising a unit for executing any one of the above methods.

[0035] In a fourth aspect, the present application provides a gateway configuration system, the gateway configuration system includes a memory and a processor, the memory is used to store program data, and the processor is used to execute the program data to implement the steps of any of the above methods.

[0036] In a fifth aspect, the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by a processor, it is used to implement the steps of any of the above methods.

[0037] The beneficial effect of the present application is: different from the prior art, the present application utilizes a first gateway device to simultaneously broadcast configuration parameters to at least one second gateway device to be configured in the same area. In this way, a single gateway can configure a single gateway, or a single gateway can configure multiple gateways in batches. Compared with the traditional method of configuring only one gateway at a time, the method of the present invention can configure multiple gateways at the same time, thereby improving the efficiency of gateway configuration.

[0038] Secondly, this application only needs to use a first gateway device to obtain the input configuration parameters, and compose the configuration parameters into a broadcast message. By broadcasting the configuration parameters, the configuration of multiple second gateway devices can be automatically completed, without the need for construction personnel to use USB data cables or network cables, laptops and other tools to perform tedious manual configuration processes, thereby improving the convenience of gateway configuration. In addition, by receiving the response information of the second gateway device to determine the number of devices that have been successfully configured, and judging whether the target configuration number has been reached, the configuration results can be automatically confirmed, avoiding errors and omissions in manual confirmation, and improving the accuracy and reliability of gateway configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work. Among them:

[0040] Figure 1 It is a flowchart of a first embodiment of a gateway configuration method provided by the present application applied to a first gateway device;

[0041] Figure 2 It is a flowchart of a first embodiment of the gateway configuration method provided by the present application applied to a second gateway device;

[0042] Figure 3 It is a schematic diagram of the configuration between the master gateway and the slave gateway in the gateway configuration method provided by this application;

[0043] Figure 4 It is a flow chart of the first gateway device in the gateway configuration method provided by the present application;

[0044] Figure 5 It is a flow chart of the second gateway device in the gateway configuration method provided by this application;

[0045] Figure 6 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0047] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0048] With the rise of smart cities, smart fire protection, smart agriculture and other fields, the Internet of Things plays a very important role. The Internet of Things architecture is mainly divided into three parts: device side, network server, and application server. The device side is divided into two parts: terminal and gateway. The terminal is used to collect various terminal data and then transmit it to the gateway side through LoRa wireless; the gateway is mainly used as a bridge between the terminal and the background server, receiving the terminal data through LoRa, and transmitting the received terminal data to the network server through wifi, Ethernet, 4G, etc. to achieve a closed loop.

[0049] The LoRaWAN (LoRa Wide Area Network) gateways currently on the market are usually configured by default to use the network server specified by the manufacturer when they leave the factory. However, in actual deployment, customers may need to configure the gateway to connect to other third-party network servers that support the LoRaWAN protocol, or private network servers developed by customers themselves, so a series of configurations need to be performed on the gateway, including setting the address, port, and data reporting interval of the target network server. Most existing configuration methods rely on USB data cables or network cables, and require construction workers to prepare laptops, host computer software, ladders and other tools for manual configuration.

[0050] However, the existing configuration method can only configure one gateway device at a time. If you want to speed up the installation progress, multiple people are required to perform the installation work at the same time, and each person needs to be equipped with a laptop and configuration tools, which is time-consuming and labor-intensive. In addition, due to factors such as the harsh environment and the uneven technical levels of construction workers, this manual configuration method can easily cause many inconveniences to the construction workers, resulting in very low installation efficiency.

[0051] Therefore, in order to solve the above problems, the present application provides a gateway configuration method, which can improve the efficiency and convenience of gateway configuration. Please refer to the following embodiments for details.

[0052] See also Figure 1 , Figure 1 1 is a flow chart of a first embodiment of a gateway configuration method provided by the present application applied to a first gateway device. The number of the first gateway device is 1, and the method includes:

[0053] Step 110: Obtain input configuration parameters.

[0054] The configuration parameters include network server address, port, target configuration quantity of the second gateway device (ie, quantity of slave gateways to be connected), update configuration identifier and other parameters.

[0055] Step 120: Combining the configuration parameters into a broadcast message.

[0056] Step 130: broadcast a broadcast message to at least one second gateway device to be configured in the same area.

[0057] Step 140: Receive response information from at least one second gateway device.

[0058] Step 150: Based on the response information, determine the number of successfully configured second gateway devices.

[0059] Step 160: Determine whether the number of successfully configured second gateway devices is equal to the target configuration number of second gateway devices.

[0060] Among them, the target configuration quantity of the second gateway device can be manually set according to actual conditions.

[0061] If the number of successfully configured second gateway devices is equal to the target configured number of second gateway devices, step 170 is executed.

[0062] Step 170: Save the current configuration result.

[0063] In this way, by utilizing the first gateway device to simultaneously broadcast configuration parameters to at least one second gateway device to be configured in the same area, it is possible to configure a single gateway to a single gateway, or to configure multiple gateways in batches by a single gateway. Compared with the traditional method of configuring only one gateway at a time, the method of the present invention can configure multiple gateways at the same time, thereby improving the efficiency of gateway configuration.

[0064] Secondly, this embodiment only needs to use one first gateway device to obtain the input configuration parameters, and compose the configuration parameters into a broadcast message. By broadcasting the configuration parameters, the configuration of multiple second gateway devices can be automatically completed, without the need for construction personnel to use USB data cables or network cables, laptops and other tools to perform tedious manual configuration processes, thereby improving the convenience of gateway configuration. In addition, by receiving the response information of the second gateway device to determine the number of devices that have been successfully configured, and judging whether the target configuration number has been reached, the configuration result can be automatically confirmed, avoiding errors and omissions in manual confirmation, and improving the accuracy and reliability of gateway configuration.

[0065] Refer to the second embodiment of the gateway configuration method provided by the present application. Applied to a first gateway device, the number of the first gateway device is 1, the method includes:

[0066] Step 210: Obtain input configuration parameters, wherein the configuration parameters include a target configuration quantity of the second gateway device.

[0067] Step 220: Combining the configuration parameters into a broadcast message.

[0068] Step 230: Broadcast a broadcast message to at least one second gateway device to be configured in the same area.

[0069] Step 240: Receive response information from at least one second gateway device.

[0070] Step 250: Based on the response information, determine the number of successfully configured second gateway devices.

[0071] Step 260: Determine whether the number of successfully configured second gateway devices is equal to the target configuration number of second gateway devices.

[0072] Step 270: If the number of successfully configured second gateway devices is less than the target configuration number, return to the step of receiving response information of at least one second gateway device to perform a loop operation, that is, return to step 240 until the number of successfully configured second gateway devices is equal to the target configuration number, and then save the current configuration result.

[0073] In this way, by utilizing the first gateway device to simultaneously broadcast configuration parameters to at least one second gateway device to be configured in the same area, it is possible to configure a single gateway to a single gateway, or to configure multiple gateways in batches by a single gateway. Compared with the traditional method of configuring only one gateway at a time, the method of the present invention can configure multiple gateways at the same time, thereby improving the efficiency of gateway configuration.

[0074] Secondly, this embodiment only needs to use one first gateway device to obtain the input configuration parameters, and compose the configuration parameters into a broadcast message. By broadcasting the configuration parameters, the configuration of multiple second gateway devices can be automatically completed, without the need for construction personnel to use USB data cables or network cables, laptops and other tools to perform tedious manual configuration processes, thereby improving the convenience of gateway configuration. In addition, by receiving the response information of the second gateway device to determine the number of devices that have been successfully configured, and judging whether the target configuration number has been reached, the configuration result can be automatically confirmed, avoiding errors and omissions in manual confirmation, and improving the accuracy and reliability of gateway configuration.

[0075] Refer to the third embodiment of the gateway configuration method provided in this application. Applied to a first gateway device, the number of the first gateway device is 1, the method includes:

[0076] Step 310: Obtain input configuration parameters, wherein the configuration parameters include a target configuration quantity of the second gateway device.

[0077] Wherein, step 310 may include the following:

[0078] Step 311: Start the preset server.

[0079] Step 312: Obtain configuration parameters of the network server address, port, target configuration quantity of the second gateway device, and target configuration identifier from the interactive interface of the preset server.

[0080] The preset server may be a service platform in various forms, such as a web server or other forms of servers.

[0081] Step 320: Set communication channel parameters.

[0082] Among them, communication channel parameters may include frequency, bandwidth, spreading factor, coding rate, preamble length, data rate, power, channel spacing and other parameters.

[0083] Among them, you can confirm the RF parameters fixed at the factory of the first gateway device, such as frequency, bandwidth, spreading factor (SF), coding rate (CR), etc., by consulting the device manual or contacting the device supplier, and find the location of each option on the interactive interface for confirmation or modification.

[0084] For example, find the frequency setting option in the interactive interface and confirm whether it is the factory-set frequency. If it is, there is no need to change the frequency. If not, change it to the factory-set frequency.

[0085] It should be noted that in order to ensure that the first gateway device and the second gateway device can communicate normally, the same radio frequency parameters need to be set for both.

[0086] Step 330: Initialize the built-in transceiver module of the first gateway device based on the communication channel parameters.

[0087] Among them, the transceiver module can be a LoRaWAN transceiver module.

[0088] Step 340: Combining the configuration parameters into a broadcast message.

[0089] Step 350: using the transceiver module to periodically broadcast a broadcast message to at least one second gateway device to be configured in the same area within a preset interval.

[0090] Among them, the preset interval time can be 8 seconds, 10 seconds, 12 seconds, etc., which can be set manually according to actual conditions, and this application does not limit it here.

[0091] Step 360: Receive response information from at least one second gateway device.

[0092] Step 370: Based on the response information, determine the number of successfully configured second gateway devices.

[0093] Step 380: Determine whether the number of successfully configured second gateway devices is equal to the target configuration number of second gateway devices.

[0094] Step 390: If the number of successfully configured second gateway devices is equal to the target configuration number of second gateway devices, the configuration result is saved.

[0095] In this way, by utilizing the first gateway device to simultaneously broadcast configuration parameters to at least one second gateway device to be configured in the same area, it is possible to configure a single gateway to a single gateway, or to configure multiple gateways in batches by a single gateway. Compared with the traditional method of configuring only one gateway at a time, the method of the present invention can configure multiple gateways at the same time, thereby improving the efficiency of gateway configuration.

[0096] Secondly, this embodiment only needs to use one first gateway device to obtain the input configuration parameters, and compose the configuration parameters into a broadcast message. By broadcasting the configuration parameters, the configuration of multiple second gateway devices can be automatically completed, without the need for construction personnel to use USB data cables or network cables, laptops and other tools to perform tedious manual configuration processes, thereby improving the convenience of gateway configuration. In addition, by receiving the response information of the second gateway device to determine the number of devices that have been successfully configured, and judging whether the target configuration number has been reached, the configuration result can be automatically confirmed, avoiding errors and omissions in manual confirmation, and improving the accuracy and reliability of gateway configuration.

[0097] Referring to the first embodiment of the gateway configuration method applied to the second gateway device provided in the present application, wherein the number of the second gateway devices is at least one and the number of the first gateway devices is 1, the method includes:

[0098] Step 101: polling and waiting for a broadcast message broadcast by a first gateway device.

[0099] Step 102: If a broadcast message broadcast by the first gateway device is received, the broadcast message is parsed to obtain parameters of a network server address, a port, and a target configuration identifier.

[0100] Step 103: If the target configuration identifier is inconsistent with the initial identifier of the second gateway device, the network server address and port are saved, and the initial identifier is modified to the target configuration identifier.

[0101] The initial identifier is the last configured identifier or the factory default identifier.

[0102] The initial identifier can be read from the configuration area. If the second gateway device is a factory-installed gateway, the read initial identifier is a factory-installed default identifier.

[0103] Step 104: Send its own device address or serial number to the first gateway device.

[0104] Referring to the second embodiment of the gateway configuration method applied to the second gateway device provided in the present application, wherein the number of the second gateway devices is at least one and the number of the first gateway devices is 1, the method includes:

[0105] Step 201: polling and waiting for a broadcast message broadcast by a first gateway device.

[0106] Step 202: If a broadcast message broadcast by the first gateway device is received, the broadcast message is parsed to obtain parameters of a network server address, a port, and a target configuration identifier.

[0107] After receiving the broadcast message broadcast by the first gateway device, the second gateway device may further detect the legitimacy of the broadcast message.

[0108] Step 203: If the target configuration identifier is inconsistent with the initial identifier of the second gateway device, the network server address and port are saved, and the initial identifier is modified to the target configuration identifier.

[0109] Step 204: Send its own device address or serial number to the first gateway device.

[0110] Step 205: Wait for response confirmation information sent by the first gateway device.

[0111] Step 206: If the response confirmation information sent by the first gateway device is received, return to the step of "polling and waiting for the broadcast message broadcast by the first gateway device", that is, return to step 201.

[0112] Step 207: If the response confirmation information sent by the first gateway device is not received, return to the step of "sending its own device address or serial number to the first gateway device", that is, return to step 204.

[0113] Based on the above embodiments and references Figure 3 The gateway configuration method provided in this application mainly includes the following processes:

[0114] 1) Configure a gateway as the master gateway (i.e., the first gateway device) and the gateway installed in a fixed location as the slave gateway (i.e., the second gateway device).

[0115] 2) The first gateway device uses the LoRa communication method to broadcast messages to the installed slave gateways (i.e., the second gateway device), and counts the number of successfully configured slave gateways.

[0116] The location of the second gateway device can be arbitrarily moved and placed by the on-site installer according to the actual on-site conditions, so that the broadcast signal of the main gateway can cover all the slave gateways.

[0117] The number of slave gateways may be one or more, as long as they are within the same cell range.

[0118] 3) After receiving the broadcast message sent by the main gateway, the slave gateway parses the broadcast message, extracts the address and port of the network server, and saves the parameters; at the same time, it sends a response message to the main gateway.

[0119] The response information may include the device address or serial number of the slave gateway itself, so as to facilitate statistics by the master gateway.

[0120] See also Figure 4 , exemplarily, the first gateway device mainly implements the following steps:

[0121] Step 01: Start the web server.

[0122] Among them, the web server is a preset server, which can provide an operable interactive interface for on-site installers or users.

[0123] Step 02: Set parameters such as network server address, number of gateways to be connected (T), and update configuration identifier.

[0124] That is, parameters such as the network server address, port, number of slave gateways to be connected, and update configuration identifier are obtained from the interactive interface of the web server.

[0125] Among them, parameters such as the network server address, port, number of slave gateways to be connected, and update configuration identifier are configuration parameters. The number of slave gateways to be connected is the target configuration number of the second gateway device, and the update configuration identifier is the target configuration identifier.

[0126] The number of slave gateways to be connected may be recorded as T, and T may be 1 or the number actually installed.

[0127] The configuration update flag is mainly used to determine whether the configuration needs to be updated from the gateway.

[0128] Step 03: Set the communication channel parameters.

[0129] The communication channel parameters include radio frequency parameters. To ensure that the master gateway and the slave gateway can communicate normally, the two gateways need to set the same radio frequency parameters.

[0130] Step 04: Power on the LoRaWAN transceiver module.

[0131] That is, the LoRaWAN transceiver module is initialized according to the set communication channel parameters, and the LoRaWAN transceiver module is started.

[0132] Step 05: Fill in the broadcast message.

[0133] That is, a broadcast message is constructed according to parameters such as the network server address, port, number of slave gateways to be connected, and update configuration identifier.

[0134] Step 06: Start the broadcast thread.

[0135] The broadcast message data may be sent once every t seconds. That is, within the preset interval t, the broadcast message is regularly broadcast to at least one second gateway device to be configured in the same area.

[0136] For example, t may preferably be set to 10s so that the broadcast thread is not affected by the response receiving process, thereby ensuring the communication quality.

[0137] Step 07: Wait to receive a response.

[0138] That is, wait for the response information to be returned from the gateway.

[0139] The response information may include the serial number or device address of the gateway itself.

[0140] Step 08: Send response confirmation.

[0141] That is, a response confirmation is sent to the slave gateway to notify the slave gateway that the configuration is completed.

[0142] Step 09: Count the number of successfully configured gateways (N).

[0143] The number of successfully configured slave gateways may be recorded as N.

[0144] Step 010: Determine whether N is equal to T.

[0145] That is, N is compared with T in step 2. If N is equal to T, it means that all slave gateways have been configured. At this time, step 11 is executed. If not, return to step 07.

[0146] Step 011: Save the results of this configuration.

[0147] See also Figure 5 , exemplarily, the second gateway device mainly implements the following steps:

[0148] Step 10: Get the last configuration ID.

[0149] Among them, the last configuration identifier can be read from the configuration area. If the gateway is a factory-installed gateway, the last identifier is the factory default identifier. The purpose of reading the configuration identifier is to determine whether to update parameters such as the network server address and port.

[0150] Step 11: Set the communication channel parameters.

[0151] Step 12: Power on the LoRaWAN Transceiver Module.

[0152] Among them, the LoRaWAN transceiver module can be initialized according to the communication channel parameters, and the LoRaWAN transceiver module can be started.

[0153] Step 13: Wait to receive the broadcast message.

[0154] That is, polling and waiting for broadcast message data.

[0155] Step 14: Determine whether a broadcast message is received.

[0156] If yes, go to step 15, if no, go back to step 13.

[0157] Step 15: Parse the broadcast message.

[0158] Among them, the main task is to detect the legitimacy of broadcast messages and extract parameters such as network server address, port, configuration update identifier, etc.

[0159] Step 16: Compare configuration identifiers.

[0160] The extracted configuration update identifier is compared with the last configuration identifier, and it is determined whether to update the configuration according to the comparison result, that is, step 17.

[0161] Step 17: Determine whether to update the configuration.

[0162] Step 18: Save the parameters.

[0163] That is to say, if the configuration update identifier is consistent with the last configuration identifier, execute step 18 to save the parameters of the network server address and port, and modify the last configuration identifier to the configuration identifier read by this broadcast message. If not, return to step 13 to continue waiting for receiving broadcast data.

[0164] Step 19: Send the response result.

[0165] That is, the serial number of the slave gateway is sent to the master gateway.

[0166] Step 20: Wait for response confirmation.

[0167] That is, wait for the response confirmation sent by the main gateway.

[0168] Step 21: Determine whether a response confirmation is received.

[0169] If yes, return to step 13, if no, return to step 19.

[0170] Among them, the above-mentioned first gateway device and the second gateway device can be LoRaWAN gateways. In this way, the present application can use a single gateway to configure a single or multiple LoRaWAN gateways, that is, to achieve fast, efficient, stable and secure access of a single or multiple LoRaWAN gateways to the network server, thereby improving the efficiency and convenience of gateway configuration, thereby solving the problems of low efficiency, cumbersome configuration and high cost of existing LoRaWAN gateway devices during on-site installation and debugging.

[0171] The present application also provides a gateway configuration device, and the gateway configuration device includes a unit for executing any one of the above method embodiments.

[0172] The present application also provides a gateway configuration system, which includes a memory and a processor, wherein the memory stores a computer program; the processor is used to implement the gateway configuration method provided by any one of the aforementioned method embodiments when executing the computer program.

[0173] See also Figure 6 , Figure 6 The structure of an embodiment of a computer-readable storage medium provided by the present application is shown in FIG. 7 . The computer-readable storage medium 70 is used to store a computer program 71. When the computer program 71 is executed by a processor, it is used to implement the following method steps:

[0174] Acquire input configuration parameters, wherein the configuration parameters include a target configuration quantity of the second gateway device;

[0175] Combining configuration parameters into broadcast messages;

[0176] Broadcasting a broadcast message to at least one second gateway device to be configured in the same area;

[0177] receiving response information of at least one second gateway device;

[0178] Based on the response information, determine the number of successfully configured second gateway devices;

[0179] Determining whether the number of successfully configured second gateway devices is equal to the target configuration number of second gateway devices;

[0180] If the number of successfully configured second gateway devices is equal to the target configuration number of second gateway devices, the current configuration result is saved.

[0181] It can be understood that when the computer program 71 is executed by the processor, it is also used to implement the technical solution of any embodiment of the present application.

[0182] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as two units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on two network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this embodiment.

[0184] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0185] If the integrated units in the above other embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0186] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A gateway configuration method, characterized in that: Applied to a first gateway device, wherein the number of the first gateway device is 1, the method includes: Acquire input configuration parameters, wherein the configuration parameters include a target configuration quantity of the second gateway device; Combining the configuration parameters into a broadcast message; Broadcasting the broadcast message to at least one second gateway device to be configured in the same area; Receiving response information of at least one of the second gateway devices; Based on the response information, determining the number of the second gateway devices that have been successfully configured; Determining whether the number of the second gateway devices that have been successfully configured is equal to the target configuration number of the second gateway devices; If the number of the second gateway devices that have been successfully configured is equal to the target configuration number of the second gateway devices, the current configuration result is saved.

2. The gateway configuration method according to claim 1, characterized in that: The determining whether the number of the second gateway devices that have been successfully configured is equal to the target configuration number also includes: If the number of successfully configured second gateway devices is less than the target configuration number, return to the step of receiving response information of at least one second gateway device and perform a loop operation until the number of successfully configured second gateway devices is equal to the target configuration number, and then save the configuration result.

3. The gateway configuration method according to claim 1, characterized in that: After obtaining the input configuration parameters, the method includes: Set communication channel parameters; Initializing a built-in transceiver module of the first gateway device based on the communication channel parameters; The broadcasting of the broadcast message to at least one second gateway device to be configured in the same area includes: The transceiver module is used to periodically broadcast the broadcast message to at least one second gateway device to be configured in the same area within a preset interval.

4. The gateway configuration method according to claim 1, characterized in that: The configuration parameters obtained as input include: Start the preset server; The configuration parameters of the network server address, port, target configuration quantity of the second gateway device, and target configuration identifier are obtained from the interactive interface of the preset server.

5. A gateway configuration method, characterized in that: Applied to a second gateway device, wherein the number of the second gateway device is at least one and the number of the first gateway device is 1, the method includes: Polling and waiting for a broadcast message broadcast by the first gateway device; If a broadcast message broadcast by the first gateway device is received, the broadcast message is parsed to obtain parameters of a network server address, a port, and a target configuration identifier; If the target configuration identifier is inconsistent with the initial identifier of the second gateway device, saving the network server address and the port, and modifying the initial identifier to the target configuration identifier; Send its own device address or serial number to the first gateway device.

6. The gateway configuration method according to claim 5, characterized in that: After sending the device address or serial number of the first gateway device, the method further includes: Waiting for response confirmation information sent by the first gateway device; If the response confirmation information sent by the first gateway device is received, return to the step of "polling and waiting for the broadcast message broadcast by the first gateway device"; If the response confirmation information sent by the first gateway device is not received, return to the step of "sending its own device address or serial number to the first gateway device".

7. The method for configuring a gateway according to claim 5, characterized in that: The initial identifier is the last configured identifier or the factory default identifier.

8. A gateway configuration device, characterized in that: The configuration device of the gateway comprises a unit for executing the method according to any one of claims 1-7.

9. A gateway configuration system, characterized in that: The configuration system of the gateway includes a memory and a processor, the memory is used to store program data, and the processor is used to execute the program data to implement the configuration method of the gateway as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program data, and when the program data is executed by a processor, it is used to implement the gateway configuration method according to any one of claims 1 to 7.