CN117651235A - Data transmission method and device of Bluetooth headset and electronic equipment - Google Patents

Data transmission method and device of Bluetooth headset and electronic equipment Download PDF

Info

Publication number
CN117651235A
CN117651235A CN202311427353.5A CN202311427353A CN117651235A CN 117651235 A CN117651235 A CN 117651235A CN 202311427353 A CN202311427353 A CN 202311427353A CN 117651235 A CN117651235 A CN 117651235A
Authority
CN
China
Prior art keywords
earphone
receiving
packet
data packet
transmitting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311427353.5A
Other languages
Chinese (zh)
Inventor
王泽卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202311427353.5A priority Critical patent/CN117651235A/en
Publication of CN117651235A publication Critical patent/CN117651235A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a data transmission method and device of a Bluetooth headset and electronic equipment. The method comprises the following steps: responding to the data packet sent by the electronic equipment to the main earphone of the Bluetooth earphone through the receiving and transmitting channel, and acquiring a feedback packet sent by the main earphone to the main earphone of the Bluetooth earphone and a response packet sent by the main earphone to the electronic equipment, wherein the feedback packet is received by the receiving and transmitting channel; the feedback packet characterizes the monitoring and receiving condition of the data packet from the earphone; the response packet characterizes the receiving condition of the Bluetooth earphone on the data packet; acquiring signal characteristic parameters of a receiving feedback packet and a response packet of a receiving and transmitting path; based on the signal characteristic parameters, determining a beam forming mode of a receiving and transmitting path for transmitting the next data packet to the main earphone; the beam forming mode comprises beam forming according to the direction of the main earphone or the direction of the auxiliary earphone. The method and the device realize the beam forming effect aiming at the ears, and can improve the transmission success rate of the binaural scene.

Description

