Channel selection method, channel selection equipment, channel quality determination method, channel quality determination equipment and channel quality determination system

Through the real-time counting mechanism and the channel quality interactive selection method, the problem of inaccurate channel quality evaluation in Bluetooth communication is solved, and the reliability and stability of communication are improved.

CN119402841APending Publication Date: 2025-02-07ROCKCHIP (BEIJING) INTEGRATED CIRCUIT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411345992.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In the existing Bluetooth communication technology, channel quality evaluation is not accurate enough, resulting in a decrease in communication quality during adaptive frequency hopping.

Method used

The real-time counting mechanism is used to accurately measure and record the total number of packets and packets of the channel. The master and slave devices respectively judge the channel quality, and interactively select the transmission channel through channel quality information.

Benefits of technology

By more accurately reflecting channel performance and selecting better quality channels, ensuring the reliability and stability of Bluetooth communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402841A_ABST
    Figure CN119402841A_ABST
Patent Text Reader

Abstract

The invention provides a channel selection method, channel selection equipment, channel quality determination method, channel quality determination equipment and a channel quality determination system. The channel selection method comprises the following steps: updating the total packet number and the error packet number of each channel according to the receiving and transmitting conditions of data packets; determining the channel quality of the channel according to the total packet number and the error packet number; receiving channel quality information transmitted by the slave device; and selecting a transmission channel according to the channel quality and the channel quality information. According to the channel selection method provided by the invention, the channel with better quality can be selected, so that the reliability of Bluetooth communication is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the technical field of Bluetooth communication, and in particular relates to a Bluetooth channel selection method and device, a Bluetooth channel quality determination method and device, and a Bluetooth system. Background Art

[0002] Bluetooth is a short-range wireless communication technology that is widely used for data transmission between various devices, such as headphones, mobile phones, smart watches, etc. The Bluetooth protocol provides a standardized communication method that enables devices of different brands and types to connect to each other and exchange data. The advantages of Bluetooth technology lie in its low power consumption and convenient device pairing function, which is suitable for a variety of scenarios that require short-range wireless communication, such as audio transmission, file sharing, and smart home device control.

[0003] Adaptive Frequency Hopping (AFH) is an important function in Bluetooth technology, which is used to improve the reliability of data transmission. Based on adaptive frequency hopping technology, Bluetooth devices will frequently jump between multiple channels during communication to avoid interference from other wireless devices. Summary of the invention

[0004] The embodiments of the present disclosure provide a Bluetooth channel selection method and device, a Bluetooth channel quality determination method and device, and a Bluetooth system, so as to improve the quality of Bluetooth communication.

[0005] In a first aspect, an embodiment of the present disclosure provides a Bluetooth channel selection method, which is applied to a master device. The Bluetooth channel selection method includes: updating the total number of packets and the number of error packets of each channel according to the sending and receiving status of the data packets; determining the channel quality of the channel according to the total number of packets and the number of error packets; receiving channel quality information sent by a slave device; and selecting a transmission channel according to the channel quality and the channel quality information.

[0006] In an implementation of the first aspect, updating the total number of packets and the number of erroneous packets of each channel according to the receiving and sending status of the data packets includes: after a frame of data ends, adding 1 to the total number of packets of the current channel transmitting the frame of data; and updating the number of erroneous packets of the current channel according to the receiving status of the frame of data.

[0007] In an implementation of the first aspect, updating the number of packet errors corresponding to the current channel according to the reception status of the frame of data includes: if the frame of data is received successfully and the ARQN in the header of the received data packet is NAK, then the number of packet errors corresponding to the current channel is increased by 1; and if the frame of data is received unsuccessfully and the receiving power is greater than the power threshold value, then the number of packet errors corresponding to the current channel is increased by 1.

[0008] In an implementation manner of the first aspect, determining the channel quality of the channel according to the total number of packets and the number of error packets includes: determining that the channel quality of the channel is one of poor, good, and unknown.

[0009] In an implementation of the first aspect, determining the channel quality of the channel based on the total number of packets and the number of error packets includes: at the channel evaluation moment, if the total number of packets of the current channel is greater than 0, obtaining the packet error rate of the current channel based on the total number of packets and the number of error packets of the current channel; and determining the channel quality of the current channel based on the relationship between the packet error rate and the packet error rate threshold.

[0010] In an implementation of the first aspect, determining the channel quality of the current channel according to the relationship between the packet error rate and the packet error rate threshold includes: if the packet error rate is less than the packet error rate threshold, determining that the channel quality of the current channel is good; and if the packet error rate is greater than the packet error rate threshold, determining that the channel quality of the current channel is poor.

[0011] In an implementation of the first aspect, determining the channel quality of the channel based on the total number of packets and the number of erroneous packets includes: at the channel evaluation moment, if the total number of packets of the current channel is 0, and if the channel quality of the current channel has not been determined to be poor, then determining that the channel quality of the current channel is unknown; otherwise, determining that the channel quality of the current channel is poor.

