Channel selection method and system, electronic equipment, chip system and program product

By using Bluetooth modules between node gateways of WiFi mesh networks for noise floor information monitoring and broadcasting, selecting the optimal channel in real time, solving the problems of channel selection delay and slow response speed in the prior art, improving the performance and stability of the network sex.

CN119485446APending Publication Date: 2025-02-18SHENZHEN MINEW TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411550602.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing WiFi mesh network has problems of latency and slow response speed during channel selection, resulting in poor network performance.

Method used

通过在节点网关之间使用蓝牙模块进行底噪信息的实时监测和广播,计算每个待选信道的底噪评分,选择满足预设阈值或最低评分的信道作为目标信道,以减少信道选择的延迟。

Benefits of technology

It realizes fast response to channel selection, improves the network's response efficiency and dynamic adaptability, reduces latency, and enhances the stability and performance of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485446A_ABST
    Figure CN119485446A_ABST
Patent Text Reader

Abstract

The invention provides a channel selection method and system, electronic equipment, a chip system and a program product. Relates to the technical field of communication. The method comprises the following steps: scanning a to-be-selected channel based on a first Bluetooth module to obtain first background noise information of the to-be-selected channel; based on the first Bluetooth module, receiving second background noise information of the to-be-selected channel broadcasted by a second node gateway, the second background noise information being background noise information scanned and broadcasted by the second node gateway based on a configured second Bluetooth module; according to the first background noise information and the second background noise information, determining a to-be-selected channel of which the background noise information satisfies a background noise condition as a first target channel, the first target channel being used for establishing networking communication; according to the embodiment of the invention, the delay of channel selection is reduced, and the response efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a channel selection method, system, electronic device, chip system and program product. Background Art

[0002] The wireless mesh network WiFi mesh forms a wide coverage, stable and reliable network structure through the interconnection between multiple nodes. Due to the wide coverage of WiFi mesh network, the performance is not good if it relies on the channel selected by a single gateway and the manually specified channel.

[0003] In the related art, the network data is transmitted through the scanned measurement channel to perform channel selection; during the channel scanning and data transmission process, there may be multiple data exchanges, and there are delays when selecting and switching channels, and the response speed is slow. Summary of the invention

[0004] According to various embodiments of the present application, a channel selection method, system, electronic device, chip system and program product are provided, which can reduce the delay of channel selection and improve response efficiency.

[0005] In a first aspect, the present application provides a channel selection method, the method comprising:

[0006] Based on the first Bluetooth module, scan the candidate channel to obtain the first background noise information of the candidate channel; based on the first Bluetooth module, receive the second background noise information of the candidate channel broadcasted by the second node gateway, the second background noise information is the background noise information scanned and broadcasted by the second node gateway based on the configured second Bluetooth module; according to the first background noise information and the second background noise information, determine that the candidate channel whose background noise information meets the background noise condition is the first target channel, and the first target channel is used to establish networking communication.

[0007] The noise floor condition is satisfied when the noise floor score calculated based on the first noise floor information and the second noise floor information is less than or equal to a preset noise floor threshold, or the noise floor score is the lowest.

[0008] Through the above method, each node gateway in the network performs channel scanning based on the Bluetooth module, and broadcasts and receives background noise information and channel information based on the Bluetooth module, so that the transmission of background noise information and channel information is more real-time and the delay is reduced; when selecting a channel, it can respond more quickly, improve the response efficiency and the dynamic adaptability of the network; it has strong ease of use and practicality.

[0009] In a possible implementation manner of the first aspect, the method further includes:

[0010] Based on the first Bluetooth module, configuration information broadcasted by the second node gateway based on the second Bluetooth module is obtained, where the configuration information includes identification information of the second node gateway; based on the identification information, second background noise information of all second node gateways in the network is determined to be received.

[0011] In a possible implementation manner of the first aspect, after determining that a candidate channel whose background noise information satisfies a background noise condition is the first target channel, the method further includes:

[0012] Based on the first Bluetooth module, the channel information of the first target channel is broadcast to the second node gateway; the channel information of the first target channel is used to notify the second node gateway to access the network based on the first target channel; or, the channel information of the first target channel is used to instruct the second node gateway to forward the channel information of the first target channel to the third node gateway to notify the third node gateway to access the network based on the first target channel; wherein the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0013] In a possible implementation manner of the first aspect, the method includes:

[0014] When the background noise information of the first target channel does not meet the background noise condition, the third background noise information of the selected channel is rescanned based on the first Bluetooth module, and the third background noise information and channel update information are broadcast; the fourth background noise information broadcasted by the second node gateway is received based on the first Bluetooth module; the fourth background noise information is the background noise information scanned and broadcasted by the second node gateway based on the second Bluetooth module; according to the third background noise information and the fourth background noise information, the first target channel is updated to the second target channel; the background noise information of the second target channel meets the background noise condition.

[0015] In a possible implementation manner of the first aspect, the method further includes:

[0016] When the channel update information broadcast by the second node gateway is received based on the first Bluetooth module, the fifth background noise information scanned is broadcast to the second node gateway; the third target channel broadcast by the second node gateway based on the second Bluetooth module is received, and the network is accessed based on the third target channel; wherein the third target channel is determined by the second node gateway based on the scanned sixth background noise information and the received fifth background noise information, and the background noise information of the third target channel meets the background noise condition.

[0017] In a possible implementation manner of the first aspect, the method further includes:

[0018] Based on the first Bluetooth module, the second background noise information forwarded by the second node gateway is received; the second background noise information forwarded by the second node gateway is scanned and broadcast by the third node gateway; wherein the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0019] In a possible implementation manner of the first aspect, determining, according to the first noise floor information and the second noise floor information, a candidate channel whose noise floor information satisfies a noise floor condition as a first target channel includes:

