A channel selection method, node, system and computer readable storage medium
By filtering and using high-quality WIFI channels and Bluetooth channels, the power consumption and channel interference problems of low-power nodes in the Mesh network are solved, and more efficient and accurate data transmission is achieved.
Patent Information
- Application Number
- CN202210108441.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-01-28
AI Technical Summary
In Mesh networks in the field of the Internet of Things, the prior art is difficult to meet the power consumption requirements of low-power nodes, and there are channel interference problems, affecting transmission performance.
By obtaining the preset WIFI channel table and device channel table, filter out the WIFI channel with channel quality that meets the preset requirements, determine the Bluetooth transmission channel, and send the device channel table to the low-power node through the channel, so that it can select the appropriate Bluetooth transmission Channels to send communication packets, avoid traversing transmissions, and reduce power consumption and interference.
It reduces the power consumption of low-power nodes, improves the accuracy and efficiency of data transmission, meets the low-power requirements, and avoids channel interference by dynamically changing the Bluetooth channel, improving overall transmission performance.
Smart Images

Figure CN114630403B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless technology, and in particular to a channel selection method, node, system and computer-readable storage medium. Background Art
[0002] When problems such as unstable channels and mutual interference occur in a mesh network, the overall transmission performance can be improved by selecting channels with better indicators. In order to select appropriate channels, although some solutions can improve transmission performance, in the field of Internet of Things (IoT), since all nodes need to interact, they cannot meet the low power consumption and timeliness requirements of nodes. Summary of the invention
[0003] The present application provides a channel selection method, node, system and computer-readable storage medium, which can reduce the power consumption of low-power nodes and reduce channel interference.
[0004] In order to solve the above technical problems, the technical solution adopted in the present application is: to provide a channel selection method, which is applied to a Mesh network system, and the Mesh network system includes a long power supply node and a low power consumption node. The method includes: obtaining a preset WIFI channel table and a device channel table, the preset WIFI channel table includes multiple WIFI channels, and the device channel table includes the addresses of all long power supply nodes and the channel numbers of corresponding Bluetooth channels; screening out WIFI channels whose channel quality meets the preset quality requirements from multiple WIFI channels to obtain a first WIFI channel; determining the Bluetooth channel matching the first WIFI channel as the first Bluetooth transmission channel; sending the device channel table to the low power consumption node through the first Bluetooth transmission channel, so that the low power consumption node selects a second Bluetooth transmission channel based on the device channel table, and then sends a communication data packet to the receiving node through the second Bluetooth transmission channel.
[0005] In order to solve the above technical problems, the technical solution adopted in the present application is: to provide a channel selection method, which is applied to a Mesh network system, the Mesh network system includes a long power supply node and a low power consumption node, the long power supply node is used to obtain a preset WIFI channel table and a device channel table, the preset WIFI channel table includes multiple WIFI channels, and a WIFI channel whose channel quality meets the preset quality requirements is screened out from the multiple WIFI channels to obtain a first WIFI channel, and a Bluetooth channel matching the first WIFI channel is determined as a first Bluetooth transmission channel. The method includes: receiving a device channel table sent by the long power supply node through the first Bluetooth transmission channel; selecting a second Bluetooth transmission channel based on the device channel table; sending a communication data packet to the receiving node through the second Bluetooth transmission channel, and the device channel table includes the addresses of all long power supply nodes and the channel numbers of the corresponding Bluetooth channels.
[0006] To solve the above technical problems, another technical solution adopted in the present application is: to provide a long power supply node, which includes a memory and a processor connected to each other, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the channel selection method in the above technical solution.
[0007] To solve the above technical problems, another technical solution adopted in the present application is: to provide a low-power node, which includes a memory and a processor connected to each other, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the channel selection method in the above technical solution.
[0008] To solve the above technical problems, another technical solution adopted in the present application is: to provide a Mesh network system, which includes long power supply nodes and low power consumption nodes connected to each other, the long power supply nodes are used to send data to the low power consumption nodes or receive data sent by the low power consumption nodes, the long power supply nodes are the long power supply nodes in the above technical solution, and the low power consumption nodes are the low power consumption nodes in the above technical solution.
[0009] To solve the above technical problem, another technical solution adopted in the present application is: providing a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by a processor, it is used to implement the channel selection method in the above technical solution.
[0010] Through the above scheme, the beneficial effects of the present application are as follows: the Mesh network system provided by the present application includes a long power supply node and a low power consumption node, the long power supply node first obtains a preset WIFI channel table and a device channel table, the preset WIFI channel table includes multiple WIFI channels, and the device channel table includes the addresses of all long power supply nodes and the channel numbers of corresponding Bluetooth channels; then the long power supply node selects a WIFI channel whose channel quality meets the preset quality requirements from the multiple WIFI channels to obtain a first WIFI channel; then the long power supply node determines the Bluetooth channel matching the first WIFI channel as the first Bluetooth transmission channel; then the long power supply node transmits the device signal through the first Bluetooth transmission channel The device channel table is sent to the low-power node; the low-power node selects the second Bluetooth transmission channel based on the device channel table, and sends the communication data packet to the receiving node through the second Bluetooth transmission channel; each long power supply node can collect the Bluetooth channels of the long power supply node, and summarize them into a device channel table for the low-power node to choose, so that the low-power node can match the address of the receiving node with the device channel table and find a suitable Bluetooth channel to transmit the communication data packet. There is no need to use traversal to send the communication data packet, which helps to reduce the power consumption of low-power devices and meet the low-power requirements. Moreover, according to its own WIFI transmission needs, the Bluetooth channel can be actively changed in advance to avoid channel interference and improve the accuracy of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0012] Figure 1 It is a flow chart of an embodiment of a channel selection method provided by the present application;
[0013] Figure 2 It is a topological diagram of the Mesh network system provided by this application;
[0014] Figure 3 is a schematic diagram of a low-power Bluetooth channel list provided by this application;
[0015] Figure 4 It is a schematic diagram of the format of a data packet sent by a low-power node provided by the present application;
[0016] Figure 5 is a flow chart of another embodiment of the channel selection method provided by the present application;
[0017] Figure 6 It is a structural schematic diagram of an embodiment of a long power supply node provided by the present application;
[0018] Figure 7 It is a structural diagram of an embodiment of a low-power consumption node provided by the present application;
[0019] Figure 8 It is a structural diagram of an embodiment of a Mesh network system provided by the present application;
[0020] Fig. 9 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0021] The present application is further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present application, but are not intended to limit the scope of the present application. Similarly, the following examples are only some embodiments of the present application rather than all embodiments, and all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0022] Reference to "embodiments" in this application 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.
[0023] It should be noted that the terms "first", "second" and "third" in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second" and "third" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0024] See also Figure 1 and Figure 2 , Figure 1 is a flow chart of an embodiment of a channel selection method provided by the present application, Figure 2It is a topology diagram of the Mesh network system provided by the present application. The method is applied to the Mesh network system. The Mesh network system includes a long power supply node and a low power consumption node (Lower Power Node, LPN). The method includes:
[0025] S11: Obtain a preset WIFI channel table and a device channel table.
[0026] The preset WIFI channel table is composed of WIFI channels commonly used in the relevant technology, that is, the preset WIFI channel table includes multiple WIFI channels, such as: channels 1-13; the device channel table includes the addresses of all long power supply nodes and the channel numbers of the corresponding Bluetooth channels; specifically, each long power supply node broadcasts its own information (including the address and the channel number of the Bluetooth channel) to all devices in the Mesh network system, so that each long power supply node can know the communication channels of all long power supply nodes in the Mesh network system, and each long power supply node saves the addresses and channel numbers of each long power supply node to form a device channel table, which can be shown in Table 1 below:
[0027] Table 1 Equipment channel table
[0028]
[0029]
[0030] Long power supply nodes can select the communication channels between long power supply nodes according to the WIFI network environment in which they are located, and summarize them into a device channel table for low-power nodes to choose. There is no need for low-power nodes to directly traverse all Bluetooth channels, which helps to reduce power consumption.
[0031] S12: Filter out a WIFI channel whose channel quality meets a preset quality requirement from multiple WIFI channels to obtain a first WIFI channel.
[0032] Each WIFI channel in the preset WIFI channel table is traversed to find a WIFI channel (recorded as the first WIFI channel) whose channel quality meets the preset quality requirement among all WIFI signals.
[0033] In a specific embodiment, the channel quality information corresponding to each WIFI channel in the preset WIFI channel table may be obtained first, and the channel quality information includes the signal-to-noise ratio or the number of access points (AP) in the WIFI channel; then the channel quality information is scored to obtain the channel quality; then the WIFI channel with the largest channel quality in the preset WIFI channel table is determined as the first WIFI channel, that is, the preset quality requirement is the maximum channel quality. Specifically, the score corresponding to the signal-to-noise ratio may be set as the channel quality, and the higher the signal-to-noise ratio, the higher the channel quality; or the score corresponding to the number of APs may be set as the channel quality, and the more APs, the lower the channel quality; or, the score corresponding to the signal-to-noise ratio is calculated to obtain a first score, and the score corresponding to the number of APs is calculated to obtain a second score, and the first score and the second score are weighted summed to obtain the channel quality.
[0034] In other embodiments, the preset quality requirement may also be set to other forms, for example: determining whether the channel quality of each WIFI channel is greater than the preset channel quality; if the channel quality of the WIFI channel is greater than the preset channel quality, determining that the preset quality requirement is met; at this time, it may be further determined whether the number of WIFI channels whose current channel quality is greater than the preset channel quality exceeds one; if the number of WIFI channels whose current channel quality is greater than the preset channel quality exceeds one, a WIFI channel may be randomly selected therefrom as the first WIFI channel, or a WIFI channel with the largest channel quality may be selected therefrom as the first WIFI channel; if the number of WIFI channels whose current channel quality is greater than the preset channel quality is one, the WIFI channel is directly selected as the first WIFI channel.
[0035] S13: Determine a Bluetooth channel that matches the first WIFI channel as a first Bluetooth transmission channel.
[0036] The long power supply node traverses all WIFI channels to find the WIFI channel with the least interference, and selects a suitable Bluetooth channel (i.e., the Bluetooth channel that matches the WIFI channel with the least interference) to the long power supply node. Specifically, based on the minimum and maximum values of the channel numbers of all WIFI channels in the preset WIFI channel table, the WIFI channel number range is determined; the WIFI channel number range is divided into multiple sub-ranges; based on the sub-ranges and the preset broadcast channel set, a mapping table is established, the preset broadcast channel set includes multiple broadcast channels, and the mapping table includes sub-ranges and broadcast channels matching the sub-ranges; the first WIFI channel is matched with the mapping table to obtain the first Bluetooth transmission channel.
[0037] In a specific embodiment, the multiple broadcast channels include a first Bluetooth broadcast channel, a second Bluetooth broadcast channel and a third Bluetooth broadcast channel, and the three sub-ranges are (first preset value, less than the second preset value), [second preset value, third preset value) and [third preset value, fourth preset value). When the channel number of the first WIFI channel is greater than the first preset value and less than the second preset value, the first Bluetooth transmission channel is determined as the first Bluetooth broadcast channel; when the channel number of the first WIFI channel is greater than / equal to the second preset value and less than the third preset value, the first Bluetooth transmission channel is determined as the first Bluetooth broadcast channel or the second Bluetooth broadcast channel; when the channel number of the first WIFI channel is greater than / equal to the third preset value and less than the fourth preset value, the first Bluetooth transmission channel is determined as the second Bluetooth broadcast channel or the third Bluetooth broadcast channel.
[0038] For example, the Bluetooth Low Energy channel list is as follows: Figure 3 As shown, the low-power Bluetooth channel list includes multiple center frequencies (Frequency) and channel numbers (LL) corresponding to the center frequencies. Channels 37 to 39 are broadcast channels, and their corresponding center frequencies are 2402 MHz, 2426 MHz, and 2480 MHz, respectively; the first preset value, the second preset value, the third preset value, and the fourth preset value are 1, 6, 11, and 13, respectively, and the first Bluetooth broadcast channel, the second Bluetooth broadcast channel, and the third Bluetooth broadcast channel are 39 channels, 37 channels, and 38 channels, respectively, that is, the mapping table is shown in Table 2 below:
[0039] Table 2 Mapping table
[0040] Subrange Channel number of the Bluetooth channel (1,6) 39 [6,11) 37 or 39 [11,13) 37 or 38
[0041] It can be seen from Table 2 that if 1<the channel number of the first WIFI channel<6, the first Bluetooth transmission channel selects channel 39; if 6≤the channel number of the first WIFI channel<11, the first Bluetooth transmission channel selects one of channel 37 and channel 39; if 11≤the channel number of the first WIFI channel<13, the first Bluetooth transmission channel selects one of channel 37 and channel 38.
[0042] S14: sending the device channel table to the low-power node through the first Bluetooth transmission channel, so that the low-power node selects a second Bluetooth transmission channel based on the device channel table, and then sends a communication data packet to the receiving node through the second Bluetooth transmission channel.
[0043] After obtaining the device channel table, the long power supply node can send the device channel table to the low power node through the first Bluetooth transmission channel and / or the first WIFI channel; after obtaining the device channel table, the low power node can obtain the channel number of the Bluetooth channel corresponding to the receiving node (recorded as the second Bluetooth transmission channel) according to the device channel table and the address of the receiving node with which it wants to communicate, and then send the communication data packet to the receiving node through the second Bluetooth transmission channel; specifically, the receiving node can be a long power supply node. Since the device channel table includes the addresses and corresponding channel numbers of all long power supply nodes in the system including the Mesh network system, by matching the address of the receiving node with the device channel table, the channel number matching the address of the receiving node can be found from the device channel table. It can be understood that if there is no information identical to the address of the receiving node in the device channel table, the Bluetooth channel is traversed to send the communication data packet through the Bluetooth channel; for example, the three broadcast channels 37 to 39 are traversed, that is, the communication data packet is sent to the receiving node using these three broadcast channels.
[0044] In a specific embodiment, the long power supply node can determine whether all broadcast channels in the preset broadcast channel set have heard the establishment request message sent by the low power node; if the long power supply node detects that all broadcast channels in the preset broadcast channel set have heard the establishment request message, the device channel table is sent to the low power node. Specifically, the format of the data packet sent by the low power device (such as: establishment request message or communication data packet) is as follows: Figure 4 As shown, Length is the length, AD type is the broadcast message type, Content is the message content, and the field corresponding to Content is the Network Protocol Data Unit (Network Protocol Data Unit, Network PDU), and Network PDU includes a transmit channel (TXchannel) field and a payload (payload) field.
[0045] Furthermore, taking the preset broadcast channel set including {37, 38, 39} as an example, the low-power node sends an establishment request message on the three broadcast channels 37 to 39, and carries the information of the three broadcast channels (including the channel number) in the establishment request message. If the long power supply node in the system monitors that a low-power node has sent an establishment request message on channels 37 to 39, it replies to the device channel table (containing the addresses and communication channels of all long power supply nodes in the current network) to the low-power node.
[0046] This embodiment provides a method for selecting a Bluetooth Mesh broadcast channel. The broadcast channel in the Bluetooth Mesh network does not hop in frequency. The three broadcast channels 37 to 39 can be traversed to avoid the 1 / 6 / 11 channels commonly used by WIFI. However, there is also adjacent frequency interference, which increases the packet loss rate and power consumption. The solution of this embodiment only needs to send a data packet once on a certain broadcast channel, reducing the timing of packet transmission, and can reduce power consumption by 67%. Since there is no need to traverse each broadcast channel, network flooding will not increase, and the burden of the Mesh network can be reduced. Moreover, in the related art, the receiving node can only monitor one channel at the same time, so the receiving node needs to traverse channels 37 to 39 to receive data, resulting in a channel inconsistency problem between the receiving end and the sending end, which in turn causes packet loss. Since this solution does not need to traverse the broadcast channel, it can ensure that the channels of the receiving end and the sending end are consistent, avoiding the problem of packet loss. In addition, the solution provided in this embodiment can ensure that when the Bluetooth transmission channel is dynamically switched in the Bluetooth Mesh network, the Bluetooth does not drop the line, ensuring normal Bluetooth communication; in addition, when switching the WIFI channel, it will not interfere with the Bluetooth Mesh transmission.
[0047] See also Figure 5 , Figure 5 It is a flow chart of another embodiment of the channel selection method provided by the present application, the method is applied to a Mesh network system, the Mesh network system includes a long power supply node and a low power consumption node, the long power supply node is used to obtain a preset WIFI channel table and a device channel table, the preset WIFI channel table includes multiple WIFI channels, and a WIFI channel whose channel quality meets the preset quality requirements is screened out from the multiple WIFI channels to obtain a first WIFI channel, and a Bluetooth channel matching the first WIFI channel is determined as a first Bluetooth transmission channel, the method includes:
[0048] S51: Receive a device channel table sent by a long power supply node through a first Bluetooth transmission channel.
[0049] The device channel table includes the addresses of all long power supply nodes and the channel numbers of the corresponding Bluetooth channels.
[0050] S52: Select a second Bluetooth transmission channel based on the device channel table.
[0051] The Bluetooth channel corresponding to the address of the receiving node is searched in the device channel table to obtain the second Bluetooth transmission channel.
[0052] S53: Send a communication data packet to the receiving node via the second Bluetooth transmission channel.
[0053] The communication data packet is sent to the receiving node via the second Bluetooth transmission channel, and the transmission channel field carried by the communication data packet is the channel number of the second Bluetooth transmission channel.
[0054] In a specific embodiment, the low-power node can determine whether it has received confirmation information sent by the receiving node within a preset time; if no confirmation information is received within the preset time, the communication data packet is sent to the receiving node through each broadcast channel in the preset broadcast channel set, and the sending channel field carried by the communication data packet includes the channel number of the first Bluetooth broadcast channel, the channel number of the second Bluetooth broadcast channel, and the channel number of the third Bluetooth broadcast channel.
[0055] For example, the low-power node is denoted as A, the long-power node is denoted as B, and node A pre-sends a communication data packet to node B. Node A first searches the broadcast channel corresponding to node B from the device channel table (denoted as channel C), sends the communication data packet to node B through channel C, and fills the channel number of channel C in the sending channel field in the communication data packet; if node A does not receive the confirmation information within the preset time, channels 37 to 39 are traversed to send communication data packets through these three broadcast channels in turn. At this time, the sending channel field in the communication data packet is "37+38+39".
[0056] In another specific embodiment, when the data volume of the communication data packet is greater than the preset data volume, a second WIFI channel can be selected from the remaining WIFI channels except the first WIFI channel in the preset WIFI channel table; a Bluetooth channel corresponding to the second WIFI channel is obtained to obtain a third Bluetooth transmission channel; it is determined whether the third Bluetooth transmission channel is the same as the first Bluetooth transmission channel; if the third Bluetooth transmission channel is different from the first Bluetooth transmission channel, the current Bluetooth transmission channel is updated to the third Bluetooth transmission channel. Specifically, the low-power node includes a WIFI module. When the WIFI module starts to transmit a large number of communication data packets (such as video streams or device upgrade packages), it avoids the first WIFI channel and traverses the remaining WIFI channels to find the best WIFI channel (i.e., the WIFI channel with the second largest channel quality among all WIFI channels or the WIFI channel with the same channel quality as the first WIFI channel), and the best WIFI signal is matched with the device channel table to determine the best Bluetooth channel (i.e., the third Bluetooth transmission channel); if the third Bluetooth transmission channel is inconsistent with the first Bluetooth transmission channel, the Bluetooth module is notified to update the Bluetooth channel; the above operation is repeated until the transmission of the communication data packet is terminated.
[0057] The solution provided in this embodiment avoids the interference of WIFI channels to the greatest extent, selects the best Bluetooth channel, and does not need to traverse the Bluetooth channels, which not only reduces the packet loss rate, but also reduces the sending of redundant messages, and reduces the power consumption of low-power nodes; moreover, low-power nodes can select different Bluetooth channels to communicate with long-power supply nodes, and can be suitable for different network environments; in addition, when using WIFI transmission, the Bluetooth transmission channel can be actively switched to reduce the influence of mutual interference between its own Bluetooth channel and WIFI channel, thereby improving the accuracy of transmission.
[0058] See also Figure 6 , Figure 6 It is a structural diagram of an embodiment of a long power supply node provided in the present application. The long power supply node 60 includes a memory 61 and a processor 62 connected to each other, wherein the memory 61 is used to store a computer program. When the computer program is executed by the processor 62, it is used to implement the channel selection method in the above embodiment.
[0059] See also Figure 7 , Figure 7 It is a structural diagram of an embodiment of a low-power node provided in the present application. The low-power node 70 includes a memory 71 and a processor 72 connected to each other, wherein the memory 71 is used to store a computer program. When the computer program is executed by the processor 72, it is used to implement the channel selection method in the above embodiment.
[0060] See also Figure 8 , Figure 8 It is a structural diagram of an embodiment of a Mesh network system provided in the present application. The Mesh network system 80 includes a long power supply node 81 and a low power consumption node 82 that are interconnected. The long power supply node 81 is used to send data to the low power consumption node 82 or receive data sent by the low power consumption node 82. The long power supply node 81 is the long power supply node in the above embodiment, and the low power consumption node 82 is the low power consumption node in the above embodiment.
[0061] In this embodiment, the long power supply node finds the channel with the lowest channel occupancy rate as the communication channel of the Bluetooth mesh, which can reduce channel interference; and the Bluetooth channel can be dynamically switched according to the changes in the WIFI channel. The channels between every two Mesh nodes can be different, reducing the probability of packet loss and retransmission; in addition, the low-power node can go to sleep immediately after sending a communication data packet on a certain broadcast channel, without traversing all broadcast channels, which can reduce power consumption.
[0062] See also Fig. 9 , Fig. 9It is a structural diagram of an embodiment of a computer-readable storage medium provided in the present application. The computer-readable storage medium 90 is used to store a computer program 91. When the computer program 91 is executed by a processor, it is used to implement the channel selection method in the above embodiment.
[0063] The computer-readable storage medium 90 may be a server, a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other media that can store program codes.
[0064] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0065] 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 present embodiment.
[0066] 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.
[0067] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A channel selection method, It is characterized in that Applied to a Mesh network system, the Mesh network system includes a long power supply node and a low power consumption node, the method includes: Obtain a preset WIFI channel table and a device channel table, wherein the preset WIFI channel table includes multiple WIFI channels, and the device channel table includes the addresses of all the long power supply nodes and the channel numbers of the corresponding Bluetooth channels; Filtering out a WIFI channel whose channel quality meets a preset quality requirement from the multiple WIFI channels to obtain a first WIFI channel; Based on the mapping relationship between the WIFI channel number and the Bluetooth broadcast channel, determine the Bluetooth broadcast channel corresponding to the first WIFI channel in the mapping relationship as the first Bluetooth transmission channel; The device channel table is sent to the low-power node via the first Bluetooth transmission channel, so that the low-power node selects a second Bluetooth transmission channel based on the device channel table, and then sends a communication data packet to a receiving node via the second Bluetooth transmission channel.
2. The channel selection method according to claim 1, It is characterized in that The step of determining the Bluetooth broadcast channel corresponding to the first WIFI channel in the mapping relationship as the first Bluetooth transmission channel based on the mapping relationship between the WIFI channel number and the Bluetooth broadcast channel includes: Determine a range of WIFI channel numbers based on the minimum and maximum values of the channel numbers of all WIFI channels in the preset WIFI channel table; Splitting the WIFI channel number range into multiple sub-ranges; Establishing a mapping table based on the sub-range and a preset broadcast channel set, wherein the preset broadcast channel set includes a plurality of broadcast channels, and the mapping table includes the sub-range and a broadcast channel matching the sub-range; The first WIFI channel is matched with the mapping table to obtain the first Bluetooth transmission channel.
3. The channel selection method according to claim 2, It is characterized in that The multiple broadcast channels include a first Bluetooth broadcast channel, a second Bluetooth broadcast channel, and a third Bluetooth broadcast channel, and the method further includes: When the channel number of the first WIFI channel is greater than a first preset value and less than a second preset value, determining the first Bluetooth transmission channel as the first Bluetooth broadcast channel; When the channel number of the first WIFI channel is greater than / equal to the second preset value and less than a third preset value, determining the first Bluetooth transmission channel as the first Bluetooth broadcast channel or the second Bluetooth broadcast channel; When the channel number of the first WIFI channel is greater than / equal to the third preset value and less than a fourth preset value, the first Bluetooth transmission channel is determined as the second Bluetooth broadcast channel or the third Bluetooth broadcast channel.
4. The channel selection method according to claim 1, It is characterized in that The method further comprises: Determine whether all broadcast channels in the preset broadcast channel set monitor the establishment request message sent by the low-power node; If so, the device channel table is sent to the low power consumption node.
5. The channel selection method according to claim 1, It is characterized in that The step of selecting a WIFI channel whose channel quality meets a preset quality requirement from the multiple WIFI channels to obtain a first WIFI channel includes: Obtain channel quality information corresponding to each WIFI channel in the preset WIFI channel table, where the channel quality information includes a signal-to-noise ratio or the number of access points in the WIFI channel; Scoring the channel quality information to obtain channel quality; The WIFI channel with the highest channel quality in the preset WIFI channel table is determined as the first WIFI channel.
6. A channel selection method, It is characterized in that Applied to a Mesh network system, the Mesh network system includes a long power supply node and a low power consumption node, the long power supply node is used to obtain a preset WIFI channel table and a device channel table, the preset WIFI channel table includes multiple WIFI channels, a WIFI channel whose channel quality meets the preset quality requirement is screened out from the multiple WIFI channels, a first WIFI channel is obtained, based on a mapping relationship between a WIFI channel number and a Bluetooth broadcast channel, a Bluetooth broadcast channel corresponding to the first WIFI channel in the mapping relationship is determined as a first Bluetooth transmission channel, the method includes: receiving the device channel table sent by the long power supply node through the first Bluetooth transmission channel; Selecting a second Bluetooth transmission channel based on the device channel table; A communication data packet is sent to a receiving node via the second Bluetooth transmission channel, and the device channel table includes addresses of all the long power supply nodes and channel numbers of corresponding Bluetooth channels.
7. The channel selection method according to claim 6, It is characterized in that The method further comprises: Searching the Bluetooth channel corresponding to the address of the receiving node from the device channel table to obtain the second Bluetooth transmission channel; The communication data packet is sent to the receiving node via the second Bluetooth transmission channel, and the sending channel field carried by the communication data packet is the channel number of the second Bluetooth transmission channel.
8. The channel selection method according to claim 7, It is characterized in that The method further comprises: Determine whether a confirmation message sent by the receiving node is received within a preset time; If not, the communication data packet is sent to the receiving node through each broadcast channel in the preset broadcast channel set, and the sending channel field carried by the communication data packet includes the channel number of the first Bluetooth broadcast channel, the channel number of the second Bluetooth broadcast channel and the channel number of the third Bluetooth broadcast channel.
9. The channel selection method according to claim 6, It is characterized in that The method further comprises: When the data volume of the communication data packet is greater than the preset data volume, selecting a second WIFI channel from the remaining WIFI channels except the first WIFI channel in the preset WIFI channel table; Acquire a Bluetooth channel corresponding to the second WIFI channel to obtain a third Bluetooth transmission channel; Determining whether the third Bluetooth transmission channel is the same as the first Bluetooth transmission channel; If not, the current Bluetooth transmission channel is updated to the third Bluetooth transmission channel.
10. A long power supply node, It is characterized in that The invention comprises a memory and a processor connected to each other, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the channel selection method according to any one of claims 1 to 5.
11. A low power consumption node, It is characterized in that The invention comprises a memory and a processor connected to each other, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the channel selection method according to any one of claims 6 to 9.
12. A Mesh network system, It is characterized in that It comprises a long power supply node and a low power consumption node connected to each other, wherein the long power supply node is used to send data to the low power consumption node or receive data sent by the low power consumption node, the long power supply node is the long power supply node described in claim 10, and the low power consumption node is the low power consumption node described in claim 11.
13. A computer-readable storage medium for storing a computer program, It is characterized in that When the computer program is executed by a processor, it is used to implement the channel selection method according to any one of claims 1 to 9.
