Channel determination method and device, computer storage medium and electronic equipment

By introducing a random delay mechanism in a multi-device wireless network, channel configuration is optimized based on channel quality, and channel interference and stability problems caused by the simultaneous power-on of multiple devices are solved, achieving more efficient channel configuration and more stable wireless network transmission.

CN119697657APending Publication Date: 2025-03-25GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311248361.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

When multiple devices are turned on at the same time, the wireless network channel resources are limited, resulting in channel interference, degraded transmission performance, data loss and unstable connections. The traditional manual configuration method is inefficient and difficult to ensure stability.

Method used

By performing random delays when the device is turned on, the wireless channel configuration process is performed based on the channel quality of each channel in the wireless network after the delay is completed, and the working channel is selected. This method allows the timing of selecting working channels between devices to stagger each other, improves the efficiency of channel configuration and ensures the stability of the wireless network.

Benefits of technology

Through the method of random delay and channel quality optimization, the possibility of multiple devices selecting the same channel at the same time is reduced, the efficiency of the device selecting the channel is improved, and the stability of the wireless network and the quality of data transmission are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697657A_ABST
    Figure CN119697657A_ABST
Patent Text Reader

Abstract

The invention discloses a channel determination method and device, a computer storage medium and electronic equipment. The method comprises the following steps: in response to a startup instruction, generating first random delay time within a preset range; the first random delay time is different from random delay time generated by other equipment; and after the first random delay time is over, wireless channel configuration processing is started, and a working channel is determined. By adopting the method, the stability of the wireless network can be ensured under the condition that a plurality of devices exist in the same scene, and the anti-interference capability of the network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a channel determination method, device, computer storage medium and electronic device. Background Art

[0002] The same scenario usually involves multiple devices using the wireless network. In actual applications, the channel resources of wireless network channels are limited. Based on this, multiple devices may use the same channel, resulting in channel interference, reduced wireless network transmission performance, data loss, and unstable connections.

[0003] In the related art, wireless network channels are usually manually configured for multiple devices. This method is inefficient when there are many devices to be configured, and it is difficult to ensure the stability of the wireless network. Summary of the invention

[0004] Embodiments of the present application provide a channel determination method, apparatus, computer storage medium, and electronic device, which can improve the efficiency of channel configuration when the device is connected to a wireless network.

[0005] In a first aspect, an embodiment of the present application provides a channel determination method, which is applied to a wireless transmission system, the wireless transmission system including at least two transmitting devices and receiving devices corresponding to each transmitting device, the method is executed by a target device, the target device is any one of the at least two transmitting devices, or any one of the at least two receiving devices, the method includes:

[0006] In response to a power-on instruction, a first random delay time is generated within a preset range; the first random delay time is different from a random delay time generated by at least one other device among the at least two transmitting devices or the at least two receiving devices except the target device;

[0007] After the first random delay time ends, the wireless channel configuration process starts to determine the working channel.

[0008] In a second aspect, an embodiment of the present application provides a channel determination device, which is applied to a wireless transmission system, the wireless transmission system including at least two transmitting devices and receiving devices corresponding to each transmitting device, the device is applied to a target device, the target device is any one of the at least two transmitting devices, or any one of the at least two receiving devices, the device includes:

[0009] A delay module, configured to generate a first random delay time within a preset range in response to a power-on instruction; the first random delay time is different from a random delay time generated by at least one other device among the at least two transmitting devices or the at least two receiving devices except the target device;

[0010] The configuration module is used to start the wireless channel configuration process and determine the working channel after the first random delay time ends.

[0011] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions suitable for being loaded by a processor and executing the method steps provided in the first aspect of the embodiment of the present application.

[0012] In a fourth aspect, an embodiment of the present application provides an electronic device, characterized in that it includes: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps provided in the first aspect of the embodiment of the present application.

[0013] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0014] The present application provides a channel determination method. In a wireless transmission system including multiple receiving devices, if multiple receiving devices are turned on at the same time, a random delay is performed when the receiving device is turned on. After the delay ends, the wireless channel configuration process is started based on the channel quality of each channel in the wireless network. By performing the random delay, the timings of selecting working channels between devices are staggered, and then the wireless channel configuration process is performed to select the corresponding working channel, thereby improving the efficiency of the device in selecting the channel and ensuring the stability of the wireless network. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] Figure 1 A schematic diagram of the architecture of a wireless transmission system provided in an embodiment of the present application;

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