[0020] According to the first background noise information and the second background noise information, a background noise score of each node gateway in the network corresponding to each candidate channel is calculated; a candidate channel with a background noise score less than or equal to a background noise threshold is determined as a first target channel; or, a candidate channel with the lowest background noise score is used as a target channel; wherein satisfying the background noise condition includes that the background noise score is less than or equal to the background noise threshold, or the background noise score is a minimum value.

[0021] In a second aspect, the present application provides a channel selection method, which is applied to a second node gateway, where the second node gateway is configured with a second Bluetooth module; the method comprises:

[0022] Scan and broadcast the second background noise information of the selected channel based on the second Bluetooth module; receive the channel information of the first target channel sent by the first node gateway; the channel information of the first target channel is determined by the first node gateway based on the first background noise information and the second background noise information, and the first background noise information is obtained by the first node gateway based on scanning the selected signal by the first Bluetooth module; the background noise information of the first target channel meets the background noise condition; based on the first target channel, access the network.

[0023] In a possible implementation manner of the second aspect, the method further includes:

[0024] Receive the second background noise information scanned and broadcast by the third node gateway based on the Bluetooth module, and forward the second background noise information of the third node gateway to the first node gateway; and / or forward the channel information of the first target channel broadcast by the first node gateway to the third node gateway; wherein the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0025] In a third aspect, the present application provides a channel selection system, which includes a first node gateway and multiple second node gateways, the first node gateway is configured with a first Bluetooth module, and the second node gateway is configured with a second Bluetooth module; the first node gateway is used to scan the to-be-selected channel based on the first Bluetooth module to obtain the first background noise information of the to-be-selected channel; the second node gateway is used to scan and broadcast the second background noise information of the to-be-selected channel based on the second Bluetooth module; the first node gateway is also used to receive the second background noise information broadcasted by the second node gateway based on the first Bluetooth module; the first node gateway is also used to determine, based on the first background noise information and the second background noise information, that the to-be-selected channel that meets the background noise condition is the first target channel, and the first target channel is used to establish networking communication.

[0026] In a fourth aspect, the present application provides a channel selection device, the device comprising:

[0027] A first scanning unit, configured to scan a to-be-selected channel based on a first Bluetooth module to obtain first background noise information of the to-be-selected channel;

[0028] A first receiving unit is used to receive, based on the first Bluetooth module, second background noise information of a selected channel broadcasted by the second node gateway, where the second background noise information is background noise information scanned and broadcasted by the second node gateway based on a configured second Bluetooth module;

[0029] The channel selection unit is used to determine, according to the first background noise information and the second background noise information, a candidate channel whose background noise information meets the background noise condition as a first target channel, and the first target channel is used to establish networking communication.

[0030] In a fifth aspect, the present application provides a channel selection device, the device comprising:

[0031] A second scanning unit, configured to scan and broadcast second background noise information of a to-be-selected channel based on a second Bluetooth module;

[0032] The second receiving unit is used to receive the channel information of the first target channel sent by the first node gateway; the channel information of the first target channel is determined by the first node gateway based on the first background noise information and the second background noise information, and the first background noise information is obtained by the first node gateway based on the first Bluetooth module scanning the selected signal; the background noise information of the first target channel meets the background noise condition;

[0033] The access unit is used to access the network based on the first target channel.

[0034] In a sixth aspect, the present application provides an electronic device, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute any one of the methods in the first aspect or the second aspect.

[0035] In the seventh aspect, the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method described in the first aspect or the second aspect.

[0036] In an eighth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect or the second aspect is implemented.

[0037] In a ninth aspect, the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method described in the first or second aspect above.

[0038] It can be understood that the beneficial effects of the second to ninth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1 A schematic diagram of the system architecture of an application scenario provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of a flow chart of a channel selection method provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of calculating the noise floor score of a candidate channel provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of a flow chart of a channel selection method provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of an interactive process of a channel selection method provided in an embodiment of the present application;

[0045] Figure 6 A schematic diagram of the structure of a channel selection device provided in an embodiment of the present application;

[0046] Figure 7 A schematic diagram of the structure of a channel selection device provided in an embodiment of the present application;

[0047] Figure 8 A structural schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0050] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0051] 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.

[0052] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0053] Since WiFi mesh networks have a wide coverage area, channels selected based on a single gateway alone cannot achieve the best performance. Manually specifying channels by users is not only cumbersome, but may also result in channels with severe interference. In order to improve the performance and stability of WiFi mesh networks, it is necessary to propose a solution that can automatically monitor and select the optimal channel and dynamically adjust the channel when interference exists.

[0054] In the related art, the central node and the distributed node perform channel scanning and data transmission based on the scanned channels, collect background noise data, and then select channels. In the process of scanning channels and transmitting data based on the scanned channels, there may be multiple data exchanges and delays, and the response speed is slow; frequent channel scanning and data transmission generate high energy consumption, which is not conducive to the endurance of the device; the channel scanning and data transmission process may be affected when the environmental interference is serious, resulting in communication interruption or data transmission failure; and the channel selection process involves multiple steps and multiple data comparisons and transmissions, which increases the complexity of implementation and the possibility of errors; then, the related art is based on the central node and the distributed node, which makes the node deployment more complicated and the distance limited in the actual application scenario, and because it is highly dependent on the central node, when the central node fails, the channel selection and communication of the entire network will be seriously affected.

[0055] In response to the above problems, an embodiment of the present application provides a channel selection method based on the communication interaction between node gateways of the WiFi mesh network. The method monitors and counts the background noise information around each node gateway through a Bluetooth module, selects the optimal channel relative to the entire WiFi-mesh network group, and promptly responds to the node gateway's demand for channels, thereby improving the performance and stability of the WiFi mesh network.

[0056] The following describes application scenarios to which the embodiments of the present application are applicable.

