Channel quality detection method and device, electronic equipment and storage medium

By dividing the communication channel into a channel set and performing noise intensity detection in the target time slot, the problem of inaccurate noise detection in the prior art is solved, and the accurate evaluation of channel quality and data transmission and reception efficiency are improved.

CN119675799APending Publication Date: 2025-03-21GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311213147.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, the noise detection method of the communication channel is inaccurate, resulting in inaccurate channel quality of the evaluated.

Method used

By dividing multiple communication channels into multiple channel sets, and performing noise intensity detection on each channel set in a target slot where the electronic device does not transmit and receive data, the accuracy of noise intensity detection is improved.

Benefits of technology

The accuracy of noise intensity detection of communication channel is improved, thereby improving the accurate evaluation of channel quality, and avoiding the impact of noise intensity detection on data transmission and reception efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119675799A_ABST
    Figure CN119675799A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a channel quality detection method and device, electronic equipment and a storage medium, the method is applied to the electronic equipment, and the method comprises the following steps: obtaining at least two to-be-detected channel sets, the at least two channel sets being obtained by dividing a plurality of communication channels; and in the data receiving and transmitting process of the electronic equipment, noise intensity detection is performed on each channel set in a plurality of target time slots so as to obtain the noise intensity corresponding to the plurality of communication channels, and the target time slots are time slots in which the electronic equipment does not perform data receiving and transmitting so as to obtain the noise intensity corresponding to the plurality of communication channels. The noise intensity corresponding to each communication channel is used for determining the channel quality of the corresponding communication channel. By implementing the embodiment of the invention, the accuracy of the detected noise intensity of the channel can be improved, and the accuracy of the channel quality of the communication channel determined according to the noise intensity is further 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 method and device for detecting channel quality, an electronic device, and a storage medium. Background Art

[0002] In order to obtain better anti-interference capability, communication equipment usually quickly hops between different communication channels to switch to channels with better communication quality, thereby effectively avoiding channels with interference and improving communication efficiency. To this end, noise detection is first performed on each communication channel, and the channel quality of the communication channel is determined based on the noise value of the detected communication channel. However, the current noise detection method for the communication channel is inaccurate, resulting in inaccurate channel quality of the evaluated communication channel. Summary of the invention

[0003] The embodiments of the present application disclose a channel quality detection method and device, an electronic device, and a storage medium, which can improve the accuracy of the noise intensity of the detected communication channel, thereby improving the accuracy of the channel quality of the determined communication channel.

[0004] A first aspect of an embodiment of the present application discloses a method for detecting channel quality, which is applied to an electronic device. The method includes:

[0005] Acquire at least two channel sets to be detected, where the at least two channel sets are obtained by dividing a plurality of communication channels;

[0006] During the process of the electronic device sending and receiving data, noise intensity detection is performed on each of the channel sets in multiple target time slots to obtain the noise intensity corresponding to the multiple communication channels. The target time slot is a time slot in which the electronic device is not sending and receiving data. The noise intensity corresponding to each of the communication channels is used to determine the channel quality of the corresponding communication channel.

[0007] A second aspect of an embodiment of the present application discloses a channel quality detection device, which is applied to an electronic device, and the device includes:

[0008] An acquisition unit, configured to acquire at least two channel sets to be detected, wherein the at least two channel sets are obtained by dividing a plurality of communication channels;

[0009] The detection unit is used to perform noise intensity detection on each of the channel sets in multiple target time slots during the process of data transmission and reception by the electronic device, so as to obtain the noise intensity corresponding to the multiple communication channels respectively, wherein the target time slot is a time slot in which the electronic device is not transmitting or receiving data, and the noise intensity corresponding to each of the communication channels is used to determine the channel quality of the corresponding communication channel.

[0010] A third aspect of the present application discloses an electronic device, including:

[0011] A memory storing executable program code;

[0012] a processor coupled to the memory;

[0013] The processor calls the executable program code stored in the memory to execute the channel quality detection method disclosed in the first aspect of the embodiment of the present application.

[0014] A fourth aspect of an embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the channel quality detection method disclosed in the first aspect of an embodiment of the present application.

[0015] Compared with the related art, the embodiments of the present application have the following beneficial effects:

[0016] In the embodiment of the present application, multiple communication channels can be divided to obtain at least two channel sets, so that at least one channel set can be detected for noise intensity in the subsequent time, which can improve the detection efficiency compared to detecting one channel separately at a time. Based on this, the electronic device can detect the noise intensity of each channel set in the target time slot where multiple electronic devices do not perform data transmission and reception during the process of data transmission and reception, so as to obtain the noise intensity corresponding to the multiple communication channels. It can be seen that in the embodiment of the present application, multiple communication channels can be divided into multiple channel sets, and the multiple channel sets can be dispersed into multiple target time slots for separate detection. Compared with the centralized detection of multiple communication channels at one time, the time span of the entire noise intensity detection can be expanded, and the time period of noise occurrence can be avoided as much as possible. The window period of noise intensity detection is staggered, thereby improving the accuracy of the detected noise intensity, and then improving the accuracy of the channel quality of the communication channel determined according to the noise intensity; in addition, by detecting the noise intensity of the channel set in the target time slot where the electronic device is not performing data transmission and reception, it can also avoid the noise intensity detection from affecting the normal data transmission and reception of the electronic device, and improve the data transmission and reception efficiency of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 is a noise intensity detection timing diagram disclosed in an embodiment of the present application;

[0019] Figure 2 It is a flow chart of a method for detecting channel quality disclosed in an embodiment of the present application;

[0020] Figure 3 It is a timing diagram of segmented channel detection disclosed in an embodiment of the present application;

[0021] Figure 4 It is a flow chart of another channel quality detection method disclosed in an embodiment of the present application;

[0022] Figure 5 It is another timing diagram of performing channel detection in segments disclosed in an embodiment of the present application;

[0023] Figure 6 It is a flow chart of another channel quality detection method disclosed in an embodiment of the present application;

[0024] Figure 7 It is another timing diagram of segmented channel detection disclosed in an embodiment of the present application;

[0025] Figure 8 It is a timing diagram of another segmented channel detection disclosed in an embodiment of the present application;

[0026] Fig. 9 It is a structural schematic diagram of a channel quality detection device disclosed in an embodiment of the present application;

[0027] Fig.10 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present application are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] The embodiments of the present application disclose a channel quality detection method and device, an electronic device, and a storage medium, which can improve the accuracy of the noise intensity of the detected channel, thereby improving the accuracy of the channel quality of the communication channel determined according to the noise intensity.

[0031] The technical solution of the present application will be described in detail below in conjunction with specific embodiments.

[0032] The channel quality detection method disclosed in the embodiment of the present application can be applied to various electronic devices with certain data transmission and reception capabilities, including various communication devices, such as: mobile phones, tablet computers, smart watches, switches and Bluetooth devices, etc., which are not limited here. Optionally, the method can be applied to various electronic devices with Bluetooth communication capabilities, including but not limited to: the master device (master / center end) in the Bluetooth communication network, which are not limited here.

