Communication method and device, chip and storage medium
By evaluating the frequency hopping channel of the first playback component and the second playback component of the Bluetooth audio playback device, combining the evaluation results of the electronic device to obtain the target frequency hopping sequence, solving the problem of insufficient anti-interference of the device and improving communication stability and user experience.
Patent Information
- Application Number
- CN202311249247.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2025-04-01
AI Technical Summary
The first and second playback components of the Bluetooth audio playback device have weak anti-interference during use, resulting in frequent packet loss when receiving audio data, resulting in lag in hearing and poor user experience.
By performing channel evaluation on multiple frequency hopping channels respectively, the first frequency hopping sequence and the second frequency hopping sequence are obtained, combined with the fourth frequency hopping sequence evaluated by the electronic device, the target frequency hopping sequence is fused to achieve frequency hopping communication between the electronic device and the audio playback device.
The anti-interference performance of the first playback component and the second playback component is improved, effectively reducing the number of lags in the interference environment, and optimizing the user's experience.
Smart Images

Figure CN119743745A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and more specifically, to a communication method, device, chip and storage medium. Background Art
[0002] With the popularity of Bluetooth audio playback devices, consumers have higher and higher requirements for the playback quality of devices. Bluetooth audio playback devices usually include a first playback component and a second playback component, which need to communicate with electronic devices based on a frequency hopping sequence to obtain audio data and play the audio data at the same time to provide users with audio playback functions.
[0003] However, during the use of the Bluetooth audio playback device, the first playback component and the second playback component have weak anti-interference capabilities, which results in frequent packet loss when receiving audio data, resulting in a stuttering listening experience and a poor user experience. Summary of the invention
[0004] The present application provides a communication method, device, chip and storage medium. The following introduces various aspects involved in the embodiments of the present application.
[0005] In a first aspect, a communication method is provided, which is applied to a first playback component, wherein the first playback component and a second playback component constitute a Bluetooth audio playback device, and the method comprises: performing channel evaluation on multiple frequency hopping channels respectively to determine a first frequency hopping sequence, wherein the first frequency hopping sequence is used to characterize the quality of the first playback component communicating through the multiple frequency hopping channels; receiving a second frequency hopping sequence sent by the second playback component, wherein the second frequency hopping sequence is used to characterize the quality of the second playback component communicating through the multiple frequency hopping channels; fusing the first frequency hopping sequence and the second frequency hopping sequence to obtain a third frequency hopping sequence; sending the third frequency hopping sequence to an electronic device; receiving a target frequency hopping sequence sent by the electronic device, wherein the target frequency hopping sequence is obtained by the electronic device fusing a fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is the frequency hopping sequence evaluated by the electronic device; and communicating with the electronic device based on the target frequency hopping sequence to transmit audio data.
[0006] In a second aspect, a communication method is provided, which is applied to a second playback component, wherein the second playback component and the first playback component constitute a Bluetooth audio playback device, and the method includes: performing channel evaluation on multiple frequency hopping channels respectively to determine a second frequency hopping sequence, wherein the second frequency hopping sequence is used to characterize the quality of the second playback component communicating through the multiple frequency hopping channels; sending the second frequency hopping sequence to the first playback component, wherein the first playback component is used to fuse a third frequency hopping sequence according to the second frequency hopping sequence; receiving a target frequency hopping sequence, wherein the target frequency hopping sequence is obtained by the electronic device after fusing a fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is the frequency hopping sequence evaluated by the electronic device; and communicating with the electronic device based on the target frequency hopping sequence to transmit audio data.
[0007] According to a third aspect, a communication method is provided, which is applied to an electronic device, and the method comprises: receiving a third frequency hopping sequence sent by a first playback component; acquiring a fourth frequency hopping sequence, wherein the fourth frequency hopping sequence is used to characterize the quality of communication of the electronic device through multiple frequency hopping channels; fusing the third frequency hopping sequence and the fourth frequency hopping sequence to obtain a target frequency hopping sequence; sending the target frequency hopping sequence; and communicating with the first playback component and / or the second playback component based on the target frequency hopping sequence to transmit audio data.
[0008] In a fourth aspect, a communication device is provided, which is applied to a first playback component, and the first playback component and the second playback component constitute a Bluetooth audio playback device, and the device includes: a first determination module, which is used to perform channel evaluation on multiple frequency hopping channels respectively to determine a first frequency hopping sequence, and the first frequency hopping sequence is used to characterize the quality of the first playback component communicating through the multiple frequency hopping channels; a first receiving module, which is used to receive a second frequency hopping sequence sent by the second playback component, and the second frequency hopping sequence is used to characterize the quality of the second playback component communicating through the multiple frequency hopping channels; a first fusion module, which is used to fuse the first frequency hopping sequence and the second frequency hopping sequence into a third frequency hopping sequence; a first sending module, which is used to send the third frequency hopping sequence to an electronic device; the first receiving module is also used to receive a target frequency hopping sequence sent by the electronic device, and the target frequency hopping sequence is obtained by the electronic device after fusing a fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is the frequency hopping sequence evaluated by the electronic device; a first communication module, which is used to communicate with the electronic device based on the target frequency hopping sequence to transmit audio data.
[0009] In a fifth aspect, a communication device is provided, which is applied to a second playback component, and the second playback component and the first playback component constitute a Bluetooth audio playback device, and the device includes: a second determination module, used to perform channel evaluation on multiple frequency hopping channels respectively to determine a second frequency hopping sequence, and the second frequency hopping sequence is used to characterize the quality of the second playback component communicating through the multiple frequency hopping channels; a second sending module, used to send the second frequency hopping sequence to the first playback component, and the first playback component is used to fuse a third frequency hopping sequence according to the second frequency hopping sequence; a second receiving module, used to receive a target frequency hopping sequence, and the target frequency hopping sequence is obtained by the electronic device after fusing a fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is the frequency hopping sequence evaluated by the electronic device; a second communication module, used to communicate with the electronic device based on the target frequency hopping sequence to transmit audio data.
[0010] In a sixth aspect, the device is applied to an electronic device, and the device includes: a receiving module, used to receive a third frequency hopping sequence, the third frequency hopping sequence including a third available frequency hopping channel set and a third unavailable frequency hopping channel set; an acquisition module, used to acquire a fourth frequency hopping sequence, the fourth frequency hopping sequence is a frequency hopping sequence evaluated by the electronic device, the fourth frequency hopping sequence including a fourth available frequency hopping channel set and a fourth unavailable frequency hopping channel set; a fusion module, used to fuse the third frequency hopping sequence and the fourth frequency hopping sequence into a target frequency hopping sequence, the target frequency hopping sequence including a target available frequency hopping channel set and a target unavailable frequency hopping channel set; wherein the target available frequency hopping channel set includes channels with the same channel identifier in the third available frequency hopping channel set and the fourth available frequency hopping channel set, and the target unavailable frequency hopping channel set includes channels with the same channel identifier in the third unavailable frequency hopping channel set and the fourth unavailable frequency hopping channel set.
[0011] In a seventh aspect, a chip is provided, comprising: a processor, configured to call and run a computer program from a memory, so that the audio playback device executes the method described in the first aspect or the second aspect.
[0012] In an eighth aspect, a computer-readable storage medium is provided, on which executable code is stored, characterized in that the code is used to implement the method described in the first aspect or the second aspect.
[0013] The embodiment of the present application proposes a communication method, which performs channel evaluation on multiple frequency hopping channels respectively through the first playback component and the second playback component of the Bluetooth audio playback device to obtain a first frequency hopping sequence that characterizes the quality of the first playback component communicating through multiple frequency hopping channels and a second frequency hopping sequence that characterizes the quality of the second playback component communicating through multiple frequency hopping channels, respectively, and can use the first frequency hopping sequence, the second frequency hopping sequence and the fourth frequency hopping sequence evaluated by the electronic device to obtain a target frequency hopping sequence (the target frequency hopping map described above) to achieve frequency hopping communication between the electronic device and the audio playback device based on the target frequency hopping sequence. This method takes into account the frequency hopping sequences determined by the first playback component and the second playback component at the same time, thereby improving the anti-interference performance of the first playback component and the second playback component at the same time, effectively reducing the number of freezes in an interference environment, and optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A schematic diagram of a scenario to which the method in an embodiment of the present application is applicable.
[0015] Figure 2 A flow chart of a communication method provided in an embodiment of the present application.
[0016] Figure 3 A schematic diagram of a frequency hopping sequence provided in an embodiment of the present application.
[0017] Figure 4 for Figure 2 A flowchart of a possible implementation method of step S230 in FIG.
[0018] Figure 5 A schematic diagram of the structure of a communication device provided in an embodiment of the present application.
[0019] Figure 6 A schematic diagram of the structure of another communication device provided in an embodiment of the present application.
[0020] Figure 7 A schematic diagram of the structure of another communication device provided in an embodiment of the present application.
[0021] Figure 8 A schematic diagram of the structure of the chip provided in the embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to facilitate understanding of the present application, the present application is described in more detail below based on exemplary embodiments and in conjunction with the accompanying drawings. The same or similar reference numerals are used in the accompanying drawings to represent the same or similar modules. It should be understood that the accompanying drawings are only exemplary and the scope of protection of the present application is not limited thereto.
[0023] With the development of technology, the application of Bluetooth audio playback devices is becoming more and more widespread. A Bluetooth audio playback device is generally an audio playback device comprising a first playback component and a second playback component. The first playback component and the second playback component can respectively obtain audio data of the electronic device through Bluetooth technology and play audio at the same time to provide the user with an audio playback function. For example, the Bluetooth audio playback device can be a Bluetooth headset or a Bluetooth speaker. Since the Bluetooth audio playback device does not require a physical connection with the electronic device, the user experience is very good, especially when the Bluetooth audio playback device is a Bluetooth headset, the user can listen to the audio while avoiding the trouble caused by the entanglement of the physical connection.
[0024] The embodiment of the present application does not specifically limit the type of electronic device, as long as the electronic device has a wireless communication function and has the need to play audio. The electronic device can be, for example, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA) device, a handheld device with a wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, an MP4 player terminal, an MP5 player terminal, a learning machine or an electronic dictionary and a smart watch and other terminal devices.
[0025] The first playback component and the second playback component can usually be used in pairs. Taking the Bluetooth audio playback device as a Bluetooth headset as an example, the Bluetooth headset generally includes a pair of left earphones and right earphones. Among them, the left earphone and the right earphone are the above-mentioned first playback component and the second playback component. Preferably, the Bluetooth audio playback device can be a true wireless Bluetooth headset (truewireless studio, TWS). Since TWS headsets have high delay-related performance, good noise reduction performance and easy portability, they can be widely used in complex scenes such as subways, buses, airports, outdoors, offices, etc. and ensure the quality of games, music and calls.
[0026] Usually, the first playback component is a master playback component that establishes a Bluetooth transmission link with the electronic device, and the second playback component is a slave playback component that monitors the Bluetooth transmission link. Figure 1 As shown, the Bluetooth audio playback device 10 includes a master earphone 11 and a slave earphone 12. The master playback component 11 in the Bluetooth audio playback device 10 is used to acquire and play the audio data of the electronic device 20 through a Bluetooth transmission link 110 established with the electronic device 20. The slave earphone 12 acquires and plays the audio data of the electronic device 20 by monitoring the Bluetooth transmission link 110.
[0027] The Bluetooth transmission link 110 is usually based on the ISM2.4 unlicensed channel for data transmission. As a wireless frequency band open to the public all over the world, many devices can work on the ISM2.4 unlicensed channel, such as cordless phones, microwave ovens, infrared and wireless cameras, and many wireless local area network (Wireless Local Area Network, Wireless LAN, WLAN) devices. Therefore, when the Bluetooth audio playback device communicates with the electronic device through Bluetooth, it is easy to receive interference from signals of other devices in the wireless environment. In particular, interference from high-energy broadband signals, such as WIFI signals.
[0028] In order to avoid interference from other devices to Bluetooth audio playback devices, Bluetooth audio playback devices usually use a frequency hopping mechanism for communication, referred to as frequency hopping communication. Frequency hopping communication can be understood as: when a Bluetooth audio playback device and an electronic device perform multiple communication interactions, each interaction uses a different frequency. In other words, the current communication interaction uses a different channel from the previous communication interaction, and different channels correspond to different frequencies. Usually, Bluetooth communication can include multiple frequency hopping channels. In the actual communication process, the electronic device and the Bluetooth audio playback device must be at the same frequency at the same time to receive the signal normally. Therefore, when the frequency hopping mechanism is used for communication, when the electronic device and the Bluetooth audio playback device establish a Bluetooth connection and play audio data, both parties need to jump to the same frequency (that is, the same frequency hopping channel) according to a set of the same frequency hopping sequences for communication.
[0029] The frequency hopping sequence can also be called a frequency hopping map. The frequency hopping sequence is used to instruct the receiving end to perform frequency hopping interaction on the channels of the target channel group. Optionally, the frequency hopping sequence includes frequency hopping channel information (such as the identifier of the frequency hopping channel and / or the quality identifier of the frequency hopping channel) and frequency hopping order information, and the frequency hopping sequence can be used to instruct the receiving end to perform frequency hopping interaction on the channels of the target channel group according to the frequency hopping order information. In other words, the frequency hopping sequence can be a sequence table obtained by sorting the above-mentioned multiple frequency hopping channels. The frequency hopping sequence has a vital impact on the communication quality between the Bluetooth audio playback device and the electronic device. Generally, the frequency hopping sequence can be sorted based on the quality of the multiple frequency hopping channels mentioned above.
[0030] As mentioned above, the audio playback device only needs to establish a Bluetooth transmission link with the electronic device through the first playback component, while the second playback component does not need to establish a Bluetooth transmission link with the electronic device. Since there is only one Bluetooth transmission link between the electronic device and the audio playback device, in order to ensure frequency hopping communication between the electronic device and the audio playback device, a possible implementation method is: the frequency hopping sequence used by the electronic device and the audio playback device is negotiated and determined based on the electronic device and the first playback component that establish the Bluetooth transmission link, and the second playback component as a slave playback component only needs to follow the negotiation result between the first playback component and the electronic device to hop to the same frequency point with the first playback component at the same time point, so that the first playback component can receive the data sent by the electronic device, and the second playback component can monitor the data sent by the electronic device.
[0031] For example, the process of the electronic device and the first playback component negotiating the frequency hopping sequence may be as follows:
[0032] 1. First, the first playback component periodically reports the frequency hopping map obtained through scanning to the electronic device.
[0033] 2. As the main device, the electronic device will also summarize its own frequency hopping map.
[0034] 3. The electronic device, as a master device, negotiates with the first playback component through a link management protocol (LMP) to generate a target frequency hopping map by combining the frequency hopping map reported by the first playback component and the frequency hopping map of the electronic device itself.
[0035] 4. The electronic device sends the target frequency hopping map via the Bluetooth transmission link between the electronic device and the first playback component, and the first playback component and the second playback component receive or monitor the target frequency hopping map to perform frequency hopping communication.
[0036] However, when frequency hopping communication is performed based on the target frequency hopping map, audio playback devices often experience freezing, resulting in a poor user experience.
[0037] After research, the inventors found that although there is only one Bluetooth transmission link between the electronic device and the audio playback device, there are differences in the signals transmitted by the first playback component and the second playback component through the Bluetooth transmission link. For example, there are differences in the antenna patterns of the first playback component and the second playback component, which will cause the first playback component and the second playback component to receive signals (for example, useful signals and interference signals) through the same channel. There will be differences in the strength of the signals. This will cause the first playback component and the second playback component to have different anti-interference performance when receiving signals through the same frequency hopping channel.
[0038] Based on this, if the target frequency hopping map is determined only based on the frequency hopping map scanned by the first playback component and the frequency hopping map of the electronic device itself, the influence of the second playback component on the target frequency hopping map will be ignored. This is equivalent to ignoring the anti-interference performance of the second playback component, which will cause the second playback component to be easily interfered when monitoring data based on the target frequency hopping map, resulting in serious packet loss, thereby causing the audio playback device to have a sense of lag, resulting in a poor user experience.
[0039] In order to solve the above problems, an embodiment of the present application proposes a communication method, which performs channel evaluation on multiple frequency hopping channels through the first playback component and the second playback component of the Bluetooth audio playback device, respectively, to obtain a first frequency hopping sequence that characterizes the quality of the first playback component communicating through multiple frequency hopping channels and a second frequency hopping sequence that characterizes the quality of the second playback component communicating through multiple frequency hopping channels, respectively, and can use the first frequency hopping sequence, the second frequency hopping sequence and the fourth frequency hopping sequence evaluated by the electronic device to obtain a target frequency hopping sequence (the target frequency hopping map described above), so as to realize frequency hopping communication between the electronic device and the audio playback device based on the target frequency hopping sequence. This method takes into account the frequency hopping sequences determined by the first playback component and the second playback component at the same time, thereby improving the anti-interference performance of the first playback component and the second playback component at the same time, effectively reducing the number of freezes in an interference environment, and optimizing the user experience.
[0040] Combine the following Figure 2 The method in the embodiment of the present application is described in detail. The method is jointly executed by the first playback component, the second playback component and the electronic device described above.
[0041] See Figure 2 The communication method provided in the embodiment of the present application includes steps S210-S280. Among them, step S210 includes step S211 and step S212.
[0042] In step S211, a first playing component is used to perform channel evaluation on a plurality of frequency hopping channels respectively to determine a first frequency hopping sequence.
[0043] Specifically, the first playback component is used to perform channel evaluation on multiple frequency hopping channels respectively to obtain multiple A-side channel evaluation results corresponding to the multiple frequency hopping channels; and the first frequency hopping sequence is determined according to the multiple A-side channel evaluation results.
[0044] In step S212, the second playing component is used to perform channel evaluation on the plurality of frequency hopping channels respectively to determine a second frequency hopping sequence.
[0045] Specifically, the second playback component may be used to perform channel evaluation on multiple frequency hopping channels respectively to obtain multiple B-side channel evaluation results corresponding to the multiple frequency hopping channels; and the second frequency hopping sequence may be determined according to the multiple B-side channel evaluation results.
[0046] Among them, multiple A-side channel evaluation results are used to characterize the communication quality of the first playback component when communicating based on each of the multiple channels, and multiple B-side channel evaluation results are used to characterize the communication quality of the second playback component when communicating based on each of the multiple channels. Correspondingly, the first frequency hopping sequence is used to characterize the quality of the first playback component communicating through multiple frequency hopping channels and the feasibility of the multiple frequency hopping channels for the communication of the first playback component. The second frequency hopping sequence is used to characterize the quality of the second playback component communicating through multiple frequency hopping channels and the feasibility of the multiple frequency hopping channels for the communication of the second playback component.
[0047] The embodiments of the present application do not specifically limit the types of multiple A-side channel evaluation results or multiple B-side channel evaluation results. As an implementation method, the A-side channel evaluation result or the B-side channel evaluation result may be the packet loss rate of the corresponding channel evaluated by the first playback component or the second playback component. As another implementation method, the A-side channel evaluation result or the B-side channel evaluation result may be the signal reception quality of the corresponding channel evaluated by the first playback component or the second playback component. Compared with the packet loss rate, the signal reception quality can have a faster response speed, thereby solving the problem of auditory stuttering in real time.
[0048] The multiple frequency hopping channels described in the embodiments of the present application may be frequency bands divided in the Bluetooth communication frequency band. For example, the operating frequency of Bluetooth communication may be 2402MHz-2480MHz. In some embodiments, the channel spacing is 1MHz, so the multiple frequency hopping channels may be 79 frequency hopping channels. In other embodiments, the channel spacing is 2MHz, so the multiple frequency hopping channels may be 40 frequency hopping channels.
[0049] In an embodiment of the present application, the first playback component or the second playback component may perform channel evaluation on multiple frequency hopping channels based on the channel evaluation parameters. The channel evaluation parameters may include the start time of the channel scan and the interval of the scan. In some embodiments, before performing the channel evaluation, the second playback component may first establish a connection with the first playback component to receive the channel evaluation parameters sent by the first playback component.
[0050] like Figure 3As shown, the first frequency hopping sequence can be divided into a first available frequency hopping channel set and a first unavailable frequency hopping channel set according to multiple A-side channel evaluation results. The second frequency hopping sequence can be divided into a second available frequency hopping channel set and a second unavailable frequency hopping channel set according to multiple B-side channel evaluation results. The available frequency hopping channels can be marked as good, and the unavailable frequency hopping channels can be marked as bad. Among them, the first available frequency hopping channel set and the second available frequency hopping channel set can have the same frequency hopping channels or different frequency hopping channels. Similarly, the first unavailable frequency hopping channel set and the second unavailable frequency hopping channel set can also have the same frequency hopping channels or different frequency hopping channels.
[0051] In step S220, the second playing component sends the second frequency hopping sequence to the first playing component.
[0052] In step S230, the first frequency hopping sequence and the second frequency hopping sequence are merged to obtain a third frequency hopping sequence.
[0053] like Figure 3 As shown, the third frequency hopping sequence includes a third available frequency hopping channel set and a third unavailable frequency hopping channel set. The third frequency hopping sequence is used to represent comprehensive information of the first frequency hopping sequence and the second frequency hopping sequence.
[0054] The embodiment of the present application does not specifically limit the implementation method of fusing the first frequency hopping sequence and the second frequency hopping sequence to obtain the third frequency hopping sequence. For example, the first frequency hopping sequence and the second frequency hopping sequence may be directly fused by averaging to directly obtain the third frequency hopping sequence.
[0055] In step S240: the first playing component sends the third frequency hopping sequence to the electronic device.
[0056] In step S250, a fourth frequency hopping sequence is acquired.
[0057] The fourth frequency hopping sequence is a frequency hopping sequence evaluated by the electronic device, for example, the electronic device can perform channel estimation on the multiple frequency hopping channels mentioned above to determine the fourth frequency hopping sequence. The fourth frequency hopping sequence also includes a fourth available frequency hopping channel set and a fourth unavailable frequency hopping channel set.
[0058] In step S260, the electronic device merges the third frequency hopping sequence and the fourth frequency hopping sequence to obtain a target frequency hopping sequence.
[0059] The target frequency hopping sequence includes a target available frequency hopping channel set and a target unavailable frequency hopping channel set. The target frequency hopping sequence is used to represent comprehensive information of the first frequency hopping sequence, the second frequency hopping sequence and the fourth frequency hopping sequence.
[0060] The embodiment of the present application does not specifically limit the implementation method of fusing the third frequency hopping sequence and the fourth frequency hopping sequence to obtain the target frequency hopping sequence. For example, the third frequency hopping sequence and the fourth frequency hopping sequence may be directly fused by averaging to directly obtain the target frequency hopping sequence.
[0061] In step S270, the electronic device sends the target frequency hopping sequence to the first playback component and the second playback component.
[0062] In step S280, the first playing component, the second playing component and the electronic device communicate based on the target frequency hopping sequence to transmit audio data.
[0063] The communication method in the embodiment of the present application uses the first playback component and the second playback component of the Bluetooth audio playback device to respectively perform channel evaluation on multiple frequency hopping channels, so as to respectively obtain a first frequency hopping sequence that characterizes the quality of the first playback component communicating through multiple frequency hopping channels and a second frequency hopping sequence that characterizes the quality of the second playback component communicating through multiple frequency hopping channels, and can use the first frequency hopping sequence, the second frequency hopping sequence and the fourth frequency hopping sequence evaluated by the electronic device to obtain a target frequency hopping sequence, so as to realize frequency hopping communication between the electronic device and the audio playback device based on the target frequency hopping sequence. This method simultaneously considers the frequency hopping sequences determined by the first playback component and the second playback component, thereby simultaneously improving the anti-interference performance of the first playback component and the second playback component, effectively reducing the number of freezes in an interference environment, and optimizing the user experience.
[0064] As described above, the first playback component can determine the first frequency hopping sequence according to multiple A-side channel evaluation results, and the second playback component can determine the second frequency hopping sequence according to multiple B-side channel evaluation results. The determination process is described in detail below.
[0065] In an embodiment of the present application, the plurality of frequency hopping channels include a first frequency hopping channel. The first frequency hopping channel may be any one of the plurality of frequency hopping channels. The plurality of A-side channel evaluation results include a first A-side channel evaluation result corresponding to the first frequency hopping channel. The plurality of B-side channel evaluation results include a first B-side channel evaluation result corresponding to the first frequency hopping channel.
[0066] The first playback component determines the first frequency hopping sequence according to the multiple A-side channel assessment results, specifically including:
[0067] If the first A-side channel evaluation result is not less than the set threshold, the first playing component determines the first frequency hopping channel as belonging to the first available frequency hopping channel set in the first frequency hopping sequence.
[0068] If the first A-side channel evaluation result is less than the set threshold, the first playing component determines the first frequency hopping channel as belonging to the first unavailable frequency hopping channel set in the first frequency hopping sequence.
[0069] The second playing component determines the second frequency hopping sequence according to the multiple B-side channel evaluation results, specifically including:
[0070] If the first B-side channel evaluation result is not less than the set threshold, the first frequency hopping channel is determined to belong to the second available frequency hopping channel set in the second frequency hopping sequence.
[0071] If the first B-side channel evaluation result is less than the set threshold, the first frequency hopping channel is determined to belong to a second unavailable frequency hopping channel set in the second frequency hopping sequence.
[0072] The threshold value may be determined, for example, based on the critical SNR of the chip hardware anti-interference performance as the standard for channel quality (which may be marked as standard SNR). The first playback component and the second playback component usually use the same Bluetooth chip, so the threshold values may be the same.
[0073] The first A-side channel evaluation result (which may be marked as Evaluate SNR_0) is the difference between the quality of the useful signal transmitted by the first frequency hopping channel for the first playback component (which may be marked as wanted RSSI_0) and the quality of the interference signal transmitted by the first frequency hopping channel for the first playback component (which may be marked as noise RSSI_0). The first B-side channel evaluation result is the difference between the quality of the useful signal transmitted by the first frequency hopping channel for the second playback component (which may be marked as wanted RSSI_1) and the quality of the interference signal transmitted by the first frequency hopping channel for the second playback component (which may be marked as noise RSSI_0).
[0074] The quality of the interference signal transmitted by the first frequency hopping channel for the first playback component or the second playback component may be the received signal strength indication (RSSI) of the noise signal of the surrounding electromagnetic wave signal scanned by the first playback component or the second playback component according to the parameter at a preset time after receiving the channel evaluation parameter. The quality of the useful signal transmitted by the first frequency hopping channel for the first playback component or the second playback component may be the RSSI of the audio data packet received or monitored by the first playback component or the second playback component during the process of listening to songs or making phone calls.
[0075] In some embodiments, since the entire Bluetooth operating bandwidth is only 80 MHz, the loss of different frequency points in the same environment and transmission path is not much different, so the size of the wanted RSSI on each channel can be considered to be the same, as shown in Table 1 and Table 2.
[0076] For the frequency hopping channels other than the first frequency hopping channel among the multiple frequency hopping channels, their channel evaluation results and the method of determining the channels as available frequency hopping channels and unavailable frequency hopping channels based on their channel evaluation results are consistent with those of the first frequency hopping channel and will not be repeated here.
[0077] In some embodiments, the multiple frequency hopping channels may include channel 0 to channel 78. By performing channel estimation in the above manner, Table 1 and Table 2 can be obtained respectively. Table 1 is a plurality of A-side channel evaluation results corresponding to the multiple frequency hopping channels, and Table 2 is a plurality of B-side channel evaluation results corresponding to the multiple frequency hopping channels.
[0078] Table 1
[0079] Channel 0 1 … 78 Noise RSSI_0 N_RSSI[0] N_RSSI[1] … N_RSSI
[78] Wanted RSSI_0 W_RSSI W_RSSI … W_RSSI Evaluate SNR_0 W_RSSI - N_RSSI[0] W_RSSI - N_RSSI[1] … W_RSSI-N_RSSI
[78]
[0080] Table 2
[0081] Channel 0 1 … 78 Noise RSSI_1 N_RSSI[0]' N_RSSI[1]' … N_RSSI
[78] ' Wanted RSSI_1 W_RSSI' W_RSSI' … W_RSSI' Evaluate SNR_1 W_RSSI'-N_RSSI[0]' W_RSSI'-N_RSSI[1]' … W_RSSI'-N_RSSI
[78] '
[0082] For example, for the channel evaluation results in Table 1, if W_RSSI-N_RSSI[n]>=standard SNR, then the channel n is a good channel, otherwise it is a bad channel. For the channel evaluation results in Table 2, if W_RSSI'-N_RSSI[n]'>=standard SNR, then the channel n is a good channel, otherwise it is a bad channel.
[0083] In some embodiments, Figure 4 As shown, step S230 performed by the first playing component may include:
[0084] Step S231: merging the first frequency hopping sequence and the second frequency hopping sequence into a first fused frequency hopping sequence.
[0085] like Figure 3 As shown, the first fusion frequency hopping sequence includes a first fusion available frequency hopping channel set (marked as good), a first fusion unavailable frequency hopping channel set (marked as bad), and a first fusion candidate frequency hopping channel set (marked as TBD set).
[0086] Wherein, fusing the first frequency hopping sequence and the second frequency hopping sequence into the first fused frequency hopping sequence includes: determining the intersection of the first available frequency hopping channel set and the second available frequency hopping channel set as the first fused available frequency hopping channel set; determining the intersection of the first unavailable frequency hopping channel set and the second unavailable frequency hopping channel set as the first fused unavailable frequency hopping channel set; and determining the frequency hopping channels other than the first fused available frequency hopping channel set and the first fused unavailable frequency hopping channel set among the multiple frequency hopping channels as the first fused candidate frequency hopping channel set. The multiple frequency hopping channels are consistent with the multiple frequency hopping channels for channel evaluation.
[0087] In other words, the first fused available frequency hopping channel set includes channels with the same channel identifier in the first available frequency hopping channel set and the second available frequency hopping channel set; the first fused unavailable frequency hopping channel set includes channels with the same channel identifier in the first unavailable frequency hopping channel set and the second unavailable frequency hopping channel set; the first fused candidate frequency hopping channel set includes channels with the same channel identifier in the first available frequency hopping set and the second unavailable frequency hopping channel set and channels with the same channel identifier in the first unavailable frequency hopping set and the second available frequency hopping channel set. The frequency hopping channel in the first fused candidate frequency hopping channel combination can also be understood as a channel whose channel attributes divided after the first playback component performs channel evaluation on this channel are different from the channel attributes divided after the second playback component evaluates this channel.
[0088] Step S232: determining a third frequency hopping sequence according to the first fused frequency hopping sequence.
[0089] As an implementation manner, determining the third frequency hopping sequence according to the first fused frequency hopping sequence includes:
[0090] If the number of frequency hopping channels in the first fused available frequency hopping channel set is greater than or equal to the number threshold,
[0091] Determine the first fused available frequency hopping channel set as a third available frequency hopping channel set;
[0092] The first fused unavailable frequency hopping channel set and the first fused candidate frequency hopping channel set are determined as a third unavailable frequency hopping channel set.
[0093] As another implementation manner, determining the third frequency hopping sequence according to the first fused frequency hopping sequence includes:
[0094] If the number of frequency hopping channels in the first fused available frequency hopping channel set is less than the number threshold, X frequency hopping channels can be selected from the first fused candidate frequency hopping channel set, and the selected X frequency hopping channels and the first fused available frequency hopping channel set are determined together as the third available frequency hopping channel set in the third frequency hopping sequence.
[0095] The specific method of selecting X frequency hopping channels is as follows:
[0096] The average channel evaluation results of the frequency hopping channels in the first fused candidate frequency hopping channel set are calculated respectively. The average channel evaluation results are the average values of the A-side channel evaluation results and the B-side channel evaluation results of the frequency hopping channels in the first fused candidate frequency hopping channel set. The B-side channel evaluation results are obtained by performing channel evaluation by the second playback component.
[0097] In some embodiments, for each channel, the average channel estimation result (denoted as Evaluate_SNR_Both Sides[n])=(Evaluate_SNR_0[n]+Evaluate_SNR_1[n]) / 2.
[0098] The first fused available frequency hopping channel set and the first target frequency hopping channel are determined to belong to a third available frequency hopping channel set.
[0099] Among them, the first target frequency hopping channel is the frequency hopping channel corresponding to the average channel evaluation results in the first X positions selected from the first fusion candidate frequency hopping channel set in descending order of the average channel evaluation results, and X is the difference between the number threshold and the number of frequency hopping channels in the first fusion available frequency hopping channel set.
[0100] The first fused unavailable frequency hopping channel set and the second target frequency hopping channel are determined as a third unavailable frequency hopping channel set, and the second target frequency hopping channel is a frequency hopping channel in the first fused candidate frequency hopping channel set except the first target frequency hopping channel.
[0101] The number threshold may be the number of frequency hopping channels in the available frequency hopping channel set in the Bluetooth system required by the Bluetooth communication protocol. For example, the number threshold may be set to 20.
[0102] Optionally, in order to improve the efficiency of subsequent electronic devices in acquiring the target frequency hopping sequence, such as Figure 3 As shown, the third frequency hopping sequence may further include a third candidate available frequency hopping channel set (labeled as unknown).
[0103] Based on this, determining the first fused unavailable frequency hopping channel set and the second target frequency hopping channel as the third unavailable frequency hopping channel set further includes:
[0104] The third target frequency hopping channel in the second target frequency hopping channel is determined to belong to the third candidate available frequency hopping channel set. The average channel evaluation result of the third target frequency hopping channel is greater than or equal to the set threshold. In other words, Evaluate_SNR_Both Sides[n] of each frequency hopping channel in the third target frequency hopping channel>standard SNR.
[0105] The remaining frequency hopping channels and the first merged unavailable frequency hopping channel set are determined to belong to a third unavailable frequency hopping channel set, wherein the remaining frequency hopping channels are the frequency hopping channels in the second target frequency hopping channels except the third target frequency hopping channels.
[0106] In some embodiments, the electronic device may perform the step of fusing the third frequency hopping sequence with the fourth frequency hopping sequence to obtain a target frequency hopping sequence, which may include: determining an intersection of a third available frequency hopping channel set and a fourth available frequency hopping channel set as a target available frequency hopping channel set in the target frequency hopping sequence. Determining an intersection of a third unavailable frequency hopping channel set and a fourth unavailable frequency hopping channel set as a target unavailable frequency hopping channel set in the target frequency hopping sequence.
[0107] Optionally, if the number of frequency hopping channels in the target available frequency hopping channel set is less than the number threshold, the fourth target frequency hopping channel is added to the target available frequency hopping channel set, and the fourth target frequency hopping channel is a frequency hopping channel in the intersection of the fourth available frequency hopping channel set and the third candidate available frequency hopping channel set.
[0108] Optionally, if the number of frequency hopping channels in the target available frequency hopping channel set after the fourth target frequency hopping channel is added is still less than the number threshold, channels are selected from the remaining frequency hopping channels to be added to the target available frequency hopping channel set until the number of frequency hopping channels in the target available frequency hopping channel set reaches the number threshold. The remaining frequency hopping channels are the target unavailable frequency hopping channel set and the frequency hopping channels of the multiple frequency hopping channels except the target available frequency hopping channel set and the target unavailable frequency hopping channel set after the fourth target frequency hopping channel is added.
[0109] In order to facilitate understanding of the present invention, the frequency hopping communication process is described below by taking the audio playing device as a headset and the electronic device as a mobile phone as an example.
[0110] (1) The main ear and the auxiliary ear establish a connection, and the main ear sends the channel assessment parameters to the auxiliary ear, including the start time and scanning interval of the channel scan. After receiving the channel assessment parameters, the auxiliary ear scans the noise energy (noise RSSI) of the surrounding electromagnetic wave signals at the preset time according to the parameters, thereby obtaining a noise energy map, as shown in the following table. At the same time, according to the working principle of TWS, when the user is listening to music or making a phone call, the auxiliary ear will always be in the state of monitoring data packets, and the data packets monitored as useful signals will also obtain the RSSI of each packet. Since the entire Bluetooth working bandwidth is only 80MHz, the loss of different frequency points in the same environment and transmission path is not much different, so the size of the useful data packet RSSI (wanted signal RSSI) on each channel can be considered to be the same, as shown in the following table. According to the wanted signal RSSI and the Noise RSSI, the SNR evaluation result of each channel can be obtained. Then, the critical SNR of the chip hardware anti-interference performance is used as the standard (standard SNR) for the channel quality. If W_RSSI-N_RSSI[n]>=standard SNR, then the channel n is a good channel, otherwise it is a bad channel.
[0111] (2) The main ear and the auxiliary ear have the same working mechanism. They will also scan the noise energy (noise RSSI) of the surrounding electromagnetic wave signals according to the preset channel evaluation parameters to obtain the Noise RSSI map of the main ear itself. At the same time, the main ear establishes a connection with the mobile phone to directly receive the data packets sent by the mobile phone, so the signal strength want RSSI of the useful signal can also be obtained. According to the main ear's own want signal RSSI and Noise RSSI, the SNR evaluation result of each channel of the main ear can be obtained. The main and auxiliary ears are generally the same Bluetooth chip, so their hardware anti-interference performance is the same. The judgment method is the same as the auxiliary ear. If W_RSSI-N_RSSI[n]>=standard SNR, then the channel n is a good channel, otherwise it is a bad channel.
[0112] (3) The secondary ear reports the Evaluate SNR map to the primary ear, and the primary ear decides the final frequency hopping map, as shown in the figure below. First, the primary ear map and the secondary ear map are intersected. Channels that are both good are marked as good, channels that are both bad are marked as bad channels, and channels with different attributes are marked as TBD. Then the primary and secondary ear Evaluate SNRs of the TBD channels are averaged to obtain binaural equalization Evaluate_SNR_binaural = (Evaluate_SNR_primary ear + Evaluate_SNR_secondary ear) / 2. If the number of channels marked as good is greater than or equal to 20, all TBD channels are marked as bad. If the number of channels marked as good is less than 20, the channel corresponding to the largest Evaluate_SNR_binaural data (20-number of good channels) in the TBD channel is marked as good. If Evaluate_SNR_binaural[n]>standard SNR in the remaining TBD channels, they are marked as unknown, otherwise they are marked as bad. The reason for this operation is that there are protocols and regulations that require the Bluetooth system to have 20 channels as frequency hopping channels.
[0113] (4) The dominant ear reports the final balanced binaural map to the mobile phone. The mobile phone further fuses the map reported by the dominant ear and the map evaluated by the mobile phone itself. Its fusion method is similar to the binaural map fusion method in step (3). (a) First, the good channels and bad channels are intersected respectively. The good intersection is marked as good, and the bad intersection is marked as bad. (b) If there are less than 20 good channels, the good channels and unknown channels are intersected again. The intersecting channels are marked as good, and the remaining channels are marked as unknown. (c) If there are still less than 20 good channels, channels are selected from the remaining unknown channels and bad channels in turn until 20 channels are reached.
[0114] (5) The mobile phone transmits the frequency hopping map back to the primary ear, and the secondary ear monitors the data packet to obtain the frequency hopping map information. The mobile phone, primary ear, and secondary ear perform frequency hopping according to the channel and time agreed upon in the map.
[0115] The embodiment of the present application proposes a TWS binaural Bluetooth frequency hopping solution, the core of which is to comprehensively consider the frequency hopping maps of the master and slave earphones, and generate the best frequency hopping map for balanced binaurals by the master earphone and report it to the mobile phone. Finally, the mobile phone, as the master device, combines the TWS binaural frequency hopping map reported by the master earphone and the mobile phone's own map to generate the final frequency hopping map and then transmit it back to the earphones to negotiate and enable the new frequency hopping map at the agreed time. This solution improves the anti-interference characteristics of binaurals, reduces the number of freezes in interference environments, and optimizes the user experience.
[0116] Combination of the above Figures 1 to 4 , describes in detail the method embodiment of the present application. Figure 5-Figure 8 , describes the device embodiment of the present application in detail. It should be understood that the description of the device embodiment corresponds to the description of the device embodiment, so the part that is not described in detail can refer to the previous device embodiment.
[0117] Figure 5 The communication device 500 provided in the embodiment of the present application is applied to the first playback component, and the first playback component and the second playback component constitute a Bluetooth audio playback device. The device 500 includes a first determination module 510, a first receiving module 520, a first fusion module 530, a first sending module 540 and a first communication module 550.
[0118] The first determination module 510 is used to perform channel evaluation on multiple frequency hopping channels respectively to determine a first frequency hopping sequence, where the first frequency hopping sequence is used to characterize the quality of communication performed by the first playback component through the multiple frequency hopping channels;
[0119] The first receiving module 520 is used to receive a second frequency hopping sequence sent by the second playback component, where the second frequency hopping sequence is used to characterize the quality of the second playback component communicating through multiple frequency hopping channels;
[0120] The first fusion module 530 is used to fuse the first frequency hopping sequence and the second frequency hopping sequence into a third frequency hopping sequence;
[0121] The first sending module 540 is used to send the third frequency hopping sequence to the electronic device;
[0122] The first receiving module 520 is further used to receive a target frequency hopping sequence sent by the electronic device, where the target frequency hopping sequence is obtained by the electronic device after fusing the fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is the frequency hopping sequence evaluated by the electronic device;
[0123] The first communication module 550 is used to communicate with the electronic device based on the target frequency hopping sequence to transmit audio data.
[0124] Optionally, the first determination module 510 is used to perform channel evaluation on multiple frequency hopping channels respectively to obtain multiple A-side channel evaluation results; determine the first frequency hopping sequence according to the multiple A-side channel evaluation results, and the first frequency hopping sequence includes a first available frequency hopping channel set and a first unavailable frequency hopping channel set.
[0125] Optionally, multiple frequency hopping channels include a first frequency hopping channel, multiple A-side channel evaluation results include a first A-side channel evaluation result corresponding to the first frequency hopping channel, and the first determination module 510 is used to: if the first A-side channel evaluation result is not less than a set threshold, determine the first frequency hopping channel as belonging to a first available frequency hopping channel set; if the first A-side channel evaluation result is less than the set threshold, determine the first frequency hopping channel as belonging to a first unavailable frequency hopping channel set.
[0126] Optionally, the first A-side channel evaluation result is a difference between the quality of the first frequency hopping channel transmitting a useful signal for the first playback component and the quality of the first frequency hopping channel transmitting an interference signal for the first playback component.
[0127] Optionally, the first fusion module 530 is used to fuse the first frequency hopping sequence and the second frequency hopping sequence into a first fused frequency hopping sequence, the first fused frequency hopping sequence including a first fused available frequency hopping channel set, a first fused unavailable frequency hopping channel set and a first fused candidate frequency hopping channel set; determine a third frequency hopping sequence based on the first fused frequency hopping sequence, the third frequency hopping sequence including a third available frequency hopping channel set and a third unavailable frequency hopping channel set.
[0128] Optionally, the first frequency hopping sequence includes a first available frequency hopping channel set and a first unavailable frequency hopping channel set, the second frequency hopping sequence includes a second available frequency hopping channel set and a second unavailable frequency hopping channel set, and the first fusion module 530 is used to determine the intersection of the first available frequency hopping channel set and the second available frequency hopping channel set as a first fused available frequency hopping channel set; determine the intersection of the first unavailable frequency hopping channel set and the second unavailable frequency hopping channel set as a first fused unavailable frequency hopping channel set; and determine the frequency hopping channels among the multiple frequency hopping channels except the first fused available frequency hopping channel set and the first fused unavailable frequency hopping channel set as a first fused candidate frequency hopping channel set.
[0129] Optionally, the first fusion module 530 is used to: if the number of frequency hopping channels in the first fusion available frequency hopping channel set is greater than or equal to a number threshold, determine the first fusion available frequency hopping channel set as the third available frequency hopping channel set; determine the first fusion unavailable frequency hopping channel set and the first fusion candidate frequency hopping channel set as the third unavailable frequency hopping channel set.
[0130] Optionally, the first fusion module 530 is used to: if the number of frequency hopping channels in the first fusion available frequency hopping channel set is less than the number threshold, respectively calculate the average channel evaluation results of the frequency hopping channels in the first fusion candidate frequency hopping channel set, the average channel evaluation result is the average of the A-side channel evaluation result and the B-side channel evaluation result of the frequency hopping channels in the first fusion candidate frequency hopping channel set, and the B-side channel evaluation result is obtained by the second playback component performing channel evaluation; determine the first fusion available frequency hopping channel set and the first target frequency hopping channel as belonging to the third available frequency hopping channel set, wherein the first target frequency hopping channel is the frequency hopping channel corresponding to the average channel evaluation result located in the first X positions selected from the first fusion candidate frequency hopping channel set in order of the average channel evaluation results from large to small, and X is the difference between the number threshold and the number of frequency hopping channels in the first fusion available frequency hopping channel set; determine the first fusion unavailable frequency hopping channel set and the second target frequency hopping channel as the third unavailable frequency hopping channel set, and the second target frequency hopping channel is the frequency hopping channel in the first fusion candidate frequency hopping channel set except the first target frequency hopping channel.
[0131] Optionally, the third frequency hopping sequence also includes a third candidate available frequency hopping channel set, and the first fusion module 530 is used to: determine the third target frequency hopping channel in the second target frequency hopping channel as belonging to the third candidate available frequency hopping channel set, wherein the average channel evaluation result of the third target frequency hopping channel is greater than or equal to a set threshold; determine the remaining frequency hopping channels and the first fusion unavailable frequency hopping channel set as belonging to the third unavailable frequency hopping channel set, wherein the remaining frequency hopping channels are the frequency hopping channels in the second target frequency hopping channel except the third target frequency hopping channel.
[0132] Figure 6 The communication device 600 provided in the embodiment of the present application includes a second playback component of the device 600, wherein the second playback component and the first playback component constitute a Bluetooth audio playback device. The device 600 includes a second determination module 610, a second sending module 620, a second receiving module 630 and a second communication module 640.
[0133] The second determination module 610 is used to perform channel evaluation on multiple frequency hopping channels respectively to determine a second frequency hopping sequence, where the second frequency hopping sequence is used to characterize the quality of communication performed by the second playback component through the multiple frequency hopping channels.
[0134] The second sending module 620 is used to send the second frequency hopping sequence to the first playing component, and the first playing component is used to fuse the third frequency hopping sequence according to the second frequency hopping sequence.
[0135] The second receiving module 630 is used to receive a target frequency hopping sequence, where the target frequency hopping sequence is obtained by the electronic device fusing the fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is a frequency hopping sequence evaluated by the electronic device.
[0136] The second communication module 640 is used to communicate with the electronic device based on the target frequency hopping sequence to transmit audio data. Optionally, the second determination module 610 is used to perform channel evaluation on multiple frequency hopping channels respectively to obtain multiple B-side channel evaluation results; determine the second frequency hopping sequence according to the multiple B-side channel evaluation results, and the second frequency hopping sequence includes a second available frequency hopping channel set and a second unavailable frequency hopping channel set.
[0137] Optionally, the multiple frequency hopping channels include a first frequency hopping channel, the multiple B-side channel evaluation results include a first B-side channel evaluation result corresponding to the first frequency hopping channel, and the second determination module 610 is used to determine the first frequency hopping channel as belonging to a second set of available frequency hopping channels if the first B-side channel evaluation result is not less than a set threshold; if the first B-side channel evaluation result is less than the set threshold, determine the first frequency hopping channel as belonging to a second set of unavailable frequency hopping channels.
[0138] Optionally, the first B-side channel evaluation result is a difference between the quality of the useful signal transmitted by the first frequency hopping channel to the second playback component and the quality of the interference signal transmitted by the first frequency hopping channel to the second playback component.
[0139] Figure 7 The communication device 700 provided in the embodiment of the present application is applied to an electronic device, and the device 700 includes a third receiving module 710, an acquisition module 720, a second fusion module 730, a third sending module 740 and a third communication module 750.
[0140] The third receiving module 710 is used to receive the third frequency hopping sequence sent by the first playing component.
[0141] The acquisition module 720 is used to acquire a fourth frequency hopping sequence, where the fourth frequency hopping sequence is used to characterize the quality of communication performed by the electronic device through multiple frequency hopping channels.
[0142] The second merging module 730 is configured to merge the third frequency hopping sequence and the fourth frequency hopping sequence into a target frequency hopping sequence.
[0143] The third sending module 740 is configured to send a target frequency hopping sequence.
[0144] The third communication module 750 is used to communicate with the first playing component and / or the second playing component based on the target frequency hopping sequence to transmit audio data.
[0145] Optionally, the third frequency hopping sequence includes a third available frequency hopping channel set and a third unavailable frequency hopping channel set, the fourth frequency hopping sequence includes a fourth available frequency hopping channel set and a fourth unavailable frequency hopping channel set, and the second fusion module 730 is used to determine the intersection of the third available frequency hopping channel set and the fourth available frequency hopping channel set as the target available frequency hopping channel set in the target frequency hopping sequence.
[0146] Optionally, the third frequency hopping sequence also includes a third candidate available frequency hopping channel set, and the second fusion module 730 is used to add a fourth target frequency hopping channel to the target available frequency hopping channel set if the number of frequency hopping channels in the target available frequency hopping channel set is less than a number threshold, and the fourth target frequency hopping channel is a frequency hopping channel in the intersection of the fourth available frequency hopping channel set and the third candidate available frequency hopping channel set.
[0147] like Figure 8 As shown, a chip 800 is also provided in an embodiment of the present application. The chip 800 is arranged in the communication device mentioned above. The chip 800 includes a processor 810. The processor 810 can be used to call and run a computer program from a memory so that the communication device executes the method described in the above method embodiment. It can be understood that the processor can be any type of processor mentioned above. It can be understood that the memory can be independent of the chip or integrated in the chip.
[0148] The embodiment of the present application also provides a machine-readable storage medium for storing a program, and the program enables a computer to execute the method in each embodiment of the present application.
[0149] The embodiment of the present application also provides a computer program product. The computer program product includes a program. The program enables a computer to execute the method in each embodiment of the present application.
[0150] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0151] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not 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.
[0152] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0153] The units described 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.
[0154] 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.
[0155] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be read by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)) or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0156] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A communication method, characterized in that: The method is applied to a first playback component, wherein the first playback component and the second playback component constitute a Bluetooth audio playback device, and the method includes: Performing channel evaluation on a plurality of frequency hopping channels respectively to determine a first frequency hopping sequence, wherein the first frequency hopping sequence is used to characterize the quality of communication performed by the first playing component through the plurality of frequency hopping channels; receiving a second frequency hopping sequence sent by the second playback component, where the second frequency hopping sequence is used to characterize the quality of communication performed by the second playback component through the multiple frequency hopping channels; Merging the first frequency hopping sequence and the second frequency hopping sequence to obtain a third frequency hopping sequence; Sending the third frequency hopping sequence to an electronic device; receiving a target frequency hopping sequence sent by the electronic device, where the target frequency hopping sequence is obtained by the electronic device fusing a fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is a frequency hopping sequence evaluated by the electronic device; Communicate with the electronic device based on the target frequency hopping sequence to transmit audio data.
2. The method according to claim 1, characterized in that: The performing channel assessment on a plurality of frequency hopping channels respectively to determine a first frequency hopping sequence comprises: Performing channel evaluation on the multiple frequency hopping channels respectively to obtain multiple A-side channel evaluation results; The first frequency hopping sequence is determined according to the multiple A-side channel evaluation results, where the first frequency hopping sequence includes a first available frequency hopping channel set and a first unavailable frequency hopping channel set.
3. According to claim 2, if the first A-side channel evaluation result is not less than a set threshold, determining the first frequency hopping channel as belonging to the first available frequency hopping channel set; If the first A-side channel evaluation result is less than the set threshold, the first frequency hopping channel is determined to belong to the first unavailable frequency hopping channel set.
4. The method according to claim 3, characterized in that: The first A-side channel evaluation result is a difference between the quality of the first frequency hopping channel transmitting useful signals for the first playback component and the quality of the first frequency hopping channel transmitting interference signals for the first playback component.
5. The method according to claim 1, characterized in that The fusing the first frequency hopping sequence and the second frequency hopping sequence to obtain a third frequency hopping sequence includes: Merging the first frequency hopping sequence and the second frequency hopping sequence into a first fused frequency hopping sequence, wherein the first fused frequency hopping sequence includes a first fused available frequency hopping channel set, a first fused unavailable frequency hopping channel set, and a first fused candidate frequency hopping channel set; A third frequency hopping sequence is determined according to the first fused frequency hopping sequence, where the third frequency hopping sequence includes a third available frequency hopping channel set and a third unavailable frequency hopping channel set.
6. The method according to claim 5, characterized in that The first frequency hopping sequence includes a first available frequency hopping channel set and a first unavailable frequency hopping channel set, the second frequency hopping sequence includes a second available frequency hopping channel set and a second unavailable frequency hopping channel set, and fusing the first frequency hopping sequence and the second frequency hopping sequence into a first fused frequency hopping sequence includes: Determine an intersection of the first available frequency hopping channel set and the second available frequency hopping channel set as the first fused available frequency hopping channel set; Determine an intersection of the first unavailable frequency hopping channel set and the second unavailable frequency hopping channel set as the first fused unavailable frequency hopping channel set; The frequency hopping channels among the plurality of frequency hopping channels except the first fusion available frequency hopping channel set and the first fusion unavailable frequency hopping channel set are determined as the first fusion candidate frequency hopping channel set.
7. The method according to claim 5, characterized in that Determining the third frequency hopping sequence according to the first fused frequency hopping sequence includes: If the number of frequency hopping channels in the first fused available frequency hopping channel set is greater than or equal to the number threshold, Determine the first fused available frequency hopping channel set as the third available frequency hopping channel set; The first fused unavailable frequency hopping channel set and the first fused candidate frequency hopping channel set are determined as the third unavailable frequency hopping channel set.
8. The method according to claim 5, characterized in that Determining the third frequency hopping sequence according to the first fused frequency hopping sequence includes: If the number of frequency hopping channels in the first fused available frequency hopping channel set is less than the number threshold, Respectively calculating average channel evaluation results of the frequency hopping channels in the first fused candidate frequency hopping channel set, the average channel evaluation result being the average of the A-side channel evaluation results and the B-side channel evaluation results of the frequency hopping channels in the first fused candidate frequency hopping channel set, the B-side channel evaluation result being obtained by the second playback component performing channel evaluation; Determine the first fused available frequency hopping channel set and the first target frequency hopping channel as belonging to the third available frequency hopping channel set, wherein the first target frequency hopping channel is a frequency hopping channel corresponding to the average channel evaluation results located in the first X positions selected from the first fused candidate frequency hopping channel set in descending order of the average channel evaluation results, where X is the difference between the number threshold and the number of frequency hopping channels in the first fused available frequency hopping channel set; The first fused unavailable frequency hopping channel set and the second target frequency hopping channel are determined as the third unavailable frequency hopping channel set, and the second target frequency hopping channel is a frequency hopping channel in the first fused candidate frequency hopping channel set except the first target frequency hopping channel.
9. The method according to claim 8, characterized in that The third frequency hopping sequence further includes a third candidate available frequency hopping channel set, and the determining the first fused unavailable frequency hopping channel set and the second target frequency hopping channel as the third unavailable frequency hopping channel set further includes: Determine a third target frequency hopping channel in the second target frequency hopping channel as belonging to the third candidate available frequency hopping channel set, wherein an average channel evaluation result of the third target frequency hopping channel is greater than or equal to a set threshold; The remaining frequency hopping channels and the first fused unavailable frequency hopping channel set are determined to belong to the third unavailable frequency hopping channel set, wherein the remaining frequency hopping channels are the frequency hopping channels in the second target frequency hopping channels except the third target frequency hopping channels.
10. A communication method, characterized in that: The method is applied to the second playback component, the second playback component and the first playback component constitute a Bluetooth audio playback device, and the method includes: Performing channel evaluation on the multiple frequency hopping channels respectively to determine a second frequency hopping sequence, where the second frequency hopping sequence is used to characterize the quality of communication performed by the second playback component through the multiple frequency hopping channels; Sending the second frequency hopping sequence to the first playing component, where the first playing component is used to fuse a third frequency hopping sequence according to the second frequency hopping sequence; receiving a target frequency hopping sequence, where the target frequency hopping sequence is obtained by the electronic device fusing a fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is a frequency hopping sequence evaluated by the electronic device; Communicate with the electronic device based on the target frequency hopping sequence to transmit audio data.
11. The method according to claim 10, characterized in that The performing channel assessment on the plurality of frequency hopping channels respectively to determine the second frequency hopping sequence comprises: Performing channel evaluation on the multiple frequency hopping channels respectively to obtain multiple B-side channel evaluation results; The second frequency hopping sequence is determined according to the multiple B-side channel evaluation results, where the second frequency hopping sequence includes a second available frequency hopping channel set and a second unavailable frequency hopping channel set.
12. The method according to claim 11, characterized in that The multiple frequency hopping channels include a first frequency hopping channel, the multiple B-side channel evaluation results include a first B-side channel evaluation result corresponding to the first frequency hopping channel, and determining the second frequency hopping sequence according to the multiple B-side channel evaluation results includes: If the first B-side channel evaluation result is not less than a set threshold, determining the first frequency hopping channel as belonging to the second available frequency hopping channel set; If the first B-side channel evaluation result is less than the set threshold, the first frequency hopping channel is determined to belong to the second unavailable frequency hopping channel set.
13. The method according to claim 12, characterized in that The first B-side channel evaluation result is a difference between the quality of the first frequency hopping channel transmitting useful signals for the second playback component and the quality of the first frequency hopping channel transmitting interference signals for the second playback component.
14. A communication method, characterized in that: The method is applied to an electronic device, and the method comprises: receiving a third frequency hopping sequence sent by the first playing component; Acquire a fourth frequency hopping sequence, where the fourth frequency hopping sequence is used to characterize the quality of communication performed by the electronic device through multiple frequency hopping channels; Merging the third frequency hopping sequence and the fourth frequency hopping sequence to obtain a target frequency hopping sequence; Sending the target frequency hopping sequence; Communicate with the first playback component and / or the second playback component based on the target frequency hopping sequence to transmit audio data.
15. The method according to claim 14, characterized in that The third frequency hopping sequence includes a third available frequency hopping channel set and a third unavailable frequency hopping channel set, the fourth frequency hopping sequence includes a fourth available frequency hopping channel set and a fourth unavailable frequency hopping channel set, and fusing the third frequency hopping sequence and the fourth frequency hopping sequence to obtain a target frequency hopping sequence includes: An intersection of the third available frequency hopping channel set and the fourth available frequency hopping channel set is determined as a target available frequency hopping channel set in a target frequency hopping sequence.
16. The method according to claim 15, characterized in that The third frequency hopping sequence further includes a third candidate available frequency hopping channel set, and the method further includes: If the number of frequency hopping channels in the target available frequency hopping channel set is less than the number threshold, a fourth target frequency hopping channel is added to the target available frequency hopping channel set, and the fourth target frequency hopping channel is a frequency hopping channel in the intersection of the fourth available frequency hopping channel set and the third candidate available frequency hopping channel set.
17. A communication device, characterized in that: The device is applied to a first playback component, the first playback component and the second playback component constitute a Bluetooth audio playback device, and the device includes: A first determination module, configured to perform channel evaluation on a plurality of frequency hopping channels respectively to determine a first frequency hopping sequence, wherein the first frequency hopping sequence is used to characterize the quality of communication performed by the first playback component through the plurality of frequency hopping channels; A first receiving module, configured to receive a second frequency hopping sequence sent by the second playing component, wherein the second frequency hopping sequence is used to characterize the quality of communication performed by the second playing component through the multiple frequency hopping channels; A first fusion module, configured to fuse the first frequency hopping sequence and the second frequency hopping sequence into a third frequency hopping sequence; A first sending module, used to send the third frequency hopping sequence to an electronic device; The first receiving module is further used to receive a target frequency hopping sequence sent by the electronic device, where the target frequency hopping sequence is obtained by the electronic device fusing a fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is a frequency hopping sequence evaluated by the electronic device; The first communication module is used to communicate with the electronic device based on the target frequency hopping sequence to transmit audio data.
18. A communication device, characterized in that: The device is applied to the second playing component, the second playing component and the first playing component constitute a Bluetooth audio playing device, and the device includes: A second determination module is used to perform channel evaluation on the multiple frequency hopping channels respectively to determine a second frequency hopping sequence, where the second frequency hopping sequence is used to characterize the quality of the communication performed by the second playback component through the multiple frequency hopping channels; A second sending module, configured to send the second frequency hopping sequence to the first playing component, wherein the first playing component is configured to fuse a third frequency hopping sequence according to the second frequency hopping sequence; A second receiving module is used to receive a target frequency hopping sequence, where the target frequency hopping sequence is obtained by the electronic device fusing a fourth frequency hopping sequence with the third frequency hopping sequence, and the fourth frequency hopping sequence is a frequency hopping sequence evaluated by the electronic device; The second communication module is used to communicate with the electronic device based on the target frequency hopping sequence to transmit audio data.
19. A communication device, characterized in that: The device is applied to electronic equipment, and the device comprises: A third receiving module, used for receiving a third frequency hopping sequence sent by the first playing component; An acquisition module, used for acquiring a fourth frequency hopping sequence, where the fourth frequency hopping sequence is used to characterize the quality of communication performed by the electronic device through multiple frequency hopping channels; A second fusion module, configured to fuse the third frequency hopping sequence and the fourth frequency hopping sequence into a target frequency hopping sequence; A third sending module, used for sending the target frequency hopping sequence; The third communication module is used to communicate with the first playing component and / or the second playing component based on the target frequency hopping sequence to transmit audio data.
20. A chip, characterized in that: The chip comprises: A processor, configured to call and run a computer program from a memory, so that the audio playback device executes the method as described in any one of claims 1-16.
21. A computer-readable storage medium having executable code stored thereon, characterized in that: The code is used to implement the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Communication method and device for true wireless Bluetooth earphone, earphone and system
CN115767488A
True wireless Bluetooth headset and communication method, device and system thereof
CN115767490A