Signal detection method and apparatus for wireless earphone
By switching to the second antenna to detect its signal quality after the wireless headset receives the first signal frame, the problem of signal quality degradation caused by antenna polarity changes is solved, ensuring that the wireless headset selects the best antenna without affecting audio playback and reception, and improves the user experience.
Patent Information
- Application Number
- PCT/CN2024/140657
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-15
- Filing Date
- 2024-12-19
- Publication Date
- 2025-07-24
AI Technical Summary
When wireless headphones communicate with terminals, changes in antenna polarity lead to a decrease in signal quality and affect user experience. The prior art can easily lead to reception failure when switching antennas, affecting the playback and reception of audio frames.
After successfully receiving the first signal frame, the wireless headset switches to the second antenna to detect its signal quality, and completes the detection before receiving the next initial signal frame. The signal quality of the second antenna is determined by retransmitting the signal frame or the detection frame, ensuring that the playback and reception of the first signal frame is not affected.
Without affecting the user experience, effectively detect and select antennas with the best signal quality to ensure communication quality and improve user experience.
Smart Images

Figure CN2024140657_24072025_PF_FP_ABST
Abstract
Description
Signal detection method and device for wireless earphones
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on January 15, 2024, with application number 202410056854.5 and invention name “Signal detection method and device for wireless headphones”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of wireless communications, and in particular to a signal detection method and device for wireless earphones. Background Art
[0003] After a wireless headset successfully establishes a wireless connection with a terminal (such as a mobile phone or computer), wireless communication can begin. During this process, the wireless channel between the headset and the terminal changes, and the relative positions of the headset and the terminal are not fixed. Therefore, wireless headsets with dual or multiple antennas continuously monitor the signal quality of each antenna to ensure communication quality between the headset and the terminal.
[0004] Currently, wireless headsets can communicate with a terminal using only one antenna at a time. To measure the signal quality of antennas other than the current one, the headset must switch the antenna used for communication with the terminal. Poor signal quality from the other antennas can affect the headset's ability to receive audio frames from the terminal, resulting in a poor user experience. Summary of the Invention
[0005] The present application provides a signal detection method and device for wireless headphones, which can measure the signal quality of multiple antennas of wireless headphones without affecting the user experience.
[0006] To achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, a signal detection method for a wireless headset is provided. The method can be performed by the wireless headset. The wireless headset here can refer to the wireless headset itself or a processor, module, logical node, chip, or chip system in the wireless headset that implements the method.
[0008] The method includes: receiving a first signal frame through a first antenna; when the first signal frame is successfully received, switching from the first antenna to a second antenna and detecting the signal quality of the second antenna; receiving a second signal frame through a target antenna, the second signal frame being the next initially transmitted signal frame of the first signal frame, and the target antenna being the antenna with the best signal quality between the first antenna and the second antenna.
[0009] Based on the method provided in the first aspect above, since the wireless headset detects the signal quality of the second antenna before receiving the next initial transmission signal frame of the first signal frame after successfully receiving the first signal frame, the signal detection method neither affects the playback of the first signal frame nor affects the reception of the next initial transmission signal frame of the first signal frame, thereby maximizing the user experience.
[0010] In one possible implementation, the method further includes: sending a first response message, the first response message indicating that the first signal frame failed to be received; detecting the signal quality of the second antenna, including: receiving a third signal frame through the second antenna, the third signal frame being a retransmitted signal frame of the first signal frame; and determining the signal quality of the second antenna based on the third signal frame.
[0011] Based on the above possible implementation, the wireless headset can determine the signal quality of the second antenna according to the retransmitted signal frame of the first signal frame, thereby not affecting the reception of the next initially transmitted signal frame of the first signal frame.
[0012] In a possible implementation, the method further includes: in a case where the third signal frame fails to be received, sending second response information, where the second response information indicates that the third signal frame is received successfully.
[0013] Based on the above possible implementation, since the third signal frame is a retransmitted signal frame of the first signal frame and is used to determine the signal quality of the second antenna, and the first signal frame has been successfully received, even if the third signal frame fails to be received, a second response message can be sent to indicate that the third signal frame has been successfully received. In this way, the transmitter of the first signal frame (e.g., the terminal) does not need to retransmit the first signal frame. In this way, even if the third signal frame fails to be received, it will not affect the reception of the next initially transmitted signal frame of the first signal frame.
[0014] In a possible implementation, detecting the signal quality of the second antenna includes: sending a first detection frame through the second antenna; receiving a first response frame through the second antenna, the first response frame being used to indicate receipt of the first detection frame; and determining the signal quality of the second antenna based on the first response frame.
[0015] Based on the above possible implementation, the wireless headset transmits a first detection frame, causing the receiving end (e.g., a terminal) of the first detection frame to transmit a first response frame to the wireless headset. The wireless headset can then determine the signal quality of the second antenna based on the first response frame without affecting the reception of the next initial transmission signal frame following the first signal frame.
[0016] In a possible implementation, the method further includes: playing audio data carried by the first signal frame.
[0017] Based on the above possible implementation methods, after the wireless headset successfully receives the first signal frame, it can play the audio data carried by the first signal frame. In this way, while playing the audio data carried by the first signal frame, the signal quality of the second antenna is detected, thereby maximizing the user experience.
[0018] In a second aspect, a communication device is provided for implementing the above-mentioned method. The communication device may be the wireless headset described in the first aspect. The communication device includes modules, units, or means corresponding to implementing the above-mentioned method. The modules, units, or means may be implemented in hardware, software, or by hardware executing corresponding software implementations. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
[0019] In conjunction with the second aspect above, in one possible implementation, the communication device may include a processing module and an interface module. The processing module may be configured to implement the processing functions described in any of the above aspects and any possible implementations thereof. The processing module may, for example, be a processor. The interface module, also referred to as an interface unit, may be configured to implement the sending and / or receiving functions described in any of the above aspects and any possible implementations thereof. The interface module may be comprised of an interface circuit, a transceiver, a transceiver, or a communication interface.
[0020] In combination with the above second aspect, in a possible implementation, the interface module includes a sending module and a receiving module, which are respectively used to implement the sending and receiving functions in any of the above aspects and any possible implementations thereof.
[0021] In a third aspect, a communication device is provided, comprising: a processor coupled to a memory, configured to read instructions from the memory and execute the method according to any of the above-mentioned aspects. The communication device may be the wireless headset of the first aspect.
[0022] In conjunction with the third aspect above, in one possible implementation, the communication device further includes a memory for storing program instructions and data. Optionally, the memory is integrated with the processor; or the memory is independent of the processor.
[0023] In conjunction with the third aspect above, in one possible implementation, the communication device is a chip or a chip system. Optionally, when the communication device is a chip system, it can be composed of a chip or include a chip and other discrete devices.
[0024] In a fourth aspect, a communication device is provided, comprising: a processor and an interface circuit; the interface circuit being configured to receive a computer program or instruction and transmit it to the processor; and the processor being configured to execute the computer program or instruction, thereby causing the communication device to perform the method described in any of the above aspects. The communication device may be the wireless headset described in the first aspect.
[0025] In conjunction with the fourth aspect above, in one possible implementation, the communication device is a chip or a chip system. Optionally, when the communication device is a chip system, it can be composed of a chip or include a chip and other discrete devices.
[0026] In a fifth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, the computer can execute the method described in any one of the above aspects.
[0027] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in any one of the above aspects.
[0028] In a seventh aspect, a communication system is provided, which includes a terminal and a wireless headset for executing the method described in the first aspect, wherein the terminal is used to send a first signal frame.
[0029] Among them, the technical effects brought about by any possible implementation method in the second to seventh aspects can refer to the technical effects brought about by different possible implementation methods in the above-mentioned first aspect, and will not be repeated here.
[0030] It is understandable that, provided that the solutions are not contradictory, the solutions in each aspect can be combined. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] FIG1A is a schematic diagram of an earphone provided in this application;
[0032] FIG1B is a schematic diagram of the antenna polarity relationship provided in this application;
[0033] FIG1C is a second schematic diagram of the antenna polarity relationship provided in this application;
[0034] FIG1D is a flowchart of a wireless headset transmitting and receiving audio frames provided by the present application;
[0035] FIG2A is a first schematic diagram of a communication system provided by this application;
[0036] FIG2B is a second schematic diagram of a communication system provided by this application;
[0037] FIG3 is a schematic diagram of the hardware structure of the communication device provided in this application;
[0038] FIG4 is a flow chart of a signal detection method for a wireless headset provided in this application;
[0039] FIG5 is a schematic diagram of a terminal sending a signal frame provided by the present application;
[0040] FIG6 is a schematic diagram of the structure of the communication device provided in this application. DETAILED DESCRIPTION
[0041] Currently, wireless headsets can have multiple antennas, each with different polarity orientations, for receiving signals of different polarities to ensure the quality of communication between the headset and the terminal. For example, a dual-antenna wireless headset, as shown in Figure 1A, has two antennas with orthogonal polarities: one horizontal and one vertical. Furthermore, the two antennas of the wireless headset can also have other polarities, without limitation.
[0042] The polarity of the antenna can be understood in conjunction with FIG. 1B and FIG. 1C .
[0043] In Figure 1B, the transmitting antenna sends a signal to the receiving antenna. The sinusoidal waveform represents the electric field of the signal, measured in volts. Because both the transmitting and receiving antennas have perpendicular polarity, the receiving antenna experiences minimal energy loss and higher signal quality.
[0044] As shown in Figure 1C, the difference between Figure 1C and Figure 1B is that the polarity of the transmitting antenna and the receiving antenna do not match. The transmitting antenna is vertical, while the receiving antenna is more horizontal. This results in significant energy loss in the signal reaching the receiving end, and the signal quality at the receiving end may be low. When the receiving signal quality is low, it is more susceptible to noise, and the decoded data may have significant errors compared to the original data, making it impossible to accurately restore the original data. Consequently, the audio frame fails to be received.
[0045] Alternatively, multiple antennas can be designed according to the antenna radiation direction of the wireless headset. Taking a wireless headset including dual antennas (such as antenna 1 and antenna 2) as an example, the radiation direction of antenna 1 points to the front of the body, which is used in the scenario where the mobile phone is placed in the user's front pocket, and the radiation direction of antenna 2 points to the back of the body, which is used in the scenario where the mobile phone is placed in the user's back pocket. The wireless headset will select the antenna with better signal reception quality based on the radiation directions of antenna 1 and antenna 2. When the wireless headset radiates a signal to the terminal, the direction of the terminal does not match the radiation direction of the wireless headset, and the wireless headset fails to send the signal. For example, when the terminal sends an audio frame to the wireless headset, but the wireless headset always fails to send, and the terminal does not receive a response from the wireless headset for a certain period of time, the terminal can retransmit the audio frame, or the terminal can also confirm that the connection is disconnected and prompt the user to reconnect.
[0046] Specifically, the process of wireless headset sending and receiving audio frames can refer to the following steps, as shown in Figure 1D. In which, the terminal and the wireless headset are connected.
[0047] S101: The terminal sends an audio frame 1 to the wireless headset. Correspondingly, the wireless headset receives the audio frame 1 from the terminal.
[0048] S102: The wireless headset successfully receives audio frame 1.
[0049] As can be understood, when the wireless headset receives a good signal, it completes verification of the received audio frame 1, indicating successful reception of the audio frame 1. The verification may include a cyclic redundancy check (CRC) or other verification methods. After successfully receiving the audio frame 1, the wireless headset may play the audio content of the audio frame 1 to the user through the speaker.
[0050] S103: The wireless headset sends an acknowledgement (ACK) to the terminal. Correspondingly, the terminal receives the ACK from the wireless headset.
[0051] It can be understood that ACK is used to indicate that the terminal successfully receives audio frame 1. Since the terminal sends different audio frames periodically, after receiving ACK, the terminal will send the next audio frame, that is, audio frame 2, after a period of time.
[0052] S104: The terminal sends audio frame 2 to the wireless headset. Correspondingly, the wireless headset receives audio frame 2 from the terminal.
[0053] S105: The wireless headset fails to receive audio frame 2.
[0054] It is understandable that when the quality of the wireless headset receiving signal is relatively poor, the data of the received audio frame 2 is likely to be erroneous. The data error will cause the received verification failure, such as CRC failure. At this time, it will be considered that the reception of audio frame 2 has failed, and the wireless headset needs to resend audio frame 2.
[0055] S106: The wireless headset sends a negative acknowledgement (NACK) to the terminal. Correspondingly, the terminal receives the NACK from the wireless headset.
[0056] S107: The terminal retransmits the audio frame 2 to the wireless headset. Correspondingly, the wireless headset receives the retransmitted audio frame 2 from the terminal.
[0057] In order to ensure the integrity of the audio, after receiving the NACK, the terminal will try to retransmit the audio frame 2 to the wireless headset so that the wireless headset can obtain the audio content included in the audio frame 2.
[0058] S108: The wireless headset successfully receives audio frame 2.
[0059] It is understandable that if the wireless headset fails to receive the audio frame 2, it can still send a NACK to the terminal to request the terminal to retransmit the audio frame 2 again.
[0060] S109: The wireless headset sends an ACK to the terminal. Correspondingly, the terminal receives the ACK from the wireless headset.
[0061] It is understandable that when the retransmission of audio frame 2 also fails to be received, and before the next initial transmission audio frame (such as audio frame 3) arrives, the terminal can still be instructed to continue retransmission through NACK. If the maximum number of retransmissions is reached or the sending time of audio frame 3 is reached, audio frame 2 needs to be discarded.
[0062] It is understandable that when the polarity of the wireless headset antenna does not match the polarity of the received signal (for example, the polarities of the two are orthogonal), the received signal strength indicator (RSSI) of the signal received by the wireless headset antenna will be very small, resulting in a high packet error rate (PER) of the wireless headset receiving data. In the process described in Figure 1D above, when multiple retransmissions still fail to receive, in order not to affect the reception of the next audio frame, the terminal will no longer retransmit to the wireless headset when the maximum number of retransmissions of the audio frame is reached. This causes the loss of audio frames, thereby affecting the sound quality heard by the user when using the wireless headset. Conversely, when the antenna polarity matches the polarity of the received signal, the signal transmission quality is high and supports a higher transmission rate. At this time, the wireless headset can provide users with better sound quality. Therefore, compared to wireless headsets with a single antenna, wireless headsets with multiple antennas can select an antenna that is more consistent with the polarity of the received signal from multiple antennas to receive the signal, thereby improving the user experience. In addition, when the radiation direction of the wireless headset does not cover the location of the terminal, the signal quality received by the terminal from the wireless headset is very poor, which will affect the terminal's ability to send audio frames to the wireless headset, affecting the user experience. Conversely, when the radiation direction of the wireless headset is directed toward the terminal, the signal transmission quality is higher, providing users with better sound quality. Multi-antenna wireless headsets can select a radiation antenna that can better point to the terminal location from multiple antennas, thereby improving the user experience. Therefore, combined with the above-mentioned process of wireless headsets sending and receiving audio frames, when the wireless headset uses a certain antenna to receive a signal and fails to receive audio, it can switch to another antenna.
[0063] In actual scenarios, after the wireless headset is successfully connected to the terminal (such as a mobile phone, the mobile phone is used as an example below), the user may move the mobile phone, which will cause the wireless channel between the wireless headset and the mobile phone to change, and the polarity relationship between the signal received by the wireless headset and the wireless headset antenna will change. For example, the polarity relationship changes from consistent polarity to inconsistent polarity, and the energy loss of the signal received by the wireless headset becomes larger, which will cause the reception signal quality of the current receiving antenna of the wireless headset to deteriorate. The user moving the mobile phone may also cause the radiation direction of the wireless headset to no longer point to the terminal, and the signal transmission quality between the wireless headset and the terminal deteriorates. Therefore, the wireless headset needs to continuously detect the signal reception quality of multiple antennas, and select the antenna with the best (or better) signal reception quality under the current wireless channel conditions from multiple antennas for reception to ensure the communication quality with the mobile phone.
[0064] Currently, multi-antenna wireless headsets can communicate with a terminal using only one antenna at a time. To measure the signal quality of antennas other than the current one, the headset must switch the antenna used to communicate with the terminal. Poor signal quality from the other antennas can affect the headset's ability to receive audio frames from the terminal, resulting in a poor user experience. Avoiding the risk of poor signal quality after switching antennas can also lead to missed opportunities to select a better antenna and underutilize the benefits of the headset's multiple antennas.
[0065] To address the aforementioned technical issues, the present application provides a signal detection method for wireless headphones. This method can be performed by headphones equipped with multiple antennas. In this method, the headphones can receive a first signal frame via a first antenna. Upon successful reception of the first signal frame, the headphones switch from the first antenna to a second antenna to detect the signal quality of the second antenna. Subsequently, the headphones can receive a second signal frame via a target antenna. The second signal frame is the next initially transmitted signal frame following the first signal frame, and the target antenna is the antenna with the best signal quality between the first and second antennas.
[0066] It can be seen from the above method that since the wireless headset detects the signal quality of the second antenna before receiving the next initial transmission signal frame of the first signal frame after successfully receiving the first signal frame, this method neither affects the playback of the first signal frame nor affects the reception of the next initial transmission signal frame of the first signal frame, thereby maximizing the user experience.
[0067] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0068] The method provided in this application can be used in various communication systems. For example, the communication system can be a wireless fidelity (WiFi) system, a Bluetooth system, a 3rd Generation Partnership Project (3GPP)-related communication system, a future-evolved communication system, or a system integrating multiple systems, etc., without limitation. The method provided in this application is described below using the communication system 20 shown in Figure 2A and the communication system 21 shown in Figure 2B as examples. Figure 2A or Figure 2B is only a schematic diagram and does not constitute a limitation on the applicable scenarios of the technical solution provided in this application.
[0069] As shown in Figure 2A, it is a schematic diagram of the architecture of the communication system 20 provided in this application. In Figure 2A, the communication system 20 may include a wireless headset 201 and a terminal 202 that can communicate with the wireless headset 201. The wireless headset 201 may have multiple antennas. The wireless headset 201 and the terminal 202 can be connected to each other via wireless connection technologies such as Bluetooth or WiFi. Optionally, the communication system 20 also includes a wireless headset 203, which can be connected to the wireless headset 201 via wireless connection technologies such as Bluetooth or WiFi, and can also be connected to the terminal 202. The wireless headset 203 may have multiple antennas.
[0070] In some embodiments, wireless headset 201 can be used alone. For example, wireless headset 201 can communicate with terminal 202 using the methods provided herein. Optionally, wireless headset 201 can also be paired with wireless headset 203, so that the two can be used together. Wireless headset 203 can also communicate with terminal 202 using the methods provided herein.
[0071] FIG2B is a schematic diagram of the architecture of a communication system 21 provided in this application. In FIG2B , the communication system 21 may include a wireless headset 211 and a terminal 212 capable of communicating with the wireless headset 211. The wireless headset 211 may have multiple antennas. The wireless headset 211 and the terminal 212 may be connected via wireless connection technologies such as Bluetooth or WiFi.
[0072] Optionally, the wireless headset 211 may include a left earbud 211-1 and a right earbud 211-2. The left earbud 211-1 and the right earbud 211-2 may have multiple antennas and may perform the method provided herein. The left earbud 211-1 and the right earbud 211-2 may be connected via a wireless connection technology such as Bluetooth or WiFi.
[0073] The wireless headsets in this application, such as wireless headset 201, wireless headset 203, or wireless headset 211, can be any headset connected to a terminal via wireless communication, such as a headset, a true wireless stereo Bluetooth headset, etc. In terms of product form, wireless headsets can be categorized as headsets or earbuds. Earbuds can be categorized as in-ear headphones and semi-in-ear headphones.
[0074] In this application, a terminal, such as terminal 202 or terminal 212, is a device with wireless transceiver capabilities. A terminal may also be referred to as a terminal device, and a terminal device may be user equipment (UE), a mobile station (MS), a mobile terminal (MT), or a device used to provide voice or data connectivity to a user. UE includes handheld devices with wireless communication capabilities, vehicle-mounted devices (e.g., cars, bicycles, electric vehicles, airplanes, ships, trains, high-speed trains, etc.), wearable devices (e.g., smart watches, smart bracelets, pedometers, etc.), or computing devices. For example, a UE may be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a satellite terminal, or a computer with wireless transceiver capabilities. A UE may also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, customer-premises equipment (CPE), an intelligent robot, a wireless terminal in an unmanned vehicle, an in-vehicle terminal, an aerial device (e.g., an intelligent robot, a hot air balloon, a drone, an airplane), and the like.
[0075] The communication systems shown in Figures 2A and 2B are for illustrative purposes only and are not intended to limit the technical solutions of this application. Those skilled in the art will appreciate that, in a specific implementation, the communication system may further include other devices, and the number of wireless headsets and terminals may be determined based on specific needs without limitation.
[0076] Optionally, each device in Figures 2A and 2B of the present application (such as wireless headphones or terminals, etc.) can also be referred to as a communication device, which can be a general device or a dedicated device, and the present application does not make specific limitations on this.
[0077] Optionally, the relevant functions of each device (e.g., a wireless headset or terminal, etc.) in Figures 2A and 2B of this application can be implemented by a single device, or by multiple devices, or by one or more functional modules within a single device. This application does not impose any specific limitations on this. It is understood that the above functions can be network elements in hardware devices, software functions running on dedicated hardware, or a combination of hardware and software, or virtualized functions instantiated on a platform (e.g., a cloud platform).
[0078] In a specific implementation, each device in Figures 2A and 2B of the present application (such as a wireless headset or terminal, etc.) can adopt the composition structure shown in Figure 3, or include the components shown in Figure 3. Figure 3 shows a schematic diagram of the hardware structure of a communication device applicable to the present application. The communication device 30 includes at least one processor 301, at least one communication interface 304 and a speaker 305, which are used to implement the method provided in the present application. The communication device 30 may also include at least one of the following: a communication line 302, a memory 303, a microphone 306 or a sensor module 307.
[0079] The processor 301 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0080] The communication link 302 may include a path for transmitting information between the above components, such as a bus.
[0081] The communication interface 304 is used to communicate with other devices or communication networks. The communication interface 304 can be any transceiver-like device, such as a wireless local area network (WLAN) interface, a Bluetooth interface, a transceiver, a pin, a bus, an interface circuit, or a transceiver circuit.
[0082] The memory 303 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be independent and coupled to the processor 301 via a communication line 302. The memory 303 may also be integrated with the processor 301. The memory provided in this application may generally be non-volatile.
[0083] Among them, the memory 303 is used to store computer-executable instructions involved in executing the solution provided by this application, and is controlled by the processor 301. The processor 301 is used to execute the computer-executable instructions stored in the memory 303, thereby implementing the method provided by this application. Alternatively, optionally, in this application, the processor 301 can also perform the processing-related functions of the method provided below in this application, and the communication interface 304 is responsible for communicating with other devices or communication networks, which is not specifically limited in this application.
[0084] The speaker 305, also called a "speaker", is used to convert the audio electrical signal into a sound signal. The user can listen to music or listen to hands-free calls through the speaker 305.
[0085] Microphone 306 , also known as a "microphone" or "speaker," is used to convert sound signals into electrical signals. When making a call or sending a voice message, a user can speak by placing their mouth close to microphone 306 , inputting the sound signal into microphone 306 . In some examples, communication device 30 may be provided with at least one microphone 306 .
[0086] The sensor module 307 may include at least one sensor, such as a proximity light sensor and / or a motion sensor (e.g., a 3-axis accelerometer, a gyroscope, a geomagnetic sensor, etc.). The proximity light sensor may detect whether the user is wearing headphones, and the motion sensor may detect the user's motion state.
[0087] Optionally, the computer-executable instructions in this application may also be referred to as application code, which is not specifically limited in this application.
[0088] The coupling in this application is an indirect coupling or communication connection between devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
[0089] It is understandable that the composition structure shown in Figure 3 does not constitute a limitation on the communication device. In addition to the components shown in Figure 3, the communication device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0090] The method provided by the present application will be described below with reference to the accompanying drawings. Each network element in the following embodiment may include the components shown in FIG3 , which will not be described in detail.
[0091] It is understood that the term "connection" in this application can refer to direct or indirect connection; in addition, it can refer to electrical connection or communication connection. For example, when two electrical components A and B are connected, it can refer to A and B being directly connected, or it can refer to A and B being indirectly connected through other electrical components or a connection medium, so that electrical signals can be transmitted between A and B. For another example, when two devices A and B are connected, it can refer to A and B being directly connected, or it can refer to A and B being indirectly connected through other communication devices or a communication medium, so that A and B can communicate.
[0092] It can be understood that the message names between network elements or the names of parameters in the messages in the following embodiments of the present application are only examples, and other names may be used in specific implementations, and the present application does not make any specific limitations on this.
[0093] It is understood that in this application, " / " can indicate that the objects associated with each other are in an "or" relationship, for example, A / B can mean A or B; "and / or" can be used to describe that there are three relationships between the associated objects, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, expressions similar to "at least one of A, B and C" or "at least one of A, B or C" are usually used to indicate any of the following: A exists alone; B exists alone; C exists alone; A and B exist at the same time; A and C exist at the same time; B and C exist at the same time; A, B and C exist at the same time. The above uses A, B and C as an example to illustrate the optional items of the item. When there are more elements in the expression, the meaning of the expression can be obtained according to the above rules.
[0094] In order to facilitate the description of the technical solutions of the present application, in the present application, words such as "first" and "second" may be used to distinguish between technical features with the same or similar functions. The words such as "first" and "second" do not limit the quantity and execution order, and the words such as "first" and "second" do not necessarily limit them to be different. In the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or design. The use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0095] It is understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It is understood that in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the present application.
[0096] It can be understood that in this application, "when...", "in the case of...", "if" and "if" all mean that corresponding processing will be taken under certain objective circumstances, and do not limit the time, nor do they require judgment actions when implementing them, nor do they mean that there are other limitations.
[0097] The term "simultaneously" in this application may be understood as at the same time point, within a period of time, or within the same cycle.
[0098] In this application, “multiple” can be understood as two or more. For example, “a wireless headset has multiple antennas” can be understood as a wireless headset having two or more antennas.
[0099] It is understood that some optional features in this application may, in certain scenarios, be implemented independently of other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects. They may also be combined with other features in certain scenarios as needed. Accordingly, the devices provided in this application may also implement these features or functions accordingly, which will not be described in detail here.
[0100] It is understandable that the same step or steps or technical features with the same function in different embodiments of the present application can be referenced to each other.
[0101] It is understood that in this application, the wireless headset can perform some or all of the steps in this application. These steps are only examples, and this application can also perform other steps or variations of various steps. In addition, the steps can be performed in a different order than presented in this application, and it is possible that not all steps in this application need to be performed.
[0102] It is understood that the method provided below in this application uses a wireless headset as an example to illustrate the method, but this application does not limit the execution subject of the interaction diagram. For example, the wireless headset in the method provided in the following embodiments of this application can also be a chip, chip system, or processor that supports the wireless headset to implement the method, or it can be a logical node, logic module, or software that can implement all or part of the functions of the wireless headset.
[0103] As shown in FIG4 , a signal detection method for a wireless headset provided by the present application may include the following steps:
[0104] S401: The terminal sends a first signal frame to the wireless headset. Correspondingly, the wireless headset receives the first signal frame from the terminal via the first antenna.
[0105] In the present application, the wireless headset may be the wireless headset 201 in the communication system 20 shown in FIG2A , and the terminal may be the terminal 202 in the communication system 20 shown in FIG2A . Alternatively, the wireless headset may be the wireless headset 211 in the communication system 21 shown in FIG2B , and the terminal may be the terminal 212 in the communication system 21 shown in FIG2B .
[0106] It can be understood that the content carried by the signal frame includes audio data, and the audio data can be played by the speaker of the wireless headset after audio decoding.
[0107] Optionally, the wireless headset may determine the signal quality of the first antenna based on the first signal frame, such as by determining the signal quality of the first antenna based on the RSSI of the first signal frame. Alternatively, the signal quality of the first antenna may be determined based on a combination of multiple signal frames received by the first antenna, such as by determining the signal quality of the first antenna based on the first signal frame and at least one signal frame prior to the first signal frame. This is not limited to the above.
[0108] S402: When the wireless headset successfully receives the first signal frame, it switches from the first antenna to the second antenna and detects the signal quality of the second antenna.
[0109] In the present application, the polarity direction of the first antenna is different from the polarity direction of the second antenna, and signals with different polarity directions can be received. Taking a dual-antenna wireless headset as an example, the first antenna and the second antenna can be built into the dual-antenna wireless headset, with the first antenna being a horizontal polarity antenna and the second antenna being a vertical polarity antenna, or the first antenna being a vertical polarity antenna and the second antenna being a horizontal polarity antenna. Alternatively, the radiation direction of the first antenna is different from the radiation direction of the second antenna, and the two antennas can radiate signals in different directions. Still taking the dual-antenna wireless headset as an example, the first antenna can point to the front of the body and the second antenna can point to the back of the body, or the first antenna can point to the back of the body and the second antenna can point to the front of the body.
[0110] As can be understood, since the wireless headset successfully receives the first signal frame, it can play the audio data carried by the first signal frame. Furthermore, the wireless headset can switch from the first antenna to the second antenna to test the signal quality of the second antenna. This allows the wireless headset to test the signal quality of the second antenna while maintaining playback of the audio data carried by the first signal frame.
[0111] It is understandable that the wireless headset can detect the signal quality of the second antenna through various methods. The following describes the following methods 1 and 2 as examples.
[0112] Method 1: The wireless headset uses a retransmitted signal frame of the first signal frame to determine the signal quality of the second antenna.
[0113] In one possible implementation, upon successfully receiving a first signal frame, the wireless headset sends a first response message indicating that reception of the first signal frame failed. It is understood that the first response message may trigger the terminal to retransmit the first signal frame to the wireless headset. The terminal then sends a third signal frame to the wireless headset. In response, the wireless headset receives the third signal frame via a second antenna and determines the signal quality of the second antenna based on the third signal frame. The third signal frame is a retransmitted signal frame of the first signal frame.
[0114] Optionally, the wireless headset can use the first antenna to send the first response information, or switch from the first antenna to the second antenna and use the second antenna to send the first response information, without limitation. It can be understood that the wireless headset can indicate the reception status of the first signal frame through the automatic repeat request number (ARQN) bit carried in the empty type (NULL) frame. For example, when the first reception of the first signal frame fails, the ARQN bit can be 0001; when the first reception of the first signal frame is successful, the ARQN bit can be 0000; when the second reception of the first signal frame (i.e., receiving the first retransmitted signal frame of the first signal frame) fails, the ARQN bit can be 0002, and so on. It can be seen that the wireless headset can determine the ARQN bit included in the first response information to be 0001.
[0115] Exemplarily, the wireless earphone can determine the signal quality of the second antenna according to the RSSI corresponding to the received third signal frame. Wherein, the unit of RSSI can be decibel milliwatt (dBm). Specifically, when -70dBm < RSSI, the signal quality of the second antenna can be determined to be excellent; when -80dBm < RSSI < -70dBm, the signal quality of the second antenna can be determined to be good; when -90dBm < RSSI < -80dBm, the signal quality of the second antenna can be determined to be medium; when -100dBm < RSSI < -90dBm, the signal quality of the second antenna can be determined to be poor; when RSSI < -100dBm, the signal quality of the second antenna can be determined to be extremely poor.
[0116] It can be understood that the above is only an example of the wireless earphone determining the signal quality of the second antenna. In specific applications, the wireless earphone can also determine the signal quality of the second antenna according to other parameters characterizing the signal quality. For example, the wireless earphone can determine the signal quality of the second antenna according to PER, or determine the signal quality of the second antenna according to RSSI and PER.
[0117] Optionally, in the case where the reception of the third signal frame fails, the wireless earphone sends a second response message to the terminal. Wherein, the second response message indicates that the third signal frame is received successfully. It can be understood that the third signal frame is a retransmission signal frame of the first signal frame, which is used to determine the signal quality of the second antenna of the wireless earphone and is the same as the audio data carried by the first signal frame. When the first signal frame is successfully received, the audio data carried by the first signal frame can already be played by the speaker of the wireless earphone. The reception result of the third signal frame will not affect the audio playback of the wireless earphone. Therefore, when the reception of the third signal frame fails, it can no longer be retransmitted. Thus, the signal quality of the second antenna is obtained without affecting the user experience.
[0118] It is understandable that in order to improve the accuracy of detecting the signal quality of the second antenna, the wireless headset can trigger the terminal to retransmit the first signal frame multiple times. In this way, the wireless headset can determine the signal quality of the second antenna based on the multiple received retransmitted signal frames. Specifically, after receiving the third signal frame, the wireless headset can send a fourth response message to the terminal. The fourth response message indicates that the third signal frame failed to be received. For example, the fourth response message can be a negative acknowledgement (NACK). Therefore, after receiving the fourth response message, the terminal can send a retransmitted signal frame of the first signal frame to the wireless headset, such as the fourth signal frame. After receiving the fourth signal frame, the wireless headset can send a negative acknowledgement (NACK) or an acknowledgement (ACK) to the terminal. If the wireless headset sends an ACK, the terminal will stop retransmitting, and the wireless headset can determine the signal quality of the second antenna based on the third and fourth signal frames. If the wireless headset sends a negative acknowledgement (NACK), the terminal will continue to send retransmitted signal frames of the first signal frame to the wireless headset, and the wireless headset can determine the signal quality of the second antenna based on more retransmitted signal frames.
[0119] It is understandable that the terminal usually periodically sends signal frames to the wireless headset. Therefore, in order to ensure the user experience, the process of the wireless headset receiving the retransmitted signal frame of the first signal frame can be performed before the arrival of the next initially transmitted signal frame of the first signal frame. For example, if the terminal sends signal frames according to a period T, the terminal can send signal frame 1 at time t0, send signal frame 2 at time (t0+T), send signal frame 3 at time (t0+2T), etc., if the first signal frame is signal frame 1, the wireless headset can detect the signal quality of the second antenna in the above manner after successfully receiving signal frame 1 and before receiving signal frame 2.
[0120] Taking T equal to 500ms as an example, as shown in Figure 5, the terminal can send the first signal frame at time 501, send the first retransmission signal frame (such as the third signal frame) corresponding to the first signal frame at time 502, send the second retransmission signal frame (such as the fourth signal frame) corresponding to the first signal frame at time 503, send the third retransmission signal frame (such as the fifth signal frame) corresponding to the first signal frame at time 504, and send the initial transmission signal frame after the first signal frame (such as the second signal frame) at time 505. Among them, the initial transmission signal frame means that the audio data carried by the signal frame is transmitted for the first time. The transmission period of the initial transmission signal frame can be 500ms, that is, the time interval between time 505 and time 501 is 500ms. Of course, it can also be other durations without limitation.
[0121] In conjunction with Figure 5, the wireless headset can determine the signal quality of the second antenna based on the reception quality of multiple retransmitted signal frames of the first signal frame, namely the third signal frame, the fourth signal frame and the fifth signal frame, and before the arrival of time 505, determine the signal quality of the second antenna based on more retransmitted signal frames of the first signal frame. This can eliminate the influence of accidental factors. Compared with the result of the signal quality of the second antenna obtained based on one retransmitted signal frame, the result of the signal quality of the second antenna obtained based on multiple retransmitted signal frames can be more accurate.
[0122] Method 2: The wireless headset determines the signal quality of the second antenna based on the response frame corresponding to the detection frame. The detection frame can be used to detect the connection status between the wireless headset and the terminal.
[0123] In method 2, the wireless headset can send a first detection frame through the second antenna, receive a first response frame through the second antenna, and determine the signal quality of the second antenna based on the first response frame. The first response frame is used to indicate that the first detection frame has been received. The first detection frame can be a connection status detection frame (such as a polling (POLL) frame). The wireless headset can initiate a wireless connection status detection to the terminal through the first detection frame. If the terminal successfully receives the first detection frame, it means that the terminal's reception is normal. The terminal can reply to the wireless headset with a first response frame (such as a NULL frame). The wireless headset receives the first response frame, which means that the connection between the wireless headset and the terminal is normal.
[0124] In one possible implementation, the wireless headset can determine the signal quality of the second antenna based on the RSSI and / or PER corresponding to the first response frame. For details, please refer to the method in Method 1 where the wireless headset determines the signal quality of the second antenna based on the third signal frame, which will not be repeated here.
[0125] It can be understood that the purpose of the wireless headset initiating connection status detection is to obtain the signal quality of the second antenna in the idle time before the next initial transmission signal frame (such as the second signal frame) of the first signal frame, and it will not affect the reception of the second signal frame.
[0126] As will be appreciated, to improve the accuracy of detecting the second antenna's signal quality, the wireless headset can trigger the terminal to send multiple response frames. In this way, the wireless headset can determine the second antenna's signal quality based on the multiple response frames. Specifically, after receiving the first response frame, the wireless headset can send a second detection frame to the terminal, prompting the terminal to send a second response frame to the wireless headset. Therefore, after receiving the second response frame, the wireless headset can determine the second antenna's signal quality based on the first and second response frames.
[0127] S403: The terminal sends a second signal frame to the wireless headset. Correspondingly, the wireless headset receives the second signal frame from the terminal via the target antenna.
[0128] In one possible implementation, the wireless headset determines the antenna with the best signal quality as the target antenna based on the signal quality of the first and second antennas. For example, if the RSSI of the received signal corresponding to the first antenna is -80dBm and the RSSI of the received signal corresponding to the second antenna is -60dBm, the wireless headset may determine the second antenna as the target antenna. It should be understood that if the wireless headset has more than two antennas, the antenna with the best signal quality may be selected as the target antenna based on the signal quality of each antenna.
[0129] It should be understood that because the position of the terminal is changing, the wireless channel may be time-varying, and the polarity relationship between the wireless headset and the terminal may also change. Therefore, after the wireless headset successfully establishes a connection with the terminal, the above methods S401 to S403 can be repeated to update the target antenna at any time to ensure that the wireless headset uses the antenna with the best signal quality, thereby ensuring the user experience. Alternatively, because the position of the terminal is changing, the wireless headset needs to switch the antenna to communicate with the terminal using an antenna whose radiation direction is consistent with the terminal position to improve the communication quality. Therefore, after the wireless headset successfully establishes a connection with the terminal, the above methods S401 to S403 can be repeated to update the target antenna at any time to ensure that the wireless headset uses an antenna that radiates towards the terminal, thereby ensuring the user experience.
[0130] According to the above method, after successfully receiving a signal frame (such as the first signal frame), the wireless headset can use the period before the arrival of the next initial transmission signal frame of the signal frame (such as the second signal frame) to request at least one data transmission from the terminal (the data can be a retransmission signal frame of the first signal frame in method 1, or the first response frame in method 2, etc.) to detect the signal quality of the second antenna and determine the target antenna for receiving the second signal frame. Because the process of the wireless headset determining the signal quality of the second antenna is performed before the arrival of the second signal frame, the audio data of the first signal frame can be played through the speaker of the wireless headset during this period. Therefore, the reception status (success or failure) of the retransmission signal frame received by the second antenna will not affect the sound quality heard by the user through the speaker, thereby achieving the measurement of the signal quality of other antennas without affecting the user experience.
[0131] The above mainly introduces the solution provided by the present application from the perspective of the interaction between the wireless headset and the terminal. Accordingly, the present application also provides a communication device, which can be the wireless headset in the above method embodiment, or a device including the above wireless headset, or a component that can be used for the wireless headset. It can be understood that in order to achieve the above functions, the above wireless headset includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm operations of the various examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0132] The present application can divide the functional modules of the wireless headset according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into a single processing module. The above integrated modules can be implemented in the form of hardware or software functional modules. It should be understood that the division of modules in this application is schematic and is only a logical functional division. In actual implementation, other division methods may be used.
[0133] For example, FIG6 shows a schematic diagram of the structure of a communication device 60, where the functional modules are divided in an integrated manner. Communication device 60 includes an interface module 601 and a processing module 602. Interface module 601, also known as an interface unit, is configured to perform transceiver operations and may be, for example, an interface circuit, a transceiver, a transceiver, or a communication interface. Processing module 602, also known as a processing unit, is configured to perform operations other than transceiver operations and may be, for example, a processing circuit or a processor.
[0134] In some embodiments, the communication device 60 may further include a storage module (not shown in FIG. 6 ) for storing program instructions and data.
[0135] Exemplarily, the communication device 60 is used to implement the function of a wireless headset. The communication device 60 is, for example, the wireless headset of the embodiment shown in FIG4 .
[0136] The interface module 601 is configured to receive a first signal frame via a first antenna. For example, the interface module 601 may be configured to execute S401.
[0137] The processing module 602 is configured to switch from the first antenna to the second antenna and detect the signal quality of the second antenna when the first signal frame is successfully received. For example, the processing module 602 may be configured to execute S402.
[0138] The interface module 601 is further configured to receive a second signal frame through a target antenna, where the second signal frame is the next initially transmitted signal frame after the first signal frame, and the target antenna is the antenna with the best signal quality between the first antenna and the second antenna. For example, the interface module 601 can be configured to execute S403.
[0139] In one possible implementation, interface module 601 is further configured to send a first response message indicating a failure to receive the first signal frame. Processing module 602 is specifically configured to receive a third signal frame via a second antenna, where the third signal frame is a retransmitted signal frame of the first signal frame. Processing module 602 is further specifically configured to determine the signal quality of the second antenna based on the third signal frame.
[0140] In a possible implementation, the interface module 601 is further configured to send second response information when the third signal frame fails to be received, where the second response information indicates that the third signal frame is successfully received.
[0141] In one possible implementation, the processing module 602 is specifically configured to send a first detection frame through the second antenna; the processing module 602 is further specifically configured to receive a first response frame through the second antenna, where the first response frame is used to indicate receipt of the first detection frame; and the processing module 602 is further specifically configured to determine a signal quality of the second antenna based on the first response frame.
[0142] In one possible implementation, processing module 602 is further configured to play the audio data carried by the first signal frame. In a simple embodiment, those skilled in the art will appreciate that communication device 60 may adopt the form shown in FIG3 . For example, processor 301 in FIG3 may invoke computer-executable instructions stored in memory 303 to cause communication device 60 to execute the method described in the above embodiment.
[0143] Exemplarily, the functions / implementation processes of the interface module 601 and the processing module 602 in FIG6 can be implemented by the processor 301 in FIG3 calling computer-executable instructions stored in the memory 303. Alternatively, the functions / implementation processes of the processing module 602 in FIG6 can be implemented by the processor 301 in FIG3 calling computer-executable instructions stored in the memory 303, and the functions / implementation processes of the interface module 601 in FIG6 can be implemented by the communication interface 304 in FIG3.
[0144] It is understandable that one or more of the above modules or units can be implemented by software, hardware or a combination of the two. When any of the above modules or units is implemented by software, the software exists in the form of computer program instructions and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor can be built into an SoC (system on chip) or an ASIC, or it can be an independent semiconductor chip. In addition to the core used to execute software instructions to perform calculations or processing within the processor, it can further include necessary hardware accelerators, such as field programmable gate arrays (FPGAs), PLDs (programmable logic devices), or logic circuits that implement dedicated logic operations.
[0145] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a digital signal processing (DSP) chip, a microcontroller unit (MCU), an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.
[0146] Optionally, the present application also provides a chip system, comprising: at least one processor and an interface, wherein the at least one processor is coupled to a memory via the interface, and when the at least one processor executes a computer program or instruction in the memory, the method in any of the above method embodiments is executed. In one possible implementation, the chip system also includes a memory. Optionally, the chip system can be composed of a chip, or can include a chip and other discrete devices, which is not specifically limited in this application.
[0147] Optionally, the present application also provides a computer-readable storage medium. All or part of the processes in the above-mentioned method embodiments can be completed by a computer program to instruct the relevant hardware. The program can be stored in the above-mentioned computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The computer-readable storage medium can be an internal storage unit of the communication device of any of the above-mentioned embodiments, such as a hard disk or memory of the communication device. The above-mentioned computer-readable storage medium can also be an external storage device of the above-mentioned communication device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above-mentioned communication device. Furthermore, the above-mentioned computer-readable storage medium can also include both the internal storage unit of the above-mentioned communication device and an external storage device. The above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned communication device. The above-mentioned computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
[0148] Optionally, the present application also provides a computer program product. All or part of the processes in the above method embodiments may be completed by a computer program instructing related hardware. The program may be stored in the above computer program product, and when executed, the program may include the processes in the above method embodiments.
[0149] Optionally, the present application also provides a computer instruction. All or part of the process in the above method embodiment can be completed by the computer instruction to instruct the relevant hardware (such as wireless headphones). The program can be stored in the above computer-readable storage medium or in the above computer program product.
[0150] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0151] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0152] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0154] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A signal detection method for a wireless headset, characterized in that, The method includes: Receiving a first signal frame via a first antenna; In the case of successfully receiving the first signal frame, switching from the first antenna to a second antenna and detecting the signal quality of the second antenna; Receiving a second signal frame via a target antenna, where the second signal frame is the next initial transmission signal frame of the first signal frame, and the target antenna is the antenna with the best signal quality among the first antenna and the second antenna.
2. The method according to claim 1, characterized in that, The method further includes: Sending a first response message indicating that the reception of the first signal frame fails; The detecting the signal quality of the second antenna includes: Receiving a third signal frame via the second antenna, where the third signal frame is a retransmission signal frame of the first signal frame; Determining the signal quality of the second antenna according to the third signal frame.
3. The method according to claim 2, characterized in that, The method further includes: In the case of failing to receive the third signal frame, sending a second response message indicating that the reception of the third signal frame is successful.
4. The method according to claim 1, wherein The detecting the signal quality of the second antenna includes: Sending a first detection frame via the second antenna; Receiving a first response frame via the second antenna, where the first response frame is used to indicate that the first detection frame is received; Determining the signal quality of the second antenna according to the first response frame.
5. The method according to any one of claims 1 to 4, characterized in that The method further includes: Playing the audio data carried by the first signal frame.
6. A communication device, characterized in that, The communication device includes: A receiving module for receiving a first signal frame via a first antenna; A processing module for, in the case of successfully receiving the first signal frame, switching from the first antenna to a second antenna and detecting the signal quality of the second antenna; The receiving module is further configured to receive a second signal frame via a target antenna, where the second signal frame is the next initial transmission signal frame of the first signal frame, and the target antenna is the antenna with the best signal quality among the first antenna and the second antenna.
7. The communication device according to claim 6, wherein: The receiving module is further configured to send a first response message indicating that the reception of the first signal frame fails; The processing module is specifically configured to control the receiving module to receive a third signal frame via the second antenna, where the third signal frame is a retransmission signal frame of the first signal frame; The processing module is further specifically configured to determine the signal quality of the second antenna according to the third signal frame.
8. The communication device according to claim 7, wherein: The receiving module is further configured to, in the case of failing to receive the third signal frame, send a second response message indicating that the reception of the third signal frame is successful.
9. The communication device according to claim 6, wherein: The processing module is specifically configured to send a first detection frame via the second antenna; The processing module is further specifically configured to receive a first response frame via the second antenna, where the first response frame is used to indicate that the first detection frame is received; The processing module is further specifically configured to determine the signal quality of the second antenna according to the first response frame.
10. The communication device according to any one of claims 6-9, wherein: The processing module is further configured to play the audio data carried by the first signal frame.
11. A communication device, characterized in that, Comprising: A processor, the processor is coupled to a memory, the memory is configured to store programs or instructions, when the programs or instructions are executed by the processor, the device is caused to execute the method according to any one of claims 1 to 5.
12. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed, the computer is caused to execute the method according to any one of claims 1 to 5.
13. A computer program product, comprising computer program code, characterized in that, When the computer program code runs on a computer, the computer is caused to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Wireless earphone for wireless communication, wireless communication method and medium
CN111935796A
Apparatus, systems, and methods for selecting a wireless device antenna for communication
CN113826331A
Method and Apparatus for Performing Uplink Antenna Transmit Diversity
US20120008510A1
Electronic device with antenna switching capabilities
US20130033996A1