[0033] In order to more clearly explain the channel quality detection method disclosed in the embodiment of the present application, the channel quality detection method in the related art is first introduced. Figure 1 , Figure 1 It is a noise intensity detection timing diagram disclosed in the embodiment of the present application. It is understandable that electronic devices usually need to send and receive data during wireless communication (for example, Bluetooth communication). Figure 1 In the figure, "TX (transport)" means sending data, and "RX (receive)" means receiving data. It should be noted that "TX (transport)" in other figures disclosed in the embodiments of the present application also means sending data, and "RX (receive)" also means receiving data, which will not be repeated in the embodiments of the present application.

[0034] In the related art, after receiving data, the electronic device usually determines the strength of the useful signal (Packet RSSI) based on the received data; in addition, the electronic device will also perform a noise strength detection at a certain "noise detection period" interval to obtain the noise strength (Noise RSSI) corresponding to each communication channel. Finally, the electronic device can determine the signal-to-noise ratio corresponding to each communication channel based on the strength of the useful signal and the noise strength corresponding to each communication channel. The signal-to-noise ratio can be used to indicate the communication quality of the corresponding communication channel. Furthermore, the electronic device can select a channel with better communication quality from multiple communication channels according to the signal-to-noise ratio for frequency modulation, thereby improving the communication efficiency of the electronic device.

[0035] In practice, it is found that within each "noise intensity detection window period", the electronic device will perform a centralized noise intensity detection on all communication channels to obtain the noise intensity corresponding to each communication channel. However, noise usually appears randomly during the entire communication process, and the time when the noise appears may be very short. Therefore, in the related art, the method of centralized noise intensity detection on all communication channels within a "noise intensity detection window period" may result in the situation that the noise does not appear within the "noise intensity detection window period", or when the noise appears, it is not currently within the "noise intensity detection window period", which will lead to inaccurate noise detection results. In addition, the electronic device performing noise intensity detection within the "noise intensity detection window period" may also affect the normal data transmission and reception of the electronic device, thereby reducing the data transmission and reception efficiency of the electronic device.

[0036] In this regard, the embodiment of the present application discloses a method for detecting channel quality to solve the technical problems existing in the related art. Among them, the method can first divide multiple communication channels to obtain at least two channel sets, so that at least one channel set can be tested for noise intensity at a time, which can improve the detection efficiency compared to detecting one channel alone at a time; based on this, the electronic device can perform noise intensity detection on each channel set in the target time slot when multiple electronic devices are not transmitting or receiving data during the process of electronic device data transmission and reception, so as to obtain the noise intensity corresponding to multiple communication channels respectively. It can be seen that in the embodiments of the present application, multiple communication channels can be divided into multiple channel sets, and the multiple channel sets can be dispersed into multiple target time slots for separate detection. Compared with the centralized detection of multiple channels at one time, the time span of the entire noise intensity detection can be expanded, and the situation where the time period when the noise occurs is staggered with the window period of the noise intensity detection can be avoided as much as possible, thereby improving the accuracy of the detected noise intensity, and further improving the accuracy of the channel quality of the communication channel determined according to the noise intensity; in addition, by performing noise intensity detection on the channel set in the target time slot when the electronic device is not sending and receiving data, it can also avoid the noise intensity detection affecting the normal data sending and receiving of the electronic device, thereby improving the data sending and receiving efficiency of the electronic device.

[0037] Based on this, the channel quality detection method and device, electronic device, and storage medium disclosed in the embodiments of the present application are introduced below.

[0038] See also Figure 2 , Figure 2 1 is a flow chart of a channel quality detection method disclosed in an embodiment of the present application. Optionally, the method can be applied to the electronic device or other execution subject introduced above. The embodiment of the present application is described by taking the electronic device as an example, which should not be limited to the embodiment of the present application. Optionally, the method can include the following steps:

[0039] 202. Obtain at least two channel sets to be detected, where the at least two channel sets are obtained by dividing a plurality of communication channels.

[0040] In the embodiment of the present application, the multiple communication channels may be Bluetooth communication channels, and there are usually 80 Bluetooth communication channels, including channel 0 to channel 79. In other optional embodiments, the communication channel may also be other communication channels such as WI-FI communication channels, which are not limited here.

[0041] Optionally, the electronic device can divide multiple communication channels according to the division rules. The division rules may include: dividing according to the number of channels that can be detected by a transceiver state switching time slot and the total number of multiple communication channels. Among them, the transceiver state switching time slot refers to the time period when the communication module of the electronic device switches between different transceiver states, and the transceiver state switching time slot includes the first switching gap between the communication module of the electronic device switching from the sending state to the receiving state and / or the second switching gap between the receiving state and the sending state. Optionally, the electronic device can calculate the total number of channels of multiple communication channels that need to be detected, and divide the result by the number of information of the communication channels that can be detected by a transceiver state switching time slot as the number of channel sets, and then divide the multiple communication channels that need to be detected according to the number of channel sets. For example: the number of channels of the communication channels that can be detected by a transceiver state switching time slot is 5, and the total number of channels of the communication channels that need to be detected is 80, then 80 / 5=16 channel sets can be divided.

[0042] In some other optional embodiments, the electronic device can be divided according to the number of channels that can be detected in an idle time period of transmission and the total number of communication channels of multiple communication channels. The idle time period of transmission is an idle time period between two data transmission tasks when no data transmission is performed. For example, after the electronic device completes the first transmission task, the electronic device is in an idle time period before starting the second transmission task. Assuming that the number of channels that can be detected in the idle time period is 20 and the total number of communication channels is 80, 80 / 20=4 channel sets can be divided.

[0043] As an optional implementation, the total number of channel sets obtained by dividing multiple communication channels can be determined according to a usage scenario, and the electronic device can divide multiple communication channels according to the current usage scenario to obtain a total number of channel sets. The usage scenario can be used to represent the data transmission speed of the electronic device, including but not limited to: a low-speed transmission scenario with a transmission speed lower than a first speed threshold, and a high-speed transmission scenario with a transmission speed higher than a second speed threshold, and the second speed threshold is greater than the first speed threshold. Optionally, if the current usage scenario is a high-speed transmission scenario, the number of channel sets obtained by division can be greater than the first number threshold; if the current usage scenario is a low-speed transmission scenario, the number of channel sets obtained by division can be less than the second number threshold, wherein the first number threshold can be greater than the second number threshold, and the first number threshold and the second number threshold can be set by the developer based on a large amount of development experience, and are not limited here.

[0044] By implementing the above method, multiple communication channels can be flexibly divided according to different usage scenarios to adapt to different usage scenarios, thereby improving the flexibility of the method. In addition, since in high-speed transmission scenarios, the duration of the target time slot where the electronic device is not transmitting data is relatively short, more channel sets can be divided for this purpose, so that the number of channels included in each channel set is relatively small, thereby ensuring that the electronic device can perform noise intensity detection on at least one channel set in a relatively short target time slot; while in low-speed transmission scenarios, the duration of the target time slot where the electronic device is not transmitting data is relatively long, so that fewer channel sets can be divided for this purpose, so that the number of channels included in each channel set is relatively large, thereby enabling more channels to be detected in each target time slot, so as to complete the detection of all channels through as few target time slots as possible, thereby improving the efficiency of detection and reducing the power consumption of electronic devices.

[0045] In actual applications, the division rules can be flexibly set by developers based on a large amount of development experience or usage requirements, and are not limited here. In addition, it is found in practice that the duration of noise intensity detection of a channel by an electronic device is usually short, so if only one channel is detected in the idle time slot of each electronic device, the idle time slot will be wasted, thereby reducing the detection efficiency. In this regard, multiple communication channels will be divided to obtain at least two channel sets, so that at least one channel set can be tested for noise intensity at a time, which can improve the detection efficiency compared to detecting a channel alone at a time.

[0046] 204. During the process of data transmission and reception by the electronic device, noise intensity detection is performed on each channel set in multiple target time slots to obtain noise intensities corresponding to multiple communication channels. The target time slot is a time slot when the electronic device is not transmitting or receiving data. The noise intensity corresponding to each communication channel is used to determine the channel quality of the corresponding communication channel.

[0047] In practice, it is found that when an electronic device is transmitting and receiving data, if the noise intensity of the channel is detected at the same time, the two will conflict, thereby affecting the quality of data transmission and reception of the electronic device. In this regard, in the embodiment of the present application, the channel can be detected when the electronic device is transmitting and receiving data, and the target time slot for data transmission and reception is not used, so as to avoid the influence of noise intensity detection on data transmission and reception.

[0048] See also Figure 3 , Figure 3 This is a timing diagram of segmented channel detection disclosed in an embodiment of the present application. Among them, the electronic device can detect the channel set in segments within the "target gap" where no data is sent or received to obtain the noise intensity corresponding to each channel. Optionally, the target time slot may include the above-mentioned transceiver state switching time slot, and / or idle time period, which is not limited here. Figure 3 The idle time period is used as an example for illustration, which should not be construed as limiting the embodiments of the present application.

[0049] As mentioned above, in the related art, the noise intensity detection of the channel usually adopts a periodic and centralized detection method, that is, all communication channels are detected in a relatively concentrated time period. Such a detection method may cause the time period of noise to be staggered with the window period of noise intensity detection, thus resulting in inaccurate detection results. Figure 3 As shown, the embodiment of the present application divides multiple channels into multiple channel sets and completes the detection of at least one channel set in a target time slot, thereby expanding the time span of the entire noise intensity detection and avoiding as much as possible the situation where the time period of noise occurrence is staggered with the window period of noise intensity detection, thereby improving the accuracy of the detected noise intensity.

[0050] Optionally, after completing the detection of a channel set, the electronic device may first determine the communication quality corresponding to each channel in the channel set according to the noise strength corresponding to each channel in the channel set that has completed the detection. In other optional embodiments, the electronic device may also determine the communication quality corresponding to each channel according to the noise strength corresponding to all channels after completing the detection of all channel sets, which is not limited here. Optionally, the communication quality corresponding to each channel may be determined according to the noise strength corresponding to each communication channel and the strength of the useful signal as described above, which is not repeated here.

[0051] By implementing the methods disclosed in the above embodiments, multiple communication channels can be divided to obtain at least two channel sets, so that at least one channel set can be detected for noise intensity in the subsequent time, which can improve the detection efficiency compared to detecting a channel alone at a time. Based on this, the electronic device can detect the noise intensity of each channel set in the target time slot where multiple electronic devices are not transmitting and receiving data during the data transmission and reception process, so as to obtain the noise intensity corresponding to the multiple communication channels. It can be seen that in the embodiment of the present application, multiple communication channels can be divided into multiple channel sets, and the multiple channel sets can be dispersed into multiple target time slots for separate detection. Compared with the centralized detection of multiple channels at one time, the time span of the entire noise intensity detection can be expanded, and the time period of noise occurrence can be avoided as much as possible. The window period of noise intensity detection is staggered, thereby improving the accuracy of the detected noise intensity, and then improving the accuracy of the channel quality of the communication channel determined according to the noise intensity; in addition, by detecting the noise intensity of the channel set in the target time slot where the electronic device is not transmitting and receiving data, it can also avoid the noise intensity detection from affecting the normal data transmission and reception of the electronic device, and improve the data transmission and reception efficiency of the electronic device.

[0052] See also Figure 4 , Figure 4 1 is a flow chart of another channel quality detection method disclosed in an embodiment of the present application. Optionally, the method can be applied to the electronic device or other execution subject introduced above. The embodiment of the present application is described by taking the electronic device as an example, which should not be limited to the embodiment of the present application. Optionally, the method can include the following steps:

[0053] 402. Obtain at least two channel sets to be detected, where the at least two channel sets are obtained by dividing a plurality of communication channels.

[0054] 404. In target time slots corresponding to the plurality of detection sub-periods, noise intensity detection is performed on each channel set to obtain noise intensities corresponding to the plurality of communication channels.

[0055] It has been stipulated in the relevant communication protocol that the electronic device can perform a noise intensity detection at a certain "noise detection period". In order to avoid additional costs caused by modifying the communication protocol and the hardware of the electronic device, in an embodiment of the present application, the noise detection period of the electronic device can be divided to obtain multiple detection sub-periods. Optionally, the duration of the detection sub-period can be determined based on the total duration of the noise detection period and the total number of channel sets. In an optional embodiment, the duration of the detection sub-period can be the total duration of the noise detection period divided by the total number of channel sets. For example, the total duration of the "noise detection period" is 200ms, and the total number of channel sets is 10, then the duration of a detection sub-period can be 20ms.

[0056] Please refer again Figure 3 , wherein the electronic device can perform noise intensity detection on each channel set in the target time slots corresponding to multiple detection sub-periods respectively, so as to achieve the effect of segmented detection.

[0057] By implementing the above method, the noise detection cycle can be divided based on the noise detection cycle included in the existing communication protocol to obtain multiple detection sub-cycles, and multiple communication channels can be segmented for detection based on the multiple detection sub-cycles to expand the time span of the entire noise intensity detection, and to avoid the situation where the time period when the noise occurs is staggered with the window period of the noise intensity detection as much as possible, thereby improving the accuracy of the detected noise intensity; in addition, since the method is based on the existing communication protocol, it can also avoid the additional cost caused by modifying the communication protocol and the hardware of the electronic device, thereby reducing the overhead.

