Gateway channel allocation method and related equipment based on Internet of Things system

By allocating channels to the central gateway in the Internet of Things system and determining a new central gateway based on the received broadcast information and allocating different channels, the problem of channel interference in the gateway cross area is solved and the reliability and efficiency of terminal communication are improved.

CN113873647BActive Publication Date: 2024-09-27BOE TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010623982.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-30
Publication Date
2024-09-27
Estimated Expiration
2040-06-30

AI Technical Summary

Technical Problem

In IoT systems, channel interference between multiple gateways leads to reduced reliability and efficiency of terminal communication. Especially in environments such as hospitals, when multiple terminals need to be covered, channel interference between gateways is unavoidable.

Method used

By determining the central gateway and allocating channels to it, sending broadcast instructions to the central gateway to broadcast on the channel, receiving broadcast information from other gateways and terminals, determining the new central gateway based on the information and allocating different channels to it, repeating this The process continues until channel allocation for all gateways is completed to avoid channel interference.

Benefits of technology

It effectively solves the problem of channel interference in the gateway cross area, so that the gateways around the central gateway do not share channels, which improves the channel allocation efficiency of the Internet of Things system and the reliability of terminal communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113873647B
    Figure CN113873647B
Patent Text Reader

Abstract

The present disclosure provides a gateway channel allocation method based on an Internet of Things system and related equipment, including: determining a central gateway and allocating a channel to the central gateway; sending a broadcast instruction to the central gateway so that the central gateway broadcasts on the channel; receiving broadcast information heard by other gateways and terminals in the Internet of Things system on the channel; determining a new central gateway based on the broadcast information, and allocating other channels different from the channel to the new central gateway; repeating the steps of sending a broadcast instruction to the central gateway to determining a new central gateway and allocating other channels different from the channel until the channel allocation of all gateways in the Internet of Things system is completed. The gateway channel allocation method based on an Internet of Things system and related equipment provided by the present disclosure can solve the channel interference problem between gateways to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of Internet of Things, and in particular to a gateway channel allocation method based on an Internet of Things system and related equipment. Background Art

[0002] In the IoT system, the terminal acts as the information collector and sends the collected information or other message content to the server through the gateway. The terminal and the gateway can use near-field wireless communication, such as 433M signal, 2.4G signal, etc. The gateway sends the information reported by the terminal to the server through a wired network or 4G, 5G signal, etc.

[0003] In the application of IoT terminals, such as hospital bedside card IoT terminals, the bedside card is located next to the bed and is used to display patient information. There will be multiple terminals in a ward. In a certain area, in order to ensure full coverage, there will be multiple gateways. Therefore, there will be channel interference between gateways, thereby reducing the reliability and effectiveness of terminal communication. Summary of the invention

[0004] In view of this, one of the objectives of the present disclosure is to propose a gateway channel allocation method based on an Internet of Things system and related devices to solve the above-mentioned problems.

[0005] Based on the above purpose, the embodiment of the present disclosure provides a gateway channel allocation method based on an Internet of Things system, including:

[0006] Determine a central gateway and allocate a channel to the central gateway;

[0007] Sending a broadcast instruction to the central gateway to enable the central gateway to broadcast on the channel;

[0008] Receiving broadcast information monitored by other gateways and terminals in the Internet of Things system on the channel;

[0009] Determine a new central gateway according to the broadcast information, and allocate other channels different from the channel to the new central gateway;

[0010] The steps of sending a broadcast instruction to the central gateway to determine a new central gateway and allocating other channels different from the channel are repeated until the channel allocation of all gateways in the Internet of Things system is completed.

[0011] Optionally, determining a new central gateway according to the broadcast information includes:

[0012] Determining whether there is broadcast information from the terminal and forwarded by other gateways in the broadcast information;

[0013] If there is no broadcast information from the terminal and forwarded by other gateways in the broadcast information, it is determined that the central gateway does not have an intersection area with other gateways, and a gateway is randomly selected from the remaining gateways in the Internet of Things system that are not assigned channels as a new central gateway;

[0014] If the broadcast information contains broadcast information from the terminal and forwarded by other gateways, it is determined that the central gateway has an intersection area with other gateways. Based on the broadcast information, the neighboring gateways around the central gateway are determined, and a new central gateway is determined from the neighboring gateways, and other channels different from the channel are allocated to the new central gateway.

[0015] Optionally, allocating other channels different from the channel to the new central gateway includes:

[0016] If the gateways to which channels have been allocated include a gateway having an intersection area with the new central gateway, the channel allocated to the new central gateway is different from the channel of the gateway having an intersection area with the new central gateway.

[0017] Optionally, the method further comprises:

[0018] If there is a gateway to which a channel has been allocated among the neighboring gateways around the central gateway, the gateway to which a channel has been allocated will not be determined as a new central gateway.

[0019] Optionally, determining a new central gateway from the neighboring gateways includes:

[0020] If there is a gateway with the strongest received signal strength among the neighboring gateways, then the gateway with the strongest received signal strength is determined as the new central gateway;

[0021] If there is no gateway with the strongest received signal strength among the neighboring gateways, randomly selecting a gateway from the neighboring gateways as a new central gateway;

[0022] The received signal strength is the signal strength of the broadcast of the central gateway monitored by other gateways.

[0023] Optionally, determining the gateway with the strongest received signal strength as the new central gateway includes:

[0024] If the number of the gateways with the strongest received signal strength is 1, determining the gateway with the strongest received signal strength as a new central gateway;

[0025] If the number of the gateways with the strongest received signal strength is more than 2, a gateway is randomly selected from the gateways with the strongest received signal strength as a new central gateway.

[0026] The present disclosure provides a server based on an Internet of Things system, including:

[0027] The transceiver unit is configured as follows:

[0028] Sending a broadcast instruction to the central gateway to enable the central gateway to broadcast on its assigned channel;

[0029] Receiving broadcast information monitored by other gateways and terminals in the Internet of Things system on the channel;

[0030] A control unit configured to:

[0031] Determine a central gateway and allocate a channel to the central gateway;

[0032] Determine a new central gateway according to the broadcast information, and allocate other channels different from the channel allocated to the central gateway to the new central gateway;

[0033] Among them, the transceiver unit repeatedly executes the steps of sending broadcast instructions to the central gateway and receiving broadcast information, and the control unit repeatedly executes the steps of determining the central gateway and allocating channels to the new central gateway until the channel allocation of all gateways in the Internet of Things system is completed.

[0034] Optionally, the control unit is configured as:

[0035] Determining whether there is broadcast information from the terminal and forwarded by other gateways in the broadcast information;

[0036] If there is no broadcast information from the terminal and forwarded by other gateways in the broadcast information, it is determined that the central gateway does not have an intersection area with other gateways, and a gateway is randomly selected from the remaining gateways in the Internet of Things system that are not assigned channels as a new central gateway;

[0037] If the broadcast information contains broadcast information from the terminal and forwarded by other gateways, it is determined that the central gateway has an intersection area with other gateways. Based on the broadcast information, the neighboring gateways around the central gateway are determined, and a new central gateway is determined from the neighboring gateways, and other channels different from the channel are allocated to the new central gateway.

[0038] Optionally, the control unit is configured as:

[0039] If the gateways to which channels have been allocated include a gateway having an intersection area with the new central gateway, the channel allocated to the new central gateway is different from the channel of the gateway having an intersection area with the new central gateway.

[0040] Optionally, the control unit is configured as:

[0041] If there is a gateway to which a channel has been allocated among the neighboring gateways around the central gateway, the gateway to which a channel has been allocated will not be determined as a new central gateway.

[0042] Optionally, the control unit is configured as:

[0043] If there is a gateway with the strongest received signal strength among the neighboring gateways, then the gateway with the strongest received signal strength is determined as the new central gateway;

[0044] If there is no gateway with the strongest received signal strength among the neighboring gateways, randomly selecting a gateway from the neighboring gateways as a new central gateway;

[0045] The received signal strength is the signal strength of the broadcast of the central gateway monitored by other gateways.

[0046] Optionally, the control unit is configured as:

[0047] If the number of the gateways with the strongest received signal strength is 1, determining the gateway with the strongest received signal strength as a new central gateway;

[0048] If the number of the gateways with the strongest received signal strength is more than 2, a gateway is randomly selected from the gateways with the strongest received signal strength as a new central gateway.

[0049] The present disclosure provides an Internet of Things system, including:

[0050] at least one terminal;

[0051] At least two gateways;

[0052] The server.

[0053] An embodiment of the present disclosure provides a computer non-transitory readable storage medium storing a computer program, wherein the computer program implements the steps of the method when executed by a processor.

[0054] From the above description, it can be seen that the gateway channel allocation method and related equipment based on the Internet of Things system provided by the embodiment of the present disclosure first allocate a channel to the central gateway and make the central gateway broadcast on the channel, then determine the new central gateway according to the received broadcast information of the monitoring channel and allocate other channels different from the channel to the new central gateway, and repeat the steps of sending instructions to the central gateway to determine the new central gateway and allocate other channels different from the channel until the channel allocation of all gateways in the Internet of Things system is completed, so that the gateways around the central gateway do not share the channel with the central gateway, thereby solving the channel interference problem in the intersection area of ​​the gateway. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure.

[0056] Figure 1 A schematic diagram of a flow chart of a gateway channel allocation method based on an Internet of Things system provided in an embodiment of the present disclosure;

[0057] Figure 2 A schematic diagram of a flow chart of an embodiment of determining a new central gateway in an embodiment of the present disclosure;

[0058] Figure 3A This is a schematic diagram of signal distribution when gateway B is used as a central gateway in an embodiment of the present disclosure;

[0059] Figure 3B This is a schematic diagram of signal distribution when gateway A is used as a central gateway after gateway B in one embodiment of the present disclosure;

[0060] Figure 3C This is a schematic diagram of signal distribution when gateway D is used as a central gateway after gateway A in an embodiment of the present disclosure;

[0061] Figure 3D This is a schematic diagram of signal distribution when gateway E is used as a central gateway after gateway D in an embodiment of the present disclosure;

[0062] Figure 3E This is a schematic diagram of signal distribution when gateway F is used as a central gateway after gateway E in an embodiment of the present disclosure;

[0063] Figure 3F This is a schematic diagram of signal distribution when gateway C is used as a central gateway after gateway F in an embodiment of the present disclosure;

[0064] Figure 4 A more specific schematic diagram of the electronic device hardware structure of the server provided in the embodiment of the present disclosure;

[0065] Figure 5 A schematic diagram of the structure of an Internet of Things system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0067] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0068] Figure 1 A schematic diagram of the flow of a gateway channel allocation method based on an Internet of Things system provided by an embodiment of the present disclosure is shown.

[0069] like Figure 1 As shown, the gateway channel allocation method based on the Internet of Things system is optionally applied to a server, and the method includes the following steps:

[0070] Step 102: Determine a central gateway and allocate a channel to the central gateway.

[0071] In this step, the first determined central gateway may be determined in any manner. An optional implementation is to randomly select a gateway in an Internet of Things system as the first determined central gateway.

[0072] In this step, the channel allocated to the first determined central gateway can be arbitrary, because no gateway has been assigned a channel at this time. For example, a channel can be randomly assigned to the first determined central gateway. For subsequent new central gateways, when allocating channels, it is necessary to consider that the channel allocated to the central gateway cannot be the same as the channel allocated to its adjacent gateways (that is, there is an intersection area between gateways).

[0073] Optionally, before allocating channels to each gateway in the Internet of Things system, the step of arranging the gateway and the terminal on site is also included. For example, the gateway is arranged at a suitable location in the place to be arranged (such as a hospital, school, factory, etc.) (for example, the gateway is arranged in each ward and corridor corner of the hospital, the gateway is arranged in each class and corridor corner of the school, the gateway is arranged in each assembly line and corridor corner of the factory, etc.), and the terminal is arranged at a suitable location in the place to be arranged (for example, the bedside card is arranged at the bedside of the bed, the class card is arranged at the door of the class, the assembly line worker card is arranged at each operating table of the assembly line, etc.).

[0074] Optionally, the step of allocating channels is completed before the Internet of Things system is run, mainly to allocate channels to all gateways in the Internet of Things system, and then each gateway works according to the allocated channel.

[0075] Step 104: Send a broadcast instruction to the central gateway to enable the central gateway to broadcast on the channel.

[0076] In this step, the central gateway is assigned a channel. At this time, a broadcast instruction is sent to the central gateway to make the central gateway broadcast on the assigned channel, and make other gateways and terminals in the Internet of Things system listen to the broadcast information of the central gateway on the channel assigned to the central gateway, so that other gateways and terminals can feedback the broadcast information they have listened to, so as to determine the adjacent gateways around the central gateway and the terminals in the intersection area.

[0077] Optionally, the central gateway broadcasts on the channel, and keeps listening for a fixed time, while other gateways keep listening on the channel and report the listening results to the server. During the central gateway broadcasting, the terminal also keeps listening, and forwards the central gateway broadcast information when the central gateway broadcast ends, with a random delay before sending.

[0078] Step 106: Receive broadcast information monitored by other gateways and terminals in the IoT system on the channel.

[0079] In this step, other gateways in the Internet of Things system feed back the broadcast information monitored on the channel to the server, and the terminal in the Internet of Things system forwards the broadcast information monitored on the channel to the server through other gateways within its signal range.

[0080] Afterwards, after receiving these broadcast information, the server determines the distribution of gateways and terminals near the central gateway based on these broadcast information. For example, if the broadcast information received by the server contains broadcast information of the central gateway on the channel monitored by other gateways, it means that there is an intersection area between the other gateways and the central gateway; if the broadcast information received by the server contains broadcast information of the central gateway on the channel monitored by the terminal through other gateways, it means that there is an intersection area between the central gateway and other gateways that forward terminal messages and there are terminals in the intersection area.

[0081] Optionally, the server may form a list A (as shown in Table 1 below) based on the received broadcast information, where the list A includes the central gateway, gateways around the central gateway, and signal strength RSSI, where x indicates that the gateway is a neighboring gateway determined by the terminal forwarding.

[0082] Table 1

[0083]

[0084] Step 108: Determine a new central gateway according to the broadcast information, and allocate other channels different from the channel to the new central gateway.

[0085] In this step, after receiving the broadcast information, the server determines the distribution of gateways and terminals near the central gateway based on the broadcast information, and then determines a new central gateway based on the distribution, and allocates other channels to the new central gateway that are different from the channel of the central gateway in step 102 to ensure that there is no signal interference between gateways.

[0086] In one or more embodiments of the present disclosure, Figure 2 As shown, determining a new central gateway according to the broadcast information may further include the following steps:

[0087] Step 202: Determine whether there is broadcast information from a terminal and forwarded by other gateways in the broadcast information.

[0088] In this step, the broadcast information from the terminal and forwarded by other gateways refers to the broadcast information forwarded by the terminal to the server through other gateways. Generally, in an IoT system, the gateway is responsible for communicating with the server, and the terminal and the server need to communicate through the gateway. Therefore, when the terminal monitors the broadcast of the central gateway on a certain channel, it is necessary to forward the broadcast information through the gateway. After the server receives the broadcast information, it can be determined that the source of the broadcast information is a certain terminal and is forwarded by a certain gateway. Therefore, if the broadcast of the central gateway on its channel is monitored by the terminal and forwarded by other gateways, it means that there is an intersection area between the central gateway and the other gateway and there is a terminal in the intersection area, and the terminal is prone to signal interference because it is in the intersection area of ​​the two gateways.

[0089] Optionally, the broadcast information generated by the terminal after monitoring the broadcast of the central gateway can carry information such as the terminal's ID or authentication code for identifying the terminal's identity, and then send it to other gateways. Other gateways that forward the broadcast information can also attach the other gateway's own ID or authentication code and other information to the broadcast information for identifying the gateway's identity. In this way, after receiving the broadcast information, the server can identify which gateway or terminal the broadcast information comes from based on the ID or authentication code and other information therein.

[0090] Step 204: If the broadcast information does not include the broadcast information from the terminal and forwarded by other gateways, it is determined that the central gateway does not have an intersection area with other gateways.

[0091] In this step, determining that the central gateway does not have an intersection area with other gateways is only for whether there is a terminal in the intersection area, not for all intersection areas. For example, although there is a signal intersection area between gateways, there is no terminal in the intersection area, and there is no problem of the gateway signal affecting the terminal signal. In this embodiment, such an intersection area is not considered.

[0092] Step 206: Randomly select a gateway from the remaining gateways to which channels are not allocated in the Internet of Things system as a new central gateway.

[0093] In this step, because the central gateway has no intersection area with other gateways, a gateway is randomly selected from the remaining gateways to which channels are not allocated in the Internet of Things system as a new central gateway.

[0094] Step 208: If the broadcast information includes broadcast information from the terminal and forwarded by other gateways, it is determined that the central gateway has an intersection area with other gateways.

[0095] Step 210: Determine neighboring gateways around the central gateway according to the broadcast information, and determine a new central gateway from the neighboring gateways.

[0096] In this step, the neighboring gateways refer to other gateways that monitor the broadcast of the central gateway and other gateways that do not monitor the broadcast of the central gateway but forward the broadcast information from the terminal.

[0097] As an optional embodiment, determining a new central gateway from the neighboring gateways includes:

[0098] If there is a gateway with the strongest received signal strength among the neighboring gateways, then the gateway with the strongest received signal strength is determined as the new central gateway;

[0099] If there is no gateway with the strongest received signal strength among the neighboring gateways (or there is no gateway that can determine the received signal strength), randomly selecting a gateway from the neighboring gateways as a new central gateway;

[0100] The received signal strength is the signal strength of the broadcast of the central gateway monitored by other gateways.

[0101] In this way, the gateway with the strongest signal is selected first, so that the gateway with the stronger signal is first assigned a different channel, ensuring better anti-interference performance.

[0102] In this embodiment, the received signal strength refers to the received signal strength of the central gateway's broadcast monitored by other gateways. Optionally, the received signal strength refers to the received signal strength indication (RSSI for short).

[0103] Optionally, determining the gateway with the strongest received signal strength as the new central gateway includes:

[0104] If the number of the gateways with the strongest received signal strength is 1, determining the gateway with the strongest received signal strength as a new central gateway;

[0105] If the number of the gateways with the strongest received signal strength is more than 2, a gateway is randomly selected from the gateways with the strongest received signal strength as a new central gateway.

[0106] In this way, the problem of determining the central gateway when there are multiple gateways with the strongest received signal strength is solved.

[0107] Step 212: Allocate other channels different from the channel to the new central gateway.

[0108] Optionally, allocating other channels different from the channel to the new central gateway includes:

[0109] If the gateways to which channels have been allocated include a gateway having an intersection area with the new central gateway, the channel allocated to the new central gateway is different from the channel of the gateway having an intersection area with the new central gateway.

[0110] In this way, signal interference between the new central gateway and a gateway having an overlapping area with the new central gateway among the gateways to which channels have been allocated is avoided.

[0111] Based on this embodiment, as long as the channels of the new central gateway and its adjacent allocated gateways are different, the channel allocation of all gateways can be completed according to this allocation method, and the channels between adjacent gateways are different, and there will be no signal interference. At the same time, under the premise of ensuring that the channels of the new central gateway and its adjacent allocated gateways are different, non-adjacent gateways can also be allocated the same channel, thereby saving the number of channel occupancy.

[0112] Optionally, the gateway channel allocation method based on the Internet of Things system further includes:

[0113] If there is a gateway to which a channel has been allocated among the neighboring gateways around the central gateway, the gateway to which a channel has been allocated will not be determined as the new central gateway, that is, the gateway to which a channel has been allocated will be excluded from the candidate range of the new central gateway to prevent secondary allocation.

[0114] In this embodiment, when there is an intersection area, a new central gateway is selected from the neighboring gateways of the central gateway and a different channel is allocated, so that the central gateway with neighboring gateways and the surrounding determined as the new central gateway use different channels, and the gateways that have been allocated channels are excluded from the candidate range of the new central gateway. According to such operation steps, after the loop is executed, all gateways in the Internet of Things system will be allocated channels different from their neighboring gateways. When there is no intersection area, the new central gateway is directly determined from the gateways that have not been allocated channels, so as to solve the channel allocation problem in the Internet of Things system where some gateways do not have an intersection area with other gateways.

[0115] Step 110: Repeat the steps of sending a broadcast instruction to the central gateway to determine a new central gateway and allocating other channels different from the channel until the channel allocation of all gateways in the Internet of Things system is completed.