[0018] Figure 3A A schematic diagram of channel concentration provided in an embodiment of the present application;

[0019] Figure 3B A schematic diagram of random discrete channels provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of channel switching provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of an extended bandwidth provided in an embodiment of the present application;

[0022] Figure 6 A structural block diagram of a channel determination device provided in an embodiment of the present application;

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

[0024] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0025] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0026] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0027] In daily life, there are usually many devices in the same wireless network scenario. When the device is turned on, it usually chooses to use the channel with the best network quality according to the network protocol and related technologies. When many devices are turned on at the same time, the timing of selecting channels is the same, and it is easy to select the same working channel, which will cause interference with each other, resulting in reduced wireless network quality transmission performance, data loss and unstable connection. For example, in a school scenario, each classroom is equipped with wireless microphones and speakers for teaching, and they are often turned on at the same time during class. Under the current condition that the number of channels is very limited, it is often the case that multiple wireless devices use the same channel. In the face of this situation, the traditional channel adjustment method manually configures wireless network channels for multiple devices. This manual setting method will result in low adjustment efficiency when there are many devices that need to be adjusted, and it is difficult to ensure the stability of the wireless network.

[0028] Therefore, an embodiment of the present application provides a channel determination method. In a wireless transmission system, if multiple devices are turned on at the same time, a random delay is performed when the device is turned on. After the delay ends, based on the channel quality of each channel in the wireless network, the wireless channel configuration process is started and the working channel is selected. By staggering the timing of selecting the working channel for each device through random delay, the possibility of multiple devices selecting the same channel at the same time can be reduced, the efficiency of the device selecting the working channel is improved, and the stability of the wireless network is ensured.

[0029] In order to more clearly illustrate the technical solution of the present application, the relevant concepts involved in the present application are explained below.

[0030] A channel is a channel for signal transmission in a communication system, and is composed of the transmission medium through which the signal is transmitted from the transmitter to the receiver. According to the IEEE 802.11 protocol, in my country, the 2.4GHz Wi-Fi band is divided into 13 overlapping channels, each with a width of 22MHz (the bandwidth of each channel in the IEEE 802.11g standard and the IEEE 802.11n standard is 20MHz, and the bandwidth of each channel in the IEEE 802.10B standard is 22MHz); the 5GHz Wi-Fi band is divided into 13 channels, each with a width of 20MHz.

[0031] Received signal strength indication (RSSI) is the signal strength during wireless reception. It is related to the transmit power of the wireless module, the design of the RF front end, and the gain of the antenna. The unit is the unit of power, generally expressed in dBm. The smaller the signal strength, the lower the channel occupancy rate in the channel.

[0032] Figure 1An exemplary architecture diagram of a wireless communication system provided in an embodiment of the present application is shown.

[0033] like Figure 1 As shown, the wireless transmission system 100 may include at least two transmitting devices 101 and at least two receiving devices 102 ( Figure 1 In the figure, the wireless transmission system 100 includes three transmitting devices and three receiving devices as an example for illustration). Each transmitting device 101 corresponds to a receiving device 102. The transmitting device 101 can transmit data to the corresponding receiving device 102 through a wireless network. The transmitting device 101 can be hardware or software. When the transmitting device 101 is hardware, it can be various electronic transmitting devices, including but not limited to wireless microphones, smart watches, smart phones, tablet computers, laptop portable computers and desktop computers. When the transmitting device 101 is software, it can be installed in the electronic transmitting devices listed above, which can be implemented as multiple software or software modules, or as a single software or software module, which is not specifically limited here. The receiving device 102 can be hardware or software. When the receiving device 102 is hardware, it can be various electronic receiving devices, including but not limited to wireless speakers, wireless projectors, wireless handles and wireless headphones. When the receiving device 102 is software, it can be installed in the electronic receiving devices listed above, which can be implemented as multiple software or software modules, or as a single software or software module, which is not specifically limited here.

[0034] Specifically, a wireless transmitting module is provided in the transmitting device, and a wireless receiving module is provided in the receiving device. The wireless transmitting module and the wireless receiving module can both be Wi-Fi modules. The transmitting device can send data to the receiving device through the wireless transmitting module. The receiving device can receive data through the wireless receiving module. The subsequent embodiments of the present application are described by taking the transmitting device 101 as a wireless microphone and the receiving device 102 as a wireless speaker as an example. The wireless microphone can be connected to the corresponding wireless speaker through a wireless network, and the sound signal collected by it is transmitted to the wireless speaker, and played out through the wireless speaker.

