Headphone connection method, headphone, headphone box and storage medium

By setting the speaker in the headphone box and playing preset audio signals, the signal instability caused by corrosion of the wireless headphone connector is solved, and more accurate and timely Bluetooth connection status detection and establishment are achieved.

CN115119106BActive Publication Date: 2025-02-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110293192.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-18
Publication Date
2025-02-25
Estimated Expiration
2041-03-18

AI Technical Summary

Technical Problem

In the existing wireless headphone connection technology, connector corrosion causes signal instability, affecting the accuracy of headphone box status detection and the timeliness of Bluetooth connection.

Method used

A speaker is set inside the headphone box. When the headphone box is in the open box state, a preset audio signal is played through the speaker. The wireless headphones receive this signal through the microphone to determine the headphone box state and enter the Bluetooth connection state.

Benefits of technology

Through the coordination of speakers and microphones, misjudgment caused by poor connector contact is avoided, and the accuracy and timeliness of wireless headphones entering the Bluetooth connection state are improved. Bluetooth connection can be established without leaving the box, making it convenient for users to use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115119106B_ABST
    Figure CN115119106B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a headphone connection method, a headphone, a headphone box and a storage medium, which belongs to the field of headphone. The method includes: when the headphone box is in an open box state, a first preset audio signal is played through the speaker, and when the wireless headphone receives the first audio signal through the microphone; if the first audio signal matches the first preset audio signal, the wireless headphone determines that the headphone box is in an open box state and enters a Bluetooth connection state, and when the wireless headphone is in a Bluetooth connection state, a Bluetooth connection is established with a pairing terminal. The wireless headphone determines whether the headphone box is in an open box state by determining whether a preset audio signal emitted by the headphone box is received, and then determines whether to enter a Bluetooth connection state, which helps to improve the accuracy and timeliness of the wireless headphone entering the Bluetooth connection state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of headphones, and in particular to a headphone connection method, headphones, a headphone box, and a storage medium. Background Art

[0002] The left and right earphones of True Wireless Stereo (TWS) Bluetooth earphones are connected wirelessly, as well as between the earphones and the terminal. The left and right earphones can be connected to the terminal at the same time or individually. This type of earphone product often needs to be equipped with an earphone box, which can charge the earphones and exchange various information with the earphones. Summary of the invention

[0003] The embodiment of the present application provides an earphone connection method, earphone, earphone box and storage medium. The technical solution is as follows:

[0004] In one aspect, a headset connection method is provided, the method being used for a wireless headset, the method comprising:

[0005] receiving a first audio signal via a microphone;

[0006] In response to the first audio signal matching the first preset audio signal, determining that the earphone box is in an open box state and enters a Bluetooth connection state, the first preset audio signal is an audio signal played when the earphone box is in an open box state, and the earphone box is used to accommodate the wireless earphone;

[0007] In response to entering the Bluetooth connection state, a Bluetooth connection is established with a paired terminal.

[0008] On the other hand, a headset connection method is provided, the method is used for a headset box, the headset box is provided with at least one headset accommodating position inside, the headset accommodating position is used to accommodate a wireless headset, a speaker is provided inside the headset accommodating position, and the position of the speaker is opposite to the position of the microphone of the wireless headset in the accommodating state, the method comprises:

[0009] In the unboxing state, a first preset audio signal is played through the speaker, and the first preset audio signal is used to instruct the wireless headset to enter the Bluetooth connection state.

[0010] On the other hand, an earphone connection device is provided, the device being used for a wireless earphone, the device comprising:

[0011] A first receiving module, configured to receive a first audio signal through a microphone;

[0012] a first determining module, configured to determine that the earphone box is in an open box state and enter a Bluetooth connection state in response to a match between the first audio signal and a first preset audio signal, wherein the first preset audio signal is an audio signal played when the earphone box is in an open box state, and the earphone box is used to accommodate the wireless earphone;

[0013] The first Bluetooth connection module is used to establish a Bluetooth connection with a paired terminal in response to entering the Bluetooth connection state.

[0014] On the other hand, an earphone connection device is provided, the device is used for an earphone box, the earphone box is provided with at least one earphone accommodating position inside, the earphone accommodating position is used to accommodate a wireless earphone, a speaker is provided inside the earphone accommodating position, and the position of the speaker is opposite to the position of the microphone of the wireless earphone in the accommodating state, the device comprises:

[0015] The first playing module is used to play a first preset audio signal through the speaker when the box is opened, and the first preset audio signal is used to instruct the wireless headset to enter a Bluetooth connection state.

[0016] On the other hand, an embodiment of the present application provides a wireless headset, which includes a processor, a memory, a wireless communication component and a microphone; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the headset connection method on the wireless headset side as described in the above aspect.

[0017] On the other hand, an embodiment of the present application provides an earphone box, which includes a processor, a memory, a power supply component and a speaker; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the earphone connection method on the earphone box side as described in the above aspect.

[0018] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the headphone connection method as described in the above aspect.

[0019] The headphone connection method provided in the embodiment of the present application is adopted, and a speaker is set inside the headphone box. When the headphone box is in the open box state, a first preset audio signal is played through the speaker. When the wireless headset receives the first preset audio signal through the microphone, it is determined that the headphone box is in the open box state, that is, it enters the Bluetooth connection state and establishes a Bluetooth connection with the pairing terminal. The wireless headset determines whether the headphone box is in the open box state by determining whether the preset audio signal emitted by the headphone box is received, and then determines whether to enter the Bluetooth connection state. This can avoid the instability of the transmission signal caused by connector corrosion, and improve the accuracy and timeliness of the wireless headset entering the Bluetooth connection state; the wireless headset can enter the Bluetooth connection state without taking it out of the box, so as to establish the Bluetooth connection as early as possible, thereby facilitating user use. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of an implementation environment shown in an exemplary embodiment of the present application is shown;

[0021] Figure 2 A schematic diagram showing a headphone connection method according to an exemplary embodiment of the present application is shown;

[0022] Figure 3 It is a schematic diagram of the settings of different positions of the speakers in the headphone box;

[0023] Figure 4 A flowchart of an earphone connection method according to an exemplary embodiment of the present application is shown;

[0024] Figure 5 Schematic diagram of the earphone box detecting the opening status;

[0025] Figure 6 A flowchart of a headset connection method according to another exemplary embodiment of the present application is shown;

[0026] Figure 7 A flowchart of a headset connection method according to another exemplary embodiment of the present application is shown;

[0027] Figure 8 A flow chart of a complete earphone connection method shown in another exemplary embodiment of the present application is shown;

[0028] Fig. 9 A flowchart of a headset connection method according to another exemplary embodiment of the present application is shown;

[0029] Fig.10 A structural block diagram of an earphone connection device provided by an embodiment of the present application is shown;

[0030] Fig.11 A structural block diagram of an earphone connection device provided by another embodiment of the present application is shown;

[0031] Fig.12 A structural block diagram of a wireless headset provided by an exemplary embodiment of the present application is shown;

[0032] Fig.13 A structural block diagram of an earphone box provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0033] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0034] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0035] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment shown in an exemplary embodiment of the present application, wherein the implementation environment includes a wireless headset 110 and an earphone box 120.

[0036] Among them, the wireless headset 110 is a portable electronic device with a listening function. The wireless headset 110 can be a single-ear wireless headset or a dual-ear wireless headset. The single-ear wireless headset refers to a wireless headset connected to the terminal by wireless means; the dual-ear wireless headset is divided into a left ear and a right ear, and the left ear and the right ear, the left and right ears and the terminal can be connected by wireless means, and the left and right earphones can be connected to the terminal at the same time, or they can be connected to the terminal separately. In some cases, the dual wireless headset can be a True Wireless Stereo (TWS) headset, including a first headset and a second headset, wherein at least one headset establishes a Bluetooth connection with the terminal (pairing terminal), and a Bluetooth connection is established between the two headsets, so that the headset connected to the terminal can forward the data sent by the terminal to the headset not connected to the terminal; it can also be that the headset that has not established a Bluetooth connection with the terminal obtains the data sent by the terminal by Bluetooth monitoring. There can be many ways to connect the dual wireless headset to the terminal, all of which belong to the protection scope of this application.

[0037] In a possible implementation, the wireless headset 110 has a Bluetooth connection function, and the wireless headset 110 communicates with the terminal via the Bluetooth connection.

[0038] The earphone box 120 is a device with storage and charging and discharging functions. At least one accommodating position is provided inside the earphone box 120, and the accommodating position is used to accommodate the wireless earphone 110. The number of accommodating positions is related to whether the wireless earphone 110 is single-ear or dual-ear. For example, if the wireless earphone 110 is single-ear, the earphone box has only one accommodating position. At the same time, both the wireless earphone 110 and the earphone box 120 are provided with connectors. The connectors that are coupled when the two are in contact can serve as a charging and discharging path between the wireless earphone 110 and the earphone box 120, or a path for information exchange between the two.

[0039] In a possible application scenario, the wireless headset 110 and the headset box 120 may interact with each other through information, so that the wireless headset 110 enters a Bluetooth connection state in a timely manner, such as a reconnection or pairing state.

[0040] In the related art, the connector 130 between the wireless headset 110 and the headset box 120 can be directly used to realize the interaction of the headset box status, and then determine whether to enter the Bluetooth connection state. Schematically, when the headset box 120 detects that the box cover is open, it can send an electrical signal to the wireless headset 110 through the connector 130, and the wireless headset 110 enters the power-on state when receiving the electrical signal; the headset box 120 then sends a Bluetooth connection signal (electrical signal) to the wireless headset 110 through the connector 130, and correspondingly, the wireless headset 110 enters the Bluetooth connection state when receiving the Bluetooth connection signal.

[0041] Obviously, when using the headphone connection method provided by the relevant technology, after long-term use, there may be foreign matter inside the headphone box, or the connector may be corroded, both of which may cause poor contact between the wireless headphone connector and the headphone box connector, thereby affecting the reliability of various signals transmitted through the connector, and further affecting the accuracy of the wireless headset in determining the status of the headphone box, as well as the accuracy and timeliness of the wireless headset in determining whether to enter the Bluetooth connection state.

[0042] In order to solve the problems existing in the related art, the method provided in the embodiment of the present application improves the structure of the original earphone box, thereby improving the entire earphone connection process. Figure 2As shown, in the embodiment of the present application, a speaker 204 is provided inside the earphone box 202. When the earphone connection detection is performed, the earphone box 202 plays an audio signal 205 through the speaker 204. When the wireless earphone 201 receives the audio signal 205 through the microphone 203, it is determined that the earphone box is in the open box state and enters the Bluetooth connection state, and then performs subsequent Bluetooth connection operations. Compared with the related art that uses a connector to transmit Bluetooth connection signals, the wireless earphone determines whether to enter the Bluetooth connection state by determining whether the audio signal emitted by the earphone box is received, which can avoid the misjudgment of the open box caused by poor contact of the connector, and helps the wireless earphone to accurately and timely perform the Bluetooth connection establishment operation.

[0043] It should be noted that the above embodiment only takes a single-ear wireless headset as an example for description. In other possible implementations, it may also be a left-ear wireless headset and a right-ear wireless headset. For example, one headset may be set as a master headset and the other headset may be set as a slave headset. When the headset box is opened, the master headset detects the first audio signal to initiate a Bluetooth connection with the terminal. Accordingly, the headset box may include two accommodating positions, and speakers are respectively provided at the bottom of the two accommodating positions. This implementation does not limit this.

[0044] Optionally, the position of the speaker inside the earphone box can be opposite to the position of the wireless earphone microphone in the accommodated state (that is, the speaker inside the earphone box is facing the wireless earphone microphone), thereby improving the sound reception effect of the wireless earphone microphone and further improving the accuracy of starting the Bluetooth connection.

[0045] In an illustrative manner, in a storage state, the wireless earphone is placed in an earphone box, such as Figure 3 As shown in (A), when a microphone 303 is provided at the bottom of the wireless headset 301, a speaker 304 should be provided at the bottom of the headset box 302 accordingly; Figure 3 As shown in (B) in FIG. 1 , if a microphone 303 is provided on the right side of the wireless headset 305 , a speaker 304 should be provided on the right side of the headset box 306 accordingly.

[0046] For the convenience of description, the following embodiments are schematically described by taking the wireless headset as a single-ear wireless headset and the speaker being arranged at the bottom of the headset box as an example.

[0047] Please refer to Figure 4 , which shows a flowchart of an earphone connection method shown in an exemplary embodiment of the present application. In this embodiment, the earphone connection method is used for Figure 1 Taking the implementation environment shown in FIG. 1 as an example, the method includes:

[0048] Step 401: When the earphone box is opened, the earphone box plays a first preset audio signal through a speaker, and the first preset audio signal is used to instruct the wireless earphone to enter a Bluetooth connection state.

[0049] When the wireless headset is not in use, the wireless headset is generally placed in an earphone box, and the earphone box is in a closed state. When the user needs to use the wireless headset, the user first needs to open the earphone box. When the earphone box determines that it is in an open state, or when the closed state is converted to an open state, a first preset audio signal is played through the speaker. Optionally, the earphone box detects that it is in an open state by providing a magnet or other element that can generate a magnetic field on the edge of the earphone box cover, and providing a Hall switch on the edge of the earphone box body. The position of the Hall switch is opposite to the position of the magnet on the cover when the earphone box is in a closed state. When the earphone box is in a closed state, the magnet is close to the Hall switch, and the Hall switch can output a low potential voltage (low level) or a signal representing an off state. When the earphone box is in an open state, the magnet is away from the Hall switch, and the Hall switch outputs a high potential voltage (high level) or an on signal. Schematically, as Figure 5 As shown, a magnet 505 is arranged on the edge of the cover 501 of the earphone box, and a Hall switch 504 is arranged on the edge of the box body 502 of the earphone box. When the box opening operation 503 is performed, the magnet 505 is away from the Hall switch 504, and the Hall switch 504 generates a high level signal 506. When the earphone box receives the high level signal 506, it is confirmed that it is in the box opening state.

[0050] Optionally, a Hall switch may be arranged on the edge of the cover of the earphone box, and correspondingly, a magnet may be arranged on the edge of the body of the earphone box.

[0051] Optionally, magnets may be provided on both the box cover and the box body of the earphone box, and when the earphone box is in the closed box state, the two magnets are coupled, and when the earphone box is in the open box state, the two magnets are disconnected. When the earphone box detects that the two magnets are disconnected, it is determined that it is in the open box state.

[0052] Optionally, in addition to the Hall switch in the above embodiment, other sensors can also be used to detect whether the earphone box is in an open state, such as an infrared proximity sensor, which detects the open or closed state by judging the distance between the box cover and the box body.

[0053] The speaker is a transducer device that converts an electrical signal into an acoustic signal, and is used to send an audio signal for detecting the Bluetooth connection status. Speakers can be divided into different types according to different working principles, such as electric, electrostatic, electromagnetic, piezoelectric, etc. This embodiment does not limit the type of speaker.

[0054] In a possible implementation, when the earphone box switches from a closed box state to an open box state, it is determined that the user may need to use the wireless earphones placed in the earphone box at this time. In order to enable the wireless earphones to enter the Bluetooth connection state in time, a Bluetooth connection state detection is required. At this time, the earphone box starts the speaker and plays a first preset audio signal, and instructs the wireless earphones to enter the Bluetooth connection state through the first preset audio signal.

[0055] Among them, the first preset audio signal can be a continuous sound wave signal of a fixed frequency, such as a continuous 20KHZ sound wave signal; it can also be a continuous periodically changing sound wave signal, that is, the frequency changes periodically over time, such as a sine wave; it can also be a preset ringtone or a preset voice. This embodiment does not limit the first preset audio signal.

[0056] Since the present embodiment transmits the switch box status of the headphone box to the wireless headphones through sound from the headphone box, in order to avoid noise interference to the user caused by the sound, the volume of the first preset audio signal can be appropriately reduced, or the frequency of the first preset audio signal can be increased. Schematically, the frequency of the first preset audio signal is set higher than 20KHZ, so that the human ear cannot hear the first preset audio signal.

[0057] Optionally, the first preset audio signal may be pre-stored in the earphone box, and correspondingly, when the earphone determines that the first preset audio signal needs to be played, it may be played directly.

[0058] In a possible implementation, when the earphone box is in an open box state, that is, a first preset audio signal is played through a speaker, so that the wireless earphone determines whether to enter a Bluetooth connection state based on the received audio signal.