[0116] Optionally, after all gateways have been assigned channels, a mapping table B (as shown in Table 2 below) is formed, and List B reflects the relationship between the gateways in actual physical locations. When assigning channels to gateways, the assigned channels cannot be the same as the channels of the corresponding central gateways in Mapping Table B. When all gateways have been assigned channels, the assignment process ends. When List A is an empty table, a gateway is re-assigned from the gateways that have not been assigned channels, and a channel is assigned to it, and this channel is required to meet the conditions of Mapping Table B.

[0117] Table 2

[0118]

[0119] The gateway channel allocation method based on the Internet of Things system provided in this embodiment first allocates a channel to the central gateway and enables the central gateway to broadcast on the channel, then determines a new central gateway based on the received broadcast information of the monitoring channel and allocates other channels different from the channel to the new central gateway, and repeatedly executes the steps of sending instructions to the central gateway to determine the new central gateway and allocate other channels different from the channel until the channel allocation of all gateways in the Internet of Things system is completed, so that the gateways around the central gateway do not share the channel with the central gateway, thereby solving the channel interference problem in the intersection area of ​​the gateway.

[0120] One or more embodiments of the present disclosure provide a gateway channel allocation method based on an Internet of Things system, which controls the gateway through a server and analyzes data reported by the gateway and the terminal, so that the gateways in the interference intersection area are placed in different channels, thereby implementing channel allocation and avoiding signal interference.

[0121] The following is a more detailed example of an implementation of the method for allocating gateway channels based on the Internet of Things system provided by one or more embodiments of the present disclosure.

[0122] FIG. 3A to FIG. 3F The square in the figure represents the physical area, and the dotted circle represents the coverage of the gateway signal. There may be overlap in coverage between different gateways.

[0123] See also Figure 3A Gateway B is the first central gateway and is assigned channel 1. At this time, each gateway in the IoT system reports the broadcast information of the central gateway and the broadcast information forwarded by the terminal. Gateway ACE forms list A1 (see Table 3-1 below) and mapping table B1 (see Table 3-2 below).

[0124] Table 3-1

[0125]

[0126] Table 3-2

[0127]

[0128] See also Figure 3B , selects gateway A with the strongest RSSI in list A1 and allocates available channel 2 to it. Then gateway A broadcasts as the new central gateway, and other gateways report the broadcast information of the new central gateway (gateway A) and the broadcast information forwarded by the terminal. In the information reported by gateways B and D, there are terminals in the intersection area of ​​D and A, and list A2 is formed (see Table 4-1 below) and mapping table B1 is updated to mapping table B2 (see Table 4-3 below). Since gateway B with the strongest RSSI has been allocated a channel, gateway B is removed from list A2, leaving gateway D, forming list A2' (see Table 4-2 below).

[0129] Table 4-1

[0130]

[0131] Table 4-2

[0132] Central Gateway Neighboring Gateway RSSI Gateway A Gateway D x

[0133] Table 4-3

[0134]

[0135] See also Figure 3C , select to allocate a channel to gateway D in list A2', and consider the situation of the channels that have been allocated in mapping table B2 when allocating channels to gateway D. From the established mapping table B2, it can be known that gateway D is a neighboring gateway of gateway A and cannot have the same channel as gateway A, but there is no intersection area between gateway D and gateway B, so the channel of gateway D can be the same as gateway B, and channel 1 can be allocated to gateway D (of course, channel 3 can also be allocated in sequence, but in the case of allocating channel 1, the number of channels can be saved). Then gateway D broadcasts on channel 1, and other gateways report the broadcast information of the new central gateway (gateway D) monitored and the broadcast information forwarded by the terminal. In the information reported by gateways A and E, there are terminals in the intersection area of ​​gateways A, E and D, and accordingly constitute list A3 (see Table 5-1 below) and update mapping table B2 to mapping table B3 (see Table 5-3 below). Since gateway A has already allocated a channel, gateway A is removed from list A3, and gateway E is left, constituting list A3' (see Table 5-2 below).

[0136] Table 5-1

[0137]

[0138] Table 5-2

[0139] Central Gateway Neighboring Gateway RSSI Gateway D Gateway E x

[0140] Table 5-3

[0141]

[0142] See also Figure 3D , select to assign a channel to gateway E in list A3'. Gateway E exists in mapping table B3. Gateway E is a neighboring gateway of gateways B and D, and its channel cannot be the same as that of gateways B and D. Therefore, the channel that can be assigned to gateway E is 2 (of course, channel 3 or channel 4 can also be assigned sequentially, but in the case of assigning channel 2, the number of channels can be saved). Then gateway E broadcasts on channel 2, and other gateways report the broadcast information of the new central gateway (gateway E) and the broadcast information forwarded by the terminal. In the information reported by gateways B, D, and F, there are terminals in the intersection area between gateways B, D, F and gateway E, and accordingly, list A4 is formed (see Table 6-1 below) and mapping table B3 is updated to mapping table B4 (see Table 6-3 below). Since gateways B and D have already assigned channels, gateways B and D are removed from list A4, leaving gateway F, forming list A4' (see Table 6-2 below).

[0143] Table 6-1

[0144]

[0145] Table 6-2

[0146] Central Gateway Neighboring Gateway RSSI Gateway E Gateway F x

[0147] Table 6-3

[0148]

[0149] See also Figure 3E, select to assign a channel to gateway F in list A4'. Gateway F exists in mapping table B4. Gateway F is a neighboring gateway of gateway E and cannot have the same channel as gateway E. Therefore, the channel assigned to gateway F is 1 (of course, channels 3, 4, and 5 can also be assigned in sequence, but in the case of assigning channel 1, the number of channels can be saved). Then gateway F broadcasts on channel 1, and other gateways report the broadcast information of the new central gateway (gateway F) and the broadcast information forwarded by the terminal. In the information reported by gateways C and E, there are terminals in the intersection area of ​​gateways C, E and gateway F, and accordingly, list A5 is formed (see Table 7-1 below) and mapping table B4 is updated to mapping table B5 (see Table 7-3 below). Since gateway E has been assigned a channel, gateway E is removed from list A5, leaving gateway C, forming list A5' (see Table 7-2 below).

[0150] Table 7-1

[0151]

[0152] Table 7-2

[0153] Central Gateway Neighboring Gateway RSSI Gateway F Gateway C x

[0154] Table 7-3

[0155]

[0156] See also Figure 3F , select to assign a channel to gateway C in list A5'. Gateway C exists in mapping table B5. Gateway C is a neighboring gateway of gateways F and B, and its channel cannot be the same as that of gateways F and B. Therefore, channel 2 can be assigned to gateway C (of course, channels 3, 4, 5, and 6 can also be assigned in sequence, but in the case of assigning channel 2, the number of channels can be saved). Then gateway C broadcasts on channel 2, and other gateways report the broadcast information of the new central gateway (gateway C) and the broadcast information forwarded by the terminal. In the information reported by gateways B and F, there are terminals in the intersection area of ​​gateways B, F and gateway C, and accordingly, list A6 is formed (see Table 8-1 below) and mapping table B5 is updated to mapping table B6 (see Table 8-3 below). Since gateways B and F have already been assigned channels, gateways B and F are removed from list A5 to form list A6' (see Table 8-2 below).

[0157] Table 8-1

[0158]

[0159] Table 8-2

[0160] Central Gateway Neighboring Gateway RSSI Gateway C —— ——

[0161] Table 8-3

[0162]

[0163] At this point, the gateway channel allocation is complete.

[0164] It should be noted that, in the above embodiment, under the premise of allocating different channels to gateways in the intersection area, the same channel can be allocated to gateways in the non-intersection area, but this does not mean that this is the only implementation method. It can be known that such an implementation method is only for the consideration of saving the number of channels, but in other embodiments, the allocation of channels can also be allocated in sequence, for example, in the above embodiment, the mapping table B6 can be as shown in Table 9 below.

[0165] Table 9

[0166]

[0167]

[0168] It should be noted that the method of one or more embodiments of the present disclosure may be performed by a single device, such as a computer or server. The method of this embodiment may also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of one or more embodiments of the present specification, and the multiple devices may interact with each other to complete the described method.

[0169] One or more embodiments of the present disclosure also provide a server based on the Internet of Things system.

[0170] The server based on the Internet of Things system includes:

[0171] The transceiver unit is configured as follows:

[0172] Sending a broadcast instruction to the central gateway to enable the central gateway to broadcast on its assigned channel;

[0173] Receiving broadcast information monitored by other gateways and terminals in the Internet of Things system on the channel;

[0174] A control unit configured to:

[0175] Determine a central gateway and allocate a channel to the central gateway;

[0176] Determine a new central gateway according to the broadcast information, and allocate other channels different from the channel allocated to the central gateway to the new central gateway;

[0177] Among them, the transceiver unit repeatedly executes the steps of sending broadcast instructions to the central gateway and receiving broadcast information, and the control unit repeatedly executes the steps of determining the central gateway and allocating channels to the new central gateway until the channel allocation of all gateways in the Internet of Things system is completed.

[0178] Optionally, the control unit is configured as:

[0179] Determining whether there is broadcast information from the terminal and forwarded by other gateways in the broadcast information;

[0180] If there is no broadcast information from the terminal and forwarded by other gateways in the broadcast information, it is determined that the central gateway does not have an intersection area with other gateways, and a gateway is randomly selected from the remaining gateways in the Internet of Things system that are not assigned channels as a new central gateway;

[0181] If the broadcast information contains broadcast information from the terminal and forwarded by other gateways, it is determined that the central gateway has an intersection area with other gateways. Based on the broadcast information, the neighboring gateways around the central gateway are determined, and a new central gateway is determined from the neighboring gateways, and other channels different from the channel are allocated to the new central gateway.

[0182] Optionally, the control unit is configured as:

[0183] If the gateways to which channels have been allocated include a gateway having an intersection area with the new central gateway, the channel allocated to the new central gateway is different from the channel of the gateway having an intersection area with the new central gateway.

[0184] Optionally, the control unit is configured as:

[0185] If there is a gateway to which a channel has been allocated among the neighboring gateways around the central gateway, the gateway to which a channel has been allocated will not be determined as a new central gateway.

[0186] Optionally, the control unit is configured as:

[0187] If there is a gateway with the strongest received signal strength among the neighboring gateways, then the gateway with the strongest received signal strength is determined as the new central gateway;