[0035] In the embodiment of the present application, the wireless microphone may include an audio collector and an encoder in addition to the wireless transmission module. The audio collector may collect sound signals. The encoder may encode the collected sound signals. The wireless transmission module may send the encoded sound signals to the wireless speaker via a wireless network.

[0036] In the embodiment of the present application, the wireless speaker may include a decoder and a speaker in addition to the wireless receiving module. The wireless receiving module may receive the encoded sound signal sent by the wireless microphone through the wireless network. The decoder may decode the received sound signal. The speaker may play the decoded sound signal.

[0037] It should be understood that Figure 1 The number of transmitting devices and receiving devices in the figure is only illustrative, and any number of transmitting devices and receiving devices may be used according to implementation requirements.

[0038] It should be noted that the channel determination method provided in the embodiment of the present application can be Figure 1 The wireless transmission system 100 shown in FIG. 1 may be executed by any transmitting device, or by Figure 1 The method may be performed by any receiving device in the wireless transmission system 100 shown in FIG.

[0039] If the method is performed by a transmitting device, when the transmitting device and the corresponding receiving device are turned on, the transmitting device can work in hotspot mode. After determining the working channel, the transmitting device can broadcast on the channel. The receiving device can poll the signal broadcast by its corresponding transmitting device on each channel. When the receiving device receives the signal on the working channel selected by its corresponding transmitting device, it can establish wireless communication with the transmitting device. At this point, the transmitting device and the receiving device can perform data transmission on the selected working channel.

[0040] If the method is performed by a receiving device, when the transmitting device and the corresponding receiving device are turned on, the receiving device can work in hotspot mode. After determining the working channel, the receiving device can broadcast on the channel. The transmitting device can poll the signals broadcast by its corresponding receiving device on each channel. When the transmitting device receives the signal on the working channel selected by its corresponding receiving device, it can establish wireless communication with the receiving device. At this point, the transmitting device and the receiving device can perform data transmission on the selected working channel. Please refer to Figure 2 , Figure 2 The following is a flow chart of a channel determination method provided in an embodiment of the present application. For ease of description, the execution subject of the embodiment of the present application is referred to as a target device. As mentioned above, the target device may be Figure 1 Any transmitting device in the wireless transmission system 100 shown in Figure 1 Any receiving device in the wireless transmission system 100 shown in FIG.

[0041] like Figure 2 As shown, the channel determination method may at least include:

[0042] S201: In response to a power-on instruction, generating a first random delay time within a preset range.

[0043] Wherein, the first random delay time is different from the random delay time generated by at least one other device other than the target device in at least two transmitting devices or at least two receiving devices. That is to say, 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 when it is turned on is at least partially different, and can 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 within the range of 1 millisecond to 20 milliseconds.

[0044] 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 other than the target device among the 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 when powered on is at least partially different, and may also be completely different.

[0045] Specifically, when the target device receives a power-on instruction, in response to the power-on instruction, the target device may be powered on, and generate a random number within a preset range, and use the random number as the first random delay time.

[0046] Specifically, the target device can generate a random number within a preset range by using a timer included therein as a random seed, and use the random number as the first random delay time. Exemplarily, the preset range is 1 millisecond to 20 milliseconds. That is, the timer can generate a random number within the preset range of 1 millisecond to 20 milliseconds as the first random delay time. It can be known that before the first random delay time arrives, the target device maintains a waiting state.

[0047] S202: After the first random delay time ends, wireless channel configuration processing begins to determine a working channel.

[0048] Specifically, after the first random delay time ends, the target device starts scanning the channels in the wireless network, returns various channel data, and determines the working channel according to the various channel data, wherein the channel data includes but is not limited to the RSSI, packet loss rate, interference level, congestion level, and adjacent channel interference of the channel.

[0049] Specifically, an idle channel may be preferentially selected as the working channel. If there is no idle channel, a channel with the best channel quality is selected as the working channel according to various data of each channel.

[0050] Specifically, RSSI can be used as an indicator to determine whether a channel is idle. When there is no signal transmission in the channel (that is, when it is an idle channel), when RSSI is a preset threshold, it can be indicated that the current channel is an idle channel. The preset threshold is, for example but not limited to, -128dBm. If the RSSI of the channel is greater than the above preset threshold, it indicates that there is currently a signal transmitting in the channel, and the larger the RSSI value, the stronger the signal strength.

[0051] Specifically, the working channel may be preferentially selected from the 5G channel. If the working channel cannot be selected from the 5G channel, the working channel may be selected from the 2.4G channel. In the embodiment of the present application, the 5G channel may be used as the first type of channel, and the 2.4G channel may be used as the second type of channel.

[0052] Specifically, after the first random delay ends, the target device can traverse each first type of channel in turn, and when the signal strength corresponding to the traversed target first type of channel is equal to the preset threshold, the target first type of channel is determined to be a working channel. That is, an idle channel is selected from the first type of channels as the working channel. It can be seen that when the target device traverses to an idle channel, the idle channel can be directly used as the working channel without traversing the remaining channels.

[0053] If after the target device completes traversal of each first-type channel, there is no target first-type channel whose corresponding signal strength is equal to the above-mentioned preset threshold, that is, there is no idle channel in the first-type channel, then the channel quality of each first-type channel is compared, and the first-type channel whose channel quality meets the first preset condition is determined as the working channel.

[0054] Specifically, the channel quality can be determined by parameters such as RSSI, packet loss rate, interference level, congestion level, and adjacent frequency interference. It can be known that the smaller the RSSI, the lower the channel occupancy rate, that is, 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 frequency interference, the better the channel quality. In the embodiment of the present application, the channel quality can be determined by some or all of the above parameters. When multiple parameters are used to jointly determine the channel quality, these multiple parameters can be weighted and summed to obtain the final result. The weight of each parameter can be a default weight set uniformly, or it can be set by the user according to their own needs, and the embodiment of the present application does not limit this.

[0055] Optionally, the first type of channel that meets the first preset condition may be a first type of channel with the best channel quality. That is, the first type of channel with the best channel quality is determined as the working channel, so as to ensure that the selected working channel has the best transmission effect.

[0056] Optionally, the first type of channel that meets the first preset condition may be any one of a plurality of first type channels with good channel quality. For example, the quality of each channel may be sorted from high to low, and a channel may be selected from the top three channels in terms of channel quality as a working channel.

[0057] In a specific implementation, after the target device scans all channels of the first type, it may be that the quality of all channels of the first type is poor (channel congestion is serious), then the second type of channels can be scanned and a working channel can be selected from the second type of channels.

[0058] Specifically, if the channel quality of each first-type channel does not meet the second preset condition, each second-type channel is traversed in turn, and the working channel is determined according to the traversal result of each second-type channel.

[0059] The second type is different from the first type. The second preset condition is different from the first preset condition.

[0060] Specifically, the second preset condition may be: the idle time idle_time of the first type of channel is less than the time threshold, and / or the noise noise_floor of the first type of channel exceeds the noise threshold. Wherein, idle_time is used to describe the time when the device is inactive. The larger the parameter is, the longer the channel idle time is and the better the channel quality is. noise_floor is the ambient noise of the channel. The smaller the parameter is, the smaller the noise of the channel is and the lower the channel quality is.

[0061] When the channel idle time of each first type of channel is less than the time threshold, and / or the noise of each first type of channel is greater than the noise threshold, it indicates that each first type of channel is currently congested, that is, each first type of channel cannot be used as a working channel. At this time, the second type of channel can be scanned and the working channel can be selected from the second type of channels.

[0062] The process and basis for selecting a working channel from the second type of channel are similar to the process and basis for selecting a working channel from the first type of channel, and both are to preferentially select an idle channel as the working channel. If there is no idle channel, a channel whose channel quality meets the first preset condition is selected as the working channel. The specific selection basis can be referred to the description of the aforementioned embodiment, which will not be repeated here.

[0063] After determining the working channel, the target device can perform data transmission on the working channel to achieve wireless communication. Then, after the target device with a smaller first random delay completes the selection of the working channel, it can perform data transmission on the channel. Then, when the target device with a larger first random delay starts to select a channel, the quality of the previously selected channel can be used as the basis for the current selection, thereby reasonably avoiding the situation of selecting the same channel at the same time.

[0064] That is to say, since each target device will generate a first random delay when it is turned on, the first random delay of each target device may be different. Then, after the first random delay ends, each target device starts to select a working channel at a different time, so the working channel finally selected can be randomly discrete.

[0065] Please refer to Figure 3, which exemplifies a schematic diagram of channel concentration and channel random dispersion. For the convenience of description, the present application embodiment uses a 5G channel as an example for schematic demonstration. Figure 3A As shown in the figure, when multiple devices are turned on at the same time, they are likely to select the same working channel, resulting in channel concentration, causing signal interference, which will lead to problems such as reduced communication quality, data transmission errors and connection interruptions. Figure 3B As shown in the figure, by performing a random delay before selecting a working channel, each device can have a different delay time. In this way, they will have a certain time difference when selecting a channel, reducing the probability of selecting the same channel at the same time, thereby avoiding channel conflicts, effectively preventing the occurrence of channel concentration, and reasonably selecting each channel.

[0066] Furthermore, after determining the working channel, the transmitting device performs data transmission on the working channel and detects the channel quality of the adjacent channels of the working channel. Specifically, the channel quality can be jointly judged based on multiple parameters, including but not limited to the 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 -40dBm, it indicates that the adjacent channel is performing high-power data transmission. When the signal on the adjacent channel is transmitted simultaneously with the signal on the working channel of the transmitting device, the receiving end may not be able to correctly decode the signal, resulting in communication failure or data error, which will cause greater interference, so it is judged that the channel quality of the adjacent channel is low.

[0067] Furthermore, after the target device selects a working channel and starts data transmission, it can also detect the channel quality of the adjacent channel of the working channel. When the channel quality of the adjacent channel meets the third preset condition, the working channel is switched to achieve frequency band isolation from surrounding devices. 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 -40dBm. That is, if the signal strength of the adjacent channel is strong, it means that the device that selects the adjacent channel may be located near the current target device, which will cause certain interference to the signal transmission of the target device. At this time, the working channel can be dynamically switched to a channel with weaker channel strength of the adjacent channel, thereby achieving frequency band isolation from surrounding devices.

[0068] See also Figure 4 , Figure 4 A schematic diagram of channel switching provided in an embodiment of the present application. Figure 4 As shown, when the equipment in classroom 1 selects channel 153 as the working channel, if it detects that the signal strength of its adjacent channel 149 exceeds -40dBm, it means that the equipment selecting channel 149 may be a equipment located near classroom 1 (for example, a equipment in the classroom to the left of classroom 1). Then, in order to avoid signal interference between channels, the equipment in classroom 1 can switch its working channel from channel 153 to channel 157, thereby achieving frequency band isolation with the equipment selecting channel 149, reducing signal interference between each other, and improving communication quality.

[0069] In a specific implementation, there may be multiple devices that generate the same first random time, then select the same working channel, and then simultaneously detect the channel quality of adjacent channels. In order to avoid this situation where each device switches to the same working channel after frequency band isolation, the embodiment of the present application can achieve further discretization through a second random delay.

[0070] Specifically, after the working channel is selected after the first random delay, the target device may generate a second random delay time, and after the second random delay time arrives, detect the channel quality of the adjacent channel of the working channel, and switch the working channel when the channel quality of the adjacent channel meets the third preset condition. The generation process of the second random delay time is similar to the generation process of the first random delay time, and will not be repeated here.

[0071] In addition, during the data transmission process, the target device can also continuously monitor the data transmission quality, identify interference based on the monitoring results and the current wireless network load, and dynamically adjust the wireless channel to achieve channel adaptive adjustment. For example, when the data transmission packet loss rate is detected to be serious, or the data transmission delay is serious, it can be determined that the current data transmission quality is poor and the working channel needs to be switched. Then, combined with the scanning results of all channels of the current wireless network, a suitable channel is selected as the new working channel to ensure the stability of data transmission.

[0072] Furthermore, when the target device detects that the occupancy rate of the adjacent channel of its working channel is very low, it 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 to further improve the data transmission effect. Figure 5 , Figure 5 A schematic diagram of an extended bandwidth provided in an embodiment of the present application. Figure 5 As shown, the working channel of the target device is channel 153, and the bandwidth of the channel is 20M. However, the adjacent channels 149 and 157 are both idle channels, so the bandwidth of the channel can be expanded from 20M to 40M. In the specific implementation, the amplitude of the spread spectrum is not limited to this, and the embodiments of the present application are not limited to this.

[0073] The embodiment of the present application can be in a wireless transmission system including multiple receiving devices. If multiple receiving devices are turned on at the same time, a random delay is performed when the receiving device is turned on. After the delay ends, the wireless channel configuration process is started based on the channel quality of each channel in the wireless network. By performing a random delay, the timing of selecting working channels between devices is staggered, and then the wireless channel configuration process is performed to select the corresponding working channel, thereby improving the efficiency of device channel selection and ensuring the stability of the wireless network. Furthermore, after the working channel is selected and data transmission is performed, the second random delay time can be used to further discretize the channel when the working channel is dynamically switched, further ensuring the transmission quality of the wireless data. In addition, the embodiment of the present application can also realize adaptive adjustment of the channel and channel spread spectrum by monitoring the quality of each channel during data transmission, thereby improving the effect of data transmission.

[0074] In some possible implementations, when multiple devices are turned on at the same time, each device will perform a first random delay according to a random number generated by its own timer. After the delay is over, enter the first for loop to traverse and find out whether there is a 5G idle channel. The judgment criterion for a 5G idle channel may be the signal strength in the channel mentioned in the aforementioned embodiment. Exemplarily, if the signal strength is -128dBm, it can be determined that the channel is a 5G idle channel. That is, when the signal strength of a certain channel traversed is -128dBm, it can be determined that the channel is a 5G idle channel, thereby ending the traversal, returning the channel number of the channel, and using this channel as the working channel.

[0075] If there is no channel with a signal strength of -128dBm after the traversal is completed, it means that there is no 5G idle channel at present. Then the second for loop is entered to traverse and the channel quality of each channel is obtained. After obtaining the channel quality of each channel, the channel with the best channel quality is determined. If the channel quality of the channel meets the second preset condition, the channel number of the channel is returned and the channel is used as the working channel.

[0076] If the channel quality of the channel does not meet the second preset condition, it means that the quality of all 5G channels is poor, that is, there are no available 5G channels. Therefore, the third for loop is entered to traverse and find out whether there is a 2.4G idle channel. The judgment criterion for a 2.4G idle channel may be the signal strength in the channel mentioned in the aforementioned embodiment. Exemplarily, if the signal strength is -128dBm, it can be determined that the channel is a 2.4G idle channel. That is, when the signal strength of a certain channel traversed to -128dBm, it can be determined that the channel is a 2.4G idle channel, thereby ending the traversal, returning the channel number of the channel, and using this channel as the working channel.

[0077] If there is no channel with a signal strength of -128dBm after the traversal is completed, it means that there is no 2.4G idle channel at present. Then the fourth for loop is entered to traverse and the channel quality of each channel is obtained. After obtaining the channel quality of each channel, the channel with the best channel quality is determined, the channel number of the channel is returned, and this channel is used as the working channel.

[0078] See also Figure 6 , Figure 6 This is a structural block diagram of a channel determination device provided in an embodiment of the present application. The device is applied to a wireless transmission system, which includes at least two transmitting devices and a receiving device corresponding to each transmitting device. The device should be 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. Figure 6As shown, the channel determination device 600 may include: a delay module 610 and a configuration module 620. Among them:

[0079] The first delay module 610 is used to generate a first random delay time within a preset range in response to a power-on instruction; the first random delay time is different from the random delay time generated by at least one other device among at least two transmitting devices or at least two receiving devices except the target device.

[0080] The configuration module 620 is used to start the wireless channel configuration process and determine the working channel after the first random delay time ends.

[0081] 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 instruction, and use the random number as the first random delay time.

[0082] In some possible embodiments, the configuration module 620 includes:

[0083] A traversal unit, configured to traverse each channel of the first type in sequence after the first random delay time ends;

[0084] The determining unit is configured to determine that the target first type of channel is a working channel when the signal strength corresponding to the traversed target first type of channel is equal to a preset threshold.

[0085] In some possible embodiments, the configuration module 620 further includes:

[0086] A comparing unit, configured to compare the channel quality of each first type of channel if there is no target first type of channel whose corresponding signal strength is equal to a preset threshold;

[0087] The determining unit is further configured to determine a first type of channel whose channel quality meets a first preset condition as a working channel.

[0088] In some possible embodiments, the traversal unit is further used to traverse each second type of channel in turn when the channel quality of each first type of channel does not meet the second preset condition; the second type is different from the first type, and the second preset condition is different from the first preset condition.

[0089] The determination unit is further configured to determine the working channel according to the traversal result of each second type of channel.

[0090] In some possible embodiments, the channel determination device 600 further includes:

[0091] A detection module, used to detect the channel quality of the adjacent channels of the working channel;

[0092] The switching module is used to switch the working channel when the channel quality meets the third preset condition.

[0093] In some possible embodiments, the channel determination device 600 further includes:

[0094] A second delay module, used to generate a second random delay time;

[0095] The detection module is specifically used to detect the channel quality of the adjacent channel of the working channel after the second random delay time ends.

[0096] The embodiment of the present application can be in a wireless transmission system including multiple receiving devices. If multiple receiving devices are turned on at the same time, a random delay is performed when the receiving device is turned on. After the delay ends, the wireless channel configuration process is started based on the channel quality of each channel in the wireless network. By performing a random delay, the timing of selecting working channels between devices is staggered, and then the wireless channel configuration process is performed to select the corresponding working channel, thereby improving the efficiency of device channel selection and ensuring the stability of the wireless network. Furthermore, after the working channel is selected and data transmission is performed, the second random delay time can be used to further discretize the channel when the working channel is dynamically switched, further ensuring the transmission quality of the wireless data. In addition, the embodiment of the present application can also realize adaptive adjustment of the channel and channel spread spectrum by monitoring the quality of each channel during data transmission, thereby improving the effect of data transmission.

[0097] It should be noted that the channel determination device provided in the above embodiment only uses the division of the above functional modules as an example when executing the channel determination method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the channel determination device provided in the above embodiment and the channel determination method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

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

[0099] See also Figure 7 The present application provides a schematic diagram of the structure of an electronic device. The electronic device can be Figure 1 Any one of the multiple transmitting devices shown in Figure 1 Any one of the multiple receiving devices shown in . Figure 7 As shown, 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 .

[0100] The communication bus 702 is used to realize the connection and communication between these components.

[0101] The user interface 703 may include a display screen (Display) and a camera (Camera), and the optional user interface 703 may include a wireless interface.

[0102] The network interface 704 may optionally include a standard wireless interface.

[0103] The wireless communication module 706 is used to send and receive wireless data, such as but not limited to a Wi-Fi module.

[0104] Among them, the processor 701 may include one or more processing cores. The processor 10901 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes various functions and processes data of the electronic device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 705, and calling data stored in the memory 705. Optionally, the processor 701 can 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), and programmable logic array (Programmable Logic Array, PLA). The processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 701, and it can be implemented separately through a chip.

[0105] Among them, the memory 705 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 705 includes a non-transitory computer-readable storage medium. The memory 705 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 705 may optionally be at least one storage device located away from the aforementioned processor 701. As Figure 7 As shown, the memory 705 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a channel determination application.

[0106] exist Figure 7 In the electronic device 700 shown, the user interface 703 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 701 can be used to call the channel determination application stored in the memory 705, and specifically perform the following operations:

[0107] In response to a power-on instruction, a first random delay time is generated within a preset range; the first random delay time is different from a random delay time generated by at least one other device among the at least two transmitting devices or the at least two receiving devices except the target device;

[0108] After the first random delay time ends, the wireless channel configuration process starts to determine the working channel.

[0109] In some possible embodiments, when the processor 701 executes in response to a power-on instruction and generates a first random delay time, it is specifically used to: generate a random number within a preset range in response to the power-on instruction, and use the random number as the first random delay time.

[0110] In some possible embodiments, the processor 701 starts the wireless channel configuration process after the first random delay time ends, and when determining the working channel, is specifically used to execute: after the first random delay time ends, traverse each first type of channel in sequence;

[0111] When the signal strength corresponding to the traversed target first type channel is equal to a preset threshold, the target first type channel is determined to be a working channel.

[0112] In some possible embodiments, after the first random delay time ends and after traversing each first type of channel in turn, the processor 701 is also used to execute: if there is no target channel whose corresponding signal strength is equal to a preset threshold, compare the channel quality of each first type of channel; and determine the first type of channel whose channel quality meets the first preset condition as a working channel.

[0113] In some possible embodiments, the processor 701 is also used to execute: if the channel quality of each first type of channel does not meet the second preset condition, then traversing each second type of channel in turn; the second type is different from the first type, and the second preset condition is different from the first preset condition; determine the working channel according to the traversal result of each second type of channel.

[0114] In some possible embodiments, after determining the working channel, the processor 701 is further configured to: detect the channel quality of a channel adjacent to the working channel; and switch the working channel when the channel quality meets a preset condition.

[0115] In some possible embodiments, before the processor 701 detects the channel quality of a channel adjacent to the working channel, it is further configured to execute: generating a second random delay time.

[0116] When the processor 701 executes the detection of the channel quality of the adjacent channel of the working channel, it is specifically configured to execute: after the second random delay time ends, the channel quality of the adjacent channel of the working channel is detected.

[0117] The embodiment of the present application can be in a wireless transmission system including multiple receiving devices. If multiple receiving devices are turned on at the same time, a random delay is performed when the receiving device is turned on. After the delay ends, the wireless channel configuration process is started based on the channel quality of each channel in the wireless network. By performing a random delay, the timing of selecting working channels between devices is staggered, and then the wireless channel configuration process is performed to select the corresponding working channel, thereby improving the efficiency of device channel selection and ensuring the stability of the wireless network. Furthermore, after the working channel is selected and data transmission is performed, the second random delay time can be used to further discretize the channel when the working channel is dynamically switched, further ensuring the transmission quality of the wireless data. In addition, the embodiment of the present application can also realize adaptive adjustment of the channel and channel spread spectrum by monitoring the quality of each channel during data transmission, thereby improving the effect of data transmission.

[0118] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer or a processor, the computer or the processor executes the above-mentioned Figure 2One or more steps in the illustrated embodiment. If the components of the above-mentioned channel determination device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.

[0119] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted by the computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0120] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: various media that can store program codes, such as system memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0121] The embodiments described above are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope determined by the claims of the present application.

Claims

1. A channel determination method, characterized in that: Applied to a wireless transmission system, the wireless transmission system includes at least two transmitting devices and receiving devices corresponding to each of the transmitting devices, the method is performed by a target device, the target device is any one of the at least two transmitting devices, or any one of the at least two receiving devices, the method includes: In response to a power-on instruction, a first random delay time is generated within a preset range; the first random delay time is different from a random delay time generated by at least one other device among the at least two transmitting devices or the at least two receiving devices except the target device; After the first random delay time ends, the wireless channel configuration process starts to determine the working channel.

2. The method according to claim 1, characterized in that The step of generating a first random delay time within a preset range in response to a power-on instruction includes: In response to a power-on instruction, a random number is generated within the preset range, and the random number is used as the first random delay time.

3. The method according to claim 1, characterized in that After the first random delay time ends, starting wireless channel configuration processing to determine the working channel includes: After the first random delay time ends, traverse each channel of the first type in sequence; When the signal strength corresponding to the traversed target first-type channel is equal to a preset threshold, the target first-type channel is determined to be a working channel.

4. The method according to claim 3, characterized in that After the first random delay time ends, after traversing each first type of channel in sequence, the method further includes: If there is no target first-type channel whose corresponding signal strength is equal to the preset threshold, comparing the channel quality of each first-type channel; A first type of channel whose channel quality meets a first preset condition is determined as a working channel.

5. The method according to claim 4, characterized in that The method further comprises: If the channel quality of each first-type channel does not meet the second preset condition, then traverse each second-type channel in turn; the second type is different from the first type, and the second preset condition is different from the first preset condition; The working channel is determined according to the traversal result of each second type channel.

6. The method according to claim 1, characterized in that After determining the working channel, the method further includes: Detecting channel quality of channels adjacent to the working channel; When the channel quality meets a third preset condition, the working channel is switched.

7. The method according to claim 6, characterized in that Before detecting the channel quality of the adjacent channel of the working channel, the method further includes: Generate a second random delay time; The detecting the channel quality of the adjacent channel of the working channel comprises: After the second random delay time ends, the channel quality of the adjacent channel of the working channel is detected.

8. A channel determination device, characterized in that: The invention is applied to a wireless transmission system, wherein the wireless transmission system includes at least two transmitting devices and receiving devices corresponding to each of the transmitting devices respectively. The apparatus 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. The apparatus includes: A delay module, configured to generate a first random delay time within a preset range in response to a power-on instruction; the first random delay time is different from a random delay time generated by at least one other device among the at least two transmitting devices or the at least two receiving devices except the target device; The configuration module is used to start the wireless channel configuration process and determine the working channel after the first random delay time ends.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.