CN112703746B - Method and device for processing signal, bluetooth headset and storage medium - Google Patents

Method and device for processing signal, bluetooth headset and storage medium Download PDF

Info

Publication number
CN112703746B
CN112703746B CN202080002459.9A CN202080002459A CN112703746B CN 112703746 B CN112703746 B CN 112703746B CN 202080002459 A CN202080002459 A CN 202080002459A CN 112703746 B CN112703746 B CN 112703746B
Authority
CN
China
Prior art keywords
antenna
earphone
slave
ear
polarized antenna
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.)
Active
Application number
CN202080002459.9A
Other languages
Chinese (zh)
Other versions
CN112703746A (en
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.)
Wanmo Acoustics Co ltd
Original Assignee
Wanmo Acoustics Co 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 Wanmo Acoustics Co ltd filed Critical Wanmo Acoustics Co ltd
Publication of CN112703746A publication Critical patent/CN112703746A/en
Application granted granted Critical
Publication of CN112703746B publication Critical patent/CN112703746B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • 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

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Headphones And Earphones (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the field of communication and provides a method and a device for processing signals, a Bluetooth headset and a storage medium. The method for processing the signals is applied to the Bluetooth headset, the Bluetooth headset comprises a master headset and a slave headset, and two antennas in different directions are respectively arranged in the master headset and the slave headset. When the master earphone and/or the slave earphone detects a first radio frequency signal, selecting a proper antenna to receive the first radio frequency signal according to a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header; when the master earphone or the slave earphone detects the second radio frequency signal, the proper antenna is selected to receive according to the second received signal strength indication corresponding to the second test signal of the second radio frequency signal packet header. In the above manner, the bluetooth headset selects a proper antenna to receive the radio frequency signal, so that signal transmission between the master headset and the terminal device and between the master headset and the slave headset reach an optimal state, and the phenomena of sound blockage, delay and the like of the bluetooth headset are avoided.

Description

Method and device for processing signal, bluetooth headset and storage medium
Technical Field
The present application belongs to the field of communications, and in particular, to a method for processing a signal, an apparatus for processing a signal, a bluetooth headset, and a storage medium.
Background
When the existing Bluetooth headset is used, signals are transmitted by establishing Bluetooth connection between a main headset and terminal equipment, and signals are transmitted by establishing Bluetooth connection between the main headset and a slave headset. Because the existing bluetooth headset adopts a single antenna structure, the transmission of the antenna has directivity. Therefore, the antenna can only compromise the transmission in two directions in a compromise manner, so that the bluetooth headset cannot reach an optimal state in the signal transmission between the master headset and the terminal device and between the master headset and the slave headset, and the bluetooth headset has the phenomena of voice blockage, delay and the like.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide a method, an apparatus, a bluetooth headset and a storage medium for processing a signal, so as to solve the problem that the conventional bluetooth headset cannot achieve an optimal state in signal transmission between a master headset and a terminal device and between the master headset and a slave headset, which causes a sound jam and delay of the bluetooth headset.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme:
in a first aspect, a method for processing a signal is provided, where the method is applied to a bluetooth headset, where the bluetooth headset includes a master headset and a slave headset, where a first horizontally polarized antenna and a first vertically polarized antenna are disposed in the master headset, and a second horizontally polarized antenna and a second vertically polarized antenna are disposed in the slave headset, and the method includes:
when the master earphone and/or the slave earphone detects a first radio frequency signal sent by the terminal equipment, acquiring a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna;
when detecting that a first received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first horizontally polarized antenna is a first target antenna of a primary ear, and when detecting that the first received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first vertically polarized antenna is the first target antenna of the primary ear;
the slave earphone judges that the second horizontally polarized antenna is a slave ear first target antenna when detecting that a first received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the second vertically polarized antenna, and judges that the second vertically polarized antenna is a slave ear first target antenna when detecting that the first received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the second vertically polarized antenna;
when the master earphone detects a slave earphone or the slave earphone detects a second radio frequency signal sent by the master earphone, acquiring a second received signal strength indication corresponding to a second test signal of a second radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna or a second horizontal polarization antenna and a second vertical polarization antenna;
when detecting that a second received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first horizontally polarized antenna is a second target antenna of a primary ear, and when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first vertically polarized antenna is the second target antenna of the primary ear;
the slave earphone judges that the second horizontally polarized antenna is a second slave ear target antenna when detecting that a second received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the second vertically polarized antenna, and judges that the second vertically polarized antenna is a second slave ear target antenna when detecting that the second received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the second vertically polarized antenna;
the primary earphone receives a first radio frequency signal based on the primary ear first target antenna and receives a second radio frequency signal based on the primary ear second target antenna;
the slave earpiece receives a first radio frequency signal based on the slave ear first target antenna, and the slave earpiece receives a second radio frequency signal based on the slave ear second target antenna.
In a second aspect, there is provided an apparatus for processing a signal, applied to a bluetooth headset, the bluetooth headset including a master headset and a slave headset, the master headset being provided with a first horizontally polarized antenna and a first vertically polarized antenna, the slave headset being provided with a second horizontally polarized antenna and a second vertically polarized antenna, the apparatus including units for performing the steps of the method for processing a signal according to the first aspect.
In a third aspect, a bluetooth headset is provided, which includes a master headset and a slave headset, wherein a first horizontally polarized antenna and a first vertically polarized antenna are disposed in the master headset, and a second horizontally polarized antenna and a second vertically polarized antenna are disposed in the slave headset, the bluetooth headset includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the method for processing signals according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the steps of the method of processing a signal as described in the first aspect above.
In a fifth aspect, a computer program product is provided, which, when run on a bluetooth headset, causes the bluetooth headset to perform the steps of the method of processing signals according to the first aspect described above.
The method for processing the signal, the device for processing the signal, the Bluetooth headset and the storage medium have the following beneficial effects:
the method for processing the signals is suitable for the Bluetooth headset, the Bluetooth headset comprises a main headset and a secondary headset, a first horizontal polarization antenna and a first vertical polarization antenna are arranged in the main headset, and a second horizontal polarization antenna and a second vertical polarization antenna are arranged in the secondary headset. When a main earphone and/or a slave earphone detects a first radio-frequency signal sent by terminal equipment, acquiring a first received signal strength indication corresponding to a first test signal of a first radio-frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna, and judging whether the signal quality of receiving the first radio-frequency signal by adopting the first horizontal polarization antenna or the first vertical polarization antenna is optimal according to the first received signal strength indication corresponding to the first horizontal polarization antenna and the first vertical polarization antenna respectively; judging whether the signal quality of the first radio-frequency signal received by the second horizontal polarization antenna or the second vertical polarization antenna is optimal according to the first received signal strength indication corresponding to the second horizontal polarization antenna and the second vertical polarization antenna, and selecting a proper antenna to receive the first radio-frequency signal according to the judgment result; when the master earphone detects a second radio-frequency signal sent by the slave earphone or the slave earphone, acquiring a second received signal strength indication corresponding to a second test signal of a second radio-frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna or the second horizontal polarization antenna and the second vertical polarization antenna, and judging whether the signal quality of receiving the second radio-frequency signal by adopting the first horizontal polarization antenna or the first vertical polarization antenna is optimal according to the second received signal strength indications corresponding to the first horizontal polarization antenna and the first vertical polarization antenna respectively; and judging whether the signal quality of the second radio-frequency signal received by the second horizontal polarization antenna or the second vertical polarization antenna is optimal according to the second received signal strength indication corresponding to the second horizontal polarization antenna and the second vertical polarization antenna, and selecting a proper antenna to receive the second radio-frequency signal according to the judgment result. In the above manner, the master earphone and the slave earphone of the bluetooth earphone are respectively provided with two antennas in different directions, and the appropriate antennas can be selected to receive the radio frequency signals according to different received signal strength indications corresponding to different radio frequency signals, so that the real-time reception of the radio frequency signals can be ensured, and the received radio frequency signals are all of optimal signal quality, so that the signal transmission between the master earphone and the terminal equipment and between the master earphone and the slave earphone can be in an optimal state, and the phenomena of sound blockage, delay and the like of the bluetooth earphone are avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or exemplary 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 it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for processing a signal according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of a method of processing signals provided by another embodiment of the present application;
FIG. 3 is a schematic diagram of an apparatus for processing signals according to an embodiment of the present application;
fig. 4 is a schematic diagram of an apparatus for processing a signal according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the present application.
In order to explain the technical solutions of the present application, the following detailed descriptions are made with reference to specific drawings and examples.
When the existing Bluetooth headset is used, signals are transmitted by establishing Bluetooth connection between a main headset and terminal equipment, and signals are transmitted by establishing Bluetooth connection between the main headset and a slave headset. When the master earphone and the slave earphone transmit signals, the signals of the master earphone and the slave earphone generally need to be diffracted and propagated around the head of a user, so that the signals are attenuated, and the performance of the earphone antenna in the horizontal direction is tested very much; when the main earphone and the terminal device transmit signals, the signals need to bypass the body of a user to be transmitted, and the signals are also attenuated, so that the performance of the earphone antenna in the vertical direction is very tested. Because the existing bluetooth headset adopts a single antenna structure, the transmission of the antenna has directivity. Therefore, the antenna can only be used for transmission in two directions in a compromise manner, so that the bluetooth headset cannot reach an optimal state in signal transmission between the master headset and the terminal device and between the master headset and the slave headset, and the bluetooth headset is subjected to phenomena of sound blockage, delay and the like.
In view of the above, the present application provides a method for processing a signal, which is suitable for a bluetooth headset. The bluetooth headset in this application can include main earphone and follow earphone, is provided with horizontal polarization antenna and vertical polarization antenna in main earphone and the follow earphone respectively. The horizontal polarization antenna is an antenna which is arranged in the earphone in the direction close to the horizontal direction in a wearing state, and has excellent transmission and receiving performance on signals transmitted in the horizontal direction; the vertically polarized antenna is an antenna which is arranged in a nearly vertical direction in the earphone in a wearing state, and has excellent transmission and reception performance for signals transmitted in the vertical direction.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for processing a signal according to an embodiment of the present disclosure. The method for processing signals in the embodiment is performed by a bluetooth headset, including but not limited to a Wireless bluetooth headset, such as a True Wireless Stereo (TWS) headset. The method for processing signals as shown in fig. 1 may be applied to a bluetooth headset, where the bluetooth headset includes a master headset and a slave headset, the master headset is provided with a first horizontally polarized antenna and a first vertically polarized antenna, and the slave headset is provided with a second horizontally polarized antenna and a second vertically polarized antenna, and the method includes steps S101 to S108, which are as follows:
s101: when the master earphone and/or the slave earphone detects a first radio frequency signal sent by the terminal device, a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna is obtained.
In this embodiment, a TWS headset is taken as an example for description, the TWS headset may include a master headset and a slave headset, the master headset is provided with a first horizontally polarized antenna and a first vertically polarized antenna, and the slave headset is provided with a second horizontally polarized antenna and a second vertically polarized antenna. The master earphone and the slave earphone are relatively speaking, the master earphone is firstly connected with the terminal equipment through Bluetooth, the slave earphone is indirectly connected with the terminal equipment through the master earphone, the slave earphone can acquire a first radio frequency signal sent by the terminal equipment in a monitoring mode, and the master earphone can also forward a second radio frequency signal to the slave earphone. The terminal device related in the present application may be a device supporting bluetooth connection, such as a mobile phone, a tablet computer, and a notebook, which is not limited to this.
When the main earphone detects a first radio frequency signal sent by the terminal device, the main earphone obtains a first Received Signal Strength Indication (RSSI) corresponding to a first test signal of a first radio frequency signal packet header by the first horizontal polarization antenna and the first vertical polarization antenna. The terminal adds a packet header to a first radio frequency signal before sending the first radio frequency signal each time, and a first test signal of the first radio frequency signal packet header is used for assisting a main earphone and judging which antenna is selected from the auxiliary earphone to receive the first radio frequency signal. Optionally, in an implementation manner, when the main earphone detects the first radio frequency SIGNAL sent by the terminal device, the main earphone may further obtain a first SIGNAL-to-NOISE RATIO (SNR) of the first horizontal polarization antenna and the first vertical polarization antenna corresponding to the first test SIGNAL in the first radio frequency SIGNAL header, and obtain a first error rate (SER) of the first horizontal polarization antenna and the first vertical polarization antenna corresponding to the first test SIGNAL in the first radio frequency SIGNAL header.
And/or when the earphone detects a first radio frequency signal sent by the terminal equipment, acquiring a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header of the second horizontal polarization antenna and the second vertical polarization antenna from the earphone. Optionally, in an implementation manner, when the first radio frequency signal sent by the terminal device is detected by the earphone, the earphone may further obtain a first signal-to-noise ratio corresponding to the first test signal in the first radio frequency signal header by the second horizontal polarization antenna and the second vertical polarization antenna, and obtain a first error rate corresponding to the first test signal in the first radio frequency signal header by the second horizontal polarization antenna and the second vertical polarization antenna.
Illustratively, when the user uses only one of the TWS headsets, the headset is the primary headset at this time. The terminal equipment converts an audio signal to be sent into a first radio frequency signal and then broadcasts the first radio frequency signal, when the main earphone detects the first radio frequency signal, a received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header is obtained based on a first horizontal polarization antenna in the main earphone, and a received signal strength indication corresponding to the first test signal of the first radio frequency signal packet header is obtained based on a first vertical polarization antenna in the main earphone.
Exemplarily, when the main earphone detects a first radio frequency signal sent by the terminal device, the main earphone performs frequency conversion processing on a first test signal in a first radio frequency signal packet head based on a first horizontal polarization antenna in the main earphone, and changes a high-frequency first test signal into a low-frequency signal; the low-frequency signal is an analog signal and is converted into a digital signal; and demodulating the digital signal through a digital signal processing unit in the main earphone to obtain a first received signal strength indication corresponding to a first test signal of the first horizontal polarization antenna to the first radio frequency signal packet header. The same processing method may be adopted to obtain a first received signal strength indication corresponding to a first test signal of the first vertical polarization antenna to the first radio frequency signal packet header. Similarly, the first received signal strength indication corresponding to the first test signal in the first radio frequency signal packet header obtained by the second horizontal polarization antenna and the second vertical polarization antenna from the earphone is not described herein again.
When a user uses two earphones in the TWS earphone at the same time, the earphone which is directly connected with the terminal in a Bluetooth mode is a main earphone, virtual Bluetooth connection is established between the main earphone and the auxiliary earphone, and the auxiliary earphone is indirectly connected with the terminal equipment. Specifically, the terminal device converts an audio signal to be transmitted into a first radio frequency signal and then broadcasts the first radio frequency signal, and the master earphone conveys information of the first radio frequency signal broadcast by the terminal device to the slave earphone while detecting the first radio frequency signal, so that the slave earphone can monitor the first radio frequency signal broadcast by the terminal device. After detecting a first radio frequency signal broadcast by the terminal device, the main earphone acquires a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header by the first horizontal polarization antenna and the first vertical polarization antenna. After monitoring a first radio frequency signal sent by the terminal device, the slave earphone acquires a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header by the second horizontal polarization antenna and the second vertical polarization antenna.
S102: the main earphone judges that the first horizontally polarized antenna is a first target antenna of a main ear when detecting that a first received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the first vertically polarized antenna, and judges that the first vertically polarized antenna is a first target antenna of a main ear when detecting that the first received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the first vertically polarized antenna.
The main earphone determines a first target antenna of a main ear according to a first received signal strength indication corresponding to a first test signal of the first radio frequency signal packet header obtained by the first horizontal polarization antenna and the first vertical polarization antenna. The first main-ear target antenna is an antenna for ensuring better signal quality when receiving the first rf signal, and may be a first horizontally polarized antenna or a first vertically polarized antenna.
Illustratively, when the user uses only one of the TWS headphones, through the processing in S101, the received signal strength indication corresponding to the first test signal, in which the first radio frequency signal header is obtained based on the first horizontally polarized antenna in the primary headphone, and the received signal strength indication corresponding to the first test signal, in which the first radio frequency signal header is obtained based on the first vertically polarized antenna in the primary headphone, are obtained. The main earphone compares the two received signal strength indications, and selects an antenna corresponding to the side with the better received signal strength indication as a first target antenna of the main earphone. Specifically, when detecting that a first received signal strength indication corresponding to the first horizontal polarization antenna is greater than or equal to a first received signal strength indication corresponding to the first vertical polarization antenna, the primary earphone determines that the first horizontal polarization antenna is a first target antenna of the primary ear, and when detecting that the first received signal strength indication corresponding to the first horizontal polarization antenna is smaller than the first received signal strength indication corresponding to the first vertical polarization antenna, determines that the first vertical polarization antenna is the first target antenna of the primary ear.
For example, the RSSI corresponding to the first test signal of the first radio frequency signal packet header acquired based on the first horizontal polarization antenna in the main headset is-80 dbm, and the RSSI corresponding to the first test signal of the first radio frequency signal packet header acquired based on the first vertical polarization antenna in the main headset is-60 dbm; the main earpiece compares the magnitudes of the two RSSIs, and it is obvious that the first vertically polarized antenna corresponding to the RSSI of-60 dbm receives the first radio frequency signal better. At this time, the first vertically polarized antenna in the main earphone is taken as the main ear first target antenna.
S103: the slave earphone judges that the second horizontally polarized antenna is a first slave ear target antenna when detecting that a first received signal strength indication corresponding to the second horizontally polarized antenna is larger than or equal to a first received signal strength indication corresponding to the second vertically polarized antenna, and judges that the second vertically polarized antenna is a first slave ear target antenna when detecting that the first received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the second vertically polarized antenna.
Illustratively, the slave earphone determines the slave ear first target antenna according to the obtained first received signal strength indication corresponding to the first test signal of the second horizontal polarization antenna and the second vertical polarization antenna to the first radio frequency signal packet header. The first target antenna of the slave ear is an antenna for ensuring better signal quality when receiving the first radio frequency signal, and the first target antenna of the slave ear may be a second horizontally polarized antenna and may also be a second vertically polarized antenna.
Illustratively, the received signal strength indication corresponding to the first test signal obtained from the second horizontally polarized antenna in the headset to the first radio frequency signal header and the received signal strength indication corresponding to the first test signal obtained from the second vertically polarized antenna in the headset to the first radio frequency signal header. The slave earphone compares the two received signal strength indicators and selects the antenna corresponding to the better received signal strength indicator as the first target antenna of the slave ear. Specifically, the slave earphone determines that the second horizontally polarized antenna is the first slave-ear target antenna when detecting that the first received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to the first received signal strength indication corresponding to the second vertically polarized antenna, and determines that the second vertically polarized antenna is the first slave-ear target antenna when detecting that the first received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the second vertically polarized antenna.
Optionally, in an implementation manner, the slave earphone may determine the first slave ear target antenna according to the obtained first signal-to-noise ratio of the first test signal in the first radio frequency signal packet header by the second horizontally polarized antenna and the second vertically polarized antenna. Specifically, the slave earphone determines that the second horizontally polarized antenna is the first slave ear target antenna when detecting that the first signal-to-noise ratio corresponding to the second horizontally polarized antenna is greater than or equal to the first signal-to-noise ratio corresponding to the second vertically polarized antenna, and determines that the second vertically polarized antenna is the first slave ear target antenna when detecting that the first signal-to-noise ratio corresponding to the second horizontally polarized antenna is less than the first signal-to-noise ratio corresponding to the second vertically polarized antenna.
Optionally, in an implementable manner, the slave earpiece may determine the first slave-ear target antenna according to the obtained first bit error rate corresponding to the first test signal in the packet header of the first radio frequency signal by the second horizontally polarized antenna and the second vertically polarized antenna. Specifically, the slave earphone determines that the second horizontally polarized antenna is the first slave ear target antenna when detecting that the first error rate corresponding to the second horizontally polarized antenna is less than or equal to the first error rate corresponding to the second vertically polarized antenna, and determines that the second vertically polarized antenna is the first slave ear target antenna when detecting that the first error rate corresponding to the second horizontally polarized antenna is greater than the first error rate corresponding to the second vertically polarized antenna.
S104: and when the master earphone detects a slave earphone or the slave earphone detects a second radio frequency signal sent by the master earphone, acquiring a second received signal strength indication corresponding to a second test signal of a second radio frequency signal packet header by the first horizontal polarization antenna and the first vertical polarization antenna or the second horizontal polarization antenna and the second vertical polarization antenna.
The second radio frequency signal may comprise a synchronization signal and/or a repeating signal. The synchronous signal is used for the master earphone and the slave earphone to convert the received first radio frequency signal into an audio signal and then synchronously play the audio signal in the earphones, so that the master earphone and the slave earphone worn by a user synchronously make sound; when the slave earphone needs to forward a signal through the master earphone to receive a first radio frequency signal sent by the terminal device, the master earphone needs to forward the first radio frequency signal to the slave earphone after receiving the first radio frequency signal, and it can be understood that the forwarded signal at this time is the first radio frequency signal received by the master earphone. Illustratively, when the second radio frequency signal is a repeating signal and the slave earphone detects the second radio frequency signal sent by the master earphone, a second received signal strength indication corresponding to a second test signal of a second radio frequency signal packet header by a second horizontal polarization antenna and a second vertical polarization antenna is obtained. And when the second radio-frequency signal is a synchronous signal and the main earphone detects the second radio-frequency signal sent by the slave earphone, acquiring a second received signal strength indication corresponding to a second test signal of a second radio-frequency signal packet header by the first horizontal polarization antenna and the first vertical polarization antenna.
When the second radio frequency signal is a synchronization signal, taking the TWS headset as an example for description, when a user uses two of the TWS headsets simultaneously, after both the master headset and the slave headset receive the first radio frequency signal sent by the terminal device, the master headset sends the synchronization signal to the slave headset. Before the master earphone sends the synchronizing signal, a packet header is added to the synchronizing signal, and at the moment, a second test signal of the packet header of the synchronizing signal is used for assisting the slave earphone in judging which antenna is selected to receive the second radio frequency signal. The synchronous signal is used for the master earphone and the slave earphone to convert the received first radio frequency signal into an audio signal and then synchronously play the audio signal in the earphones, so that the master earphone and the slave earphone worn by a user synchronously make sound.
Illustratively, the master earphone may transmit the synchronization signal to the slave earphone based on an antenna used in signal transmission with the terminal device, may randomly select the first horizontally polarized antenna or the first vertically polarized antenna to transmit the synchronization signal to the slave earphone, and may transmit the synchronization signal to the slave earphone through the first horizontally polarized antenna and the first vertically polarized antenna at the same time. And when the slave earphone detects the synchronous signal sent by the master earphone, acquiring a received signal strength indication corresponding to the second test signal of the head of the synchronous signal packet. Optionally, in an implementation manner, the slave earpiece may further obtain a signal-to-noise ratio of the second horizontal polarization antenna and the second vertical polarization antenna to the second test signal of the synchronization signal header, and obtain an error rate of the second horizontal polarization antenna and the second vertical polarization antenna to the second test signal of the synchronization signal header.
When the second radio frequency signal is a forwarding signal, the TWS headset is taken as an example for explanation, when a user uses two of the TWS headsets at the same time, the terminal device converts an audio signal to be sent into a first radio frequency signal and broadcasts the first radio frequency signal, and the main headset receives the first radio frequency signal based on the first target antenna of the main headset after detecting the first radio frequency signal. The master earphone forwards the received first radio frequency signal to the slave earphone. In particular, the master earphone may divide the first radio frequency signal into a plurality of segments of the second radio frequency signal, which are forwarded to the slave earphone in batches. When the slave earphone detects a second radio frequency signal sent by the master earphone, second receiving signal strength indications corresponding to second test signals of a second horizontal polarization antenna and a second vertical polarization antenna for a second radio frequency signal packet header are obtained, an antenna for receiving the second radio frequency signal is determined based on the respective corresponding second receiving signal strength indications, and the second radio frequency signal is received based on the determined antenna. Meanwhile, the main earphone adjusts the antenna to be the same type of antenna as the auxiliary earphone to forward the rest second radio frequency signals. For example, if the slave earphone receives a second radio frequency signal based on the second horizontally polarized antenna, the master earphone performs signal transmission with the slave earphone based on the first horizontally polarized antenna; and the slave earphone receives a second radio frequency signal based on the second vertical polarization antenna, and the master earphone performs signal transmission with the slave earphone based on the first vertical polarization antenna. For example, when the slave earphone initially receives the second radio frequency signal, a feedback signal may be sent to the master earphone, and the master earphone obtains a received signal strength indication corresponding to the feedback signal and determines which antenna to use to continue forwarding the second radio frequency signal to the slave earphone based on the received signal strength indication. The positions of the master earphone and the slave earphone are opposite, so when the master earphone and the slave earphone transmit signals, the adopted antennas are all antennas in the same direction. Optionally, in an implementation manner, the slave headset may further obtain a signal-to-noise ratio corresponding to a second test signal of the transponder head by the second horizontally polarized antenna and the second vertically polarized antenna, and obtain an error rate corresponding to a second test signal of the transponder head by the second horizontally polarized antenna and the second vertically polarized antenna.
S105: the main earphone judges that the first horizontal polarization antenna is a main ear second target antenna when detecting that a second received signal strength indication corresponding to the first horizontal polarization antenna is larger than or equal to a second received signal strength indication corresponding to the first vertical polarization antenna, and judges that the first vertical polarization antenna is a main ear second target antenna when detecting that the second received signal strength indication corresponding to the first horizontal polarization antenna is smaller than the second received signal strength indication corresponding to the first vertical polarization antenna.
And the main earphone determines a second target antenna of the main ear according to the obtained second received signal strength indication corresponding to the second test signal of the first horizontal polarization antenna and the first vertical polarization antenna to the second radio frequency signal packet head. The second target antenna of the main ear is an antenna for ensuring better signal quality when receiving the second radio frequency signal, and the second target antenna of the main ear may be a first horizontally polarized antenna or a first vertically polarized antenna.
Illustratively, the received signal strength indication corresponding to the second test signal based on the second radio frequency signal header being acquired by the first horizontally polarized antenna in the primary earphone, and the received signal strength indication corresponding to the second test signal based on the second radio frequency signal header being acquired by the first vertically polarized antenna in the primary earphone. The main earphone compares the two received signal strength indications, and selects an antenna corresponding to the side with the better received signal strength indication as a second target antenna of the main earphone. Specifically, the main earphone determines that the first horizontally polarized antenna is the second target antenna of the main ear when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to the second received signal strength indication corresponding to the first vertically polarized antenna, and determines that the first vertically polarized antenna is the second target antenna of the main ear when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the first vertically polarized antenna.
S106: the slave earphone judges that the second horizontally polarized antenna is a second slave ear target antenna when detecting that a second received signal strength indication corresponding to the second horizontally polarized antenna is larger than or equal to a second received signal strength indication corresponding to the second vertically polarized antenna, and judges that the second vertically polarized antenna is a second slave ear target antenna when detecting that the second received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the second vertically polarized antenna.
And the slave earphone determines a second target antenna of the slave ear according to the obtained second received signal strength indication corresponding to the second test signal of the second radio frequency signal packet head by the second horizontal polarization antenna and the second vertical polarization antenna. The second target antenna of the slave ear is an antenna for ensuring better signal quality when receiving the second radio frequency signal, and the second target antenna of the slave ear may be a second horizontally polarized antenna or a second vertically polarized antenna.
Illustratively, the received signal strength indication corresponding to the second test signal obtained from the second horizontally polarized antenna in the headset to the second radio frequency signal header and the received signal strength indication corresponding to the second test signal obtained from the second vertically polarized antenna in the headset to the second radio frequency signal header. The slave earphone compares the two received signal strength indicators and selects the antenna corresponding to the better received signal strength indicator as the second target antenna of the slave earphone. Specifically, the slave earphone determines that the second horizontally polarized antenna is the second target antenna from the ear when detecting that the second received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to the second received signal strength indication corresponding to the second vertically polarized antenna, and determines that the second vertically polarized antenna is the second target antenna from the ear when detecting that the second received signal strength indication corresponding to the second horizontally polarized antenna is less than the second received signal strength indication corresponding to the second vertically polarized antenna.
S107: the primary earpiece receives a first radio frequency signal based on the primary ear first target antenna and a second radio frequency signal based on the primary ear second target antenna.
The main earphone receives a first radio frequency signal based on the first target antenna of the main ear and receives a second radio frequency signal based on the second target antenna of the main ear. Exemplarily, if the first target antenna of the main ear determined by the main earphone in S102 is the first horizontally polarized antenna, the first radio frequency signal sent by the terminal device is received based on the first horizontally polarized antenna in the main earphone; if the first target antenna of the main ear determined by the main earphone in S102 is the first vertical polarization antenna, the first radio frequency signal sent by the terminal device is received based on the first vertical polarization antenna in the main earphone.
If the second target antenna of the main ear determined by the main earphone in S105 is the first horizontally polarized antenna, receiving a second radio frequency signal based on the first horizontally polarized antenna in the main earphone; if the second target antenna of the primary ear determined in S105 by the primary earpiece is the first vertically polarized antenna, the second radio frequency signal is received based on the first vertically polarized antenna in the primary earpiece. Exemplarily, when the second radio frequency signal is a synchronization signal, if the second target antenna of the main ear determined by the main earphone in S105 is the first horizontally polarized antenna, the synchronization signal transmitted from the earphone is received based on the first horizontally polarized antenna in the main earphone; if the second target antenna of the primary ear determined by the primary ear determining unit in S105 is the first vertical polarization antenna, the synchronization signal sent from the secondary ear is received based on the first vertical polarization antenna in the primary ear.
S108: the slave earpiece receives a first radio frequency signal based on the slave ear first target antenna, and the slave earpiece receives a second radio frequency signal based on the slave ear second target antenna.
The slave earpiece is based on receiving a first radio frequency signal from the first target antenna of the ear and on receiving a second radio frequency signal from the second target antenna of the ear. Exemplarily, if the slave ear first target antenna determined in S103 by the slave earphone is the second horizontally polarized antenna, the first radio frequency signal is received based on the second horizontally polarized antenna in the slave earphone; if the slave headset determines in S103 that the first target antenna of the slave ear is the second vertically polarized antenna, the first radio frequency signal is received based on the second vertically polarized antenna in the slave headset.
If the second target antenna of the slave ear determined by the slave earphone in S106 is the second horizontally polarized antenna, receiving a second radio frequency signal based on the second horizontally polarized antenna in the slave earphone; if the second target antenna of the slave ear determined by the slave ear speaker in S106 is the second vertically polarized antenna, the second radio frequency signal is received based on the second vertically polarized antenna in the slave ear speaker. Similarly, when the second radio frequency signal is a repeating signal, the slave earphone receives the repeating signal sent by the master earphone based on the second horizontal polarization antenna or the second vertical polarization antenna.
The method for processing the signals is suitable for the Bluetooth headset, the Bluetooth headset comprises a master headset and a slave headset, a first horizontal polarization antenna and a first vertical polarization antenna are arranged in the master headset, and a second horizontal polarization antenna and a second vertical polarization antenna are arranged in the slave headset. When a main earphone and/or a slave earphone detects a first radio-frequency signal sent by terminal equipment, acquiring a first received signal strength indication corresponding to a first test signal of a first radio-frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna, and judging whether the signal quality of receiving the first radio-frequency signal by adopting the first horizontal polarization antenna or the first vertical polarization antenna is optimal according to the first received signal strength indication corresponding to the first horizontal polarization antenna and the first vertical polarization antenna respectively; judging whether the signal quality of the first radio-frequency signal received by the second horizontal polarization antenna or the second vertical polarization antenna is optimal according to the first received signal strength indication corresponding to the second horizontal polarization antenna and the second vertical polarization antenna, and selecting a proper antenna to receive the first radio-frequency signal according to a judgment result; when the master earphone detects a second radio-frequency signal sent by the slave earphone or the slave earphone, acquiring a second received signal strength indication corresponding to a second test signal of a second radio-frequency signal packet header by the first horizontal polarization antenna and the first vertical polarization antenna or the second horizontal polarization antenna and the second vertical polarization antenna, and judging whether the signal quality of the second radio-frequency signal received by the first horizontal polarization antenna or the first vertical polarization antenna is optimal according to the second received signal strength indications corresponding to the first horizontal polarization antenna and the first vertical polarization antenna respectively; and judging whether the signal quality of the second radio-frequency signal received by the second horizontal polarization antenna or the second vertical polarization antenna is optimal according to the second received signal strength indication corresponding to the second horizontal polarization antenna and the second vertical polarization antenna, and selecting a proper antenna to receive the second radio-frequency signal according to the judgment result. In the above manner, the master earphone and the slave earphone of the bluetooth earphone are respectively provided with two antennas in different directions, and the appropriate antennas can be selected to receive the radio frequency signals according to different received signal strength indications corresponding to different radio frequency signals, so that the real-time reception of the radio frequency signals can be ensured, and the received radio frequency signals are all of optimal signal quality, so that the signal transmission between the master earphone and the terminal equipment and between the master earphone and the slave earphone can be in an optimal state, and the phenomena of sound blockage, delay and the like of the bluetooth earphone are avoided.
Optionally, in an implementation manner, when the master earphone and/or the slave earphone detects a first radio frequency signal sent by the terminal device, a first signal-to-noise ratio and a first error rate, which correspond to a first test signal in a first radio frequency signal header, of the first horizontally polarized antenna and the first vertically polarized antenna and/or the second horizontally polarized antenna and the second vertically polarized antenna are obtained; the first signal-to-noise ratio and the first bit error rate are used to determine a master ear first target antenna and to determine a slave ear first target antenna.
Illustratively, when the master earphone detects a first radio frequency signal sent by the terminal device, the master earphone obtains a first signal-to-noise ratio and a first error rate corresponding to a first test signal in a first radio frequency signal header based on a first horizontally polarized antenna in the master earphone, and obtains a first signal-to-noise ratio and a first error rate corresponding to a first test signal in the first radio frequency signal header based on a first vertically polarized antenna in the master earphone. The obtaining mode of each first signal-to-noise ratio and each first bit error rate can refer to the obtaining mode of the received signal strength indication.
The main earphone can determine a first target antenna of the main ear according to a first signal-to-noise ratio corresponding to a first test signal of the first radio frequency signal packet head obtained by the first horizontal polarization antenna and the first vertical polarization antenna. Specifically, when detecting that a first signal-to-noise ratio corresponding to the first horizontally polarized antenna is greater than or equal to a first signal-to-noise ratio corresponding to the first vertically polarized antenna, the main earphone determines that the first horizontally polarized antenna is the first target antenna of the main ear, and when detecting that the first signal-to-noise ratio corresponding to the first horizontally polarized antenna is less than the first signal-to-noise ratio corresponding to the first vertically polarized antenna, the main earphone determines that the first vertically polarized antenna is the first target antenna of the main ear.
Optionally, in an implementation manner, the main earphone may determine the first target antenna of the main earphone according to an obtained first bit error rate corresponding to the first test signal in the first packet header of the first radio frequency signal by the first horizontal polarization antenna and the first vertical polarization antenna. Specifically, when detecting that a first error rate corresponding to the first horizontally polarized antenna is less than or equal to a first error rate corresponding to the first vertically polarized antenna, the main earphone determines that the first horizontally polarized antenna is the first target antenna of the main ear, and when detecting that the first error rate corresponding to the first horizontally polarized antenna is greater than the first error rate corresponding to the first vertically polarized antenna, determines that the first vertically polarized antenna is the first target antenna of the main ear.
Illustratively, when the first radio frequency signal sent by the terminal device is detected by the slave earphone, the slave earphone acquires a first signal-to-noise ratio and a first error rate corresponding to a first test signal of the first radio frequency signal packet header based on the second horizontally polarized antenna in the slave earphone, and acquires a first signal-to-noise ratio and a first error rate corresponding to a first test signal of the first radio frequency signal packet header based on the second vertically polarized antenna in the slave earphone.
The slave earphone can determine the first target antenna of the slave ear according to the acquired first signal-to-noise ratio corresponding to the first test signal of the first radio frequency signal packet head by the second horizontal polarization antenna and the second vertical polarization antenna. Specifically, the slave earphone determines that the second horizontally polarized antenna is the first slave ear target antenna when detecting that the first signal-to-noise ratio corresponding to the second horizontally polarized antenna is greater than or equal to the first signal-to-noise ratio corresponding to the second vertically polarized antenna, and determines that the second vertically polarized antenna is the first slave ear target antenna when detecting that the first signal-to-noise ratio corresponding to the second horizontally polarized antenna is less than the first signal-to-noise ratio corresponding to the second vertically polarized antenna.
Optionally, in an implementable manner, the slave earpiece may determine the first slave-ear target antenna according to the obtained first bit error rate corresponding to the first test signal in the packet header of the first radio frequency signal by the second horizontally polarized antenna and the second vertically polarized antenna. Specifically, when the slave earphone detects that a first error rate corresponding to the second horizontal polarization antenna is smaller than or equal to a first error rate corresponding to the second vertical polarization antenna, the second horizontal polarization antenna is determined to be a first slave ear target antenna, and when the first error rate corresponding to the second horizontal polarization antenna is detected to be larger than the first error rate corresponding to the second vertical polarization antenna, the second vertical polarization antenna is determined to be a first slave ear target antenna.
Optionally, in an implementable manner, when the master earphone detects a slave earphone or a second radio frequency signal sent by the master earphone, a second signal-to-noise ratio and a second bit error rate, which correspond to a second test signal in a second radio frequency signal packet header by the first horizontally polarized antenna and the first vertically polarized antenna or by the second horizontally polarized antenna and the second vertically polarized antenna, are obtained; the second signal-to-noise ratio and the second bit error rate are used for determining a second target antenna of the master ear and determining a second target antenna of the slave ear.
Illustratively, when the master earphone detects the second radio frequency signal sent from the earphone, the master earphone obtains a second signal-to-noise ratio and a second error rate corresponding to a second test signal of a second radio frequency signal header based on the first horizontally polarized antenna in the master earphone, and obtains a second signal-to-noise ratio and a second error rate corresponding to a second test signal of the second radio frequency signal header based on the first vertically polarized antenna in the master earphone.
The main earphone can determine a second target antenna of the main ear according to a second signal-to-noise ratio corresponding to a second test signal of the second radio-frequency signal packet head of the obtained first horizontal polarization antenna and the obtained first vertical polarization antenna. Specifically, when detecting that the second signal-to-noise ratio corresponding to the first horizontally polarized antenna is greater than or equal to the second signal-to-noise ratio corresponding to the first vertically polarized antenna, the main earphone determines that the first horizontally polarized antenna is the second target antenna of the main ear, and when detecting that the second signal-to-noise ratio corresponding to the first horizontally polarized antenna is smaller than the second signal-to-noise ratio corresponding to the first vertically polarized antenna, determines that the first vertically polarized antenna is the second target antenna of the main ear.
Optionally, in an implementation manner, the main earpiece may determine the second target antenna of the main earpiece according to a second bit error rate corresponding to the obtained second test signal of the first horizontally polarized antenna and the first vertically polarized antenna to the second radio frequency signal header. Specifically, when detecting that a second error rate corresponding to the first horizontal polarization antenna is less than or equal to a second error rate corresponding to the first vertical polarization antenna, the main earphone determines that the first horizontal polarization antenna is the second target antenna of the main ear, and when detecting that the second error rate corresponding to the first horizontal polarization antenna is greater than the second error rate corresponding to the first vertical polarization antenna, the main earphone determines that the first vertical polarization antenna is the second target antenna of the main ear.
Illustratively, when the slave earphone detects the second radio frequency signal sent by the master earphone, the slave earphone obtains a second signal-to-noise ratio and a second error rate corresponding to a second test signal of a second radio frequency signal header based on a second horizontally polarized antenna in the slave earphone, and obtains a second signal-to-noise ratio and a second error rate corresponding to a second test signal of the second radio frequency signal header based on a second vertically polarized antenna in the slave earphone.
The slave earphone can determine a second target antenna of the slave ear according to a second signal-to-noise ratio corresponding to the obtained second test signal of the second horizontal polarization antenna and the second vertical polarization antenna to the second radio frequency signal packet head. Specifically, the slave earphone determines that the second horizontally polarized antenna is the second target antenna of the slave ear when detecting that the second signal-to-noise ratio corresponding to the second horizontally polarized antenna is greater than or equal to the second signal-to-noise ratio corresponding to the second vertically polarized antenna, and determines that the second vertically polarized antenna is the second target antenna of the slave ear when detecting that the second signal-to-noise ratio corresponding to the second horizontally polarized antenna is less than the second signal-to-noise ratio corresponding to the second vertically polarized antenna.
Optionally, in an implementation manner, the slave earphone may determine the second target antenna of the slave ear according to the obtained second error rate corresponding to the second test signal of the second horizontally polarized antenna and the second vertically polarized antenna to the second radio frequency signal packet header. Specifically, the slave earphone determines that the second horizontally polarized antenna is the second slave-ear target antenna when detecting that the second error rate corresponding to the second horizontally polarized antenna is less than or equal to the second error rate corresponding to the second vertically polarized antenna, and determines that the second vertically polarized antenna is the second slave-ear target antenna when detecting that the second error rate corresponding to the second horizontally polarized antenna is greater than the second error rate corresponding to the second vertically polarized antenna.
Optionally, in some possible implementations of the present application, as shown in fig. 2, fig. 2 is a schematic flowchart of a method for processing a signal according to another embodiment of the present application, where the method may include: s201 to S209. For reference, the steps S201 to S208 shown in fig. 2 may refer to the above description of S101 to S108, and for brevity, the description is omitted here. Step S209 will be specifically explained below.
S209: and the main earphone sends a response signal to the terminal equipment through the first target antenna of the main earphone.
After the second radio frequency signal transmission between the master earphone and the slave earphone is completed, the master earphone needs to send a response signal to the terminal device, and the response signal is used for prompting that the terminal device can send a new radio frequency signal. And the main earphone sends a response signal to the terminal equipment through the first target antenna of the main earphone.
The master earphone detects whether an antenna used for signal transmission between the master earphone and the slave earphone is the same as an antenna used for signal transmission between the master earphone and the terminal equipment, namely, the master earphone detects whether an antenna used for second radio frequency signal transmission between the master earphone and the slave earphone and an antenna used for first radio frequency signal transmission between the master earphone and the terminal equipment are the same, and if the antennas are the same, the master earphone sends a response signal based on a first target antenna of the master earphone.
For example, a first vertical polarization antenna is used when the master earphone and the terminal device perform first radio frequency signal transmission, and a first vertical polarization antenna is used when the master earphone and the slave earphone perform second radio frequency signal transmission, and at this time, the master earphone sends a response signal to the terminal device based on the first vertical polarization antenna. The first horizontally polarized antenna is similar to the first vertically polarized antenna, and is not described herein again.
And if the antenna adopted when the main earphone and the terminal equipment perform signal transmission is different from the antenna adopted when the main earphone and the auxiliary earphone perform signal transmission, the main earphone sends a response signal to the terminal equipment through the antenna adopted when the main earphone and the auxiliary earphone perform signal transmission. That is, if it is detected that the antenna used for signal transmission between the master earphone and the slave earphone is different from the antenna used for signal transmission between the master earphone and the terminal device, the current antenna of the master earphone is switched to the antenna used for signal transmission between the master earphone and the terminal device, and a response signal is sent to the terminal device based on the switched antenna.
For example, a first vertical polarization antenna is used when the master earphone and the terminal device perform first radio frequency signal transmission, and a first horizontal polarization antenna is used when the master earphone and the slave earphone perform second radio frequency signal transmission, at this time, the master earphone switches the first horizontal polarization antenna to the first vertical polarization antenna, and sends a response signal to the terminal device based on the first vertical polarization antenna. It can also be understood that, when the antenna used when the master earphone and the terminal device perform the first radio frequency signal transmission is different from the antenna used when the master earphone and the slave earphone perform the second radio frequency signal transmission, the antenna used when the master earphone and the terminal device perform the first radio frequency signal transmission is selected to send the response signal to the terminal device.
Optionally, in some possible implementations of the present application, during a transmission process of a bluetooth packet, in a first communication timeslot, the master earphone communicates with the terminal device based on the master ear first target antenna, and/or the slave earphone communicates with the terminal device based on the slave ear first target antenna; communicating, by the master earpiece with the slave earpiece based on the master ear second target antenna or communicating, by the slave earpiece with the master earpiece based on the slave ear second target antenna at a second communication time slot; and the main earphone sends the response signal to the terminal equipment based on the main ear first target antenna in a third communication time slot.
The first communication time slot, the second communication time slot and the third communication time slot respectively correspond to the sending sequence and the sending time of the first radio frequency signal, the second radio frequency signal and the response signal in the transmission process of a complete Bluetooth data packet. The first communication time slot is earlier than the second communication time slot, and the second communication time slot is earlier than the third communication time slot. The second radio frequency signal of the second communication time slot may include a synchronization signal and/or a retransmission signal.
Illustratively, the user is shown wearing only two TWS headphones. When a user wears two earphones in the TWS earphone at the same time, the earphone which is directly connected with the mobile phone through Bluetooth is a main earphone, virtual Bluetooth connection is established between the earphone and the main earphone, and the earphone which is indirectly connected with the mobile phone is a slave earphone. The mobile phone converts an audio signal to be sent into a first radio frequency signal and then broadcasts the first radio frequency signal, the main earphone detects the first radio frequency signal in a first communication time slot, and simultaneously, the information of the first radio frequency signal is broadcasted to the auxiliary earphone, so that the auxiliary earphone can monitor the first radio frequency signal broadcasted by the mobile phone. After a primary earphone detects a first radio frequency signal broadcasted by a mobile phone in a first communication time slot, a received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header is obtained based on a first horizontal polarization antenna in the primary earphone, and a received signal strength indication corresponding to a first test signal of the first radio frequency signal packet header is obtained based on a first vertical polarization antenna in the primary earphone. After the slave earphone monitors the first radio frequency signal sent by the terminal device in the second communication time slot, a received signal strength indication corresponding to a first test signal in a first radio frequency signal packet header is obtained based on a second horizontal polarization antenna in the slave earphone, and a received signal strength indication corresponding to a first test signal in the first radio frequency signal packet header is obtained based on a second vertical polarization antenna in the slave earphone. And the master earphone and the slave earphone respectively determine the target antenna corresponding to the master earphone and the slave earphone according to the acquired received signal strength indication. For example, a user puts a mobile phone in a pocket, at this time, the master earphone and the slave earphone are both in a vertical state with the mobile phone, at this time, the vertical polarization antennas of the master earphone and the slave earphone have excellent performance on radio frequency signal transmission, the master earphone compares received signal strength indications corresponding to the two antennas, so that the party with the excellent received signal strength indication is the first vertical polarization antenna, the first vertical polarization antenna is used as a first target antenna of the master ear, and the first radio frequency signal sent by the mobile phone is received based on the first vertical polarization antenna; the same process is done for the slave earpiece.
If the user wears one earphone (such as a master earphone) and the other slave earphone and the mobile phone are both placed on a desk, the master earphone compares the received signal strength indications corresponding to the two antennas at the moment, so that the party with the better received signal strength indication is the first vertical polarization antenna, and receives a first radio frequency signal sent by the mobile phone based on the first vertical polarization antenna. And the slave earphone and the mobile phone are in a horizontal state, at the moment, the slave earphone compares the received signal strength indications corresponding to the two antennas, so that the better one of the received signal strength indications is the second horizontally polarized antenna, and the signal transmitted by the mobile phone is received based on the second horizontally polarized antenna.
After both the master and slave earpieces receive the rf signal, the master earpiece may transmit a second rf signal (e.g., a synchronization signal) to the slave earpiece. And detecting a synchronous signal sent by the main earphone from the earphone in the second communication time slot, acquiring a received signal strength indication corresponding to the synchronous signal, and determining an antenna for transmitting the synchronous signal based on the received signal strength indication. For example, when the user wears both the master earphone and the slave earphone on the ears, the master earphone and the slave earphone are in a parallel state, and the slave earphone and the master earphone compare the corresponding received signal strength indications, it can be obtained that the antenna with the better received signal strength indication is the horizontally polarized antenna. The master earphone and the slave earphone transmit synchronous signals based on the horizontal polarization antenna. Or, the user wears one earphone (such as the master earphone) and the other slave earphone is placed on the table, the master earphone and the slave earphone are in a vertical state at the moment, and the slave earphone and the master earphone can obtain the vertical polarization antenna which is the better one of the received signal strength indications by comparing the received signal strength indications corresponding to the master earphone and the slave earphone. The master earphone and the slave earphone transmit synchronous signals based on a vertical polarization antenna.
And after the synchronous signal transmission between the master earphone and the slave earphone is finished, the master earphone sends a response signal to the mobile phone in the third communication time slot. If the master earphone starts to receive the radio frequency signal broadcasted by the mobile phone based on the first vertical polarization antenna in the round of radio frequency signal transmission, and the transmission of the synchronous signal is carried out on the way with the slave earphone through the first vertical polarization antenna, the response signal is directly sent to the mobile phone based on the currently used antenna, namely the first vertical polarization antenna. In this round of radio frequency signal transmission, when the master earphone starts to receive a radio frequency signal broadcasted by the mobile phone based on the first vertical polarization antenna and the transmission of a synchronization signal is performed with the slave earphone through the first horizontal polarization antenna midway, the antenna is switched to the first vertical polarization antenna at this time, and a response signal is transmitted to the mobile phone through the first vertical polarization antenna. And the mobile phone receives the response signal sent by the main earphone and carries out a new radio frequency signal transmission.
In the embodiment of the present application, signal transmission is performed between the master earphone and the terminal device, and between the master earphone and the slave earphone, on the other hand, it is understood that in a possible implementation manner, when the master earphone detects that an object to which the master earphone performs signal transmission changes, an antenna selected by the master earphone to transmit a signal also changes correspondingly. And then, the proper antenna is selected to transmit signals, so that the signal transmission between the main earphone and the terminal equipment and between the main earphone and the auxiliary earphone reach the optimal state, and the phenomena of voice blockage, delay and the like of the Bluetooth earphone are avoided.
Optionally, in some possible implementations of the present application, when the user wears only one TWS headset, only the first communication timeslot and the third communication timeslot are present. Illustratively, when the user uses only one headset, the headset establishes a bluetooth connection with the terminal device, which is also the master headset. The terminal equipment converts an audio signal to be sent into a first radio frequency signal and then broadcasts the first radio frequency signal, the main earphone detects the first radio frequency signal in a first communication time slot, a received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header is obtained based on a first horizontal polarization antenna in the main earphone, and a received signal strength indication corresponding to a first test signal of the first radio frequency signal packet header is obtained based on a first vertical polarization antenna in the main earphone. The main earphone compares the two received signal strength indications, and selects an antenna corresponding to the side with the better received signal strength indication as a first target antenna of the main earphone. For example, after a user wears a main earphone, the terminal device (e.g., a mobile phone) is put in a pocket, the main earphone and the mobile phone are in a vertical state, at this time, a first vertical polarization antenna has a better performance for transmitting a first radio frequency signal, the main earphone can obtain that the party with the better received signal strength indication number is the first vertical polarization antenna by comparing received signal strength indications corresponding to the two antennas, the first vertical polarization antenna is used as a first target antenna of a main ear, and the first radio frequency signal sent by the mobile phone is received based on the first vertical polarization antenna. Then, the main earphone sends a response signal to the mobile phone in the third communication time slot based on the first vertical polarization antenna, and the mobile phone receives the response signal sent by the main earphone and carries out a new radio frequency signal transmission.
Optionally, in some possible implementations of the present application, in a preset time period, the master earphone communicates with the terminal device based on a first target antenna of the master ear used in transmission of a first bluetooth data packet in the preset time period, and communicates with the slave earphone based on a second target antenna of the master ear used in transmission of the first bluetooth data packet in the preset time period;
the slave earphone is communicated with the terminal device based on a first target antenna of a slave ear adopted during transmission of a first Bluetooth data packet in the preset time period, and is communicated with the master earphone based on a second target antenna of the slave ear adopted during transmission of the first Bluetooth data packet in the preset time period.
The preset time period may be set and adjusted according to actual situations, for example, the preset time period may be a time required for transmitting one bluetooth data packet, which is only an exemplary illustration and is not limited thereto. The communication object of the master earphone refers to the terminal equipment or the slave earphone, and the communication object of the slave earphone refers to the terminal equipment or the master earphone.
For example, in a preset time period, the first target antenna of the main ear used by the main earphone during the first bluetooth packet transmission in the preset time period is a first horizontally polarized antenna, and then the communication with the terminal device is always performed through the first horizontally polarized antenna in the preset time period. In a preset time period, a first target antenna of the main earphone adopted during transmission of a first bluetooth data packet in the preset time period is a first vertical polarization antenna, and the main earphone is communicated with the terminal equipment through the first vertical polarization antenna in the preset time period. And in a preset time period, the second target antenna of the master earphone adopted when the first Bluetooth data packet is transmitted in the preset time period is the first horizontal polarization antenna, and the master earphone is communicated with the slave earphone through the first horizontal polarization antenna in the preset time period. In a preset time period, a second target antenna of the master earphone adopted when the master earphone transmits a first Bluetooth data packet in the preset time period is a first vertical polarization antenna, and the master earphone always communicates with the slave earphone through the first vertical polarization antenna in the preset time period.
For example, in a preset time period, the first target antenna of the slave ear used by the slave earphone during the transmission of the first bluetooth data packet in the preset time period is the second horizontally polarized antenna, and then the communication with the terminal device is always performed through the second horizontally polarized antenna in the preset time period. And in a preset time period, a first target antenna of the slave ear adopted by the slave earphone during the transmission of the first Bluetooth data packet in the preset time period is a second vertical polarization antenna, and the slave earphone is communicated with the terminal equipment through the second vertical polarization antenna in the preset time period. And in a preset time period, a second target antenna of the slave ear adopted by the slave earphone during the transmission of the first Bluetooth data packet in the preset time period is a second horizontally polarized antenna, and the slave earphone is communicated with the master earphone through the second horizontally polarized antenna in the preset time period. And in a preset time period, a second target antenna of the slave ear adopted by the slave earphone during the transmission of the first Bluetooth data packet in the preset time period is a second vertical polarization antenna, and the slave earphone is communicated with the master earphone through the second vertical polarization antenna in the preset time period.
Optionally, in some possible implementations of the present application, in a preset time period, the master earphone detects whether a communication object of the master earphone is changed, that is, the master earphone detects whether the terminal device communicating with the master earphone is switched to the slave earphone or whether the slave earphone communicating with the master earphone is switched to the terminal device. When the communication object of the master earphone is not changed, that is, the communication object is always a terminal device or is always a slave earphone in the preset time period, the master earphone performs signal transmission based on the antenna used for the first communication in the preset time period, that is, the master earphone performs signal transmission based on the antenna used for the first signal transmission with the communication object in the preset time period.
For example, the slave earphone detects whether the communication object of the slave earphone is changed within a preset time period, that is, the slave earphone detects whether the terminal device communicating with the slave earphone is switched to the master earphone or whether the master earphone communicating with the slave earphone is switched to the terminal device. When the communication object of the slave earphone is not changed, that is, the communication object with the slave earphone is always the terminal device or the master earphone in the preset time period, the slave earphone performs signal transmission based on the antenna adopted during the first communication in the preset time period, that is, the slave earphone performs signal transmission based on the antenna adopted during the first signal transmission with the communication object in the preset time period.
The signal processing method can also enable the Bluetooth headset to keep a good signal transmission state all the time, and further enhances the anti-interference capability of the Bluetooth headset in a complex interference environment.
Referring to fig. 3, fig. 3 is a schematic diagram of an apparatus for processing a signal according to an embodiment of the present disclosure. The device for processing signals comprises units for performing the steps in the corresponding embodiments of fig. 1 and 2. Please refer to fig. 1 and fig. 2 for the corresponding embodiments. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 3, comprising:
a first obtaining unit 310, configured to obtain, when the master earphone and/or the slave earphone detects a first radio frequency signal sent by a terminal device, a first received signal strength indication corresponding to a first test signal in a first radio frequency signal packet header, of a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna;
a first determining unit 320, configured to determine, by the primary earphone, that the first horizontally polarized antenna is a primary ear first target antenna when detecting that a first received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the first vertically polarized antenna, and determine, when detecting that the first received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the first vertically polarized antenna, that the first vertically polarized antenna is a primary ear first target antenna;
a second determining unit 330, configured to determine, from the headset, that the second horizontally-polarized antenna is a first target antenna from the ear when detecting that the first received signal strength indication corresponding to the second horizontally-polarized antenna is greater than or equal to the first received signal strength indication corresponding to the second vertically-polarized antenna, and determine that the second vertically-polarized antenna is a first target antenna from the ear when detecting that the first received signal strength indication corresponding to the second horizontally-polarized antenna is smaller than the first received signal strength indication corresponding to the second vertically-polarized antenna;
a second obtaining unit 340, configured to obtain, when the master earphone detects a slave earphone or detects a second radio frequency signal sent by the master earphone, a second received signal strength indication corresponding to a second test signal in a second radio frequency signal packet header by using a first horizontal polarization antenna and a first vertical polarization antenna or by using a second horizontal polarization antenna and a second vertical polarization antenna;
a third determining unit 350, configured to determine, by the primary earphone, that the first horizontally polarized antenna is a primary-ear second target antenna when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to the second received signal strength indication corresponding to the first vertically polarized antenna, and determine, when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the first vertically polarized antenna, that the first vertically polarized antenna is a primary-ear second target antenna;
a fourth determining unit 360, configured to determine, from the headset, that the second horizontally-polarized antenna is the second target antenna from the ear when detecting that the second received signal strength indication corresponding to the second horizontally-polarized antenna is greater than or equal to the second received signal strength indication corresponding to the second vertically-polarized antenna, and determine that the second vertically-polarized antenna is the second target antenna from the ear when detecting that the second received signal strength indication corresponding to the second horizontally-polarized antenna is smaller than the second received signal strength indication corresponding to the second vertically-polarized antenna;
a first receiving unit 370, configured to receive a first radio frequency signal based on the first target antenna of the main ear and receive a second radio frequency signal based on the second target antenna of the main ear by the main ear headset;
a second receiving unit 380 for said slave earpiece to receive a first radio frequency signal based on said slave ear first target antenna and for said slave earpiece to receive a second radio frequency signal based on said slave ear second target antenna.
Optionally, the apparatus for processing a signal further comprises:
and the transmitting unit is used for transmitting a response signal to the terminal equipment by the main earphone through the first target antenna of the main ear.
Optionally, during transmission of a bluetooth packet, the master headset communicates with the terminal device based on the master ear first target antenna and/or the slave headset communicates with the terminal device based on the slave ear first target antenna in a first communication timeslot;
the master earphone communicates with the slave earphone based on the master ear second target antenna and/or the slave earphone communicates with the master earphone based on the slave ear second target antenna in a second communication time slot;
the master earphone transmits the response signal to the terminal equipment based on the master ear first target antenna in a third communication time slot;
the first communication time slot is earlier than the second communication time slot, and the second communication time slot is earlier than the third communication time slot.
Optionally, the apparatus further comprises:
the first communication unit is used for communicating with the terminal equipment based on a first target antenna of a main ear adopted when a first Bluetooth data packet is transmitted in a preset time period and communicating with the slave earphone based on a second target antenna of the main ear adopted when the first Bluetooth data packet is transmitted in the preset time period;
and the second communication unit is used for communicating the first target antenna of the slave ear with the terminal equipment based on the transmission of the first Bluetooth data packet in the preset time period by the slave earphone and communicating the second target antenna of the slave ear with the master earphone based on the transmission of the first Bluetooth data packet in the preset time period.
Optionally, the second radio frequency signal comprises a synchronization signal and/or a retransmission signal.
Optionally, the apparatus further comprises:
a third obtaining unit, configured to obtain a first signal-to-noise ratio and a first error rate that correspond to a first test signal in a first radio frequency signal header from the first horizontally polarized antenna and the first vertically polarized antenna and/or from the second horizontally polarized antenna and the second vertically polarized antenna; the first signal-to-noise ratio and the first bit error rate are used to determine the master ear first target antenna and to determine the slave ear first target antenna.
Optionally, the apparatus further comprises:
a fourth obtaining unit, configured to obtain a second signal-to-noise ratio and a second error rate, where the second test signal corresponds to a second radio frequency signal header of the first horizontally polarized antenna and the first vertically polarized antenna or corresponds to a second horizontally polarized antenna and a second vertically polarized antenna; the second signal-to-noise ratio and the second bit error rate are used for determining the master ear second target antenna and determining the slave ear second target antenna.
Referring to fig. 4, fig. 4 is a schematic diagram of an apparatus for processing a signal according to another embodiment of the present disclosure. As shown in fig. 4, the apparatus 4 for processing a signal of this embodiment includes: a processor 40, a memory 41, and computer readable instructions 42 stored in the memory 41 and executable on the processor 40. The processor 40, when executing the computer readable instructions 42, implements the steps in the various signal processing method embodiments described above, such as S101-S108 shown in fig. 1. Alternatively, the processor 40, when executing the computer readable instructions 42, implements the functions of the units in the embodiments described above, such as the units 310 to 380 shown in fig. 3.
Illustratively, the computer readable instructions 42 may be divided into one or more units, which are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more units may be a series of computer readable instruction segments capable of performing certain functions, which are used to describe the execution of the computer readable instructions 42 in the signal processing apparatus. For example, the computer readable instructions 42 may be divided into a first acquisition unit, a first determination unit, a second acquisition unit, a third determination unit, a fourth determination unit, a first reception unit, and a second reception unit, each of which functions specifically as described above.
The means for processing signals may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of a means for processing signals and does not constitute a limitation of means for processing signals and may include more or less components than those shown, or some components may be combined, or different components may be included, etc.
The processor 40 may be a central processing unit, and may be other general purpose processors, digital signal processors, application specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the apparatus for processing signals, such as a memory of the apparatus for processing signals. The memory 41 is used to store the computer readable instructions as well as other programs and data.
Embodiments of the present application also provide a computer readable medium for storing a computer program code, the computer program comprising instructions for executing the method for processing a signal described above. The readable medium may be a read-only memory or a random access memory (random access memory, which is not limited by the embodiments of the present application.
The present application also provides a computer program product for causing a bluetooth headset to perform the steps of the above-described method of processing a signal when the computer program product is run on the bluetooth headset.
An embodiment of the present application further provides a chip or an integrated circuit, where the chip or the integrated circuit includes: and the processor is used for calling and running the computer program from the memory so that the Bluetooth headset provided with the chip or the integrated circuit executes the method for processing the signal.
The embodiment of the present application further provides a bluetooth headset, which is characterized in that a horizontally polarized antenna and a vertically polarized antenna are disposed in the bluetooth headset, the bluetooth headset includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the method for processing signals is implemented when the processor executes the computer program.
The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and they should be construed as being included in the scope of the present disclosure.

Claims (20)

1. A method of processing signals for use in a bluetooth headset, the bluetooth headset comprising a master headset having a first horizontally polarized antenna and a first vertically polarized antenna disposed therein and a slave headset having a second horizontally polarized antenna and a second vertically polarized antenna disposed therein, the method comprising:
when the master earphone and/or the slave earphone detects a first radio frequency signal sent by the terminal equipment, acquiring a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna;
the main earphone judges that the first horizontally polarized antenna is a first main ear target antenna when detecting that a first received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the first vertically polarized antenna, and judges that the first vertically polarized antenna is a first main ear target antenna when detecting that the first received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the first vertically polarized antenna;
the slave earphone judges that the second horizontally polarized antenna is a slave ear first target antenna when detecting that a first received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the second vertically polarized antenna, and judges that the second vertically polarized antenna is a slave ear first target antenna when detecting that the first received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the second vertically polarized antenna;
when the master earphone detects a slave earphone or the slave earphone detects a second radio frequency signal sent by the master earphone, acquiring a second received signal strength indication corresponding to a second test signal of a second radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna or a second horizontal polarization antenna and a second vertical polarization antenna;
when detecting that a second received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first horizontally polarized antenna is a second target antenna of a primary ear, and when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first vertically polarized antenna is the second target antenna of the primary ear;
the slave earphone judges that the second horizontally polarized antenna is a second slave ear target antenna when detecting that a second received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the second vertically polarized antenna, and judges that the second vertically polarized antenna is a second slave ear target antenna when detecting that the second received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the second vertically polarized antenna;
the main earphone receives a first radio frequency signal based on the main ear first target antenna and receives a second radio frequency signal based on the main ear second target antenna;
the slave earpiece is based on the receiving a first radio frequency signal from the first target antenna of the ear and the slave earpiece is based on the receiving a second radio frequency signal from the second target antenna of the ear.
2. The method of claim 1, wherein the method further comprises:
and the main earphone sends a response signal to the terminal equipment through the first target antenna of the main earphone.
3. The method of claim 2, wherein during transmission of a bluetooth packet, the master earphone communicates with the terminal device based on the master-ear first target antenna and/or the slave earphone communicates with the terminal device based on the slave-ear first target antenna during a first communication time slot;
the master earphone communicates with the slave earphone based on the master ear second target antenna and/or the slave earphone communicates with the master earphone based on the slave ear second target antenna in a second communication time slot;
the main earphone sends the response signal to the terminal equipment based on the main ear first target antenna in a third communication time slot;
the first communication time slot is earlier than the second communication time slot, and the second communication time slot is earlier than the third communication time slot.
4. The method of any of claims 1 to 3, further comprising:
in a preset time period, the master earphone is communicated with the terminal equipment based on a master ear first target antenna adopted during transmission of a first Bluetooth data packet in the preset time period, and is communicated with the slave earphone based on a master ear second target antenna adopted during transmission of the first Bluetooth data packet in the preset time period;
the slave earphone is communicated with the terminal equipment based on a first slave ear target antenna adopted during transmission of a first Bluetooth data packet in the preset time period, and is communicated with the master earphone based on a second slave ear target antenna adopted during transmission of the first Bluetooth data packet in the preset time period.
5. The method of claim 1, wherein the second radio frequency signal comprises a synchronization signal and/or a repeating signal.
6. The method of claim 1, wherein when the master earpiece and/or the slave earpiece detect a first radio frequency signal transmitted by a terminal device, the method further comprises:
acquiring a first signal-to-noise ratio and a first error rate corresponding to a first test signal of a first radio-frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna; the first signal-to-noise ratio and the first bit error rate are used to determine the master ear first target antenna and to determine the slave ear first target antenna.
7. The method of claim 1, wherein when the master earphone detects a slave earphone or the slave earphone detects a second radio frequency signal transmitted by the master earphone, the method further comprises:
acquiring a second signal-to-noise ratio and a second error rate corresponding to a second test signal of a second radio-frequency signal packet head by the first horizontal polarization antenna and the first vertical polarization antenna or the second horizontal polarization antenna and the second vertical polarization antenna; the second signal-to-noise ratio and the second bit error rate are used for determining the master ear second target antenna and determining the slave ear second target antenna.
8. An apparatus for processing a signal, applied to a bluetooth headset including a master headset in which a first horizontally polarized antenna and a first vertically polarized antenna are disposed, and a slave headset in which a second horizontally polarized antenna and a second vertically polarized antenna are disposed, the apparatus comprising:
a first obtaining unit, configured to obtain, when the master earphone and/or the slave earphone detects a first radio frequency signal sent by a terminal device, a first received signal strength indication corresponding to a first test signal in a first radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna;
a first determining unit, configured to determine, by a primary earphone, that a first horizontally polarized antenna is a primary ear first target antenna when detecting that a first received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the first vertically polarized antenna, and determine, when detecting that the first received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the first vertically polarized antenna, that the first vertically polarized antenna is a primary ear first target antenna;
a second determining unit, configured to determine, from the headset, that the second horizontally-polarized antenna is a first target antenna from the ear when detecting that a first received signal strength indication corresponding to the second horizontally-polarized antenna is greater than or equal to a first received signal strength indication corresponding to the second vertically-polarized antenna, and determine that the second vertically-polarized antenna is a first target antenna from the ear when detecting that a first received signal strength indication corresponding to the second horizontally-polarized antenna is smaller than a first received signal strength indication corresponding to the second vertically-polarized antenna;
a second obtaining unit, configured to obtain, when the master earphone detects a slave earphone or the slave earphone detects a second radio frequency signal sent by the master earphone, a second received signal strength indication corresponding to a second test signal in a second radio frequency signal packet header by using the first horizontal polarization antenna and the first vertical polarization antenna or the second horizontal polarization antenna and the second vertical polarization antenna;
a third determining unit, configured to determine, by the primary earpiece, that the first horizontally polarized antenna is a second primary-ear target antenna when detecting that a second received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the first vertically polarized antenna, and determine, when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the first vertically polarized antenna, that the first vertically polarized antenna is a second primary-ear target antenna;
a fourth determining unit, configured to determine, from the earphone, that the second horizontally-polarized antenna is a second target antenna from the ear when detecting that a second received signal strength indication corresponding to the second horizontally-polarized antenna is greater than or equal to a second received signal strength indication corresponding to the second vertically-polarized antenna, and determine that the second vertically-polarized antenna is a second target antenna from the ear when detecting that the second received signal strength indication corresponding to the second horizontally-polarized antenna is smaller than the second received signal strength indication corresponding to the second vertically-polarized antenna;
a first receiving unit, configured to receive, by the primary earphone, a first radio frequency signal based on the primary ear first target antenna, and receive, by the primary ear second target antenna, a second radio frequency signal;
a second receiving unit for receiving a first radio frequency signal based on the slave ear first target antenna by the slave earphone, and receiving a second radio frequency signal based on the slave ear second target antenna by the slave earphone.
9. The apparatus of claim 8, wherein the apparatus further comprises:
and the sending unit is used for sending a response signal to the terminal equipment by the main earphone through the first target antenna of the main ear.
10. The apparatus of claim 9, wherein during a transmission of a bluetooth packet, the master earpiece communicates with the terminal device based on the master ear first target antenna and/or the slave earpiece communicates with the terminal device based on the slave ear first target antenna during a first communication time slot;
the master earphone communicates with the slave earphone based on the master ear second target antenna and/or the slave earphone communicates with the master earphone based on the slave ear second target antenna in a second communication time slot;
the master earphone transmits the response signal to the terminal equipment based on the master ear first target antenna in a third communication time slot;
the first communication time slot is earlier than the second communication time slot, and the second communication time slot is earlier than the third communication time slot.
11. The apparatus of any of claims 8 to 10, further comprising:
the first communication unit is used for communicating the master ear first target antenna adopted by the master earphone during transmission of a first Bluetooth data packet in a preset time period with the terminal equipment and communicating the master ear second target antenna adopted by the master earphone during transmission of a first Bluetooth data packet in the preset time period with the slave earphone;
and the second communication unit is used for communicating the slave ear first target antenna adopted by the slave earphone based on the transmission of the first Bluetooth data packet in the preset time period with the terminal equipment, and communicating the slave ear second target antenna adopted by the slave earphone based on the transmission of the first Bluetooth data packet in the preset time period with the master earphone.
12. The apparatus of claim 8, in which the second test signal comprises a synchronization signal and/or a repeating signal.
13. The apparatus of claim 8, wherein the apparatus further comprises:
a third obtaining unit, configured to obtain a first signal-to-noise ratio and a first error rate, where the first horizontally polarized antenna and the first vertically polarized antenna and/or the second horizontally polarized antenna and the second vertically polarized antenna correspond to a first test signal in a first radio frequency signal header; the first signal-to-noise ratio and the first bit error rate are used to determine the master ear first target antenna and to determine the slave ear first target antenna.
14. The apparatus of claim 8, wherein the apparatus further comprises:
a fourth obtaining unit, configured to obtain a second signal-to-noise ratio and a second error rate, where the second test signal corresponds to a second radio frequency signal header of the first horizontally polarized antenna and the first vertically polarized antenna or corresponds to a second horizontally polarized antenna and a second vertically polarized antenna; the second signal-to-noise ratio and the second bit error rate are used for determining the master ear second target antenna and determining the slave ear second target antenna.
15. A bluetooth headset comprising a master headset having a first horizontally polarized antenna and a first vertically polarized antenna disposed therein and a slave headset having a second horizontally polarized antenna and a second vertically polarized antenna disposed therein, the bluetooth headset comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the processor when executing the computer readable instructions performs the steps of:
when the master earphone and/or the slave earphone detects a first radio frequency signal sent by the terminal equipment, acquiring a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna;
the main earphone judges that the first horizontally polarized antenna is a first main ear target antenna when detecting that a first received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the first vertically polarized antenna, and judges that the first vertically polarized antenna is a first main ear target antenna when detecting that the first received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the first vertically polarized antenna;
the slave earphone judges that the second horizontally polarized antenna is a slave ear first target antenna when detecting that a first received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the second vertically polarized antenna, and judges that the second vertically polarized antenna is a slave ear first target antenna when detecting that the first received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the second vertically polarized antenna;
when the master earphone detects a slave earphone or the slave earphone detects a second radio frequency signal sent by the master earphone, acquiring a second received signal strength indication corresponding to a second test signal of a second radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna or a second horizontal polarization antenna and a second vertical polarization antenna;
when detecting that a second received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first horizontally polarized antenna is a second target antenna of a primary ear, and when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first vertically polarized antenna is the second target antenna of the primary ear;
when detecting that a second received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the second vertically polarized antenna, the slave earphone determines that the second horizontally polarized antenna is a second target antenna from the ear, and when detecting that the second received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the second vertically polarized antenna, the slave earphone determines that the second vertically polarized antenna is a second target antenna from the ear;
the primary earphone receives a first radio frequency signal based on the primary ear first target antenna and receives a second radio frequency signal based on the primary ear second target antenna;
the slave earpiece receives a first radio frequency signal based on the slave ear first target antenna, and the slave earpiece receives a second radio frequency signal based on the slave ear second target antenna.
16. The bluetooth headset of claim 15, wherein the bluetooth headset comprises a master headset having a first horizontally polarized antenna and a first vertically polarized antenna disposed therein and a slave headset having a second horizontally polarized antenna and a second vertically polarized antenna disposed therein, the bluetooth headset comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the processor when executing the computer readable instructions performs the steps of:
and the main earphone sends a response signal to the terminal equipment through the first target antenna of the main earphone.
17. The bluetooth headset according to claim 16, wherein during transmission of a bluetooth packet, the master headset communicates with the terminal device based on the master ear first target antenna and/or the slave headset communicates with the terminal device based on the slave ear first target antenna in a first communication slot;
the master earphone communicates with the slave earphone based on the master ear second target antenna and/or the slave earphone communicates with the master earphone based on the slave ear second target antenna in a second communication time slot;
the master earphone transmits the response signal to the terminal equipment based on the master ear first target antenna in a third communication time slot;
the first communication time slot is earlier than the second communication time slot, and the second communication time slot is earlier than the third communication time slot.
18. The bluetooth headset according to one of the claims 15 to 17, wherein during a predetermined time period, the master headset communicates with the terminal device based on the first target antenna of the master ear used for the transmission of the first bluetooth packet during the predetermined time period, and communicates with the slave headset based on the second target antenna of the master ear used for the transmission of the first bluetooth packet during the predetermined time period;
the slave earphone is communicated with the terminal equipment based on a first slave ear target antenna adopted during transmission of a first Bluetooth data packet in the preset time period, and is communicated with the master earphone based on a second slave ear target antenna adopted during transmission of the first Bluetooth data packet in the preset time period.
19. The bluetooth headset of claim 15, wherein the second radio frequency signal comprises a synchronization signal and/or a repeating signal.
20. A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing the steps of:
when the master earphone and/or the slave earphone detects a first radio frequency signal sent by the terminal equipment, acquiring a first received signal strength indication corresponding to a first test signal of a first radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna and/or a second horizontal polarization antenna and a second vertical polarization antenna;
the main earphone judges that the first horizontally polarized antenna is a first main ear target antenna when detecting that a first received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a first received signal strength indication corresponding to the first vertically polarized antenna, and judges that the first vertically polarized antenna is a first main ear target antenna when detecting that the first received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the first vertically polarized antenna;
when detecting that the first received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to the first received signal strength indication corresponding to the second vertically polarized antenna, the slave earphone determines that the second horizontally polarized antenna is a first slave-ear target antenna, and when detecting that the first received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the first received signal strength indication corresponding to the second vertically polarized antenna, the slave earphone determines that the second vertically polarized antenna is a first slave-ear target antenna;
when the master earphone detects a slave earphone or the slave earphone detects a second radio frequency signal sent by the master earphone, acquiring a second received signal strength indication corresponding to a second test signal of a second radio frequency signal packet header by a first horizontal polarization antenna and a first vertical polarization antenna or a second horizontal polarization antenna and a second vertical polarization antenna;
when detecting that a second received signal strength indication corresponding to the first horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first horizontally polarized antenna is a second target antenna of a primary ear, and when detecting that the second received signal strength indication corresponding to the first horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the first vertically polarized antenna, the primary earphone determines that the first vertically polarized antenna is the second target antenna of the primary ear;
the slave earphone judges that the second horizontally polarized antenna is a second slave ear target antenna when detecting that a second received signal strength indication corresponding to the second horizontally polarized antenna is greater than or equal to a second received signal strength indication corresponding to the second vertically polarized antenna, and judges that the second vertically polarized antenna is a second slave ear target antenna when detecting that the second received signal strength indication corresponding to the second horizontally polarized antenna is smaller than the second received signal strength indication corresponding to the second vertically polarized antenna;
the main earphone receives a first radio frequency signal based on the main ear first target antenna and receives a second radio frequency signal based on the main ear second target antenna;
the slave earpiece receives a first radio frequency signal based on the slave ear first target antenna, and the slave earpiece receives a second radio frequency signal based on the slave ear second target antenna.
CN202080002459.9A 2020-10-23 2020-10-23 Method and device for processing signal, bluetooth headset and storage medium Active CN112703746B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/123423 WO2022082782A1 (en) 2020-10-23 2020-10-23 Method and apparatus for processing signal, and bluetooth earphone and storage medium

Publications (2)

Publication Number Publication Date
CN112703746A CN112703746A (en) 2021-04-23
CN112703746B true CN112703746B (en) 2023-03-07

Family

ID=75514840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080002459.9A Active CN112703746B (en) 2020-10-23 2020-10-23 Method and device for processing signal, bluetooth headset and storage medium

Country Status (2)

Country Link
CN (1) CN112703746B (en)
WO (1) WO2022082782A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022236828A1 (en) * 2021-05-14 2022-11-17 华为技术有限公司 Head-mounted wireless earphones and communication method therefor
CN113329387B (en) * 2021-06-18 2022-09-23 英华达(上海)科技有限公司 Bluetooth headset communication method and device
CN115550828B (en) * 2022-11-25 2023-04-04 杭州兆华电子股份有限公司 Construction method suitable for TWS Bluetooth headset adaptation test system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660309A (en) * 2013-11-15 2015-05-27 智捷科技股份有限公司 Intelligent antenna device and method for switching radiation patterns thereof
CN107145330A (en) * 2017-04-26 2017-09-08 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN107660328A (en) * 2011-07-19 2018-02-02 搜诺思公司 Its line options
CN109660975A (en) * 2019-01-28 2019-04-19 上海与德通讯技术有限公司 The switching method of principal and subordinate's earphone, main earphone, from earphone and bluetooth headset network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8024003B2 (en) * 2008-03-06 2011-09-20 Qualcomm Incorporated Methods and apparatus for supporting communications using antennas associated with different polarization directions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107660328A (en) * 2011-07-19 2018-02-02 搜诺思公司 Its line options
CN104660309A (en) * 2013-11-15 2015-05-27 智捷科技股份有限公司 Intelligent antenna device and method for switching radiation patterns thereof
CN107145330A (en) * 2017-04-26 2017-09-08 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone
CN109660975A (en) * 2019-01-28 2019-04-19 上海与德通讯技术有限公司 The switching method of principal and subordinate's earphone, main earphone, from earphone and bluetooth headset network

Also Published As

Publication number Publication date
WO2022082782A1 (en) 2022-04-28
CN112703746A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
US11451906B2 (en) Operation mode switch of wireless headphones
US11683735B2 (en) Diversity bluetooth system and method
US10244307B1 (en) Communication of wireless headphones
US10263668B2 (en) Dual-band wireless headphones
CN112703746B (en) Method and device for processing signal, bluetooth headset and storage medium
US10432773B1 (en) Wireless audio transceivers
US11064280B2 (en) Wireless audio system and method for wirelessly communicating audio information using the same
US10348370B2 (en) Wireless device communication
US11800312B2 (en) Wireless audio system for recording an audio information and method for using the same
US10412481B1 (en) Operation mode switch of wireless headphones
CN109391926B (en) Data processing method of wireless audio equipment and wireless audio equipment
CN110995326A (en) Communication method of wireless earphone, wireless earphone and wireless earplug
US10944154B1 (en) Wireless audio system and method for wirelessly communicating audio information using the same
CN113490102A (en) Wireless earphone and communication method thereof
US11438714B2 (en) Method for ensuring symmetric audio quality for hands-free phoning
US11546705B2 (en) Adaptive multi-band hearing device
CN112153513B (en) Wireless earphone for wireless communication, wireless communication method and medium
WO2015062363A1 (en) Anti-interference method and apparatus for fixed wireless terminal
CN118200782A (en) Communication method, wireless earphone and electronic equipment
WO2024091368A1 (en) Dynamic audio protocol selection for wireless communication
CN115278714A (en) Connection control method, device, electronic equipment and storage medium
CN111277930A (en) Single-ear far detection method of multi-ear Bluetooth headset and Bluetooth headset

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
GR01 Patent grant
GR01 Patent grant