[0188] If there is no gateway with the strongest received signal strength among the neighboring gateways, randomly selecting a gateway from the neighboring gateways as a new central gateway;

[0189] The received signal strength is the signal strength of the broadcast of the central gateway monitored by other gateways.

[0190] Optionally, the control unit is configured as:

[0191] If the number of the gateways with the strongest received signal strength is 1, determining the gateway with the strongest received signal strength as a new central gateway;

[0192] If the number of the gateways with the strongest received signal strength is more than 2, a gateway is randomly selected from the gateways with the strongest received signal strength as a new central gateway.

[0193] One or more embodiments of the present disclosure further provide another embodiment of a server based on an Internet of Things system. Figure 4 A more specific electronic device hardware structure diagram of the server provided in this embodiment is shown, and the server may include: a processor 301 (control unit), a memory 302, an input / output interface 303, a communication interface 304, and a bus 305. The processor 301, the memory 302, the input / output interface 303, and the communication interface 304 are connected to each other in communication within the device through the bus 305.

[0194] The processor 301 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0195] The memory 302 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 302 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 302 and called and executed by the processor 301.

[0196] The input / output interface 303 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.

[0197] The communication interface 304 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0198] The bus 305 comprises a pathway for transmitting information between the various components of the device (eg, the processor 301 , the memory 302 , the input / output interface 303 , and the communication interface 304 ).

[0199] It should be noted that, although the above device only shows the processor 401, the memory 402, the input / output interface 303, the communication interface 304 and the bus 305, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0200] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0201] The server in the above embodiment is used to implement the corresponding method in the above embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0202] like Figure 5 As shown, one or more embodiments of the present disclosure further provide an Internet of Things system, including:

[0203] at least one terminal;

[0204] At least two gateways;

[0205] The server.

[0206] Alternatively, if Figure 5 As shown, in the IoT system, a gateway can govern several terminals, each terminal reports information to the corresponding gateway, and the gateway forwards the information to the server. In order to avoid channel interference in the intersection area, the gateways involved in the intersection area are allocated to different channels, so that the terminal can access the gateway according to the signal strength after channel scanning.

[0207] The embodiment of the present disclosure provides a non-transitory computer storage medium, which stores computer executable instructions, and the computer executable instructions can execute the processing method of the list item operation in any of the above method embodiments. The embodiment of the non-transitory computer storage medium has the same or similar technical effect as any of the above method embodiments.

[0208] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. The technical effect of the embodiment of the computer program is the same or similar to that of any of the above-mentioned method embodiments.

[0209] In addition, typically, the devices and equipment described in the present disclosure may be various electronic terminal devices, such as mobile phones, personal digital assistants (PDAs), tablet computers (PADs), smart TVs, etc., or large terminal devices, such as servers, etc. Therefore, the protection scope of the present disclosure should not be limited to a specific type of device or equipment. The client described in the present disclosure may be applied to any of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of the two.

[0210] In addition, the method according to the present disclosure may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method of the present disclosure are performed.

[0211] In addition, the above method steps and system units may also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.

[0212] In addition, it should be understood that the computer-readable storage medium (e.g., memory) described herein can be a volatile memory or a non-volatile memory, or can include both a volatile memory and a non-volatile memory. As an example and not by way of limitation, a non-volatile memory can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. A volatile memory can include a random access memory (RAM), which can act as an external cache memory. As an example and not by way of limitation, RAM can be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.

[0213] It will also be appreciated by those skilled in the art that the various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given of the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on the specific application and the design constraints imposed on the entire system. Those skilled in the art can implement the described functions in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the scope of the present disclosure.

[0214] The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein may be implemented or executed using the following components designed to perform the functions described herein: a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.

[0215] The step of the method or algorithm described in conjunction with the disclosure here can be directly included in hardware, in a software module executed by a processor, or in a combination of the two. The software module can reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or a storage medium of any other form known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium or write information to the storage medium. In an alternative, the storage medium can be integrated with the processor. The processor and the storage medium can reside in an ASIC. The ASIC can reside in a user terminal. In an alternative, the processor and the storage medium can reside in a user terminal as discrete components.

[0216] In one or more exemplary designs, the functions can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions can be stored on or transmitted by computer-readable media as one or more instructions or codes. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transmit a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special computer. As an example and not limiting, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of instructions or data structures and can be accessed by a general or special computer or a general or special processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwaves are used to send software from a website, server or other remote source, the above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwaves are all included in the definition of the medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0217] The exemplary embodiments disclosed herein are disclosed, but it should be noted that various changes and modifications may be made without departing from the scope of the present disclosure as defined by the claims. The functions, steps, and / or actions of the method claims according to the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although the elements of the present disclosure may be described or claimed in individual form, a plurality may also be envisioned unless expressly limited to the singular.

[0218] It should be understood that, as used herein, the singular forms "a", "an", "the" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the associated listed items.

[0219] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.

[0220] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0221] A person of ordinary skill in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples; under the concept of the embodiments of the present disclosure, the technical features in the above embodiments or different embodiments may also be combined, and there are many other variations of different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure shall be included in the protection scope of the embodiments of the present disclosure.

Claims