[0012] In an implementation of the first aspect, the Bluetooth channel selection method further includes: if the number of channels whose channel quality is determined to be good or unknown is less than a channel number threshold, increasing the packet error rate threshold, and re-determining the channel quality based on the increased packet error rate threshold.

[0013] In an implementation manner of the first aspect, the Bluetooth channel selection method further includes: determining a recovery time of a bad channel according to a total number of packets and a number of error packets of a bad channel whose channel quality is determined to be poor.

[0014] In an implementation of the first aspect, selecting a transmission channel according to the channel quality and the channel quality information includes: acquiring good channels and unknown channels whose channel qualities are determined by the master device as good and unknown as a first channel set according to the determined channel quality; acquiring good channels and unknown channels whose channel qualities are determined by the slave device as good and unknown as a second channel set according to the received channel quality information; and selecting the transmission channel according to the first channel set and the second channel set.

[0015] In an implementation of the first aspect, selecting the transmission channel according to the first channel set and the second channel set includes: obtaining the intersection of the first channel set and the second channel set; and obtaining the transmission channel according to the intersection of the first channel set and the second channel set.

[0016] In an implementation of the first aspect, obtaining the transmission channel according to the intersection of the first channel set and the second channel set includes: if the number of channels in the intersection is greater than or equal to a channel number threshold, selecting the channel in the intersection as the transmission channel; otherwise, selecting several channels as the transmission channel according to the intersection and the first channel set.

[0017] In an implementation of the first aspect, selecting a number of channels as the transmission channels according to the intersection and the first channel set includes: selecting m channels from the difference set of the first channel set and the intersection in order of packet error rate from low to high, where m is the difference between the channel number threshold and the number of channels in the intersection; and using the m channels and the channels in the intersection as the transmission channels.

[0018] In a second aspect, an embodiment of the present disclosure provides a method for determining Bluetooth channel quality, which is applied to a slave device. The method for determining Bluetooth channel quality includes: updating the total number of packets and the number of erroneous packets of each channel according to the sending and receiving status of the data packets; determining the channel quality of the channel according to the total number of packets and the number of erroneous packets; and sending channel quality information representing the channel quality to the master device.

[0019] In an implementation of the second aspect, updating the total number of packets and the number of erroneous packets of each channel according to the receiving and sending status of the data packets includes: after a frame of data ends, adding 1 to the total number of packets of the current channel transmitting the frame of data; updating the number of erroneous packets of the current channel according to the receiving status of the frame of data; and updating the number of erroneous packets of the previous channel transmitting the previous frame of data according to the receiving status of the frame of data and the previous frame of data.

[0020] In an implementation of the second aspect, updating the number of packet errors of the current channel according to the reception status of the frame of data includes: if the frame of data fails to be received and the receiving power is greater than the power threshold value, then adding 1 to the number of packet errors of the current channel.

[0021] In an implementation of the second aspect, updating the number of packet errors of the previous channel for transmitting the previous frame data according to the reception status of the frame data and the previous frame data includes: if the frame data is received successfully and the ARQN in the header of the received data packet is NAK, and if the previous frame data is received successfully and there is data to be sent in the previous channel, then the number of packet errors of the previous channel is increased by 1; and if the frame data is received unsuccessfully and the receiving power is greater than the power threshold value, and if the previous frame data is received successfully and there is data to be sent in the previous channel, then the number of packet errors of the previous channel is increased by 1.

[0022] In a third aspect, an embodiment of the present disclosure provides a Bluetooth channel selection method. The Bluetooth channel selection method comprises: the master device updates the total number of packets and the number of erroneous packets of the first group of channels according to the sending and receiving status of the data packets; the slave device updates the total number of packets and the number of erroneous packets of the second group of channels according to the sending and receiving status of the data packets; the master device determines the channel quality of the first group of channels according to the total number of packets and the number of erroneous packets of the first group of channels; the slave device determines the channel quality of the second group of channels according to the total number of packets and the number of erroneous packets of the second group of channels; the slave device sends channel quality information indicating the channel quality of the second group of channels to the master device; and the master device selects a transmission channel according to the determined channel quality and the received channel quality information.

[0023] In a fourth aspect, an embodiment of the present disclosure provides a Bluetooth channel selection device, which includes: a memory; and a processor, coupled to the memory and configured to execute a Bluetooth channel selection method provided according to an embodiment of the present disclosure.

[0024] In a fifth aspect, an embodiment of the present disclosure provides a device for determining Bluetooth channel quality. The device for determining Bluetooth channel quality comprises: a memory; and a processor, coupled to the memory and configured to execute a method for determining Bluetooth channel quality provided by an embodiment of the present disclosure.

[0025] In a sixth aspect, an embodiment of the present disclosure provides a Bluetooth system. The Bluetooth communication system includes: a Bluetooth channel selection device configured to: update the total number of packets and the number of erroneous packets of a first group of channels according to the sending and receiving status of data packets; determine the channel quality of the first group of channels according to the total number of packets and the number of erroneous packets of the first group of channels; receive channel quality information; and select a transmission channel according to the determined channel quality and the received channel quality information; and a Bluetooth channel quality determination device configured to: update the total number of packets and the number of erroneous packets of a second group of channels according to the sending and receiving status of data packets; determine the channel quality of the second group of channels according to the total number of packets and the number of erroneous packets of the second group of channels; and send the channel quality information representing the channel quality of the second group of channels to the Bluetooth channel selection device.

[0026] The disclosed embodiment proposes a real-time counting mechanism for accurately measuring and recording the total number of packets and the number of erroneous packets of a channel. The master device and the slave device make channel quality judgments based on the total number of packets and the number of erroneous packets, respectively. The slave device sends channel quality information indicating the channel quality to the master device. The master device selects a transmission channel based on the channel quality determined by itself and the received channel quality information. In this way, a channel with better quality can be selected, thereby ensuring the reliability of Bluetooth communication.

[0027] When determining the channel quality, the embodiment of the present disclosure comprehensively considers whether the data is successfully transmitted and the size of the received power, thereby being able to more accurately reflect the actual performance of the channel.

[0028] The disclosed embodiment proposes an adaptive threshold value adjustment strategy, which dynamically adjusts the packet error rate threshold according to the number of available channels. When the number of available channels is less than the channel number threshold, the packet error rate threshold is automatically increased to allow more channels to be considered as available channels, thereby ensuring the stability and reliability of the communication system.

[0029] The disclosed embodiment proposes a method of setting the recovery time in a hierarchical manner. For a channel whose channel quality is determined to be poor, the corresponding recovery time is set according to the size of its packet error rate. This method can ensure that channels with relatively good performance can be quickly restored to use, while giving channels with relatively poor performance a longer recovery time, so as to improve the overall channel utilization and communication quality.

[0030] The disclosed embodiments ensure that the Bluetooth communication system can quickly respond to changes in channel quality by real-time monitoring of channel status and adaptive adjustment strategies, thereby maintaining efficient and stable communication in a dynamically changing wireless environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 An exemplary diagram showing an implementation environment of an embodiment of the present disclosure is shown.

[0032] Figure 2 Shown is a flowchart of a Bluetooth channel selection method provided by an embodiment of the present disclosure.

[0033] Figure 3 Shown is a flow chart of determining channel quality in an embodiment of the present disclosure.

[0034] Figure 4 Shown is a flow chart of selecting a transmission channel according to channel quality and channel quality information in an embodiment of the present disclosure.

[0035] Figure 5 Shown is a flowchart of selecting a transmission channel according to a first channel set and a second channel set in an embodiment of the present disclosure.

[0036] Figure 6Shown is a flow chart of selecting a plurality of channels as transmission channels according to the intersection and the first channel set in an embodiment of the present disclosure.

[0037] Figure 7 Shown is a flowchart of a method for determining Bluetooth channel quality provided by an embodiment of the present disclosure.

[0038] Figure 8 The flowchart shown is for updating the total number of packets and the number of erroneous packets of each channel according to the sending and receiving status of the data packets according to the embodiment of the present disclosure.

[0039] Fig. 9 Shown is a flowchart of a Bluetooth channel selection method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0040] The following is an explanation of the embodiments of the present disclosure by specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0041] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present disclosure in a schematic manner, and thus the illustrations only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0042] In the embodiments of the present disclosure, the words "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0043] In the embodiments of the present disclosure, "at least one" refers to one or more, and "more than one" 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, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.

[0044] Figure 1 A schematic diagram of an overall implementation environment of an embodiment of the present disclosure is shown. Figure 1 In the implementation environment shown, the Bluetooth communication system includes a master device (Master) and a slave device (Slave), and the master device and the slave device are connected by Bluetooth. The master device, such as a smart phone, a laptop, a tablet computer, etc., is used to manage the Bluetooth communication connection and realize data transmission between the slave device. The slave device, such as a wireless headset, a smart watch, a smart speaker, etc., is used to respond to the command of the master device and perform corresponding operations.

[0045] When performing Bluetooth communication, the master device and the slave device can achieve efficient and stable data transmission through an adaptive frequency hopping mechanism. Specifically, during the Bluetooth connection establishment phase, the master device and the slave device generate a frequency hopping sequence through protocol negotiation. The frequency hopping sequence defines the order of channels that the devices will use during communication. During the communication process, the master device and the slave device will monitor the interference in the spectrum, determine the channel quality of different channels based on the interference, and dynamically update the frequency hopping sequence based on the channel quality to exclude channels with poor channel quality from the frequency hopping sequence, thereby reducing the impact of interference on communication quality. However, the assessment of channel quality in some technical solutions is not accurate, and adaptive frequency hopping based on this will lead to a decrease in communication quality.