[0058] Optionally, the electronic device may start from the first detection sub-cycle and determine in sequence whether there is a target time slot with a duration greater than or equal to the target duration in the current detection sub-cycle. The target duration is the duration required for noise intensity detection of a channel set; optionally, the duration required for the electronic device to detect noise intensity of a channel set may be related to the performance of the electronic device; optionally, the duration required for detection may be negatively correlated with the performance of the electronic device, that is, the stronger the performance of the electronic device, the shorter the duration required for detection, and vice versa, which is not limited here. Optionally, based on electronic devices with different performances, the electronic device can detect 2 or 4 communication channels within a detection frequency. Assuming that a detection frequency can detect 2 communication channels and a detection frequency is 2ms, for a channel set including 10 communication channels, 5 frequency detections are required, that is, 10ms, that is, the target duration required for noise intensity detection of a channel set is 10ms, which is not limited here.

[0059] Furthermore, if there is a target time slot with a duration greater than or equal to the target time slot in the current detection sub-period, the electronic device can perform noise intensity detection on at least one channel set that has not completed noise intensity detection in the target time slot. Optionally, noise intensity detection is performed on a channel set that has not completed noise intensity detection in a target time slot. This has the advantage of allowing multiple channel sets to be dispersed for detection as quickly as possible, thereby expanding the time span of the entire noise intensity detection as much as possible; in other optional embodiments, if the duration of the target time slot is greater than the duration required for performing noise intensity detection on two channel sets, noise intensity detection can also be performed on two or more channel sets that have not completed noise intensity detection in one target time slot to improve detection efficiency. Figure 3 This should not be construed as limiting the implementation of this application.

[0060] Optionally, if there is no target time slot with a duration greater than or equal to the target time length in the current detection sub-cycle, noise intensity detection is not performed in the current detection sub-cycle, and the next detection sub-cycle is used as the new current detection sub-cycle, and the step of determining whether there is a target time slot with a duration greater than or equal to the target time length in the current detection sub-cycle is re-executed.

[0061] By implementing the above method, the noise detection period can be divided based on the noise detection period included in the existing communication protocol to obtain multiple detection sub-periods, and multiple communication channels can be segmented for detection based on the multiple detection sub-periods to expand the time span of the entire noise intensity detection, and to avoid as much as possible the situation where the time period when the noise occurs is staggered with the window period of the noise intensity detection, thereby improving the accuracy of the detected noise intensity.

[0062] See also Figure 5 , Figure 5 It is another timing diagram of segmented channel detection disclosed in an embodiment of the present application. When the electronic device is in a busy data receiving state, there may be no target time slot that is long enough for detection in the previous detection sub-cycle. Optionally, if it is determined that the current detection sub-cycle is the last detection sub-cycle in the noise detection cycle, and there is still an undetected channel set, the electronic device can be controlled to stop sending and receiving data, and perform noise intensity detection on the undetected channel set. Among them, the busy data sending and receiving state may include: the electronic device continues to send and receive data with a high data volume, or the electronic device is in a data retransmission state due to interference around the electronic device.

[0063] like Figure 5As shown in , since there is a detection sub-cycle in which no detection is performed previously, there is still an undetected channel set in the last detection sub-cycle. In this case, the electronic device can stop sending and receiving data and force the undetected channel set to perform noise intensity detection, thereby ensuring that noise intensity detection can be performed on all communication channels in one noise detection cycle, thereby improving the compatibility and anti-interference capability of the method.

[0064] As an optional implementation, the target time slot in the detection sub-cycle may include a transmission idle time slot, which is an idle time period in which no data transmission is performed between the two data transmission tasks mentioned above, which will not be described in detail here. In the field of communications, it is generally agreed that electronic devices use time slots (solt) as the unit time during data transmission and reception, and the duration of a time slot is approximately 625us. Optionally, the duration of the idle time period may be the total duration of one or more time slots, which is not limited here. In this regard, the duration of an idle time period is usually longer, thereby improving detection efficiency.

[0065] By implementing the methods disclosed in the above embodiments, multiple communication channels can be divided into multiple channel sets, and the multiple channel sets can be dispersed into multiple target time slots for separate detection. Compared with detecting multiple channels at one time, the time span of the entire noise intensity detection can be expanded, and the situation where the time period when the noise occurs is staggered with the window period of the noise intensity detection can be avoided as much as possible, thereby improving the accuracy of the detected noise intensity, and further improving the accuracy of the channel quality of the communication channel determined according to the noise intensity; in addition, by performing noise intensity detection on the channel set in the target time slot when the electronic device is not sending or receiving data, it is also possible to avoid the noise intensity detection affecting the normal data sending and receiving of the electronic device, thereby improving the data sending and receiving efficiency of the electronic device; and, based on the noise detection cycle included in the existing communication protocol, the noise detection cycle can be The method is divided to obtain a plurality of detection sub-cycles, and segmented detection is performed on a plurality of communication channels based on the plurality of detection sub-cycles to expand the time span of the entire noise intensity detection, and avoids the situation where the time period when noise occurs and the window period of noise intensity detection are staggered as much as possible, thereby improving the accuracy of the detected noise intensity; in addition, since the method is based on the existing communication protocol, it can also avoid the additional cost caused by modifying the communication protocol and the hardware of the electronic device, thereby reducing the overhead; and, when there is still an undetected channel set in the next detection sub-cycle, the electronic device can be controlled to stop data transmission and reception, and the noise intensity detection is forced to be performed on the undetected channel set, thereby ensuring that the noise intensity detection can be performed on all communication channels in one noise detection cycle, thereby improving the compatibility and anti-interference ability of the method.

[0066] See also Figure 6 , Figure 6This is a flow chart of another channel quality detection method disclosed in an embodiment of the present application. Optionally, the method can be applied to the electronic device or other execution subject introduced above. The embodiment of the present application is described by taking the electronic device as an example, which should not be limited to the embodiment of the present application. Optionally, the method can include the following steps:

[0067] 602. Obtain at least two channel sets to be detected, where the at least two channel sets are obtained by dividing a plurality of communication channels.

[0068] In the case where the target time slot type adopts the above idle time period, there may be the situation described above that due to the absence of the target time slot in multiple detection sub-cycles, the electronic device needs to stop the data transmission and reception task of the electronic device in the last detection sub-cycle and force the noise intensity detection. This will have an impact on the data transmission and reception task of the electronic device. In this regard, another optional implementation is proposed below to solve the above problem.

[0069] See also Figure 7 , Figure 7 It is another timing diagram of segmented channel detection disclosed in an embodiment of the present application. Optionally, the target time slot may include a transceiver state switching time slot of a communication module of an electronic device, and the transceiver state switching time slot includes a first switching gap between switching from a transmitting state to a receiving state and / or a second switching gap between switching from a receiving state to a transmitting state. It should be noted that Figure 7 The first switching gap is used as an example for illustration only for convenience of explanation. Figure 7 This should not be construed as limiting the embodiments of the present application.

[0070] It is understandable that using the switching time slot for data transmission and reception to perform noise intensity detection will not affect the normal data transmission and reception of the electronic device, so that the electronic device can perform noise intensity detection on the communication set during the normal data transmission and reception. Optionally, the electronic device can perform detection in each transceiver state switching time slot, or select one or more transceiver state switching time slots from all transceiver state switching time slots for detection, which is not limited here. Optionally, the electronic device can choose to perform noise intensity detection only in the first switching gap; it can also choose to perform noise intensity detection only in the second switching gap; it can also choose to perform noise intensity detection in both the first switching gap and the second switching gap, which is not limited here.

[0071] By implementing the above method, the electronic device can perform noise intensity detection on the channel set within the transceiver state switching time slot for data transceiver switching, thereby avoiding the noise intensity detection process from affecting the normal data transceiver task of the electronic device, thereby improving the data transceiver efficiency of the electronic device.

[0072] As an optional implementation, the electronic device may determine the total number of at least two channel sets based on the total number of multiple communication channels and the number of communication channels that can complete noise intensity detection in a transceiver state switching time slot. Optionally, the electronic device may calculate the total number of multiple communication channels and the number of communication channels that can complete noise intensity detection in a transceiver state switching time slot as the total number of channel sets, and divide the multiple communication channels according to the total number of channel sets to obtain the total number of channel sets.

[0073] In some optional embodiments, the electronic device may determine the duration N required to detect X communication channels at a time, and then determine the number of communication channels that can complete noise intensity detection in a transceiver state switching time slot based on the duration N, the number of communication channels X, and the duration Y of the transceiver state switching time slot. Optionally, the number of communication channels that can complete noise intensity detection in a transceiver state switching time slot may be (Y / N)*X. For example, the duration Y of the transceiver state switching time slot is 200us, and the duration required to detect 2 communication channels is 100us, then the number of channels that can be detected in a transceiver state switching time slot is 4; further, assuming that the total number of communication channels is 80, 20 channel sets can be obtained.

[0074] Optionally, in order to make the detection process span wider and more dispersed, the total number of channel sets obtained by division may also be greater than the total number of multiple communication channels and the number of communication channels that can complete noise intensity detection in a transceiver state switching time slot. For example, if the division result is 20, the number of channel sets actually divided may be greater than 20, such as 30, 40, etc., which is not limited here.

[0075] By implementing the above method, the electronic device can divide the channel into multiple channel sets according to the number of communication channels that can complete the noise intensity detection in one transceiver state switching time slot, so as to ensure that the electronic device can complete at least one channel set detection in each transceiver state switching time slot without wasting the transceiver state switching time slot, thereby improving the detection efficiency.

[0076] 604. During data transmission and reception by the electronic device, noise intensity detection is performed on each channel set in multiple target time slots to obtain noise intensities corresponding to the multiple communication channels.

[0077] In standard communication protocols, the transmission duration of electronic devices to send data and the reception duration of electronic devices to receive data are usually fixed. The standard communication protocol stipulates that the transmission duration can be 1, 3 or 5 time slots, while the reception duration is usually 1 time slot. The time slot has been introduced above and will not be repeated here. Therefore, when the transmission duration and reception duration are fixed, the transmission and reception state switching time slot is usually fixed, generally 200us, and the number of communication channels that can be detected within 200us is limited, resulting in slow detection efficiency, and even most channels cannot be detected in time.

[0078] It is understandable that electronic devices usually send data in the form of data packets, which may include a header, valid data (payload), a redundant detection part, etc. The data length of the valid data affects the actual sending time of the electronic device. If the data length of the valid data in the data packet reaches the maximum data length specified in the communication protocol, the actual time for the electronic device to send the data packet will almost occupy the entire sending time specified in the communication protocol. For example, the sending time specified in the communication protocol is the length of one time slot, that is, 625us. If the data length of the valid data in the data packet reaches the maximum data length defined in the communication protocol, the time for the electronic device to send the data packet will also be approximately 625us, resulting in a very short first switching gap between the electronic device switching from the sending state to the receiving state.

[0079] In this regard, as an optional implementation, in the process of data transmission and reception by an electronic device, a data packet to be sent can be generated according to a target data length, wherein the target data length refers to the data length of the valid data carried in the data packet to be sent, and the target data length is less than the maximum data length specified in the communication protocol, thereby reducing the data length of the valid data carried in the data packet to be sent, thereby making the actual sending time of the electronic device to send the data packet to be sent less than the sending time specified in the communication protocol, and the reduced part of the sending time is added to the first switching gap, thereby achieving the effect of increasing the first switching gap time. As the first switching gap time increases, the number of communication channels that the electronic device can detect within the first switching gap will also increase, thereby achieving the effect of increasing the detection efficiency.

[0080] For example, the sending duration specified in the communication protocol is the length of one time slot, that is, 625us. If the valid data in the data packet to be sent reaches the maximum data length specified in the communication protocol, the actual duration of the electronic device to send the data packet is 625us, and the corresponding first switching gap is 200us; if the valid data in the adjusted data packet to be sent is less than the maximum data length, the electronic device only needs 425us to send the adjusted data packet, and the remaining 200us can be added to the first switching gap, so that the first switching gap is increased to 400us.

[0081] Optionally, the electronic device may perform packet assembly and / or packet subassembly operations on the data packet to be sent to control the data length of valid data carried in the data packet to be sent to be less than the maximum data length specified in the communication protocol, which is not limited here.

[0082] By implementing the above method, the electronic device can adjust the data length of the valid data carried in the data packet to be sent to reduce the sending time required for the electronic device to actually send the data packet, thereby achieving the effect of increasing the first switching gap, and then the number of communication channels that the electronic device can detect within the first switching gap will also increase, thereby achieving the effect of increasing the detection efficiency.

[0083] Optionally, the above-mentioned scheme of reducing the actual sending time required for an electronic device to send a data packet by adjusting the data length of valid data carried in the data packet to be sent can be applied to traditional Bluetooth communications, wherein traditional Bluetooth may include Bluetooth other than low energy Bluetooth (BLE), which is not limited here.

[0084] In addition, in some Bluetooth-compatible communication protocols, the data length of valid data in a data packet cannot be modified. For example, in Bluetooth Low Energy, the data length of valid data in the Bluetooth Low Energy-compatible communication protocol cannot be modified. The effect of increasing the time slot for switching between the transmitting and receiving states can be achieved by adjusting the sending duration and / or receiving duration specified in the communication protocol.

[0085] As another optional implementation, the electronic device may also configure the sending duration of the electronic device to be a target sending duration, and / or configure the receiving duration of the electronic device to be a target receiving duration, wherein the target sending duration is greater than the standard sending duration specified in the communication protocol, and the target receiving duration is greater than the standard receiving duration specified in the communication protocol.

[0086] For example, if the standard sending duration specified in the communication protocol is 150us, the sending duration of the electronic device can be configured to be 250us. If the valid data in the data packet is not adjusted, since the electronic device actually only needs 150us to send the data packet, the remaining 100us is added to the duration of the first switching gap, thereby achieving the effect of increasing the first switching gap.

[0087] It should be noted that configuring the reception time of the electronic device to be longer than the standard reception time specified in the communication protocol can also achieve similar effects as mentioned above, which will not be repeated here.

[0088] Optionally, the above-mentioned scheme of increasing the transmit-receive state switching time slot by configuring the sending duration of the electronic device as the target sending duration, and / or configuring the receiving duration of the electronic device as the target receiving duration can be applied to scenarios where the data length of the valid data in the data packet cannot be modified, such as scenarios where the electronic device uses low-power Bluetooth, which is not limited here.

[0089] See also Figure 8 , Figure 8 FIG. 1 is another timing diagram of segmented channel detection disclosed in an embodiment of the present application. Figure 8 As shown, in the "data transceiver timing of the standard communication protocol", the first switching time slot is very short. The electronic device can configure the sending duration and / or receiving duration of the electronic device to obtain the "adjusted data transceiver timing". It can be seen that in the "adjusted data transceiver timing", the first switching time slot is significantly increased, so that more channels can be detected in each first switching time slot, thereby improving the detection efficiency.

[0090] By implementing the above method, the electronic device can increase the transmit-receive state switching time slot by configuring the sending duration of the electronic device as the target sending duration, and / or configuring the receiving duration of the electronic device as the target receiving duration. This allows the electronic device to increase the transmit-receive state switching time slot in certain scenarios where the data length of the valid data in the data packet cannot be modified, thereby improving the detection efficiency and the compatibility of the method.

[0091] 606. Adjust the duration of the target time slot according to the data transmission parameters of the electronic device during the communication process, where the data transmission parameters include at least one of the communication signal quality, the number of data retransmissions, and the amount of data accumulated in the buffer area.

[0092] It is understandable that the data transmission parameters of the electronic device during the communication process reflect the data transmission and reception of the electronic device to a certain extent. When the electronic device is in a busy state of data transmission and reception, the duration of the target time slot can be reduced to increase the duration of data transmission and reception, so as to ensure that the electronic device can transmit and receive data normally as much as possible. When the electronic device is in an idle state of data transmission and reception, for example: when the current signal quality is good, the retransmission rate is low, and there is less cache backlog data, the duration of the target time slot can be increased to increase the number of communication channels detected by the electronic device in the target time slot and improve the detection efficiency.

[0093] For example, when the electronic device is idle in data transmission and reception, the duration of the target time slot can be configured so that each target time slot can detect 40 communication channels. Assuming there are 80 communication channels in total, the electronic device can complete the detection of all communication channels within two target time slots, thereby improving the detection efficiency.

[0094] By implementing the above method, the electronic device can flexibly adjust the duration of the target time slot according to the data transmission and reception of the electronic device, thereby improving the noise intensity detection efficiency of the communication channel without affecting the normal data transmission and reception of the electronic device as much as possible, thereby improving the flexibility of the method.

[0095] As another optional implementation, the time slot type of the target time slot can be determined based on data transmission parameters, and the time slot type includes a transmission idle time slot, or a transceiver state switching time slot, and the data transmission parameters include at least one of the communication signal quality, the number of data retransmissions, and the amount of data accumulated in the cache area.

[0096] For example, when the electronic device is idle in data transmission and reception, the electronic device is in the transmission idle time slot for a long time, and the target time slot can use the transmission idle time slot; and at the next time point, if the electronic device is in the busy state of data transmission and reception, the target time slot uses the transmission idle time slot at this time. The detection efficiency may be reduced due to the fact that the electronic device is in the transmission idle time slot for too short a time, and even the above-mentioned situation of forcing the electronic device to stop transmitting and receiving data may occur. At this time, the time slot type of the target time slot can be adjusted to the transmitting and receiving state switching time slot to improve the noise intensity detection efficiency of the communication channel while ensuring that the electronic device can transmit and receive data normally.

[0097] By implementing the above method, the electronic device can flexibly adjust the type of the target time slot according to the data transmission and reception of the electronic device, thereby improving the noise intensity detection efficiency of the communication channel without affecting the normal data transmission and reception of the electronic device as much as possible, thereby improving the flexibility of the method.

[0098] By implementing the methods disclosed in the above embodiments, multiple communication channels can be divided into multiple channel sets, and the multiple channel sets can be dispersed into multiple target time slots for separate detection. Compared with detecting multiple channels at one time, the time span of the entire noise intensity detection can be expanded, and the situation where the time period when noise occurs and the window period of noise intensity detection are staggered as much as possible can be avoided, thereby improving the accuracy of the detected noise intensity, and further improving the accuracy of the channel quality of the communication channel determined according to the noise intensity; in addition, by performing noise intensity detection on the channel set in the target time slot when the electronic device is not transmitting or receiving data, it is also possible to avoid the influence of noise intensity detection on the normal data transmission and reception of the electronic device, thereby improving the data transmission and reception efficiency of the electronic device; and the electronic device can be used to detect the noise intensity of the channel set in the target time slot when the electronic device is not transmitting or receiving data. The sub-device performs noise intensity detection on the channel set within the transceiver state switching time slot for data transceiver switching, thereby avoiding the noise intensity detection process from affecting the normal data transceiver task of the electronic device, thereby improving the data transceiver efficiency of the electronic device; and the electronic device can flexibly adjust the duration of the target time slot according to the data transceiver situation of the electronic device, thereby improving the noise intensity detection efficiency of the communication channel without affecting the normal data transceiver of the electronic device as much as possible, thereby improving the flexibility of the method; and the type of the target time slot can be flexibly adjusted according to the data transceiver situation of the electronic device, thereby improving the noise intensity detection efficiency of the communication channel without affecting the normal data transceiver of the electronic device as much as possible, thereby improving the flexibility of the method.

[0099] See also Fig. 9 , Fig. 9 Schematic diagram of a channel quality detection device disclosed in an embodiment of the present application. Optionally, the device can be applied to the electronic device or other execution subject introduced above. The embodiment of the present application is described by taking the electronic device as an example, which should not be limited to the embodiment of the present application. Optionally, the device may include an acquisition unit 902 and a detection unit 904, wherein:

[0100] An acquisition unit 902 is used to acquire at least two channel sets to be detected, where the at least two channel sets are obtained by dividing a plurality of communication channels;

[0101] The detection unit 904 is used to perform noise intensity detection on each channel set in multiple target time slots during the process of data transmission and reception by the electronic device, so as to obtain the noise intensity corresponding to the multiple communication channels respectively. The target time slot is a time slot in which the electronic device is not transmitting or receiving data, and the noise intensity corresponding to each communication channel is used to determine the channel quality of the corresponding communication channel.

[0102] By implementing the above device, multiple communication channels can be divided to obtain at least two channel sets, so that at least one channel set can be detected for noise intensity in the subsequent time, which can improve the detection efficiency compared to detecting one channel separately at a time. Based on this, the electronic device can detect the noise intensity of each channel set in the target time slot where multiple electronic devices are not transmitting and receiving data during the data transmission and reception process, so as to obtain the noise intensity corresponding to the multiple communication channels. It can be seen that in the embodiment of the present application, multiple communication channels can be divided into multiple channel sets, and the multiple channel sets can be dispersed into multiple target time slots for separate detection. Compared with the centralized detection of multiple channels at one time, the time span of the entire noise intensity detection can be expanded, and the time period of noise occurrence can be avoided as much as possible. The window period of noise intensity detection is staggered, thereby improving the accuracy of the detected noise intensity, and then improving the accuracy of the channel quality of the communication channel determined according to the noise intensity; in addition, by detecting the noise intensity of the channel set in the target time slot where the electronic device is not transmitting and receiving data, it can also avoid the noise intensity detection from affecting the normal data transmission and reception of the electronic device, and improve the data transmission and reception efficiency of the electronic device.

[0103] As an optional implementation, there is at least one noise detection cycle in the process of data transmission and reception by the electronic device, and the noise detection cycle includes multiple detection sub-cycles; the detection unit 904 is also used to perform noise intensity detection on each channel set in the target time slots corresponding to the multiple detection sub-cycles, and the duration of the detection sub-cycle is determined according to the total duration of the noise detection cycle and the total number of channel sets.

[0104] By implementing the above-mentioned device, the noise detection cycle can be divided based on the noise detection cycle included in the existing communication protocol to obtain multiple detection sub-cycles, and multiple communication channels can be segmented for detection based on the multiple detection sub-cycles to expand the time span of the entire noise intensity detection, and the situation where the time period when the noise occurs is staggered with the window period of the noise intensity detection is avoided as much as possible, thereby improving the accuracy of the detected noise intensity; in addition, since the method is based on the existing communication protocol, it can also avoid the additional cost caused by modifying the communication protocol and the hardware of the electronic device, thereby reducing the overhead.

[0105] As an optional implementation, the detection unit 904 is also used to determine whether there is a target time slot with a duration greater than or equal to a target time slot in the current detection sub-cycle, where the target time slot is the duration required for noise intensity detection on a channel set, and the current detection sub-cycle is any one of multiple detection sub-cycles; if it exists, noise intensity detection is performed on at least one channel set that has not completed noise intensity detection in the target time slot; if it does not exist, noise intensity detection is not performed in the current detection sub-cycle, and the next detection sub-cycle is used as the new current detection sub-cycle, and the step of determining whether there is a target time slot with a duration greater than or equal to the target time slot in the current detection sub-cycle is re-executed.

[0106] By implementing the above-mentioned device, the noise detection cycle can be divided based on the noise detection cycle included in the existing communication protocol to obtain multiple detection sub-cycles, and multiple communication channels can be segmented for detection based on the multiple detection sub-cycles to expand the time span of the entire noise intensity detection, and to avoid as much as possible the situation where the time period when noise occurs is staggered with the window period of noise intensity detection, thereby improving the accuracy of the detected noise intensity.

[0107] As an optional implementation, Fig. 9 The device shown may also include a stopping unit (not shown), wherein:

[0108] The stopping unit is used to control the electronic device to stop sending and receiving data and perform noise intensity detection on the undetected channel set when the current detection sub-cycle is the last detection sub-cycle in the noise detection cycle and there is still an undetected channel set.

[0109] By implementing the above device, when there is still an undetected channel set in the next detection sub-cycle, the electronic device can be controlled to stop sending and receiving data, and the noise intensity detection can be forced to be performed on the undetected channel set, thereby ensuring that the noise intensity detection can be performed on all communication channels in one noise detection cycle, thereby improving the compatibility and anti-interference ability of the method.

[0110] As an optional implementation manner, the target time slot includes a transmission idle time slot, and the transmission idle time slot is an idle time period between two data transmission tasks during which no data transmission is performed.

[0111] As an optional implementation, the total number of channel sets obtained by dividing the multiple communication channels is determined according to a usage scenario, and the usage scenario is used to represent the data transmission speed of the electronic device.

[0112] By implementing the above device, multiple communication channels can be flexibly divided according to different usage scenarios to adapt to different usage scenarios, thereby improving the flexibility of the method. In addition, since in high-speed transmission scenarios, the duration of the target time slot where the electronic device is not transmitting data is relatively short, more channel sets can be divided for this purpose, so that the number of channels included in each channel set is relatively small, thereby ensuring that the electronic device can perform noise intensity detection on at least one channel set in a relatively short target time slot; while in low-speed transmission scenarios, the duration of the target time slot where the electronic device is not transmitting data is relatively long, so that fewer channel sets can be divided for this purpose, so that the number of channels included in each channel set is relatively large, thereby enabling more channels to be detected in each target time slot, so as to complete the detection of all channels through as few target time slots as possible, thereby improving the efficiency of detection and reducing the power consumption of the electronic device.

[0113] As an optional embodiment, the target time slot includes a transceiver state switching time slot of a communication module of an electronic device, and the transceiver state switching time slot includes a first switching gap between switching from a sending state to a receiving state and / or a second switching gap between switching from a receiving state to a sending state.

[0114] By implementing the above device, the electronic device can perform noise intensity detection on the channel set during the data transmission and reception state switching time slot, thereby avoiding the noise intensity detection process from affecting the normal data transmission and reception task of the electronic device, thereby improving the data transmission and reception efficiency of the electronic device.

[0115] As an optional implementation, the total number of at least two channel sets is determined based on the total number of multiple communication channels and the number of communication channels that can complete noise intensity detection within a transmit / receive state switching time slot.

[0116] By implementing the above device, multiple channel sets can be divided according to the number of communication channels that can complete noise intensity detection in one transceiver state switching time slot, so as to ensure that the electronic device can complete at least one channel set detection in each transceiver state switching time slot without wasting the transceiver state switching time slot, thereby improving the detection efficiency.

[0117] As an optional implementation, Fig. 9 The device shown may also include a sending unit not shown, wherein:

[0118] The sending unit is used to generate a data packet to be sent according to a target data length and send the data packet to be sent during the process of data transmission and reception by the electronic device; the target data length refers to the data length of the valid data carried in the data packet to be sent, and the target data length is less than the maximum data length specified in the communication protocol.

[0119] By implementing the above-mentioned device, the data length of the valid data carried in the data packet to be sent can be adjusted to reduce the sending time required for the electronic device to actually send the data packet, thereby achieving the effect of increasing the first switching gap, and further increasing the number of communication channels that the electronic device can detect within the first switching gap, thereby achieving the effect of increasing the detection efficiency.

[0120] As an optional implementation, Fig. 9 The device shown may also include a configuration unit not shown, wherein:

[0121] A configuration unit is used to configure the sending duration of the electronic device to be a target sending duration, and / or to configure the receiving duration of the electronic device to be a target receiving duration, the target sending duration is greater than the standard sending duration specified in the communication protocol, and the target receiving duration is greater than the standard receiving duration specified in the communication protocol; and to control the electronic device to send and receive data according to the target sending duration and / or the target receiving duration.

[0122] By implementing the above-mentioned device, the sending duration of the electronic device can be configured as the target sending duration, and / or the receiving duration of the electronic device can be configured as the target receiving duration to increase the sending and receiving state switching time slot, so that the electronic device can still increase the sending and receiving state switching time slot in certain scenarios where the data length of the valid data in the data packet cannot be modified, thereby improving the detection efficiency and the compatibility of the method.

[0123] As an optional implementation, Fig. 9 The device shown may also include an adjustment unit not shown, wherein:

[0124] The adjustment unit is used to adjust the duration of the target time slot according to the data transmission parameters of the electronic device during the communication process, and the data transmission parameters include at least one of the communication signal quality, the number of data retransmissions and the amount of data accumulated in the buffer area.

[0125] By implementing the above device, the duration of the target time slot can be flexibly adjusted according to the data transmission and reception of the electronic device, thereby improving the noise intensity detection efficiency of the communication channel without affecting the normal data transmission and reception of the electronic device as much as possible, thereby improving the flexibility of the method.

[0126] As an optional implementation, the time slot type of the target time slot is determined based on data transmission parameters, and the time slot type includes a transmission idle time slot or a transceiver state switching time slot. The data transmission parameters include at least one of the communication signal quality, the number of data retransmissions, and the amount of data accumulated in the cache area.

[0127] By implementing the above device, the type of target time slot can be flexibly adjusted according to the data transmission and reception of the electronic device, thereby improving the noise intensity detection efficiency of the communication channel without affecting the normal data transmission and reception of the electronic device as much as possible, thereby improving the flexibility of the method.

[0128] See also Fig.10 , Fig.10 Schematic diagram of the structure of an electronic device disclosed in the embodiment of the present application. Fig.10 As shown, the electronic device may include:

[0129] A memory 1001 storing executable program codes;

[0130] A processor 1002 coupled to the memory 1001;

[0131] The processor 1002 calls the executable program code stored in the memory 1001 to execute the channel quality detection method disclosed in the above embodiments.

[0132] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the channel quality detection method disclosed in the above embodiments.

[0133] The embodiments of the present application also disclose an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps of the method in the above method embodiments.

[0134] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.

[0135] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

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

[0137] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0138] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.

[0139] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0140] The channel quality detection method and device, electronic device, and storage medium disclosed in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for detecting channel quality, characterized in that: Applied to electronic equipment, the method includes: Acquire at least two channel sets to be detected, where the at least two channel sets are obtained by dividing a plurality of communication channels; During the process of data transmission and reception by the electronic device, noise intensity detection is performed on each of the channel sets in multiple target time slots to obtain the noise intensity corresponding to the multiple communication channels. The target time slot is a time slot in which the electronic device is not transmitting or receiving data. The noise intensity corresponding to each of the communication channels is used to determine the channel quality of the corresponding communication channel.

2. The method according to claim 1, characterized in that There is at least one noise detection period during the data transmission and reception process of the electronic device, and the noise detection period includes multiple detection sub-periods; The performing noise intensity detection on each of the channel sets in the plurality of target time slots includes: In the target time slots corresponding to the plurality of detection sub-cycles, noise intensity detection is performed on each of the channel sets. The duration of the detection sub-cycle is determined according to the total duration of the noise detection cycle and the total number of the channel sets.

3. The method according to claim 2, characterized in that The performing noise intensity detection on each of the channel sets in the target time slots corresponding to the plurality of detection sub-periods respectively includes: Determining whether there is a target time slot with a duration greater than or equal to a target time duration in a current detection sub-cycle, where the target time duration is a duration required for performing noise intensity detection on one of the channel sets, and the current detection sub-cycle is any one of the multiple detection sub-cycles; If so, performing noise intensity detection on an undetected channel set in the target time slot; If not, the noise intensity detection is not performed in the current detection sub-cycle, and the next detection sub-cycle is used as the new current detection sub-cycle, and the step of determining whether there is a target time slot with a duration greater than or equal to the target time length in the current detection sub-cycle is re-executed.

4. The method according to claim 3, characterized in that The method further comprises: If the current detection sub-cycle is the last detection sub-cycle in the noise detection cycle and there are one or more undetected channel sets, the electronic device is controlled to stop sending and receiving data and perform noise intensity detection on the one or more undetected channel sets.

5. The method according to any one of claims 2 to 4, characterized in that The target time slot includes a transmission idle time slot, which is an idle time period between two data transmission tasks during which no data transmission is performed.

6. The method according to claim 1, characterized in that The total number of channel sets obtained by dividing the multiple communication channels is determined according to a usage scenario, and the usage scenario is related to the data transmission speed of the electronic device.

7. The method according to claim 1, characterized in that The target time slot includes a transceiver state switching time slot of the communication module of the electronic device, and the transceiver state switching time slot includes a first switching gap between switching from a transmitting state to a receiving state and / or a second switching gap between switching from a receiving state to a transmitting state.

8. The method according to claim 7, characterized in that The total number of the at least two channel sets is determined according to the total number of the plurality of communication channels and the number of communication channels capable of completing noise intensity detection within one of the transmit / receive state switching time slots.

9. The method according to claim 7 or 8, characterized in that The method further comprises: During the process of data transmission and reception by the electronic device, generating a data packet to be transmitted according to a target data length, and transmitting the data packet to be transmitted; The target data length refers to the data length of the valid data carried in the data packet to be sent, and the target data length is less than the maximum data length specified in the communication protocol.

10. The method according to claim 7 or 8, characterized in that The method further comprises: Configuring a sending duration of the electronic device to a target sending duration, and / or configuring a receiving duration of the electronic device to a target receiving duration, wherein the target sending duration is greater than a standard sending duration specified in the communication protocol, and the target receiving duration is greater than a standard receiving duration specified in the communication protocol; The electronic device is controlled to send and receive data according to the target sending duration and / or the target receiving duration.

11. The method according to claim 7 or 8, characterized in that The method further comprises: The duration of the target time slot is adjusted according to data transmission parameters of the electronic device during communication, wherein the data transmission parameters include at least one of communication signal quality, number of data retransmissions, and amount of data accumulated in a buffer area.

12. The method according to claim 1, characterized in that The time slot type of the target time slot is determined based on data transmission parameters, and the time slot type includes a transmission idle time slot or a transceiver state switching time slot. The data transmission parameters include at least one of the communication signal quality, the number of data retransmissions, and the amount of data accumulated in the buffer area.

13. A device for detecting channel quality, characterized in that: Applied to electronic equipment, the device comprises: an acquiring unit, configured to acquire at least two channel sets to be detected, wherein the at least two channel sets are obtained by dividing a plurality of communication channels; The detection unit is used to perform noise intensity detection on each of the channel sets in multiple target time slots during the process of data transmission and reception by the electronic device, so as to obtain the noise intensity corresponding to the multiple communication channels, respectively. The target time slot is a time slot in which the electronic device is not transmitting or receiving data, and the noise intensity corresponding to each of the communication channels is used to determine the channel quality of the corresponding communication channel.

14. An electronic device, characterized in that: The method comprises a memory storing executable program code and a processor coupled to the memory; wherein the processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 12.

15. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.