1. A gateway channel allocation method based on an Internet of Things system, comprising: Determine a central gateway and allocate a channel to the central gateway; Sending a broadcast instruction to the central gateway to enable the central gateway to broadcast on the channel; Receiving broadcast information monitored by other gateways and terminals in the Internet of Things system on the channel; Determine a new central gateway according to the broadcast information, and allocate other channels different from the channel to the new central gateway; Repeat the steps of sending a broadcast instruction to the central gateway to determine a new central gateway and allocating other channels different from the channel until the channel allocation of all gateways in the Internet of Things system is completed; Wherein, determining a new central gateway according to the broadcast information includes: Determining whether there is broadcast information from the terminal and forwarded by other gateways in the broadcast information; If there is no broadcast information from the terminal and forwarded by other gateways in the broadcast information, it is determined that the central gateway does not have an intersection area with other gateways, and a gateway is randomly selected from the remaining gateways in the Internet of Things system that are not assigned channels as a new central gateway; If the broadcast information contains broadcast information from the terminal and forwarded by other gateways, it is determined that the central gateway has an intersection area with other gateways. Based on the broadcast information, the neighboring gateways around the central gateway are determined, and a new central gateway is determined from the neighboring gateways, and other channels different from the channel are allocated to the new central gateway.

2. The method according to claim 1, wherein: Allocating other channels different from the channel to the new central gateway includes: If the gateways to which channels have been allocated include a gateway having an intersection area with the new central gateway, the channel allocated to the new central gateway is different from the channel of the gateway having an intersection area with the new central gateway.

3. The method according to claim 1, wherein: The method further comprises: If there is a gateway to which a channel has been allocated among the neighboring gateways around the central gateway, the gateway to which a channel has been allocated will not be determined as a new central gateway.

4. The method according to claim 1, wherein: Determining a new central gateway from the neighboring gateways includes: If there is a gateway with the strongest received signal strength among the neighboring gateways, then the gateway with the strongest received signal strength is determined as the new central gateway; If there is no gateway with the strongest received signal strength among the neighboring gateways, randomly selecting a gateway from the neighboring gateways as a new central gateway; The received signal strength is the signal strength of the broadcast of the central gateway monitored by other gateways.

5. The method according to claim 4, wherein: Determining the gateway with the strongest received signal strength as a new central gateway includes: If the number of the gateways with the strongest received signal strength is 1, determining the gateway with the strongest received signal strength as a new central gateway; If the number of the gateways with the strongest received signal strength is more than 2, a gateway is randomly selected from the gateways with the strongest received signal strength as a new central gateway.

6. A server based on an Internet of Things system, comprising: The transceiver unit is configured as follows: Sending a broadcast instruction to the central gateway to enable the central gateway to broadcast on its assigned channel; Receiving broadcast information monitored by other gateways and terminals in the Internet of Things system on the channel; A control unit configured to: Determine a central gateway and allocate a channel to the central gateway; Determine a new central gateway according to the broadcast information, and allocate a channel different from the channel allocated to the central gateway to the new central gateway; The transceiver unit repeatedly executes the steps of sending a broadcast instruction to the central gateway and receiving broadcast information, and the control unit repeatedly executes the steps of determining the central gateway and allocating a channel to a new central gateway until the channel allocation of all gateways in the Internet of Things system is completed; Wherein, the control unit is configured as follows: Determining whether there is broadcast information from the terminal and forwarded by other gateways in the broadcast information; If there is no broadcast information from the terminal and forwarded by other gateways in the broadcast information, it is determined that the central gateway does not have an intersection area with other gateways, and a gateway is randomly selected from the remaining gateways in the Internet of Things system that are not assigned channels as a new central gateway; If the broadcast information contains broadcast information from the terminal and forwarded by other gateways, it is determined that the central gateway has an intersection area with other gateways. Based on the broadcast information, the neighboring gateways around the central gateway are determined, and a new central gateway is determined from the neighboring gateways, and other channels different from the channel are allocated to the new central gateway.

7. The server according to claim 6, wherein: The control unit is configured as follows: If the gateways to which channels have been allocated include a gateway having an intersection area with the new central gateway, the channel allocated to the new central gateway is different from the channel of the gateway having an intersection area with the new central gateway.

8. The server according to claim 6, wherein: The control unit is configured as follows: If there is a gateway to which a channel has been allocated among the neighboring gateways around the central gateway, the gateway to which a channel has been allocated will not be determined as a new central gateway.

9. The server according to claim 6, wherein: The control unit is configured as follows: If there is a gateway with the strongest received signal strength among the neighboring gateways, then the gateway with the strongest received signal strength is determined as the new central gateway; If there is no gateway with the strongest received signal strength among the neighboring gateways, randomly selecting a gateway from the neighboring gateways as a new central gateway; The received signal strength is the signal strength of the broadcast of the central gateway monitored by other gateways.

10. The server according to claim 9, wherein: The control unit is configured as follows: If the number of the gateways with the strongest received signal strength is 1, determining the gateway with the strongest received signal strength as a new central gateway; If the number of the gateways with the strongest received signal strength is more than 2, a gateway is randomly selected from the gateways with the strongest received signal strength as a new central gateway.

11. An Internet of Things system, comprising: at least one terminal; At least two gateways; A server as claimed in any one of claims 6 to 10.

12. A computer non-transitory readable storage medium storing a computer program, wherein: The computer program implements the steps of the method according to any one of claims 1 to 5 when executed by a processor.