[0059] Optionally, the earphone box can play the first preset audio signal in a loop at a preset time interval, wherein the preset time interval can be 2s, or the earphone box can continuously play the first preset audio signal within a preset time period.

[0060] Step 402: The wireless headset receives a first audio signal through a microphone.

[0061] Among them, the microphone is a transducer that converts sound signals into electrical signals. When applied to wireless headphones, the microphone can receive the user's voice and other environmental audio signals. Under normal circumstances, the microphone on the wireless headset is turned on by default and can receive external audio signals at any time. When the microphone receives an audio signal, it will perform corresponding operations.

[0062] Optionally, the first audio signal may be user voice, ambient sound, an audio signal emitted by an earphone box, etc.

[0063] Step 403: In response to the first audio signal matching the first preset audio signal, the wireless headset determines that the headset box is in an open box state and enters a Bluetooth connection state.

[0064] Since the first audio signal can be user voice, ambient sound, other audio signals emitted by the headphone box, etc., in order to improve the accuracy of judging whether the headphone box is in an open box state, and thereby improve the accuracy of Bluetooth connection status detection, in a possible implementation, when the wireless headset receives the first audio signal, it is necessary to verify the first audio signal to determine whether the first audio signal matches the first preset audio signal.

[0065] The first preset audio signal may be pre-stored inside the wireless headset (for example, in a built-in memory of the wireless headset). After the wireless headset receives the first audio signal, it matches the first audio signal with the first preset audio signal, and then determines whether the first audio signal is used to transmit the earphone box opening state based on the matching result. In an illustrative manner, if the matching result indicates that the first audio signal matches the first preset audio signal, the wireless headset may determine that the earphone box is in the opening state and needs to enter the Bluetooth connection state; otherwise, if the matching result indicates that the first audio signal does not match the first preset audio signal, the wireless headset stops entering the Bluetooth connection state.

[0066] It should be noted that if the first audio signal and the first preset audio signal are matched successfully, it can be understood that the wireless headset receives the first preset audio signal; if the first audio signal and the first preset audio signal are not matched successfully, it can be understood that the wireless headset does not receive the first preset audio signal.

[0067] Optionally, in order to avoid accidental phenomena causing the wireless headset to mistakenly enter the Bluetooth connection state, in a possible implementation, the wireless headset can receive the first audio signal N times through the microphone, and after N matches, if the results of the N matches all indicate that the first audio signal matches the first preset audio signal, the wireless headset determines that the headset box is in the open box state, where N is an integer greater than or equal to 2. Multiple matches can improve the accuracy of starting the Bluetooth connection and avoid the occurrence of accidental phenomena.

[0068] Optionally, since the first preset audio signal may be interfered by ambient sound during transmission, or the first audio signal received by the wireless headset may be mixed with other ambient sounds, it may not be possible to ensure that the first audio signal completely matches the first preset audio signal. In order to avoid the wireless headset from being unable to enter the Bluetooth connection state in time due to the interference of ambient sound, in a possible implementation, a matching threshold is set. When the wireless headset determines that the matching degree between the first audio signal and the first preset audio signal is higher than the matching threshold, it can be considered that the first preset audio signal is received; otherwise, if the matching degree between the first audio signal and the first preset audio signal is lower than the matching threshold, it is determined that the first preset audio signal is not received. Schematically, the matching threshold can refer to 90%.

[0069] In a possible implementation, when the wireless headset determines that the first audio signal matches the first preset audio signal, that is, it determines that the headset box is in an open box state, it can enter a Bluetooth connection state. When the wireless headset is in the Bluetooth connection state, it can further execute the process of establishing a Bluetooth connection with other devices. Among them, the Bluetooth connection state can also be an active connection state or a connectable state. In the active connection state, the wireless headset can reconnect to the terminal device that was connected last time; the connectable state can also be understood as a discoverable state, and the wireless headset can be discovered by the terminal device and request a connection. For details, please refer to the relevant content of the Bluetooth protocol on establishing a Bluetooth connection.

[0070] Step 404: In response to entering the Bluetooth connection state, the wireless headset establishes a Bluetooth connection with the paired terminal.

[0071] Among them, the pairing terminal is a terminal that can be paired with the wireless headset. For example, when the cover is opened for the first time, when the wireless headset receives the first preset audio signal, it enters the Bluetooth connectable state and sends a Bluetooth broadcast. After the surrounding pairing terminal devices scan the Bluetooth broadcast, they can initiate a pairing request, thereby establishing a Bluetooth connection with the wireless headset. Optionally, if the wireless headset has previously established a Bluetooth connection with the pairing terminal device (already paired), then when the cover is opened, if the wireless headset receives the first preset audio signal, it enters the active connection state and actively reconnects to the last connected pairing terminal. The specific Bluetooth connection method can refer to the relevant provisions of the Bluetooth protocol. With the update and adjustment of the Bluetooth protocol, no specific restrictions are made here. Indicatively, the pairing terminal can be a smart phone, a smart TV, a tablet computer, etc., and this embodiment does not limit the pairing terminal.

[0072] In a possible implementation, when the wireless headset enters the Bluetooth connection state, it searches for nearby devices or paired terminals that can establish a Bluetooth connection, and establishes a Bluetooth connection with the paired terminal.

[0073] In summary, in the embodiment of the present application, a speaker is arranged inside the earphone box. When the earphone box is in the open box state, the first preset audio signal is played through the speaker. When the wireless earphone receives the first preset audio signal through the microphone, it is determined that the earphone box is in the open box state, that is, it enters the Bluetooth connection state and establishes a Bluetooth connection with the pairing terminal. The wireless earphone determines whether the earphone box is in the open box state by determining whether the preset audio signal emitted by the earphone box is received, and then determines whether to enter the Bluetooth connection state. This can avoid the instability of the transmission signal caused by connector corrosion, and improve the accuracy and timeliness of the wireless earphone entering the Bluetooth connection state; the wireless earphone can enter the Bluetooth connection state without taking it out of the box, so as to establish the Bluetooth connection as soon as possible, which is convenient for users to use.

[0074] In a possible application scenario, the first preset audio signal may penetrate the headphone box, and the wireless headset located outside the headphone box may also receive the first preset audio signal. When the wireless headset is outside the headphone box, the wireless headset is generally in use, that is, it has established a Bluetooth connection with a pairing terminal. If the wireless headset still enters the Bluetooth connection state based on the received first preset audio signal, it may affect the normal use of the wireless headset. Therefore, in order to avoid the impact of entering the Bluetooth connection state on the normal use of the wireless headset, it is necessary to determine whether the wireless headset is in the headphone box before entering the Bluetooth connection state.

[0075] In an exemplary example, step 403 may further include the following steps:

[0076] 1. In response to the first audio signal matching the first preset audio signal, determining that the earphone box is in an open box state.

[0077] In order to avoid the impact on the normal use of the wireless headset when the wireless headset is outside the headphone box and directly enters the Bluetooth connection state when receiving the first preset audio signal, in a possible implementation, when the wireless headset determines that the headphone box is in an open box state, it will not immediately enter the Bluetooth connection state, but it is also necessary to determine whether the wireless headset is located in the headphone box, and then determine whether it is necessary to enter the Bluetooth connection state based on the state of the wireless headset.

[0078] 2. In response to the earphone box being in an open box state and the wireless earphone being in the earphone box, entering a Bluetooth connection state.

[0079] In a possible implementation, when the wireless headset determines that the headset box is in an open box state and detects that it is inside the headset box, it indicates that the current scenario is that the wireless headset needs to be switched from an unused state to a used state, and needs to immediately enter a Bluetooth connection state to improve the use efficiency of the wireless headset.

[0080] Optionally, when the wireless headset determines that the headset box is in an open box state and detects that it is outside the headset box, it means that the wireless headset is currently in use and there is no need to enter the Bluetooth connection state, and no other operations need to be performed.

[0081] Optionally, when the wireless headset determines that the headphone box is in an open box state and detects that it is outside the headphone box, it can also send headphone box status information to the pairing terminal, so that when the pairing terminal receives the headphone box status information, it can display relevant prompt information in the display interface corresponding to the pairing terminal.

[0082] In an illustrative manner, the earphone box status information may be earphone box cover opening information, that is, when the wireless earphone determines that the earphone box is opened, it sends a prompt message to the paired terminal that the earphone box is in an open box state. Optionally, the earphone box status information may also be earphone box power information, that is, after the wireless earphone obtains the current power information of the earphone box, it sends the current remaining power information of the earphone box to the paired terminal, which can timely remind the user of the current power status of the earphone box so that the user can determine whether the earphone box needs to be charged.

[0083] Regarding the way in which the wireless headset detects whether it is located in the headphone box, in a possible implementation, the wireless headset can determine whether there is an input voltage signal on the connector. Since when the wireless headset is in the headphone box, the connector of the wireless headset is coupled to the connector of the headphone box, and the headphone box can charge the wireless headset through the connector. Therefore, when the wireless headset detects the presence of an input voltage signal between the connectors, it can be determined that the wireless headset is located in the headphone box; otherwise, it is determined that the wireless headset is outside the headphone box.

[0084] Optionally, it is also possible to detect whether the wireless headset is in the headset box by using a sensor set on the wireless headset, for example, by using a proximity sensor. The proximity sensor can use infrared sensing, that is, it can detect whether the headset is in a wearing state by detecting infrared radiation generated by the human body. If it is in a wearing state, it means that the wireless headset is outside the headset box. It can also be detected by a capacitive sensor, that is, when the wireless headset is worn on the user's ear, a coupling capacitor is generated, thereby changing the output value of the capacitive sensor. The wireless headset can detect whether it is in a wearing state based on the change in the output value. If it is in a wearing state, it means that the wireless headset is outside the headset box.

[0085] In another possible implementation, when the wireless headset determines that the first audio signal and the first preset audio signal do not match, and the wireless headset detects that it is inside the headset box, indicating that the current headset box is in a closed box state, the wireless headset can disconnect the Bluetooth connection with the pairing terminal, thereby avoiding unnecessary power consumption waste of the wireless headset due to maintaining the connection state and affecting the user's use of the pairing terminal.

[0086] In this embodiment, after the wireless headset determines that the headphone box is in an open box state, it is first determined whether the wireless headset is in the headphone box. If the wireless headset is in the headphone box, the wireless headset can disconnect the Bluetooth connection with the pairing terminal; if the wireless headset is outside the headphone box, there is no need to enter the Bluetooth connection state, thereby avoiding disconnecting the Bluetooth connection and affecting the normal use of the wireless headset.

[0087] Since under normal circumstances, the microphone on the wireless headset is turned on by default and can receive other audio signals at any time, in order to avoid the wireless headset misidentifying external audio signals as preset audio signals emitted by the headphone box, resulting in incorrect detection of the open box status, thereby affecting the accuracy of establishing the Bluetooth connection, in a possible implementation, the headphone box can use target coding information to encode the audio signal. Accordingly, only when the wireless headset recognizes that the first audio signal contains the target coding information, can it be determined that the headphone box is in the open box state and enter the Bluetooth connection state.

[0088] Please refer to Figure 6 , which shows a flow chart of a headset connection method shown in another exemplary embodiment of the present application. The method includes:

[0089] Step 601: In an open box state, the earphone box encodes an audio signal based on target encoding information to obtain a first preset audio signal.

[0090] The target coding information may be regular digital information, for example, digital information of the type 101010 is added to the audio signal to obtain a first preset audio signal; the target coding information may also be another audio signal, which is added to the original audio signal to obtain the first preset audio signal. This embodiment does not limit the type of the target coding information.

[0091] In a possible implementation, a digital signal processing (DSP) chip may be provided inside the earphone box, and the audio signal may be encoded by the DSP chip. Optionally, any component capable of encoding the audio signal may be provided, and the audio signal may be encoded by the component.

[0092] Step 602: the earphone box plays a first preset audio signal through a speaker.

[0093] Since the earphone box plays the first preset audio signal to increase the power consumption of the earphone box, in order to improve the battery life of the earphone box so that the internal power supply of the earphone box can provide more power for the wireless earphones, in a possible implementation, the earphone box stops playing the first preset audio signal when it detects that a preset condition is met.

[0094] The preset condition may be a time condition and an earphone box state condition, or may be an earphone box state. In an exemplary example, the process of stopping playing the first preset audio signal may include the following steps:

[0095] 1. In response to the playing time of the first preset audio signal reaching a preset time threshold, stop playing the first preset audio signal.

[0096] The preset duration threshold can be set by the developer or by the user; schematically, the preset duration threshold can be 1 minute; optionally, the preset duration threshold can be a fixed value or a dynamically changing value. If the preset duration threshold is a dynamically changing value, the preset duration threshold can be related to the current remaining power of the earphone box. For example, the preset duration threshold is negatively correlated with the remaining power, that is, the lower the current remaining power of the earphone box, the shorter the corresponding preset duration threshold, and conversely, the higher the current remaining power of the earphone box, the longer the corresponding preset duration threshold.

[0097] Since wireless headphones can generally enter the Bluetooth connection state within a preset duration threshold, and when the wireless headphones enter the Bluetooth connection state, there is no need to continue to receive the first preset audio signal. If the earphone box continues to play the first preset audio signal, it will obviously cause a waste of power in the earphone box. Therefore, when the earphone box determines that the playback time of the first preset audio signal reaches the preset duration threshold, it is assumed that the wireless headphones have entered the Bluetooth connection state, and then the first preset audio signal is stopped.

[0098] 2. In response to switching from the open box state to the closed box state, stop playing the first preset audio signal.

[0099] When the user needs to use the wireless headset, the user will open the headset box and take out the wireless headset. After taking out the wireless headset, the headset box can be closed. That is to say, when the headset box switches from an open box state to a closed box state, it indicates that the wireless headset has entered a Bluetooth connection state. Correspondingly, when the headset box detects that it is in a closed box state, it can stop playing the first preset audio signal.

[0100] 3. In response to the wireless headset changing from an in-box state to an out-of-box state, stop playing the first preset audio signal.

[0101] That is to say, the wireless earphones are sent when they are in the box, and they do not need to be sent again after they are out of the box.

[0102] It should be noted that, by maintaining the playing of the first preset audio signal (continuously or periodically) in the open cover state, some extreme situations can be avoided, such as the user taking out the headset too quickly and the headset cannot recognize it in time.

[0103] Step 603: The wireless headset receives a first audio signal through a microphone.

[0104] The implementation of step 603 may refer to the above embodiment, and will not be described in detail in this embodiment.

[0105] Step 604: The wireless headset decodes the first audio signal to obtain coding information contained in the first audio signal.

[0106] Since the preset audio signal is obtained by encoding the audio signal according to the target coding information, the target coding information can also be pre-stored in the wireless headset. When the wireless headset receives the first audio signal, it should also decode the first audio signal. If the first audio signal does not contain the coding information, it is determined that the first audio signal is not an audio signal for box opening status detection; if the first audio signal contains coding information, it can be determined whether the first audio signal is used for box opening status detection by judging whether the coding information matches the target coding information (it can be understood that whether the first audio signal contains the first preset audio signal sent by the headphone box), and then determine whether to enter the Bluetooth connection state based on the first audio signal.

[0107] In a possible implementation, if the wireless headset itself is provided with a chip with a decoding function, the chip can be used to decode the first audio signal; a DSP chip can also be specially provided inside the wireless headset, so as to use the DSP chip to decode the first audio signal; optionally, any component that can realize the function of decoding the audio signal can also be provided, and the first audio signal can be decoded using the component.

[0108] Step 605: In response to the coding information matching the target coding information, the wireless headset determines that the headset box is in an open box state and enters a Bluetooth connection state.

[0109] In a possible implementation, if the first audio signal obtained after the wireless headset decodes the first audio signal contains coding information, then by further comparing whether the coding information matches the target coding information, it is determined whether the first audio signal is used to transmit the signal of the box opening state. In schematic, if the coding information matches the target coding information, the wireless headset determines that the first preset audio signal is received, and then determines that the headset box is in the box opening state and can enter the Bluetooth connection state; otherwise, if the coding information does not match the target coding information, the wireless headset determines that the first preset audio signal is not received and stops entering the Bluetooth connection state.

[0110] Optionally, in order to improve the accuracy of determining whether the earphone box is in the open box state, in a possible implementation, it is possible to determine whether the earphone box is in the open box state by judging whether the first audio signal received N times in succession matches the first preset audio signal, thereby determining whether to enter the Bluetooth connection state. In an exemplary manner, N may be 3 times.

