Channel optimization selection method and apparatus, electronic device, and storage medium

CN116887299BActive Publication Date: 2026-08-18国网河北省电力有限公司营销服务中心 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310823454.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-06
Publication Date
2026-08-18
Estimated Expiration
2043-07-06

AI Technical Summary

Technical Problem

[0005]本发明实施例提供了一种信道优化选择方法、装置、电子设备及存储介质,以解决现有技术中当多个网络同时选用相同的通信信道进行通信时通信质量不稳定的问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116887299B_ABST
    Figure CN116887299B_ABST
Patent Text Reader

Abstract

The application provides a channel optimization selection method and device, electronic equipment and storage medium. The method comprises the following steps: obtaining a starting network reference time of a central coordinator in a current beacon period; determining a first channel for communication of the central coordinator in a next beacon period based on the starting network reference time and a total number of channels in a channel list; obtaining a communication time and a communication quality of the central coordinator based on the first channel in the next beacon period, and taking the next beacon period as a new current beacon period, and jumping to execute the step of obtaining the starting network reference time and subsequent steps; until all channels in the channel list are communicated by the central coordinator, determining a target channel of the central coordinator based on the communication time and the communication quality of the central coordinator in each first channel. The application can ensure that the communication between different central coordinators in a multi-network environment does not interfere with each other, and the overall communication effect of the central coordinator corresponding to each network remains good.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless communication technology, and in particular to a channel optimization selection method, apparatus, electronic device, and storage medium. Background Technology

[0002] High-speed wide-band power line carrier (HPLC) technology and high-speed radio frequency (HRF) technology constitute dual-mode communication technology, which is the most critical communication technology in the low-voltage power grid field. This dual-mode communication technology employs Orthogonal Frequency Division Multiplexing (OFDM), Turbo coding, and copy interleaving techniques at the physical layer. At the link layer, the number of network-supported connected nodes has increased from 1000 to 2000. Furthermore, based on the HPLC link layer protocol, a networking routing mechanism for the HRF channel has been added, supporting mutual routing between the two channels to form a single network. In addition, the protocol includes comprehensive encryption algorithms and mechanisms to ensure network communication security.

[0003] In existing technologies, HRF technology typically employs a traditional fixed-channel communication method, where each device transmits data on its own fixed channel during each communication. However, multiple devices conforming to various protocol standards may operate on certain frequency bands. When these devices transmit data simultaneously on the same frequency channel, communication failures or a deterioration of the network environment are highly likely. In such cases, it is necessary to switch each device to a different communication channel for data transmission.

[0004] Therefore, there is an urgent need to propose a method to optimize the communication channels of devices, so as to ensure that each device can communicate normally, efficiently and without interference on the optimized communication channels. Summary of the Invention

[0005] This invention provides a channel optimization selection method, apparatus, electronic device, and storage medium to solve the problem of unstable communication quality when multiple networks simultaneously use the same communication channel for communication in the prior art.

[0006] In a first aspect, embodiments of the present invention provide a channel optimization selection method, comprising: Obtain the starting network reference time of the central coordinator in the current beacon cycle; The first channel for communication by the central coordinator in the next beacon cycle is determined based on the starting network reference time and the total number of channels in the channel list; wherein, each channel in the channel list appears with equal probability at each position in the channel list. The process involves obtaining the communication time and quality of the central coordinator communicating based on the first channel in the next beacon period, and using the next beacon period as the new current beacon period. The process then jumps to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. After all channels in the channel list have been traversed and communicated by the central coordinator, the target channel of the central coordinator is determined based on the communication time and communication quality of the central coordinator under each of the first channels.

[0007] In one possible implementation, determining the first channel for communication by the central coordinator in the next beacon cycle based on the initial network reference time and the total number of channels in the channel list includes: The calculation result is obtained by performing a modulo operation on the total number of channels based on the initial network reference time; Based on the calculation results, the channel at the corresponding position in the channel list is found and used as the first channel for the central coordinator to communicate in the next beacon cycle.

[0008] In one possible implementation, determining the target channel of the central coordinator based on the communication time and communication quality of the central coordinator under each of the first channels includes: Calculate the first ratio of communication time and communication quality of the central coordinator under each of the first channels; The first channel corresponding to the minimum value of the first ratio among all the first ratios is determined as the target channel of the central coordinator.

[0009] In one possible implementation, calculating the first ratio of communication time and communication quality of the central coordinator under each of the first channels includes: based on Calculate the first ratio of communication time and communication quality of the central coordinator under each of the first channels; in, This represents the first ratio of the central coordinator under each of the first channels. This indicates the communication time of the central coordinator on each of the first channels. This indicates the communication quality of the central coordinator on each of the first channels. This represents the bit error rate of the central coordinator in each of the first channels.

[0010] In one possible implementation, after determining the target channel of the central coordinator based on the communication time and communication quality of the central coordinator under each of the first channels, the method further includes: Real-time monitoring of the latest communication time and quality of the central coordinator communicating under the target channel; Calculate a second ratio of the latest communication time to the latest communication quality; When the error between the second ratio and the minimum value of the first ratio exceeds a preset error threshold, the process jumps to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

[0011] In one possible implementation, after determining the target channel of the central coordinator based on the communication time and communication quality of the central coordinator under each of the first channels, the method further includes: After a preset interval, the system jumps to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

[0012] In one possible implementation, before obtaining the central coordinator's starting network reference time for the current beacon cycle, the following is also included: The order of all channels in the original channel list is shuffled to obtain a new channel list, such that each shuffled channel appears with equal probability at each position in the channel list.

[0013] Secondly, embodiments of the present invention provide a channel optimization selection apparatus, comprising: The network reference time acquisition module is used to acquire the starting network reference time of the central coordinator in the current beacon cycle; The first channel determination module is used to determine the first channel for the central coordinator to communicate in the next beacon cycle based on the starting network reference time and the total number of channels in the channel list; wherein, each channel in the channel list appears with equal probability at each position in the channel list. The communication data acquisition module is used to acquire the communication time and communication quality of the central coordinator communicating based on the first channel in the next beacon period, and to take the next beacon period as the new current beacon period, and jump to execute the step of "acquiring the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel selection module is used to determine the target channel of the central coordinator based on the communication time and communication quality of the central coordinator under each of the first channels after all channels in the channel list have been traversed and communicated by the central coordinator.

[0014] Thirdly, embodiments of the present invention provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method as described in the first aspect or any possible implementation of the first aspect.

[0015] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method as described in the first aspect or any possible implementation thereof.

[0016] This invention provides a channel optimization selection method, apparatus, electronic device, and storage medium. Using the starting network reference time of the central coordinator in the current beacon period as a marker, and combining this with the total number of channels in the channel list, the first channel for communication by the central coordinator in the next beacon period is determined. Simultaneously, the communication time and quality of the central coordinator communicating on this first channel are recorded. Then, the next beacon period is used as the new current beacon period, and the process of "determining the first channel and the communication time and quality on the first channel" is repeated until all channels in the channel list have been traversed and communicated with. Finally, the communication time and quality of the central coordinator on each first channel are compared, thereby selecting the first channel with the best overall communication performance as the target channel for the central coordinator. In this way, by utilizing the random and distinct starting network reference times of different central coordinator beacon periods, for each central coordinator in a network, the first channel for communication in the channel list is randomly selected based on its own starting network reference time. In this scenario, due to the different starting network reference times and beacon periods of different central coordinators, each central coordinator typically selects a different first communication channel for each beacon period. Therefore, communication between the networks corresponding to different central coordinators is unlikely to interfere with each other. Based on this, after traversing all channels in the channel list, the communication time and quality of the central coordinator on each first channel are statistically analyzed. Because different environmental factors in different networks have varying degrees of impact on channel communication, the communication time and quality of central coordinators on the same channel in different networks often differ. Therefore, this embodiment of the invention analyzes and selects the first channel with the best overall communication performance for each central coordinator in each network as the target channel for the current central coordinator. This allows the determination of the target channel where the communication of the current central coordinator with other central coordinators in different networks is mutually non-interfering and has the best communication performance. Consequently, subsequent communication between central coordinators in different networks based on their respective target channels can achieve normal, efficient, and non-interfering communication. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating the implementation of the channel optimization selection method provided in this embodiment of the invention. Figure 2This is a schematic diagram of the channel scrambling operation in the channel optimization selection method provided in the embodiment of the present invention; Figure 3 This is an execution flowchart of the channel optimization selection method provided in the embodiments of the present invention; Figure 4 This is a schematic diagram of the channel optimization selection device provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0019] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.

[0020] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.

[0021] Figure 1 This is a flowchart illustrating the implementation of the channel optimization selection method provided in an embodiment of the present invention. Figure 1 As shown, this embodiment of the invention provides a channel optimization selection method, including: Step 101: Obtain the starting network reference time of the central coordinator in the current beacon cycle.

[0022] Typically, different networks correspond to different Central Coordinators (CCOs). Therefore, each distribution network in a power grid often has its own corresponding CCO. The beacon period refers to the time interval at which the CCO periodically sends central beacons, determined by the network size. For distribution networks of different sizes, the CCO's beacon period often differs. Furthermore, at the start of each beacon period, the CCO specifies its starting Network Time Base (NTB), i.e., the "Beacon Period Start Network Time Base" field. Since the NTB value is random, in step 101, based on this characteristic, the starting network time base of the CCO in the current beacon period is obtained, so that the CCO's communication channel can be subsequently determined based on this random starting network time base.

[0023] In one possible implementation, before obtaining the central coordinator's starting network reference time for the current beacon cycle, the following is also included: The order of all channels in the original channel list is shuffled to obtain a new channel list, such that each shuffled channel appears with equal probability in each position of the channel list.

[0024] In this embodiment, Figure 2 This is a schematic diagram of the channel scrambling operation in the channel optimization selection method provided in this embodiment of the invention, as shown below. Figure 2 As shown, the order of all channels in the original channel list can be shuffled, ensuring that each channel appears with equal probability in its respective position in the newly obtained list. This newly obtained unordered channel sequence serves as the channel list, allowing the central coordinator to communicate based on the channels within this list. In this way, shuffling the order of channels in the original channel list effectively reduces the probability that central coordinators from different networks might choose the same or similar communication channels, thus avoiding mutual interference between different networks.

[0025] Optionally, the network identifier (NID) of this network can be used as a hash seed to shuffle the original channel list and obtain the channel list.

[0026] Optionally, the random seed of the NTB can be used to prevent different networks from choosing similar channels for communication, but this application does not limit this.

[0027] Step 102: Determine the first channel for the central coordinator to communicate in the next beacon cycle based on the initial network reference time and the total number of channels in the channel list; wherein, each channel in the channel list appears with equal probability at each position in the channel list.

[0028] Figure 3 Please refer to the flowchart of the channel optimization selection method provided in this embodiment of the invention. Figure 1 and Figure 3 To ensure normal communication, the communication channel across the entire network must remain the same from the start of the current beacon cycle until its end. Therefore, the communication channel of the central coordinator for the next beacon cycle can be calculated based on the network reference time at the start of the current beacon cycle. This allows all nodes in the network to simultaneously change their communication channels at the start of the next beacon cycle, thus guaranteeing normal communication among all nodes within the network corresponding to the central coordinator during the next beacon cycle.

[0029] Optionally, in step 102, the first channel for communication by the central coordinator in the next beacon cycle can be determined based on the starting network reference time and the total number of channels in the channel list. In this way, at the start of the next beacon cycle, all nodes in the network will change their communication channel to this first channel, thus ensuring normal communication among all nodes in the network.

[0030] Optionally, it can be further ensured that each channel in the channel list appears with equal probability at each position in the channel list. In this way, it can effectively prevent different networks from choosing the same or similar channels for communication, thereby ensuring that each central coordinator can communicate normally under each first channel.

[0031] In one possible implementation, the first channel for communication by the central coordinator in the next beacon cycle is determined based on the initial network reference time and the total number of channels in the channel list, including: The calculation result is obtained by taking the remainder of the total number of channels based on the initial network reference time.

[0032] Based on the calculation results, the channel corresponding to the position in the channel list is found and used as the first channel for communication by the central coordinator in the next beacon cycle.

[0033] In this embodiment, the total number of channels can be moduloed based on the initial network reference time to obtain the calculation result. The channel at the corresponding position is then located in the channel list based on this calculation result, and this channel is designated as the first channel for communication by the central coordinator in the next beacon cycle. For example, a hash lookup can be used to find the corresponding channel. For instance, the NTB value is defined as... The total number of channels is Then, after the remainder operation Then, a calculation result is obtained. Therefore, based on the calculation results... Find the index in the channel list and match it with the calculation result. The matching channel number is used, and the channel corresponding to the found channel number is used as the first channel for communication by the central coordinator in the next beacon cycle.

[0034] Optionally, if the channel being searched has already been used as the first channel for communication, the calculation result can be... The next channel corresponding to the channel becomes the first channel for the central coordinator to communicate in the next beacon cycle.

[0035] Step 103: Obtain the communication time and communication quality of the central coordinator based on the first channel in the next beacon cycle, and take the next beacon cycle as the new current beacon cycle. Jump to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon cycle" and subsequent steps.

[0036] In step 103, the communication time and quality of the central coordinator communicating via the first channel in the next beacon period can be recorded. This next beacon period is then used as the new current beacon period, and the steps of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps are repeated. In this way, multiple communication time data and multiple communication quality data of the central coordinator communicating via different first channels in each beacon period can be obtained, facilitating the subsequent determination of the optimal communication channel for the central coordinator based on these communication times and quality data.

[0037] Optionally, the communication time can be set to the time of one data transmission and reception, or it can be set to the average time of multiple data transmissions and receptions within a beacon period. This application does not limit this.

[0038] Step 104: After all channels in the channel list have been traversed and communicated by the central coordinator, the target channel of the central coordinator is determined based on the communication time and communication quality of the central coordinator under each first channel.

[0039] In step 104, after all channels in the channel list have communicated through the central coordinator, the communication time and quality corresponding to the central coordinator's communication based on each first channel can be obtained. Subsequently, the first channels that meet the communication standards can be extracted from these communication times and quality data and determined as the target channels for the central coordinator.

[0040] In one possible implementation, the target channel of the central coordinator is determined based on the communication time and communication quality of the central coordinator in each first channel, including: Calculate the first ratio of communication time and communication quality of the central coordinator under each first channel.

[0041] The first channel corresponding to the minimum value of all first ratios is determined as the target channel of the central coordinator.

[0042] In this embodiment, the optimal communication channel can be selected based on the parameters that characterize the communication quality of each first channel. Optionally, a first ratio of the communication time and communication quality of the central coordinator under each first channel can be calculated, and the first channel corresponding to the smallest first ratio among all first ratios can be determined as the target channel of the central coordinator. In this way, the communication channels of each node under the network corresponding to the central coordinator are switched to the target channel, which can effectively ensure the good overall communication performance of each node under the network.

[0043] Optionally, after determining the optimal transmission channel for the central coordinator, i.e., the target channel, the key information data of the target channel can be transmitted back to the signal transmitter. At this time, the signal transmitter will bypass other channels and communicate only based on the target channel. For example, the key information data of the target channel may include: Received Signal Strength Indication (RSSI), Signal Noise Ratio (SNR), and communication success rate, etc. This application does not limit these metrics.

[0044] In one possible implementation, calculating a first ratio of communication time and communication quality for the central coordinator on each first channel includes: Based on Calculate the first ratio of communication time and communication quality of the central coordinator under each first channel.

[0045] in, This represents the first ratio of the central coordinator under each first channel. This indicates the communication time of the central coordinator on each first channel. This indicates the communication quality of the central coordinator on each first channel. This represents the bit error rate of the central coordinator in each first channel.

[0046] In this embodiment, the bit error rate can be used. This indicates the communication quality of the central coordinator on each first channel. In this way, the required calculation parameters can be accurately determined each time communication is conducted based on the first channel, thus facilitating the selection of the first channel that conforms to the communication standard.

[0047] In one possible implementation, after determining the target channel of the central coordinator based on the communication time and communication quality of the central coordinator in each first channel, the following is also included: Real-time monitoring of the latest communication time and quality of the central coordinator communicating under the target channel.

[0048] Calculate the second ratio of the latest communication time to the latest communication quality.

[0049] When the error between the second ratio and the minimum value of the first ratio exceeds the preset error threshold, the process jumps to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

[0050] In real-world network environments, the communication performance of different channels varies depending on the specific scenario or area, as the interference factors within the space differ or their intensity varies. Furthermore, wireless communication channels are easily affected by environmental factors. For example, changes in geographical location, electromagnetic environment, and / or weather conditions can significantly alter the quality of channel communication.

[0051] Therefore, when the environmental factors for wireless communication do not change significantly, the various data in wireless communication will generally not change much either. In this case, each central coordinator can continue to use the previous communication configuration, that is, continue to communicate based on the aforementioned target channel.

[0052] When environmental factors in wireless communication change significantly, various data points in the communication system often change accordingly, affecting the quality of wireless communication. However, the degree of change in environmental factors is not easily determined directly. In such cases, the change in environmental factors can be judged by comparing various communication indicators before and after the change. For example, when the changes in communication time, quality, and other indicators exceed a certain proportion, it can be determined that the environmental factors have changed significantly. At this point, the target channel of the central coordinator can be redefined to ensure normal communication among its subordinate nodes.

[0053] Optionally, the latest communication time and quality of the central coordinator communicating under the target channel can be monitored in real time. A second ratio of the latest communication time and the latest communication quality can be calculated. When the error between the second ratio and the minimum value of the first ratio exceeds a preset error threshold, the process jumps to the step of "obtaining the starting network reference time of the central coordinator under the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to the step of "obtaining the starting network reference time of the central coordinator under the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

[0054] For example, the communication success rate range corresponding to the minimum value of the first ratio can be 90%-99%. Taking the current communication success rate corresponding to the minimum value of the first ratio as 90% as an example, if the communication success rate corresponding to the second ratio deteriorates to 50%, it can be determined that the error between the second ratio and the minimum value of the first ratio exceeds a preset error threshold. At this time, the target channel of the central coordinator can be re-determined to improve the communication quality of the current network. For example, the preset error threshold can be determined based on the communication success rate and can be set between 35%-40% or other reasonable ranges; this application does not limit this.

[0055] Because different networks have different beacon periods, even if a central coordinator chooses the same target channel to communicate with another central coordinator in a given beacon period, communication quality for the relevant central coordinators will deteriorate due to congestion or collisions, thus worsening the network environment of the relevant networks. Therefore, the target channel of the central coordinator can be redefined to ensure that all relevant networks can communicate normally without interference.

[0056] In one possible implementation, after determining the target channel of the central coordinator based on the communication time and communication quality of the central coordinator in each first channel, the following is also included: After a preset interval, the system jumps to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

[0057] In this embodiment, after the central coordinator has communicated for a preset duration based on the target channel, if no communication quality deterioration occurs, it can re-determine the target channel to check if there are other channels with better and more stable communication quality besides the current target channel. When a better communication channel exists, the central coordinator can communicate based on the new target channel, thereby effectively ensuring the best communication quality for each node in the network corresponding to the central coordinator. If no better communication channel exists, the central coordinator can continue to communicate based on the current target channel.

[0058] Optionally, after the central coordinator has communicated for a preset duration based on the target channel, it jumps to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to and executing the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator. In this way, it can be further determined whether there are channels in the channel list with better communication quality than the current target channel. If so, the channel can be changed to the channel with better communication quality to ensure the normal, stable and efficient network communication.

[0059] This invention provides a channel optimization selection method. Using the starting network reference time of the central coordinator in the current beacon period as a marker, and combining this with the total number of channels in the channel list, the first channel for communication by the central coordinator in the next beacon period is determined. Simultaneously, the communication time and quality of the central coordinator on this first channel are recorded. Then, the next beacon period is used as the new current beacon period, and the process of "determining the first channel and the communication time and quality on the first channel" is repeated until all channels in the channel list have been traversed and communicated with. Finally, the communication time and quality of the central coordinator on each first channel are compared, and the first channel with the best overall communication performance is selected as the target channel for the central coordinator. In this way, by utilizing the random and distinct starting network reference times of different central coordinators' beacon periods, each central coordinator randomly selects the first channel for communication in the channel list based on its own starting network reference time. In this case, because the starting network reference times and beacon periods of different central coordinators are different, the first channel selected for communication by each central coordinator in each beacon period is usually different, thus the communication between the networks corresponding to different central coordinators is unlikely to interfere with each other. Based on this, after traversing all channels in the channel list and conducting communications, the communication time and quality of the central coordinator under each first channel are statistically analyzed. Since different environmental factors in different networks have varying degrees of impact on channel communication, the communication time and quality of central coordinators communicating on the same channel under different networks often differ. Therefore, this embodiment of the invention analyzes and selects the first channel with the best overall communication performance for the central coordinator under each network as the target channel for the current central coordinator. This allows the determination of the target channel where the communication of the current central coordinator with other central coordinators in different networks is mutually non-interfering and where its own communication performance is optimal. Consequently, subsequent communication between central coordinators in different networks based on their corresponding target channels can achieve normal, efficient, and non-interfering communication.

[0060] The channel optimization selection method provided in this invention effectively improves the anti-interference and anti-fading capabilities of the communication systems corresponding to each network by selecting the optimal communication channel for network communication and avoiding different networks from choosing the same channel for communication. Furthermore, it reduces the impact of environmental factors and other interference on wireless communication, thereby reducing invalid redundant transmissions and invalid data transmissions, and significantly improving the communication quality of wireless communication.

[0061] It should be understood that the sequence number of each step in the above embodiments does not imply 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 invention.

[0062] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.

[0063] Figure 4 The schematic diagram of the channel optimization selection device provided in the embodiment of the present invention is shown for ease of explanation, showing only the parts related to the embodiment of the present invention, which are described in detail below: like Figure 4 As shown, the channel optimization selection device 4 includes: The network reference time acquisition module 41 is used to acquire the starting network reference time of the central coordinator in the current beacon cycle.

[0064] The first channel determination module 42 is used to determine the first channel for the central coordinator to communicate in the next beacon cycle based on the initial network reference time and the total number of channels in the channel list; wherein, each channel in the channel list appears with equal probability at each position in the channel list.

[0065] The communication data acquisition module 43 is used to acquire the communication time and communication quality of the central coordinator communicating based on the first channel in the next beacon cycle, and to take the next beacon cycle as the new current beacon cycle, and jump to execute the step of "acquiring the starting network reference time of the central coordinator in the current beacon cycle" and subsequent steps in the network reference time acquisition module 41.

[0066] The target channel selection module 44 is used to determine the target channel of the central coordinator based on the communication time and communication quality of the central coordinator under each first channel after all channels in the channel list have been traversed and communicated by the central coordinator.

[0067] This invention provides a channel optimization selection device, comprising: a network reference time acquisition module 41, a first channel determination module 42, a data communication acquisition module 43, and a target channel selection module 44. Using the starting network reference time of the central coordinator in the current beacon period as a marker, and combining this with the total number of channels in the channel list, the first channel for communication by the central coordinator in the next beacon period is determined; simultaneously, the communication time and communication quality of the central coordinator under this first channel are recorded. Then, the next beacon period is used as the new current beacon period, and the process of "determining the first channel and the communication time and communication quality under the first channel" is repeated until all channels in the channel list have been traversed and communicated. The communication time and communication quality of the central coordinator under each first channel are compared, thereby selecting the first channel with the best overall communication performance as the target channel for the central coordinator. In this way, by utilizing the random and distinct starting network reference times of different central coordinator beacon periods, for each central coordinator in a network, the first channel for communication in the channel list is randomly selected based on its own starting network reference time. In this scenario, due to the different starting network reference times and beacon periods of different central coordinators, each central coordinator typically selects a different first communication channel for each beacon period. Therefore, communication between the networks corresponding to different central coordinators is unlikely to interfere with each other. Based on this, after traversing all channels in the channel list, the communication time and quality of the central coordinator on each first channel are statistically analyzed. Because different environmental factors in different networks have varying degrees of impact on channel communication, the communication time and quality of central coordinators on the same channel in different networks often differ. Therefore, this embodiment of the invention analyzes and selects the first channel with the best overall communication performance for each central coordinator in each network as the target channel for the current central coordinator. This allows the determination of the target channel where the communication of the current central coordinator with other central coordinators in different networks is mutually non-interfering and has the best communication performance. Consequently, subsequent communication between central coordinators in different networks based on their respective target channels can achieve normal, efficient, and non-interfering communication.

[0068] In one possible implementation, the network reference time acquisition module 41 is further used for: The order of all channels in the original channel list is shuffled to obtain a new channel list, such that each shuffled channel appears with equal probability in each position of the channel list.

[0069] In one possible implementation, the first channel determination module 42 is specifically used for: The calculation result is obtained by taking the remainder of the total number of channels based on the initial network reference time.

[0070] Based on the calculation results, the channel corresponding to the position in the channel list is found and used as the first channel for communication by the central coordinator in the next beacon cycle.

[0071] In one possible implementation, the target channel selection module 44 is specifically used for: Calculate the first ratio of communication time and communication quality of the central coordinator under each first channel.

[0072] The first channel corresponding to the minimum value of all first ratios is determined as the target channel of the central coordinator.

[0073] In one possible implementation, the target channel selection module 44 is further specifically used for: based on Calculate the first ratio of communication time and communication quality of the central coordinator under each first channel.

[0074] in, This represents the first ratio of the central coordinator under each first channel. This indicates the communication time of the central coordinator on each first channel. This indicates the communication quality of the central coordinator on each first channel. This represents the bit error rate of the central coordinator in each first channel.

[0075] In one possible implementation, the target channel selection module 44 is further specifically used for: Real-time monitoring of the latest communication time and quality of the central coordinator communicating under the target channel.

[0076] Calculate the second ratio of the latest communication time to the latest communication quality.

[0077] When the error between the second ratio and the minimum value of the first ratio exceeds the preset error threshold, the process jumps to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

[0078] In one possible implementation, the target channel selection module 44 is further specifically used for: After a preset interval, the system jumps to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

[0079] Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. (See diagram below.) Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, it implements the steps in the various channel optimization selection method embodiments described above, for example... Figure 1 Steps 101 to 104 are shown. Alternatively, when the processor 50 executes the computer program 52, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 4 The functions of modules 41 to 44 are shown.

[0080] For example, the computer program 52 can be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 52 in the electronic device 5. For example, the computer program 52 can be divided into... Figure 4 Modules 41 to 44 are shown.

[0081] The electronic device 5 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device. The electronic device 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that... Figure 5 This is merely an example of electronic device 5 and does not constitute a limitation on electronic device 5. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.

[0082] The processor 50 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), 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.

[0083] The memory 51 can be an internal storage unit of the electronic device 5, such as a hard disk or memory. The memory 51 can also be an external storage device of the electronic device 5, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 51 can include both internal and external storage units of the electronic device 5. The memory 51 is used to store the computer program and other programs and data required by the electronic device. The memory 51 can also be used to temporarily store data that has been output or will be output.

[0084] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0085] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0086] Those skilled in the art will recognize that the units and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0087] In the embodiments provided by this invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0088] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0089] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0090] If the integrated module / unit is implemented as 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, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various channel optimization selection method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0091] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A channel optimization selection method, characterized in that, include: Obtain the starting network reference time of the central coordinator in the current beacon cycle; The first channel for communication by the central coordinator in the next beacon cycle is determined based on the starting network reference time and the total number of channels in the channel list; wherein, each channel in the channel list appears with equal probability at each position in the channel list. The process involves obtaining the communication time and quality of the central coordinator communicating based on the first channel in the next beacon period, and using the next beacon period as the new current beacon period. The process then jumps to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. After all channels in the channel list have been traversed and communicated by the central coordinator, the target channel of the central coordinator is determined based on the communication time and communication quality of the central coordinator under each of the first channels. The process of determining the first channel for communication by the central coordinator in the next beacon cycle based on the initial network reference time and the total number of channels in the channel list includes: The calculation result is obtained by performing a modulo operation on the total number of channels based on the initial network reference time; Based on the calculation results, the channel at the corresponding position in the channel list is selected as the first channel for the central coordinator to communicate in the next beacon cycle; The determination of the central coordinator's target channel based on the communication time and communication quality of the central coordinator in each of the first channels includes: Calculate the first ratio of communication time and communication quality of the central coordinator under each of the first channels; The first channel corresponding to the minimum value of all the first ratios is determined as the target channel of the central coordinator; The calculation of the first ratio of communication time and communication quality of the central coordinator under each of the first channels includes: based on Calculate the first ratio of communication time and communication quality of the central coordinator under each of the first channels; in, This represents the first ratio of the central coordinator under each of the first channels. This indicates the communication time of the central coordinator on each of the first channels. This indicates the communication quality of the central coordinator on each of the first channels. This represents the bit error rate of the central coordinator in each of the first channels.

2. The channel optimization selection method according to claim 1, characterized in that, After determining the target channel of the central coordinator based on the communication time and communication quality of the central coordinator in each of the first channels, the process further includes: Real-time monitoring of the latest communication time and quality of the central coordinator communicating under the target channel; Calculate a second ratio of the latest communication time to the latest communication quality; When the error between the second ratio and the minimum value of the first ratio exceeds a preset error threshold, the process jumps to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

3. The channel optimization selection method according to claim 1, characterized in that, After determining the target channel of the central coordinator based on the communication time and communication quality of the central coordinator in each of the first channels, the process further includes: After a preset interval, the system jumps to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel of the central coordinator determined after jumping to execute the step of "obtaining the starting network reference time of the central coordinator in the current beacon period" and subsequent steps is determined as the new target channel of the central coordinator.

4. The channel optimization selection method according to claim 1, characterized in that, Before obtaining the central coordinator's starting network reference time for the current beacon cycle, the following steps are also included: The order of all channels in the original channel list is shuffled to obtain a new channel list, such that each shuffled channel appears with equal probability at each position in the channel list.

5. A channel optimization selection device, characterized in that, include: The network reference time acquisition module is used to acquire the starting network reference time of the central coordinator in the current beacon cycle; The first channel determination module is used to determine the first channel for the central coordinator to communicate in the next beacon cycle based on the starting network reference time and the total number of channels in the channel list; wherein, each channel in the channel list appears with equal probability at each position in the channel list. The communication data acquisition module is used to acquire the communication time and communication quality of the central coordinator communicating based on the first channel in the next beacon period, and to take the next beacon period as the new current beacon period, and jump to execute the step of "acquiring the starting network reference time of the central coordinator in the current beacon period" and subsequent steps. The target channel selection module is used to determine the target channel of the central coordinator based on the communication time and communication quality of the central coordinator under each of the first channels after all channels in the channel list have been traversed and communicated by the central coordinator. The process of determining the first channel for communication by the central coordinator in the next beacon cycle based on the initial network reference time and the total number of channels in the channel list includes: The calculation result is obtained by performing a modulo operation on the total number of channels based on the initial network reference time; Based on the calculation results, the channel at the corresponding position in the channel list is selected as the first channel for the central coordinator to communicate in the next beacon cycle; The determination of the central coordinator's target channel based on the communication time and communication quality of the central coordinator in each of the first channels includes: Calculate the first ratio of communication time and communication quality of the central coordinator under each of the first channels; The first channel corresponding to the minimum value of all the first ratios is determined as the target channel of the central coordinator; The calculation of the first ratio of communication time and communication quality of the central coordinator under each of the first channels includes: based on Calculate the first ratio of communication time and communication quality of the central coordinator under each of the first channels; in, This represents the first ratio of the central coordinator under each of the first channels. This indicates the communication time of the central coordinator on each of the first channels. This indicates the communication quality of the central coordinator on each of the first channels. This represents the bit error rate of the central coordinator in each of the first channels.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 4 above.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 4 above.

Citation Information

Patent Citations

  • Wireless sensor network self-adaption channel switching method based on signal quality predication

    CN105979599A

  • Channel selection method of WIFI module in mobile equipment and mobile equipment

    CN111132341A