[0046] At least for the above-mentioned problems, the embodiments of the present disclosure provide a Bluetooth channel selection method and device, a Bluetooth channel quality determination method and device, and a Bluetooth system. In the embodiments of the present disclosure, a real-time counting mechanism is used to accurately measure and record the total number of packets and the number of erroneous packets of the channel. The master device and the slave device make channel quality judgments based on the total number of packets and the number of erroneous packets, respectively. The slave device sends the channel quality judgment result to the master device. The master device selects a transmission channel based on the channel quality determined by itself and the channel quality determined by the slave device. In this way, a channel with better quality can be selected, thereby ensuring the reliability of Bluetooth communication.

[0047] In some implementations, the channel quality is determined by comprehensively considering whether the data is successfully transmitted and the size of the received power, thereby being able to more accurately reflect the actual performance of the channel.

[0048] In some implementations, an adaptive threshold value adjustment strategy is proposed to dynamically adjust the packet error rate threshold according to the number of available channels. When the number of available channels is less than the channel number threshold, the packet error rate threshold is automatically increased to allow more channels to be considered as available channels, thereby ensuring the stability and reliability of the communication system.

[0049] In some implementations, a hierarchical setting of recovery time is proposed. For channels whose channel quality is determined to be poor, the corresponding recovery time is set according to the size of its packet error rate. This method can ensure that channels with relatively good performance can be quickly restored to use, while giving channels with relatively poor performance a longer recovery time to improve overall channel utilization and communication quality.

[0050] In some implementations, by real-time monitoring of channel status and adaptively adjusting strategies, it is ensured that the Bluetooth communication system can quickly respond to changes in channel quality, thereby maintaining efficient and stable communication in a dynamically changing wireless environment.

[0051] The technical solutions in the embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present disclosure.

[0052] Figure 2 1 is a flow chart showing a method for selecting a Bluetooth channel according to an embodiment of the present disclosure, and the method for selecting a Bluetooth channel is applied to a master device. Figure 2 As shown, the Bluetooth channel selection method includes the following steps S21 to S24.

[0053] In step S21, the total number of packets and the number of erroneous packets of each channel are updated according to the sending and receiving status of the data packets.

[0054] In step S22, the channel quality of the channel is determined according to the total number of packets and the number of error packets. Specifically, the channel quality is periodically evaluated in adaptive frequency hopping, and the evaluation period and channel evaluation time can be set according to actual needs. The master device can determine the channel quality of the channel in the Bluetooth communication system at the channel evaluation time.

[0055] In step S23, channel quality information transmitted by the slave device is received.

[0056] In step S24, a transmission channel is selected according to the channel quality and the channel quality information.

[0057] In some implementations, the master device updates the total number of packets and the number of erroneous packets of each channel according to the reception and transmission status of the data packets, including: after a frame of data is completed, adding 1 to the total number of packets of the current channel transmitting the frame of data; and updating the number of erroneous packets of the current channel according to the reception status of the frame of data.

[0058] Exemplarily, the master device updates the number of packet errors corresponding to the current channel according to the reception status of the frame of data, including: if the frame of data is received successfully, and the ARQN (Acknowledgment) in the header of the received data packet is NAK (Negative Acknowledgment), then the number of packet errors corresponding to the current channel is increased by 1; if the frame of data is received unsuccessfully, and the receiving power is greater than the power threshold value, then the number of packet errors corresponding to the current channel is increased by 1. The power threshold value can be set according to the receiving sensitivity of the device, etc.

[0059] Specifically, in Bluetooth communication, ARQN is a bit in a data packet, which is used to indicate the reception status of the previous data packet. When ARQN is NAK, it means that the previous data packet was not received correctly and needs to be retransmitted.

[0060] When the master device and the slave device are far apart, the receiving power will decrease, which may also lead to reception failure. Based on this, the embodiment of the present disclosure comprehensively considers whether the data is received successfully and the receiving power. When the data fails to be received and the receiving power is greater than the power threshold value, the number of packet errors corresponding to the current channel is increased by 1, otherwise the number of packet errors of the current channel remains unchanged. In this way, the number of packet errors can be accurately counted.

[0061] In some implementations, determining the channel quality of the channel according to the total number of packets and the number of erroneous packets includes: determining the channel quality of the channel to be one of bad, good, and unknown.

[0062] See also Figure 3 , determining the channel quality of a channel according to the total number of packets and the number of error packets includes the following steps S31 and S32.

[0063] In step S31, at the channel evaluation time, if the total number of packets of the current channel is greater than 0, the packet error rate of the current channel is obtained according to the total number of packets and the number of error packets of the current channel. The packet error rate is, for example, the quotient of the number of error packets and the total number of packets.

[0064] In step S32, the channel quality of the current channel is determined according to the relationship between the packet error rate and the packet error rate threshold. The value of the packet error rate threshold can be set according to actual needs, and the specific value is not limited in this disclosure.

[0065] Exemplarily, determining the channel quality of the current channel based on the relationship between the packet error rate and the packet error rate threshold includes: if the packet error rate is less than the packet error rate threshold, determining that the channel quality of the current channel is good; if the packet error rate is greater than the packet error rate threshold, determining that the channel quality of the current channel is poor.

[0066] In some implementations, determining the channel quality of a channel based on the total number of packets and the number of erroneous packets includes: at the channel evaluation moment, if the total number of packets of the current channel is 0, and if the channel quality of the current channel has not been determined to be poor, then determining the channel quality of the current channel to be unknown; otherwise, determining the channel quality of the current channel to be poor.

[0067] In some implementations, if the number of channels whose channel quality is determined to be good or unknown is less than the channel quantity threshold, the packet error rate threshold is increased, and the channel quality is re-determined based on the increased packet error rate threshold. The system may repeat the above steps until the number of channels determined to be good or unknown is greater than or equal to the channel quantity threshold. The value of the channel quantity threshold may be set according to actual needs, and the specific value is not limited in this disclosure.

[0068] In some implementations, the channel selection method provided by the embodiments of the present disclosure may further include: determining the recovery time of the poor channel according to the total number of packets and the number of erroneous packets of the poor channel whose channel quality is determined to be poor. For a poor channel, its channel quality is not evaluated when it is within the recovery time, and it is restored and selected for use at the next evaluation time after the expiration of its recovery time.

[0069] Exemplarily, the recovery time of the poor channel may be determined to be positively correlated with its packet error rate. For a poor channel with a small packet error rate, a relatively short recovery time is configured for it so that the poor channel can be reselected for use more quickly. For a poor channel with a large packet error rate, a relatively long recovery time is configured for it. The timing start time of the recovery time of the poor channel is the time when the poor channel was last used.

[0070] See also Figure 4 In some implementations, selecting a transmission channel according to the channel quality and the channel quality information includes the following steps S41 to S43.

[0071] In step S41, good channels and unknown channels whose channel qualities are determined by the master device to be good and unknown are acquired as a first channel set according to the determined channel qualities.

[0072] In step S42, good channels and unknown channels whose channel qualities are determined by the slave device to be good and unknown are acquired as a second channel set according to the received channel quality information.

[0073] In step S43, a transmission channel is selected according to the first channel set and the second channel set.

[0074] See also Figure 5 In some implementations, selecting a transmission channel according to the first channel set and the second channel set includes the following steps S51 and S52.

[0075] In step S51, the intersection of the first channel set and the second channel set is obtained.

[0076] In step S52, a transmission channel is acquired according to the intersection of the first channel set and the second channel set.

[0077] Exemplarily, if the number of channels in the intersection is greater than or equal to the channel number threshold, the channels in the intersection are selected as transmission channels; otherwise, a number of channels are selected as transmission channels according to the intersection and the first channel set.

[0078] See also Figure 6 , selecting a number of channels as transmission channels according to the intersection and the first channel set includes the following steps S61 and S62.

[0079] In step S61, m channels are selected from the difference set between the first channel set and the intersection set in order of packet error rate from low to high, where m is the difference between the channel quantity threshold and the number of channels in the intersection set.

[0080] In step S62, the m channels and the channels in the intersection are used as transmission channels.

[0081] As described above, by selecting m channels with the lowest packet error rate from the difference set between the first channel set and the intersection, and using the intersection of the m channels and the first channel set and the second channel set as transmission channels, it is possible to ensure as much as possible that the quality of the selected transmission channels meets the Bluetooth communication requirements, thereby improving the reliability of communication.

[0082] The embodiment of the present disclosure also provides a method for determining Bluetooth channel quality, which is applied to a slave device. Figure 7 FIG. 4 is a flow chart showing a method for determining Bluetooth channel quality according to an embodiment of the present disclosure. Figure 7 As shown, the Bluetooth channel quality determination method includes the following steps S71 to S73.

[0083] In step S71, the total number of packets and the number of erroneous packets of each channel are updated according to the sending and receiving status of the data packets.

[0084] In step S73, the channel quality of the channel is determined according to the total number of packets and the number of error packets.

[0085] In step S73, channel quality information indicating the channel quality is sent to the master device. Exemplarily, the slave device may report the channel quality information to the master device via LMP_CHANNEL_CLASSIFICATION.

[0086] For example, see Figure 8 , the slave device updates the total number of packets and the number of erroneous packets of each channel according to the sending and receiving status of the data packet, including the following steps S81 to S83.

[0087] In step S81, after a frame of data is completed, the total number of packets of the current channel transmitting the frame of data is increased by 1.

[0088] In step S82, the number of packet errors of the current channel is updated according to the reception status of the frame of data.

[0089] In step S83, the number of packet errors of the previous channel for transmitting the previous frame of data is updated according to the reception status of the frame of data and the previous frame of data.

[0090] Exemplarily, updating the number of packet errors of the current channel according to the reception status of the frame of data includes: if the frame of data fails to be received and the receiving power is greater than the power threshold value, adding 1 to the number of packet errors of the current channel.

[0091] Exemplarily, updating the number of packet errors of the previous channel for transmitting the previous frame of data according to the reception status of the frame of data and the previous frame of data includes: if the frame of data is received successfully and the ARQN in the header of the received data packet is NAK, and if the previous frame of data is received successfully and there is data to be sent in the previous channel, then the number of packet errors of the previous channel is increased by 1; if the frame of data is received unsuccessfully and the receiving power is greater than the power threshold value, and if the previous frame of data is received successfully and there is data to be sent in the previous channel, then the number of packet errors of the previous channel is increased by 1.

[0092] The slave device receives each frame of data before sending it. To judge the quality of a frame channel, it is necessary to consider not only the receiving situation but also the sending situation. However, whether the sent data is successfully received by the peer device can only be determined in the next frame. Based on this, in the embodiment of the present disclosure, the number of error packets of the current frame channel and the previous frame channel will be updated according to the receiving and sending status of the data packet. When a frame of data is received successfully and the ARQN in the header of the received data packet is NAK, and the previous frame of data is received successfully and there is data sent in the previous frame channel, the number of error packets of the previous frame channel is increased by 1. If a frame of data fails to be received, and the receiving power is greater than the power threshold value, and the previous frame of data is received successfully and there is data sent in the previous frame channel, the number of error packets of the previous frame channel is increased by 1. In this way, the slave device can determine the channel quality more accurately.

[0093] In addition to the above contents, the method and steps used by the slave device to determine the Bluetooth channel quality are similar to those in the above embodiments and are not described in detail here.

[0094] The present disclosure also provides a Bluetooth channel selection method, which is applied to Figure 1The Bluetooth communication system shown. Fig. 9 is a flow chart showing a method for selecting a Bluetooth channel according to an embodiment of the present disclosure. Fig. 9 As shown, the Bluetooth channel selection method includes the following steps S91 to S96.

[0095] In step S91, the master device updates the total number of packets and the number of erroneous packets of the first group of channels according to the receiving and sending status of the data packets.

[0096] In step S92, the slave device updates the total number of packets and the number of erroneous packets of the second group of channels according to the receiving and sending status of the data packets.

[0097] In step S93, the master device determines the channel quality of the first group of channels according to the total number of packets and the number of erroneous packets of the first group of channels.

[0098] In step S94, the slave device determines the channel quality of the second group of channels according to the total number of packets and the number of erroneous packets of the second group of channels.

[0099] In step S95, the slave device sends channel quality information indicating the channel quality of the second group of channels to the master device.

[0100] In step S96, the master device selects a transmission channel according to the determined channel quality and the received channel quality information.

[0101] The specific implementation of the above steps S91 to S96 has been described in detail in the above embodiments, and will not be repeated here for the sake of brevity.

[0102] The protection scope of the Bluetooth channel selection method and / or Bluetooth channel quality determination method provided by the embodiments of the present disclosure is not limited to the execution order of the steps listed in the embodiments. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present disclosure are included in the protection scope of the present disclosure.

[0103] The present disclosure embodiment also provides a Bluetooth channel selection device, which includes a memory and a processor. The processor is coupled to the memory and is configured to execute the Bluetooth channel selection method provided by the present disclosure embodiment. In some embodiments, the Bluetooth channel selection device may include a Bluetooth controller or a Bluetooth chip. In some embodiments, the Bluetooth channel selection device is included in a main device.

[0104] The present disclosure also provides a Bluetooth channel quality determination device, which includes a memory and a processor. The processor is coupled to the memory and is configured to execute the Bluetooth channel quality determination method provided by the present disclosure. In some embodiments, the Bluetooth channel quality determination device may include a Bluetooth controller or a Bluetooth chip. In some embodiments, the Bluetooth channel quality determination device is included in a slave device.

[0105] The embodiment of the present disclosure further provides a Bluetooth system, which includes a Bluetooth channel selection device and a Bluetooth channel quality determination device.

[0106] The Bluetooth channel selection device is configured to update the total number of packets and the number of erroneous packets of the first group of channels according to the sending and receiving status of the data packets, and determine the channel quality of the first group of channels according to the total number of packets and the number of erroneous packets of the first group of channels. The Bluetooth channel selection device is configured to receive channel quality information, and select a transmission channel according to the determined channel quality and the received channel quality information.

[0107] The Bluetooth channel quality determination device is configured to update the total number of packets and the number of erroneous packets of the second group of channels according to the sending and receiving status of the data packets, and determine the channel quality of the second group of channels according to the total number of packets and the number of erroneous packets of the second group of channels. The Bluetooth channel quality determination device is configured to send the channel quality information representing the channel quality of the second group of channels to the Bluetooth channel selection device.

[0108] In summary, the embodiments of the present disclosure provide an efficient and adaptive channel management strategy, which can provide an optimized channel allocation and recovery mechanism in a complex wireless communication environment, and significantly improve the performance and reliability of the communication system.

[0109] The disclosed embodiments provide a real-time counting mechanism for accurately measuring and recording the packet error rate of each channel. The counting is performed separately according to the different roles of the devices. This mechanism comprehensively considers the success or failure of data transmission and the received power to more accurately reflect the actual performance of the channel.

[0110] The disclosed embodiment also designs a method for dynamically adjusting the packet error rate threshold value according to the number of available channels. When the number of available channels is lower than the channel number threshold, the system automatically increases the packet error rate threshold value to allow more channels to be considered as available channels, thereby ensuring the stability and reliability of the communication system.

[0111] The disclosed embodiment also proposes a hierarchical recovery time setting strategy. For channels whose channel quality is determined to be poor, different recovery times are set according to the size of their packet error rates. This hierarchical recovery strategy ensures that channels with relatively good performance can be quickly restored to use, while giving channels with relatively poor performance appropriate recovery time to improve overall channel utilization and communication quality.

[0112] In addition, the embodiments of the present disclosure ensure that the Bluetooth communication system can quickly respond to changes in channel quality by real-time monitoring of channel status and adaptive adjustment strategies, thereby maintaining efficient and stable communication in a dynamically changing wireless environment.

[0113] Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0114] The above embodiments are merely illustrative of the principles and effects of the present disclosure, and are not intended to limit the present disclosure. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present disclosure. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present disclosure shall still be covered by the claims of the present disclosure.

Claims

1. A Bluetooth channel selection method, characterized in that: Applied to the master device, the Bluetooth channel selection method includes: Update the total number of packets and number of error packets of each channel according to the sending and receiving status of the data packets; Determining the channel quality of the channel according to the total number of packets and the number of error packets; receiving channel quality information sent by a slave device; and A transmission channel is selected according to the channel quality and the channel quality information.

2. The Bluetooth channel selection method according to claim 1, characterized in that: The total number of packets and number of error packets of each channel are updated according to the sending and receiving status of the data packets, including: After a frame of data is completed, the total number of packets of the current channel transmitting the frame of data is increased by 1; and The number of packet errors of the current channel is updated according to the reception status of the one frame of data.

3. The Bluetooth channel selection method according to claim 2, characterized in that: Updating the number of packet errors corresponding to the current channel according to the reception status of the frame of data includes: If the frame of data is received successfully and the ARQN in the header of the received data packet is NAK, the number of error packets corresponding to the current channel is increased by 1; and If the one frame of data fails to be received and the receiving power is greater than the power threshold value, the number of error packets corresponding to the current channel is increased by 1.

4. The Bluetooth channel selection method according to claim 1, characterized in that: Determining the channel quality of the channel according to the total number of packets and the number of error packets includes: determining that the channel quality of the channel is one of poor, good, and unknown.

5. The Bluetooth channel selection method according to claim 4, characterized in that: Determining the channel quality of the channel according to the total number of packets and the number of error packets includes: At the channel evaluation moment, if the total number of packets of the current channel is greater than 0, obtaining a packet error rate of the current channel according to the total number of packets and the number of error packets of the current channel; and The channel quality of the current channel is determined according to the relationship between the packet error rate and the packet error rate threshold.

6. The Bluetooth channel selection method according to claim 5, characterized in that: Determining the channel quality of the current channel according to the relationship between the packet error rate and the packet error rate threshold includes: If the packet error rate is less than the packet error rate threshold, determining that the channel quality of the current channel is good; and If the packet error rate is greater than the packet error rate threshold, it is determined that the channel quality of the current channel is poor.

7. The Bluetooth channel selection method according to claim 4, characterized in that: Determining the channel quality of the channel according to the total number of packets and the number of error packets includes: At the channel evaluation moment, if the total number of packets of the current channel is 0 and if the channel quality of the current channel is not determined to be poor, the channel quality of the current channel is determined to be unknown, otherwise the channel quality of the current channel is determined to be poor.

8. The Bluetooth channel selection method according to claim 6, characterized in that: Also includes: If the number of channels whose channel quality is determined to be good or unknown is less than the channel number threshold, the packet error rate threshold is increased, and the channel quality is re-determined based on the increased packet error rate threshold.

9. The Bluetooth channel selection method according to claim 4, characterized in that: Also includes: The recovery time of the bad channel is determined according to the total number of packets and the number of erroneous packets of the bad channel whose channel quality is determined to be bad.

10. The Bluetooth channel selection method according to claim 4, characterized in that: Selecting a transmission channel according to the channel quality and the channel quality information includes: According to the determined channel quality, obtain good channels and unknown channels whose channel quality is determined by the master device to be good and unknown as a first channel set; Acquire, according to the received channel quality information, good channels and unknown channels whose channel qualities are determined by the slave device to be good and unknown as a second channel set; and The transmission channel is selected according to the first channel set and the second channel set.

11. The Bluetooth channel selection method according to claim 10, characterized in that: Selecting the transmission channel according to the first channel set and the second channel set includes: Obtaining an intersection of the first channel set and the second channel set; and The transmission channel is acquired according to an intersection of the first channel set and the second channel set.

12. The Bluetooth channel selection method according to claim 11, characterized in that: Acquiring the transmission channel according to the intersection of the first channel set and the second channel set includes: If the number of channels in the intersection is greater than or equal to the channel number threshold, the channels in the intersection are selected as the transmission channels; otherwise, several channels are selected as the transmission channels according to the intersection and the first channel set.

13. The Bluetooth channel selection method according to claim 12, characterized in that: Selecting a number of channels as the transmission channels according to the intersection and the first channel set includes: Selecting m channels from the difference set between the first channel set and the intersection set in order of packet error rate from low to high, wherein m is the difference between the channel quantity threshold and the number of channels in the intersection set; and The m channels and the channels in the intersection are used as the transmission channels.

14. A method for determining Bluetooth channel quality, characterized in that: Applied to a slave device, the Bluetooth channel quality determination method includes: Update the total number of packets and number of error packets of each channel according to the sending and receiving status of the data packets; Determining the channel quality of the channel according to the total number of packets and the number of error packets; and Channel quality information indicating the channel quality is sent to the master device.

15. The method for determining Bluetooth channel quality according to claim 14, characterized in that: The total number of packets and number of error packets of each channel are updated according to the sending and receiving status of the data packets, including: After a frame of data is completed, the total number of packets of the current channel transmitting the frame of data is increased by 1; updating the number of packet errors of the current channel according to the reception status of the one frame of data; and The number of packet errors of the previous channel transmitting the previous frame of data is updated according to the reception status of the frame of data and the previous frame of data.

16. The method for determining Bluetooth channel quality according to claim 15, characterized in that: Updating the number of packet errors of the current channel according to the reception status of the frame of data includes: If the one frame of data fails to be received and the receiving power is greater than the power threshold value, the number of error packets of the current channel is increased by 1.

17. The method for determining Bluetooth channel quality according to claim 15, characterized in that: Updating the number of packet errors of the previous channel for transmitting the previous frame of data according to the reception status of the frame of data and the previous frame of data includes: If the frame of data is received successfully and the ARQN in the header of the received data packet is NAK, and if the previous frame of data is received successfully and there is data to be sent in the previous channel, then the number of error packets of the previous channel is increased by 1; and If the frame of data fails to be received and the receiving power is greater than the power threshold, and if the previous frame of data is successfully received and there is data to be sent in the previous channel, the number of error packets in the previous channel is increased by 1.

18. A Bluetooth channel selection method, characterized in that: include: The master device updates the total number of packets and the number of erroneous packets of the first group of channels according to the sending and receiving status of the data packets; The slave device updates the total number of packets and the number of erroneous packets of the second group of channels according to the sending and receiving status of the data packets; Determining, by the master device, channel quality of the first group of channels according to the total number of packets and the number of erroneous packets of the first group of channels; Determining, by the slave device, the channel quality of the second group of channels according to the total number of packets and the number of error packets of the second group of channels; The slave device sends channel quality information indicating channel quality of the second group of channels to the master device; as well as The master device selects a transmission channel according to the determined channel quality and the received channel quality information.

19. A Bluetooth channel selection device, characterized in that: include: Memory; as well as A processor is coupled to the memory and configured to execute the Bluetooth channel selection method according to any one of claims 1 to 13.

20. A Bluetooth channel quality determination device, characterized in that: include: Memory; as well as A processor is coupled to the memory and configured to execute the Bluetooth channel quality determination method according to any one of claims 14 to 17.

21. A Bluetooth system, characterized in that: include: The Bluetooth channel selection device is configured to: Update the total number of packets and the number of erroneous packets of the first group of channels according to the sending and receiving status of the data packets; determining the channel quality of the first group of channels according to the total number of packets and the number of error packets of the first group of channels; receiving channel quality information; as well as selecting a transmission channel based on the determined channel quality and the received channel quality information; as well as The Bluetooth channel quality determination device is configured to: Update the total number of packets and the number of erroneous packets of the second group of channels according to the sending and receiving status of the data packets; determining the channel quality of the second group of channels according to the total number of packets and the number of error packets of the second group of channels; as well as The channel quality information indicating the channel quality of the second group of channels is sent to the Bluetooth channel selection device.