[0111] Optionally, the method for determining the degree of match or similarity between the first audio signal and the first preset audio signal can also be implemented by setting a lightweight similarity evaluation model in the wireless headset. Correspondingly, when the wireless headset receives the first audio signal, the first audio signal and the first preset audio signal can be input into the similarity evaluation model to obtain the predicted similarity output by the similarity evaluation model, and the relationship between the predicted similarity and the preset similarity threshold is compared to determine whether the first audio signal matches the first preset audio signal.

[0112] Step 606: In response to entering the Bluetooth connection state, the wireless headset establishes a Bluetooth connection with the paired terminal.

[0113] The implementation of step 606 may refer to the above embodiment, and will not be described in detail in this embodiment.

[0114] In this embodiment, the earphone box encodes the audio signal through the target coding information to obtain a first preset audio signal. The wireless earphone decodes the received first audio signal and matches the decoded coding information with the target coding information, thereby determining whether the earphone box is in an open box state according to the matching result, and then determining whether to enter the Bluetooth connection state. This can avoid misidentification of the wireless earphone, thereby more accurately detecting the open box state and Bluetooth connection state.

[0115] In other possible application scenarios, if the wireless headset enters the Bluetooth connection state only by judging that the headset is in the open box state, if the user only opens the box cover and does not take out the wireless headset, the wireless headset still enters the Bluetooth connection state, which obviously increases unnecessary power consumption of the wireless headset. Therefore, in other possible implementations, when the wireless headset determines that the first audio signal matches the first preset audio signal and does not receive the first audio signal for M consecutive times, it is determined that the headset box is in the open box state and enters the Bluetooth connection state. Indicatively, M can be 3 times.

[0116] Since the first preset audio signal cannot be received when the wireless headset is in use, it can be determined that the wireless headset is in use and needs to enter the Bluetooth connection state after the first preset audio signal can be received for a period of time and then the first preset audio signal cannot be recognized for a period of time.

[0117] Optionally, when the wireless headset determines that the headset box is in an unpacking state, it further determines whether to enter the Bluetooth connection state by judging the strength information of the first audio signal received N times continuously. In an exemplary manner, when the wireless headset is out of the box, the strength of the first audio signal received by the wireless headset should gradually weaken due to the distance between the wireless headset and the headset box. Correspondingly, if the wireless headset determines that the strength information of the received first audio signal gradually weakens, it can be determined that the Bluetooth connection state is entered.

[0118] When the wireless headset is placed in the headset box, it may be in a power-off state. In the power-off state, the wireless headset cannot receive audio signals or process audio signals. In a possible implementation, in order to avoid the influence of the power-off state of the wireless headset on the subsequent switch box state detection, thereby affecting the accuracy of the Bluetooth connection, in a possible implementation, a power-on signal can be transmitted to the wireless headset through the connector so that the wireless headset is in a power-on state.

[0119] like Figure 7 As shown, it shows a flowchart of a headset connection method shown in another exemplary embodiment of the present application. The method includes:

[0120] Step 701: When the earphone box is in an open box state, a target electrical signal is sent to the wireless earphone through a connector.

[0121] When the wireless headset is placed inside the headset box, the connector of the wireless headset is coupled to the connector of the headset box, and the headset box can charge the wireless headset through the connector, or exchange information with the wireless headset. Therefore, in order to turn on the wireless headset, in a possible implementation, when the headset box is in an open box state, a target electrical signal is first transmitted to the wireless headset through the connector, so that the wireless headset can enter the power-on state when the target electrical signal is received.

[0122] Optionally, in order to avoid confusion between the target electrical signal and the charging signal, the target electrical signal is set to be different from the electrical signal for charging the wireless headset. Schematically, if the target electrical signal is a target voltage signal, a voltage signal different from the charging voltage can be used; if the target electrical signal is a target current signal, a current signal different from the charging current can be used. Of course, a 5V charging signal can also be used directly.

[0123] Optionally, when the earphone box sends the target electrical signal, the speaker can also be started to play the first preset audio signal; or the speaker can be started after the earphone box sends the target electrical signal.

[0124] Optionally, when the earphone box is in a closed state, there is no need to send the target electrical signal through the connector.

[0125] It should be noted that if the target electrical signal is a charging signal, it can also be sent in the closed state.

[0126] Optionally, when the earphone box detects that it is in an open box state, or detects that the earphone box switches from a closed box state to an open box state, a target electrical signal may be sent through the connector.

[0127] Step 702: When the target electrical signal sent through the connector is received, the wireless headset enters a power-on state.

[0128] Correspondingly, when the wireless headset receives the target electrical signal sent by the headset box through the connector, it can enter the power-on state.

[0129] Step 703: the earphone box plays a first preset audio signal through a speaker.

[0130] Step 704: When in the power-on state, the wireless headset receives a first audio signal through a microphone.

[0131] When the wireless headset is in a powered-on state, the first audio signal can be received through the microphone, and a subsequent audio signal matching process can be performed.

[0132] Step 705: In response to the first audio signal matching the first preset audio signal, the wireless headset determines that the headset box is in an open box state and enters a Bluetooth connection state.

[0133] Step 706: In response to entering the Bluetooth connection state, the wireless headset establishes a Bluetooth connection with the paired terminal.

[0134] The implementation of step 705 and step 706 may refer to the above embodiment, and will not be described in detail in this embodiment.

[0135] In this embodiment, when the earphone box is determined to be in an open box state, a target electrical signal is sent to the wireless earphone to control the wireless earphone to be in a power-on state, so that the wireless earphone can be turned on in time when the earphone box is opened, and subsequently detect whether to enter the Bluetooth connection state, which can further improve the timeliness and accuracy of the earphone entering the Bluetooth connection state.

[0136] Please refer to Figure 8 , which shows a flow chart of a complete headphone connection method shown in another exemplary embodiment of the present application. The method includes:

[0137] Step 801, open the cover of the earphone box.

[0138] Step 802: the earphone box senses that the cover is opened.

[0139] Step 803: the earphone box outputs a signal to the connector.

[0140] The signal may be a target current signal or a target voltage signal.

[0141] Step 804, after receiving the signal through the connector, the wireless headset is turned on.

[0142] Step 805: the earphone box plays a preset audio signal through a speaker.

[0143] Step 806: The wireless headset receives a preset audio signal through the microphone and enters a Bluetooth connection state.

[0144] When the wireless headset detects that the received audio signal matches the preset audio signal, it determines that the headset box is in the open box state and enters the Bluetooth connection state.

[0145] The above embodiment mainly describes that the wireless headset determines whether the headphone box is in an open box state by receiving an audio signal, and then determines whether to enter a Bluetooth connection state. In other possible implementations, the audio signal can also be used by the wireless headset to determine whether the headphone box is in a closed box state, and then determine whether to disconnect the Bluetooth connection.

[0146] Please refer to Fig. 9 , which shows a flow chart of a headset connection method shown in another exemplary embodiment of the present application. The method includes:

[0147] Step 901: In response to switching from an open box state to a closed box state, the earphone box plays a second preset audio signal through a speaker.

[0148] When the user does not need to use the wireless headset, the wireless headset is generally placed in an earphone box and the earphone box is closed. When the wireless headset is not in use, in order to save power of the wireless headset, the wireless headset is generally required to disconnect the Bluetooth connection with the pairing terminal. Therefore, in a possible implementation, in order to enable the wireless headset to disconnect the Bluetooth connection in time, a second preset audio signal can be played through a speaker when the earphone box is in a closed box state.

[0149] Optionally, the second preset audio signal may be the same as the first preset audio signal, or may be different from the first preset audio signal, which is not limited in this embodiment. Illustratively, the second preset audio signal may be a continuous sound wave signal of a certain frequency, such as a continuous 20KHZ sound wave signal. It may also be a continuous periodically changing sound wave signal, that is, the frequency changes periodically over time, such as a sine wave.

[0150] Optionally, in order to avoid confusion in detecting the open box and the closed box states, the first preset audio signal is set to be different from the second preset audio signal as much as possible.

[0151] Optionally, in order to avoid interference of ambient sound on the second preset audio signal, or ambient sound causing the wireless headset to misrecognize the second preset audio signal, in a possible implementation, the audio signal can be encoded using coding information to obtain the second preset audio signal.