[0057] like Figure 1 As shown, a schematic diagram of the system architecture of the application scenario provided by the embodiment of the present application. Each WiFimesh network group may include multiple node gateways; such as the first node gateway 1 and the second node gateway 1, the second node gateway 2, and the second node gateway 3 in group 1; the first node gateway 2 and the second node gateway 4, the second node gateway 5, and the second node gateway 6 in group 2.

[0058] The first node gateway 1 and the second node gateway 2 can be the master node gateways of the two groups respectively, and the other node gateways are slave node gateways; or, each group can include multiple node gateways, for example, the first node gateway 1, the second node gateway 1 and the second node gateway 2 in group 1 can all be master node gateways, and the other node gateways are slave node gateways; the same applies to group 2. When one of the master node gateways fails, the group can switch to another master node gateway to manage the networking status of the group. Understandably, Figure 1 The number of node gateways in each group shown in is only illustrative and does not limit the number of node gateways in the group and the number of master node gateways.

[0059] Exemplarily, each group corresponds to a network group identifier, such as a mesh ID. The master node gateway in each group configures its own wireless network, sets up a wide area network (WAN) connection, and defines a mesh ID. The network group identifier mesh ID is used to identify different networks or groups in a WiFi mesh network. When multiple node gateways need to communicate with each other to form a WiFi mesh network group, the same meshID must be used. The communication between each node gateway in the WiFi mesh network needs to be encrypted, and the master node gateway configures the encryption method. After the master node gateway is configured, save the above configuration information, such as the set WAN connection, the defined mesh ID, and the configured encryption method.

[0060] When there are multiple master node gateways in the group, the master node gateway can also configure its own serial number during the configuration process to distinguish different master node gateways.

[0061] Accordingly, the secondary node gateway configures the mesh ID of the WiFi mesh network group to be joined, the encryption method, and the serial number of the secondary node gateway to identify whether the secondary node gateway is the last secondary node gateway.

[0062] Exemplarily, the configuration process of the master node gateway and the slave node gateway in the group can be configured by the user based on the configuration page inside the node gateway; it can also be configured by generating configuration information based on the loaded configuration file.

[0063] During the configuration process, each secondary node gateway uses a configuration item to identify whether it is the last configured node gateway. For example, an option of "whether it is the last node" is set in the configuration page.

[0064] For example, after completing the configuration, the master node gateway can enter the listening state and wait for the broadcast information of the slave node gateway. After completing the configuration, the slave node gateway can broadcast its own configuration information by broadcasting; in the listening mode, the master node gateway receives the configuration information broadcast by the slave node gateway to achieve synchronization of the configuration information.

[0065] Among them, the master node gateway and the slave node gateway are configured with Bluetooth modules, such as low-power Bluetooth (Bluetooth low energy, BLE) modules. The slave node gateway can broadcast configuration information through the low-power Bluetooth module, and the master node gateway can receive the configuration information broadcast by the slave node gateway through the low-power Bluetooth module. When there are multiple master node gateways in the group, the master node gateways can also synchronize their respective configuration information through broadcasting.

[0066] It should be noted that Figure 1 The communication method between the node gateways in the group shown in is only an example. Fixed receiving and sending objects can also be configured. For example, the first node gateway 1 can receive information sent by the second node gateway 1 and the second node gateway 2 based on the mesh network protocol, the second node gateway 1 can send information to the first node gateway 1, the second node gateway 2, and the second node gateway 3 based on the mesh network protocol, and the second node gateway 3 can send information to the second node gateway 2 based on the mesh network protocol.

[0067] Based on the above architecture, the implementation process of the channel selection method provided in the embodiment of the present application is introduced below.

[0068] like Figure 2 As shown, a schematic diagram of the flow of the channel selection method provided in an embodiment of the present application; the execution subject of the method may be Figure 1 The first node gateway shown in the figure is configured with a first Bluetooth module; the method includes:

[0069] S201, scanning a candidate channel based on a first Bluetooth module to obtain first background noise information of the candidate channel.

[0070] In the embodiment of the present application, the first node gateway can be a master node gateway, and the first Bluetooth module can be a low-power Bluetooth BLE module. After the first node gateway is configured with a WAN network, mesh ID, and encryption method, the configuration information is saved, the BLE module is called to monitor the surrounding first background noise information, and enters the state of monitoring BLE broadcasts, waiting to receive the background noise information monitored by the secondary node gateway.

[0071] In the field of wireless communications, especially WiFi and low-power Bluetooth (BLE) radio frequency (RF), the noise floor refers to the background noise level on the wireless channel in the absence of any signal transmission; it is a collection of useless electrical signals caused by various factors in the wireless environment. For example, various factors may include natural noise (such as cosmic microwave background radiation and thermal radiation from the earth), man-made noise (including radiation from other electronic devices, industrial equipment, and even interference from adjacent channels), and thermal noise (generated by the thermal motion of the RF component itself).

[0072] As a reference indicator of the wireless communication environment, the background noise information directly affects the performance and signal quality of the wireless communication system. The receiving sensitivity and signal-to-noise ratio (SNR) of the communication system are both affected by the background noise. Among them, the receiving sensitivity is the minimum signal strength that can reliably decode the signal, and a higher background noise requires a stronger signal to be received and decoded; the signal-to-noise ratio (SNR) is the ratio of signal strength to noise strength. A lower background noise will increase the SNR, thereby improving signal quality and communication reliability.

[0073] Exemplarily, the BLE module of the master node gateway scans the surrounding radio environment and obtains background noise information in the mobile phone's selected channel, which specifically includes channel scanning and noise detection.

[0074] For example, the BLE module can scan each BLE channel in the 2.4Hz frequency band in turn (e.g., there are 40 channels in total); on each channel, the BLE module measures the received signal strength indicator (RSSI), and then evaluates the background noise information based on the signal strength. The higher the RSSI, the greater the interference or background noise in the channel, that is, the greater the indicator corresponding to the background noise information.

[0075] Exemplarily, the BLE module can record the RSSI value measured on each channel, calculate the average of multiple RSSI values ​​measured by measuring multiple RSSI values ​​within a period of time, and use the average as the noise floor level of the channel, that is, to obtain the first noise floor information of each candidate channel. Based on the summary of the first noise floor information of each candidate channel, a noise floor list of all candidate channels is generated.

[0076] Correspondingly, after the first Bluetooth module counts the first background noise information of each channel to be selected, it returns the first background noise information to the first node gateway. The first node gateway switches the first Bluetooth module to a state of monitoring BLE broadcasts and waits for the second background noise information of other second node gateways.

[0077] S202: Based on the first Bluetooth module, receive second background noise information of a candidate channel broadcasted by the second node gateway, where the second background noise information is background noise information scanned and broadcasted by the second node gateway based on the configured second Bluetooth module.

[0078] In the embodiment of the present application, the second node gateway may be a secondary node gateway in the group. After completing the configuration, the secondary node gateway scans the surrounding background noise information through the second Bluetooth module. Based on the same implementation principle as the primary node gateway scanning the background noise information, the secondary node gateway scans and counts the second background noise information of each selected channel through the second Bluetooth module.

[0079] Exemplarily, the second node gateway is configured with a second Bluetooth module. After counting the second background noise information of each channel to be selected, the second Bluetooth module returns the second background noise information to the second node gateway; the second node gateway broadcasts the second background noise information, address information (such as MAC address information), mesh ID, and information on whether it is the last secondary node gateway in the form of a BLE broadcast packet. The second Bluetooth module of the second node gateway is in a BLE listening state, waiting for the first node gateway to reply with the final selected channel information.

[0080] Among them, the first node gateway and the second node gateway can be configured with multiple BLE modules, which are responsible for different functions respectively. For example, the first node gateway can be configured with three BLE modules: BLE module 1, BLE module 2, and BLE module 3. BLE module 1 is responsible for wake-up, BLE module 2 is responsible for scanning, and BLE module 3 is responsible for transmitting data, etc.

[0081] The manner in which the BLE modules corresponding to the above node gateways are set is only illustrative, and the number and function of the settings are not specifically limited, and can be set based on actual application scenarios.

[0082] In some embodiments, the method further includes: based on the first Bluetooth module, obtaining configuration information broadcast by the second node gateway based on the second Bluetooth module, the configuration information including identification information of the second node gateway; based on the identification information, determining that the second background noise information of all second node gateways in the network is received.

[0083] Exemplarily, the second node gateway may be a secondary node gateway in the group. After completing the configuration, the secondary node gateway broadcasts its configuration information within the group. The first node gateway can also receive the configuration information broadcast by the second node gateway through the first Bluetooth module in the monitoring state, and determine whether the configuration information of the last secondary node gateway is received based on the serial number in the configuration information. After receiving the configuration information sent by the secondary node gateway marked with the last serial number, it is determined that the second background noise information of all secondary node gateways has been received.

[0084] In some embodiments, the method further comprises:

[0085] Based on the first Bluetooth module, the second background noise information forwarded by the second node gateway is received; the second background noise information forwarded by the second node gateway is scanned and broadcast by the third node gateway; wherein the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0086] For example, other nodes that are far from the first node gateway can forward their statistical second background noise information through the intermediate node gateway. Figure 1 In the group architecture shown, the second node gateway 3 (i.e., the third node gateway) can send its statistical second background noise information to the second node gateway 2, which is forwarded to the first node gateway 1 through the second node gateway 2. Thus, the master node gateway in the group can receive the second background noise information of all slave node gateways.

[0087] S203: According to the first noise floor information and the second noise floor information, determine a candidate channel whose noise floor information satisfies a noise floor condition as a first target channel, where the first target channel is used to establish networking communication.

[0088] In an embodiment of the present application, after receiving the second background noise information sent by all the secondary node gateways in the group, the first node gateway determines the first target channel from the candidate channels based on the first background noise information and all the second background noise information.

[0089] In some embodiments, determining, according to the first noise floor information and the second noise floor information, a candidate channel that meets the noise floor condition as a first target channel includes:

[0090] According to the first noise floor information and the second noise floor information, a noise floor score of each node gateway in the network corresponding to each candidate channel is calculated; a candidate channel whose noise floor score is less than or equal to the noise floor threshold is determined as the first target channel; or, a candidate channel with the lowest noise floor score is used as the first target channel; wherein satisfying the noise floor condition includes that the noise floor score is less than or equal to the noise floor threshold, or the noise floor score is a minimum value.

[0091] Exemplarily, the first node gateway calculates the noise floor score of each channel in the group based on the first noise floor information and the second noise floor information. Figure 3 As shown, the noise floor information of each channel (such as channel 1 to channel n) counted by node gateway 1 is a1 to a n The noise floor information of each channel (such as channel 1 to channel n) counted by node gateway 2 is b1 to b n The noise floor information of each channel (such as channel 1 to channel n) counted by node gateway 3 is c1 to c n The noise floor information of each channel (such as channel 1 to channel n) counted by the node gateway 4 is d1 to dn ; Based on a1, b1, c1 and d1, the score 1 corresponding to channel 1 is calculated. Based on the same principle, the scores of channels 2 to channel n are calculated, such as score 2 to score n. Then, the channel corresponding to the minimum value from score 1 to score n is selected as the target channel; or the candidate channel whose noise floor score is less than or equal to the noise floor threshold is selected as the target channel.

[0092] The embodiment of the present application realizes the optimized selection of WiFi mesh network channels based on the low power consumption, high efficiency and real-time monitoring capability of the BLE module, thereby improving the stability and performance of the network.

[0093] In a possible implementation, after receiving all the background noise information, the first node gateway may store the background noise information in the form of [channel number: background noise value], and aggregate the background noise information of all node gateways into a matrix form, such as Figure 3 In the table shown, the columns of the matrix represent different node gateways (such as node gateway 1 to node gateway 4), and the rows represent different channels (such as channel 1 to channel n).

[0094] A noise floor score is calculated for each channel, such as score 1 to score n; the noise floor score is used to indicate the friendliness of the channel to all node gateways. The noise floor score can be calculated by taking the weighted average of the noise floor values ​​of all node gateways, or by minimizing the maximum value.

[0095] Exemplarily, by calculating the average of the noise floor values ​​of all node gateways corresponding to a channel, the noise floor score of each channel is obtained, and the channel with the lowest average value is selected as the target channel. Alternatively, weights are set for different node gateways. For example, the weights of each secondary node gateway are set according to the distance from the main node gateway or the frequency of communication with the main node (such as importance), and the noise floor score of each channel is obtained by weighted average calculation. Alternatively, for the noise floor value corresponding to each channel, the noise floor score of each channel is calculated by minimizing the maximum value.

[0096] Accordingly, from all channels, the channel with the lowest noise floor score is selected as the optimal channel. In another case, if the noise floor value of the channel corresponding to one of the node gateways is large, but the total noise floor score of the channel is the lowest, a noise floor threshold can be set, and another channel below the noise floor threshold and without a node gateway corresponding to a significantly larger noise floor value is selected as the target channel, thereby ensuring the stability of the entire system.

[0097] In some embodiments, based on the first Bluetooth module, channel information of the first target channel is broadcast to the second node gateway; the channel information of the first target channel is used to notify the second node gateway to access the network based on the first target channel; or, the channel information of the first target channel is used to instruct the second node gateway to forward the channel information of the first target channel to the third node gateway to notify the third node gateway to access the network based on the first target channel.

[0098] Among them, the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0099] Exemplarily, after the first node gateway determines the target channel, the WiFi mesh network is started based on the target channel, and the channel information of the target channel is broadcast to other node gateways in the group through the BLE module; the BLE modules of other node gateways are in a state of listening to the BLE broadcast, and the channel information of the target channel broadcast by the first node gateway is obtained by scanning, and then the target channel is used to connect to the WiFi mesh network.

[0100] Accordingly, after the first node gateway detects that all second node gateways in the group have accessed the network based on WiFi mesh, the first node gateway may stop broadcasting the channel information of the target channel and enter a mode of communication based on the mesh protocol.

[0101] Exemplarily, the first node gateway broadcasts the channel information of the target channel, and the second node gateway closer to the first node gateway will scan the channel information; the second node gateway that scans the channel information will relay and broadcast the channel information; when other second node gateways farther away from the first node gateway monitor the channel information broadcast by the first node gateway or the second node gateway, they will continue to relay and broadcast the channel information, so that the channel information is gradually transmitted to the node gateways in the group farther away from the first node gateway through the intermediate node gateways in the group, and the information propagation distance is extended through multi-hop transmission between the node gateways.

[0102] Among them, based on the dynamic routing mechanism in the WiFi mesh network, the network protocol can determine the optimal path and dynamically select the transit node gateway according to the topological architecture of the network group and the status of the node gateway; by not specifying a specific transit node gateway for broadcasting, the redundancy and reliability of information transmission can be improved, ensuring that the information can reach the target node gateway in multi-path transmission, even if some nodes fail or are unavailable; ensuring that all sub-node gateways in the group receive the channel information of the target channel and use the target channel for network connection and communication. Especially for large WiFi mesh networks, by relaying information through sub-node gateways, the transmission distance of broadcast information can be extended and the communication range can be improved; and it is suitable for relay broadcasts of all the above information, such as configuration information and background noise information.

[0103] In some embodiments, when the first node gateway detects that the interference of the WiFi mesh network becomes larger, the master node gateway broadcasts information about updating the channel; the method includes:

[0104] When the background noise information of the first target channel does not meet the background noise condition, the third background noise information of the selected channel is rescanned based on the first Bluetooth module, and the third background noise information and channel update information are broadcast; the fourth background noise information broadcasted by the second node gateway is received based on the first Bluetooth module; the fourth background noise information is the background noise information scanned and broadcasted by the second node gateway based on the second Bluetooth module; according to the third background noise information and the fourth background noise information, the first target channel is updated to the second target channel; the background noise information of the second target channel meets the background noise condition.

[0105] Exemplarily, when the interference of the WiFi mesh network becomes larger, the first node gateway will detect that the background noise information of the current first target channel has changed; when the background noise information of the first target channel does not meet the background noise condition, the surrounding background noise information is rescanned based on the first Bluetooth module. Based on the same implementation principle as above, the first node gateway notifies the second node gateway to rescan the background noise information of each selected channel and share it with the first node gateway, which performs summary calculations, selects the second target channel that is optimal for the entire group, and broadcasts the channel information of the second target channel, instructing other second node gateways to reconnect to the WiFi mesh network; after confirming that all second node gateways are connected to the WiFi mesh network through the new target channel, the first node gateway stops broadcasting the channel information and enters the mesh communication mode.

[0106] In some embodiments, there may be multiple master node gateways in a group. If a master node gateway is disconnected from the network, other master node gateways can still be relied on to decide the target channel. When a node gateway detects interference changes, it can directly exchange background noise information with adjacent node gateways to jointly decide on a new target channel, thereby reducing dependence on the central node and improving the robustness of the overall network.

[0107] Exemplarily, if the second master node gateway does not receive the broadcast signal of the first master node gateway within a preset time, and determines that the first master node gateway is disconnected from the network or offline, the second master node gateway can send a broadcast message to switch the master node gateway, and carry its own configuration information and detected background noise information to determine whether it is necessary to dynamically adjust the target channel.

