[go: up one dir, main page]

CN119697657A - Channel determination method, device, computer storage medium and electronic device - Google Patents

Channel determination method, device, computer storage medium and electronic device Download PDF

Info

Publication number
CN119697657A
CN119697657A CN202311248361.3A CN202311248361A CN119697657A CN 119697657 A CN119697657 A CN 119697657A CN 202311248361 A CN202311248361 A CN 202311248361A CN 119697657 A CN119697657 A CN 119697657A
Authority
CN
China
Prior art keywords
channel
delay time
random delay
type
wireless
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311248361.3A
Other languages
Chinese (zh)
Inventor
卢军志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202311248361.3A priority Critical patent/CN119697657A/en
Publication of CN119697657A publication Critical patent/CN119697657A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种信道确定方法、装置、计算机存储介质及电子设备。其中,该方法包括:响应于开机指令,在预设范围内产生第一随机延时时间;第一随机延时时间与其他设备产生的随机延时时间不同;在第一随机延时时间结束后,开始无线信道配置处理,确定工作信道。采用该方法可以在同一场景有多个设备的情况下,保证无线网络的稳定性,提升了网络的抗干扰能力。

The present application discloses a channel determination method, device, computer storage medium and electronic device. The method includes: in response to a power-on instruction, generating a first random delay time within a preset range; the first random delay time is different from the random delay time generated by other devices; after the first random delay time ends, starting the wireless channel configuration process to determine the working channel. The method can ensure the stability of the wireless network when there are multiple devices in the same scene, and improve the anti-interference ability of the network.

Description

Channel determination method, device, computer storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and apparatus for determining a channel, a computer storage medium, and an electronic device.
Background
The same scenario typically involves multiple devices using a wireless network. In practical applications, the channel resources of the wireless network channel are limited. Based on this, a situation may occur in which a plurality of devices use the same channel, resulting in channel interference, degradation of wireless network transmission performance, data loss, connection instability, and the like.
In the related art, wireless network channels are typically manually configured for a plurality of devices. This approach is inefficient when there are many devices to be configured and it is difficult to guarantee the stability of the wireless network.
Disclosure of Invention
The embodiment of the application provides a channel determining method, a device, a computer storage medium and electronic equipment, which can improve the efficiency of channel configuration when the equipment is connected with a wireless network.
In a first aspect, an embodiment of the present application provides a channel determining method applied to a wireless transmission system, where the wireless transmission system includes at least two transmitting devices and receiving devices corresponding to each transmitting device, and the method is performed by a target device, where the target device is any one of the at least two transmitting devices or any one of the at least two receiving devices, and the method includes:
Generating a first random delay time within a preset range in response to a starting-up instruction, wherein the first random delay time is different from random delay time generated by at least two transmitting devices or at least one other device except a target device in at least two receiving devices;
And after the first random delay time is over, starting wireless channel configuration processing, and determining a working channel.
In a second aspect, an embodiment of the present application provides a channel determining apparatus applied to a wireless transmission system, where the wireless transmission system includes at least two transmitting devices and receiving devices corresponding to each transmitting device, where the apparatus is applied to a target device, and the target device is any one of the at least two transmitting devices or any one of the at least two receiving devices, and the apparatus includes:
The system comprises a delay module, a first random delay time generation module, a second random delay time generation module and a second random delay time generation module, wherein the delay module is used for responding to a starting instruction and generating a first random delay time in a preset range;
And the configuration module is used for starting wireless channel configuration processing after the first random delay time is over, and determining a working channel.
In a third aspect, embodiments of the present application provide a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the method steps provided in the first aspect of embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, which is characterized by comprising a processor and a memory, wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps provided in the first aspect of the embodiment of the present application.
The technical scheme provided by the embodiments of the application has the beneficial effects that at least:
The application provides a channel determining method, in a wireless transmission system comprising a plurality of receiving devices, if a plurality of receiving devices are started at the same time, random delay is carried out when the receiving devices are started, after the delay is finished, wireless channel configuration processing is started based on the channel quality of each channel in a wireless network, the time for selecting working channels among the devices is staggered through carrying out the random delay, then the configuration processing of the wireless channels is carried out, the corresponding working channels are selected, the efficiency of selecting the channels by the devices is improved, and the stability of the wireless network is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a wireless transmission system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a channel determining method according to an embodiment of the present application;
fig. 3A is a schematic diagram of channel concentration according to an embodiment of the present application;
fig. 3B is a schematic diagram of channel random dispersion according to an embodiment of the present application;
fig. 4 is a schematic diagram of channel switching according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an extended bandwidth provided in an embodiment of the present application;
fig. 6 is a block diagram of a channel determining apparatus according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the features and advantages of the present application more comprehensible, embodiments accompanied with figures in the present application are described in detail below, wherein the embodiments are described only in some but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application as detailed in the accompanying claims.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or" describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate that there are three cases of a alone, a and B together, and B alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In daily life, there are typically many devices in the same wireless network scenario. When the equipment is started, the equipment usually selects and uses the channel with the best network quality according to a network protocol and related technologies, and when a plurality of equipment is started at the same time, the time for selecting the channels is consistent, and the same working channel is easy to select, so that interference is caused, and the quality transmission performance of the wireless network is reduced, the data is lost and the connection is unstable. For example, in a school scenario, wireless microphones and speakers are configured in each classroom for teaching, and are often turned on at the same time during a class, and under the condition that the number of channels is very limited at present, a situation that a plurality of wireless devices use the same channel often occurs. In view of this, the conventional channel adjustment method manually configures wireless network channels for a plurality of devices, and in the case that there are many devices to be adjusted, the manual setting method has a problem that the adjustment efficiency is low, and it is difficult to ensure the stability of the wireless network.
Therefore, in the channel determining method, if a plurality of devices are started at the same time in the wireless transmission system, random delay is performed when the devices are started, after the delay is finished, wireless channel configuration processing is started based on the channel quality of each channel in the wireless network, working channels are selected, and the time for each device to select the working channels is staggered through the random delay, so that the possibility that the plurality of devices simultaneously select the same channel can be reduced, the efficiency of selecting the working channels by the devices is improved, and the stability of the wireless network is ensured.
In order to more clearly clarify the technical scheme of the present application, the related concepts related to the present application are explained below.
The channel is a channel through which signals are transmitted in a communication system, and is formed by a transmission medium through which signals are transmitted from a transmitting end to a receiving end. According to the IEEE 802.11 protocol, in China, a 2.4GHz Wi-Fi frequency band is divided into 13 overlapped channels, the width of each channel is 22MHz (the width of each channel in the IEEE 802.11g standard and the IEEE 802.11n standard is 20MHz,IEEE 802.10B MHz), and the width of each channel in the 5GHz Wi-Fi frequency band is divided into 13 channels, and the width of each channel is 20MHz.
Signal strength (RECEIVED SIGNAL STRENGTH indication, RSSI) at the time of radio reception is related to the transmit power of the radio module, the design of the radio frequency front end and the gain of the antenna, the unit being that of power, generally expressed in dBm. The smaller the signal strength, the lower the channel occupancy in the channel.
Fig. 1 schematically illustrates an architecture of a wireless communication system according to an embodiment of the present application.
As shown in fig. 1, the wireless transmission system 100 may include at least two transmitting devices 101 and at least two receiving devices 102 (illustrated in fig. 1 as an example in which the wireless transmission system 100 includes three transmitting devices and three receiving devices). Each transmitting device 101 corresponds to a respective receiving device 102. The transmitting device 101 may transmit data to the corresponding receiving device 102 over a wireless network. The transmitting device 101 may be hardware or software. When the transmitting device 101 is hardware, it may be various electronic transmitting devices including, but not limited to, a wireless microphone, a smart watch, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like. When the transmitting device 101 is software, it may be installed in the above-listed electron-emitting device, which may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not particularly limited herein. The receiving device 102 may be hardware or software. When the receiving device 102 is hardware, it may be a variety of electronic receiving devices including, but not limited to, a wireless sound box, a wireless projector, a wireless handle, a wireless headset, and the like. When the receiving apparatus 102 is software, it may be installed in the above-listed electronic receiving apparatus, which may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not particularly limited herein.
Specifically, a wireless transmitting module is arranged in the transmitting device, and a wireless receiving module is arranged in the receiving device. The wireless transmitting module and the wireless receiving module can be Wi-Fi modules. The transmitting device may send data to the receiving device via the wireless transmitting module. The receiving device may receive the data through a wireless receiving module. The following embodiments of the present application will be described by taking the transmitting device 101 as a wireless microphone and the receiving device 102 as a wireless speaker. The wireless microphone can be connected to the corresponding wireless sound box through a wireless network, and the collected sound signals are transmitted to the wireless sound box and played through the wireless sound box.
In the embodiment of the application, the wireless microphone can also comprise an audio collector and an encoder besides the wireless transmitting module. The audio collector may collect sound signals. The encoder may encode the acquired sound signal. The wireless transmitting module can transmit the encoded sound signals to the wireless loudspeaker box through a wireless network.
In the embodiment of the application, the wireless sound box can also comprise a decoder and a loudspeaker besides the wireless receiving module. The wireless receiving module can receive the coded sound signals sent by the wireless microphone through a wireless network. The decoder may decode the received sound signal. The speaker may play the decoded sound signal.
It should be understood that the number of transmitting devices and receiving devices in fig. 1 is merely illustrative, and any number of transmitting devices and receiving devices may be used, as desired for implementation.
It should be noted that, the channel determining method provided in the embodiment of the present application may be performed by any transmitting device in the wireless transmission system 100 shown in fig. 1, or may be performed by any receiving device in the wireless transmission system 100 shown in fig. 1.
If the method is executed by the transmitting device, the transmitting device may operate in a hot spot mode after the transmitting device and the corresponding receiving device are powered on. After determining the operating channel, the transmitting device may broadcast on the channel. The receiving device may poll its corresponding transmitting device for broadcast signals on each channel. After the receiving device receives a signal on the operating channel selected by its corresponding transmitting device, wireless communication may be established with the transmitting device. The transmitting device and the receiving device can perform data transmission on the selected working channel.
If the method is executed by the receiving device, the receiving device may operate in the hot spot mode after the transmitting device and the corresponding receiving device are powered on. After determining the operating channel, the receiving device may broadcast on the channel. The transmitting device may poll its corresponding receiving device for broadcast signals on each channel. After a transmitting device receives a signal on an operating channel selected by its corresponding receiving device, wireless communication may be established with the receiving device. The transmitting device and the receiving device can perform data transmission on the selected working channel. Referring to fig. 2, fig. 2 is a flow chart of a channel determining method according to an embodiment of the application. For convenience of description, the execution subject of the embodiment of the present application will be referred to as a target device. As described above, the target device may be any one of the transmitting devices in the wireless transmission system 100 shown in fig. 1, or may be any one of the receiving devices in the wireless transmission system 100 shown in fig. 1.
As shown in fig. 2, the channel determining method at least may include:
S201, responding to a starting instruction, and generating a first random delay time in a preset range.
Wherein the first random delay time is different from a random delay time generated by at least two transmitting devices or at least one other device of the at least two receiving devices except the target device. That is, if the target device is a transmitting device, the first random delay time generated by the target device is different from the random delay time generated by at least one other transmitting device other than the target device in at least two transmitting devices in the wireless transmission system 100. In other words, the first random delay time generated by each transmitting device in the wireless transmission system 100 at power-on is at least partially different, but may also be completely different. Wherein the first random delay time belongs to a preset range. The preset range is, for example, but not limited to, 1 millisecond to 20 milliseconds. That is, the first random delay time is in the range of 1 millisecond to 20 milliseconds.
If the target device is a receiving device, the first random delay time generated by the target device is different from the random delay time generated by at least one other receiving device except the target device in at least two receiving devices in the wireless transmission system 100. In other words, the first random delay time generated by each receiving device in the wireless transmission system 100 at power-on is at least partially different, but may also be completely different.
Specifically, when the target device receives the power-on command, the target device may be powered on in response to the power-on command, generate a random number within a preset range, and take the random number as the first random delay time.
Specifically, the target device can generate a random number in a preset range by using a timer contained in the target device as a random seed, and the random number is used as a first random delay time. The preset range is, for example, 1 to 20 milliseconds. That is, the timer may generate a random number as the first random delay time within a preset range of 1 ms to 20 ms. It is known that the target device maintains a waiting state until the first random delay time has arrived.
S202, after the first random delay time is finished, wireless channel configuration processing is started, and an operating channel is determined.
Specifically, after the first random delay time is over, the target device starts scanning channels in the wireless network, returns various data of the channels, and determines a working channel according to the various data of the channels. The data of the channel includes, but is not limited to, RSSI, packet loss rate, interference level, congestion level, adjacent channel interference, etc.
Specifically, an idle channel may be preferentially selected as the working channel. If no idle channel exists, the channel with the best channel quality is selected as the working channel according to each item of data of each channel.
Specifically, RSSI may be used as an indicator to determine whether a channel is idle. When no signal is transmitted in the channel (i.e. when the channel is idle), the current channel can be indicated as the idle channel when the RSSI is a preset threshold. The preset threshold is, for example, but not limited to, -128dBm. If the RSSI of the channel is larger than the preset threshold, the signal is transmitted in the channel, and the signal strength is stronger as the RSSI value is larger.
Specifically, the operating channel may be preferentially selected among the 5G channels. If the working channel cannot be selected from the 5G channels, the working channel can be selected from the 2.4G channels. In the embodiment of the application, a 5G channel can be used as a first type channel, and a 2.4G channel can be used as a second type channel.
Specifically, after the first random delay is finished, the target device may traverse each channel of the first type in turn, and determine that the channel of the first type of the target is a working channel when the signal strength corresponding to the channel of the first type of the target traversed is equal to a preset threshold. I.e. one free channel is selected from the channels of the first type as the working channel. It can be appreciated that when the target device traverses to the idle channel, the idle channel can be directly used as a working channel, and the remaining channels do not need to be traversed.
If the signal strength corresponding to the channel of which the target first type does not exist is equal to the preset threshold value after the target device finishes traversing each channel of the first type, that is, if no idle channel exists in the channels of the first type, the channel quality of each channel of the first type is compared, and the channel of the first type, the channel quality of which meets the first preset condition, is determined to be a working channel.
Specifically, the channel quality may be determined by parameters such as RSSI, packet loss rate, interference level, congestion level, and adjacent channel interference. It is known that the smaller the RSSI, the lower the occupancy of the channel, i.e. the better the channel quality. The smaller the packet loss rate, the better the channel quality. The lower the interference level, the better the channel quality. The lower the congestion level, the better the channel quality. The weaker the adjacent channel interference, the better the channel quality. In the embodiment of the application, the channel quality can be determined by part or all of the parameters. When the channel quality is determined by using multiple parameters together, the multiple parameters may be weighted and summed to obtain a final result. The weights of the parameters can be default weights which are set uniformly, and can also be set by a user according to the self requirements, and the embodiment of the application is not limited to the default weights.
Alternatively, the first type of channel that satisfies the first preset condition may be a first type of channel with the best channel quality. That is, the first type of channel having the best channel quality is determined as the operation channel, so that the best transmission effect of the selected operation channel can be ensured.
Alternatively, the first type of channel that satisfies the first preset condition may be any one of a plurality of first type channels with better channel quality. For example, the quality of each channel may be sorted from large to small, and one channel may be selected as the working channel from among channels of the channel quality rank 3.
In a specific implementation, after the target device scans all the channels of the first type, there may be all channels of the first type that have poor quality (serious channel congestion), and then a second type of channel may be scanned at this time, and an operating channel may be selected from the second type of channels.
Specifically, if the channel quality of each first type of channel does not meet the second preset condition, sequentially traversing each second type of channel, and determining a working channel according to the traversing result of each second type of channel.
Wherein the second type is different from the first type. The second preset condition is different from the first preset condition.
Specifically, the second preset condition may be that the channel idle time idle_time of the first type of channel is smaller than a time threshold and/or that the noise_floor of the first type of channel exceeds a noise threshold. Where idle_time is used to describe the time when the device is in an inactive state. The larger the parameter, the longer the channel idle time, the better the channel quality. noise floor is the ambient noise of the channel. The smaller the parameter, the less noise that indicates the channel and the lower the channel quality.
When the idle time of each first type of channel is smaller than the time threshold and/or the noise of each first type of channel is larger than the noise threshold, the congestion of each first type of channel is indicated, that is, each first type of channel cannot be used as a working channel. Then at this point the second type of channel may be scanned and an operating channel selected from the second type of channel.
The process of selecting an operating channel from the second type of channel and the process of selecting an operating channel from the first type of channel and the basis are similar, and the idle channel is preferentially selected as the operating channel. And if no idle channel exists, selecting a channel with channel quality meeting a first preset condition as a working channel. Specific choices are made according to the description of the previous embodiments, and are not repeated here.
After the working channel is determined, the target device can perform data transmission on the working channel to realize wireless communication. Then data transmission may be performed on the working channel after the first random delay less target device completes the selection of that channel. And then, when the target equipment with larger first random delay starts to select the channel, the quality of the channel which is selected before can be used as the basis of the current selection, so that the situation that the same channel is selected at the same time is avoided reasonably.
That is, since each target device generates the first random delay when being powered on, the first random delays of the target devices may be different, and the time when each target device starts to select the working channel after the first random delay is finished is different, so that the finally selected working channel may be randomly scattered.
Referring to fig. 3, fig. 3 illustrates a schematic diagram of channel concentration and channel random dispersion. For convenience of description, the embodiment of the application uses a 5G channel as an example for schematic illustration. As shown in fig. 3A, when a plurality of devices are turned on at the same time, the same working channel is easily selected, and a channel concentration condition occurs, so that signals interfere with each other, and problems such as degradation of communication quality, data transmission errors, connection interruption and the like can occur. As shown in fig. 3B, each device may have a different delay time by performing a random delay before selecting an operating channel. Therefore, when the channels are selected, a certain time difference exists, the probability of selecting the same channel at the same time is reduced, so that channel conflict is avoided, the occurrence of channel concentration is effectively prevented, and each channel is reasonably selected.
Further, after determining the working channel, the transmitting device performs data transmission on the working channel and detects channel quality of adjacent channels of the working channel. In particular, channel quality may be commonly determined based on a number of parameters including, but not limited to, channel bit error rate, RSSI, and channel signal to noise ratio. Taking RSSI as an example, when the RSSI of the adjacent channel is greater than-40 dBm, it indicates that the adjacent channel is performing high-power data transmission, and when the signal on the adjacent channel and the signal on the working channel of the transmitting device are simultaneously transmitted, the receiving end may not correctly decode the signal, resulting in communication failure or data error, so that larger interference is generated, and it is determined that the channel quality of the adjacent channel is lower.
Further, after the target device selects the working channel and starts data transmission, the channel quality of the adjacent channel of the working channel can be detected, and when the channel quality of the adjacent channel meets the third preset condition, the working channel is switched to realize the frequency band isolation from surrounding devices. Wherein the third preset condition may be that the RSSI of the channel is greater than a certain value, such as, but not limited to, greater than-40 dBm. That is, if the signal strength of the adjacent channel is strong, it means that the device selecting the adjacent channel may be located near the current target device, so that a certain interference may be generated on the signal transmission of the target device, and then the dynamic switching of the working channel may be performed at this time, and the device switches to the channel with weak channel strength of the adjacent channel, so as to realize the frequency band isolation from the surrounding devices.
Referring to fig. 4, fig. 4 is a schematic diagram of channel switching according to an embodiment of the application. As shown in fig. 4, after the device in classroom 1 selects channel 153 as the working channel, if the signal strength of its adjacent channel 149 is detected to exceed-40 dBm, it means that the device selecting channel 149 may be a device located near classroom 1 (e.g., a device in the left classroom of classroom 1), and in order to avoid signal interference between channels, the device in classroom 1 may switch its working channel from channel 153 to channel 157, thereby implementing band isolation with the device selecting channel 149, reducing signal interference between each other, and improving communication quality.
In a specific implementation, there may be a first random time generated by a plurality of devices that is the same, then the same operating channel is selected, and then the channel quality of the adjacent channels is detected simultaneously. To avoid switching devices to the same operating channel after band isolation in this case, embodiments of the present application may implement further discretization by a second random delay.
Specifically, after the first random delay finishes selecting the working channel, the target device may generate a second random delay time, detect the channel quality of the adjacent channel of the working channel after the second random delay time arrives, and switch the working channel when the channel quality of the adjacent channel meets a third preset condition. The second random delay time generation process is similar to the first random delay time generation process, and will not be described herein.
In addition, in the process of data transmission, the target equipment can also continuously monitor the data transmission quality, identify interference according to the monitoring result and the current wireless network load condition, and dynamically adjust the wireless channel, thereby realizing channel self-adaptive adjustment. For example, when the packet loss rate of the data transmission is monitored to be serious, or the data transmission delay is monitored to be serious, it can be determined that the current data transmission quality is poor, and the working channel needs to be switched. And then selecting a proper channel as a new working channel by combining the scanning results of all channels of the current wireless network, so as to ensure the stability of data transmission.
Further, when the target device detects that the adjacent channel occupancy of the working channel is low, the target device can also perform spread spectrum processing on the current working channel. That is, if the adjacent channel of the working channel is an idle channel, the bandwidth of the working channel can be expanded, so as to further improve the effect of data transmission. Referring to fig. 5, fig. 5 is a schematic diagram of an extended bandwidth provided in an embodiment of the present application. As shown in fig. 5, the working channel of the target device is channel 153, and the bandwidth of the channel is 20M. But both the adjacent channel 149 and channel 157 are idle channels, the bandwidth of the channels can be spread from 20M to 40M. The magnitude of the spreading is not limited in a particular implementation and the embodiments are not claimed to be so limited.
The embodiment of the application can start wireless channel configuration processing based on the channel quality of each channel in the wireless network after the delay is finished if a plurality of receiving devices are started at the same time in the wireless transmission system comprising a plurality of receiving devices, and the opportunity of selecting the working channels among the devices is staggered by carrying out the random delay, then carrying out the configuration processing of the wireless channels, selecting the corresponding working channels, improving the efficiency of selecting the channels by the devices and ensuring the stability of the wireless network. Further, after the working channel is selected and data transmission is performed, further dispersion of the channel can be realized through the second random delay time when the working channel is dynamically switched, so that the transmission quality of wireless data is further ensured. In addition, the embodiment of the application can realize the self-adaptive adjustment of the channel and the channel spread spectrum by monitoring the quality of each channel in the process of data transmission, thereby improving the effect of data transmission.
In some possible embodiments, when each device is powered on simultaneously, each device performs a first random delay according to a random number generated by its own timer. After the delay is finished, the first for loop is entered for traversing, and whether a 5G idle channel exists or not is searched. The criterion for the 5G idle channel may be the signal strength in the channel mentioned in the previous embodiment. For example, if the signal strength is-128 dBm, then the channel may be determined to be a 5G idle channel. That is, when the signal strength of a channel traversed to the channel is-128 dBm, the channel can be determined to be a 5G idle channel, so that the traversing is finished, the channel number of the channel is returned, and the channel is taken as a working channel.
If the signal strength of the channel which does not exist after the traversing is-128 dBm, the 5G idle channel is not present. And then the second for cycle is entered for traversing, and the channel quality of each channel is obtained. After obtaining the channel quality of each channel, determining the channel with the best channel quality, if the channel quality of the channel meets the second preset condition, returning the channel number of the channel, and taking the channel as a working channel.
If the channel quality of the channel does not meet the second preset condition, it indicates that all the 5G channels are poor in quality, that is, there is no available 5G channel, so that the third for loop is entered for traversing to find out whether there is a 2.4G idle channel. The criterion for the 2.4G idle channel may be the signal strength in the channel mentioned in the previous embodiment. For example, if the signal strength is-128 dBm, then the channel may be determined to be a 2.4G idle channel. That is, when the signal strength of a channel traversed to the channel is-128 dBm, the channel can be determined to be a 2.4G idle channel, so that the traversing is finished, the channel number of the channel is returned, and the channel is taken as a working channel.
If the signal strength of the channel which does not exist after the traversing is-128 dBm, the 2.4G idle channel is not existed currently. And then a fourth for cycle is entered for traversing, and the channel quality of each channel is obtained. After obtaining the channel quality of each channel, determining the channel with the best channel quality, returning the channel number of the channel, and taking the channel as a working channel.
Referring to fig. 6, fig. 6 is a block diagram illustrating a channel determining apparatus according to an embodiment of the present application. The device is applied to a wireless transmission system, the wireless transmission system comprises at least two transmitting devices and receiving devices corresponding to the transmitting devices respectively, and the device is applied to a target device, wherein the target device is any one of the at least two transmitting devices or any one of the at least two receiving devices. As shown in fig. 6, the channel determining apparatus 600 may include a delay module 610 and a configuration module 620. Wherein:
the first delay module 610 is configured to generate a first random delay time within a preset range in response to a power-on command, where the first random delay time is different from a random delay time generated by at least two transmitting devices or at least one other device of at least two receiving devices except for a target device.
The configuration module 620 is configured to start the wireless channel configuration process after the first random delay time is over, and determine the working channel.
In some possible embodiments, the first delay module 610 is specifically configured to generate a random number within a preset range in response to a power-on command, and take the random number as the first random delay time.
In some possible embodiments, the configuration module 620 includes:
The traversing unit is used for traversing each first type of channel in turn after the first random delay time is over;
and the determining unit is used for determining the channel of the first type of the target as a working channel when the signal intensity corresponding to the channel of the first type of the target is traversed to be equal to a preset threshold value.
In some possible embodiments, the configuration module 620 further comprises:
a comparison unit, configured to compare channel quality of each first type of channel if there is no signal strength corresponding to the target first type of channel equal to a preset threshold;
and the determining unit is also used for determining a first type of channel with the channel quality meeting a first preset condition as an operating channel.
In some possible embodiments, the traversing unit is further configured to sequentially traverse each of the channels of the second type when the channel quality of each of the channels of the first type does not meet a second preset condition, where the second type is different from the first type, and the second preset condition is different from the first preset condition.
And the determining unit is also used for determining the working channel according to the traversing result of each channel of the second type.
In some possible embodiments, the channel determining apparatus 600 further comprises:
The detection module is used for detecting the channel quality of the adjacent channels of the working channel;
And the switching module is used for switching the working channel under the condition that the channel quality meets a third preset condition.
In some possible embodiments, the channel determining apparatus 600 further comprises:
the second delay module is used for generating a second random delay time;
The detection module is specifically configured to detect channel quality of an adjacent channel of the working channel after the second random delay time is over.
The embodiment of the application can start wireless channel configuration processing based on the channel quality of each channel in the wireless network after the delay is finished if a plurality of receiving devices are started at the same time in the wireless transmission system comprising a plurality of receiving devices, and the opportunity of selecting the working channels among the devices is staggered by carrying out the random delay, then carrying out the configuration processing of the wireless channels, selecting the corresponding working channels, improving the efficiency of selecting the channels by the devices and ensuring the stability of the wireless network. Further, after the working channel is selected and data transmission is performed, further dispersion of the channel can be realized through the second random delay time when the working channel is dynamically switched, so that the transmission quality of wireless data is further ensured. In addition, the embodiment of the application can realize the self-adaptive adjustment of the channel and the channel spread spectrum by monitoring the quality of each channel in the process of data transmission, thereby improving the effect of data transmission.
It should be noted that, in the channel determining apparatus provided in the foregoing embodiment, when the channel determining method is executed, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the channel determining apparatus provided in the foregoing embodiments and the channel determining method embodiment belong to the same concept, which embody the implementation process in detail with reference to the method embodiment, and are not repeated herein.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device may be any one of the plurality of transmitting devices shown in fig. 1, or may be any one of the plurality of receiving devices shown in fig. 1. As shown in fig. 7, the electronic device 700 may include at least one processor 701, at least one network interface 704, a user interface 703, a memory 705, a wireless communication module 706, and at least one communication bus 702.
Wherein the communication bus 702 is used to enable connected communications between these components.
The user interface 703 may include a Display screen (Display), a Camera (Camera), and the optional user interface 703 may include a wireless interface, among others.
The network interface 704 may optionally include a standard wireless interface, among other things.
The wireless communication module 706 is configured to implement transmission and reception of wireless data. Such as but not limited to Wi-Fi modules.
Wherein the processor 701 may include one or more processing cores. The processor 10901, using various interfaces and lines, connects various portions of the overall electronic device 700, and performs various functions of the electronic device 700 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 705, and invoking data stored in the memory 705. Alternatively, the processor 701 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 701 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like, the GPU is used for rendering and drawing contents required to be displayed by the display screen, and the modem is used for processing wireless communication. It will be appreciated that the modem may not be integrated into the processor 701 and may be implemented by a single chip.
The Memory 705 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 705 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 705 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 705 may include a stored program area that may store instructions for implementing an operating system, instructions for at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc., and a stored data area that may store data related to the various method embodiments described above, etc. The memory 705 may also optionally be at least one storage device located remotely from the processor 701. As shown in fig. 7, an operating system, a network communication module, a user interface module, and a channel determination application program may be included in the memory 705, which is one type of computer storage medium.
In the electronic device 700 shown in fig. 7, the user interface 703 is mainly used for providing an input interface for a user and acquiring data input by the user, while the processor 701 may be used for calling a channel determination application program stored in the memory 705 and specifically performing the following operations:
Generating a first random delay time within a preset range in response to a starting-up instruction, wherein the first random delay time is different from random delay time generated by at least two transmitting devices or at least one other device except a target device in at least two receiving devices;
And after the first random delay time is over, starting wireless channel configuration processing, and determining a working channel.
In some possible embodiments, the processor 701 is configured to generate a random number within a preset range as the first random delay time in response to the power-on command when generating the first random delay time.
In some possible embodiments, the processor 701 is configured to start the wireless channel configuration process after the first random delay time is finished, and is specifically configured to perform, when determining the working channel, traversing each first type of channel in turn after the first random delay time is finished;
And determining the channel of the first type of the target as a working channel when the signal strength corresponding to the channel of the first type of the target is equal to a preset threshold value.
In some possible embodiments, the processor 701 is further configured to compare the channel quality of each first type of channel if the signal strength corresponding to the target channel is not equal to the preset threshold after traversing each first type of channel in turn after the first random delay time expires, and determine the first type of channel whose channel quality meets the first preset condition as the working channel.
In some possible embodiments, the processor 701 is further configured to sequentially traverse each of the channels of the second type if the channel quality of each of the channels of the first type does not meet a second preset condition, wherein the second type is different from the first type, the second preset condition is different from the first preset condition, and determine the working channel according to the traversing result of each of the channels of the second type.
In some possible embodiments, the processor 701 is further configured to detect a channel quality of an adjacent channel of the working channel after determining the working channel, and switch the working channel if the channel quality meets a preset condition.
In some possible embodiments, the processor 701 is further configured to generate a second random delay time before detecting the channel quality of the adjacent channel of the operating channel.
The processor 701 is configured to detect the channel quality of the adjacent channel of the working channel after the second random delay time is over.
The embodiment of the application can start wireless channel configuration processing based on the channel quality of each channel in the wireless network after the delay is finished if a plurality of receiving devices are started at the same time in the wireless transmission system comprising a plurality of receiving devices, and the opportunity of selecting the working channels among the devices is staggered by carrying out the random delay, then carrying out the configuration processing of the wireless channels, selecting the corresponding working channels, improving the efficiency of selecting the channels by the devices and ensuring the stability of the wireless network. Further, after the working channel is selected and data transmission is performed, further dispersion of the channel can be realized through the second random delay time when the working channel is dynamically switched, so that the transmission quality of wireless data is further ensured. In addition, the embodiment of the application can realize the self-adaptive adjustment of the channel and the channel spread spectrum by monitoring the quality of each channel in the process of data transmission, thereby improving the effect of data transmission.
Embodiments of the present application also provide a computer-readable storage medium having instructions stored therein, which when executed on a computer or processor, cause the computer or processor to perform one or more of the steps of the embodiment shown in fig. 2 described above. The respective constituent modules of the above-described channel determination apparatus may be stored in the computer-readable storage medium if implemented in the form of software functional units and sold or used as independent products.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disk (DIGITAL VERSATILE DISC, DVD)), or a semiconductor medium (e.g., a Solid state disk (Solid STATE DISK, SSD)), or the like.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program, which may be stored in a computer-readable storage medium, instructing relevant hardware, and which, when executed, may comprise the embodiment methods as described above. The storage medium includes various media capable of storing program codes such as a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk. The technical features in the present examples and embodiments may be arbitrarily combined without conflict.
The above-described embodiments are merely illustrative of the preferred embodiments of the present application and are not intended to limit the scope of the present application, and various modifications and improvements made by those skilled in the art to the technical solution of the present application should fall within the scope of protection defined by the claims of the present application without departing from the design spirit of the present application.