[0152] Step 902: The wireless headset receives a second audio signal through a microphone.

[0153] Correspondingly, when the wireless headset receives the second audio signal and compares the relationship between the second audio signal and the second preset audio signal, it determines whether to disconnect the Bluetooth connection.

[0154] Step 903: In response to the second audio signal matching the second preset audio signal, the wireless headset determines that the headset box is in a closed box state, and disconnects the Bluetooth connection with the pairing terminal.

[0155] The second preset audio signal may be pre-stored inside the wireless headset (eg, in an internal memory of the wireless headset), so that during application, the second preset audio signal may be obtained for detecting whether the headset box is in a closed box state.

[0156] In a possible implementation, when the wireless headset receives the second audio signal, the relationship between the second audio signal and the second preset audio signal is compared to determine whether the headset box is in a closed box state, and then determine whether the Bluetooth connection needs to be disconnected. In an exemplary manner, if the wireless headset determines that the second audio signal matches the second preset audio signal, the headset box is determined to be in a closed box state, and the Bluetooth connection with the pairing terminal is disconnected; if the wireless headset determines that the second audio signal does not match the second preset audio signal, the Bluetooth connection state is maintained.

[0157] Optionally, if the second preset audio signal is obtained through target coding information, the coding information contained in the second audio signal can be obtained by decoding the second audio signal, and then compared with the target coding information corresponding to the second preset audio signal. If the coding information matches, it is determined that the headphone box is in a closed box state, and the Bluetooth connection is disconnected, otherwise the Bluetooth connection state is maintained.

[0158] When the earphone box is switched from the open box state to the closed box state, the wireless earphone may not be placed in the earphone box. Schematically, the wireless earphone is still in the wearing state. If the Bluetooth connection is disconnected based on the received second audio signal at this time, it will obviously affect the normal use of the wireless earphone. In order to avoid erroneously disconnecting the Bluetooth connection due to recognizing that the wireless earphone is in the closed box state, in a possible implementation manner, the process of the wireless earphone determining whether to disconnect the Bluetooth connection may further include the following steps:

[0159] 1. Obtain the usage status of the wireless headset, which includes the wearing state and the non-wearing state.

[0160] In a possible implementation, it is possible to determine whether it is necessary to perform a headphone box closing detection by acquiring the usage status of the wireless headset, and further determine whether it is necessary to disconnect the Bluetooth connection.

[0161] Optionally, the method of determining whether the wireless headset is in use may include: detecting through a proximity sensor, which may adopt an infrared sensing method, that is, it may determine whether it is in a wearing state by detecting infrared radiation generated by the human body. The wearing state may also be detected through a capacitive sensor, that is, when the wireless headset is worn on the user's ear, a coupling capacitor is generated, thereby changing the output value of the capacitive sensor, and the wireless headset may detect the wearing state according to the change in the output value.

[0162] The above uses proximity sensors and capacitive sensors as examples to schematically illustrate the detection of the usage status. Optionally, a three-axis accelerometer can be used in conjunction with an optical sensor to detect whether the wireless headset is in a wearing state, but this embodiment does not constitute a limitation to this.

[0163] 2. In response to the second audio signal matching the second preset audio signal and the wireless headset is in a non-wearing state, it is determined that the headset box is in a closed box state, and the Bluetooth connection with the pairing terminal is disconnected.

[0164] Since the wireless headset needs to disconnect the Bluetooth connection with the pairing terminal when the wireless headset is not in use, that is, not worn, therefore, in a possible implementation, when the wireless headset determines that the second audio signal matches the second preset audio signal and the wireless headset is not worn, it is determined that the earphone box is in a closed box state and the Bluetooth connection with the pairing terminal is disconnected.

[0165] Optionally, if the wireless headset is in a wearing state, even if it is determined that the second audio signal matches the second preset audio signal, it can only be determined that the headset box is in a closed box state, but it is not necessary to disconnect the Bluetooth connection with the pairing terminal.

[0166] In this embodiment, by playing the second preset audio signal when the earphone box is in a closed state, and disconnecting the Bluetooth connection with the pairing terminal when the wireless earphone receives the second preset audio signal and is in a non-wearing state, the wireless earphone can autonomously disconnect the Bluetooth connection, thereby avoiding the wireless earphone from always maintaining a Bluetooth connection with the pairing terminal when the wireless earphone is not worn, resulting in a waste of power consumption of the wireless earphone.

[0167] In other possible application scenarios, when the wireless headset is outside the headphone box, it is generally in use. If the wireless headset receives a second preset audio signal for indicating the disconnection of the Bluetooth connection and disconnects the Bluetooth connection with the pairing terminal, it will obviously affect the normal use of the wireless headset. Therefore, in order to avoid the impact of disconnecting the Bluetooth connection on the normal use of the wireless headset, it is necessary to detect whether the wireless headset is in the headphone box before disconnecting the Bluetooth connection.

[0168] In an exemplary example, step 903 may further include the following steps:

[0169] 1. In response to the second audio signal matching the second preset audio signal, determining that the earphone box is in a closed box state.

[0170] In order to avoid the impact on the normal use of the wireless headset if the Bluetooth connection with the pairing terminal is directly disconnected when the wireless headset is outside the headset box when receiving the second preset audio signal, in a possible implementation, when the wireless headset determines that the headset box is in a closed state, it does not immediately disconnect the Bluetooth connection with the pairing terminal, but also needs to determine whether the wireless headset is in the headset box, and then determine whether the Bluetooth connection needs to be disconnected based on the state of the wireless headset.

[0171] 2. In response to the earphone box being in a closed state and the wireless earphone being in the earphone box, disconnecting the Bluetooth connection with the pairing terminal.

[0172] In a possible implementation, when the wireless headset determines that the headset box is in a closed state and detects that it is inside the headset box, indicating that the current scenario is that the wireless headset needs to switch from a used state to an unused state, the Bluetooth connection with the paired terminal can be immediately disconnected to avoid unnecessary power consumption.

[0173] Optionally, when the wireless headset determines that the headphone box is in a closed state and detects that it is outside the headphone box, it means that the wireless headset is currently in use and needs to maintain a Bluetooth connection with the pairing terminal. There is no need to disconnect the Bluetooth connection with the pairing terminal.

[0174] Optionally, when the wireless headset determines that the headphone box is in a closed state and detects that it is outside the headphone box, it can also send headphone box status information to the pairing terminal, so that when the pairing terminal receives the headphone box status information, it can display relevant prompt information in the display interface corresponding to the pairing terminal.

[0175] Illustratively, the earphone box status information may be earphone box closed box information, that is, when the wireless earphone determines that the earphone box is closed, it sends a prompt message to the paired terminal that the earphone box is in a closed box state. Optionally, the earphone box status information may also be earphone box power information, that is, after the wireless earphone obtains the current power information of the earphone box, it sends the current remaining power information of the earphone box to the paired terminal, which can timely remind the user of the current power status of the earphone box so that the user can determine whether the earphone box needs to be charged.

[0176] Among them, the method for how the wireless headset detects whether it is located in the headset box can be referred to the above embodiment, and this embodiment will not be described in detail here.

[0177] In this embodiment, after the wireless headset determines that the headphone box is in a closed box state, it first determines whether the wireless headset is located in the headphone box. If the wireless headset is in the headphone box, the Bluetooth connection with the pairing terminal is immediately disconnected, thereby reducing unnecessary connection power consumption of the wireless headset; if the wireless headset is outside the headphone box, in order to avoid the impact of disconnecting the Bluetooth connection on the normal use of the wireless headset, there is no need to perform the Bluetooth connection disconnection operation, and further, the headphone box status information can be sent to the pairing terminal, so that the user can promptly understand the relevant status information of the headphone box based on the prompt information displayed in the pairing terminal.

[0178] It should be noted that in the above-mentioned embodiments, the steps with the wireless headset as the execution body can be independently implemented as the headset connection method on the wireless headset side, and the steps with the headset box as the execution body can be independently implemented as the headset connection method on the headset box side, which will not be repeated in this embodiment.

[0179] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0180] Please refer to Fig.10 , which shows a structural block diagram of an earphone connection device provided by an embodiment of the present application. The device has the function of implementing the above method embodiment performed by the wireless earphone side, and the function can be implemented by hardware or by hardware executing corresponding software. Fig.10 As shown, the device may include:

[0181] The first receiving module 1001 is used to receive a first audio signal through a microphone;

[0182] A first determination module 1002 is configured to determine that the earphone box is in an open box state and enter a Bluetooth connection state in response to a match between the first audio signal and a first preset audio signal, wherein the first preset audio signal is an audio signal played when the earphone box is in an open box state, and the earphone box is used to accommodate the wireless earphone;

[0183] The first Bluetooth connection module 1003 is configured to establish a Bluetooth connection with a paired terminal in response to entering the Bluetooth connection state.

[0184] Optionally, the first determining module 1002 includes:

[0185] a decoding unit, configured to decode the first audio signal to obtain coding information contained in the first audio signal;

[0186] The first determination unit is used to determine that the earphone box is in an open box state and enters the Bluetooth connection state in response to the coding information matching the target coding information, and the first preset audio signal is encoded according to the target coding information.

[0187] Optionally, the first determining module 1002 includes:

[0188] The second determination unit is used to determine that the earphone box is in the open box state and enter the Bluetooth connection state in response to the first audio signal received N times in succession matching the first preset audio signal, wherein N is a positive integer.

[0189] Optionally, the first determining module 1002 includes:

[0190] a third determining unit, configured to determine that the earphone box is in an open box state in response to the first audio signal matching the first preset audio signal;

[0191] A first Bluetooth connection unit, configured to enter the Bluetooth connection state in response to the earphone box being in an open box state and the wireless earphone being located in the earphone box;

[0192] The device also includes:

[0193] The first sending module is used to send earphone box status information to the pairing terminal in response to the earphone box being in an open box state and the wireless earphone being located outside the earphone box.

[0194] Optionally, the device further comprises:

[0195] The second Bluetooth connection module is used to disconnect the Bluetooth connection with the pairing terminal in response to the first audio signal not matching the first preset audio signal and the wireless headset being located in the headset box.

[0196] Optionally, the device further comprises:

[0197] A second receiving module, configured to receive a second audio signal through the microphone;

[0198] The second determination module is used to determine that the earphone box is in a closed box state in response to the second audio signal matching the second preset audio signal, and disconnect the Bluetooth connection with the pairing terminal. The second preset audio signal is an audio signal played by the earphone box when it is in a closed box state.

[0199] Optionally, the second determining module includes:

[0200] a fourth determining unit, configured to determine that the earphone box is in the closed box state in response to the second audio signal matching the second preset audio signal;

[0201] A second Bluetooth connection unit, configured to disconnect the Bluetooth connection with the pairing terminal in response to the earphone box being in a closed state and the wireless earphone being in the earphone box;

[0202] The device also includes:

[0203] The third Bluetooth connection module is used to maintain the Bluetooth connection with the pairing terminal in response to the earphone box being in a closed state and the wireless earphone being located outside the earphone box.

[0204] Optionally, the second determining module includes:

[0205] An acquiring unit, configured to acquire a usage state of the wireless headset, wherein the usage state includes a wearing state and a non-wearing state;

[0206] A fifth determination unit is used to determine that the earphone box is in a closed box state in response to the second audio signal matching the second preset audio signal and the wireless headset is in the non-wearing state, and disconnect the Bluetooth connection with the pairing terminal.

[0207] Optionally, before receiving the first audio signal through the microphone, the device further includes:

[0208] A third receiving module, configured to enter a power-on state when receiving a target electrical signal sent through the connector, wherein the target electrical signal is sent through the connector when the earphone box is in an open box state;

[0209] The first receiving module includes:

[0210] The receiving unit is used to receive the first audio signal through the microphone when the headset is in the power-on state. In summary, in the embodiment of the present application, a speaker is arranged inside the earphone box, and when the earphone box is in the open box state, the first preset audio signal is played through the speaker, and when the wireless headset receives the first preset audio signal through the microphone, it is determined that the earphone box is in the open box state, that is, it enters the Bluetooth connection state and establishes a Bluetooth connection with the pairing terminal. The wireless headset determines whether the earphone box is in the open box state by determining whether the preset audio signal emitted by the earphone box is received, and then determines whether to enter the Bluetooth connection state. This can avoid the instability of the transmission signal caused by connector corrosion, and improves the accuracy and timeliness of the wireless headset entering the Bluetooth connection state; the wireless headset can enter the Bluetooth connection state without taking it out of the box, so as to establish the Bluetooth connection as soon as possible, thereby facilitating user use.

[0211] Please refer to Fig.11 , which shows a structural block diagram of an earphone connection device provided by another embodiment of the present application. The device has the function of implementing the functions performed by the earphone box side in the above method embodiment, and the functions can be implemented by hardware or by hardware executing corresponding software. Fig.11 As shown, the device may include:

[0212] The first playing module 1101 is used to play a first preset audio signal through the speaker in an unboxing state, where the first preset audio signal is used to instruct the wireless headset to enter a Bluetooth connection state.

[0213] Optionally, the first playing module 1001 includes:

[0214] an encoding unit, configured to encode the audio signal based on target encoding information to obtain the first preset audio signal;

[0215] A playing unit is used to play the first preset audio signal through the speaker.

[0216] Optionally, after playing the first preset audio signal through the speaker, the device further includes:

[0217] a second playing module, configured to stop playing the first preset audio signal in response to the playing time of the first preset audio signal reaching a preset time threshold;

[0218] or,

[0219] The third playing module is used for stopping playing the first preset audio signal in response to switching from the open box state to the closed box state.

[0220] Optionally, the device further comprises:

[0221] The fourth playback module is used to respond to switching from the open box state to the closed box state, play the second preset audio signal through the speaker, and the wireless headset is used to receive the second preset audio signal through the microphone, and enter the Bluetooth connection disconnection state when it is determined that it is in the non-wearing state.

[0222] Optionally, the device further comprises:

[0223] The second sending module is used to send a target electrical signal to the wireless headset through a connector when the box is opened, and the wireless headset is used to enter the power-on state according to the target electrical signal.

[0224] In summary, in the embodiment of the present application, a speaker is arranged inside the earphone box. When the earphone box is in the open box state, the first preset audio signal is played through the speaker. When the wireless earphone receives the first preset audio signal through the microphone, it is determined that the earphone box is in the open box state, that is, it enters the Bluetooth connection state and establishes a Bluetooth connection with the pairing terminal. The wireless earphone determines whether the earphone box is in the open box state by determining whether the preset audio signal emitted by the earphone box is received, and then determines whether to enter the Bluetooth connection state. This can avoid the instability of the transmission signal caused by connector corrosion, and improve the accuracy and timeliness of the wireless earphone entering the Bluetooth connection state; the wireless earphone can enter the Bluetooth connection state without taking it out of the box, so as to establish the Bluetooth connection as soon as possible, which is convenient for users to use.

[0225] Please refer to Fig.12 , which shows a block diagram of a wireless headset 1200 provided by an exemplary embodiment of the present application. The wireless headset 1200 in the present application may include one or more of the following components: a memory 1201 , a processor 1202 , a wireless communication component 1203 , and a microphone 1204 .

[0226] The memory 1201 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1201 includes a non-transitory computer-readable storage medium. The memory 1201 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1201 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing at least one function (such as a playback function), instructions for implementing the above-mentioned various method embodiments, etc.

[0227] The processor 1202 uses various interfaces and lines to connect various parts of the entire wireless headset 1200, and executes various functions of the wireless headset 1200 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1201, and calling data stored in the memory 1201. Optionally, the processor 1202 can be implemented in at least one hardware form of DSP, Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1202 can integrate a modem. Among them, the modem is used to process wireless communications.

[0228] The wireless communication component 1203 may be used to receive data signals sent by a terminal and send data signals to the terminal. Optionally, the wireless communication component 1203 may be a Bluetooth chip.

[0229] Microphone 1204 is a transducer that converts sound signals into electrical signals. When applied to wireless headphones, the microphone can receive the user's voice and can also receive the audio signals in the above-mentioned various method embodiments. Microphone 1204 can adopt different implementation principles, such as electric, capacitive, piezoelectric, electromagnetic, carbon particle, and semiconductor, etc., which are not limited in the embodiments of the present application.

[0230] Please refer to Fig.13 , which shows a structural block diagram of an earphone box 1300 provided by an exemplary embodiment of the present application. The earphone box 1300 in the present application may include one or more of the following components: a memory 1301, a processor 1302, a power supply component 1303, and a speaker 1304.

[0231] The memory 1301 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1301 includes a non-transitory computer-readable storage medium. The memory 1301 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1301 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing at least one function (such as a sound playback function), instructions for implementing the above-mentioned various method embodiments, etc., and the data storage area may also store data created by the headphone box during use, etc.

[0232] The processor 1302 uses various interfaces and lines to connect various parts of the entire earphone box 1300, and executes various functions of the earphone box 1300 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1301, and calling data stored in the memory 1301. Optionally, the processor 1302 can be implemented in at least one hardware form of DSP, Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).

[0233] The power supply component 1303 is used to supply power to various components in the earphone box 1300 and to charge the wireless earphones.

[0234] The speaker 1304 is a transducer device that converts an electrical signal into an acoustic signal, and can be used to send the audio signals in the above-mentioned various method embodiments. The speaker 1304 can realize its function using different working principles, such as: electric, electrostatic, electromagnetic, piezoelectric, etc., which is not limited in the present embodiment of the application.

[0235] In addition, those skilled in the art can understand that the structures of the wireless headset 1200 and the headset box 1300 shown in the above figures do not constitute a limitation on the wireless headset 1200 and the headset box 1300. The wireless headset 1200 and the headset box 1300 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the wireless headset 1200 also includes components such as sensors, audio circuits, and power supplies, and the headset box 1300 also includes components such as sensors, which will not be described in detail here.

[0236] An embodiment of the present application further provides a computer-readable storage medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement the headphone connection method on the wireless headphone side in the above embodiments.

[0237] An embodiment of the present application further provides a computer-readable storage medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement the earphone connection method on the earphone box side in the above embodiments.

[0238] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0239] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A headphone connection method, characterized in that: The method is used for a wireless headset, and the method comprises: receiving a first audio signal via a microphone; In response to the first audio signal received N times in succession matching the first preset audio signal, it is determined that the earphone box is in an open box state, wherein N is a positive integer, the first preset audio signal is an audio signal played when the earphone box is in an open box state, the first preset audio signal stops playing when the playing time reaches a preset time threshold, and the preset time threshold is negatively correlated with the current remaining power of the earphone box, and the earphone box is used to accommodate the wireless earphone; When the strength information of the first audio signal received N times in succession gradually weakens, entering a Bluetooth connection state; In response to entering the Bluetooth connection state, establishing a Bluetooth connection with a paired terminal; receiving a second audio signal via the microphone; Acquire the use status of the wireless headset, where the use status includes a wearing state and a non-wearing state; In response to the second audio signal matching the second preset audio signal and the wireless headset being in the non-wearing state, it is determined that the headset box is in a closed box state and the Bluetooth connection with the pairing terminal is disconnected. The second preset audio signal is an audio signal played by the headset box when it is in the closed box state.

2. The method according to claim 1, characterized in that: In response to the first audio signal received N times continuously matching the first preset audio signal, determining that the earphone box is in an open box state includes: Decoding the first audio signal to obtain coding information contained in the first audio signal; In response to the coding information matching the target coding information, it is determined that the earphone box is in an open box state, and the first preset audio signal is obtained by encoding according to the target coding information.

3. The method according to any one of claims 1 to 2, characterized in that: The method further comprises: In response to the first audio signal not matching the first preset audio signal and the wireless headset being located in the headset box, disconnecting the Bluetooth connection with the pairing terminal.

4. The method according to any one of claims 1 to 2, characterized in that: Before receiving the first audio signal through the microphone, the method further includes: When receiving a target electrical signal sent through the connector, entering a power-on state, wherein the target electrical signal is sent through the connector when the earphone box is in an open box state; The receiving a first audio signal through a microphone comprises: When in the power-on state, the first audio signal is received through the microphone.

5. A method for connecting an earphone, characterized in that: The method is used for an earphone box, wherein at least one earphone accommodating position is arranged inside the earphone box, the earphone accommodating position is used to accommodate a wireless earphone, a speaker is arranged inside the earphone accommodating position, and the position of the speaker is opposite to the position of a microphone of the wireless earphone in the accommodating state, and the method comprises: In the unboxing state, a first preset audio signal is played through the speaker, where the first preset audio signal is used to indicate that the wireless headset enters a Bluetooth connection state; When the playing time of the first preset audio signal reaches a preset time threshold, the playing of the first preset audio signal is stopped, and the preset time threshold is negatively correlated with the current remaining power of the earphone box; the wireless earphone is used to determine that the earphone box is in an open state when the first audio signal received N times in succession matches the first preset audio signal, and enter a Bluetooth connection state when the strength information of the first audio signal received N times in succession gradually weakens; In response to switching from the open box state to the closed box state, a second preset audio signal is played through the speaker, and the wireless headset is used to receive the second preset audio signal through the microphone, and enter the Bluetooth connection disconnection state when it is determined to be in the non-wearing state.

6. The method according to claim 5, characterized in that The step of playing the first preset audio signal through the speaker comprises: Encoding the audio signal based on the target encoding information to obtain the first preset audio signal; The first preset audio signal is played through the speaker.

7. The method according to claim 5, characterized in that Before playing the first preset audio signal through the speaker, the method further includes: In the unboxing state, a target electrical signal is sent to the wireless headset through the connector, and the wireless headset is used to enter the power-on state according to the target electrical signal.

8. An earphone connection device, characterized in that: The device is used for wireless headphones, and the device comprises: A first receiving module, configured to receive a first audio signal through a microphone; A first determination module is configured to determine that the earphone box is in an open box state in response to the first audio signal being received N times in succession and matching the first preset audio signal, wherein N is a positive integer, the first preset audio signal is an audio signal played by the earphone box in the open box state, the first preset audio signal stops playing when the playing time reaches a preset time threshold, and the preset time threshold is negatively correlated with the current remaining power of the earphone box, and the earphone box is used to accommodate the wireless earphone; when the strength information of the first audio signal received N times in succession gradually weakens, the Bluetooth connection state is entered; A first Bluetooth connection module, configured to establish a Bluetooth connection with a paired terminal in response to entering the Bluetooth connection state; A second receiving module, configured to receive a second audio signal through the microphone; The second determination module is used to obtain the usage status of the wireless headset, and the usage status includes a wearing state and a non-wearing state; in response to the second audio signal matching the second preset audio signal, and the wireless headset is in the non-wearing state, it is determined that the headset box is in a closed box state, and the Bluetooth connection with the pairing terminal is disconnected, and the second preset audio signal is an audio signal played by the headset box when it is in the closed box state.

9. An earphone connection device, characterized in that: The device is used for an earphone box, wherein at least one earphone accommodating position is arranged inside the earphone box, wherein the earphone accommodating position is used to accommodate a wireless earphone, wherein a speaker is arranged inside the earphone accommodating position, and the position of the speaker is opposite to the position of the microphone of the wireless earphone in the accommodating state, and the device comprises: A first playing module is used for playing a first preset audio signal through the speaker in an open box state, wherein the first preset audio signal is used to instruct the wireless headset to enter a Bluetooth connection state; when the playing time of the first preset audio signal reaches a preset time threshold, the playing of the first preset audio signal is stopped, and the preset time threshold is negatively correlated with the current remaining power of the headset box; the wireless headset is used to determine that the headset box is in an open box state when the first audio signal received N times in succession matches the first preset audio signal, and enter a Bluetooth connection state when the strength information of the first audio signal received N times in succession gradually weakens; The second playing module is used to play a second preset audio signal through the speaker in response to switching from the open box state to the closed box state. The wireless headset is used to receive the second preset audio signal through the microphone and enter the Bluetooth connection disconnection state when it is determined that the headset is in a non-wearing state.

10. A wireless headset, characterized in that: The wireless headset includes a processor, a memory, a wireless communication component and a microphone; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the headset connection method as described in any one of claims 1 to 4.

11. An earphone box, characterized in that: The earphone box includes a processor, a memory, a power supply component and a speaker; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the earphone connection method as described in any one of claims 5 to 7.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the headphone connection method as described in any one of claims 1 to 4, or to implement the headphone connection method as described in any one of claims 5 to 7.

Citation Information

Patent Citations

  • Pairing connection method, device and system of TWS wireless Bluetooth headset

    CN112040457A

  • Wireless earphone based on audio communication

    CN208971751U