[0108] In some embodiments, the method further comprises:

[0109] When the channel update information broadcast by the second node gateway is received based on the first Bluetooth module, the fifth background noise information scanned is broadcast to the second node gateway; the third target channel broadcast by the second node gateway based on the second Bluetooth module is received, and the network is accessed based on the third target channel.

[0110] The third target channel is determined by the second node gateway based on the scanned sixth background noise information and the received fifth background noise information, and the background noise information of the third target channel meets the background noise condition.

[0111] Exemplarily, the first node gateway in the group may be a secondary node gateway, which may receive channel update information broadcast by the primary node gateway and perform channel selection based on the same implementation principle as described above.

[0112] In addition, for each node gateway in the WiFi mesh network group, on the basis of configuring the BLE module, the node gateway can also be equipped with an environmental detection function, such as comprehensively judging environmental changes through a variety of sensors (temperature, humidity, etc.) to further optimize the channel selection strategy. The channel selection strategy can also be dynamically adjusted based on intelligent algorithms (such as machine learning), based on historical data and real-time monitoring results, to predict possible interference changes and adjust the channel in advance; for example, historical data can be counted based on characteristic data such as time and location.

[0113] In the embodiment of the present application, the broadcast and receiving mechanism of the BLE module based on the node gateway makes the transmission of background noise information and channel information more real-time and reduces delays; when interference changes are detected, it can respond more quickly and improve the dynamic adaptability of the network. Based on the low power consumption characteristics of the BLE module, the embodiment of the present application can be suitable for long-term operation of IoT devices and node devices in WiFi mesh networks; background noise monitoring and channel information transmission through the BLE module can significantly reduce overall energy consumption and extend the service life of the equipment. In addition, the BLE module uses frequency hopping spread spectrum technology in the 2.4GHz frequency band, which can effectively reduce interference and improve communication stability; even in an environment with large interference, BLE can maintain high communication reliability. Broadcasting and monitoring through the BLE module do not require complex channel scanning and multiple data exchanges, which simplifies the implementation process. By transferring the information of other node gateways in the intermediate node gateway, the mesh network can be made larger and easier to deploy.

[0114] like Figure 4 As shown, the channel selection method provided in the embodiment of the present application can be performed by a subject Figure 1 The second node gateway shown in the figure is configured with a second Bluetooth module; based on Figure 3 The implementation principle is the same as the embodiment shown, which will not be repeated here. The method may include the following steps:

[0115] S401, scanning and broadcasting second background noise information of a to-be-selected channel based on a second Bluetooth module.

[0116] S402, receiving channel information of a first target channel sent by a first node gateway; the channel information of the first target channel is determined by the first node gateway based on first background noise information and second background noise information, and the first background noise information is obtained by the first node gateway based on scanning a candidate signal by a first Bluetooth module; the background noise information of the first target channel meets the background noise condition.

[0117] S403: Access the network based on the first target channel.

[0118] In some embodiments, the method further comprises:

[0119] Receive the second background noise information scanned and broadcast by the third node gateway based on the Bluetooth module, and forward the second background noise information of the third node gateway to the first node gateway; and / or forward the channel information of the first target channel broadcast by the first node gateway to the third node gateway; wherein the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0120] like Figure 5As shown, the interactive process diagram of the channel selection method provided in the embodiment of the present application is based on the same implementation principle as the above embodiment, which will not be repeated here. The interactive process includes the following steps:

[0121] 1. The first node gateway scans the candidate channel based on the first Bluetooth module to obtain the first background noise information of the candidate channel.

[0122] 2. The second node gateway scans and broadcasts the second background noise information of the to-be-selected channel based on the second Bluetooth module.

[0123] 3. The second node gateway broadcasts the second background noise information.

[0124] 4. The first node gateway determines, based on the first background noise information and the second background noise information, a candidate channel whose background noise information satisfies the background noise condition as the first target channel.

[0125] 5. The first node gateway broadcasts the channel information of the first target channel.

[0126] 6. The second node gateway accesses the network based on the first target channel.

[0127] The embodiments of the present application automatically select the optimal channel by monitoring and counting the background noise information, thereby avoiding the inconvenience and errors caused by manual selection; when the channel interference changes, the channel can be dynamically adjusted to ensure network stability and performance; the efficient collaboration of the main node gateway and the secondary node gateway ensures the channel selection and optimization of the entire WiFi mesh network; and the existing BLE module is used for background noise monitoring to reduce costs and improve system integration.

[0128] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0129] An embodiment of the present application also provides a channel selection system, which includes a first node gateway and multiple second node gateways, the first node gateway is configured with a first Bluetooth module, and the second node gateway is configured with a second Bluetooth module.

[0130] Among them, the first node gateway is used to scan the candidate channel based on the first Bluetooth module to obtain the first background noise information of the candidate channel; the second node gateway is used to scan and broadcast the second background noise information of the candidate channel based on the second Bluetooth module; the first node gateway is also used to receive the second background noise information broadcast by the second node gateway based on the first Bluetooth module; the first node gateway is also used to determine, based on the first background noise information and the second background noise information, that the candidate channel whose background noise information meets the background noise condition is the first target channel, and the first target channel is used to establish networking communication.

[0131] Corresponding to the channel selection method provided in the above embodiment, as Figure 6 As shown, an embodiment of the present application provides a channel selection device. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0132] The device includes:

[0133] A first scanning unit 61 is used to scan a candidate channel based on a first Bluetooth module to obtain first background noise information of the candidate channel;

[0134] The first communication unit 62 is used to receive the second background noise information of the selected channel broadcasted by the second node gateway based on the first Bluetooth module, where the second background noise information is the background noise information scanned and broadcasted by the second node gateway based on the configured second Bluetooth module;

[0135] The channel selection unit 63 is used to determine, according to the first noise floor information and the second noise floor information, a candidate channel whose noise floor information meets the noise floor condition as a first target channel, and the first target channel is used to establish networking communication.

[0136] In a possible implementation, the first communication unit 62 is also used to obtain, based on the first Bluetooth module, configuration information broadcast by the second node gateway based on the second Bluetooth module, the configuration information including identification information of the second node gateway; based on the identification information, determine that the second background noise information of all the second node gateways in the network is received.

[0137] In a possible implementation, the first communication unit 62 is also used to broadcast the channel information of the first target channel to the second node gateway based on the first Bluetooth module; the channel information of the first target channel is used to notify the second node gateway to access the network based on the first target channel; or, the channel information of the first target channel is used to instruct the second node gateway to forward the channel information of the first target channel to the third node gateway to notify the third node gateway to access the network based on the first target channel; wherein the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0138] In a possible implementation, the first scanning unit 61 is further used to rescan the third noise background information of the to-be-selected channel based on the first Bluetooth module when the noise background information of the first target channel does not meet the noise background condition, and broadcast the third noise background information and channel update information; the first communication unit 62 is further used to receive the fourth noise background information broadcasted by the second node gateway based on the first Bluetooth module; the fourth noise background information is the noise background information scanned and broadcasted by the second node gateway based on the second Bluetooth module; the channel selection unit 63 is further used to update the first target channel to the second target channel according to the third noise background information and the fourth noise background information; the noise background information of the second target channel meets the noise background condition.

[0139] In a possible implementation, the first communication unit 62 is further used to broadcast the scanned fifth background noise information to the second node gateway when the channel update information broadcast by the second node gateway is received based on the first Bluetooth module; receive the third target channel broadcast by the second node gateway based on the second Bluetooth module, and access the network based on the third target channel; wherein the third target channel is determined by the second node gateway based on the scanned sixth background noise information and the received fifth background noise information, and the background noise information of the third target channel meets the background noise condition.

[0140] In a possible implementation, the first communication unit 62 is also used to receive second background noise information forwarded by the second node gateway based on the first Bluetooth module; the second background noise information forwarded by the second node gateway is scanned and broadcast by the third node gateway; wherein the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0141] In a possible implementation, the channel selection unit 63 is further used to calculate the noise floor score of each node gateway in the network corresponding to each of the candidate channels according to the first noise floor information and the second noise floor information; determine the candidate channel whose noise floor score is less than or equal to the noise floor threshold as the first target channel; or, use the candidate channel with the lowest noise floor score as the first target channel; wherein satisfying the noise floor condition includes that the noise floor score is less than or equal to the noise floor threshold, or the noise floor score is a minimum value.

[0142] Corresponding to the channel selection method provided in the above embodiment, as Figure 7 As shown, an embodiment of the present application provides a channel selection device. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0143] The device includes:

[0144] A second scanning unit 71, configured to scan and broadcast second background noise information of a to-be-selected channel based on a second Bluetooth module;

[0145] The second communication unit 72 is used to receive the channel information of the first target channel sent by the first node gateway; the channel information of the first target channel is determined by the first node gateway based on the first background noise information and the second background noise information, and the first background noise information is obtained by the first node gateway based on the first Bluetooth module scanning the selected signal; the background noise information of the first target channel meets the background noise condition;

[0146] The access unit 73 is configured to access the network based on the first target channel.

[0147] In a possible implementation, the second communication unit 72 is also used to receive second background noise information scanned and broadcast by the third node gateway based on the Bluetooth module, and forward the second background noise information of the third node gateway to the first node gateway; and / or forward the channel information of the first target channel broadcast by the first node gateway to the third node gateway; wherein the distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

[0148] The embodiments of the present application automatically select the optimal channel by monitoring and counting the background noise information, thereby avoiding the inconvenience and errors caused by manual selection; when the channel interference changes, the channel can be dynamically adjusted to ensure network stability and performance; the efficient collaboration of the main node gateway and the secondary node gateway ensures the channel selection and optimization of the entire WiFi mesh network; and the existing BLE module is used for background noise monitoring to reduce costs and improve system integration.

[0149] Figure 8 A schematic diagram of the hardware structure of the electronic device 8 is shown.

[0150] like Figure 8 As shown, the electronic device 8 of this embodiment includes: at least one processor 80 ( Figure 8 Only one is shown), a memory 81, wherein the memory 81 stores a computer program 82 that can be run on the processor 80. When the processor 80 executes the computer program 82, the steps in the above method embodiment are implemented, such as Figure 2 Alternatively, when the processor 80 executes the computer program 82, the functions of the modules / units in the above-mentioned device embodiments are realized.

[0151] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 8. In other embodiments of the present application, the electronic device 8 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0152] The electronic device 8 may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of the electronic device 8 and does not constitute a limitation of the electronic device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include an input sending device, a network access device, a bus, etc.

[0153] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0154] The processor 80 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 80 is a cache memory. The memory may store instructions or data that the processor 80 has just used or cyclically used. If the processor 80 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 80, and thus improves the efficiency of the system.

[0155] In some embodiments, the memory 81 may be an internal storage unit of the electronic device 8, such as a hard disk or memory of the electronic device 8. The memory 81 may also be an external storage device of the electronic device 8, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 8. Further, the memory 81 may also include both an internal storage unit of the electronic device 8 and an external storage device. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory 81 may also be used to temporarily store data that has been sent or is to be sent.

[0156] 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.

[0157] It should be noted that the structure of the above-mentioned electronic device is only illustrative, and based on different application scenarios, it may also include other physical structures, and the physical structure of the electronic device is not limited here.

[0158] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0159] An embodiment of the present application also provides a chip system, which is applied to an electronic device. The chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device implements the steps in the above-mentioned method embodiments.

[0160] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0161] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0162] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0163] The devices, electronic devices, chip systems, computer storage media, and computer program products provided in the above-mentioned embodiments of the present application are all used to execute the methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the methods provided above, and will not be repeated here.

