A Bluetooth connection switching method, Bluetooth headset and computer-readable storage medium

By implementing the Bluetooth connection switching method on Bluetooth headsets, users can quickly switch connections between multiple electronic devices, solving the problem of cumbersome operations in the prior art and improving the user experience.

CN113873589BActive Publication Date: 2024-11-26SHENZHEN DO INTELLIGENT TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202111097059.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-18
Publication Date
2024-11-26
Estimated Expiration
2041-09-18

AI Technical Summary

Technical Problem

The connection switching between multiple electronic devices is complicated and the user experience is poor. It requires manual disconnection and reconnection on the electronic device side.

Method used

Provides a Bluetooth connection switching method. After receiving user input, the Bluetooth headset disconnects the current connection, sends a directional broadcast message to the historical connected device, and responds to the connection request of the target device, realizing fast connection switching between Bluetooth headsets.

Benefits of technology

It improves the interaction efficiency of users during Bluetooth connection switching, simplifies the operation process, and enables users to directly switch connections on Bluetooth headsets, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113873589B_ABST
    Figure CN113873589B_ABST
Patent Text Reader

Abstract

The present invention provides a Bluetooth connection switching method, a Bluetooth headset and a computer-readable storage medium. The Bluetooth connection switching method includes: when the Bluetooth headset receives a user input for switching the Bluetooth connection, the Bluetooth connection with the first electronic device is disconnected, and the first electronic device is the currently connected device; the Bluetooth headset selects one of multiple historical connection devices within the Bluetooth range to send a directional broadcast message, and establishes a Bluetooth connection with the target connection device in response to a Bluetooth connection request sent by the target connection device. Thus, the user can directly operate on the Bluetooth headset to switch the Bluetooth connection to the historical connection device within the Bluetooth range. Compared with the method in the prior art that requires operation on the electronic device end, the present invention enables the Bluetooth headset to quickly switch connections between multiple electronic devices, improves the user's interaction efficiency when switching Bluetooth connections, and facilitates user operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of Bluetooth headsets, and more specifically, relates to a Bluetooth connection switching method, a Bluetooth headset and a computer-readable storage medium. Background Art

[0002] With the development of Bluetooth technology, headphones can be wirelessly connected to mobile phones and other electronic devices. In particular, True Wireless Stereo (TWS) headphones that apply the Bluetooth 5.0 technical standard can achieve instant calls and high-quality audio playback, making Bluetooth headphones more widely used in users' lives.

[0003] Users often have multiple electronic devices, such as mobile phones, tablet computers, smart watches, etc., and Bluetooth headsets can only be connected to one electronic device at a time. When the user needs to use another electronic device to connect the Bluetooth headset, he needs to manually operate on the electronic device that has been connected to the Bluetooth headset to disconnect the Bluetooth headset, and then connect the Bluetooth headset on the other electronic device. The operation method is cumbersome and the user experience is poor. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a Bluetooth connection switching method, a Bluetooth headset and a computer-readable storage medium, which can enable the Bluetooth headset to quickly switch connections between multiple electronic devices and facilitate user operation.

[0005] In a first aspect, an embodiment of the present application provides a Bluetooth connection switching method for a Bluetooth headset, the method comprising:

[0006] Receive user input for switching Bluetooth connections;

[0007] Disconnecting the Bluetooth connection with the first electronic device, where the first electronic device is the currently connected device;

[0008] Sending a directed broadcast message to one of multiple historically connected devices within Bluetooth range;

[0009] And establish a Bluetooth connection with the target connection device in response to the Bluetooth connection request sent by the target connection device.

[0010] In a possible implementation manner of the first aspect, after the step of establishing a Bluetooth connection with the target connection device in response to the Bluetooth connection request sent by the target connection device, the method further includes:

[0011] The voice prompt information connected to the target electronic device is played, wherein the voice prompt information includes the device name of the target electronic device.

[0012] In a possible implementation manner of the first aspect, the directional broadcast message includes a MAC address of the Bluetooth headset and a MAC address of the target electronic device.

[0013] In a possible implementation manner of the first aspect, the user input includes operating a touch area of ​​the Bluetooth headset according to a preset rule.

[0014] In a possible implementation manner of the first aspect, the step of selectively sending a directional broadcast message to a plurality of historically connected devices within a Bluetooth range includes:

[0015] Directed broadcast information is sent to the electronic device with the highest connection frequency among the multiple historically connected devices.

[0016] In a possible implementation manner of the first aspect, the method further includes:

[0017] Marking electronic devices connected within a first preset time period;

[0018] In response to receiving a user input for switching Bluetooth connection again within the first preset time period, a directed broadcast message is selectively sent to one of the unmarked electronic devices in the plurality of historically connected devices.

[0019] In a possible implementation manner of the first aspect, the method further includes:

[0020] In response to the multiple historically connected devices all being marked within the first preset time period, the marks of the multiple historically connected devices are cleared.

[0021] In a second aspect, an embodiment of the present application provides a Bluetooth headset, characterized in that it includes a processor and a memory, wherein:

[0022] The memory is used to store software instructions;

[0023] The processor is used to execute instructions in the memory, and the instructions are used to execute the above-mentioned Bluetooth connection switching method.

[0024] In a third aspect, an embodiment of the present application provides a computer-readable storage medium for storing one or more computer programs, wherein the one or more computer programs include instructions. When the computer programs are run on a computer, the instructions are used to execute the above-mentioned Bluetooth connection switching method.

[0025] In an embodiment of the present application, when the Bluetooth headset receives user input for switching Bluetooth connection, the Bluetooth connection with the first electronic device is disconnected, and the first electronic device is the currently connected device; the Bluetooth headset selects one of the multiple historically connected devices within the Bluetooth range to send a directional broadcast message, and establishes a Bluetooth connection with the target connected device in response to the Bluetooth connection request sent by the target connected device. Thus, the user can directly operate on the Bluetooth headset to switch the Bluetooth connection to the historically connected device within the Bluetooth range. Compared with the method in the prior art that requires operation on the electronic device side, the present invention enables the Bluetooth headset to quickly switch connections between multiple electronic devices, improves the user's interaction efficiency when switching Bluetooth connections, and facilitates user operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0027] Figure 1 is a block diagram of a Bluetooth headset provided by an embodiment of the present invention;

[0028] Figure 2 is a flow chart of a Bluetooth connection switching method provided by an embodiment of the present invention;

[0029] Figure 3 is a flowchart of a Bluetooth connection switching method provided by another embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0031] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0032] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0033] In the prior art, a Bluetooth headset can only be connected to one electronic device at a time. When a user needs to use another electronic device to connect the Bluetooth headset, he needs to manually operate on the electronic device that has been connected to the Bluetooth headset to disconnect the Bluetooth headset, and then connect the Bluetooth headset on the other electronic device. The operation method is cumbersome and the user experience is poor.

[0034] The basic idea of ​​the Bluetooth connection switching method provided by the present invention is that when the Bluetooth headset receives the user input for switching the Bluetooth connection, the Bluetooth connection with the first electronic device is disconnected, and the first electronic device is the currently connected device; the Bluetooth headset selects one of the multiple historical connection devices within the Bluetooth range to send a directional broadcast message, and responds to the Bluetooth connection request sent by the target connection device to establish a Bluetooth connection with the target connection device. Thus, the user can directly operate on the Bluetooth headset to switch the Bluetooth connection to the historical connection device within the Bluetooth range. Compared with the method in the prior art that requires operation on the electronic device end, the present invention enables the Bluetooth headset to quickly switch connections between multiple electronic devices, improves the user's interaction efficiency when switching Bluetooth connections, and facilitates user operation.

[0035] Figure 1 A hardware block diagram of a Bluetooth headset provided by an embodiment of the present invention is shown.

[0036] The Bluetooth headset 100 may include a processor 110, a memory 120, an input unit 130, an indicator light 140, a sensor 150, an audio circuit 160, a speaker 161, a microphone 162, a communication module 170, a power supply 180 and other components. Those skilled in the art will appreciate that Figure 1 The Bluetooth headset structure shown in the figure does not constitute a limitation on the Bluetooth headset, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0037] The processor 110 is the control center of the Bluetooth headset 100. It uses various interfaces and lines to connect various parts of the entire Bluetooth headset 100. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the Bluetooth headset 100 and processes data, thereby monitoring the Bluetooth headset 100 as a whole. Optionally, the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0038] The memory 120 can be used to store software programs and modules. The software programs include instructions. The processor 110 executes various functional applications and data processing of the Bluetooth headset 100 by running the instructions stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, etc.), etc.; the data storage area may store data created according to the use of the Bluetooth headset (such as audio data, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0039] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the Bluetooth headset 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 131 or near the touch panel 131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 131, the user input unit 130 may also include other input devices 132. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0040] The indicator light 140 may be used to indicate various information provided by the Bluetooth headset 100 to the user, such as headset power information, headset charging status, headset connection status, etc.

[0041] The sensor 150 may include a gravity sensor to detect the magnitude of the acceleration of the Bluetooth headset 100 in all directions (generally three axes). The magnitude and direction of gravity can be detected when the headset is stationary, and can be used for applications that recognize the headset posture (such as audio switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The Bluetooth headset 100 may also include other sensors, such as a proximity light sensor, which can detect whether an object is close to or in contact with the Bluetooth headset 100, and can start playing audio when the Bluetooth headset 100 is moved to the ear. The Bluetooth headset 100 may also be equipped with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be repeated here.

[0042] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the headset. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 110 for processing, and then sent to the electronic device connected to Bluetooth through the communication module 170, or the audio data is output to the memory 120 for further processing.

[0043] The communication module 170 can support the Bluetooth headset 100 to communicate with the network and electronic devices through wireless communication technology. The communication module 170 may include one or more of a cellular mobile communication module, a short-range wireless communication module, a wireless Internet module, and a location information module. The short-range wireless communication module can send or receive wireless signals according to short-range communication technologies, including Bluetooth, radio frequency identification (RFID), infrared data communication (IrDA), ultra-wideband (UWB), ZigBee, near-field communication (NFC), wireless fidelity (Wi-Fi), Wi-Fi direct connection, wireless USB (wireless universal serial bus), etc. In some embodiments, the Bluetooth headset 100 can be wirelessly connected to an electronic device via Bluetooth and establish a binding relationship to transmit data, control instructions, etc. between the Bluetooth headset 100 and the electronic device.

[0044] The Bluetooth headset 100 also includes a power source 180 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 110 through a power management system, so that the power management system can manage charging, discharging, and power consumption.

[0045] The Bluetooth headset 100 can maintain a communication connection with the electronic device through wireless communication technology. The electronic device can be a smart watch, a smart bracelet, a mobile phone, a tablet computer, a laptop computer, a super mobile personal computer, a netbook, a personal digital assistant, and the like. The Bluetooth headset 100 and the electronic device are bound to each other, and the Bluetooth headset 100 can receive data sent by the electronic device, for example, the Bluetooth headset 100 can receive audio data, firmware upgrade packages, control instructions, etc. sent by the mobile terminal. The electronic device can configure the Bluetooth headset, for example, set the function corresponding to the touch operation, set the microphone mode, set automatic in-ear detection, and the like.

[0046] Figure 2 is a flow chart of a Bluetooth connection switching method provided by an embodiment of the present invention. The Bluetooth connection switching method is applied to a Bluetooth headset, which can be as follows Figure 1 The Bluetooth headset shown. The Bluetooth connection switching method includes:

[0047] Step S201: receiving user input for switching Bluetooth connection.

[0048] In this embodiment, the user input includes operating the touch area and / or button of the Bluetooth headset according to a preset rule. The preset rule corresponds to the function of switching the Bluetooth connection and is stored in the memory of the Bluetooth headset. The preset rule corresponding to switching the Bluetooth connection can be a touch operation rule for operating the touch area of ​​the Bluetooth headset alone or a key operation rule for operating the key of the Bluetooth headset alone. For example, when the preset rule corresponding to switching the Bluetooth connection is a touch operation rule for operating the touch area of ​​the Bluetooth headset, the operation modes of touching, long pressing, single clicking, double clicking, etc. on the touch area of ​​the Bluetooth headset can be defined as the operation rule for switching the Bluetooth connection. For another example, when the preset rule corresponding to switching the Bluetooth connection is a key operation rule for operating the key of the Bluetooth headset, the operation modes of long pressing, single clicking, double clicking, etc. on the key of the Bluetooth headset can be defined as the operation rule for switching the Bluetooth connection.

[0049] In some embodiments, the preset rule corresponding to switching the Bluetooth connection may be an operation rule of operating the Bluetooth headset touch area and the Bluetooth headset button at the same time. For example, the preset rule may be that the user presses the button and touches the touch area at the same time.

[0050] In some embodiments, the preset rule corresponding to switching the Bluetooth connection may also be to tap the housing of the Bluetooth headset, and to perform vibration detection through a motion sensor of the Bluetooth headset.

[0051] Step S202, disconnecting the Bluetooth connection with the first electronic device, the first electronic device being the currently connected device. In this embodiment, when implementing the function of switching the Bluetooth connection, the Bluetooth headset must first establish a Bluetooth connection with an electronic device. If the Bluetooth headset does not currently establish a Bluetooth connection with other electronic devices, the Bluetooth connection switching function cannot be implemented. And before disconnecting the Bluetooth connection with the first electronic device, the Bluetooth headset needs to confirm whether there is a historically connected device within the Bluetooth range. If there is no historically connected device within the Bluetooth range, the Bluetooth connection switching function cannot be implemented, and the Bluetooth connection with the first electronic device is not disconnected.

[0052] Step S203, select one of the multiple historical connection devices within the Bluetooth range to send a directional broadcast message, and establish a Bluetooth connection with the target connection device in response to the Bluetooth connection request sent by the target connection device. In this embodiment, the memory of the Bluetooth headset can store electronic devices that have been connected to the Bluetooth headset, including storing the MAC address, device name, etc. of the historical connection device. The Bluetooth headset searches for all historical connection devices within the Bluetooth range, and selects one to send a directional broadcast message. For example, a directional broadcast message can be sent to the electronic device with the highest connection frequency among multiple historical connection devices, or a directional broadcast message can be sent to the most recently connected electronic device among multiple historical connection devices (such as the last connected electronic device), or a directional broadcast message can be randomly selected from multiple historical connection devices to send a directional broadcast message. Among them, the directional broadcast message includes the MAC address of the Bluetooth headset and the MAC address of the target electronic device. When the target connection device receives the directional broadcast message sent by the Bluetooth headset, it sends a Bluetooth connection request to the Bluetooth headset, and the Bluetooth headset establishes a Bluetooth connection with the target connection device in response to the Bluetooth connection request sent by the target connection device.

[0053] In some embodiments, after the Bluetooth headset establishes a Bluetooth connection with the target connection device, the Bluetooth headset plays a voice prompt message that it has been connected to the target electronic device, and the voice prompt message includes the device name of the target electronic device. This prompts the user the name of the electronic device currently connected to the Bluetooth headset. The user can confirm whether it is the electronic device that the user needs to connect to based on the voice prompt message. If it is not the electronic device that the user needs to connect to, the user can operate the touch area of ​​the Bluetooth headset again according to the preset rules to switch the Bluetooth connection of the Bluetooth headset again to connect to other historically connected devices.

[0054] In a specific embodiment, there are five electronic devices within the Bluetooth range of the Bluetooth headset, namely, electronic device A, electronic device B, electronic device C, electronic device D and electronic device E. Among them, electronic device A is connected to the Bluetooth headset, and electronic devices B, electronic device C, electronic device D and electronic device E are all devices that have been paired and connected with the Bluetooth headset. The Bluetooth headset stores the MAC addresses and electronic device names of electronic devices A, electronic device B, electronic device C, electronic device D and electronic device E. When the user operates the Bluetooth headset to perform Bluetooth connection switching according to preset rules, the Bluetooth headset can select one of electronic devices B, electronic device C, electronic device D and electronic device E as the target connection device, for example, electronic device B is the target connection device, and the Bluetooth headset sends a directional broadcast message including the MAC address of the Bluetooth headset and the MAC address of electronic device B. When electronic device B receives the directional broadcast message, it sends a Bluetooth connection request to the Bluetooth headset, and the Bluetooth headset establishes a Bluetooth connection with electronic device B in response to the request. Among them, the rule for the Bluetooth headset to select one from electronic device B, electronic device C, electronic device D and electronic device E as the target connection device can be: the electronic device with the highest connection frequency among electronic device B, electronic device C, electronic device D and electronic device E is selected as the target connection device; or, the device among electronic device B, electronic device C, electronic device D and electronic device E that has been most recently connected to the Bluetooth headset is selected as the target connection device, or, one is randomly selected from electronic device B, electronic device C, electronic device D and electronic device E as the target connection device.

[0055] The Bluetooth connection switching method provided in this embodiment is applied to a Bluetooth headset. When the Bluetooth headset receives a user input for switching the Bluetooth connection, the Bluetooth connection with the first electronic device is disconnected, and the first electronic device is the currently connected device. The Bluetooth headset selects one of the multiple historically connected devices within the Bluetooth range to send a directional broadcast message, and establishes a Bluetooth connection with the target connected device in response to the Bluetooth connection request sent by the target connected device. Thus, the user can directly operate on the Bluetooth headset to switch the Bluetooth connection to the historically connected device within the Bluetooth range. Compared with the method in the prior art that requires operation on the electronic device end, the present invention enables the Bluetooth headset to quickly switch connections between multiple electronic devices, improves the user's interaction efficiency when switching Bluetooth connections, and facilitates user operation.

[0056] Figure 3 is a flow chart of a Bluetooth connection switching method provided by another embodiment of the present invention. The Bluetooth connection switching method is applied to a Bluetooth headset, which can be as follows Figure 1 The Bluetooth headset shown. The Bluetooth connection switching method includes:

[0057] Step S301: receiving user input for switching Bluetooth connection.

[0058] Step S302: disconnecting the Bluetooth connection with the first electronic device, where the first electronic device is the currently connected device.

[0059] Step S303: Send a directional broadcast message to one of the multiple historical connection devices within the Bluetooth range, and establish a Bluetooth connection with the target connection device in response to the Bluetooth connection request sent by the target connection device.

[0060] Step S304: Mark the first electronic device and the target connection device. In this embodiment, after the Bluetooth headset establishes a Bluetooth connection with the target connection device, the Bluetooth headset marks the first electronic device and the target connection device.

[0061] Step S305: in response to receiving a user input for switching the Bluetooth connection again within the first preset time period, sending a directional broadcast message to one of the unmarked electronic devices in the plurality of historically connected devices.

[0062] In this embodiment, the first preset time period is the time after the Bluetooth headset establishes a Bluetooth connection with the target connection device, which can be set to 1 second, 2 seconds, 3 seconds, 5 seconds, etc. If the user performs a Bluetooth connection switching operation again within the first preset time period, it means that the target connection device connected to the Bluetooth headset is not the device that the user needs to connect to, and the Bluetooth headset needs to switch to other electronic devices. Therefore, in this embodiment, when the user input for switching the Bluetooth connection is received again within the first preset time period, a directional broadcast message is sent to one of the unmarked electronic devices in the multiple historical connection devices, which can avoid connecting the Bluetooth headset to the electronic device that has been switched by the user, so that the user can connect to the electronic device he needs through multiple operations.

[0063] Step S306, in response to not receiving the user input for switching the Bluetooth connection again within the first preset time period, or in response to the first electronic device and multiple historically connected devices being marked, clear the mark of the electronic device. In this embodiment, if the user does not perform the Bluetooth connection switching operation again within the first preset time period, it means that the electronic device currently connected to the Bluetooth headset is the device that the user needs to connect, then the mark of the electronic device is cleared and the user's next switching operation is waited for to avoid repeated marking. Or after the user performs multiple switching operations, the Bluetooth headset has been connected to all electronic devices within the Bluetooth range once, then the mark of the electronic device is cleared to avoid repeated marking.

[0064] In this embodiment, by marking the electronic device that has been switched by the user during the Bluetooth connection switching process, it is possible to avoid connecting the Bluetooth headset to the electronic device switched by the user when the user switches multiple times in a short period of time, thereby facilitating the user to quickly connect the Bluetooth headset to the electronic device that he needs to connect, thereby improving the efficiency of Bluetooth connection switching.

[0065] In a specific embodiment, there are five electronic devices within the Bluetooth range of the Bluetooth headset, namely, electronic device A, electronic device B, electronic device C, electronic device D and electronic device E. Among them, electronic device A is connected to the Bluetooth headset, and electronic devices B, electronic device C, electronic device D and electronic device E are all devices that have been paired and connected with the Bluetooth headset. The Bluetooth headset stores the MAC addresses and electronic device names of electronic devices A, electronic device B, electronic device C, electronic device D and electronic device E. When the user operates the Bluetooth headset to perform Bluetooth connection switching according to preset rules, the Bluetooth headset can select one of electronic devices B, electronic device C, electronic device D and electronic device E as the target connection device, for example, electronic device B is the target connection device, and the Bluetooth headset sends a directional broadcast message including the MAC address of the Bluetooth headset and the MAC address of electronic device B. When electronic device B receives the directional broadcast message, it sends a Bluetooth connection request to the Bluetooth headset, and the Bluetooth headset establishes a Bluetooth connection with electronic device B in response to the request.

[0066] After the Bluetooth headset establishes a Bluetooth connection with electronic device B, the Bluetooth headset marks electronic device A and electronic device B. Within a preset time period (e.g., 3 seconds), if the user operates the Bluetooth headset again according to the preset rules to perform Bluetooth connection switching, the Bluetooth headset selects one of the unmarked electronic device C, electronic device D, and electronic device E as the target connection device, for example, sends a directional broadcast message to electronic device C using electronic device C as the target connection device, connects the Bluetooth headset to electronic device C, and marks electronic device C after the Bluetooth headset establishes a Bluetooth connection with electronic device C. If electronic device C is still not the device that the user needs to connect, the user can operate the Bluetooth headset again to perform Bluetooth connection switching within a preset time period (e.g., 3 seconds) after establishing a Bluetooth connection with electronic device C, and the Bluetooth headset selects one of the unmarked electronic device D and electronic device E as the target connection device. Thus, the user can quickly connect the Bluetooth headset to the electronic device that he needs to connect through multiple switching, thereby improving the efficiency of Bluetooth connection switching.

[0067] If the user does not operate the Bluetooth headset to perform Bluetooth connection switching again according to the preset rules within the preset time period, the Bluetooth headset clears the mark of the marked electronic device. Or when the Bluetooth headset has connected all electronic devices within the Bluetooth range once, the Bluetooth headset clears the mark of the electronic device and waits for the user to perform the Bluetooth connection switching operation next time.

[0068] The embodiment of the present invention further provides a Bluetooth headset, including a processor and a memory, wherein: the memory is used to store software instructions; the processor is used to execute the instructions in the memory, and the instructions are used to execute the following steps: Figure 2 and Figure 3 The Bluetooth connection switching method.

[0069] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification, for example, it can execute Figure 2 and Figure 3 Any one or more steps in .

[0070] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0071] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0072] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0073] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A Bluetooth connection switching method for a Bluetooth headset, characterized in that: The method includes: receiving user input for switching Bluetooth connection; Disconnecting the Bluetooth connection with the first electronic device, where the first electronic device is the currently connected device; Sending a directional broadcast message to one of a plurality of historically connected devices within a Bluetooth range, and establishing a Bluetooth connection with the target connected device in response to a Bluetooth connection request sent by the target connected device; The step of selectively sending a directional broadcast message to a plurality of historically connected devices within the Bluetooth range comprises: Sending directional broadcast information to the electronic device with the highest connection frequency among the multiple historically connected devices; or sending directional broadcast information to the electronic device that was most recently connected among the multiple historically connected devices; or randomly selecting an electronic device from the multiple historically connected devices to send directional broadcast information; marking the first electronic device and the target connection device; In response to receiving a user input for switching the Bluetooth connection again within the first preset time period, selectively sending a directed broadcast message to one of the unmarked electronic devices in the plurality of historically connected devices; In response to not receiving the user input for switching the Bluetooth connection again within the first preset time period, or in response to the first electronic device and the plurality of historically connected devices being marked, clearing the mark of the electronic device.

2. The Bluetooth connection switching method according to claim 1, characterized in that: After the step of establishing a Bluetooth connection with the target connection device in response to the Bluetooth connection request sent by the target connection device, the step further includes: The voice prompt information that the device has been connected to the target connection device is played, and the voice prompt information includes the device name of the target connection device.

3. The Bluetooth connection switching method according to claim 1, characterized in that: The directional broadcast message includes the MAC address of the Bluetooth headset and the MAC address of the target connection device.

4. The Bluetooth connection switching method according to claim 1, characterized in that: The user input includes operating the touch area and / or buttons of the Bluetooth headset according to preset rules.

5. A Bluetooth headset, characterized in that: The method comprises a processor and a memory, wherein: the memory is used to store software instructions; The processor is used to execute the instructions in the memory, and the instructions are used to execute the Bluetooth connection switching method according to any one of claims 1 to 4.

6. A computer-readable storage medium, characterized in that: Used to store one or more computer programs, wherein the one or more computer programs include instructions, and when the computer programs are run on a computer, the instructions are used to execute the Bluetooth connection switching method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Low-power-consumption-bluetooth-based data transmission method and system, and master and slave devices

    CN106878926A

  • Bluetooth connection method, Bluetooth device and Bluetooth connection system

    CN107197424A

  • Bluetooth connection method, device and system

    CN110191442A

  • Remote control device and host connection method

    CN110288820A

  • Bluetooth earphone and terminal connection method and system and storage medium

    CN111246441A