Antenna selection method, electronic equipment and computer readable medium
By receiving the binaural feedback signal of the wireless headphones in the electronic device and selecting the transmission antenna, the wireless headphone audio lag problem caused by selecting the antenna based on only one headphone feedback signal in the prior art is solved, and more stable audio transmission is achieved.
Patent Information
- Application Number
- CN202311171853.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2025-03-11
AI Technical Summary
When selecting a transmission antenna, the prior art can only be based on the feedback signal of one earphone, resulting in the problem of lag when playing audio with wireless earphones.
After transmitting the first audio signal to the wireless headset and receiving the feedback signal sent by the first and second headsets, the transmission antenna is selected according to the two feedback signals to transmit the second audio signal.
By selecting the transmission antenna based on the feedback signals of the two headphones, the most suitable antenna can be selected more accurately, reducing the lag problem when wireless headphones play audio.
Smart Images

Figure CN119603594A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission, and in particular to an antenna selection method, an electronic device, and a computer-readable medium. Background Art
[0002] With the popularity of wireless headphones, users have higher and higher requirements for the audio playback quality of wireless headphones. Wireless headphones usually include a first earphone and a second earphone. To ensure smooth audio playback without lag, the electronic device must select appropriate transmission antennas for the first earphone and the second earphone when sending audio signals. At present, after sending an audio signal, the electronic device can only select the transmission antenna for transmitting the audio signal based on the feedback signal of one earphone, which may aggravate the problem of audio lag during wireless headset audio playback. Summary of the invention
[0003] The embodiments of the present application are directed to providing an antenna selection method, an electronic device, and a computer-readable medium. The following is an introduction from the following aspects.
[0004] In a first aspect, an antenna selection method is provided, which is applied to an electronic device, wherein the electronic device is communicatively connected to a wireless headset, and the method comprises: transmitting a first audio signal to the wireless headset, wherein the wireless headset comprises a first headset and a second headset that match each other; receiving a first feedback signal for the first audio signal sent by the first headset; receiving a second feedback signal for the first audio signal sent by the second headset; selecting a transmission antenna according to the first feedback signal and the second feedback signal; and transmitting a second audio signal to the wireless headset using the transmission antenna.
[0005] In a second aspect, an electronic device is provided, comprising: one or more transmission antennas; and a Bluetooth chip connected to the one or more transmission antennas, the Bluetooth chip being used to execute any one of the methods in the first aspect.
[0006] In a third aspect, an electronic device is provided, including: a first transmission module, used to transmit a first audio signal to a wireless headset, the wireless headset including a first headset and a second headset that match each other; a first receiving module, used to receive a first feedback signal for the first audio signal sent by the first headset; a second receiving module, used to receive a second feedback signal for the first audio signal sent by the second headset; a selection module, used to select a transmission antenna according to the first feedback signal and the second feedback signal; and a second transmission module, used to transmit a second audio signal to the wireless headset using the transmission antenna.
[0007] In a fourth aspect, a computer-readable medium is provided, wherein the computer-readable medium stores a program code, and when the computer program code runs on a computer, the computer executes the method in the first aspect.
[0008] In the embodiment of the present application, after the electronic device transmits the first audio signal to the wireless headset, the electronic device can receive the first feedback signal sent by the first headset and the second feedback signal sent by the second headset, and select the transmission antenna according to the two feedback signals. Compared with the related art of selecting the transmission antenna according to the feedback signal of only one headset, this helps to solve the problem of freezing when the wireless headset plays audio. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 Shown is a schematic diagram of a scene of related technology.
[0010] Figure 2 Shown is a schematic diagram of a scenario of an embodiment of the present application.
[0011] Figure 3 Shown is a schematic flow chart of an antenna selection method according to an embodiment of the present application.
[0012] Figure 4 Shown is a schematic diagram of an antenna selection method according to an embodiment of the present application.
[0013] Figure 5 Shown is a schematic block diagram of an electronic device according to an embodiment of the present application.
[0014] Figure 6 Shown is a schematic block diagram of an electronic device according to another embodiment of the present application.
[0015] Figure 7 Shown is a schematic block diagram of an electronic device according to yet another embodiment of the present application. DETAILED DESCRIPTION
[0016] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0017] In the embodiments of the present application, the electronic device is not specifically limited. In some embodiments, the electronic device may be a handheld smart terminal, such as a mobile phone, a tablet computer, etc. Alternatively, the electronic device may also be a wearable device, such as a smart watch, a smart bracelet, etc.
[0018] The electronic device is connected to the wireless headset for communication. In some embodiments, the electronic device and the wireless headset can perform short-distance communication. The short-distance communication may include one or more of the following communication modes: Bluetooth, wireless fidelity, and zigbee.
[0019] With the popularity of wireless headsets, the proportion of users using wireless headsets has increased rapidly, and users have higher and higher requirements for the audio playback quality of wireless headsets. Wireless headsets usually include a first headset and a second headset (or a left headset and a right headset). To ensure that the audio is played smoothly without lag, the electronic device must select a suitable transmission antenna (or antenna switching) for the first headset and the second headset when sending audio signals. The following article takes the electronic device as a mobile phone and the wireless headset as a true wireless Bluetooth headset as an example to introduce the traditional way of selecting a transmission antenna.
[0020] As an example, there are generally two mainstream connection schemes between traditional true wireless Bluetooth headsets and mobile phones. One scheme is the monitoring scheme, which is specifically: the mobile phone establishes a connection with one of the two true wireless Bluetooth headsets (for example, the first headset), the mobile phone transmits an audio signal to the first headset, and the second headset monitors the audio signal as a slave headset. Then the first headset and the second headset play the audio at the same time at the agreed time, thereby achieving binaural synchronous playback. Another scheme is the forwarding scheme, which is specifically: the mobile phone establishes a connection with one of the two true wireless Bluetooth headsets (for example, the first headset), and a Bluetooth connection is also established between the first headset and the second headset. The mobile phone first transmits the audio signal to the first headset, and then the first headset forwards the audio signal to the second headset unchanged. Finally, the first headset and the second headset play at the same time at the agreed time, thereby achieving binaural synchronous playback.
[0021] As can be seen from the above introduction, in a traditional true wireless Bluetooth headset, only one headset (for example, the first headset) is connected to the mobile phone, while the other headset (for example, the second headset) is in a monitoring or forwarding state, so it is not connected to the mobile phone. Since the mobile phone can only receive the feedback signal sent by one headset, the mobile phone can only select the transmission antenna based on one feedback signal. However, for the first headset and the second headset, the most suitable transmission antenna for the mobile phone to send audio signals to them may be different, as described below.
[0022] like Figure 1As shown, the mobile phone is provided with an ANT0 antenna and an ANT1 antenna. The posture of the mobile phone is in the user's right front pocket. The first earphone is located at the user's right ear, and the second earphone is located at the user's left ear. When the first earphone is connected to the mobile phone, the mobile phone transmits an audio signal to the first earphone through communication link 1. After the first earphone receives the audio signal, the first earphone sends a feedback signal (e.g., an ACK or NAK signal) to the mobile phone. In Table 1, the audio coding of the Bluetooth connection is subband coding (SBC). The received signal strength indication (RSSI) value of the feedback signal received by the ANT0 antenna is -70, and the RSSI value of the feedback signal received by the ANT1 antenna is -72. The strength of the feedback signal received by the ANT0 antenna is stronger than the strength of the feedback signal received by the ANT1 antenna. Therefore, the mobile phone will select the ANT0 antenna to transmit the audio signal to the first earphone next time. When the second earphone is connected to the mobile phone, the mobile phone transmits the audio signal to the second earphone through communication link 2. After the second earphone receives the audio signal, the second earphone sends a feedback signal to the mobile phone. The RSSI value of the feedback signal received by the ANT0 antenna is -74, and the RSSI value of the feedback signal received by the ANT1 antenna is -71. Therefore, the mobile phone will select the ANT1 antenna to transmit the audio signal to the first earphone next time. When the mobile phone selects the ANT0 antenna as the transmission antenna, the user's subjective listening experience is 20 times. When the mobile phone selects ANT1 as the transmission antenna, the user's subjective listening experience is 5 times. It can be seen that the transmission antenna selected by the mobile phone based on the feedback signal of one earphone is not the antenna with the least number of freezes when transmitting audio.
[0023] Table 1: Antenna selection of related technologies
[0024]
[0025]
[0026] As users continue to demand high-quality, low-latency, and long-lasting Bluetooth headsets, Bluetooth headsets have gradually evolved from traditional Bluetooth headsets to low-power Bluetooth (BLE) headsets. Figure 2As shown, the mobile phone is provided with an ANT0 antenna and an ANT1 antenna. The posture of the mobile phone is in the right front pocket of the user. The first earphone is located at the right ear of the user, and the second earphone is located at the left ear of the user. The first earphone and the second earphone are low-power Bluetooth earphones. The first earphone and the second earphone can establish BLE links with the mobile phone respectively, and the communication link established between one earphone and the mobile phone can be called a connected isochronous stream (CIS) link. The mobile phone establishes a CIS0 link with the first earphone and a CIS1 link with the second earphone. The two CIS links together can be called a connected isochronous stream (CIG) link. Although both earphones of the low-power Bluetooth headset have established a communication connection with the mobile phone, in the related art, the mobile phone can only select the transmission antenna according to the feedback signal of one earphone. Therefore, there is also the problem of more jamming when the transmission antenna selected by the mobile phone transmits the audio signal.
[0027] As described above, currently, after sending an audio signal (referred to as the first audio signal), the electronic device can only select the transmission antenna for transmitting the next audio signal (referred to as the second audio signal) based on a feedback signal from one earphone. However, the transmission antenna selected in this way may not be the most suitable for the first earphone or the second earphone, thereby exacerbating the problem of freezing when the wireless earphone plays audio.
[0028] In response to the above-mentioned problems, an embodiment of the present application provides an antenna selection method, which is applied to an electronic device, and the electronic device is communicatively connected to a wireless headset. In this method, after the electronic device transmits a first audio signal to the wireless headset, the electronic device can receive a first feedback signal sent by the first headset and a second feedback signal sent by the second headset, and select a transmission antenna based on the two feedback signals. Compared with the related art of selecting a transmission antenna based on one feedback signal, the embodiment of the present application selects a transmission antenna based on two feedback signals, which helps to solve the problem of stuttering when the wireless headset plays audio. The following will be combined with Figure 3 The process of the antenna selection method according to the embodiment of the present application is introduced in detail.
[0029] In step S310, a first audio signal is transmitted to the wireless headset. The first audio signal is not specifically limited in the embodiment of the present application, and can be any type of audio signal that can be received by the wireless headset. The audio signal can be transmitted from the electronic device to the wireless headset in the form of a protocol data unit (PDU), for example.
[0030] In step S320, a first feedback signal for the first audio signal sent by the first earphone is received. The embodiment of the present application does not specifically limit the first feedback signal, and the first feedback signal may be any type of feedback signal that can be received by the electronic device. In some embodiments, the feedback signal may be a confirmation signal indicating whether the first earphone has successfully received the first audio signal, and the confirmation signal may be, for example, an ACK or NACK signal, wherein the ACK signal indicates that the first earphone has received the first audio signal, and the NACK signal indicates that the first earphone has not received the first audio signal.
[0031] In step S330, a second feedback signal for the first audio signal sent by the second earphone is received. The second feedback signal is not specifically limited in the embodiment of the present application, and the second feedback signal may be any type of feedback signal that can be received by the electronic device. In some embodiments, the feedback signal may be a confirmation signal indicating whether the second earphone has successfully received the first audio signal, and the confirmation signal may be, for example, an ACK or NACK signal, wherein the ACK signal indicates that the second earphone has received the first audio signal, and the NACK signal indicates that the second earphone has not received the first audio signal.
[0032] In some embodiments, the first headset is connected to the electronic device via a first communication link, and the second headset is connected to the electronic device via a second communication link. The embodiments of the present application do not specifically limit the communication link. For example, the first communication link and the second communication link can both be communication links of a low-power Bluetooth headset, wherein the first communication link and the second communication link of the low-power Bluetooth headset can be referred to as a CIS link, and the first communication link and the second communication link can be collectively referred to as a CIG link.
[0033] In step S340, a transmission antenna is selected according to the first feedback signal and the second feedback signal. There are many ways for the electronic device to select an antenna according to the feedback signal. In some embodiments, the electronic device can select a transmission antenna according to the signal quality of the feedback signal received by multiple antennas.
[0034] The embodiment of the present application does not specifically limit the representation method of signal quality, as long as it can indicate the strength of the feedback signal received by the antenna. For example, the signal quality can be RSSI, or for another example, the signal quality can be reference signal receiving power (RSRP).
[0035] The electronic device can select transmission antennas for the first earphone and the second earphone respectively according to the above two feedback signals. In some embodiments, the electronic device can select the transmission antenna corresponding to the first earphone according to the first feedback signal, and select the transmission antenna corresponding to the second earphone according to the second feedback signal. Since the electronic device selects the transmission antenna for each earphone separately according to the feedback signal of each earphone, the quality of the audio signal received by the earphone can be improved, which helps to solve the problem of stuttering when the wireless earphone plays audio. For example, the electronic device can refer to the signal strength of the first feedback signal received by multiple antennas. If the signal strength value received by one antenna is greater than the signal strength value received by other antennas, then the antenna is selected as the transmission antenna corresponding to the first earphone.
[0036] As an example, referring to Table 2, after the first earphone receives the first audio signal, it will send a first feedback signal (for example, an ACK or NACK signal) to the mobile phone. After the ANT0 antenna and the ANT1 antenna receive the first feedback signal, the mobile phone can obtain the RSSI value of the first feedback signal received by the ANT0 antenna and the ANT1 antenna. As shown in Table 2, the RSSI value of the first feedback signal received by the ANT0 antenna is -70, which is greater than the RSSI value of the first feedback signal received by the ANT1 antenna -72, so the mobile phone can select the ANT0 antenna as the transmission antenna corresponding to the first earphone to transmit the second audio signal. After the second earphone receives the first audio signal, it will send a second feedback signal (for example, an ACK or NACK signal) to the mobile phone. After the ANT0 antenna and the ANT1 antenna receive the second feedback signal, the mobile phone can obtain the RSSI value of the first feedback signal received by the ANT0 antenna and the ANT1 antenna. As shown in Table 2, the RSSI value of the second feedback signal received by the ANT1 antenna is -71, which is greater than the RSSI value of the second feedback signal received by the ANT0 antenna -74, so the mobile phone can select the ANT1 antenna as the transmission antenna corresponding to the second earphone to transmit the second audio signal.
[0037] Table 2: Antenna selection in the present embodiment
[0038] Testing the Headphones Bitrate Mobile phone posture ANT0 RX RSSI ANT1 RX RSSI Antenna Selection Transfer Object First Headphones SBC Right front pocket -70 -72 ANT0 First Headphones Second earphone SBC Right front pocket -74 -71 ANT1 Second earphone
[0039] Of course, the electronic device can also select a transmission antenna to transmit audio signals to the first earphone and the second earphone based on the above two feedback signals, which simplifies the process of selecting antennas for the electronic device and helps to improve the transmission efficiency of audio signals. For example, the worse the signal quality of the feedback signal received by the antenna, the greater the probability of jamming when the audio signal is transmitted using the antenna. Therefore, the electronic device can refer to the signal quality of the two feedback signals received by multiple antennas. If the quality of the weakest signal received by one antenna is stronger than the quality of the weakest signal received by other antennas, then the antenna is selected as the transmission antenna.
[0040] As an example, referring to Table 3, the first earphone sends a first feedback signal (e.g., an ACK or NAK signal) to the mobile phone, the RSSI value of the first feedback signal received by the ANT0 antenna is -70, and the RSSI value of the first feedback signal received by the ANT1 antenna is -72. The second earphone sends a second feedback signal to the mobile phone, the RSSI value of the second feedback signal received by the ANT0 antenna is -74, and the RSSI value of the second feedback signal received by the ANT1 antenna is -71. It can be seen that the minimum RSSI value of the two groups of feedback signals received by the ANT0 antenna is -74, and the minimum RSSI value of the two groups of feedback signals received by the ANT1 antenna is -72. Since the RSSI value of the weakest feedback signal received by ANT1 is greater than the RSSI value of the weakest feedback signal received by ANT0, the number of freezes when the mobile phone selects the ANT1 antenna as the transmission antenna for the first earphone and the second earphone to transmit audio signals may be less.
[0041] Table 3: Antenna selection in the present embodiment
[0042] Testing the Headphones Bitrate Mobile phone posture ANT0 RX RSSI ANT1 RX RSSI Antenna Selection Transfer Object First Headphones SBC Right front pocket -70 -72 ANT1 First Headphones Second earphone SBC Right front pocket -74 -71 ANT1 Second earphone
[0043] Continue to see Figure 3 In step S350, the electronic device transmits the second audio signal to the wireless headset using the transmission antenna. Further, the electronic device may transmit the second audio signal to the first headset using the transmission antenna corresponding to the first headset, and transmit the second audio signal to the second headset using the transmission antenna corresponding to the second headset. Of course, the electronic device may also transmit the second audio signal to the first headset and the second headset using one transmission antenna.
[0044] The embodiment of the present application does not specifically limit the number of antennas of the electronic device. For example, the electronic device may have two antennas or more than two antennas.
[0045] It should be understood that the transmission antenna corresponding to the first earphone and the transmission antenna corresponding to the second earphone may be the same antenna or two different antennas, which is specifically determined by the situation in which multiple antennas of the first electronic device receive the first feedback signal and the second feedback signal.
[0046] As mentioned above, the electronic device can refer to the signal strength of the first feedback signal received by multiple antennas. If the signal strength value received by one antenna is greater than the signal strength values received by other antennas, then the antenna is selected as the transmission antenna corresponding to the first earphone. However, if the transmission antenna is different from the antenna transmitting the first audio signal, and the signal strength values of the feedback signals received by the two are very different, then even if the electronic device uses the transmission antenna to transmit the second audio signal, the effect will not be greatly improved, and frequent replacement of antennas will also prolong the transmission time of the audio signal, giving users a bad experience.
[0047] Based on the above problem, in some scenarios, if the antenna that transmits the first audio signal to the first earphone is called the current antenna, when the strength value of the first feedback signal received by the transmission antenna corresponding to the first earphone is greater than the signal strength value of the first feedback signal received by the current antenna, and the difference between the two exceeds a certain threshold, the transmission antenna corresponding to the first earphone will be selected to transmit the second audio signal, otherwise the current antenna will continue to be used to transmit the second audio signal to the first earphone. This threshold is not specifically limited in the embodiment of the present application, for example, it can be set to 3.
[0048] In some poor communication environments, if the electronic device cannot receive the second feedback signal from the second earphone, the electronic device cannot select the transmission antenna corresponding to the second earphone. In order to ensure that the second audio signal can be normally transmitted to the second earphone, the electronic device needs to select the transmission antenna for the second earphone according to other conditions.
[0049] Therefore, in some embodiments, if the electronic device does not receive the first feedback signal, the electronic device can transmit the second audio signal to the second earphone according to the transmission antenna corresponding to the first earphone, which helps to solve the problem of poor signal and inability of the earphone to receive the audio signal when the user's ears are unbalanced, resulting in lag.
[0050] If the communication environment deteriorates further, the electronic device may not be able to receive the first feedback signal and the second feedback signal. In this case, the electronic device will retransmit the first audio signal multiple times. If the first feedback signal or the second feedback signal is still not received after reaching the specified number of retransmissions, the electronic device may not be able to select a transmission antenna for transmitting the second audio signal.
[0051] Therefore, in some embodiments, if the electronic device does not receive the first feedback signal and the second feedback signal, the electronic device may select the antenna used to transmit the first audio signal to transmit the second audio signal, which helps to improve the success rate of the electronic device in transmitting the audio signal.
[0052] Combined with the following Figure 2 , Figure 4 , Table 2 and Table 3 provide exemplary introductions to the method for selecting an antenna according to an embodiment of the present application.
[0053] like Figure 2 As shown, it is assumed that the electronic device is a mobile phone and is provided with an ANT0 antenna and an ANT1 antenna. The mobile phone is in the user's right front pocket. The first earphone is located at the user's right ear, and the second earphone is located at the user's left ear. The first earphone and the second earphone are low-power Bluetooth earphones. The mobile phone establishes a communication link of the low-power Bluetooth earphones with the two earphones at the same time, wherein the mobile phone establishes a CIS0 link with the first earphone and a CIS1 link with the second earphone, and the two CIS links are collectively referred to as a CIG link. The CIG link is a dual-channel link, so the selection of the transmission antenna in the embodiment of the present application can also be referred to as dual-channel antenna intelligent switching.
[0054] like Figure 4 As shown, there are 4 PDU packets to be transmitted in the mobile phone (in Figure 4 In the CIS0 link, it is represented by PDU0-1 packet, PDU1-1 packet, PDU2-1 packet and PDU3-1 packet; in the CIS1 link, it is represented by PDU0-2 packet, PDU1-2 packet, PDU2-2 packet and PDU3-2 packet. In the dual-channel mode of the CIG link, the mobile phone can transmit PDU packets to the CIS0 link and the CIS1 link in turn. The CIS link transmits each PDU packet at a specific time interval. The process of transmitting the above 4 PDU packets through the CIS0 link can be called a CIS0 event. The process of transmitting the above 4 PDU packets through the CIS1 link can be called a CIS1 event. The CIS0 event and the CIS1 event are collectively referred to as a CIG event.
[0055] When the mobile phone transmits the PDU0-1 packet to the first headset through the CIS0 link, the default configured antenna will be used to send the PDU0-1 packet in the initial state (the ANT0 antenna can be configured by default). After the first headset receives the PDU0-1 packet, the sent ACK signal is received by the ANT0 antenna and the ANT1 antenna. After receiving the feedback signal, the mobile phone can obtain the RSSI value of the ACK signal received by the ANT0 antenna and the ANT1 antenna. Assume that Table 2 shows the situation where the mobile phone antenna receives the feedback signal after the mobile phone sends the PDU0-1 packet and the PDU0-2 packet. Taking Table 2 as an example, the RSSI value received by the ANT0 antenna is -70, which is greater than the RSSI value received by the ANT1 antenna -72. Therefore, the mobile phone can select the ANT0 antenna as the transmission antenna corresponding to the first headset (or the mobile phone smart antenna) to transmit the PDU1-1 packet.
[0056] After the transmission of the PDU0-1 packet on the CIS0 link is completed, when the mobile phone transmits the PDU0-2 packet to the second headset through the CIS1 link, the default configured antenna will be used to send the PDU0-2 packet in the initial state (the ANT0 antenna can be configured by default). After the second headset receives the PDU0-2 packet, the sent ACK signal is received by the ANT0 antenna and the ANT1 antenna. After receiving the feedback signal, the mobile phone can obtain the RSSI value of the ACK signal received by the ANT0 antenna and the ANT1 antenna. Taking Table 2 as an example, the RSSI value received by ANT1 is -71, which is greater than the RSSI value received by ANT0 -74, so the mobile phone can select the ANT1 antenna as the transmission antenna corresponding to the second headset (or the mobile phone smart antenna) to transmit the PDU1-2 packet.
[0057] Of course, the mobile phone can also select a transmission antenna to transmit the PDU packet to the first earphone and the second earphone, which can simplify the process of selecting antennas for electronic devices and help improve the transmission efficiency of audio signals. Specifically, assume that Table 3 shows the situation where the mobile phone antenna receives feedback signals after the mobile phone sends PDU0-1 and PDU0-2 packets. As shown in Table 3, the first earphone sends an ACK signal to the mobile phone, the RSSI value received by the ANT0 antenna is -70, and the RSSI value received by the ANT1 antenna is -72. The second earphone sends an ACK signal to the mobile phone, the RSSI value received by the ANT0 antenna is -74, and the RSSI value received by the ANT1 antenna is -71. It can be seen that the minimum RSSI value of the two groups of ACK signals received by the ANT0 antenna is -74, and the minimum RSSI value of the two groups of ACK signals received by the ANT1 antenna is -72. Since the RSSI value of the weakest feedback signal received by ANT1 is greater than the RSSI value of the weakest feedback signal received by ANT0, it is obvious that the mobile phone selects the ANT1 antenna as the transmission antenna to transmit the PDU1-1 and PDU1-2 packets. The effect is better.
[0058] In some scenarios, for the first headset, if the RSSI value of the ACK signal received by the ANT1 antenna is greater than the RSSI value of the ACK signal received by the ANT0 antenna, and the difference between the two is greater than 3, the ANT1 antenna will be selected to transmit the PDU1-1 packet, otherwise the ANT0 antenna will continue to be used to transmit the PDU1-1 packet. Similarly, this method can also be used for the second headset to transmit the PDU1-2 packet.
[0059] In some poor communication environments, if the mobile phone cannot receive the ACK or NAC signal from the second earphone, the mobile phone cannot select the transmission antenna corresponding to the second earphone. In order to ensure that the PDU1-2 packet can be transmitted to the second earphone normally, the mobile phone can transmit the PDU1-2 packet to the second earphone according to the transmission antenna (ANT0 antenna) corresponding to the first earphone, which helps to solve the problem of poor signal when the user's ears are unbalanced and the earphone cannot receive the audio signal, causing freezing.
[0060] If the communication environment deteriorates further, the mobile phone may not be able to receive the ACK or NAC signals from the first earphone and the second earphone. In this case, the mobile phone will retransmit the PDU0-1 packet and the PDU0-2 packet multiple times. If the ACK or NAC signal is still not received after the specified number of retransmissions, the mobile phone may not be able to select the transmission antenna for transmitting the PDU1-1 packet and the PDU1-2 packet. In this case, the mobile phone can select the antenna (ANT0 antenna) used to transmit the PDU0-1 packet and the PDU0-2 packet to transmit the PDU1-1 packet and the PDU1-2 packet, which helps to improve the success rate of the mobile phone in transmitting audio signals. The process of selecting the transmission antenna when the mobile phone transmits the remaining PDU packets is the same as described above, so it will not be repeated here.
[0061] Compared with the traditional antenna selection method, this solution targets the characteristics of dual-link and time-sharing transmission of the first and second earphones, and calculates the applicable antenna according to the ACK or NACK signal replied by each earphone, so that the most suitable antenna is used for the transmission of each PDU packet, which helps to improve the transmission success rate of each earphone and the overall transmission success rate, solves the problem of stuttering caused by the poor earphone not being able to receive data when the two ears are unbalanced, and optimizes the user's binaural listening experience.
[0062] Combination of the above Figures 1 to 4 , describes the method embodiment of the present application in detail, and the following is combined with Figures 5 to 7 , describes the device embodiment of the present application in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.
[0063] Figure 5 FIG. 1 is a schematic block diagram of an electronic device according to an embodiment of the present application. Figure 5 As shown, the electronic device 500 includes one or more transmission antennas 510 and a Bluetooth chip 520. The Bluetooth chip 520 is connected to the one or more transmission antennas 510, and the Bluetooth chip 520 is used to execute the above method.
[0064] Figure 6 FIG. 1 is a schematic block diagram of an electronic device according to another embodiment of the present application. Figure 6As shown, the electronic device 600 includes a first transmission module 610, which is used to transmit a first audio signal to a wireless headset, and the wireless headset includes a first headset and a second headset that match each other. A first receiving module 620 is used to receive a first feedback signal for the first audio signal sent by the first headset. A second receiving module 630 is used to receive a second feedback signal for the first audio signal sent by the second headset. A selection module 640 is used to select a transmission antenna according to the first feedback signal and the second feedback signal. A second transmission module 650 is used to transmit a second audio signal to the wireless headset using the transmission antenna.
[0065] Optionally, the selection module 640 is used to select a transmission antenna corresponding to the first earphone according to the first feedback signal, and select a transmission antenna corresponding to the second earphone according to the second feedback signal. The second transmission module 650 is used to transmit the second audio signal to the first earphone using the transmission antenna corresponding to the first earphone, and transmit the second audio signal to the second earphone using the transmission antenna corresponding to the second earphone.
[0066] Figure 7 Shown is a schematic block diagram of an electronic device according to yet another embodiment of the present application. Figure 7 The electronic device 700 shown may include: a memory 710, a processor 720, and an input / output interface 730. The memory 710, the processor 720, and the input / output interface 730 are connected via an internal connection path, the memory 710 is used to store instructions, and the processor 720 is used to execute the instructions stored in the memory 720 to control the input / output interface 730 to receive input data and information, output data such as operation results, and control the transceiver 740 to send signals.
[0067] It should be understood that in the embodiment of the present application, the processor 720 can adopt a general central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits to execute relevant programs to implement the technical solution provided in the embodiment of the present application.
[0068] The memory 710 may include a read-only memory and a random access memory, and provides instructions and data to the processor 720. A portion of the processor 720 may also include a nonvolatile random access memory. For example, the processor 720 may also store information on the device type.
[0069] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 720 or an instruction in the form of software. The method for requesting uplink transmission resources disclosed in the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 710, and the processor 720 reads the information in the memory 710 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0070] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be 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 also be any conventional processor, etc.
[0071] It should be understood that in the embodiment of the present application, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0072] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0073] 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.
[0074] 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.
[0075] 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.
[0076] 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.
[0077] 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 may 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 a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium 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. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0078] 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. An antenna selection method, characterized in that: The method is applied to an electronic device, the electronic device is communicatively connected with a wireless headset, and the method comprises: Transmitting a first audio signal to the wireless headset, wherein the wireless headset includes a first headset and a second headset that match each other; receiving a first feedback signal for the first audio signal sent by the first earphone; receiving a second feedback signal sent by the second earphone in response to the first audio signal; selecting a transmission antenna according to the first feedback signal and the second feedback signal; The transmission antenna is used to transmit a second audio signal to the wireless headset.
2. The method according to claim 1, characterized in that: The selecting a transmission antenna according to the first feedback signal and the second feedback signal includes: selecting a transmission antenna corresponding to the first earphone according to the first feedback signal; selecting a transmission antenna corresponding to the second earphone according to the second feedback signal; The transmitting the second audio signal to the wireless headset by using the transmission antenna comprises: Transmitting the second audio signal to the first earphone using a transmission antenna corresponding to the first earphone; The second audio signal is transmitted to the second earphone using a transmission antenna corresponding to the second earphone.
3. The method according to claim 1, characterized in that The transmitting the second audio signal to the wireless headset by using the transmission antenna comprises: If the first feedback signal is not received, the second audio signal is transmitted to the second earphone based on the transmission antenna corresponding to the first earphone.
4. The method according to claim 1, characterized in that The transmitting the second audio signal to the wireless headset by using the transmission antenna comprises: If the first feedback signal and the second feedback signal are not received, transmitting the second audio signal based on the target antenna; The target antenna is an antenna used to transmit the first audio signal.
5. The method according to any one of claims 1 to 4, characterized in that The first earphone is connected to the electronic device via a first communication link, and the second earphone is connected to the electronic device via a second communication link.
6. The method according to claim 5, characterized in that The first communication link and the second communication link are both communication links based on low-power Bluetooth.
7. An electronic device, characterized in that: include: one or more transmission antennas; A Bluetooth chip is connected to the one or more transmission antennas, and the Bluetooth chip is used to execute the method as described in any one of claims 1 to 6.
8. An electronic device, characterized in that: include: A first transmission module, configured to transmit a first audio signal to the wireless headset, wherein the wireless headset comprises a first headset and a second headset that match each other; A first receiving module, configured to receive a first feedback signal sent by the first earphone with respect to the first audio signal; A second receiving module, configured to receive a second feedback signal sent by the second earphone in response to the first audio signal; A selection module, configured to select a transmission antenna according to the first feedback signal and the second feedback signal; The second transmission module is used to transmit a second audio signal to the wireless headset using the transmission antenna.
9. The electronic device according to claim 8, characterized in that: The selection module is used to: select the transmission antenna corresponding to the first earphone according to the first feedback signal; select the transmission antenna corresponding to the second earphone according to the second feedback signal; The second transmission module is used to: transmit the second audio signal to the first earphone using the transmission antenna corresponding to the first earphone; and transmit the second audio signal to the second earphone using the transmission antenna corresponding to the second earphone.
10. A computer-readable medium storing a program code, wherein when the program code is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Wireless receiving device and wireless receiving method
CN102624409A
Systems and methods of antenna diversity switching
CN107258058A
Methods and devices for wireless communications in device-to-device networks
CN112335188A
Signal processing method and device, Bluetooth headset and storage medium
CN112703746A
Sound channel switching method and electronic equipment
CN113411446A