[0164] It should be understood that the above is only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. According to the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in each embodiment of the above detection method may be unnecessary, or some steps may be newly added. Or a combination of any two or any multiple embodiments of the above. Such modifications, changes or combined schemes also fall within the scope of the embodiments of the present application.

[0165] It should also be understood that the division of the methods, situations, categories and embodiments in the embodiments of the present application is only for the convenience of description and should not constitute a special limitation. The features of various methods, categories, situations and embodiments can be combined without contradiction.

[0166] It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0167] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0168] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0169] 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 multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0170] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

[0171] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A channel selection method, characterized in that: Applied to a first node gateway, the first node gateway is configured with a first Bluetooth module; the method comprises: Scanning a to-be-selected channel based on the first Bluetooth module to obtain first background noise information of the to-be-selected channel; Based on the first Bluetooth module, receiving second background noise information of the to-be-selected channel broadcasted by the second node gateway, where the second background noise information is background noise information scanned and broadcasted by the second node gateway based on the configured second Bluetooth module; According to the first background noise information and the second background noise information, a candidate channel whose background noise information satisfies the background noise condition is determined as a first target channel, and the first target channel is used to establish networking communication.

2. The method according to claim 1, characterized in that The method further comprises: Based on the first Bluetooth module, acquiring configuration information broadcasted by the second node gateway based on the second Bluetooth module, the configuration information including identification information of the second node gateway; Based on the identification information, it is determined that the second background noise information of all the second node gateways in the network is received.

3. The method according to claim 2, characterized in that After determining that the candidate channel whose background noise information satisfies the background noise condition is the first target channel, the method further includes: Based on the first Bluetooth module, broadcast the channel information of the first target channel to the second node gateway; the channel information of the first target channel is used to notify the second node gateway to access the network based on the first target channel; or, the channel information of the first target channel is used to instruct the second node gateway to forward the channel information of the first target channel to a third node gateway, so as to notify the third node gateway to access the network based on the first target channel; The distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

4. The method according to claim 1, characterized in that: The method comprises: When the background noise information of the first target channel does not meet the background noise condition, rescan the third background noise information of the to-be-selected channel based on the first Bluetooth module, and broadcast the third background noise information and channel update information; Receiving fourth background noise information broadcasted by the second node gateway based on the first Bluetooth module; the fourth background noise information is background noise information scanned and broadcasted by the second node gateway based on the second Bluetooth module; The first target channel is updated to a second target channel according to the third background noise information and the fourth background noise information; the background noise information of the second target channel satisfies the background noise condition.

5. The method according to claim 1, characterized in that The method further comprises: When the channel update information broadcasted by the second node gateway is received based on the first Bluetooth module, the fifth background noise information scanned is broadcasted to the second node gateway; receiving a third target channel broadcasted by the second node gateway based on the second Bluetooth module, and accessing a network based on the third target channel; The third target channel is determined by the second node gateway based on the scanned sixth background noise information and the received fifth background noise information, and the background noise information of the third target channel meets the background noise condition.

6. The method according to claim 1, characterized in that The method further comprises: Based on the first Bluetooth module, receiving the second background noise information forwarded by the second node gateway; the second background noise information forwarded by the second node gateway is scanned and broadcasted by the third node gateway; The distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

7. The method according to any one of claims 1 to 6, characterized in that: The determining, according to the first background noise information and the second background noise information, a candidate channel whose background noise information satisfies the background noise condition as a first target channel includes: Calculate the noise floor score of each node gateway in the network corresponding to each of the candidate channels according to the first noise floor information and the second noise floor information; Determine the candidate channel whose background noise score is less than or equal to the background noise threshold as the first target channel; or, Using the candidate channel with the lowest background noise score as the first target channel; Among them, satisfying the background noise condition includes that the background noise score is less than or equal to the background noise threshold, or the background noise score is a minimum value.

8. A channel selection method, characterized in that: Applied to a second node gateway, the second node gateway is configured with a second Bluetooth module; the method comprises: Scanning and broadcasting second background noise information of the to-be-selected channel based on the second Bluetooth module; Receive channel information of a first target channel sent by a first node gateway; the channel information of the first target channel is determined by the first node gateway based on first background noise information and the second background noise information, and the first background noise information is obtained by the first node gateway by scanning the selected signal based on the first Bluetooth module; the background noise information of the first target channel meets the background noise condition; Based on the first target channel, access a network.

9. The method according to claim 8, characterized in that The method further comprises: Receiving second background noise information scanned and broadcasted by a third node gateway based on a Bluetooth module, and forwarding the second background noise information of the third node gateway to the first node gateway; and / or, forwarding the channel information of the first target channel broadcasted by the first node gateway to the third node gateway; The distance between the third node gateway and the first node gateway is greater than the distance between the second node gateway and the first node gateway.

10. A channel selection system, characterized in that: The system comprises a first node gateway and a plurality of second node gateways, wherein the first node gateway is configured with a first Bluetooth module, and the second node gateway is configured with a second Bluetooth module; The first node gateway is used to scan a candidate channel based on the first Bluetooth module to obtain first background noise information of the candidate channel; The second node gateway is used for scanning and broadcasting the second background noise information of the to-be-selected channel based on the second Bluetooth module; The first node gateway is further configured to receive the second background noise information broadcasted by the second node gateway based on the first Bluetooth module; The first node gateway is further used to determine, based on the first background noise information and the second background noise information, a candidate channel whose background noise information meets the background noise condition as a first target channel, and the first target channel is used to establish networking communication.

11. An electronic device, characterized in that: The electronic device includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method described in any one of claims 1 to 9.

12. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 9.

13. A computer program product, characterized in that When the computer program product runs on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Bluetooth communication method and system based on edge computing

    CN121357520A