Claims (10)

1. A channel determining method applied to a wireless transmission system including at least two transmitting apparatuses and receiving apparatuses respectively corresponding to each of the transmitting apparatuses, the method being performed by a target apparatus, which is either one of the at least two transmitting apparatuses or either one of the at least two receiving apparatuses, the method comprising:
generating a first random delay time within a preset range in response to a starting-up instruction, wherein the first random delay time is different from random delay time generated by at least one other device except the target device in the at least two transmitting devices or the at least two receiving devices;
And after the first random delay time is over, starting wireless channel configuration processing, and determining a working channel.
2. The method of claim 1, wherein generating a first random delay time within a predetermined range in response to a power-on command comprises:
and responding to a starting instruction, generating a random number in the preset range, and taking the random number as the first random delay time.
3. The method of claim 1, wherein starting the radio channel configuration process after the first random delay time has ended, determining the operating channel comprises:
after the first random delay time is over, traversing each first type of channel in turn;
and determining the channel of the target first type as a working channel when the signal strength corresponding to the channel of the target first type is equal to a preset threshold value.
4. The method of claim 3, wherein after traversing each channel of the first type in turn after the first random delay time has ended, the method further comprises:
if the signal intensity corresponding to the channels of the first type of the targets does not exist, the channel quality of each channel of the first type is compared;
And determining a first type of channel with channel quality meeting a first preset condition as an operating channel.
5. The method of claim 4, wherein the method further comprises:
if the channel quality of each first type of channel does not meet a second preset condition, traversing each second type of channel in turn, wherein the second type is different from the first type, and the second preset condition is different from the first preset condition;
And determining an operating channel according to the traversing result of each channel of the second type.
6. The method of claim 1, wherein after the determining the operating channel, the method further comprises:
Detecting channel quality of adjacent channels of the working channel;
and switching the working channel under the condition that the channel quality meets a third preset condition.
7. The method of claim 6, wherein prior to said detecting the channel quality of adjacent channels of said operating channel, said method further comprises:
Generating a second random delay time;
the detecting the channel quality of the adjacent channels of the working channel includes:
and after the second random delay time is finished, detecting the channel quality of the adjacent channel of the working channel.
8. A channel determining apparatus, applied to a wireless transmission system including at least two transmitting devices and receiving devices respectively corresponding to each of the transmitting devices, the apparatus being applied to a target device, which is any one of the at least two transmitting devices or any one of the at least two receiving devices, the apparatus comprising:
The system comprises a delay module, a delay module and a delay module, wherein the delay module is used for responding to a starting instruction and generating a first random delay time in a preset range, and the first random delay time is different from the random delay time generated by at least one other device except the target device in the at least two transmitting devices or the at least two receiving devices;
and the configuration module is used for starting wireless channel configuration processing after the first random delay time is over, and determining a working channel.
9. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any of claims 1-7.
10. An electronic device comprising a processor and a memory, wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-7.
CN202311248361.3A 2023-09-25 2023-09-25 Channel determination method, device, computer storage medium and electronic device Pending CN119697657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311248361.3A CN119697657A (en) 2023-09-25 2023-09-25 Channel determination method, device, computer storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311248361.3A CN119697657A (en) 2023-09-25 2023-09-25 Channel determination method, device, computer storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN119697657A true CN119697657A (en) 2025-03-25

Family

ID=95039478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311248361.3A Pending CN119697657A (en) 2023-09-25 2023-09-25 Channel determination method, device, computer storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN119697657A (en)

Similar Documents

Publication Publication Date Title
US10510356B2 (en) Voice processing method and device
US11722545B2 (en) Systems and methods for adaptively improving the perceived quality of a video conference by passive users
US10950238B2 (en) Bluetooth speaker base, method and system for controlling thereof
US11818742B1 (en) Network channel selection for device with co-located radio transmitters and receivers
CN108712778B (en) Channel selection method and related product
EP3639589B1 (en) Concurrent usage and scanning of wireless channels
US10574316B1 (en) Antenna switching for device with multiple antennas
CN110401938B (en) Wireless high-fidelity Wi-Fi connection control method and related product
CN105898877A (en) Channel switching method based on router and router
US11405793B2 (en) Concurrent usage and scanning of wireless channels for direct DFS to DFS channel switching
CN111132197B (en) A wireless mesh dual-frequency backhaul performance optimization method, server and storage medium
CN110299930B (en) Antenna switching method and related equipment
CN113329391B (en) Prompt information display method and device, electronic equipment and storage medium
CN113543237A (en) Cell selection method and device
WO2024002114A1 (en) Communication method and related device
US20230300703A1 (en) Cell switching method and apparatus, storage medium, and electronic device
CN111083764B (en) Device control method, device, storage medium and electronic device
US20200187082A1 (en) Systems and Methods for Active Detection, Avoidance, and Protection for Wireless Transmissions
CN109298846B (en) Audio transmission method, device, electronic device and storage medium
CN107948904A (en) The method, apparatus and computer-readable recording medium of speaker degradation
CN108337719B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108307485B (en) Wireless network scanning method, device, terminal device and storage medium
CN108337718B (en) Wireless network scanning method, device, terminal device and storage medium
CN110234169A (en) Communication Jamming adjusts control method and Related product
CN119697657A (en) Channel determination method, device, computer storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination