Bluetooth connection method and apparatus, electronic device, and computer-readable storage medium
By sending a broadcast signal through the second earpiece in the headphone device and establishing a Bluetooth connection with the first terminal device or the first earpiece, the problem of cumbersome state switching of headphone devices in the prior art is solved, and a simple and quick state switching is achieved to meet the user's needs in different scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2021-10-11
- Publication Date
- 2026-07-31
AI Technical Summary
The current headphone devices are cumbersome to switch between using the two headphones individually and using them together, which affects normal user experience.
By having the first earpiece establish a Bluetooth connection with the first terminal device, the second earpiece responds to the user's operation by sending a broadcast signal, and the first terminal device or the first earpiece establishes a Bluetooth connection with the second earpiece based on the broadcast signal, thus simplifying the operation process.
It makes switching between using each earbud individually and using them together easier and faster, improving switching efficiency without affecting the user's normal use of the first earbud.
Smart Images

Figure CN115967926B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, specifically to a Bluetooth connection method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] As people's lives become more diverse, their needs for headphone devices are increasing. In some scenarios, users need to use each earbud individually, while in others, they need to use both earbuds together. Currently, to meet users' needs in different scenarios, many headphone devices have emerged that support both individual and simultaneous use of the earbuds. However, these devices often require a relatively cumbersome operation to switch between individual and simultaneous use of the earbuds. Summary of the Invention
[0003] This application discloses a Bluetooth connection method, device, electronic device, and computer-readable storage medium, which simplifies the operation of switching the headphone device from a state where each of the two headphones is used individually to a state where both headphones are used together, improves switching efficiency, and does not affect the user's use of the first headphone.
[0004] This application discloses a Bluetooth connection method applied to an earphone device, the earphone device including a first earphone and a second earphone, the method including:
[0005] When the first earphone establishes a Bluetooth connection with the first terminal device, but the first earphone does not establish a Bluetooth connection with the second earphone, the second earphone responds to the connection operation by sending a broadcast signal;
[0006] The broadcast signal is used to trigger the first terminal device that receives the broadcast signal to send a connection command to the first earphone, so that the first earphone establishes a Bluetooth connection with the second earphone according to the connection command; or, the broadcast signal is used to trigger the first earphone that receives the broadcast signal to establish a Bluetooth connection with the second earphone.
[0007] This application discloses a Bluetooth connection method applied to a terminal device, wherein the terminal device establishes a Bluetooth connection with a first earpiece in an earphone device, and the earphone device further includes a second earpiece; the method includes:
[0008] Receive a broadcast signal sent by the second earpiece, the broadcast signal being sent by the second earpiece in response to a connection operation;
[0009] A connection command is sent to the first earphone according to the broadcast signal. The connection command is used to instruct the first earphone to establish a Bluetooth connection with the second earphone according to the connection command.
[0010] This application discloses a Bluetooth connection device applied to an earphone device, the earphone device including a first earphone and a second earphone, the device comprising:
[0011] The broadcast module is used to send a broadcast signal by the second earpiece in response to a connection operation when the first earpiece establishes a Bluetooth connection with the first terminal device and the first earpiece does not establish a Bluetooth connection with the second earpiece.
[0012] The broadcast signal is used to trigger the first terminal device to send a connection command to the first earphone, so that the first earphone establishes a Bluetooth connection with the second earphone according to the connection command; or, the broadcast signal is used to trigger the first earphone that receives the broadcast signal to establish a Bluetooth connection with the second earphone.
[0013] This application discloses a Bluetooth connection device applied to a terminal device. The terminal device establishes a Bluetooth connection with a first earpiece in an earphone device, and the earphone device further includes a second earpiece. The device includes:
[0014] A broadcast receiving module is used to receive a broadcast signal sent by the second earpiece, the broadcast signal being sent by the second earpiece in response to a connection operation;
[0015] The instruction sending module is used to send a connection instruction to the first earphone according to the broadcast signal. The connection instruction is used to instruct the first earphone to establish a Bluetooth connection with the second earphone according to the connection instruction.
[0016] This application discloses an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the method described above.
[0017] This application discloses a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method described above.
[0018] The Bluetooth connection method, apparatus, electronic device, and computer-readable storage medium disclosed in this application, when a first earpiece of an earphone device establishes a Bluetooth connection with a first terminal device but not with a second earpiece (i.e., the first and second earpieces are used independently), allows the second earpiece to respond to a connection operation by sending a broadcast signal. Upon receiving this broadcast signal, the first terminal device sends a connection command to the first earpiece, enabling the first earpiece to establish a Bluetooth connection with the second earpiece according to the command, or the first earpiece directly establishes a Bluetooth connection with the second earpiece upon receiving the broadcast signal, successfully switching to a state where both earpieces are used simultaneously. In this application embodiment, the user only needs to perform a connection operation on the second earpiece to switch the earphone device from a state where both earpieces are used independently to a state where both earpieces are used simultaneously. Compared to related technologies that require placing both earpieces in the earphone charging case and performing corresponding operations on the charging case to achieve the state switch, this method is simpler and faster, improves switching efficiency, and does not affect the user's normal use of the first earpiece. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is an application scenario diagram of the Bluetooth connection method in one embodiment;
[0021] Figure 2A This is a timing diagram of a Bluetooth connection method in one embodiment;
[0022] Figure 2B This is a timing diagram of a Bluetooth connection method in another embodiment;
[0023] Figure 3 Here is a flowchart of a Bluetooth connection method in one embodiment;
[0024] Figure 4 This is a timing interaction diagram of a Bluetooth connection method in one embodiment;
[0025] Figure 5 Here is a flowchart of a Bluetooth connection method in another embodiment;
[0026] Figure 6 This is a timing interaction diagram of the Bluetooth connection method in another embodiment;
[0027] Figure 7 Here is a flowchart of a Bluetooth connection method in yet another embodiment;
[0028] Figure 8 This is a block diagram of a Bluetooth connectivity device in one embodiment;
[0029] Figure 9 This is a block diagram of a Bluetooth connectivity device in another embodiment;
[0030] Figure 10 This is a structural block diagram of a headphone device in one embodiment. Detailed Implementation
[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0032] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0033] It is understood that the terms "first," "second," etc., used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first earphone may be referred to as a second earphone, and similarly, a second earphone may be referred to as a first earphone. Both the first and second earphones are earphones, but they are not the same earphone. Furthermore, it should be noted that the terms "multiple," etc., used in the embodiments of this application refer to two or more.
[0034] Figure 1 This is a diagram illustrating an application scenario of a Bluetooth connection method in one embodiment. For example... Figure 1 As shown, the headphone device 10 may include a first earphone 110 and a second earphone 120. The headphone device 10 may include, but is not limited to, over-ear headphones, in-ear headphones, earbuds, and ear-hook headphones. Furthermore, the headphone device 10 may be a wireless Bluetooth headphone, such as a true wireless stereo (TWS) Bluetooth headphone.
[0035] In this embodiment of the application, the headphone device 10 can support the use of the first headphone 110 and the second headphone 120 separately (i.e., the first headphone 110 and the second headphone 120 can play audio data from different terminal devices respectively), and can also support the use of the first headphone 110 and the second headphone 120 together (i.e., the first headphone 110 and the second headphone 120 play audio data from the same terminal device).
[0036] Optionally, the first earphone 110 and the second earphone 120 in the headphone device 10 can be used independently, including but not limited to the following scenarios: 1. The first earphone 110 establishes a Bluetooth connection with the first terminal device 20, while the second earphone 120 does not establish a Bluetooth connection with the first earphone 110, and the second earphone 120 does not establish a Bluetooth connection with any terminal device; 2. The first earphone 110 establishes a Bluetooth connection with the first terminal device 20, and the second earphone 120 establishes a Bluetooth connection with the second terminal device, but no Bluetooth connection is established between the second earphone 120 and the first earphone 110; 3. The second earphone 120 establishes a Bluetooth connection with the second terminal device, while the first earphone 110 does not establish a Bluetooth connection with the second earphone 120, and the first earphone 110 does not establish a Bluetooth connection with any terminal device, etc.
[0037] The first terminal device 20 and the second terminal device may include, but are not limited to, wearable devices (such as wristbands, smartwatches, smart glasses, etc.), vehicle terminals, mobile phones, tablets, laptops, etc.
[0038] In related technologies, when a user wants to switch from using the first earphone 110 and the second earphone 120 separately to using them together, it requires a rather cumbersome operation. Taking TWS earphones as an example, the user needs to place both the first earphone 110 and the second earphone 120 into the earphone charging case and press the button on the charging case or close the charging case for a period of time before switching from using the first earphone 110 and the second earphone 120 separately to using them together. The operation is cumbersome, and if the user is using the first earphone 110 or the second earphone 120 at the same time, it will affect the user's normal use.
[0039] In this embodiment, when the first earphone 110 establishes a Bluetooth connection with the first terminal device 20, but the first earphone 110 does not establish a Bluetooth connection with the second earphone 120, that is, when the first earphone 110 and the second earphone 120 are used independently, a connection operation can be performed on the second earphone 120 when the user wants to switch the independently used first earphone 110 and second earphone 120 to a shared use mode. The second earphone 120 can respond to this connection operation by sending a broadcast signal.
[0040] In some embodiments, when the first terminal device 20 scans and receives the broadcast signal, it can send a connection command to the first earphone 110 according to the broadcast signal. The first earphone 110 can establish a Bluetooth connection with the second earphone 120 according to the connection command sent by the first terminal device 20. In some embodiments, if the second earphone 120 scans and receives the broadcast signal, it can also directly establish a Bluetooth connection with the first earphone 110 according to the broadcast signal. After the first earphone 110 and the second earphone 120 establish a Bluetooth connection, the second earphone 120 can obtain the audio data sent by the first terminal device 20 and play the audio data. The first earphone 110 and the second earphone 120 can play the audio data of the first terminal device 20 together, successfully switching to a shared mode.
[0041] Figure 2A This is a timing diagram of a Bluetooth connection method in one embodiment. For example... Figure 2A As shown, the Bluetooth connection method mainly includes the following steps:
[0042] Step 1: When the first earphone 110 establishes a Bluetooth connection with the first terminal device 20, and the second earphone 120 does not establish a Bluetooth connection with the first earphone 110, the second earphone 120 sends a broadcast signal in response to the connection operation performed by the user.
[0043] Step 2: The first terminal device 20 receives the broadcast signal sent by the second earphone 120 and sends a connection command to the first earphone 110 according to the broadcast signal.
[0044] Step 3: The first earphone 110 receives the connection instruction sent by the first terminal device 20, and sends a Bluetooth connection request to the second earphone 120 according to the connection instruction. The second earphone 120 can respond to the Bluetooth connection request and establish a Bluetooth connection with the first earphone 110.
[0045] Figure 2B This is a timing diagram of a Bluetooth connection method in another embodiment. (See diagram below.) Figure 2B As shown, the Bluetooth connection method mainly includes the following steps:
[0046] Step 1: When the first earphone 110 establishes a Bluetooth connection with the first terminal device 20, and the second earphone 120 does not establish a Bluetooth connection with the first earphone 110, the second earphone 120 sends a broadcast signal in response to the connection operation performed by the user.
[0047] Step 2: The first earphone 110 receives the broadcast signal sent by the second earphone 120 and sends a Bluetooth connection request to the second earphone 120 according to the broadcast signal. The second earphone 120 can respond to the Bluetooth connection request and establish a Bluetooth connection with the first earphone 110.
[0048] Compared to related technologies that require placing both earbuds into the charging case and performing corresponding operations on the charging case to achieve state switching, in this embodiment, the user only needs to perform a connection operation on the second earbud 120 to switch the headphone device 10 from a state where each earbud is used individually to a state where both earbuds are used together. This is simpler and faster, improves switching efficiency, and does not affect the user's normal use of the first earbud 110.
[0049] The Bluetooth connection described above can be implemented based on the classic Bluetooth protocol (e.g., the Bluetooth 4.0 protocol developed by the Bluetooth Special Interest Group), or it can be implemented based on the Bluetooth Low Energy (BLE) protocol (e.g., the Bluetooth 5.0 protocol). There is no limitation here, and it can change with the development of the Bluetooth protocol.
[0050] like Figure 3 As shown, in one embodiment, a Bluetooth connection method is provided, which can be applied to the aforementioned headphone device. The method may include the following steps:
[0051] Step 310: If the first earphone establishes a Bluetooth connection with the first terminal device, but the first earphone does not establish a Bluetooth connection with the second earphone, the second earphone responds to the connection operation by sending a broadcast signal; the broadcast signal is used to trigger the first terminal device that receives the broadcast signal to send a connection command to the first earphone, so that the first earphone establishes a Bluetooth connection with the second earphone according to the connection command; or, the broadcast signal is used to trigger the first earphone that receives the broadcast signal to establish a Bluetooth connection with the second earphone.
[0052] In this embodiment of the application, the headphone device can simultaneously support two usage modes: the first headphone and the second headphone can be used separately, and the first headphone and the second headphone can be used together. The headphone device can switch between the two usage modes according to the user's actual needs.
[0053] When the first earphone establishes a Bluetooth connection with the first terminal device, but not with the second earphone, and the second earphone does not establish a Bluetooth connection with the first terminal device, the first and second earphones in the headset device are in a state of independent use. This state of independent use means that the first and second earphones can establish Bluetooth connections with different terminal devices and play audio data from different terminal devices, with the audio data played by the first and second earphones being asynchronous. When the first and second earphones are in independent use, no Bluetooth connection is established between them.
[0054] When a user needs to switch from using the first and second earpieces separately to using them together, a connection operation can be performed on the second earpiece. Optionally, the second earpiece can be one that is not currently processing any business. For example, it could be an earpiece not currently connected to any terminal device, or it could be connected to a second terminal device but not transmitting data with it. By connecting an earpiece that is not currently processing any business, it avoids interfering with the normal use of the earpieces, and the user does not need to remember whether to connect the left or right earpiece, which is more in line with user habits.
[0055] The operation method of the connection described above can be set according to actual application and needs. In some embodiments, the user can perform the connection operation on the second earphone. The second earphone may be equipped with one or more sensors, such as touch sensors, pressure sensors, distance sensors, temperature sensors, etc., and the connection operation performed by the user can be detected by one or more sensors. For example, the connection operation can be a click operation, in which case the second earphone can detect the click operation through the touch sensor, that is, determine that the connection operation has been detected; the connection operation can also be a press operation, in which case the second earphone can detect the press operation through the pressure sensor, that is, determine that the connection operation has been detected, and so on, but it is not limited to these.
[0056] In some embodiments, the second earpiece may send a broadcast signal in response to a detected connection operation, so that the first terminal device receiving the broadcast signal sends a connection instruction to the first earpiece according to the broadcast signal. The connection instruction can be used to instruct the first earpiece to establish a Bluetooth connection with the second earpiece.
[0057] Optionally, the broadcast signal may include a BLE broadcast signal. When the second earpiece detects a connection operation, it may send a BLE broadcast signal on the broadcast channel based on the BLE Bluetooth protocol. In some embodiments, the Bluetooth module of the first terminal device may be in a scanning state, listening to various broadcast channels, and when it detects a BLE broadcast signal sent by the second earpiece, it sends a connection command to the first earpiece through the Bluetooth connection with the first earpiece. In some embodiments, the Bluetooth module of the second earpiece may be in a scanning state, listening to various broadcast channels, and when it detects a BLE broadcast signal sent by the second earpiece, it establishes a Bluetooth connection with the second earpiece based on the BLE broadcast signal.
[0058] In some embodiments, the broadcast signal includes first specific information. Optionally, the broadcast signal is used to trigger a first terminal device receiving the broadcast signal to send a connection command to a first earpiece when it determines that the first specific information is the same as the second specific information, wherein the second specific information is sent by the first earpiece to the first terminal device; or, the broadcast signal is used to trigger the first terminal device receiving the broadcast signal to send the first specific information and the connection command to the first earpiece, so that the first earpiece establishes a Bluetooth connection with the second earpiece according to the connection command when it determines that the first specific information is the same as the second specific information stored in the first earpiece.
[0059] The first and second earpieces belonging to the same headphone device can pre-agree on specific information and store this agreed-upon information separately. The specific information stored in the first and second earpieces is identical. Further, this specific information can be a string composed of one or more of numbers, letters, symbols, etc., which identifies the first and second earpieces as matching earpieces belonging to the same headphone device. Optionally, this specific information can be fixed specific information set by the headphone device before leaving the factory, and the specific information is different for each headphone device. Alternatively, this specific information can be generated and stored in the first and second earpieces each time the headphone device switches to a state where each earpiece is used individually; the specific information generated by the headphone device may be different each time.
[0060] In some embodiments, after the first earphone establishes a Bluetooth connection with the first terminal device, the first earphone can send stored second specific information to the first terminal device. Upon detecting a connection operation, the second earphone can retrieve the stored first specific information and generate a broadcast signal carrying that first specific information for broadcasting. Upon receiving the broadcast signal, the first terminal device can parse the broadcast signal to obtain the first specific information and compare it with the second specific information sent by the first earphone to determine if they are the same. If the first specific information is the same as the second specific information, it indicates that the broadcast signal was sent by the second earphone, which belongs to the same earphone device as the first earphone, and a connection command can be sent to the first earphone.
[0061] In other embodiments, after the first terminal device parses the first specific information, it can also send the first specific information and a connection command to the first earpiece. The first earpiece can compare the first specific information with the stored second specific information to determine whether they are the same. If the first specific information is the same as the second specific information, it can respond to the connection command and establish a Bluetooth connection with the second earpiece according to the connection command.
[0062] In this embodiment, the first terminal device or the first earphone can accurately identify the identity of the second earphone that sent the broadcast signal through the second specific information carried in the broadcast signal, thereby improving the accuracy of Bluetooth connection between the first earphone and the second earphone.
[0063] The first earpiece can receive a connection command sent by the first terminal device via a Bluetooth connection. When the first earpiece receives the connection command, it can send a Bluetooth connection request to the second earpiece. After receiving the Bluetooth connection request, the second earpiece can respond to the Bluetooth connection request to establish a Bluetooth connection with the first earpiece.
[0064] In some embodiments, the broadcast signal may further include the Bluetooth address corresponding to the second earpiece. When the first and second earpieces are used independently, they may each correspond to different Bluetooth addresses, thereby enabling them to establish Bluetooth connections with different terminal devices independently. After detecting a connection operation, the second earpiece may send a broadcast signal carrying first specific information and its own Bluetooth address. Upon receiving the broadcast signal, the first terminal device can parse and obtain the first specific information and the Bluetooth address corresponding to the second earpiece. If it is determined that the first specific information is the same as the second feature information, a connection command including the Bluetooth address can be sent to the first earpiece.
[0065] After receiving the connection command, the first earphone can parse it to obtain the Bluetooth address of the second earphone, and then send a Bluetooth connection request to the second earphone based on that Bluetooth address. In this embodiment, a first terminal device connected to the first earphone acts as an intermediary for information relay, enabling the first earphone to obtain the Bluetooth address of the second earphone and accurately initiate a Bluetooth connection request to the second earphone, thus ensuring the reliability of the Bluetooth connection between the first and second earphones.
[0066] After the first and second earbuds establish a Bluetooth connection, they can share the same Bluetooth address. This same Bluetooth address can be either the Bluetooth address of the first earbud or the Bluetooth address of the second earbud, meaning the first and second earbuds are in a shared usage state. This shared usage state refers to data synchronization between the first and second earbuds; they can both play audio data transmitted from the same terminal device. For example, the first and second earbuds can both play audio data transmitted from the first terminal device.
[0067] For example, Figure 4 This is a timing interaction diagram of a Bluetooth connection method in one embodiment. For example... Figure 4As shown, the headphone device may include headphone A and headphone B. Headphone A and headphone B are not connected via Bluetooth and are used independently. Headphone B establishes a Bluetooth connection with terminal device C and sends second specific information to terminal device C. When the user needs to switch headphone A and headphone B from independent use to shared use, a connection operation can be performed on headphone A. Headphone A responds to the connection operation and sends a broadcast signal, which may carry first specific information and headphone A's Bluetooth address. Upon receiving the broadcast signal, terminal device C can parse the broadcast signal to obtain the first specific information and headphone A's Bluetooth address. Terminal device C can compare the first specific information with the second specific information sent by headphone B, and if the first specific information and the second specific information are the same, it sends a connection command to headphone B, which includes headphone A's Bluetooth address. After receiving the connection command, headphone B can send a Bluetooth connection request to headphone A based on the headphone A's Bluetooth address included in the connection command, and establish a Bluetooth connection with headphone A. After earphone A and earphone B establish a Bluetooth connection, earphone A and earphone B synchronize their data and play audio data transmitted from the same terminal device.
[0068] In other embodiments, the second earpiece may send a broadcast signal in response to a detected connection operation, so that the first earpiece receiving the broadcast signal can directly establish a Bluetooth connection with the second earpiece.
[0069] Optionally, the broadcast signal may include first specific information and the Bluetooth address corresponding to the second earpiece. The broadcast signal can be used to trigger the first earpiece that receives the broadcast signal to send a Bluetooth connection request to the second earpiece according to the Bluetooth address when it determines that the first specific information is the same as the second specific information stored in the first earpiece, so that the second earpiece responds to the Bluetooth connection request and establishes a Bluetooth connection with the first earpiece.
[0070] If the first earpiece receives a broadcast signal from the second earpiece, it can parse the broadcast signal to obtain first specific information and the Bluetooth address of the second earpiece. The first earpiece can compare the parsed first specific information with the stored second specific information to determine if they are the same. If the first specific information is the same as the second specific information, it can send a Bluetooth connection request to the second earpiece based on the second earpiece's Bluetooth address, thereby establishing a Bluetooth connection with the second earpiece.
[0071] In this embodiment, the user only needs to connect the second earphone to switch the headphone device from a state where each earphone is used individually to a state where both earphones are used together. Compared with the related technology, which requires both earphones to be placed in the headphone charging case and corresponding operations to be performed on the headphone charging case to achieve the state switch, this method is simpler and faster, improves the switching efficiency, and does not affect the user's normal use of the first earphone.
[0072] like Figure 5 As shown, in another embodiment, a Bluetooth connection method is provided, which can be applied to the above-described headphone device. The method may include the following steps:
[0073] Step 502: If the first earpiece establishes a Bluetooth connection with the first terminal device, the second earpiece establishes a Bluetooth connection with the second terminal device, and the first earpiece does not establish a Bluetooth connection with the second earpiece, the second earpiece, in response to the connection operation, disconnects the Bluetooth connection with the second terminal device and sends a broadcast signal; the broadcast signal is used to trigger the first terminal device that receives the broadcast signal to send a connection command to the first earpiece, so that the first earpiece establishes a Bluetooth connection with the second earpiece according to the connection command; or, the broadcast signal is used to trigger the first earpiece that receives the broadcast signal to establish a Bluetooth connection with the second earpiece.
[0074] In this embodiment of the application, the first earphone and the second earphone are used separately. This may include scenarios where the first earphone establishes a Bluetooth connection with the first terminal device, the second earphone establishes a Bluetooth connection with the second terminal device, and the first earphone does not establish a Bluetooth connection with the second earphone. In these scenarios, the first terminal device and the second terminal device are two different terminal devices.
[0075] When a user needs to switch from using the first and second earphones separately to using them together, a connection operation can be performed on the second earphone. In some embodiments, the connection operation on the second earphone can be performed by the user on the second earphone or on the second terminal device. When a user needs to switch from using the first and second earphones separately to using them together, a connection operation can be performed on the second terminal device. After detecting the connection operation, the second terminal device can send an operation command to the second earphone. The second earphone can respond to the operation command, disconnect the Bluetooth connection with the second terminal device, and send a broadcast signal.
[0076] Optionally, the connection operation performed on the second terminal device may include, but is not limited to, one or more of touch operation, voice operation, and gesture operation. For example, the user can control the second terminal device to enter the Bluetooth settings interface, which may include a toggle button. The user can click the toggle button to trigger the first and second earphones to switch from a state of independent use to a state of joint use. When the second terminal device detects the click operation on the toggle button, it determines that a connection operation has been detected. This can enrich the operation methods of connection operation and improve the convenience of operation.
[0077] In some embodiments, the second earpiece may be in a state of not transmitting data with the second terminal device before responding to a connection operation; that is, the second earpiece is not currently handling the services of the second terminal device. When the second earpiece is not currently handling the services of the second terminal device, the user can initiate a connection operation for the second earpiece. The second earpiece can respond to this connection operation by disconnecting the Bluetooth connection with the second terminal device and sending a broadcast signal. Since the first and second earpieces are used independently, they can each use different Bluetooth addresses to establish Bluetooth connections with different terminal devices. When the first and second earpieces switch to a shared usage state, they share the same Bluetooth address to achieve synchronous output of audio data from the same terminal device. Therefore, before establishing a Bluetooth connection between the first and second earpieces, the second earpiece can first disconnect from the second terminal device to avoid connection errors due to changes in the Bluetooth address.
[0078] In this embodiment, the second earpiece, which is not currently processing any business, can disconnect from the second terminal device via Bluetooth. After the first earpiece and the second earpiece establish a Bluetooth connection, the second earpiece can share the Bluetooth address of the first earpiece, thus avoiding any impact on data transmission between the first terminal device and the first earpiece and affecting the user's normal use.
[0079] It should be noted that the embodiments of this application do not limit the order in which the second earphone disconnects the Bluetooth connection with the second terminal device and sends the broadcast signal. The second earphone may disconnect the Bluetooth connection first and then send the broadcast signal, or it may send the broadcast signal and then disconnect the Bluetooth connection, or it may disconnect the Bluetooth connection and send the broadcast signal simultaneously, etc.
[0080] In some embodiments, when the second earpiece begins transmitting a broadcast signal, a timer can be started to record the duration of the broadcast signal transmission. When the second earpiece receives a Bluetooth connection request from the first earpiece, or when the duration recorded by the timer reaches a duration threshold, the second earpiece can stop transmitting the broadcast signal, thus avoiding excessive power consumption due to prolonged broadcast signal transmission.
[0081] Optionally, if the second earphone still fails to establish a Bluetooth connection with the first earphone when the recorded duration reaches the duration threshold, a first prompt message can be output. This first prompt message can be used to inform the user that the second earphone has failed to establish a Bluetooth connection with the first earphone, so that the user can make further adjustments (such as placing the second earphone closer to the first terminal device).
[0082] Optionally, if the second earphone successfully establishes a Bluetooth connection with the first earphone, the second earphone can also output a second notification message. This second notification message is used to inform the user that the second earphone has successfully established a Bluetooth connection with the first earphone, that is, the second earphone and the first earphone have successfully switched to a shared usage state. The aforementioned first and second notification messages may include, but are not limited to, voice prompts, sound prompts, vibration prompts, etc., and are not limited here. By outputting notification messages, users can accurately obtain the current usage mode of the earphone device, improving the user experience.
[0083] It should be noted that if neither the first nor the second earpiece is processing any business, the user can also choose to connect to the first earpiece. The first earpiece will send a broadcast signal, and the second earpiece will initiate a Bluetooth connection request to the first earpiece. The process is similar to how the second earpiece sends a broadcast signal, and will not be repeated here.
[0084] Step 504: The first earphone and the second earphone synchronously output the audio data transmitted by the first terminal device.
[0085] In some embodiments, if the first earphone is transmitting audio data with the first terminal device when it sends a Bluetooth connection request to the second earphone, the first earphone and the second earphone can synchronously output the audio data transmitted by the first terminal device after establishing a Bluetooth connection.
[0086] In some embodiments, the headset device may include a master headset and a slave headset. When the headset device establishes a Bluetooth connection with the terminal device, the master headset establishes a Bluetooth physical link with the terminal device and can directly transmit data with the terminal device. The slave headset can monitor the Bluetooth physical link between the master headset and the terminal device, or the master headset can synchronize data sent by the terminal device to the slave headset. The slave headset does not directly connect to the terminal device. The Bluetooth physical link may include, but is not limited to, physical links such as ACL (Asynchronous Connectionless).
[0087] In some embodiments, the first earpiece can be a master earpiece, and the second earpiece can be a slave earpiece. Optionally, after the first earpiece and the second earpiece establish a Bluetooth connection, the first earpiece can synchronize the connection information of the first terminal device to the second earpiece, so that the second earpiece can monitor the Bluetooth connection between the first earpiece and the first terminal device based on the connection information. Optionally, the connection information may include, but is not limited to, frequency hopping information, channel information, clock information, etc. By monitoring the Bluetooth connection between the first earpiece and the first terminal device, the second earpiece can synchronously obtain the audio data transmitted from the first terminal device to the first earpiece and play the audio data, thus achieving synchronization between the master and slave earpieces.
[0088] Optionally, after the first earphone and the second earphone establish a Bluetooth connection, the first earphone can synchronize the data transmitted between itself and the first terminal device to the second earphone. The second earphone can obtain the audio data synchronized by the first earphone and play the audio data, thereby realizing synchronization between the master and slave earphones.
[0089] In some embodiments, the first earpiece can be a slave earpiece, and the second earpiece can be a master earpiece. Optionally, after the first earpiece and the second earpiece establish a Bluetooth connection, the first earpiece can synchronize the connection information of the first terminal device to the second earpiece, thereby switching the Bluetooth connection target of the first terminal device from the first earpiece to the second earpiece, that is, switching the Bluetooth connection between the first earpiece and the first terminal device to the Bluetooth connection between the second earpiece and the first terminal device. The first earpiece can monitor the data transmission between the second earpiece and the first terminal device, or the second earpiece can synchronize the data transmitted with the first terminal device to the first earpiece, realizing synchronization between the master and slave earpieces.
[0090] For example, Figure 6 This is a timing interaction diagram of a Bluetooth connection method in another embodiment. For example... Figure 6 As shown, the headphone device may include headphone A and headphone B. Headphone A and headphone B do not establish a Bluetooth connection and are used independently. Headphone B establishes a Bluetooth connection with terminal device C and sends a second specific message to terminal device C. Headphone A establishes a Bluetooth connection with terminal device D and sends a first specific message to terminal device D. Headphone B can process audio data sent by terminal device C, and headphone A can process audio data sent by terminal device D.
[0091] After terminal device D stops sending audio data to earphone A, if the user wants to switch earphones A and B from standalone use to shared use, a connection operation can be performed on earphone A. Earphone A responds to this connection operation by disconnecting its Bluetooth connection from terminal device D and sending a broadcast signal, which may carry first specific information and earphone A's Bluetooth address. Terminal device C, upon receiving the broadcast signal, can parse it to obtain the first specific information and earphone A's Bluetooth address. Terminal device C can compare the first specific information with second specific information sent by earphone B, and if the first specific information matches the second specific information, it sends a connection command to earphone B, which includes earphone A's Bluetooth address. Upon receiving the connection command, earphone B, based on the Bluetooth address of earphone A included in the connection command, can send a Bluetooth connection request to earphone A and establish a Bluetooth connection with earphone A. After earphones A and B establish a Bluetooth connection, their data is synchronized, and they jointly play the audio data transmitted by terminal device C.
[0092] In some embodiments, if a user needs to switch the headphone device from a state where both earbuds are used together to a state where each earbud is used individually, they can place the first or second earbud into the headphone charging case and operate a button on the charging case, such as by long-pressing the button. Upon detecting the button operation, the charging case can send a disconnect command to the target earbud (which can be either the first or second earbud) placed in the charging case. This disconnect command instructs the target earbud to disconnect its Bluetooth connection from the other earbud. Optionally, after disconnecting its Bluetooth connection from the other earbud, the target earbud can set its own Bluetooth address to a different Bluetooth address than the other earbud. With each earbud corresponding to a different Bluetooth address, individual use of each earbud is possible.
[0093] In this embodiment, users can easily and quickly switch the headphone device from a state where each of the two headphones is used individually to a state where both headphones are used together, improving switching efficiency without affecting the user's normal use of the first headphone, thus meeting the user's different usage needs for the headphone device in different scenarios.
[0094] like Figure 7 As shown, in one embodiment, another Bluetooth connection method is provided, which can be applied to a terminal device (such as the first terminal device described above). This terminal device can establish a Bluetooth connection with a first earpiece in a headset device, which also includes a second earpiece. The method may include the following steps:
[0095] Step 710: Receive a broadcast signal sent by the second earpiece in response to a connection operation.
[0096] Step 720: Send a connection command to the first earphone according to the broadcast signal. The connection command is used to instruct the first earphone to establish a Bluetooth connection with the second earphone according to the connection command.
[0097] In some embodiments, the broadcast signal includes first specific information. Prior to step 710, the method further includes: receiving second specific information transmitted by a first earpiece. The step of sending a connection instruction to the first earpiece based on the broadcast signal includes: parsing the broadcast signal to obtain the first specific information; and if the first specific information is the same as the second specific information, then sending a connection instruction to the first earpiece.
[0098] In some embodiments, the broadcast signal further includes the Bluetooth address of the second earpiece. The step of sending a connection instruction to the first earpiece based on the broadcast signal includes: sending a connection instruction including the Bluetooth address to the first earpiece based on the broadcast signal, the connection instruction instructing the first earpiece to send a Bluetooth connection request to the second earpiece based on the Bluetooth address, in order to establish a Bluetooth connection with the second earpiece.
[0099] In some embodiments, the broadcast signal includes first specific information. The step of sending a connection command to a first earpiece based on the broadcast signal includes: parsing the broadcast signal to obtain the first specific information; and sending the first specific information and the connection command to the first earpiece, so that when the first specific information is determined to be the same as stored second specific information, the first earpiece establishes a Bluetooth connection with a second earpiece according to the connection command.
[0100] It should be noted that the description of the Bluetooth connection method for terminal devices disclosed in the embodiments of this application can be referred to the relevant description of the Bluetooth connection method for headphone devices disclosed in the above embodiments, and will not be repeated here.
[0101] In this embodiment of the application, when the terminal device that has established a Bluetooth connection with the first earphone receives a broadcast signal sent by the second earphone, it can send a connection command to the first earphone so that the first earphone and the second earphone can establish a Bluetooth connection. The user only needs to perform a connection operation for the second earphone to switch the earphone device from the state of using the two earphones separately to the state of using the two earphones together. The operation method is simpler and faster, improves the switching efficiency, and does not affect the user's normal use of the first earphone.
[0102] like Figure 8 As shown, in one embodiment, a Bluetooth connection device 800 is provided, which can be applied to the aforementioned headphone device. The Bluetooth connection device 800 includes a broadcast module 810 and a connection module 820.
[0103] The broadcast module 810 is used to send a broadcast signal in response to a connection operation when the first earpiece establishes a Bluetooth connection with the first terminal device and the first earpiece does not establish a Bluetooth connection with the second earpiece; the broadcast signal is used to trigger the first terminal device that receives the broadcast signal to send a connection command to the first earpiece so that the first earpiece establishes a Bluetooth connection with the second earpiece according to the connection command; or, the broadcast signal is used to trigger the first earpiece that receives the broadcast signal to establish a Bluetooth connection with the second earpiece.
[0104] In one embodiment, the broadcast signal includes a BLE broadcast signal.
[0105] In one embodiment, the broadcast signal includes first specific information. The broadcast signal is used to trigger a first terminal device to send a connection command to a first earpiece when it determines that the first specific information is the same as second specific information, wherein the second specific information is sent by the first earpiece to the first terminal device; or, the broadcast signal is used to trigger the first terminal device receiving the broadcast signal to send the first specific information and the connection command to the first earpiece, so that the first earpiece, when it determines that the first specific information is the same as the second specific information stored in the first earpiece, establishes a Bluetooth connection with the second earpiece according to the connection command.
[0106] The connection module 820 is used for the first earphone to establish a Bluetooth connection with the second earphone according to the connection command.
[0107] In one embodiment, the broadcast signal further includes the Bluetooth address corresponding to the second earpiece; the connection command includes the Bluetooth address. The connection module 820 is also configured to have the first earpiece send a Bluetooth connection request to the second earpiece based on the Bluetooth address; and for the second earpiece to respond to the Bluetooth connection request and establish a Bluetooth connection with the first earpiece.
[0108] or,
[0109] The connection module 820 is used for the first earphone to establish a Bluetooth connection with the second earphone based on the broadcast signal.
[0110] In one embodiment, the broadcast signal includes first specific information and a Bluetooth address corresponding to the second earpiece. The broadcast signal is used to trigger the first earpiece, upon receiving the broadcast signal and determining that the first specific information is identical to second specific information stored in the first earpiece, to send a Bluetooth connection request to the second earpiece based on the Bluetooth address, so that the second earpiece responds to the Bluetooth connection request and establishes a Bluetooth connection with the first earpiece.
[0111] The connection module 820 is further configured to send a Bluetooth connection request to the second earphone based on the Bluetooth address when the first earphone determines that the first specific information is the same as the second specific information stored in the first earphone, so that the second earphone responds to the Bluetooth connection request and establishes a Bluetooth connection with the first earphone.
[0112] In this embodiment, the user only needs to connect the second earphone to switch the headphone device from a state where each earphone is used individually to a state where both earphones are used together. Compared with the related technology, which requires both earphones to be placed in the headphone charging case and corresponding operations to be performed on the headphone charging case to achieve the state switch, this method is simpler and faster, improves the switching efficiency, and does not affect the user's normal use of the first earphone.
[0113] In one embodiment, before the second earphone responds to the connection operation, the second earphone is connected to the second terminal device via Bluetooth, and the second earphone is in a state where it is not transmitting data with the second terminal device.
[0114] In one embodiment, the Bluetooth connection device 800 described above includes a broadcast module 810 and a connection module 820, as well as a disconnect module.
[0115] The disconnect module is used to disconnect the Bluetooth connection between the second earphone and the second terminal device.
[0116] In one embodiment, the Bluetooth connection device 800 described above further includes a synchronization module.
[0117] The synchronization module is used to synchronize the connection information of the first terminal device from the first earpiece to the second earpiece, so that the second earpiece can monitor the Bluetooth connection between the first earpiece and the first terminal device according to the connection information; or, it is used to synchronize the data transmitted between the first earpiece and the first terminal device to the second earpiece.
[0118] In this embodiment, users can easily and quickly switch the headphone device from a state where each of the two headphones is used individually to a state where both headphones are used together, improving switching efficiency without affecting the user's normal use of the first headphone, thus meeting the user's different usage needs for the headphone device in different scenarios.
[0119] like Figure 9 As shown, in one embodiment, a Bluetooth connection device 900 is provided, which can be applied to a terminal device (such as the first terminal device described above). The terminal device establishes a Bluetooth connection with a first earphone in an earphone device, and the earphone device also includes a second earphone. The Bluetooth connection device 900 includes a broadcast receiving module 910 and a command sending module 920.
[0120] The broadcast receiving module 910 is used to receive broadcast signals sent by the second earpiece, which are sent by the second earpiece in response to a connection operation.
[0121] The instruction sending module 920 is used to send a connection instruction to the first earphone according to the broadcast signal. The connection instruction is used to instruct the first earphone to establish a Bluetooth connection with the second earphone according to the connection instruction.
[0122] In one embodiment, the broadcast signal includes first specific information.
[0123] The Bluetooth connection device 900 also includes a receiving module for receiving second specific information sent by the first earpiece.
[0124] The instruction sending module 920 is also used to parse the broadcast signal to obtain first specific information; if the first specific information is the same as the second feature information, a connection instruction is sent to the first earphone.
[0125] In one embodiment, the broadcast signal also includes the Bluetooth address of the second earpiece. The instruction sending module 920 is further configured to send a connection instruction including the Bluetooth address to the first earpiece based on the broadcast signal. This connection instruction instructs the first earpiece to send a Bluetooth connection request to the second earpiece based on the Bluetooth address, in order to establish a Bluetooth connection with the second earpiece.
[0126] In one embodiment, the broadcast signal includes first specific information. The instruction sending module 920 is further configured to parse the broadcast signal to obtain the first specific information; and send the first specific information and a connection instruction to the first earpiece, so that when the first earpiece determines that the first specific information is the same as the stored second specific information, it establishes a Bluetooth connection with the second earpiece according to the connection instruction.
[0127] In this embodiment of the application, when the terminal device that has established a Bluetooth connection with the first earphone receives a broadcast signal sent by the second earphone, it can send a connection command to the first earphone so that the first earphone and the second earphone can establish a Bluetooth connection. The user only needs to perform a connection operation for the second earphone to switch the earphone device from the state of using the two earphones separately to the state of using the two earphones together. The operation method is simpler and faster, improves the switching efficiency, and does not affect the user's normal use of the first earphone.
[0128] Figure 10 This is a structural block diagram of a headphone device in one embodiment. Figure 10 As shown, the headphone device 1000 may include one or more of the following components: a processor 1010 and a memory 1020 coupled to the processor 1010, wherein the memory 1020 may store one or more computer programs, which may be configured to implement the Bluetooth connection method for the headphone device as described in the above embodiments when executed by one or more processors 1010.
[0129] The processor 1010 may include one or more processing cores. The processor 1010 connects to various parts within the headphone device 1000 using various interfaces and lines, and performs various functions and processes data of the headphone device 1000 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1020, and by calling data stored in the memory 1020. Optionally, the processor 1010 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1010 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 1010 and may be implemented separately using a communication chip.
[0130] The memory 1020 may include random access memory (RAM) or read-only memory (ROM). The memory 1020 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1020 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch control, sound playback, image playback, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the headphone device 1000 during use.
[0131] The headphone device 1000 may also include a Bluetooth module, which can be used to provide Bluetooth communication functionality, establish Bluetooth connections with other electronic devices, and perform Bluetooth data transmission. The Bluetooth module may support one or more Bluetooth protocols (such as Classic Bluetooth, BLE, etc.), but is not limited to these, and may change as Bluetooth protocols evolve.
[0132] In some embodiments, the headphone device includes a first headphone and a second headphone, and both the first headphone and the second headphone may include at least the processor 1010, the memory 1020 and the Bluetooth module described above.
[0133] Optionally, when the first earpiece establishes a Bluetooth connection with the first terminal device via its Bluetooth module, but the first earpiece does not establish a Bluetooth connection with the second earpiece, the processor 1010 of the second earpiece is configured to respond to a connection operation and control the Bluetooth module of the second earpiece to send a broadcast signal. This broadcast signal triggers the first terminal device to send a connection command to the first earpiece. The processor 1010 of the first earpiece is configured to receive the connection command via its Bluetooth module and, according to the connection command, instruct the Bluetooth module of the first earpiece to establish a Bluetooth connection with the Bluetooth module of the second earpiece.
[0134] Understandably, the headphone device 1000 may include more or fewer structural elements than those shown in the above block diagram, such as a power module, physical buttons, sensors, etc., and is not limited herein.
[0135] This application discloses a terminal device, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to implement the Bluetooth connection method for the terminal device as described in the above embodiments.
[0136] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the Bluetooth connection method for a headphone device as described in the above embodiments.
[0137] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the Bluetooth connection method for a terminal device as described in the above embodiments.
[0138] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the Bluetooth connection method for a headphone device as described in the above embodiments.
[0139] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the Bluetooth connection method for a terminal device as described in the above embodiments.
[0140] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, ROM, etc.
[0141] Any references to memory, storage, databases, or other media used herein may include non-volatile and / or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM may take many forms, such as Static RAM (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus DRAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
[0142] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0143] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0144] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0145] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0146] The foregoing has provided a detailed description of a Bluetooth connection method, apparatus, headphone device, and computer-readable storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A Bluetooth connection method, characterized by, Applied to an earphone device, the earphone device including a first earphone and a second earphone, the method includes: When the first earphone establishes a Bluetooth connection with the first terminal device, but the first earphone does not establish a Bluetooth connection with the second earphone, the second earphone responds to the connection operation by sending a broadcast signal; before the second earphone responds to the connection operation, the first earphone and the second earphone correspond to different Bluetooth addresses; the broadcast signal includes the Bluetooth address corresponding to the second earphone; The broadcast signal is used to trigger the first terminal device receiving the broadcast signal to send a connection command to the first earphone, so that the first earphone establishes a Bluetooth connection with the second earphone according to the connection command; or, the broadcast signal is used to trigger the first earphone receiving the broadcast signal to establish a Bluetooth connection with the second earphone; after the first earphone and the second earphone establish a Bluetooth connection, the first earphone and the second earphone share the same Bluetooth address.
2. The method of claim 1, wherein, The broadcast signal includes first specific information; the broadcast signal is used to trigger the first terminal device receiving the broadcast signal to send a connection command to the first earphone, so that the first earphone establishes a Bluetooth connection with the second earphone according to the connection command, including: The broadcast signal is used to trigger the first terminal device receiving the broadcast signal to send a connection command to the first earpiece when it determines that the first specific information and the second specific information are the same, so that the first earpiece establishes a Bluetooth connection with the second earpiece according to the connection command, wherein the second specific information is sent by the first earpiece to the first terminal device; or, The broadcast signal is used to trigger the first terminal device that receives the broadcast signal to send the first specific information and connection instruction to the first earphone, so that when the first earphone determines that the first specific information is the same as the second specific information stored in the first earphone, it establishes a Bluetooth connection with the second earphone according to the connection instruction.
3. The method of claim 2, wherein, The connection instruction includes the Bluetooth address; establishing a Bluetooth connection with the first earphone according to the connection instruction includes: The first earphone sends a Bluetooth connection request to the second earphone based on the Bluetooth address; The second earphone responds to the Bluetooth connection request and establishes a Bluetooth connection with the first earphone.
4. The method of claim 1, wherein, The broadcast signal includes first specific information and the Bluetooth address corresponding to the second earpiece; the broadcast signal is used to trigger the first earpiece receiving the broadcast signal to establish a Bluetooth connection with the second earpiece, including: The broadcast signal is used to trigger the first earphone that receives the broadcast signal to send a Bluetooth connection request to the second earphone according to the Bluetooth address when it determines that the first specific information is the same as the second specific information stored in the first earphone, so that the second earphone responds to the Bluetooth connection request and establishes a Bluetooth connection with the first earphone.
5. The method of claim 1, wherein, Before the second earphone responds to the connection operation, the second earphone is connected to the second terminal device via Bluetooth, and the second earphone is in a state where it is not transmitting data with the second terminal device.
6. The method of claim 5, wherein, After the second earpiece responds to the connection operation, the method further includes: The second earphone disconnects from the Bluetooth connection with the second terminal device.
7. The method of any one of claims 1-6, wherein, After the first earphone establishes a Bluetooth connection with the second earphone according to the connection command, the method further includes: The first earpiece synchronizes the connection information of the first terminal device to the second earpiece, so that the second earpiece can monitor the Bluetooth connection between the first earpiece and the first terminal device based on the connection information; or... The first earpiece synchronizes the data transmitted between itself and the first terminal device to the second earpiece.
8. The method of any one of claims 1-6, wherein, The broadcast signal includes Bluetooth Low Energy (BLE) broadcast signals.
9. A Bluetooth connection method, characterized by, Applied to a terminal device, the terminal device establishes a Bluetooth connection with a first earpiece in an earphone device, the earphone device further including a second earpiece, the method comprising: The system receives a broadcast signal sent by the second earpiece, which is sent by the second earpiece in response to a connection operation. Before the second earpiece responds to the connection operation, the first earpiece and the second earpiece correspond to different Bluetooth addresses, and the second earpiece is connected to the second terminal device via Bluetooth. The broadcast signal includes the Bluetooth address corresponding to the second earpiece. A connection command is sent to the first earphone according to the broadcast signal. The connection command is used to instruct the first earphone to establish a Bluetooth connection with the second earphone according to the connection command. After the first earphone and the second earphone establish a Bluetooth connection, the first earphone and the second earphone share the same Bluetooth address.
10. The method of claim 9, wherein, The broadcast signal includes first specific information; Before receiving the broadcast signal transmitted by the second earpiece, the method further includes: Receive the second specific information sent by the first earpiece; Sending a connection command to the first earphone based on the broadcast signal includes: The broadcast signal is parsed to obtain the first specific information; If the first specific information is the same as the second specific information, then a connection command is sent to the first earphone.
11. The method of claim 10, wherein, Sending a connection command to the first earphone based on the broadcast signal includes: The first earpiece sends a connection instruction, including the Bluetooth address, to the first earpiece according to the broadcast signal. The connection instruction is used to instruct the first earpiece to send a Bluetooth connection request to the second earpiece according to the Bluetooth address, so as to establish a Bluetooth connection with the second earpiece.
12. The method of claim 9, wherein, The broadcast signal includes first specific information; sending a connection command to the first earphone based on the broadcast signal includes: The broadcast signal is parsed to obtain the first specific information; Send the first specific information and connection command to the first earphone, so that when the first earphone determines that the first specific information is the same as the stored second specific information, it establishes a Bluetooth connection with the second earphone according to the connection command.
13. A Bluetooth connection device, characterized in that, Applied to an earphone device, the earphone device including a first earphone and a second earphone, the device includes: A broadcast module is used to send a broadcast signal by the second earpiece in response to a connection operation when the first earpiece establishes a Bluetooth connection with the first terminal device but the first earpiece does not establish a Bluetooth connection with the second earpiece; before the second earpiece responds to the connection operation, the first earpiece and the second earpiece correspond to different Bluetooth addresses, and the second earpiece is connected to the second terminal device via Bluetooth; the broadcast signal includes the Bluetooth address corresponding to the second earpiece; The broadcast signal is used to trigger the first terminal device receiving the broadcast signal to send a connection command to the first earphone, so that the first earphone establishes a Bluetooth connection with the second earphone according to the connection command; or, the broadcast signal is used to trigger the first earphone receiving the broadcast signal to establish a Bluetooth connection with the second earphone; after the first earphone and the second earphone establish a Bluetooth connection, the first earphone and the second earphone share the same Bluetooth address.
14. A Bluetooth connection device, characterized in that, Applied to a terminal device, the terminal device establishes a Bluetooth connection with a first earpiece in an earphone device, the earphone device further including a second earpiece, the device comprising: A broadcast receiving module is used to receive a broadcast signal sent by the second earpiece, the broadcast signal being sent by the second earpiece in response to a connection operation; before the second earpiece responds to the connection operation, the first earpiece and the second earpiece correspond to different Bluetooth addresses, and the second earpiece is connected to a second terminal device via Bluetooth; the broadcast signal includes the Bluetooth address corresponding to the second earpiece; The instruction sending module is used to send a connection instruction to the first earphone according to the broadcast signal. The connection instruction is used to instruct the first earphone to establish a Bluetooth connection with the second earphone according to the connection instruction. After the first earphone and the second earphone establish a Bluetooth connection, the first earphone and the second earphone share the same Bluetooth address.
15. An electronic device, comprising: The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 8 or 9 to 12.
16. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processor, it implements the method as described in any one of claims 1 to 8 or 9 to 12.