Earphone connection method and device, earphone box, earphone and medium

By displaying the headphone identification information on the headphone box and responding to the headphone operation, Bluetooth communication connection between the headphones and the terminal device and the headphone box is achieved, which solves the problems of cumbersome connection methods and security risks, and improves the speed and security of the connection.

CN118945631APending Publication Date: 2024-11-12SHENZHEN PHICOUSTIC SYST DEV CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411150880.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The connection method of traditional Bluetooth headphones is cumbersome and has security risks, especially in multi-device environments where misconnection and information leakage are prone to occur.

Method used

By displaying headphone identification information on the headphone box and responding to the headphone putting in/out operation, Bluetooth communication connection between the headphones and the terminal device and the headphone box is achieved, simplifying the connection process and enhancing security.

Benefits of technology

Simplifies the headphone connection process, improves the security of the connection, avoids connections from unauthorized devices, and improves the speed and security of Bluetooth connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945631A_ABST
    Figure CN118945631A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of Bluetooth earphones, and provides an earphone connection method and device, an earphone box, earphones and a medium, the method comprises the following steps: responding to an operation of putting a first earphone into the earphone box, and displaying earphone identification information of the first earphone on the earphone box, the first earphone is used for establishing a Bluetooth communication connection with the terminal device based on a received first connection request, and the first connection request is a connection request sent to the first earphone by the terminal device through scanning earphone identification information after the first earphone is taken out from the earphone box; and in response to the operation that the first earphone is taken out of the earphone box, sending a second connection request to the first earphone under the condition that the broadcast signal of the first earphone is scanned, so that the first earphone establishes a Bluetooth communication connection with the earphone box based on the second connection request. According to the method, the earphone connection process is simplified, and the safety of communication connection is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of Bluetooth headsets, and in particular relates to a headset connection method, device, headset box, headset and medium. Background Art

[0002] With the rapid development of science and technology, Bluetooth headsets have emerged. Headphones, headphone boxes and terminal devices can communicate wirelessly via Bluetooth.

[0003] In the traditional headphone connection method, when communicating between the headphone and the headphone box, and between the headphone and the terminal device, the headphone and the headphone box need to be connected first, and then the headphone and the terminal device are connected. The process of connecting the headphone to the peripheral peripheral device (such as the headphone box or the terminal device) is usually that the headphone sends a broadcast signal through the Bluetooth Low Energy (BLE) technology. The broadcast signal contains a special field T1. The peripheral devices can discover the special field T1 by searching the BLE broadcast and perform BLE communication based on the special field T1.

[0004] Therefore, the traditional headphone connection method requires two rounds of connection operations before the coordinated connection of the headphones can be achieved. The process is quite cumbersome. At the same time, the special field T1 in the broadcast signal is fixed after being pre-configured during the headphone design phase. When there are multiple peripheral devices around the headphones trying to connect to the headphones, there will be a phenomenon of chaotic connection, and even malicious connection using the special field T1 will occur, resulting in information leakage or the headphones being controlled, resulting in certain security risks in the traditional headphone connection method. Summary of the invention

[0005] The embodiments of the present application provide an earphone connection method, device, earphone box, earphone and medium, which can simplify the earphone connection process and solve the problem of safety hazards.

[0006] In a first aspect, an embodiment of the present application provides an earphone connection method, which is applied to an earphone box, comprising:

[0007] In response to the operation of placing the first earphone into the earphone box, displaying earphone identification information of the first earphone on the earphone box, wherein the first earphone is used to establish a Bluetooth communication connection with the terminal device based on the received first connection request, and the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information after the first earphone is taken out of the earphone box;

[0008] In response to the operation of taking the first earphone out of the earphone box, when the broadcast signal of the first earphone is scanned, a second connection request is sent to the first earphone, so that the first earphone establishes a Bluetooth communication connection with the earphone box based on the second connection request.

[0009] In a second aspect, an embodiment of the present application provides an earphone connection method, which is applied to a first earphone, comprising:

[0010] In response to the operation of taking the first earphone out of the earphone box, sending a broadcast signal;

[0011] receiving a first connection request sent by the terminal device, and establishing a Bluetooth communication connection with the terminal device based on the first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning earphone identification information displayed on the earphone box after the first earphone is taken out of the earphone box, and the earphone identification information is displayed on the earphone box in response to the operation of putting the first earphone into the earphone box;

[0012] Receive a second connection request sent by the earphone box, and establish a Bluetooth communication connection with the earphone box based on the second connection request, wherein the second connection request is sent by the earphone box to the first earphone in response to the operation of taking the first earphone out of the earphone box and when the broadcast signal of the first earphone is scanned.

[0013] In a third aspect, an embodiment of the present application provides an earphone connection device, which is configured in an earphone box, and includes:

[0014] a display module, configured to display, on the earphone box, earphone identification information of the first earphone in response to an operation of placing the first earphone into the earphone box, wherein the first earphone is configured to establish a Bluetooth communication connection with the terminal device based on a received first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information after the first earphone is taken out of the earphone box;

[0015] The scanning module is used to respond to the operation of taking the first earphone out of the earphone box, and when the broadcast signal of the first earphone is scanned, send a second connection request to the first earphone, so that the first earphone establishes a Bluetooth communication connection with the earphone box based on the second connection request.

[0016] In a fourth aspect, an embodiment of the present application provides an earphone connection device, configured on a first earphone, comprising:

[0017] A first sending module, configured to send a broadcast signal in response to an operation of taking the first earphone out of the earphone box;

[0018] a first establishing module, configured to receive a first connection request sent by a terminal device, and establish a Bluetooth communication connection with the terminal device based on the first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning earphone identification information displayed on the earphone box after the first earphone is taken out of the earphone box, and the earphone identification information is displayed on the earphone box in response to an operation of placing the first earphone into the earphone box;

[0019] The second establishing module is used to receive a second connection request sent by the earphone box, and establish a Bluetooth communication connection with the earphone box based on the second connection request. The second connection request is sent by the earphone box to the first earphone in response to the operation of taking the first earphone out of the earphone box and when the broadcast signal of the first earphone is scanned.

[0020] In a fifth aspect, an embodiment of the present application provides an earphone box, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method as described in any one of the first aspects is implemented.

[0021] In a sixth aspect, an embodiment of the present application provides a headset, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method as described in any one of the second aspects is implemented.

[0022] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of any one of the first aspect or the second aspect is implemented.

[0023] In an eighth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an earphone box or earphone, the earphone box or earphone executes any one of the methods in the first aspect or the second aspect.

[0024] The embodiment of the present application provides a headset connection method, device, headset box, headset and medium. The method is applied to the headset box, comprising: in response to the operation of putting the first headset into the headset box, displaying the headset identification information of the first headset on the headset box, wherein the first headset is used to establish a Bluetooth communication connection with a terminal device based on a received first connection request, and the first connection request is a connection request sent by the terminal device to the first headset by scanning the headset identification information after the first headset is taken out of the headset box; in response to the operation of taking the first headset out of the headset box, in the case of scanning the broadcast signal of the first headset, sending a second connection request to the first headset, so that the first headset establishes a Bluetooth communication connection with the headset box based on the second connection request. By using the above technical solution, by displaying the headset identification information of the first headset on the headset box in response to the operation of putting the first headset into the headset box, an information basis is provided for the subsequent communication connection between the terminal device and the first headset. At the same time, by scanning the broadcast signal of the first headset by the headset box, a Bluetooth communication connection between the first headset and the headset box can be realized, thereby simplifying the headset connection process and ensuring the security of the communication connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0026] Figure 1 It is a flowchart of a headphone connection method provided by an embodiment of the present application;

[0027] Figure 2 is a flowchart of a headphone connection method provided by another embodiment of the present application;

[0028] Figure 3 This is a schematic diagram of a process for displaying headset identification information provided by an embodiment of the present application;

[0029] Figure 4 This is a schematic diagram of a headphone connection process provided by an embodiment of the present application;

[0030] Figure 5 This is a schematic diagram of a process of unbinding headphones provided by an embodiment of the present application;

[0031] Figure 6 is a structural block diagram of an earphone connection device provided by an embodiment of the present application;

[0032] Figure 7 is a structural block diagram of an earphone connection device provided by an embodiment of the present application;

[0033] Figure 8 This is a schematic diagram of the structure of an earphone box provided by an embodiment of the present application;

[0034] Fig. 9 It is a structural schematic diagram of an earphone provided in one embodiment of the present application. DETAILED DESCRIPTION

[0035] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0036] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0037] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0038] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0039] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0040] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0041] Figure 1 This is a flowchart of an earphone connection method provided in an embodiment of the present application. As an example but not a limitation, the method can be applied to an earphone box.

[0042] S101. In response to the operation of placing the first earphone into the earphone box, displaying earphone identification information of the first earphone on the earphone box, wherein the first earphone is used to establish a Bluetooth communication connection with the terminal device based on a received first connection request, and the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information after the first earphone is taken out of the earphone box.

[0043] The first earphone can refer to any pair of earphones that matches the earphone box; the earphone identification information can be understood as information used to identify the first earphone. For example, the earphone identification information may include a QR code, or may include other information characterizing the first earphone, such as the current battery level of the first earphone, connection status, etc.

[0044] Specifically, when the user completes the operation of placing the first earphone into the earphone box, the earphone box can display the earphone identification information of the first earphone on the earphone box in response to the operation of placing the first earphone into the earphone box, wherein the specific process of the earphone box displaying the earphone identification information is not limited, and illustratively, the obtained earphone identification information can be displayed by directly acquiring the earphone identification information of the first earphone, or the earphone identification information of the first earphone can be generated each time, and then the generated earphone identification information is displayed. The specific operation content of generating the earphone identification information is not limited here, such as the corresponding earphone identification information can be generated according to the relevant information of the first earphone (such as the first earphone identification code). Among them, the first earphone identification code can be understood as the identification code of the first earphone, and the identification code can be a universally unique identifier (Universally Unique Identifier, UUID).

[0045] Furthermore, displaying the earphone identification information on the earphone box can facilitate the terminal device to establish a Bluetooth communication connection with the first earphone through a series of operations. For example, the terminal device can obtain the earphone address and other information of the first earphone by scanning the earphone identification information on the earphone box after the first earphone is subsequently taken out of the earphone box. Then, the terminal device can send a first connection request to the first earphone based on the earphone address, so that the first earphone can establish a Bluetooth communication connection with the terminal device based on the received first connection request to carry out interactive communication between the two.

[0046] S102: In response to the operation of taking the first earphone out of the earphone box, when a broadcast signal of the first earphone is scanned, sending a second connection request to the first earphone, so that the first earphone establishes a Bluetooth communication connection with the earphone box based on the second connection request.

[0047] In this step, when the user takes the first earphone out of the earphone box, the first earphone can automatically broadcast the corresponding broadcast signal. At this time, the earphone box can respond to the operation of taking the first earphone out of the earphone box, scan the broadcast signal spread in the air, and perform different steps according to different scanning situations. For example, when the broadcast signal of the first earphone is scanned, a second connection request can be sent to the first earphone, so that the first earphone can establish a Bluetooth communication connection with the earphone box based on the received second connection request; and when other broadcast signals other than the broadcast signal of the first earphone are scanned, the scanning operation of the broadcast signal can be continued until the broadcast signal of the first earphone is scanned. There is no limit to the means by which the earphone box identifies and detects whether it is the broadcast signal of the first earphone, and it can be identified by judging the information carried in the broadcast signal. For example, when the earphone identification code contained in the scanned broadcast signal is the same as the first earphone identification code, it means that the currently scanned broadcast signal is the broadcast signal of the first earphone; and when the earphone identification code contained in the scanned broadcast signal is different from the first earphone identification code, it means that the currently scanned broadcast signal is not the broadcast signal of the first earphone.

[0048] The present embodiment provides a headset connection method, which is applied to a headset box, and includes: in response to the operation of putting the first headset into the headset box, displaying the headset identification information of the first headset on the headset box, wherein the first headset is used to establish a Bluetooth communication connection with a terminal device based on a received first connection request, and the first connection request is a connection request sent by the terminal device to the first headset by scanning the headset identification information after the first headset is taken out of the headset box; in response to the operation of taking the first headset out of the headset box, in the case of scanning the broadcast signal of the first headset, sending a second connection request to the first headset, so that the first headset establishes a Bluetooth communication connection with the headset box based on the second connection request. By using this method, in response to the operation of putting the first headset into the headset box, the headset identification information of the first headset is displayed on the headset box, which provides an information basis for the subsequent communication connection between the terminal device and the first headset. At the same time, by scanning the broadcast signal of the first headset through the headset box, the Bluetooth communication connection between the first headset and the headset box can be realized, thereby simplifying the headset connection process and ensuring the security of the communication connection.

[0049] In a specific implementation, the generation process of the headset identification information can be determined according to the actual situation of the first headset identification code. For example, the generation process of the specific headset identification information can be different according to whether the first headset currently has the first headset identification code or whether the first headset identification code of the first headset is stored in the headset box. Alternatively, regardless of whether the first headset identification code of the first headset currently exists or whether the first headset identification code of the first headset is stored in the headset box, the headset box can regenerate the first headset identification code of the first headset each time, and then directly generate the headset identification information according to the regenerated first headset identification code of the first headset. This embodiment does not limit this. On this basis, by updating the headset identification code of the first headset each time, the headset identification information can be dynamically adjusted to further ensure the communication security of the headset.

[0050] In some embodiments, before displaying the headset identification information of the first headset on the headset box, the method further includes:

[0051] Detecting whether the first headset has a valid first headset identification code;

[0052] If it is detected that the first headset has a first headset identification code, generating headset identification information according to the first headset identification code and the headset address of the first headset;

[0053] If it is detected that the first headset does not have the first headset identification code, an original identification code and a key of the first headset are generated, and headset identification information is generated according to the acquired headset address, original identification code and key of the first headset.

[0054] In a specific implementation, before the headset identification information of the first headset is displayed on the headset box, a detection may be performed on the first headset to determine whether there is a valid first headset identification code, and corresponding headset identification information may be generated according to different detection results. For example, a detection signal may be sent to the first headset to determine whether there is a first headset identification code, and the detection result may be obtained according to the response information. When it is detected that the first headset does not have the first headset identification code, the headset box may generate the original identification code and key of the first headset according to the configuration rules, and then generate the headset identification information of the first headset according to the original identification code, key and headset address of the first headset. When it is detected that the first headset has the first headset identification code, the headset box may directly generate the headset identification information of the first headset according to the headset identification code returned by the first headset and the headset address of the first headset. On this basis, by detecting whether the first headset has a valid first headset identification code, the headset identification information may be quickly generated according to different detection results, providing an information basis for subsequent headset connection.

[0055] In some embodiments, after generating the original identification code and the key of the first headset, the method further includes:

[0056] The original identification code and the key are sent to the first headset, wherein the first headset is used to generate a new first headset identification code according to the original identification code and the key.

[0057] Furthermore, the earphone box of this embodiment can also send the generated original identification code and key to the first earphone, so that the first earphone is used to generate a new first earphone identification code according to the received original identification code and key for subsequent operations.

[0058] In some embodiments, after the earphone box establishes a Bluetooth communication connection with the first earphone based on the second connection request, the method further includes:

[0059] In response to the operation of placing the second earphone into the earphone box, obtaining a second earphone identification code of the second earphone, and detecting whether the second earphone identification code is the same as the first earphone identification code;

[0060] If the second headset identification code is different from the first headset identification code, deleting the original identification code and key of the first headset, and sending a first unbinding instruction to the first headset, so that the first headset deletes the original identification code and key based on the first unbinding instruction, and disconnects the Bluetooth communication connection with the headset box;

[0061] If the second headset identification code is the same as the first headset identification code, a first disconnection instruction is sent to the first headset, so that the first headset disconnects the Bluetooth communication connection with the headset box based on the first disconnection instruction.

[0062] The second earphone may be the same as the first earphone, or may be another set of earphones different from the first earphone, which may be determined according to actual conditions. The second earphone identification code may refer to the earphone identification code of the second earphone. In this embodiment, the first earphone identification code and the second earphone identification code are only used to distinguish different earphone identification codes.

[0063] In a specific implementation, after the earphone box establishes a Bluetooth communication connection with the first earphone based on the second connection request, there will be a process of whether to unbind from the first earphone, that is, when the earphone box has established a Bluetooth communication connection with the first earphone, the user can put the second earphone into the earphone box. At this time, the earphone box can respond to the operation of placing the second earphone into the earphone box, obtain the second earphone identification code of the second earphone, detect whether the obtained second earphone identification code is the same as the first earphone identification code, and execute different steps according to the detection result.

[0064] For example, if it is detected that the second headset identification code is different from the first headset identification code, it means that the second headset inserted by the user is a headset different from the first headset. At this time, the headset box can delete the original identification code and key of the first headset and send a first unbinding instruction to the first headset, so that the first headset can delete the original identification code and key stored in itself based on the received first unbinding instruction and disconnect the Bluetooth communication connection with the headset box;

[0065] If it is detected that the second earphone identification code is the same as the first earphone identification code, it means that the second earphone inserted by the user is the first earphone. At this time, the earphone box can only send a first disconnect instruction to the first earphone, so that the first earphone disconnects the Bluetooth communication connection with the earphone box based on the received first disconnect instruction.

[0066] Furthermore, after the earphone box sends the first unbinding instruction to the first earphone or sends the first disconnection instruction to the first earphone, the earphone box can determine the second earphone as the first earphone, and return to execute the step of displaying the earphone identification information of the first earphone on the earphone box. On this basis, the earphone box can dynamically display the earphone identification information of the earphone, which provides a basis for the subsequent rapid connection between the terminal device and the earphone, and further ensures the security of the device connection.

[0067] Figure 2 It is a flowchart of an earphone connection method provided in another embodiment of the present application. As an example but not a limitation, the method can be applied to the first earphone.

[0068] S201: In response to an operation of taking a first earphone out of an earphone box, sending a broadcast signal.

[0069] In this embodiment, when the user takes the first earphone out of the earphone box, the first earphone taken out can detect the user's operation of taking it out of the earphone box, and then the first earphone can respond to this operation and send a corresponding broadcast signal. The process of sending the broadcast signal is not limited, and can be determined according to the actual situation of the information contained in the broadcast signal (such as the earphone identification code or other information). For example, when the broadcast signal needs to include the earphone identification code, the step of sending the broadcast signal can be distinguished according to whether the first earphone has a valid first earphone identification code. Exemplarily, when the first earphone has a valid first earphone identification code, the broadcast signal containing the first earphone identification code can be directly sent; and when the earphone does not have a valid first earphone identification code, the original identification code and key sent by the earphone box can be received, and the original identification code is encrypted using the key to obtain a new first earphone identification code, so as to send the broadcast signal, that is, send the broadcast signal containing the new first earphone identification code. Among them, the earphone box can be used to identify whether the broadcast signal of the first earphone is scanned based on the first earphone identification code in the broadcast signal.

[0070] S202. Receive a first connection request sent by the terminal device, and establish a Bluetooth communication connection with the terminal device based on the first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning earphone identification information displayed on the earphone box after the first earphone is taken out of the earphone box, and the earphone identification information is displayed on the earphone box in response to the operation of placing the first earphone into the earphone box.

[0071] S203, receiving a second connection request sent by the earphone box, and establishing a Bluetooth communication connection with the earphone box based on the second connection request, wherein the second connection request is sent by the earphone box to the first earphone in response to the operation of taking the first earphone out of the earphone box and when the broadcast signal of the first earphone is scanned.

[0072] In one implementation, when the first earphone is taken out of the earphone box, the terminal device may scan the earphone identification information displayed on the earphone box, and send a first connection request to the first earphone according to the earphone address obtained by the scan, and then the first earphone may establish a Bluetooth communication connection with the terminal device according to the first connection request. The earphone identification information is displayed on the earphone box in response to the operation of placing the first earphone into the earphone box, and the specific process can be referred to step S101.

[0073] In another embodiment, when the earphone box scans the broadcast signal in response to the operation of taking the first earphone out of the earphone box, and sends a second connection request to the first earphone when the broadcast signal of the first earphone is scanned, the first earphone can establish a Bluetooth communication connection with the earphone box according to the second connection request.

[0074] It should be noted that this embodiment does not limit the execution order between step S202 and step S203. For example, it can be determined based on the timing of the first connection request and the second connection request received by the first headset. The execution order of the above steps can also be configured in advance, such as executing step S202 first and then step S203, or executing step S203 first and then step S202, or executing step S202 and step S203 at the same time, etc. This embodiment does not limit this.

[0075] The present embodiment provides an earphone connection method, which is applied to a first earphone, and includes: sending a broadcast signal in response to the operation of taking the first earphone out of an earphone box; receiving a first connection request sent by a terminal device, and establishing a Bluetooth communication connection with the terminal device based on the first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information displayed on the earphone box after the first earphone is taken out of the earphone box, and the earphone identification information is displayed on the earphone box by the earphone box in response to the operation of putting the first earphone into the earphone box; receiving a second connection request sent by the earphone box, and establishing a Bluetooth communication connection with the earphone box based on the second connection request, wherein the second connection request is sent by the earphone box to the first earphone in response to the operation of taking the first earphone out of the earphone box when the broadcast signal of the first earphone is scanned. By using this method, a Bluetooth communication connection with the terminal device can be established by receiving the first connection request sent by the terminal device, and a Bluetooth communication connection with the earphone box can be established by receiving the second connection request sent by the earphone box, thereby further ensuring the security of the communication connection.

[0076] In some embodiments, after the first earphone establishes Bluetooth communication connections with the earphone box and the terminal device respectively, the method further includes:

[0077] Receiving a first unbinding instruction sent by the earphone box;

[0078] Deleting the original identification code and key based on the first unbinding instruction, and disconnecting the Bluetooth communication connection with the earphone box;

[0079] A second unbinding instruction is sent to the terminal device, so that the terminal device deletes the headset address of the first headset based on the second unbinding instruction and disconnects the Bluetooth communication connection with the first headset, wherein the headset address is obtained by the terminal device by scanning the headset identification information.

[0080] The first unbinding instruction and the second unbinding instruction are only used to distinguish different unbinding instructions; the first disconnection instruction and the second disconnection instruction are only used to distinguish different disconnection instructions.

[0081] In some embodiments, after the first earphone establishes Bluetooth communication connections with the earphone box and the terminal device respectively, the method further includes:

[0082] receiving a first disconnection instruction sent by the earphone box;

[0083] Disconnecting the Bluetooth communication connection with the earphone box based on the first disconnection instruction;

[0084] A second disconnection instruction is sent to the terminal device, so that the terminal device disconnects the Bluetooth communication connection with the first headset based on the second disconnection instruction.

[0085] In a specific implementation, after the first earphone establishes Bluetooth communication connections with the earphone box and the terminal device respectively, the first earphone can perform corresponding operations according to the instructions of the earphone box. For example, after the first earphone receives the first unbinding instruction sent by the earphone box, the first earphone can delete the original identification code and key stored in itself based on the first unbinding instruction, and disconnect the Bluetooth communication connection with the earphone box. Then, the first earphone can further send a second unbinding instruction to the terminal device, so that the terminal device deletes the earphone address of the first earphone based on the second unbinding instruction, and disconnects the Bluetooth communication connection with the first earphone. On this basis, the unbinding instruction can realize the disconnection of the communication connection between the first earphone, the earphone box and the terminal device while realizing the unbinding of the communication connection, thereby further ensuring the security of communication.

[0086] For example, after the first earphone receives the first disconnection instruction sent by the earphone box, the first earphone can disconnect the Bluetooth communication connection with the earphone box based on the first disconnection instruction, and then the first earphone can further send a second disconnection instruction to the terminal device, so that the terminal device disconnects the Bluetooth communication connection with the first earphone based on the second disconnection instruction. On this basis, the communication connection between the first earphone, the earphone box and the terminal device can be safely and quickly disconnected.

[0087] Figure 3 is a schematic diagram of a process for displaying headset identification information provided by an embodiment of the present application, such as Figure 3 As shown, when the user puts the earphone into the earphone box (i.e., in response to the operation of putting the first earphone into the earphone box), the interaction process between the earphone and the earphone box can be: the earphone box uses wired communication to obtain the MAC address of the earphone, such as the earphone box can send a request to the earphone to obtain the MAC address of the earphone, and the earphone will feedback the response containing the MAC address to the earphone box.

[0088] At the same time, the earphone box can implement a detection for whether a specific UUID exists, such as the earphone box requests to check whether the earphone has a valid UUID (i.e., detect whether the first earphone has a valid first earphone identification code), and the earphone responds to check the UUID. If the earphone does not have a valid UUID, the earphone box generates a random value based on the seed to ensure non-repetition, such as generating a UUID corresponding to the earphone (such as a constant uuid_a, with 2 bytes) and a key key_a (with 2 bytes), and sending uuid_a and key_a to the earphone. The earphone box can make the generated uuid_a, key_a and MAC address into a QR code and display it on the screen of the earphone box (i.e., if it is detected that the first earphone does not have a first earphone identification code, the original identification code and key of the first earphone are generated, and the earphone identification information is generated based on the acquired earphone address, original identification code and key of the first earphone; the earphone identification information of the first earphone is displayed on the earphone box).

[0089] Figure 4 is a schematic diagram of a headphone connection process provided by an embodiment of the present application, such as Figure 4 As shown, when the user takes the earphone out of the earphone box, the interaction process between the earphone and the earphone box, and between the terminal device and the earphone box can be: when the earphone is taken out of the earphone box, the earphone can be encrypted by combining uuid_a with key_a to generate an encrypted UUID (such as constant uuid_b, the number of bytes is 2) as an identification code and put it into the broadcast (that is, receiving the original identification code and key sent by the earphone box; using the key to encrypt the original identification code to obtain a new first earphone identification code). The earphone box can scan the BLE broadcast containing the earphone MAC address and identification code, such as scanning the uuid_b field in the BLE broadcast, and after confirming that it is correct, send a connection request to the earphone (that is, in response to the operation of taking the first earphone out of the earphone box, when the broadcast signal of the first earphone is scanned, send a second connection request to the first earphone), and after the earphone accepts the request, it successfully connects to the specified earphone. At the same time, the mobile phone APP in the terminal device can perform a QR code scanning operation to directly establish a connection with the headset with a specified Bluetooth MAC address. For example, the mobile phone APP in the terminal device can send a connection request to the headset, and after the headset accepts the request, it successfully connects to the specified headset (that is, the first headset is used to establish a Bluetooth communication connection with the terminal device based on the received first connection request, and the first connection request is a connection request sent by the terminal device to the first headset by scanning the headset identification information after the first headset is taken out of the headset box), thereby realizing the communication connection of the headset.

[0090] After the headset and headset box, and the headset and terminal device have successfully established a secure connection, Figure 5 is a schematic diagram of a flow chart of earphone unbinding provided by an embodiment of the present application, such as Figure 5 As shown, the user can put another set of headphones into the headphone box to unbind the first set of headphones in the headphone box. For example, the headphone box can respond to the operation of putting the headphones into the headphone box, obtain the identification code of the headphones put in, and detect whether the obtained identification code is the same as the identification code stored in itself (that is, in response to the operation of putting the second headphone into the headphone box, obtain the second headphone identification code of the second headphone, and detect whether the second headphone identification code is the same as the first headphone identification code). If they are the same, the headphone box can send an unbinding instruction to the connected headphone, so that the headphone deletes its own uuid_a and key_a, and sends an instruction to delete the key value key_a to the peripheral device (such as the headphone box) through BLE communication, so that the headphone box deletes uuid_a and key_a, and completes the unbinding process of the headphones and the headphone box (that is, if the second headphone identification code is the same as the first headphone identification code, the original identification code and key of the first headphone are deleted, and the first unbinding instruction is sent to the first headphone, so that the first headphone deletes the original identification code and key based on the first unbinding instruction, and disconnects the Bluetooth communication connection with the headphone box).

[0091] The unbinding process between the terminal device and the headset is similar to the above process. After receiving the unbinding instruction from the headphone box, the connected headset can continue to send unbinding instructions to the terminal device, so that the terminal device deletes the headset address based on the unbinding instruction and disconnects the Bluetooth communication connection with the headset, thereby completing the unbinding process between the headset and the terminal device (i.e., sending a second unbinding instruction to the terminal device, so that the terminal device deletes the headset address of the first headset based on the second unbinding instruction and disconnects the Bluetooth communication connection with the first headset).

[0092] From the above description, it can be found that an earphone connection method provided in an embodiment of the present application generates a dynamic UUID and a key with the help of an earphone box, and displays them on a QR code screen. It can complete the authentication and encryption functions without increasing the input and output capabilities of the earphone and peripheral devices, and realize one-click secure quick connection between the earphone and the earphone box, and the earphone and the terminal device, avoiding unauthorized devices from being connected to the earphone, and greatly improving the speed of Bluetooth connection and the security of BLE connection.

[0093] Corresponding to the headphone connection method in the above embodiment, Figure 6 This is a structural block diagram of an earphone connection device provided in one embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.

[0094] Reference Figure 6 , the device comprises:

[0095] The display module 301 is used for displaying the earphone identification information of the first earphone on the earphone box in response to the operation of putting the first earphone into the earphone box, wherein the first earphone is used to establish a Bluetooth communication connection with the terminal device based on the received first connection request, and the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information after the first earphone is taken out of the earphone box;

[0096] The scanning module 302 is used to respond to the operation of taking the first earphone out of the earphone box, and when the broadcast signal of the first earphone is scanned, send a second connection request to the first earphone, so that the first earphone establishes a Bluetooth communication connection with the earphone box based on the second connection request.

[0097] The present embodiment provides an earphone connection device, which displays the earphone identification information of the first earphone on the earphone box in response to the operation of putting the first earphone into the earphone box through the display module, wherein the first earphone is used to establish a Bluetooth communication connection with a terminal device based on a received first connection request, and the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information after the first earphone is taken out of the earphone box; in response to the operation of taking the first earphone out of the earphone box through the scanning module, a second connection request is sent to the first earphone in the case of scanning the broadcast signal of the first earphone, so that the first earphone establishes a Bluetooth communication connection with the earphone box based on the second connection request. With the device, in response to the operation of putting the first earphone into the earphone box, the earphone identification information of the first earphone is displayed on the earphone box, which provides an information basis for the subsequent communication connection between the terminal device and the first earphone, and at the same time, the Bluetooth communication connection between the first earphone and the earphone box can be realized by scanning the broadcast signal of the first earphone through the earphone box, thereby simplifying the earphone connection process and ensuring the security of the communication connection.

[0098] Optionally, the headset connection device provided in this embodiment further includes:

[0099] A detection module, used for detecting whether there is a valid earphone identification code for the first earphone before displaying the earphone identification information of the first earphone on the earphone box;

[0100] The first generating module is used to generate the earphone identification information according to the first earphone identification code and the earphone address of the first earphone if it is detected that the first earphone has the first earphone identification code; the second generating module is used to generate the original identification code and key of the first earphone if it is detected that the first earphone does not have the first earphone identification code, and generate the earphone identification information according to the acquired earphone address, original identification code and key of the first earphone.

[0101] Optionally, the headset connection device provided in this embodiment further includes:

[0102] The second sending module is used to send the original identification code and the key to the first headset after generating the original identification code and the key of the first headset, wherein the first headset is used to generate a new first headset identification code according to the original identification code and the key.

[0103] Optionally, the headset connection device provided in this embodiment further includes:

[0104] an acquisition module, configured to acquire a second earphone identification code of the second earphone in response to an operation of placing the second earphone into the earphone box after the earphone box establishes a Bluetooth communication connection with the first earphone based on the second connection request, and detect whether the second earphone identification code is the same as the first earphone identification code;

[0105] a third sending module, configured to delete the original identification code and key of the first headset if the second headset identification code is different from the first headset identification code, and send a first unbinding instruction to the first headset, so that the first headset deletes the original identification code and key based on the first unbinding instruction, and disconnects the Bluetooth communication connection with the headset box;

[0106] The fourth sending module is used to send a first disconnection instruction to the first earphone if the second earphone identification code is the same as the first earphone identification code, so that the first earphone disconnects the Bluetooth communication connection with the earphone box based on the first disconnection instruction.

[0107] Optionally, the headset connection device provided in this embodiment further includes:

[0108] The return module is used to determine the second earphone as the first earphone after sending the first unbinding instruction to the first earphone or sending the first disconnection instruction to the first earphone, and return to the step of displaying the earphone identification information of the first earphone on the earphone box.

[0109] Corresponding to the headphone connection method of the above embodiment, Figure 7 This is a structural block diagram of an earphone connection device provided in one embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.

[0110] Reference Figure 7 , the device comprises:

[0111] The first sending module 401 is used to send a broadcast signal in response to the operation of taking the first earphone out of the earphone box;

[0112] a first establishing module 402, configured to receive a first connection request sent by a terminal device, and establish a Bluetooth communication connection with the terminal device based on the first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning earphone identification information displayed on the earphone box after the first earphone is taken out of the earphone box, and the earphone identification information is displayed on the earphone box in response to the operation of putting the first earphone into the earphone box;

[0113] The second establishing module 403 is used to receive a second connection request sent by the earphone box, and establish a Bluetooth communication connection with the earphone box based on the second connection request. The second connection request is sent by the earphone box to the first earphone in response to the operation of taking the first earphone out of the earphone box and when the broadcast signal of the first earphone is scanned.

[0114] The present embodiment provides an earphone connection device, which sends a broadcast signal in response to the operation of taking out a first earphone from an earphone box through a sending module; receives a first connection request sent by a terminal device through a first establishing module, and establishes a Bluetooth communication connection with the terminal device based on the first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information displayed on the earphone box after the first earphone is taken out of the earphone box, and the earphone identification information is displayed on the earphone box by the earphone box in response to the operation of putting the first earphone into the earphone box; receives a second connection request sent by the earphone box through a second establishing module, and establishes a Bluetooth communication connection with the earphone box based on the second connection request, wherein the second connection request is sent by the earphone box to the first earphone in response to the operation of taking out the first earphone from the earphone box when the broadcast signal of the first earphone is scanned. With the device, a Bluetooth communication connection with the terminal device can be established by receiving the first connection request sent by the terminal device, and a Bluetooth communication connection with the earphone box can be established by receiving the second connection request sent by the earphone box, thereby further ensuring the security of the communication connection.

[0115] Optionally, the first sending module is specifically used for:

[0116] If the first headset has a valid first headset identification code, a broadcast signal including the first headset identification code is sent, wherein the headset box is used to identify whether the broadcast signal of the first headset is scanned based on the first headset identification code;

[0117] If the first earphone does not have a valid first earphone identification code, the original identification code and key sent by the earphone box are received, the original identification code is encrypted with the key to obtain a new first earphone identification code, and a broadcast signal containing the new first earphone identification code is sent.

[0118] Optionally, the headset connection device provided in this embodiment further includes:

[0119] A second receiving module is used to receive a first unbinding instruction sent by the earphone box after the first earphone establishes Bluetooth communication connections with the earphone box and the terminal device respectively;

[0120] A deletion module, used to delete the original identification code and key based on the first unbinding instruction, and disconnect the Bluetooth communication connection with the earphone box;

[0121] The fifth sending module is used to send a second unbinding instruction to the terminal device, so that the terminal device deletes the earphone address of the first earphone based on the second unbinding instruction and disconnects the Bluetooth communication connection with the first earphone. The earphone address is obtained by the terminal device by scanning the earphone identification information.

[0122] Optionally, the headset connection device provided in this embodiment further includes:

[0123] A third receiving module is used to receive a first disconnection instruction sent by the earphone box after the first earphone establishes Bluetooth communication connections with the earphone box and the terminal device respectively;

[0124] A disconnection module, configured to disconnect the Bluetooth communication connection with the earphone box based on a first disconnection instruction;

[0125] The sixth sending module is used to send a second disconnection instruction to the terminal device, so that the terminal device disconnects the Bluetooth communication connection with the first headset based on the second disconnection instruction.

[0126] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0127] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0128] The embodiment of the present application also provides an earphone box, Figure 8 is a schematic diagram of the structure of an earphone box provided by an embodiment of the present application, such as Figure 8 As shown, the earphone box includes: at least one processor 501, a memory 502, an input device 503, an output device 504, and a computer program stored in the memory 502 and executable on at least one processor 501. When the processor 501 executes the computer program, the steps in any of the above-mentioned method embodiments are implemented.

[0129] The input device 503 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the earphone box. The output device 504 may include a display device such as a display screen.

[0130] The embodiment of the present application also provides a headset, Fig. 9 is a schematic diagram of the structure of an earphone provided by an embodiment of the present application, such as Fig. 9 As shown, the headset includes: at least one processor 601, a memory 602, an input device 603, an output device 604, and a computer program stored in the memory 602 and executable on at least one processor 601. When the processor 601 executes the computer program, the steps in any of the above method embodiments are implemented.

[0131] The input device 603 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the headset. The output device 604 may include a display device such as a display screen.

[0132] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by the processor 501 or 601, the steps in the above-mentioned method embodiments can be implemented.

[0133] An embodiment of the present application provides a computer program product. When the computer program product is run on an earphone box or earphones, the earphone box or earphones can implement the steps in the above-mentioned method embodiments when the computer program product is executed.

[0134] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can be executed by the processor 501 or 601. The steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / headphone box, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0135] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0136] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0137] In the embodiments provided in the present application, it should be understood that the disclosed device / earphone box and method can be implemented in other ways. For example, the device / earphone box embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0138] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0139] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A headphone connection method, characterized in that: Applied to an earphone box, the method comprises: In response to an operation of placing a first earphone into the earphone box, displaying earphone identification information of the first earphone on the earphone box, wherein the first earphone is used to establish a Bluetooth communication connection with a terminal device based on a received first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information after the first earphone is taken out of the earphone box; In response to the operation of taking the first earphone out of the earphone box, when the broadcast signal of the first earphone is scanned, a second connection request is sent to the first earphone, so that the first earphone establishes a Bluetooth communication connection with the earphone box based on the second connection request.

2. The headphone connection method according to claim 1, characterized in that: Before displaying the earphone identification information of the first earphone on the earphone box, the method further includes: Detecting whether the first headset has a valid first headset identification code; If it is detected that the first headset has the first headset identification code, generating the headset identification information according to the first headset identification code and the headset address of the first headset; If it is detected that the first headset does not have the first headset identification code, an original identification code and a key of the first headset are generated, and the headset identification information is generated according to the acquired headset address of the first headset, the original identification code and the key.

3. The headphone connection method according to claim 2, characterized in that: After generating the original identification code and key of the first headset, the method further includes: The original identification code and the key are sent to the first headset, wherein the first headset is used to generate a new first headset identification code according to the original identification code and the key.

4. The earphone connection method according to claim 2, wherein: After the earphone box establishes a Bluetooth communication connection with the first earphone based on the second connection request, the method further includes: In response to an operation of placing a second earphone into the earphone box, obtaining a second earphone identification code of the second earphone, and detecting whether the second earphone identification code is the same as the first earphone identification code; If the second headset identification code is different from the first headset identification code, deleting the original identification code and the key of the first headset, and sending a first unbinding instruction to the first headset, so that the first headset deletes the original identification code and the key based on the first unbinding instruction, and disconnects the Bluetooth communication connection with the headset box; If the second earphone identification code is the same as the first earphone identification code, a first disconnection instruction is sent to the first earphone, so that the first earphone disconnects the Bluetooth communication connection with the earphone box based on the first disconnection instruction.

5. The earphone connection method according to claim 4, characterized in that: After sending the first unbinding instruction to the first headset or sending the first disconnection instruction to the first headset, the method further includes: The second earphone is determined as the first earphone, and the step of displaying the earphone identification information of the first earphone on the earphone box is returned to be executed.

6. A method for connecting an earphone, characterized in that: Applied to a first headset, the method comprises: In response to the operation of taking the first earphone out of the earphone box, sending a broadcast signal; receiving a first connection request sent by a terminal device, and establishing a Bluetooth communication connection with the terminal device based on the first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning earphone identification information displayed on the earphone box after the first earphone is taken out of the earphone box, and the earphone identification information is displayed on the earphone box in response to an operation of placing the first earphone into the earphone box; Receive a second connection request sent by the earphone box, and establish a Bluetooth communication connection with the earphone box based on the second connection request, wherein the second connection request is sent by the earphone box to the first earphone in response to the operation of taking the first earphone out of the earphone box and when the broadcast signal of the first earphone is scanned.

7. The earphone connection method according to claim 6, characterized in that: The sending of the broadcast signal comprises: If the first headset has a valid first headset identification code, sending a broadcast signal including the first headset identification code, wherein the headset box is used to identify whether the broadcast signal of the first headset is scanned based on the first headset identification code; If the first earphone does not have a valid first earphone identification code, the original identification code and key sent by the earphone box are received, the original identification code is encrypting the key to obtain a new first earphone identification code, and a broadcast signal containing the new first earphone identification code is sent.

8. The earphone connection method according to claim 7, characterized in that: After the first earphone establishes Bluetooth communication connections with the earphone box and the terminal device respectively, the method further includes: Receiving a first unbinding instruction sent by the earphone box; Deleting the original identification code and the key based on the first unbinding instruction, and disconnecting the Bluetooth communication connection with the earphone box; A second unbinding instruction is sent to the terminal device so that the terminal device deletes the earphone address of the first earphone based on the second unbinding instruction and disconnects the Bluetooth communication connection with the first earphone, wherein the earphone address is obtained by the terminal device by scanning the earphone identification information.

9. The earphone connection method according to claim 7, characterized in that: After the first earphone establishes Bluetooth communication connections with the earphone box and the terminal device respectively, the method further includes: receiving a first disconnection instruction sent by the earphone box; Disconnecting the Bluetooth communication connection with the earphone box based on the first disconnection instruction; A second disconnection instruction is sent to the terminal device, so that the terminal device disconnects the Bluetooth communication connection with the first headset based on the second disconnection instruction.

10. An earphone connection device, characterized in that: Configured in an earphone box, the device includes: a display module, configured to display, on the earphone box, earphone identification information of the first earphone in response to an operation of placing the first earphone into the earphone box, wherein the first earphone is configured to establish a Bluetooth communication connection with a terminal device based on a received first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning the earphone identification information after the first earphone is taken out of the earphone box; The scanning module is used for responding to the operation of taking the first earphone out of the earphone box, and sending a second connection request to the first earphone when a broadcast signal of the first earphone is scanned, so that the first earphone establishes a Bluetooth communication connection with the earphone box based on the second connection request.

11. An earphone connection device, characterized in that: Configured in a first earphone, the device comprises: A first sending module, configured to send a broadcast signal in response to an operation of taking the first earphone out of the earphone box; a first establishing module, configured to receive a first connection request sent by a terminal device, and establish a Bluetooth communication connection with the terminal device based on the first connection request, wherein the first connection request is a connection request sent by the terminal device to the first earphone by scanning earphone identification information displayed on the earphone box after the first earphone is taken out of the earphone box, and the earphone identification information is displayed on the earphone box in response to an operation of placing the first earphone into the earphone box; The second establishing module is used to receive a second connection request sent by the earphone box, and establish a Bluetooth communication connection with the earphone box based on the second connection request. The second connection request is sent by the earphone box to the first earphone in response to the operation of taking the first earphone out of the earphone box and when the broadcast signal of the first earphone is scanned.

12. An earphone box, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

13. A headset comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 6 to 9 is implemented.

14. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.