Data transmission method and device of Bluetooth headset and electronic equipment
Technical Field
The present disclosure relates to the field of wireless communications technologies, and in particular, to a data transmission method and apparatus for a bluetooth headset, and an electronic device.
Background
With the maturation of TWS (True Wireless Stereo), portable TWS with cordless features has gained tremendous popularity. The scenes and environments of users using the TWS earphone are more and more, such as making a call, watching a video, starting a video conference, and the like, and the environments used include various environments such as outdoors, offices, airports, stations, and the like. In order to realize that two earphones of the TWS earphone can both receive data packets of the mobile phone and play the data packets at the same time and realize the function of a true wireless earphone, two schemes of forwarding and monitoring exist at present, however, the traditional monitoring scheme has the problem of influencing the transmission success rate of the binaural scene.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data transmission method, apparatus and electronic device for a bluetooth headset capable of improving the success rate of binaural scene transmission.
In a first aspect, the present application provides a data transmission method of a bluetooth headset, applied to an electronic device, where the method includes:
responding to the data packet sent by the electronic equipment to the main earphone of the Bluetooth earphone through the receiving and transmitting channel, and acquiring a feedback packet sent by the main earphone to the main earphone of the Bluetooth earphone and a response packet sent by the main earphone to the electronic equipment, wherein the feedback packet is received by the receiving and transmitting channel; the feedback packet characterizes the monitoring and receiving condition of the data packet from the earphone; the response packet characterizes the receiving condition of the Bluetooth earphone on the data packet;
Acquiring signal characteristic parameters of a receiving feedback packet and a response packet of a receiving and transmitting path;
based on the signal characteristic parameters, determining a beam forming mode of a receiving and transmitting path for transmitting the next data packet to the main earphone; the beam forming mode comprises beam forming according to the direction of the main earphone or the direction of the auxiliary earphone.
In one embodiment, obtaining a feedback packet sent from a headset to a master headset of a bluetooth headset received by a transceiver channel includes:
and in response to transmitting the data packet to the main earphone through the transmitting branch in the transmitting-receiving path, switching on the receiving branch of the antenna shared by the transmitting branch in the transmitting-receiving path so as to monitor and receive the feedback packet.
In one embodiment, the receiving branch of the transmitting branch shared with the antenna in the transmitting-receiving path is conducted, and the method comprises the following steps:
under the condition that the beam forming condition is met, a receiving branch is conducted; the beamforming condition includes that the received signal strength of the last feedback packet received by the receiving branch is smaller than a preset threshold.
In one embodiment, the method further comprises:
according to the response packet and the feedback packet, the current receiving condition of the data packet by the master earphone and the slave earphone is obtained;
based on the current receiving condition, acquiring the data type of the next data packet; the data type is a retransmitted data packet or a new data packet.
In one embodiment, the signal characteristic parameter includes a phase difference of receiving the feedback packet by the transceiver path and a phase difference of receiving the response packet by the transceiver path;
based on the signal characteristic parameters, determining a beam forming mode of the receiving and transmitting path for transmitting the next data packet to the main earphone, including:
according to the response packet and the feedback packet, the current receiving condition of the data packet by the master earphone and the slave earphone is obtained;
according to the current receiving condition, adopting a corresponding phase difference to determine the phase of a wave beam in a wave beam forming mode; the phase of the beam is used to indicate whether the beamformed beam is directed to the master earpiece or the slave earpiece.
In one embodiment, the signal characteristic parameter further includes a first received signal strength of the receiving and transmitting path for receiving the feedback packet, and a second received signal strength of the receiving and transmitting path for receiving the reply packet;
according to the current receiving condition, adopting the corresponding phase difference to determine the phase of the wave beam in the wave beam forming mode, comprising the following steps:
if the current receiving condition is that the slave earphone does not receive the data packet or the master earphone and the slave earphone both receive the data packet, determining the phase of the wave beam by adopting the phase difference corresponding to the smaller receiving signal intensity in the first receiving signal intensity and the second receiving signal intensity;
If the current receiving situation is that the slave earphone receives the data packet and the master earphone does not receive the data packet, determining the phase of the wave beam by adopting the phase difference corresponding to the second receiving signal intensity.
In a second aspect, the present application further provides a data transmission device of a bluetooth headset, applied to an electronic device, where the device includes:
the data receiving module is used for responding to the data packet sent by the electronic equipment to the main earphone of the Bluetooth earphone through the receiving and transmitting channel, and acquiring a feedback packet sent by the main earphone to the main earphone of the Bluetooth earphone and a response packet sent by the main earphone to the electronic equipment, wherein the feedback packet is received by the receiving and transmitting channel; the feedback packet characterizes the monitoring and receiving condition of the data packet from the earphone; the response packet characterizes the receiving condition of the Bluetooth earphone on the data packet;
the parameter acquisition module is used for acquiring signal characteristic parameters of the receiving feedback packet and the response packet received by the receiving and transmitting path;
the beam forming module is used for determining a beam forming mode of transmitting the next data packet to the main earphone by the receiving and transmitting path based on the signal characteristic parameters; the beam forming mode comprises beam forming according to the direction of the main earphone or the direction of the auxiliary earphone.
In a third aspect, the present application further provides an electronic device, including a transceiver path and a plurality of antennas, where the transceiver path is connected to the plurality of antennas;
The electronic device further comprises a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
In one embodiment, the electronic device further includes a switching component connected to the transceiver path, the switching component being connected to the plurality of antennas;
the receiving and transmitting path comprises a receiving branch and a transmitting branch of a common antenna, and the common antenna comprises at least two antennas; the transmitting branch and the receiving branch are connected with a switching component, and the switching component is used for switching to the conduction of the corresponding antenna and the transmitting branch or the conduction of the receiving branch according to signals sent by the electronic equipment.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method.
According to the data transmission method, the device and the electronic equipment of the Bluetooth headset, the electronic equipment receives the feedback packet sent from the headset to the main headset of the Bluetooth headset through the receiving and transmitting channel, further obtains the signal characteristic parameters of the receiving and transmitting channel for receiving the feedback packet and the response packet, and determines the beam forming mode of the receiving and transmitting channel for sending the next data packet to the main headset based on the signal characteristic parameters, wherein the beam forming mode comprises beam forming according to the direction of the main headset or the direction of the slave headset. According to the method and the device, the interaction mode between the electronic equipment and the Bluetooth headset ears is adjusted, the beam forming effect aiming at the ears is achieved, the main headset can be selected in real time or the beam forming is carried out on the slave headset, so that the equivalent power is improved, the transmission success rate of the binaural scene is improved, and the probability of audio jamming is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is a timing diagram of a conventional listening scheme;
fig. 2 is a diagram of binaural beamforming gain in a conventional scheme;
fig. 3 is an application environment diagram of a data transmission method of a bluetooth headset in an embodiment;
fig. 4 is a flowchart of a data transmission method of a bluetooth headset according to an embodiment;
FIG. 5 is a flowchart illustrating the steps for determining the data type of the next packet in one embodiment;
FIG. 6 is a flow chart of a beam shaping method in one embodiment;
FIG. 7 is a schematic flow diagram of a beam shaping method in one embodiment;
fig. 8 is a timing diagram of data transmission of a bluetooth headset according to an embodiment;
fig. 9 is a block diagram of a data transmission device of a bluetooth headset according to an embodiment;
FIG. 10 is an internal block diagram of an electronic device in one embodiment;
fig. 11 is a schematic structural diagram of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
It should be appreciated that terms such as "first," "second," and the like in this application are used merely to distinguish similar objects and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. The "connection" in the embodiments of the present application refers to various connection manners such as direct connection or indirect connection, so as to implement communication between devices, which is not limited in any way in the embodiments of the present application.
It is understood that "at least one" means one or more and "a plurality" means two or more.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," and/or the like, specify the presence of stated features, integers, steps, operations, elements, components, or groups thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof. Also, the term "and/or" as used in this specification includes any and all combinations of the associated listed items.
TWS adopts Bluetooth (BT) wireless communication technology, has natural disadvantages compared with a corded earphone, such as that the quality of a transmission signal is greatly influenced by the transmission distance, and the TWS is easily interfered by other surrounding electromagnetic wave signals. In particular, the bluetooth signal uses the unlicensed ISM (Industrial Scientific Medical, industrial, scientific and medical) 2.4G band, in which many devices also operate, such as microwave ovens, cordless phones, infrared, wireless cameras, etc., and thus the bluetooth signal is easily interfered by surrounding signals.
In order to realize that two earphones (a master earphone and a slave earphone) of the TWS earphone can both receive data packets of the mobile phone and play the data packets at the same time, a function of a true wireless earphone is realized, and two schemes of forwarding and monitoring exist at present. Currently, mainly, a monitoring scheme is taken as an electronic device as a mobile phone, and as shown in fig. 1, a slave earphone is connected and interacted with a master earphone, and meanwhile, a data packet (packet) sent to the master earphone by the mobile phone is monitored. When the slave earphone successfully monitors the data packet, the slave earphone can send a confirmation packet to the master earphone between the end time of the data packet received by the master earphone and the beginning time of the reply mobile phone. The main earphone replies to the mobile phone according to the package receiving conditions of the main earphone and the auxiliary earphone. When the master earphone and the slave earphone both successfully receive the data packet sent by the mobile phone, the master earphone replies an ACK packet to the mobile phone, and the mobile phone does not need to retransmit. When any party between the master earphone and the slave earphone does not successfully receive the data packet, the master earphone replies a NAK packet to the mobile phone, and the mobile phone retransmits the data packet to the earphone after receiving the NAK until receiving the ACK packet from the earphone.
As shown in fig. 1, the master and slave headphones receive successfully when receiving the 0 th packet (packet), and thus do not need to retransmit. When receiving the 1 st data packet, the slave earphone fails to receive and causes the master earphone to reply NAK to the mobile phone, the mobile phone retransmits for 1 time, then the master earphone fails to receive and causes the master earphone to reply NAK to the mobile phone, the mobile phone retransmits for the 2 nd time, the last time the master earphone and the slave earphone are successfully received, the master earphone replies ACK to the mobile phone, and the mobile phone does not retransmit any more. The master and slave earphone receives the 2 nd data packet successfully, so that retransmission is not needed. The packet interval in fig. 1 refers to packet interval.
As can be seen from the above conventional listening scheme, the mobile phone only maintains a connection with the master earphone, so that only the data packet replied by the master earphone is received, and the data packet received from the earphone is not received.
At present, a Beamforming (Beamforming) scheme at a mobile phone end receives the same NULL packet replied by a main earphone according to two antennas ANT0/ANT1 at the mobile phone end respectively, and obtains a phase difference reaching the two antennas ANT0/ANT1, so as to compensate the phase difference to the phase of an ANT0/ANT1 transmitting packet when the next packet (packet) is transmitted, thereby realizing a Beamforming power gain effect at the position of the main earphone. Because of the difference between the positions of the master earphone and the slave earphone, the phase difference between the two antennas ANT0/ANT1 at the opposite mobile phone ends of the master earphone and the slave earphone is different, and the existing beam forming scheme can only perform beam forming on the master earphone to realize power gain, and has no benefit or even worse beam forming effect on the slave earphone.
As can be seen from fig. 2, as the imbalance of the mobile phone end ANT0/ANT1 (two-way) reaches the main earphone and decreases from 8dB to 0dB, the RSSI (Received Signal Strength Indication ) received by the main earphone decreases and increases. Positive gain of-1 dB is achieved when the ATN0/ANT1 imbalance is 0-3 dB, relatively no gain is achieved when 3-6 dB, and negative gain is achieved when 6-8 dB. However, when the imbalance of ANT0/ANT1 is gradually reduced, the RSSI received from the earphone is reduced and then increased, but negative benefits exist all the time, and negative benefits of-2 dB exist when serious. It should be noted that, in fig. 2, the two-way antenna may refer to a two-way chain, and the mobile phone has two bluetooth antennas, where each antenna corresponds to one hardware path, and one hardware path is called a chain. Note that iBF in fig. 2 is collectively Implicit Beamforming, and implicit beamforming is referred to.
The data transmission method of the Bluetooth headset provided by the embodiment of the application can be applied to an application environment shown in fig. 3. The slave earphone 106 of the bluetooth earphone is connected to and interacts with the master earphone 104 of the bluetooth earphone, and listens for a data packet sent by the electronic device 102 to the master earphone 104. When the slave earphone 106 successfully listens to the data packet, the slave earphone 106 sends a feedback packet to the master earphone 104 between the end time when the master earphone 104 receives the data packet and the beginning time when the reply electronic device 102 starts. The master earphone 104 replies a response packet to the electronic device 102 according to the packet receiving conditions of the two earphone of the master earphone and the slave earphone.
Further, the electronic device 102 may include a transceiver path and a plurality of antennas (antennas 1 to N), where the transceiver path is connected to the plurality of antennas, and beamforming for the bluetooth headset may be implemented using the plurality of antennas, so as to improve communication quality. Illustratively, the number of antennas is two (e.g., ANT0/ANT 1), and the electronic device uses two antennas to implement beamforming for the bluetooth headset, which can match the cost and the overall scheme.
The electronic device 102 may also include a processor coupled to the transceiver path; after the electronic device 102 sends the data packet to the main earphone 104 through the transmission path (e.g., the transmission branch in the transceiver path), the receiving path (e.g., the receiving branch in the transceiver path) may be opened immediately to monitor the feedback packet (i.e., the ACK/NAK acknowledgement packet) sent from the earphone 106 to the main earphone 104, so as to obtain the phase difference from the earphone 106 to the multiple antennas, so that the slave earphone 106 may be subjected to beamforming later, thereby improving the success rate of binaural scene transmission and reducing the probability of audio jamming.
Illustratively, the electronic device 102 may be a terminal, which may be, but is not limited to, various personal computers, notebook computers, smartphones, tablet computers, internet of things devices, and portable wearable devices, which may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like.
Optionally, the electronic device 102 may be used as a sound source device, and the data packet may refer to audio data sent by the sound source device, where the sound source device may be an intelligent device with a bluetooth communication function, such as a smart phone, a tablet computer, and so on. Further, the bluetooth headset may refer to a TWS headset. When the TWS earphone is used, one earphone is defined as a main earphone, and is generally used for directly establishing a connection with the sound source equipment, so as to communicate with the sound source equipment through the connection, receive audio data sent by the sound source equipment, and feed back whether the audio data is received correctly. The slave earphone is another earphone, and is not directly connected with the audio source device, so that whether the slave earphone receives the audio data correctly or not needs to be fed back through the master earphone.
In an exemplary embodiment, as shown in fig. 4, a data transmission method of a bluetooth headset is provided, and the method is applied to the electronic device in fig. 1 for illustration, and includes the following steps 202 to 206. Wherein:
Step 202, responding to a data packet sent by the electronic device to a main earphone of the Bluetooth earphone through a receiving and transmitting channel, and acquiring a feedback packet sent by the main earphone to the Bluetooth earphone and a response packet sent by the main earphone to the electronic device, wherein the feedback packet is received by the receiving and transmitting channel and sent by the main earphone to the main earphone; the feedback packet characterizes the monitoring and receiving condition of the data packet from the earphone; the response packet characterizes the receiving condition of the Bluetooth headset on the data packet.
Specifically, after the electronic device sends the data packet to the main earphone through the receiving and transmitting path, the feedback packet sent to the main earphone from the auxiliary earphone and received by the receiving and transmitting path can be obtained to confirm whether the auxiliary earphone successfully monitors the data packet sent to the main earphone by the electronic device and confirm the position information of the auxiliary earphone, so that the power gain effect of beam forming can be realized at the position of the auxiliary earphone subsequently, and the transmission success rate of the binaural scene is improved.
Further, the feedback packet may represent a case of listening to the data packet by the slave earphone, for example, the slave earphone may actively listen to the data packet sent by the electronic device to the master earphone, so as to obtain the transmitted data packet, and if the data packet is obtained, transmit the feedback packet carrying a positive acknowledgement message (ACK) to indicate that the data packet is correctly received by the slave earphone, and if the data packet is not obtained, transmit the feedback packet carrying a negative acknowledgement message (NAK) to indicate that the data packet is not correctly received by the slave earphone.
The electronic device may further obtain a response packet sent to the electronic device by the master earphone and received by the transceiver path after sending the data packet to the master earphone by the transceiver path, so as to confirm whether the bluetooth earphone successfully receives the data packet, and confirm the position information of the master earphone, so that the power gain effect of beamforming can be achieved at the position of the master earphone.
Further, the reply packet may represent the reception of the data packet by the bluetooth headset, and the slave headset transmits a feedback packet to the master headset regarding whether the data packet is successfully monitored. After receiving the feedback packet sent by the slave earphone, the master earphone synthesizes the receiving condition of the master earphone to the data packet and sends a response packet (a message carrying an acknowledgement message ACK or a message carrying a negative acknowledgement message NAK) to the terminal equipment. If the electronic equipment receives the ACK message, the electronic equipment indicates that the master earphone and the slave earphone both successfully receive the audio data. If the electronic equipment receives the NAK message, the NAK message indicates that at least one of the master earphone and the slave earphone does not receive the audio data.
In an exemplary embodiment, obtaining a feedback packet sent from a headset to a master headset of a bluetooth headset received by a transceiver channel includes:
And in response to transmitting the data packet to the main earphone through the transmitting branch in the transmitting-receiving path, switching on the receiving branch of the antenna shared by the transmitting branch in the transmitting-receiving path so as to monitor and receive the feedback packet.
Specifically, the embodiment of the application realizes the beam forming effect of the electronic equipment aiming at the double ears by adjusting the interaction mode between the electronic equipment and the double ears. After the electronic device sends the data packet to the main earphone through the transmitting branch in the receiving and transmitting path, the electronic device can immediately turn on the receiving branch sharing the antenna with the transmitting branch in the receiving and transmitting path, and monitor the feedback packet (ACK/NAK acknowledgement packet) sent from the earphone to the main earphone.
The receiving branch and the transmitting branch share an antenna, and further, beam forming can be performed according to signal characteristic parameters (for example, phase difference) of the same feedback packet received by the shared antenna, so as to achieve a beam forming effect on the slave earphone. For example, the number of the common antennas may be at least two, taking the common antennas as ANT0 and ANT1 as an example, on the one hand, the electronic device may determine whether the slave earphone successfully monitors the data packet sent by the electronic device to the master earphone; on the other hand, the electronic device ANT0/ANT1 simultaneously opens and listens to the ACK/NAK packet of the slave earphone, and the phase difference between two paths of antennas from the earphone to the ANT0/ANT1 can be obtained, so that the slave earphone can be subjected to beam forming later.
In an exemplary embodiment, turning on a receiving branch of a transmit-receive path that shares an antenna with a transmitting branch includes:
under the condition that the beam forming condition is met, a receiving branch is conducted; the beamforming condition includes that the received signal strength of the last feedback packet received by the receiving branch is smaller than a preset threshold.
In particular, whether the electronic device turns on the receiving branch depends on whether a beamforming condition is fulfilled, for example, whether a preset threshold of beamforming on is reached, which may be referred to as an RSSI threshold, for example.
Optionally, the beamforming condition includes that the received signal strength of the last feedback packet received by the receiving branch is smaller than a preset threshold. The received signal strength may refer to the RSSI of the receiving branch to receive the last feedback packet. If the RSSI of the last feedback packet is received < a preset threshold value, the beamforming starting condition is met. In this embodiment, the beamforming algorithm needs to perform beamforming according to the phase difference of the same feedback packet received by the common antenna (for example, two antennas), so that under the condition of beamforming, the two antennas open the receiving branches simultaneously to receive the same feedback packet. Above, the electronic device receives the feedback packet from the earphone through the common antenna of the receiving branch and the transmitting branch, so as to obtain the phase difference from the same feedback packet of the earphone to the common antenna, so that the slave earphone can be subjected to beam forming later.
Step 204, obtaining signal characteristic parameters of the receiving feedback packet and the response packet of the receiving and transmitting path.
Specifically, after the electronic device obtains the feedback packet and the response packet through the transceiver path, signal characteristic parameters of the transceiver path for receiving the feedback packet and the response packet can be obtained, so as to respectively confirm the position information of the master earphone and the slave earphone. The signal characteristic parameters may include phase difference, received signal strength, amplitude, and the like, which are not limited in the embodiment of the present application.
In the embodiment of the application, the electronic device may extract the phase and the received signal strength of the received signal (the feedback packet and the response packet received by the transceiver path); illustratively, the signal characteristic parameter may be obtained by a phase detection function of the transmit-receive path; alternatively, the phase detection function may be implemented using a Transceiver (transmitter) that may be responsible for processing signals, such as phase detection, etc.
Step 206, determining a beam forming mode of transmitting the next data packet to the main earphone by the receiving and transmitting path based on the signal characteristic parameters; the beam forming mode comprises beam forming according to the direction of the main earphone or the direction of the auxiliary earphone.
Specifically, when the signal characteristic parameter is obtained, the electronic device may determine the direction in which the main earphone is located or the direction in which the slave earphone is located according to the signal characteristic parameter, so as to obtain a beam forming mode in which the transceiver path sends the next data packet to the main earphone, where the beam forming mode includes performing beam forming according to the direction in which the main earphone is located or the direction in which the slave earphone is located.
According to the data transmission method of the Bluetooth headset, the beam forming effect of the electronic device for the ears is achieved by adjusting the interaction mode between the electronic device and the ears, and the main headset or the slave headset can be selected to be beam formed in real time to improve the equivalent power, so that the problem that the traditional scheme only beam-forms the main headset and has negative benefits to the slave headset is solved, the success rate of the binaural scene transmission is improved, and the probability of audio jamming is reduced.
The next data packet refers to a data packet transmitted by the electronic device next time, and the next data packet may be a retransmission data packet or a new data packet. In an exemplary embodiment, as shown in fig. 5, the method may further include steps 302 to 304. Wherein:
step 302, according to the response packet and the feedback packet, obtaining the current receiving condition of the data packet by the master earphone and the slave earphone;
specifically, the electronic device may confirm the current receiving conditions of the master earphone and the slave earphone on the data packet according to the response packet and the feedback packet. For example, when the electronic device monitors a feedback packet with acknowledgement information ACK returned from the headset and the subsequent time slot receives an acknowledgement packet with acknowledgement information ACK returned from the master headset, it indicates that the master headset successfully receives the data packet sent by the electronic device.
For another example, when the electronic device monitors the feedback packet with the negative acknowledgement information NAK returned from the headset, and the subsequent time slot must also receive the acknowledgement packet with the negative acknowledgement information NAK returned by the master headset, it indicates that the slave headset must not monitor the data packet sent by the successful electronic device, but cannot determine whether the master headset receives the data packet successfully; for another example, when the electronic device monitors the feedback packet with the acknowledgement information ACK replied from the headset and the subsequent time slot receives the acknowledgement packet with the negative acknowledgement information NAK packet replied by the master headset, it indicates that the slave headset monitors the data packet sent by the successful handset, but the master headset does not receive the data packet successfully.
Step 304, based on the current receiving situation, obtaining the data type of the next data packet; the data type is a retransmitted data packet or a new data packet.
Specifically, the electronic device may determine the data type of the next data packet according to the current receiving conditions of the master earphone and the slave earphone on the data packet, for example, the current receiving condition indicates that the master earphone and the slave earphone both successfully receive the data packet sent by the electronic device, so that retransmission is not required, and the data packet transmitted next is a new data packet (abbreviated as a new packet). For another example, when the current receiving situation indicates that it can be determined which earphone of the master earphone and the slave earphone does not receive the data packet, the data packet transmitted next time retransmits the data packet (i.e. retransmits the data packet which is not received correctly); for another example, when the current receiving situation indicates that it cannot be determined which earphone of the master earphone and the slave earphone receives the failed data packet, the data packet transmitted next time retransmits the data packet.
In an exemplary embodiment, the signal characteristic parameter includes a phase difference of receiving the feedback packet by the transceiving path and a phase difference of receiving the reply packet by the transceiving path; as shown in fig. 6, step 206 includes steps 402 through 404. Wherein:
and step 402, obtaining the current receiving condition of the data packet by the master earphone and the slave earphone according to the response packet and the feedback packet.
In particular, the phase difference of the receiving and transmitting path receiving the feedback packet may represent the phase difference corresponding to the phase difference from the earphone, i.e., the phase difference of the signal (feedback packet) reaching the antenna of the electronic device. The phase difference of the receiving and transmitting path receiving the reply packet may represent the phase difference of the corresponding master earphone, i.e., the phase difference of the signal (reply packet) reaching the antenna of the electronic device.
Illustratively, taking common antennas of the transmit and receive paths as ANT0 and ANT1 as an example, the phase difference may refer to a phase difference of signals (ACK message or NAK message) reaching the antennas (ANT 0/ANT 1). The two antennas can obtain phase_ant0 and phase_ant1 of the respective antennas respectively, and then the phase_diff=phase_ant0-phase_ant1 can be obtained by taking the difference value of the two phase differences.
Further, the electronic device may determine, according to the response packet and the feedback packet, a current reception situation of the data packet by the master earphone and the slave earphone, and further determine a target earphone (the master earphone or the slave earphone) for which beam forming is performed. The current receiving situation may include that both the master and slave earphones successfully receive the data packet sent by the electronic device, that one earphone in the master and slave earphones confirms that the other earphone does not receive the data packet, that the other earphone in the master and slave earphones cannot confirm that the other earphone fails to receive the data packet, and the like.
Step 404, determining the phase of the beam in the beam forming mode by adopting a corresponding phase difference according to the current receiving condition; the phase of the beam is used to indicate whether the beamformed beam is directed to the master earpiece or the slave earpiece.
Specifically, the electronic device may determine the phase of the beam in the beam forming manner by using a corresponding phase difference according to the current receiving situation, for example, correct the phase of the transmitted next data packet on the common antenna by using the phase difference corresponding to the master earphone or the phase difference corresponding to the slave earphone, thereby realizing the beam forming effect for the master earphone or the slave earphone. For example, in a binaural scene of a listening TWS headset, when receiving a data packet from the headset fails, the electronic device can implement a beamforming effect on the slave headset, and the slave headset increases the success rate of binaural retransmission.
According to the data transmission method of the Bluetooth headset, the beam forming effect of the electronic device for the two ears is achieved by adjusting the interaction mode between the electronic device and the two ears, and the embodiment of the application can select one headset to perform beam forming in real time according to the current receiving condition of the data packet by the main headset and the slave headset so as to improve the equivalent power, so that the transmission success rate of a binaural scene is greatly improved.
In one embodiment, the signal characteristic parameter further includes a first received signal strength of the receiving and transmitting path for receiving the feedback packet, and a second received signal strength of the receiving and transmitting path for receiving the reply packet; as shown in fig. 7, step 404 includes steps 502 through 504. Wherein:
step 502, if the current receiving situation is that the slave earphone does not receive the data packet, or the master earphone and the slave earphone both receive the data packet, determining the phase of the beam by adopting the phase difference corresponding to the smaller receiving signal strength of the first receiving signal strength and the second receiving signal strength;
specifically, the first received signal strength may refer to a received signal strength indication RSSI of the feedback packet received by the transceiver channel, and the phase difference corresponding to the first received signal strength is a phase difference of the receiving feedback packet received by the transceiver channel. The second received signal strength may refer to a received signal strength indication RSSI of the receiving and transmitting path receiving the response packet, and the phase difference corresponding to the second received signal strength is a phase difference of the main earphone, that is, a phase difference of the receiving and transmitting path receiving the response packet.
In the current receiving situation, that is, in the case that the slave earphone does not receive the data packet, that is, the feedback packet carries the negative acknowledgement information NAK (at this time, the acknowledgement packet necessarily carries the negative acknowledgement information NAK, but cannot determine whether the master earphone receives the data packet or not), the data type of the next data packet is the retransmission data packet (may simply be called as the retransmission packet), at this time, the electronic device may determine the phase difference corresponding to the smaller received signal strength in the first received signal strength and the second received signal strength, that is, the electronic device selects an earphone with the worst signal strength for beamforming to perform beamforming on the transmission of the retransmission packet, so as to improve the success rate of binaural scene transmission.
Under the condition that the current receiving situation is that the master earphone and the slave earphone both receive the data packet, the data type of the next data packet is a new data packet (which can be simply called a new packet), at this time, the electronic device selects an earphone with the worst signal strength for beamforming to improve the equivalent power for transmission of the binaural scene, so as to improve the success rate of transmission of the binaural scene.
The transmission process of the subsequent retransmission packet or the new packet is consistent with the steps, when the master earphone and the slave earphone both successfully receive the data packet, the next new packet transmission selects one earphone with the worst signal strength for beamforming. When it cannot be determined which earphone the master earphone receives the failed data packet, the next retransmission packet transmission also selects an earphone with the worst signal strength for beamforming.
According to the method and the device, the earphone with the worst received signal strength can be selected to be used for beamforming in real time to improve the equivalent power, the problem that the traditional scheme only uses the main earphone to perform beamforming and has negative benefits to the slave earphone is solved, the success rate of binaural scene transmission is improved, and the probability of audio jamming is reduced.
In step 504, if the current receiving situation is that the slave earphone receives the data packet and the master earphone does not receive the data packet, the phase difference corresponding to the second received signal strength is used to determine the phase of the beam.
Specifically, in the case that the current receiving situation is that the slave earphone receives the data packet and the master earphone does not receive the data packet, that is, the feedback packet carries acknowledgement information ACK and the acknowledgement packet carries negative acknowledgement information NAK, the electronic device can determine which earphone the master earphone does not receive the data packet, determine the data type of the next data packet is the retransmission data packet (may simply be called retransmission packet), and the electronic device performs beamforming for the earphone that fails to receive the data packet currently for the retransmission packet transmission, and further determines the phase of the beam by adopting the phase difference (phase difference of the master earphone) corresponding to the second received signal strength. The subsequent retransmission packet or new packet transmission process is consistent with the above steps.
According to the method and the device for adjusting the interaction mode between the electronic equipment and the two ears, the beam forming effect of the electronic equipment aiming at the two ears is achieved, the worst earphone can be selected in real time to perform beam forming, and the equivalent power is improved, so that the transmission success rate of the two ears is greatly improved, and for example, the success rate of the two ears retransmission is improved.
In order to further explain the scheme of the present application, a specific example is described below, as shown in fig. 8, in which an electronic device is a mobile phone, and a common antenna of a transmitting branch and a receiving branch in a receiving and transmitting path is a mobile phone end ANT0/ANT1, the present application adjusts an interaction flow in a conventional monitoring scheme, as shown in a process of sending a data packet (packet 0) in fig. 8, after the mobile phone sends the packet0 to a main earphone, the mobile phone opens the receiving path (i.e. the receiving branch in the receiving and transmitting path) to monitor an ACK/NAK acknowledgement packet sent from the earphone to the main earphone, and by monitoring the ACK/NAK acknowledgement packet, on one hand, the mobile phone end can clearly see whether the data packet sent from the earphone to the main earphone is successfully monitored by the mobile phone; on the other hand, the mobile phone end ANT0/ANT1 simultaneously opens and listens to the ACK/NAK packet of the slave earphone, and the phase difference between the two paths of antennas from the earphone to the ANT0/ANT1 can be obtained, so that the slave earphone can be subjected to beam forming later.
When the mobile phone monitors the ACK packet replied by the slave earphone and the subsequent time slot receives the ACK packet replied by the master earphone, the master earphone and the slave earphone are indicated to successfully receive the data packet sent by the mobile phone, so that retransmission is not needed, and at the moment, the mobile phone terminal can obtain the signal strength RSSI_secondary and the Phase difference_diff_secondary of the slave earphone to the mobile phone ANT0/ANT1 and the signal strength RSSI_primary and the Phase difference_diff_primary of the master earphone to the mobile phone ANT0/ANT1 respectively by monitoring the ACK/NAK acknowledgement packet replied by the slave earphone and receiving the ACK/NAK acknowledgement packet replied by the master earphone. As in the packet0 example in fig. 8, two RSSI are denoted as rssi_second_packet 0 and rssi_primary_packet0, respectively, and the Phase difference may be denoted as phase_diff_second_packet 0 and phase_diff_primary_packet0, respectively. When a new packet is transmitted next time, the mobile phone end selects one earphone with smaller RSSI to perform beamforming by judging the RSSI_secondary_packet0 and the RSSI_primary_packet0, as follows:
when rssi_second_packet 0< rssi_primary_packet0, the mobile phone end corrects the Phase of the new packet1 sent at ANT0/ANT1 by using the Phase difference phase_diff_second_packet 0, thereby realizing the beamforming effect for the slave earphone.
When rssi_primary_packet0< rssi_secondary_packet0, the mobile phone end corrects the Phase of the new packet1 at ANT0/ANT1 by using the Phase difference phase_diff_primary_packet0, thereby realizing the beam forming effect for the main earphone.
When the mobile phone monitors the NAK packet replied from the headset and the subsequent time slot inevitably receives the NAK packet replied from the master headset, it indicates that the slave headset does not monitor the data packet sent by the successful mobile phone, but cannot determine whether the master headset receives the data packet successfully, at this time, the mobile phone end records and stores the monitored signal strength rssi_secondary of the slave headset NAK packet and the signal strength rssi_primary of the received master headset NAK packet, and simultaneously records and stores the latest Phase difference_diff_secondary and Phase difference_primary, as in the first transmission process example of packet1 in fig. 8, the two signal strengths RSSI are respectively denoted as rssi_secondary_packet1 and rssi_primary_packet1, and the Phase difference_diff is respectively denoted as phase_diff_secondary_packet1 and phase_diff_primary_packet1. Then, the mobile phone retransmits the packet1 data packet, and at this time, the mobile phone end selects an earphone with smaller RSSI to perform beam forming by judging RSSI_secondary_packet1 and RSSI_primary_packet1, as follows:
When rssi_second_packet 1< rssi_primary_packet1, the mobile phone end corrects the Phase of the transmitted retransmission packet (Retry 1-1) at ANT0/ANT1 by using the Phase difference phase_diff_second_packet 1, thereby realizing the beamforming effect for the slave earphone.
When rssi_primary_packet1< rssi_secondary_packet1, the mobile phone end corrects the Phase of the transmitted retransmission packet (Retry 1-1) at ANT0/ANT1 by using the Phase difference phase_diff_primary_packet1, thereby realizing the beam forming effect for the main earphone.
When the mobile phone monitors the ACK packet replied from the headset and the subsequent time slot receives the NAK packet replied from the master headset, it indicates that the slave headset monitors the data packet sent by the successful mobile phone, but the master headset does not receive the data packet successfully, at this time, the mobile phone end records and stores the monitored signal strength rssi_secondary of the slave headset NAK packet and the received signal strength rssi_primary of the master headset NAK packet, and simultaneously records and stores the latest Phase difference_diff_secondary and Phase difference_primary, as in the first transmission process example of retransmission of packet1 in fig. 8, the signal strength RSSI of two times is denoted as rssi_secondary_packet_1_retr1 and rssi_primary_packet1, and the Phase difference_diff is denoted as phase_diff_secondary_packet_retr1 and phase_diff_packet_primary_retr1, respectively. Then the mobile phone retransmits the packet1 data packet, at this time, the mobile phone end does not need to compare the RSSI_secondary_packet1_retry1 with the RSSI_primary_packet1_retry1, but directly uses phase_diff_primary_packet1_retry1 to carry out beam forming on the main earphone, and the application can ensure that the retransmission has the best beam forming effect on the main earphone due to successful receiving of the secondary earphone.
The transmission process of the subsequent retransmission packet or the new packet is consistent with the steps, when the master and slave ears successfully receive the data packet, the next new packet transmission selects an earphone with the worst signal strength for beamforming; when determining which earphone the master and slave ears do not receive the data packet, selecting the earphone which fails to receive currently for beamforming by the next retransmission packet transmission; when it cannot be determined which earphone receives the failed data packet, the next retransmission packet transmission also selects an earphone with the worst signal strength for beamforming.
According to the method and the device for adjusting the interaction mode between the mobile phone and the two ears, the beam forming effect of the mobile phone end for the two ears is achieved, the worst earphone can be selected in real time to perform beam forming, the equivalent power is improved, and therefore the transmission success rate of the two ears is greatly improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a data transmission device of the Bluetooth headset for realizing the data transmission method of the Bluetooth headset. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the data transmission device of one or more bluetooth headsets provided below may refer to the limitation of the data transmission method of the bluetooth headset hereinabove, and will not be repeated herein.
In an exemplary embodiment, as shown in fig. 9, there is provided a data transmission apparatus 900 of a bluetooth headset, which is applied to an electronic device, and includes:
the data receiving module 901 is configured to obtain, in response to the electronic device sending a data packet to a main earphone of the bluetooth earphone through the transceiving path, a feedback packet sent from the earphone to the main earphone of the bluetooth earphone and received by the transceiving path, and a response packet sent from the main earphone to the electronic device; the feedback packet characterizes the monitoring and receiving condition of the data packet from the earphone; the response packet characterizes the receiving condition of the Bluetooth earphone on the data packet;
a parameter obtaining module 902, configured to obtain a signal characteristic parameter of a receiving feedback packet and a response packet of the transceiver channel;
The beamforming module 903 is configured to determine, based on the signal characteristic parameter, a beamforming manner in which the transceiver path sends a next data packet to the main earphone; the beam forming mode comprises beam forming according to the direction of the main earphone or the direction of the auxiliary earphone.
In one embodiment, the data receiving module 901 is configured to, in response to sending a data packet to the main earphone through a transmitting branch in the transceiver path, turn on a receiving branch of the transceiver path that shares an antenna with the transmitting branch, so as to monitor and receive a feedback packet.
In one embodiment, the data receiving module 901 is configured to conduct a receiving branch when a beamforming condition is satisfied; the beamforming condition includes that the received signal strength of the last feedback packet received by the receiving branch is smaller than a preset threshold.
In one embodiment, the apparatus 900 may further include:
the receiving condition confirmation module is used for obtaining the current receiving condition of the data packet by the master earphone and the slave earphone according to the response packet and the feedback packet;
the data type acquisition module is used for acquiring the data type of the next data packet based on the current receiving condition; the data type is a retransmitted data packet or a new data packet.
In one embodiment, the signal characteristic parameter includes a phase difference of receiving the feedback packet by the transceiver path and a phase difference of receiving the response packet by the transceiver path; the beamforming module 903 comprises:
the receiving condition confirmation module is used for obtaining the current receiving condition of the data packet by the master earphone and the slave earphone according to the response packet and the feedback packet;
the phase acquisition module is used for determining the phase of the wave beam in the wave beam forming mode by adopting a corresponding phase difference according to the current receiving condition; the phase of the beam is used to indicate whether the beamformed beam is directed to the master earpiece or the slave earpiece.
In one embodiment, the signal characteristic parameter further includes a first received signal strength of the receiving and transmitting path for receiving the feedback packet, and a second received signal strength of the receiving and transmitting path for receiving the reply packet;
the phase acquisition module is used for determining the phase of the wave beam by adopting the phase difference corresponding to the smaller received signal intensity in the first received signal intensity and the second received signal intensity if the current receiving condition is that the slave earphone does not receive the data packet or the master earphone and the slave earphone both receive the data packet; and if the current receiving condition is that the slave earphone receives the data packet and the master earphone does not receive the data packet, determining the phase of the wave beam by adopting the phase difference corresponding to the second receiving signal intensity.
The modules in the data transmission device of the bluetooth headset can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In an exemplary embodiment, an electronic device, which may be a terminal, is provided, and an internal structure thereof may be as shown in fig. 10. The electronic device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the electronic device is used to exchange information between the processor and the external device. The communication interface of the electronic device is used for conducting wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data transmission method of a bluetooth headset. The display unit of the electronic device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the electronic equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 10 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the electronic device to which the present application is applied, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one exemplary embodiment, an electronic device is provided that includes a transceiver path and a plurality of antennas, the transceiver path being coupled to the plurality of antennas;
the electronic device further comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the data transmission method of the Bluetooth headset when executing the computer program.
In one embodiment, as shown in fig. 11, the electronic device further includes a switching component connected to the transceiver path, where the switching component is connected to the plurality of antennas;
the receiving and transmitting path comprises a receiving branch and a transmitting branch of a common antenna, and the common antenna comprises at least two antennas; the transmitting branch and the receiving branch are connected with a switching component, and the switching component is used for switching to the conduction of the corresponding antenna and the transmitting branch or the conduction of the receiving branch according to signals sent by the electronic equipment.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the data transmission method of a bluetooth headset described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the data transmission method of a bluetooth headset described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A data transmission method of a bluetooth headset, applied to an electronic device, the method comprising:
responding to the electronic equipment to send a data packet to a main earphone of a Bluetooth earphone through a receiving and transmitting channel, and acquiring a feedback packet sent from the main earphone to the auxiliary earphone of the Bluetooth earphone and a response packet sent from the main earphone to the electronic equipment, wherein the feedback packet is received by the receiving and transmitting channel; the feedback packet characterizes the monitoring receiving condition of the slave earphone on the data packet; the response packet characterizes the receiving condition of the Bluetooth headset on the data packet;
Acquiring signal characteristic parameters of the receiving and transmitting path for receiving the feedback packet and the response packet;
based on the signal characteristic parameters, determining a beam forming mode of the receiving and transmitting path for transmitting the next data packet to the main earphone; the beam forming mode comprises beam forming according to the direction of the master earphone or the direction of the slave earphone.
2. The method according to claim 1, wherein the obtaining the feedback packet sent from the slave headset to the master headset of the bluetooth headset received by the transceiver path includes:
and responding to the data packet sent to the main earphone through a transmitting branch in the receiving and transmitting path, and switching on a receiving branch of the receiving and transmitting path, which shares an antenna with the transmitting branch, so as to monitor and receive the feedback packet.
3. The method of claim 2, wherein said switching on a receiving branch of the transmit path that shares an antenna with the transmitting branch comprises:
under the condition that the beam forming condition is met, the receiving branch is conducted; the beamforming condition includes that the received signal strength of the last feedback packet received by the receiving branch is smaller than a preset threshold.
4. A method according to any one of claims 1 to 3, further comprising:
obtaining the current receiving condition of the data packet by the master earphone and the slave earphone according to the response packet and the feedback packet;
acquiring the data type of the next data packet based on the current receiving condition; the data type is a retransmitted data packet or a new data packet.
5. A method according to any one of claims 1 to 3, wherein the signal characteristic parameter comprises a phase difference with which the feedback packet is received by the transceiving path, and a phase difference with which the acknowledgement packet is received by the transceiving path;
the determining, based on the signal characteristic parameter, a beam forming manner of the transceiver path for transmitting the next data packet to the main earphone includes:
obtaining the current receiving condition of the data packet by the master earphone and the slave earphone according to the response packet and the feedback packet;
according to the current receiving condition, adopting a corresponding phase difference to determine the phase of a wave beam in the wave beam forming mode; the phase of the beam is used for indicating the beam after beam forming to point to the master earphone or the slave earphone.
6. The method of claim 5, wherein the signal characteristic parameter further comprises a first received signal strength of the feedback packet received by the transceiver path and a second received signal strength of the reply packet received by the transceiver path;
the step of determining the phase of the beam in the beam forming mode by adopting a corresponding phase difference according to the current receiving condition comprises the following steps:
if the current receiving situation is that the slave earphone does not receive the data packet or the master earphone and the slave earphone both receive the data packet, determining the phase of the wave beam by adopting a phase difference corresponding to a smaller receiving signal strength in the first receiving signal strength and the second receiving signal strength;
and if the current receiving condition is that the slave earphone receives the data packet and the master earphone does not receive the data packet, determining the phase of the wave beam by adopting the phase difference corresponding to the second receiving signal strength.
7. A data transmission device of a bluetooth headset, applied to an electronic device, the device comprising:
the data receiving module is used for responding to the data packet sent by the electronic equipment to the main earphone of the Bluetooth earphone through the receiving and transmitting channel, and obtaining a feedback packet sent by the auxiliary earphone of the Bluetooth earphone to the main earphone and a response packet sent by the main earphone to the electronic equipment, wherein the feedback packet is received by the receiving and transmitting channel; the feedback packet characterizes the monitoring receiving condition of the slave earphone on the data packet; the response packet characterizes the receiving condition of the Bluetooth headset on the data packet;
The parameter acquisition module is used for acquiring signal characteristic parameters of the feedback packet and the response packet received by the receiving-transmitting path;
the beam forming module is used for determining a beam forming mode of the receiving and transmitting path for transmitting the next data packet to the main earphone based on the signal characteristic parameters; the beam forming mode comprises beam forming according to the direction of the master earphone or the direction of the slave earphone.
8. An electronic device comprising a transceiver path and a plurality of antennas, the transceiver path being connected to the plurality of antennas;
the electronic device further comprises a memory storing a computer program and a processor implementing the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. The electronic device of claim 8, further comprising a switching component coupled to the transceiver path, the switching component coupled to the plurality of antennas;
the receiving and transmitting path comprises a receiving branch and a transmitting branch of a common antenna, and the common antenna comprises at least two antennas; the transmitting branch and the receiving branch are connected with the switching component, and the switching component is used for switching to the conduction of the corresponding antenna and the transmitting branch or the receiving branch according to the signal sent by the electronic equipment.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311427353.5A 2023-10-30 2023-10-30 Data transmission method and device of Bluetooth headset and electronic equipment Pending CN117651235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311427353.5A CN117651235A (en) 2023-10-30 2023-10-30 Data transmission method and device of Bluetooth headset and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311427353.5A CN117651235A (en) 2023-10-30 2023-10-30 Data transmission method and device of Bluetooth headset and electronic equipment

Publications (1)

Publication Number Publication Date
CN117651235A true CN117651235A (en) 2024-03-05

Family

ID=90048559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311427353.5A Pending CN117651235A (en) 2023-10-30 2023-10-30 Data transmission method and device of Bluetooth headset and electronic equipment

Country Status (1)

Country Link
CN (1) CN117651235A (en)

Similar Documents

Publication Publication Date Title
US10348370B2 (en) Wireless device communication
CN114900254B (en) Communication method of wireless earphone, wireless earphone and wireless earplug
US11064280B2 (en) Wireless audio system and method for wirelessly communicating audio information using the same
US10932043B2 (en) Wireless audio system and method for wirelessly communicating audio information using the same
CN110267305B (en) Wireless data retransmission method
US11743963B2 (en) Coordinated transmission and control for audio output devices
CN111435844B (en) Method, device, equipment and system for correcting audio data in dual-wireless Bluetooth communication
US10784993B1 (en) Soft combining packets received from different piconets
CN111464988A (en) Audio data transmission method, system and device
US11171410B1 (en) Wireless audio system and method for wirelessly communicating audio information using the same
CN112039637A (en) Audio data communication method and system and audio communication equipment
US11083031B1 (en) Bluetooth audio exchange with transmission diversity
CN111132377B (en) Data transmission method and system for terminal and earphone
CN113330757B (en) Data transmission method and related device
EP3890356A1 (en) Bluetooth audio exchange with transmission diversity
CN117651235A (en) Data transmission method and device of Bluetooth headset and electronic equipment
US20230345469A1 (en) Channel transmission method and apparatus, and storage medium
KR20190096142A (en) A method and apparatus for real-time antenna switching of a terminal
US20240089660A1 (en) Head-mounted wireless headset and communication method thereof
CN118282581A (en) Data packet retransmission method, device, wireless earphone, storage medium and program product
US20240129699A1 (en) Physical layer improvements for short range wireless communications
CN114079898B (en) Audio data communication method, device, equipment and system in double-transmission mode
US20240155711A1 (en) Link margin improvements using a variable physical layer symbol rate
EP4319422A1 (en) Communication method and device used for pusch, and storage medium
CN118119005A (en) Data synchronization method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination