CN111246441A - Method, system and storage medium for connecting Bluetooth headset and terminal - Google Patents
Method, system and storage medium for connecting Bluetooth headset and terminal Download PDFInfo
- Publication number
- CN111246441A CN111246441A CN202010121738.9A CN202010121738A CN111246441A CN 111246441 A CN111246441 A CN 111246441A CN 202010121738 A CN202010121738 A CN 202010121738A CN 111246441 A CN111246441 A CN 111246441A
- Authority
- CN
- China
- Prior art keywords
- connection
- bluetooth
- terminal
- request
- headset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a method, a system and a storage medium for connecting a Bluetooth headset and a terminal, wherein the method comprises the following steps: when a Bluetooth connection request for establishing Bluetooth connection with a first terminal is received by a Bluetooth headset and the Bluetooth headset is currently in a connection state with a second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal; and establishing Bluetooth connection with the first terminal by adopting a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request, wherein the type of the Bluetooth connection request comprises a connection preemption request sent by the first terminal and an active switching connection request triggered by a user through the Bluetooth earphone and establishing the Bluetooth connection with the first terminal. Compared with the prior art, the method and the device improve the stability and the safety of the connection of the Bluetooth headset, and reduce the standby power consumption and the connection power consumption of the Bluetooth headset.
Description
Technical Field
The present invention relates to the field of bluetooth headset technology, and in particular, to a method, system, and storage medium for connecting a bluetooth headset to a terminal.
Background
The Bluetooth headset is used as a product conforming to trend in times, a 3.5mm interface of an electronic equipment terminal (such as a mobile phone) can be eliminated through processing, a cumbersome headset wire at the headset end is eliminated, and functions of one machine with two purposes, convenience in carrying, intelligent voice and the like can be realized.
Along with the continuous promotion of people's daily life demand, the continuous optimization of portable mode, traditional earphone has been difficult to satisfy the demand on using, so along with the continuous development of intelligent hardware, bluetooth headset begins to become more and more popular on the market. With the release of airpots of apple, the market of wireless bluetooth headsets is more trendy.
The importance of bluetooth headsets is more and more prominent, but the general bluetooth headsets are all connected one-to-one, that is, only one bluetooth mobile device can be connected with one bluetooth headset. Because more and more bluetooth mobile products are used at present, such as mobile phones, tablets, computers and the like, one bluetooth headset can only be singly connected with one device, and the experience is very poor. In order to meet such demands, some bluetooth headsets supporting one-to-two are also available in the market, that is, one bluetooth headset can be connected with two bluetooth mobile devices at the same time. However, the bluetooth headset supporting the one-drag-two function also has some disadvantages, such as unstable connectivity, low security, relatively high standby power consumption and connection power consumption, etc. of the bluetooth headset supporting the one-drag-two function.
Disclosure of Invention
The invention mainly aims to provide a method, a system and a storage medium for connecting a Bluetooth headset and a terminal, and aims to realize a function similar to one-for-two, improve the stability and the safety of connection of the Bluetooth headset and reduce the standby power consumption and the connection power consumption of the Bluetooth headset.
In order to achieve the above object, the present invention provides a method for connecting a bluetooth headset to a terminal, which is characterized by comprising the following steps:
when a Bluetooth connection request for establishing Bluetooth connection with a first terminal is received by a Bluetooth headset and the Bluetooth headset is currently in a connection state with a second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and establishing Bluetooth connection with the first terminal by adopting a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request, wherein the type of the Bluetooth connection request comprises a connection preemption request sent by the first terminal and an active switching connection request triggered by a user through the Bluetooth earphone and establishing the Bluetooth connection with the first terminal.
A further technical solution of the present invention is that the bluetooth connection request type is a connection preemption request sent by the first terminal, and the step of establishing a bluetooth connection with the first terminal in a corresponding bluetooth connection manner according to the bluetooth connection request type includes:
judging whether a connection preemption request sent by the first terminal is received again within a preset duration of disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and if the connection preemption request sent by the first terminal is received again, establishing Bluetooth connection with the first terminal.
A further technical solution of the present invention is that, after the step of determining whether to receive the connection preemption request sent by the first terminal again within a preset duration of disconnecting the bluetooth connection between the bluetooth headset and the second terminal, the method further includes:
if the connection preemption request sent by the first terminal is not received again, searching the mac address of the terminal which sends the connection preemption request for the last time;
and establishing Bluetooth connection with the terminal which sends the preemption connection request at the last time according to the mac address of the terminal which sends the preemption connection request at the last time.
The further technical scheme of the invention is that the method also comprises the following steps:
and acquiring the mac address of the terminal which sends the preemption connection request at the last time.
A further technical solution of the present invention is that the bluetooth connection request type is an active handover connection request triggered by a user through the bluetooth headset to establish a bluetooth connection with the first terminal, and the step of establishing a bluetooth connection with the first terminal in a corresponding bluetooth connection manner according to the bluetooth connection request type includes:
and establishing Bluetooth connection with the first terminal according to an active switching connection request which is triggered by a user through a Bluetooth earphone key and establishes Bluetooth connection with the first terminal.
A further technical solution of the present invention is that, after the step of the bluetooth headset receiving the bluetooth connection request for establishing the bluetooth connection with the first terminal, the method includes:
judging whether the Bluetooth headset is currently connected with the second terminal;
if yes, the step of disconnecting the Bluetooth connection between the Bluetooth earphone and the second terminal is executed;
and if not, establishing Bluetooth connection with the first terminal.
In order to achieve the above object, the present invention further provides a connection system of a bluetooth headset and a terminal, including a memory, a processor, and a connection program of the bluetooth headset and the terminal stored in the memory, where the processor executes the following steps when called by the memory:
when a Bluetooth connection request for establishing Bluetooth connection with a first terminal is received by a Bluetooth headset and the Bluetooth headset is currently in a connection state with a second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and establishing Bluetooth connection with the first terminal by adopting a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request, wherein the type of the Bluetooth connection request comprises a connection preemption request sent by the first terminal and an active switching connection request triggered by a user through the Bluetooth earphone and establishing the Bluetooth connection with the first terminal.
A further technical solution of the present invention is that, the bluetooth connection request type is a connection preemption request sent by the first terminal, and the processor, when being called by the memory, further executes the following steps:
judging whether a connection preemption request sent by the first terminal is received again within a preset duration of disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and if the connection preemption request sent by the first terminal is received again, establishing Bluetooth connection with the first terminal.
The further technical scheme of the invention is that the processor is also used for executing the following steps when being called by the memory:
if the connection preemption request sent by the first terminal is not received again within the preset duration of the Bluetooth connection between the Bluetooth earphone and the second terminal, searching the mac address of the terminal which sends the connection preemption request for the last time;
and establishing Bluetooth connection with the terminal which sends the preemption connection request at the last time according to the mac address of the terminal which sends the preemption connection request at the last time.
To achieve the above object, the present invention further provides a computer-readable storage medium, which stores a connection program of a bluetooth headset and a terminal, and when the connection program of the bluetooth headset and the terminal is called by a processor, the steps of the method are implemented.
The method, the system and the storage medium for connecting the Bluetooth headset and the terminal have the advantages that: according to the technical scheme, when the Bluetooth connection request for establishing the Bluetooth connection with the first terminal is received by the Bluetooth earphone and the Bluetooth earphone is currently connected with the second terminal, the Bluetooth connection between the Bluetooth earphone and the second terminal is disconnected, whether the connection preemption request sent by the first terminal is received again or not is judged within the preset time for disconnecting the Bluetooth connection between the Bluetooth earphone and the second terminal, and if the connection preemption request sent by the first terminal is received again, the Bluetooth connection is established with the first terminal, so that the stability and the safety of the connection of the Bluetooth earphone are further improved, and the standby power consumption and the connection power consumption of the Bluetooth earphone are reduced.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a connection method of a bluetooth headset and a terminal according to the present invention;
fig. 2 is a flowchart illustrating a second embodiment of a connection method between a bluetooth headset and a terminal according to the present invention;
fig. 3 is a flowchart illustrating a third embodiment of a connection method between a bluetooth headset and a terminal according to the present invention;
fig. 4 is a schematic flowchart of a fourth embodiment of a connection method for a bluetooth headset and a terminal according to the present invention;
fig. 5 is a block diagram of a bluetooth device initiating connection preemption in the connection method between the bluetooth headset and the terminal according to the present invention;
fig. 6 is a block diagram of the connection method between the bluetooth headset and the terminal according to the present invention, in which the bluetooth headset initiates an active connection switching;
fig. 7 is a flowchart of the connection preemption initiated by the bluetooth device in the connection method between the bluetooth headset and the terminal according to the present invention;
fig. 8 is a flowchart of the method for connecting a bluetooth headset to a terminal according to the present invention, in which the bluetooth headset initiates an active connection switching.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Considering that the existing bluetooth headset supporting the one-drag-two function has some disadvantages, such as unstable connectivity, low security, relatively high standby power consumption and connection power consumption, the invention provides a solution, which can realize the similar function of one-drag-two and avoid some disadvantages of the one-drag-two function.
Specifically, the invention provides a method for connecting a bluetooth headset with a terminal, and the terminal can be a bluetooth device terminal of different systems, such as a mobile phone and a tablet of an Android system, a mobile phone and an ipad of an IOS system, a notebook computer of a Windows system, an apple computer of a mac system, and the like.
The Bluetooth headset comprises a controller, wherein the controller is used as a core of the Bluetooth headset and mainly realizes specific functions of the Bluetooth headset, such as connection, communication, connection preemption and active connection switching between the Bluetooth headset and a terminal. It can be understood that, in the embodiments of the present invention, after the bluetooth headset and the terminal are connected in a pairing manner, the pairing record, the pairing information, and the mac address of each terminal are stored locally in the bluetooth headset. The Bluetooth headset realizes the preemptive connection initiated by the terminal or the active switching connection initiated by the user through the Bluetooth headset through the pairing record, the pairing information and the mac address which are stored locally.
The technical scheme adopted by the invention is mainly as follows: when a Bluetooth connection request for establishing Bluetooth connection with a first terminal is received by a Bluetooth headset and the Bluetooth headset is currently in a connection state with a second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal; and establishing Bluetooth connection with the first terminal in a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request, wherein the type of the Bluetooth connection request comprises a connection preemption request sent by the first terminal and an active connection switching request triggered by the user through the Bluetooth headset and establishing the Bluetooth connection with the first terminal, so that the similar function of one-to-two is realized, the connection stability and safety of the Bluetooth headset are improved, and the standby power consumption and the connection power consumption of the Bluetooth headset are reduced.
Referring to fig. 1, fig. 1 is a flowchart illustrating a connection method between a bluetooth headset and a terminal according to a first embodiment of the present invention.
As shown in fig. 1, in this embodiment, the method for connecting the bluetooth headset to the terminal includes the following steps:
step S10, when the Bluetooth earphone receives the Bluetooth connection request for establishing the Bluetooth connection with the first terminal and the Bluetooth earphone is in the connection state with the second terminal, the Bluetooth connection between the Bluetooth earphone and the second terminal is disconnected.
And step S20, establishing Bluetooth connection with the first terminal by adopting a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request.
The Bluetooth connection request type comprises a connection preemption request sent by the first terminal and an active switching connection request triggered by a user through the Bluetooth earphone and establishing Bluetooth connection with the first terminal.
In this embodiment, the connection preemption means that after the bluetooth headset is connected to the current terminal, the bluetooth headset may be connected by other paired terminals, and when the paired terminals are connected, the connection before the bluetooth headset is disconnected first, and then the connection of the last terminal is responded, so as to achieve the connection preemption function.
It should be noted that, in this embodiment, after the step of receiving the bluetooth connection request for establishing the bluetooth connection with the first terminal, the bluetooth headset may first determine whether the bluetooth headset and the second terminal are in a connected state, and if yes, execute the step of disconnecting the bluetooth connection between the bluetooth headset and the second terminal; if not, directly establishing Bluetooth connection with the first terminal.
According to the technical scheme, the Bluetooth connection request which is connected with the first terminal and is established by the Bluetooth earphone is received by the Bluetooth earphone, the Bluetooth earphone is disconnected when being in a connection state with the second terminal at present, the Bluetooth earphone is connected with the Bluetooth of the second terminal, and according to the type of the Bluetooth connection request, the Bluetooth connection mode corresponding to the Bluetooth connection request is adopted to be connected with the first terminal, so that the similar function of one-to-two is realized, the connection stability and the connection safety of the Bluetooth earphone are improved, and the standby power consumption and the connection power consumption of the Bluetooth earphone are reduced.
Referring to fig. 2, fig. 2 is a flowchart illustrating a second embodiment of a method for connecting a bluetooth headset to a terminal according to the present invention, where the difference between the present embodiment and the first embodiment shown in fig. 1 is that, in the present embodiment, the bluetooth connection request type is a connection preemption request sent by the first terminal, and the step S20 of establishing a bluetooth connection with the first terminal in a corresponding bluetooth connection manner according to the bluetooth connection request type includes:
and S201, judging whether the connection preemption request sent by the first terminal is received again within the preset duration of the Bluetooth connection between the Bluetooth headset and the second terminal.
The preset time period may be set according to an actual situation, for example, 5 seconds, which is not limited in this embodiment.
And S202, if the connection preemption request sent by the first terminal is received again, establishing Bluetooth connection with the first terminal.
After the Bluetooth earphone is connected with one Bluetooth equipment end, the Bluetooth earphone is set to be in a connection state which can not be found, at the moment, other Bluetooth equipment ends with matching records can initiate to seize connection, the Bluetooth earphone can be disconnected with the former connection and then connected with the latter, and therefore the whole process of seizing connection is achieved. It should be noted that the active preemption connection initiated by the bluetooth device end may be initiated by bluetooth device ends of many different systems, for example, a mobile phone and a tablet of an Android system, a mobile phone and an ipad of an IOS system, a notebook computer of a Windows system, an apple computer of a mac system, and so on. When the Bluetooth equipment ends of different systems are opened or actively connected, the connection behaviors of the Bluetooth earphones can be initiated, the connection behaviors initiated by the Bluetooth equipment ends of different systems are different, for example, the times of initiating Bluetooth connection by a mobile phone and a panel of an Android system are 2-3 times, the mobile phone of an IOS system only initiates Bluetooth connection once, and the notebook computer of a Windows system and a mac system only initiates Bluetooth connection once. According to the bluetooth connection characteristics of different system bluetooth products, the embodiment can make specific responses according to the different bluetooth connection characteristics when the bluetooth headset is designed to preempt connection.
According to the technical scheme, when the Bluetooth connection request for establishing the Bluetooth connection with the first terminal is received by the Bluetooth headset and the Bluetooth headset is currently in a connection state with the second terminal, the Bluetooth connection between the Bluetooth headset and the second terminal is disconnected, whether the connection preemption request sent by the first terminal is received again or not is judged within the preset duration of the Bluetooth connection between the Bluetooth headset and the second terminal, and if the connection preemption request sent by the first terminal is received again, the Bluetooth connection with the first terminal is established, so that the connection stability and safety of the Bluetooth headset are further improved, and the standby power consumption and the connection power consumption of the Bluetooth headset are reduced.
Referring to fig. 3, fig. 3 is a flowchart illustrating a third embodiment of a connection method between a bluetooth headset and a terminal according to the present invention, and a difference between this embodiment and the second embodiment shown in fig. 2 is that, in this embodiment, the step S201, after the step of determining whether to receive a connection preemption request sent by the first terminal again within a preset duration of disconnecting the bluetooth headset from the second terminal, further includes:
step S203, if the connection preemption request sent by the first terminal is not received again, searching for the mac address of the terminal that sent the connection preemption request the last time.
It should be understood that, in this embodiment, when receiving the connection preemption request sent by the terminal, the bluetooth headset stores the mac addresses of all terminals sending the connection preemption request, including the mac address of the terminal sending the connection preemption request last time.
And step S204, establishing Bluetooth connection with the terminal which sends the connection preemption request the last time according to the mac address of the terminal which sends the connection preemption request the last time.
After the mac address of the terminal which sends the connection preemption request for the last time is found, the Bluetooth connection is established with the terminal which sends the connection preemption request for the last time according to the mac address, so that the connection preemption function is realized.
In the embodiment, by the above technical solution, the bluetooth headset receives the bluetooth connection request for establishing the bluetooth connection with the first terminal, and when the Bluetooth earphone is currently in a connection state with the second terminal, the Bluetooth connection between the Bluetooth earphone and the second terminal is disconnected, judging whether to receive the connection preemption request sent by the first terminal again within the preset duration of disconnecting the Bluetooth connection between the Bluetooth earphone and the second terminal, if not, searching the mac address of the terminal which sends the connection preemption request for the last time, and establishing Bluetooth connection with the terminal which sends the connection preemption request for the last time according to the mac address of the terminal which sends the connection preemption request for the last time, so that the connection stability and safety of the Bluetooth headset are further improved, and the standby power consumption and the connection power consumption of the Bluetooth headset are reduced.
Referring to fig. 4, fig. 4 is a flowchart illustrating a fourth embodiment of a method for connecting a bluetooth headset to a terminal according to the present invention, where the difference between the present embodiment and the first embodiment shown in fig. 1 is that, in the present embodiment, the bluetooth connection request type is an active handover connection request triggered by a user through the bluetooth headset to establish a bluetooth connection with the first terminal, and the step S20 of establishing a bluetooth connection with the first terminal in a corresponding bluetooth connection manner according to the bluetooth connection request type includes:
step S205, according to an active switching connection request which is triggered by a user through a Bluetooth earphone key and establishes Bluetooth connection with the first terminal, establishing Bluetooth connection with the first terminal.
After the Bluetooth headset is connected with the Bluetooth device end, the Bluetooth headset locally records the information of the mac address of the Bluetooth device end which is connected and paired. The Bluetooth headset can initiate active switching connection to the paired Bluetooth equipment ends according to the locally recorded pairing information. The active switching connection of the Bluetooth headset is mainly realized through the combined keys of the Bluetooth headset.
According to the technical scheme, the Bluetooth connection request which is connected with the first terminal and is established by the Bluetooth earphone is received by the Bluetooth earphone, and when the Bluetooth earphone is currently in a connection state with the second terminal, the Bluetooth earphone is disconnected with the Bluetooth connection of the second terminal, and the Bluetooth connection is established by the first terminal according to the active switching connection request which is triggered by the user through the Bluetooth earphone key and is established by the first terminal, so that the Bluetooth connection is established by the first terminal, the connection stability and the connection safety of the Bluetooth earphone are further improved, and the standby power consumption and the connection power consumption of the Bluetooth earphone are reduced.
The connection method of the bluetooth headset and the terminal according to the present invention is further described in detail with reference to fig. 1 to 8.
In the embodiment of the connection method between the bluetooth headset and the terminal provided by the invention, the bluetooth connection method between the bluetooth headset and the bluetooth device ends of different systems mainly comprises two methods: 1. the Bluetooth equipment terminal actively initiates connection to seize the Bluetooth earphone; 2. the Bluetooth earphone actively disconnects the currently connected Bluetooth equipment end through a key, and switches the last Bluetooth equipment end which is connected in a matched mode.
First, the bluetooth device end initiates the preemption connection
After the bluetooth headset is connected with a bluetooth device end (such as a mobile phone), the bluetooth headset is set to be in an undiscoverable connection state, at this time, other bluetooth device ends (such as a mobile phone, a tablet and a computer) with matching records can initiate preemption connection, and the bluetooth headset can disconnect the former connection and then connect the latter, thereby realizing the whole process of preemption connection. The active preemption connection initiated by the bluetooth device (e.g., mobile phone, tablet, computer) may be initiated by a bluetooth device of many different systems, such as the mobile phone and tablet of the Android system, the mobile phone and ipad of the IOS system, the notebook of the Windows system, the apple computer of the mac system, and so on. When the bluetooth device ends of different systems are opened or actively connected, connection behaviors of the bluetooth headset can be initiated, and the connection behaviors initiated by the bluetooth device ends of different systems are different. For example, the number of times of initiating the bluetooth connection between the mobile phone of the Android system and the tablet may be 2-3 times, the mobile phone of the IOS system may initiate the bluetooth connection only once, and the notebook computer of the Windows system and the mac system may only have the bluetooth connection once. According to the Bluetooth connection characteristics of different system Bluetooth products, the invention can make specific response aiming at the different Bluetooth connection characteristics when designing the Bluetooth headset to preempt connection.
The specific implementation principle and steps are as follows:
1. the bluetooth headset is already connected with one bluetooth device side (mobile phone), and the other bluetooth device side (devices of whatever system) initiates the connection.
2. When other Bluetooth equipment ends initiate to seize connection, the Bluetooth headset records the mac address of the current Bluetooth equipment end initiating to seize, a timer about 5 seconds is started, and then all connections of the bottom layer of the Bluetooth headset are disconnected, including the original connection and the connection initiated later, so that the Bluetooth headset is in a connectionless state, and the conditions of conflict between the connection of the bottom layer and the seizing connection and connection errors are avoided.
3. After the Bluetooth headset is disconnected with all the Bluetooth devices on the bottom layer, the number of times of preemption by the Bluetooth device ends of different systems is different, the Bluetooth device ends of some systems can initiate the connection of the Bluetooth headset again, and the Bluetooth devices preempted at this time can be connected with the Bluetooth headset, so that the connection is preempted successfully.
4. After the bluetooth headset disconnects all the bluetooth connections in the bottom layer, the number of times of preemption by the bluetooth device ends of different systems is different, and the bluetooth devices of some systems (such as an IOS system, a mac system, etc.) do not preempt the connection any more, and if no measure is added, the preemption of the connection fails, so that the bluetooth headset does not have any connection. Therefore, in the handler processing function of the timer of 5 seconds initiated in step 2, it is determined whether the recorded bluetooth device end preempting the mac address of the connection is successfully connected, and if not, the active connection of the bluetooth device to the mac address by the bluetooth headset is initiated, so as to ensure that the bluetooth device preempting the connection can be connected certainly.
Secondly, the Bluetooth headset initiates active switching connection
After the Bluetooth headset is connected with the Bluetooth device end, the Bluetooth headset locally records the information of the mac address of the connected and paired Bluetooth device end. The Bluetooth headset can initiate active connection to the paired Bluetooth device (no matter what system device) according to the locally recorded pairing information. The invention mainly realizes the active switching connection of the Bluetooth headset through the combined keys of the Bluetooth headset.
The specific implementation principle and steps are as follows:
1. firstly, whether more than two local pairing records of the Bluetooth headset exist is judged, and meanwhile, the Bluetooth headset is connected with a Bluetooth device end.
2. The Bluetooth headset realizes the active switching connection function through the combined keys, and if the volume is increased and reduced for 5 seconds, the Bluetooth headset disconnects all connections on the bottom layer of the Bluetooth headset at first and then actively connects the Bluetooth device end which is connected and paired last time, so that the active switching connection function is realized.
It should be noted that the manner of actively switching back connection has no relationship or influence with the system of the bluetooth mobile device.
In summary, according to the connection method of the bluetooth headset and the terminal of the present invention, according to the above technical solution, when the bluetooth headset receives a bluetooth connection request for establishing a bluetooth connection with a first terminal and the bluetooth headset is currently in a connection state with a second terminal, the bluetooth connection between the bluetooth headset and the second terminal is disconnected, and a bluetooth connection is established with the first terminal in a corresponding bluetooth connection manner according to the type of the bluetooth connection request, so that a similar function of one-to-two is achieved, the connection stability and security of the bluetooth headset are improved, and the standby power consumption and connection power consumption of the bluetooth headset are reduced.
In order to achieve the above object, the present invention further provides a connection system of a bluetooth headset and a terminal, which includes a memory, a processor, and a connection program of the bluetooth headset and the terminal stored in the memory, wherein the processor executes the following steps when called by the memory:
when a Bluetooth connection request for establishing Bluetooth connection with a first terminal is received by a Bluetooth headset and the Bluetooth headset is currently in a connection state with a second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and establishing Bluetooth connection with the first terminal by adopting a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request, wherein the type of the Bluetooth connection request comprises a connection preemption request sent by the first terminal and an active switching connection request triggered by a user through the Bluetooth earphone and establishing the Bluetooth connection with the first terminal.
Preferably, the bluetooth connection request type is a connection preemption request sent by the first terminal, and the processor, when called by the memory, further performs the following steps:
judging whether a connection preemption request sent by the first terminal is received again within a preset duration of disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and if the connection preemption request sent by the first terminal is received again, establishing Bluetooth connection with the first terminal.
Preferably, the processor, when invoked by the memory, further performs the steps of:
if the connection preemption request sent by the first terminal is not received again within the preset duration of the Bluetooth connection between the Bluetooth earphone and the second terminal, searching the mac address of the terminal which sends the connection preemption request for the last time;
and establishing Bluetooth connection with the terminal which sends the preemption connection request at the last time according to the mac address of the terminal which sends the preemption connection request at the last time.
According to the connecting system of the Bluetooth headset and the terminal, when the Bluetooth headset receives a Bluetooth connection request for establishing Bluetooth connection with the first terminal and the Bluetooth headset is currently in a connection state with the second terminal, the Bluetooth connection between the Bluetooth headset and the second terminal is disconnected, and the Bluetooth connection is established with the first terminal in a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request, so that the similar function of one-to-two is realized, the connection stability and safety of the Bluetooth headset are improved, and the standby power consumption and the connection power consumption of the Bluetooth headset are reduced.
In order to achieve the above object, the present invention further provides a computer-readable storage medium, where a connection program between a bluetooth headset and a terminal is stored in the computer-readable storage medium, and when the connection program between the bluetooth headset and the terminal is called by a processor, the steps of the method according to the above embodiment are implemented, which are not described herein again.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A method for connecting a Bluetooth headset with a terminal is characterized by comprising the following steps:
when a Bluetooth connection request for establishing Bluetooth connection with a first terminal is received by a Bluetooth headset and the Bluetooth headset is currently in a connection state with a second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and establishing Bluetooth connection with the first terminal by adopting a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request, wherein the type of the Bluetooth connection request comprises a connection preemption request sent by the first terminal and an active switching connection request triggered by a user through the Bluetooth earphone and establishing the Bluetooth connection with the first terminal.
2. The method according to claim 1, wherein the bluetooth connection request type is a connection preemption request sent by the first terminal, and the step of establishing the bluetooth connection with the first terminal in a corresponding bluetooth connection manner according to the bluetooth connection request type comprises:
judging whether a connection preemption request sent by the first terminal is received again within a preset duration of disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and if the connection preemption request sent by the first terminal is received again, establishing Bluetooth connection with the first terminal.
3. The method according to claim 2, wherein the step of determining whether to receive the connection preemption request again sent by the first terminal within a preset duration of disconnecting the bluetooth connection between the bluetooth headset and the second terminal further comprises:
if the connection preemption request sent by the first terminal is not received again, searching the mac address of the terminal which sends the connection preemption request for the last time;
and establishing Bluetooth connection with the terminal which sends the preemption connection request at the last time according to the mac address of the terminal which sends the preemption connection request at the last time.
4. The method of claim 3, wherein the method further comprises:
and acquiring the mac address of the terminal which sends the preemption connection request at the last time.
5. The method according to claim 1, wherein the bluetooth connection request type is an active handover connection request triggered by a user through the bluetooth headset to establish a bluetooth connection with the first terminal, and the step of establishing a bluetooth connection with the first terminal in a corresponding bluetooth connection manner according to the bluetooth connection request type includes:
and establishing Bluetooth connection with the first terminal according to an active switching connection request which is triggered by a user through a Bluetooth earphone key and establishes Bluetooth connection with the first terminal.
6. The method according to any of claims 1 to 5, wherein the step of the Bluetooth headset receiving a Bluetooth connection request for establishing a Bluetooth connection with the first terminal is followed by the steps of:
judging whether the Bluetooth headset is currently connected with the second terminal;
if yes, the step of disconnecting the Bluetooth connection between the Bluetooth earphone and the second terminal is executed;
and if not, establishing Bluetooth connection with the first terminal.
7. A connection system of a Bluetooth headset and a terminal is characterized by comprising a memory, a processor and a connection program of the Bluetooth headset and the terminal stored on the memory, wherein the processor executes the following steps when being called by the memory:
when a Bluetooth connection request for establishing Bluetooth connection with a first terminal is received by a Bluetooth headset and the Bluetooth headset is currently in a connection state with a second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and establishing Bluetooth connection with the first terminal by adopting a corresponding Bluetooth connection mode according to the type of the Bluetooth connection request, wherein the type of the Bluetooth connection request comprises a connection preemption request sent by the first terminal and an active switching connection request triggered by a user through the Bluetooth earphone and establishing the Bluetooth connection with the first terminal.
8. The bluetooth headset to terminal connection system of claim 7, wherein the bluetooth connection request type is a connection preemption request sent by the first terminal, and the processor, when invoked by the memory, further performs the steps of:
judging whether a connection preemption request sent by the first terminal is received again within a preset duration of disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
and if the connection preemption request sent by the first terminal is received again, establishing Bluetooth connection with the first terminal.
9. The system of claim 8, wherein the processor, when invoked by the memory, further performs the steps of:
if the connection preemption request sent by the first terminal is not received again within the preset duration of the Bluetooth connection between the Bluetooth earphone and the second terminal, searching the mac address of the terminal which sends the connection preemption request for the last time;
and establishing Bluetooth connection with the terminal which sends the preemption connection request at the last time according to the mac address of the terminal which sends the preemption connection request at the last time.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a bluetooth headset to terminal connection program, which when invoked by a processor implements the steps of the method according to any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010121738.9A CN111246441B (en) | 2020-02-26 | 2020-02-26 | Method, system and storage medium for connecting Bluetooth headset and terminal |
PCT/CN2020/101655 WO2021169147A1 (en) | 2020-02-26 | 2020-07-13 | Method and system for connecting bluetooth earphones to terminal, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010121738.9A CN111246441B (en) | 2020-02-26 | 2020-02-26 | Method, system and storage medium for connecting Bluetooth headset and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111246441A true CN111246441A (en) | 2020-06-05 |
CN111246441B CN111246441B (en) | 2021-08-24 |
Family
ID=70865818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010121738.9A Active CN111246441B (en) | 2020-02-26 | 2020-02-26 | Method, system and storage medium for connecting Bluetooth headset and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111246441B (en) |
WO (1) | WO2021169147A1 (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447602A (en) * | 2020-06-17 | 2020-07-24 | 成都极米科技股份有限公司 | Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium |
CN112004173A (en) * | 2020-08-27 | 2020-11-27 | 努比亚技术有限公司 | Switching method of Bluetooth earphone, mobile terminal and computer readable storage medium |
CN112272373A (en) * | 2020-10-14 | 2021-01-26 | 海信视像科技股份有限公司 | Bluetooth device type switching method and display device |
WO2021169147A1 (en) * | 2020-02-26 | 2021-09-02 | 深圳市岍丞技术有限公司 | Method and system for connecting bluetooth earphones to terminal, and storage medium |
CN113873589A (en) * | 2021-09-18 | 2021-12-31 | 深圳市爱都科技有限公司 | Bluetooth connection switching method, Bluetooth headset and computer readable storage medium |
CN114040465A (en) * | 2021-11-30 | 2022-02-11 | Oppo广东移动通信有限公司 | Device connection switching method and device, electronic device and computer readable storage medium |
WO2022052756A1 (en) * | 2020-09-10 | 2022-03-17 | 华为技术有限公司 | Audio control system |
CN114245362A (en) * | 2022-02-25 | 2022-03-25 | 荣耀终端有限公司 | Device reconnection method and Bluetooth peripheral |
CN115776662A (en) * | 2021-09-08 | 2023-03-10 | Oppo广东移动通信有限公司 | Bluetooth connection method, device, earphone device and computer readable storage medium |
WO2023098235A1 (en) * | 2021-11-30 | 2023-06-08 | Oppo广东移动通信有限公司 | Device connection switching method, and apparatus, electronic device and computer-readable storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113766477A (en) * | 2021-09-23 | 2021-12-07 | Oppo广东移动通信有限公司 | Device connection method, device, electronic device and computer readable medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340212A (en) * | 2007-07-03 | 2009-01-07 | 艾威梯软件技术(北京)有限公司 | Method, apparatus and system for triggering automatic switchover of Bluetooth connecting device by key pressing |
CN101835276A (en) * | 2010-05-12 | 2010-09-15 | 中兴通讯股份有限公司 | Method and device for dial-in connection of mobile data terminal |
CN103476030A (en) * | 2013-08-29 | 2013-12-25 | 小米科技有限责任公司 | Method for connecting mobile terminal to network, mobile terminal and terminal equipment |
CN103475817A (en) * | 2013-09-03 | 2013-12-25 | 深圳一电科技有限公司 | Matching method for remote control devices and shooting device |
CN104967971A (en) * | 2015-06-26 | 2015-10-07 | 飞天诚信科技股份有限公司 | Method achieving bluetooth automatic return connection in Android system |
CN106454697A (en) * | 2016-08-19 | 2017-02-22 | 深圳市元征科技股份有限公司 | Bluetooth switching method and device |
CN107708117A (en) * | 2017-10-27 | 2018-02-16 | 张毅昆 | A kind of network access verifying method and device |
CN108924706A (en) * | 2018-06-26 | 2018-11-30 | 努比亚技术有限公司 | Bluetooth headset method for handover control, bluetooth headset and computer readable storage medium |
CN110191442A (en) * | 2019-04-18 | 2019-08-30 | 华为技术有限公司 | A kind of Bluetooth connecting method, equipment and system |
WO2019235892A1 (en) * | 2018-06-07 | 2019-12-12 | 엘지전자 주식회사 | Method and apparatus for controlling power of device by using bluetooth technology |
US10575346B2 (en) * | 2016-11-29 | 2020-02-25 | Pacesetter, Inc. | Managing dynamic connection intervals for implantable and external devices |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075891A (en) * | 2009-11-24 | 2011-05-25 | 中兴通讯股份有限公司 | Mobile phone answering method and system based on personal network |
CN105302635A (en) * | 2014-07-17 | 2016-02-03 | 联想(北京)有限公司 | Switching method and electronic equipment |
US9986370B2 (en) * | 2016-04-05 | 2018-05-29 | Plantronics, Inc. | Connection switching for bluetooth headsets |
CN110167194A (en) * | 2019-05-20 | 2019-08-23 | 安徽华米信息科技有限公司 | Equipment connection method, device, bluetooth headset and system |
CN111225346B (en) * | 2019-11-28 | 2022-07-12 | 深圳传音控股股份有限公司 | Connection switching method of wireless earphone, wireless earphone and storage medium |
CN111246441B (en) * | 2020-02-26 | 2021-08-24 | 深圳市岍丞技术有限公司 | Method, system and storage medium for connecting Bluetooth headset and terminal |
-
2020
- 2020-02-26 CN CN202010121738.9A patent/CN111246441B/en active Active
- 2020-07-13 WO PCT/CN2020/101655 patent/WO2021169147A1/en active Application Filing
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340212A (en) * | 2007-07-03 | 2009-01-07 | 艾威梯软件技术(北京)有限公司 | Method, apparatus and system for triggering automatic switchover of Bluetooth connecting device by key pressing |
CN101835276A (en) * | 2010-05-12 | 2010-09-15 | 中兴通讯股份有限公司 | Method and device for dial-in connection of mobile data terminal |
CN103476030A (en) * | 2013-08-29 | 2013-12-25 | 小米科技有限责任公司 | Method for connecting mobile terminal to network, mobile terminal and terminal equipment |
CN103475817A (en) * | 2013-09-03 | 2013-12-25 | 深圳一电科技有限公司 | Matching method for remote control devices and shooting device |
CN104967971A (en) * | 2015-06-26 | 2015-10-07 | 飞天诚信科技股份有限公司 | Method achieving bluetooth automatic return connection in Android system |
CN106454697A (en) * | 2016-08-19 | 2017-02-22 | 深圳市元征科技股份有限公司 | Bluetooth switching method and device |
US10575346B2 (en) * | 2016-11-29 | 2020-02-25 | Pacesetter, Inc. | Managing dynamic connection intervals for implantable and external devices |
CN107708117A (en) * | 2017-10-27 | 2018-02-16 | 张毅昆 | A kind of network access verifying method and device |
WO2019235892A1 (en) * | 2018-06-07 | 2019-12-12 | 엘지전자 주식회사 | Method and apparatus for controlling power of device by using bluetooth technology |
CN108924706A (en) * | 2018-06-26 | 2018-11-30 | 努比亚技术有限公司 | Bluetooth headset method for handover control, bluetooth headset and computer readable storage medium |
CN110191442A (en) * | 2019-04-18 | 2019-08-30 | 华为技术有限公司 | A kind of Bluetooth connecting method, equipment and system |
Non-Patent Citations (5)
Title |
---|
DONG-HO KIM等: "A novel integrated dual-mode RF front-end module for Wi-Fi and bluetooth applications", 《2011 IEEE MTT-S INTERNATIONAL MICROWAVE SYMPOSIUM》 * |
QIAOYUN ZHANG: "An interference-aware and energy-saving connection protocol for Bluetooth radio networks", 《2014 IEEE INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS-TAIWAN》 * |
丁鹭: "基于蓝牙低功耗传输的智能腕带设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
吴云峰: "基于Linux的车载信息娱乐系统的音频设计与实现", 《信息通信》 * |
张鑫: "基于蓝牙的家居控制网络应用研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021169147A1 (en) * | 2020-02-26 | 2021-09-02 | 深圳市岍丞技术有限公司 | Method and system for connecting bluetooth earphones to terminal, and storage medium |
CN111447602B (en) * | 2020-06-17 | 2020-09-29 | 成都极米科技股份有限公司 | Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium |
CN111447602A (en) * | 2020-06-17 | 2020-07-24 | 成都极米科技股份有限公司 | Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium |
CN112004173A (en) * | 2020-08-27 | 2020-11-27 | 努比亚技术有限公司 | Switching method of Bluetooth earphone, mobile terminal and computer readable storage medium |
WO2022052756A1 (en) * | 2020-09-10 | 2022-03-17 | 华为技术有限公司 | Audio control system |
CN112272373B (en) * | 2020-10-14 | 2022-03-25 | 海信视像科技股份有限公司 | Bluetooth device type switching method and display device |
CN112272373A (en) * | 2020-10-14 | 2021-01-26 | 海信视像科技股份有限公司 | Bluetooth device type switching method and display device |
CN115776662A (en) * | 2021-09-08 | 2023-03-10 | Oppo广东移动通信有限公司 | Bluetooth connection method, device, earphone device and computer readable storage medium |
WO2023036178A1 (en) * | 2021-09-08 | 2023-03-16 | Oppo广东移动通信有限公司 | Bluetooth connection method and apparatus, earphone device, and computer-readable storage medium |
CN113873589A (en) * | 2021-09-18 | 2021-12-31 | 深圳市爱都科技有限公司 | Bluetooth connection switching method, Bluetooth headset and computer readable storage medium |
CN114040465A (en) * | 2021-11-30 | 2022-02-11 | Oppo广东移动通信有限公司 | Device connection switching method and device, electronic device and computer readable storage medium |
WO2023098235A1 (en) * | 2021-11-30 | 2023-06-08 | Oppo广东移动通信有限公司 | Device connection switching method, and apparatus, electronic device and computer-readable storage medium |
CN114245362A (en) * | 2022-02-25 | 2022-03-25 | 荣耀终端有限公司 | Device reconnection method and Bluetooth peripheral |
Also Published As
Publication number | Publication date |
---|---|
CN111246441B (en) | 2021-08-24 |
WO2021169147A1 (en) | 2021-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111246441B (en) | Method, system and storage medium for connecting Bluetooth headset and terminal | |
EP2774351B1 (en) | Transferring an active call to another device | |
CN108419226B (en) | Method for connecting Bluetooth devices and Bluetooth devices | |
CN107889092B (en) | Bluetooth device communication control method, device, terminal device and storage medium | |
EP3537734B1 (en) | Method and device for connecting a bluetooth device | |
CN111818503B (en) | Voice communication method, system, chip, electronic equipment and storage medium | |
US11375569B2 (en) | Method and device for reconnecting Bluetooth communication | |
US10542405B2 (en) | Bluetooth profile fast connect | |
CN107770759B (en) | Bluetooth voice link establishing method and device, storage medium and mobile terminal | |
KR20150099885A (en) | Method for Operating Functions and Resources of Electric Device | |
CN108605373B (en) | Method and electronic device for providing network sharing service | |
US20220078595A1 (en) | Method and apparatus for back-connecting bluetooth device, terminal and computer-readable storage medium | |
CA2784651C (en) | Apparatus and method in a wireless device for reestablishing a call | |
WO2023065931A1 (en) | Method for charging electronic device, and electronic device | |
WO2021239032A1 (en) | Bluetooth protocol connection method and apparatus, storage medium, and related device | |
CN112203179A (en) | TWS earphone, automatic reconnection method and device thereof, and computer storage medium | |
CN106406947B (en) | The method and device that prevents system service process from restarting, mobile terminal | |
WO2020103089A1 (en) | Dual-card communication method and related product | |
CN110944313B (en) | Bluetooth connection method, device, storage medium and terminal | |
CN110572508A (en) | Address book synchronization method and device, storage medium and electronic equipment | |
CN113810890A (en) | Device loop-back method, device, electronic device and storage medium | |
EP3001278B1 (en) | Wireless connection switching method, wireless terminal and system thereof | |
CN103517215A (en) | Terminal and PTT call establishment method | |
CN106469080B (en) | The method and device that prevents system service process from restarting, mobile terminal | |
KR102113550B1 (en) | Method for Operating Functions and Resources of Electric Device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |