WO2021169147A1 - 蓝牙耳机与终端的连接方法、系统及存储介质 - Google Patents

蓝牙耳机与终端的连接方法、系统及存储介质 Download PDF

Info

Publication number
WO2021169147A1
WO2021169147A1 PCT/CN2020/101655 CN2020101655W WO2021169147A1 WO 2021169147 A1 WO2021169147 A1 WO 2021169147A1 CN 2020101655 W CN2020101655 W CN 2020101655W WO 2021169147 A1 WO2021169147 A1 WO 2021169147A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
bluetooth
connection
connection request
bluetooth headset
Prior art date
Application number
PCT/CN2020/101655
Other languages
English (en)
French (fr)
Inventor
谢金生
王东升
付强
陈伟真
谭振焕
Original Assignee
深圳市岍丞技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市岍丞技术有限公司 filed Critical 深圳市岍丞技术有限公司
Publication of WO2021169147A1 publication Critical patent/WO2021169147A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the technical field of bluetooth earphones, in particular to a method, system and storage medium for connecting bluetooth earphones and terminals.
  • Bluetooth headsets can eliminate the 3.5mm interface of electronic device terminals (such as mobile phones) and the cumbersome headset cable at the headset end. At the same time, it can also achieve dual-use, portable, intelligent voice and other functions.
  • Bluetooth headsets have begun to become more and more popular in the market.
  • Apple's Airpods the infinite Bluetooth headset market has reached a climax.
  • Bluetooth headsets The importance of Bluetooth headsets is becoming more and more prominent, but general Bluetooth headsets are connected one-to-one, that is, one Bluetooth headset can only connect to one Bluetooth mobile device. Because there are more and more Bluetooth mobile products, such as mobile phones, tablets, computers, etc., a Bluetooth headset can only connect to a single device, which is a very bad experience. In order to meet this demand, some Bluetooth headsets supporting one for two have also appeared on the market, that is, one Bluetooth headset can be connected to two Bluetooth mobile devices at the same time. However, this kind of Bluetooth headset that supports the one-to-two function also has some drawbacks. For example, the one-to-two function of the Bluetooth headset has unstable connectivity, poor security, and relatively high standby power consumption and connection power consumption.
  • the main purpose of the present invention is to provide a method, system and storage medium for connecting a Bluetooth headset with a terminal, which aims to realize the similar function of one for two, improve the stability and safety of the Bluetooth headset connection, and reduce the standby function of the Bluetooth headset. Power consumption and connection power consumption.
  • the present invention provides a method for connecting a Bluetooth headset and a terminal, which is characterized in that the method includes the following steps:
  • the Bluetooth headset When the Bluetooth headset receives a Bluetooth connection request for establishing a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
  • the Bluetooth connection request type a corresponding Bluetooth connection mode is adopted to establish a Bluetooth connection with the first terminal.
  • the Bluetooth connection request type includes a preemptive connection request sent by the first terminal and triggered by the user through the Bluetooth headset An active handover connection request for establishing a Bluetooth connection with the first terminal.
  • the Bluetooth connection request type is a preemptive connection request sent by the first terminal, and the Bluetooth connection is established with the first terminal in a corresponding Bluetooth connection mode according to the Bluetooth connection request type
  • the steps include:
  • a Bluetooth connection is established with the terminal that sent the preemption connection request last time.
  • the Bluetooth connection request type is an active handover connection request for establishing a Bluetooth connection with the first terminal triggered by the user through the Bluetooth headset, and the corresponding Bluetooth connection request type is used according to the Bluetooth connection request type.
  • the steps of establishing a Bluetooth connection with the first terminal in a Bluetooth connection mode include:
  • a Bluetooth connection is established with the first terminal according to an active handover connection request for establishing a Bluetooth connection with the first terminal triggered by a user through a Bluetooth headset button.
  • a further technical solution of the present invention is that, after the step of receiving a Bluetooth connection request for establishing a Bluetooth connection with the first terminal, the Bluetooth headset includes:
  • the present invention also provides a connection system between a Bluetooth headset and a terminal, including a memory, a processor, and a connection program between the Bluetooth headset and the terminal stored on the memory, and the processor is called by the memory.
  • the Bluetooth headset When the Bluetooth headset receives a Bluetooth connection request for establishing a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
  • the Bluetooth connection request type a corresponding Bluetooth connection mode is adopted to establish a Bluetooth connection with the first terminal.
  • the Bluetooth connection request type includes a preemption connection request sent by the first terminal and triggered by the user through the Bluetooth headset An active handover connection request for establishing a Bluetooth connection with the first terminal.
  • a further technical solution of the present invention is that the Bluetooth connection request type is a preemptive connection request sent by the first terminal, and the processor further executes the following steps when called by the memory:
  • a further technical solution of the present invention is that when the processor is called by the memory, the following steps are further executed:
  • a Bluetooth connection is established with the terminal that sent the preemption connection request last time.
  • the present invention also provides a computer-readable storage medium that stores a connection program between a Bluetooth headset and a terminal, and the connection program between the Bluetooth headset and the terminal is implemented when called by a processor. The steps of the method described above.
  • the Bluetooth headset receives a Bluetooth connection request to establish a Bluetooth connection with the first terminal, and the Bluetooth headset is currently connected to the Bluetooth headset.
  • the second terminal is in the connected state, disconnect the Bluetooth connection between the Bluetooth headset and the second terminal, and determine whether to receive again within a preset period of time when the Bluetooth connection between the Bluetooth headset and the second terminal is disconnected
  • the preemptive connection request sent by the first terminal is received, if the preemptive connection request sent by the first terminal is received again, a Bluetooth connection is established with the first terminal, which further improves the stability and stability of the Bluetooth headset connection.
  • Security reduces the standby power consumption and connection power consumption of the Bluetooth headset.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for connecting a Bluetooth headset and a terminal according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for connecting a Bluetooth headset and a terminal according to the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for connecting a Bluetooth headset and a terminal according to the present invention
  • FIG. 4 is a schematic flowchart of a fourth embodiment of a method for connecting a Bluetooth headset and a terminal according to the present invention
  • FIG. 5 is a framework diagram of a Bluetooth device terminal initiating a preemptive connection in a method for connecting a Bluetooth headset and a terminal according to the present invention
  • FIG. 6 is a framework diagram of the Bluetooth headset initiating an active switching connection in the method for connecting a Bluetooth headset and a terminal according to the present invention
  • FIG. 7 is a flowchart of the Bluetooth device terminal initiating a preemptive connection in the method for connecting a Bluetooth headset and a terminal according to the present invention
  • FIG. 8 is a flowchart of the Bluetooth headset initiating an active switching connection in the method for connecting the Bluetooth headset and the terminal of the present invention.
  • the present invention proposes a The solution can realize the similar function of one for two and avoid some of the drawbacks of the one for two function.
  • the present invention proposes a method for connecting a Bluetooth headset with a terminal.
  • the terminal can be a Bluetooth device terminal of different systems, such as mobile phones and tablets of Android system, mobile phones and ipads of IOS system, laptop computers of Windows system, and mac systems. Apple computers and so on.
  • the Bluetooth headset includes a controller.
  • the controller mainly implements specific functions of the Bluetooth headset, such as the connection between the Bluetooth headset and the terminal, communication, preempt connection, and active switching of connections. It can be understood that, in each embodiment of the present invention, after the Bluetooth headset is paired and connected with the terminal, the pairing record, pairing information, and mac address of each terminal will be 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 local pairing record, pairing information, and mac address.
  • the technical solution adopted by the present invention is mainly: when the Bluetooth headset receives a Bluetooth connection request to establish a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnect the Bluetooth headset from the device.
  • the Bluetooth connection of the second terminal using a corresponding Bluetooth connection mode to establish a Bluetooth connection with the first terminal according to a Bluetooth connection request type, the Bluetooth connection request type including a preemptive connection request sent by the first terminal, and
  • the active switching connection request to establish a Bluetooth connection with the first terminal triggered by the user through the Bluetooth headset thereby realizing the similar function of one for two, and improving the stability and security of the Bluetooth headset connection, and reducing the Bluetooth headset Standby power consumption and connection power consumption.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for connecting a Bluetooth headset and a terminal according to the present invention.
  • the method for connecting the Bluetooth headset to the terminal includes the following steps:
  • Step S10 when the Bluetooth headset receives a Bluetooth connection request for establishing a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnect the Bluetooth connection between the Bluetooth headset and the second terminal .
  • Step S20 According to the Bluetooth connection request type, a corresponding Bluetooth connection mode is adopted to establish a Bluetooth connection with the first terminal.
  • the Bluetooth connection request type includes a preemptive connection request sent by the first terminal, and an active handover connection request for establishing a Bluetooth connection with the first terminal triggered by the user through the Bluetooth headset.
  • preemptive connection means that after the Bluetooth headset is connected to the current terminal, the Bluetooth headset may be connected by another terminal that has been paired. When the paired terminal comes to connect, it will first disconnect the Bluetooth headset. Then, it responds to the connection of the last terminal, so as to realize the function of preempting the connection.
  • the Bluetooth headset after the Bluetooth headset receives the Bluetooth connection request for establishing a Bluetooth connection with the first terminal, it can first determine whether the Bluetooth headset and the second terminal are in a connected state, and if so, then Perform a step of disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal; if not, directly establish a Bluetooth connection with the first terminal.
  • the Bluetooth headset when the Bluetooth headset receives a Bluetooth connection request to establish a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnect the Bluetooth headset from the second terminal.
  • the Bluetooth connection of the second terminal uses the corresponding Bluetooth connection method to establish a Bluetooth connection with the first terminal according to the type of Bluetooth connection request, which realizes the similar function of one for two, and improves the stability and security of the Bluetooth headset connection. Reduced the standby power consumption and connection power consumption of the Bluetooth headset.
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for connecting a Bluetooth headset to a terminal according to the present invention.
  • the connection request type is a preemptive connection request sent by the first terminal
  • the step S20, according to the Bluetooth connection request type, adopting a corresponding Bluetooth connection mode to establish a Bluetooth connection with the first terminal includes:
  • S201 Within a preset period of time when the Bluetooth connection between the Bluetooth headset and the second terminal is disconnected, determine whether a preemptive connection request sent by the first terminal is received again.
  • the preset duration may be set according to actual conditions, for example, 5 seconds, which is not limited in this embodiment.
  • the Bluetooth headset After the Bluetooth headset is connected to a Bluetooth device, set the Bluetooth headset to be undiscoverable and connectable. At this time, other Bluetooth devices with pairing records can initiate a preemptive connection, and the Bluetooth headset will disconnect the previous connection, and then connect In order to achieve the entire process of preempting the connection.
  • the active preemption connection initiated by the Bluetooth device will be initiated by the Bluetooth device of many different systems, such as Android phones and tablets, IOS phones and ipads, Windows laptops, and mac systems. Apple computers and so on.
  • the Bluetooth devices of these different systems will initiate the connection behavior to the Bluetooth headset when they turn on Bluetooth or actively connect.
  • the connection behaviors initiated by the Bluetooth device of different systems are different. For example, Android phones and tablets initiate Bluetooth. The number of connections will be 2-3 times.
  • the mobile phone of the IOS system only initiates a Bluetooth connection, and the laptop computer of the Windows system and the mac system only has one Bluetooth connection.
  • this embodiment will respond specifically to these different Bluetooth connection characteristics when the Bluetooth headset is designed to preempt the connection.
  • the Bluetooth headset when the Bluetooth headset receives a Bluetooth connection request to establish a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnect the Bluetooth headset from the second terminal.
  • the Bluetooth connection of the second terminal within the preset period of time when the Bluetooth connection between the Bluetooth headset and the second terminal is disconnected, it is determined whether the preemption connection request sent by the first terminal is received again, and if the connection request sent by the first terminal is received again.
  • the preemptive connection request sent by the first terminal establishes a Bluetooth connection with the first terminal, which further improves the stability and security of the Bluetooth headset connection, and reduces the standby power consumption and connection power consumption of the Bluetooth headset.
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for connecting a Bluetooth headset and a terminal according to the present invention.
  • the difference between this embodiment and the second embodiment shown in FIG. 2 is that in this embodiment, the steps S201.
  • the method further includes:
  • Step S203 If the preemption connection request sent by the first terminal is not received again, search for the mac address of the terminal that sent the preemption connection request last time.
  • the Bluetooth headset when receiving a preemption connection request sent by a terminal, the Bluetooth headset will store the mac address of all terminals that sent the preemption connection request, including the mac address of the terminal that sent the preemption connection request last time. local.
  • Step S204 Establish a Bluetooth connection with the terminal that sent the preemption connection request last time according to the found mac address of the terminal that sent the preemption connection request last time.
  • the Bluetooth headset when the Bluetooth headset receives a Bluetooth connection request to establish a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnect the Bluetooth headset from the second terminal.
  • the Bluetooth connection of the second terminal within the preset time period of disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal, it is determined whether the preemption connection request sent by the first terminal is received again, and if it is not received again
  • the mac address of the terminal that sent the preemption connection request last time is searched, and the mac address of the terminal that sent the preemption connection request last time is compared with the one that sent the preemption connection request last time.
  • the terminal establishes a Bluetooth connection, which further improves the stability and security of the Bluetooth headset connection, and reduces the standby power consumption and connection power consumption of the Bluetooth headset.
  • FIG. 4 is a schematic flowchart of a fourth embodiment of a method for connecting a Bluetooth headset with a terminal according to the present invention.
  • the Bluetooth The connection request type is an active handover connection request for establishing a Bluetooth connection with the first terminal triggered by the user through the Bluetooth headset.
  • a corresponding Bluetooth connection mode is used to communicate with the first terminal.
  • the steps for a terminal to establish a Bluetooth connection include:
  • Step S205 Establish a Bluetooth connection with the first terminal according to the active handover connection request for establishing a Bluetooth connection with the first terminal triggered by the user through the Bluetooth headset button.
  • the Bluetooth headset After the Bluetooth headset is connected to the Bluetooth device, the Bluetooth headset will locally record the mac address information of the paired Bluetooth device. According to the pairing information recorded locally, the Bluetooth headset can initiate an active switching connection to the Bluetooth device that has been paired.
  • the active switch connection of the Bluetooth headset is mainly realized through the combination button of the Bluetooth headset.
  • the Bluetooth headset when the Bluetooth headset receives a Bluetooth connection request to establish a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnect the Bluetooth headset from the second terminal.
  • the Bluetooth connection of the second terminal establishes a Bluetooth connection with the first terminal according to the active switching connection request for establishing a Bluetooth connection with the first terminal triggered by the user through the Bluetooth headset button, which further improves the stability and security of the Bluetooth headset connection It reduces the standby power consumption and connection power consumption of the Bluetooth headset.
  • connection method between the Bluetooth headset and the terminal of the present invention will be further elaborated below in conjunction with FIG. 1 to FIG. 8.
  • Bluetooth connection between the Bluetooth headset and the Bluetooth device there are two main methods for the Bluetooth connection between the Bluetooth headset and the Bluetooth device of different systems: 1.
  • the Bluetooth device actively initiates a connection to preempt the Bluetooth headset; 2.
  • Bluetooth The headset actively disconnects the currently connected Bluetooth device terminal by pressing the button, and switches to the last paired and connected Bluetooth device terminal.
  • the Bluetooth device initiates a preemptive connection
  • Bluetooth headset After the Bluetooth headset is connected to a Bluetooth device (such as a mobile phone), set the Bluetooth headset to undiscoverable and connectable. At this time, other Bluetooth device terminals with pairing records (such as mobile phones, tablets, computers) can initiate preemptive connections. The headset will disconnect the previous connection, and then connect to the latter, so as to achieve the entire process of preempting the connection. Active preemption connections initiated by Bluetooth devices (such as mobile phones, tablets, computers) will be initiated by Bluetooth devices of many different systems, such as Android phones and tablets, IOS phones and ipads, and Windows laptops. Computers, Mac computers and so on.
  • the Bluetooth device terminals of these different systems will initiate the connection behavior to the Bluetooth headset when they turn on Bluetooth or actively connect, and the connection behavior initiated by the Bluetooth device terminals of different systems will be different.
  • Android phones and tablets can initiate Bluetooth connections 2-3 times
  • Windows and mac laptops have only one Bluetooth connection.
  • the present invention will respond specifically to these different Bluetooth connection characteristics when designing the Bluetooth headset to preempt the connection.
  • the Bluetooth headset has been connected to a Bluetooth device terminal (mobile phone), and other Bluetooth device terminals (no matter what system device) initiates the connection.
  • the Bluetooth headset When another Bluetooth device initiates a preemption connection, the Bluetooth headset records the mac address of the Bluetooth device that initiates the preemption, starts a timer of about 5 seconds, and then disconnects all the underlying connections of the Bluetooth headset, including the original connection and The connection initiated later makes the Bluetooth headset in a connectionless state, avoiding the conflict between the underlying connection and the preemptive connection, and some connection errors occur.
  • the Bluetooth headset disconnects all the underlying Bluetooth connections, the number of preemptions for the Bluetooth device of different systems is different.
  • the Bluetooth device of some systems will initiate the connection to the Bluetooth headset again. At this time, the preempted Bluetooth device will follow The Bluetooth headset is connected, and the preemption connection is successful.
  • the handler processing function of a 5-second timer initiated in step 2 it is judged whether the Bluetooth device terminal that preempts the connected mac address is successfully connected, if not, it initiates the Bluetooth headset to the mac address
  • the active connection of the Bluetooth device ensures that the Bluetooth device that comes to preempt the connection can be connected.
  • the Bluetooth headset initiates an active switch connection
  • the Bluetooth headset After the Bluetooth headset is connected to the Bluetooth device, the Bluetooth headset will locally record the mac address information of the paired Bluetooth device.
  • the Bluetooth headset can initiate an 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 combination button of the Bluetooth headset.
  • the Bluetooth headset realizes the active switching connection function through the combination of buttons. For example, press the volume up and volume down for 5 seconds at the same time, the Bluetooth headset will first disconnect all the connections at the bottom of the Bluetooth headset, and then actively connect back to the Bluetooth device that was paired last time. End, thus realizing the active switch connection function.
  • the method for connecting a Bluetooth headset with a terminal of the present invention adopts the above technical solution, when the Bluetooth headset receives a Bluetooth connection request to establish a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal , Disconnect the Bluetooth connection between the Bluetooth headset and the second terminal, and use the corresponding Bluetooth connection mode to establish a Bluetooth connection with the first terminal according to the type of Bluetooth connection request, so as to realize the similar function of one for two, and improve The stability and security of the Bluetooth headset connection are improved, and the standby power consumption and connection power consumption of the Bluetooth headset are reduced.
  • the present invention also proposes a connection system between a Bluetooth headset and a terminal.
  • the connection system between the Bluetooth headset and the terminal includes a memory, a processor, and a connection program between the Bluetooth headset and the terminal stored in the memory.
  • the processor is called by the memory, the following steps are executed:
  • the Bluetooth headset When the Bluetooth headset receives a Bluetooth connection request for establishing a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal, disconnecting the Bluetooth connection between the Bluetooth headset and the second terminal;
  • the Bluetooth connection request type a corresponding Bluetooth connection mode is adopted to establish a Bluetooth connection with the first terminal.
  • the Bluetooth connection request type includes a preemptive connection request sent by the first terminal and triggered by the user through the Bluetooth headset An active handover connection request for establishing a Bluetooth connection with the first terminal.
  • the Bluetooth connection request type is a preemptive connection request sent by the first terminal, and the processor further executes the following steps when called by the memory:
  • the processor further executes the following steps when called by the memory:
  • a Bluetooth connection is established with the terminal that sent the preemption connection request last time.
  • the connection system of the Bluetooth headset and the terminal of the present invention uses the above technical solution to disconnect the Bluetooth headset when the Bluetooth headset receives a Bluetooth connection request to establish a Bluetooth connection with the first terminal, and the Bluetooth headset is currently in a connected state with the second terminal.
  • the Bluetooth connection between the Bluetooth headset and the second terminal uses a corresponding Bluetooth connection method to establish a Bluetooth connection with the first terminal according to the type of Bluetooth connection request. Stability and security reduce the standby power consumption and connection power consumption of the Bluetooth headset.
  • the present invention also provides a computer-readable storage medium that stores a connection program between a Bluetooth headset and a terminal, and the connection program between the Bluetooth headset and the terminal is implemented when called by a processor. The steps of the method described in the above embodiment will not be repeated here.

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

本发明公开了一种蓝牙耳机与终端的连接方法、系统及存储介质,该方法包括:在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接;根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,所述蓝牙连接请求类型包括由所述第一终端发送的抢占连接请求,和由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求。相对于现有技术,本发明提升了蓝牙耳机连接的稳定性和安全性,降低了蓝牙耳机的待机功耗和连接功耗。

Description

蓝牙耳机与终端的连接方法、系统及存储介质 技术领域
本发明涉及蓝牙耳机技术领域,尤其涉及一种蓝牙耳机与终端的连接方法、系统及存储介质。
背景技术
蓝牙耳机作为时代顺应潮流的产物,处理可以取消电子设备终端(例如手机)3.5mm接口,取消耳机端累赘的耳机线,同时也可以实现一机两用、方便携带、智能语音等功能。
随着人们日常生活需求的不断提升,便携方式的不断优化,传统的耳机在使用上已经难以满足需求,所以随着智能硬件不断的发展,蓝牙耳机开始在市场上变得越来越流行。随着苹果的Airpods的发布,将无限蓝牙耳机市场更是推向了一个高潮。
蓝牙耳机的重要性越来越突出,但是一般的蓝牙耳机都是一对一连接,即一个蓝牙耳机只能连接一个蓝牙移动设备。因为现在蓝牙移动产品越来越多,比如手机、平板、电脑等,一个蓝牙耳机只能单一连接一个设备,这样的体验非常不好。为了满足这样的需求,市场上也出现了一些支持一拖二的蓝牙耳机,即一个蓝牙耳机能够同时连接上两个蓝牙移动设备。但是这种支持一拖二功能的蓝牙耳机也同样存在一些弊端,比如一拖二功能的蓝牙耳机连接性不稳定、安全性不强、待机功耗和连接功耗也相对较高等。
技术问题 技术解决方案
本发明的主要目的在于提出一种蓝牙耳机与终端的连接方法、系统及存储介质,旨在实现一拖二的类似功能,并提升蓝牙耳机连接的稳定性和安全性,降低蓝牙耳机的待机功耗和连接功耗。
为实现上述目的,本发明提供了一种蓝牙耳机与终端的连接方法,其特征在于,所述方法包括以下步骤:
在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接;
根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,所述蓝牙连接请求类型包括由所述第一终端发送的抢占连接请求,和由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求。
本发明进一步的技术方案是,所述蓝牙连接请求类型为由所述第一终端发送的抢占连接请求,所述根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接的步骤包括:
在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求;
若再次接收到由所述第一终端发送的抢占连接请求,则与所述第一终端建立蓝牙连接。
本发明进一步的技术方案是,所述在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求的步骤之后还包括:
若没有再次接收到由所述第一终端发送的抢占连接请求,则查找最后一次发送抢占连接请求的终端的mac地址;
根据查找到的最后一次发送抢占连接请求的终端的mac地址,与最后一次发送抢占连接请求的终端建立蓝牙连接。
本发明进一步的技术方案是,所述方法还包括:
获取最后一次发送抢占连接请求的终端的mac地址。
本发明进一步的技术方案是,所述蓝牙连接请求类型为由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求,所述根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接的步骤包括:
根据用户通过蓝牙耳机按键触发的与所述第一终端建立蓝牙连接的主动切换连接请求,与所述第一终端建立蓝牙连接。
本发明进一步的技术方案是,所述在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求的步骤之后包括:
判断所述蓝牙耳机当前与所述第二终端是否处于连接状态;
若是,则执行断开所述蓝牙耳机与所述第二终端的蓝牙连接的步骤;
若否,则与所述第一终端建立蓝牙连接。
为实现上述目的,本发明还提出一种蓝牙耳机与终端的连接系统,包括存储器、处理器、以及存储在所述存储器上的蓝牙耳机与终端的连接程序,所述处理器被所述存储器调用时执行以下步骤:
在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接;
根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,所述蓝牙连接请求类型包括由所述第一终端发送的抢占连接请求,和由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求。
本发明进一步的技术方案是,所述蓝牙连接请求类型为由所述第一终端发送的抢占连接请求,所述处理器被所述存储器调用时还执行以下步骤:
在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求;
若再次接收到由所述第一终端发送的抢占连接请求,则与所述第一终端建立蓝牙连接。
本发明进一步的技术方案是,所述处理器被所述存储器调用时还执行以下步骤:
若在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,没有再次接收到由所述第一终端发送的抢占连接请求,则查找最后一次发送抢占连接请求的终端的mac地址;
根据查找到的最后一次发送抢占连接请求的终端的mac地址,与最后一次发送抢占连接请求的终端建立蓝牙连接。
为实现上述目的,本发明还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有蓝牙耳机与终端的连接程序,所述蓝牙耳机与终端的连接程序被处理器调用时实现如上所述的方法的步骤。
有益效果
本发明蓝牙耳机与终端的连接方法、系统及存储介质的有益效果是:本发明通过上述技术方案,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接,在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求,若再次接收到由所述第一终端发送的抢占连接请求,则与所述第一终端建立蓝牙连接,进一步提升了蓝牙耳机连接的稳定性和安全性,降低了蓝牙耳机的待机功耗和连接功耗。
附图说明
图1是本发明蓝牙耳机与终端的连接方法第一实施例的流程示意图;
图2是本发明蓝牙耳机与终端的连接方法第二实施例的流程示意图;
图3是本发明蓝牙耳机与终端的连接方法第三实施例的流程示意图;
图4是本发明蓝牙耳机与终端的连接方法第四实施例的流程示意图;
图5是本发明蓝牙耳机与终端的连接方法中蓝牙设备端发起抢占连接的框架图;
图6是本发明蓝牙耳机与终端的连接方法中蓝牙耳机发起主动切换连接的框架图;
图7是本发明蓝牙耳机与终端的连接方法中蓝牙设备端发起抢占连接的流程图;
图8是本发明蓝牙耳机与终端的连接方法中蓝牙耳机发起主动切换连接的流程图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做说明。
本发明的实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
考虑到目前支持一拖二功能的蓝牙耳机存在一些弊端,比如一拖二功能的蓝牙耳机连接性不稳定、安全性不强、待机功耗和连接功耗也相对较高等,本发明提出一种解决方案,能实现一拖二的类似功能,也能避免一拖二功能的一些弊端。
具体地,本发明提出一种蓝牙耳机与终端的连接方法,该终端可以为不同系统的蓝牙设备端,例如Android系统的手机和平板、IOS系统的手机和ipad、Windows系统的笔记本电脑、mac系统的苹果电脑等等。
其中,蓝牙耳机包括有控制器,所述控制器作为蓝牙耳机的核心,主要实现蓝牙耳机的具体功能,例如蓝牙耳机与终端之间的连接、通信、抢占连接、主动切换连接的功能。可以理解的是,本发明各实施例中,蓝牙耳机与终端配对连接之后,都会把每个终端的配对记录、配对信息、mac地址保存在蓝牙耳机本地。蓝牙耳机通过保存在本地的配对记录、配对信息、mac地址,实现终端发起的抢占连接,或者用户通过蓝牙耳机发起的主动切换连接。
本发明所采用的技术方案主要是:在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接;根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,所述蓝牙连接请求类型包括由所述第一终端发送的抢占连接请求,和由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求,由此实现一拖二的类似功能,并提升蓝牙耳机连接的稳定性和安全性,降低蓝牙耳机的待机功耗和连接功耗。
请参照图1,图1是本发明蓝牙耳机与终端的连接方法第一实施例的流程示意图。
如图1所示,本实施例中,该蓝牙耳机与终端的连接方法包括以下步骤:
步骤S10,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接。
步骤S20,根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接。
其中,所述蓝牙连接请求类型包括由所述第一终端发送的抢占连接请求,和由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求。
本实施例中,抢占连接是指,蓝牙耳机和当前终端连接上之后,蓝牙耳机可能被其他已经配对过的终端去连接,该已经配对过的终端来连接时,就会先断开蓝牙耳机之前的连接,然后响应最后一个终端的连接,从而实现抢占连接功能。
需要说明的是,本实施例中,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求的步骤之后可以先判断所述蓝牙耳机与所述第二终端是否处于连接状态,若是,则执行断开所述蓝牙耳机与所述第二终端的蓝牙连接的步骤;若否,则直接与所述第一终端建立蓝牙连接。
本实施例通过上述技术方案,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接,根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,实现了一拖二的类似功能,并提升了蓝牙耳机连接的稳定性和安全性,降低了蓝牙耳机的待机功耗和连接功耗。
请参照图2,图2是本发明蓝牙耳机与终端的连接方法第二实施例的流程示意图,本实施例与图1所示的第一实施例的区别在于,本实施例中,所述蓝牙连接请求类型为由所述第一终端发送的抢占连接请求,所述步骤S20,根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接的步骤包括:
S201,在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求。
其中,所述预设时长可以根据实际情况进行设置,例如5秒,本实施例对此不做限定。
S202,若再次接收到由所述第一终端发送的抢占连接请求,则与所述第一终端建立蓝牙连接。
蓝牙耳机与一个蓝牙设备端连接上后,设置蓝牙耳机为不可发现可以连接状态,这时,其他有配对记录的蓝牙设备端就可以发起抢占连接,蓝牙耳机会断开之前的连接,然后连接后者,从而实现抢占连接的整个过程。需要说明的是,由蓝牙设备端发起的主动抢占连接,会由很多不同系统的蓝牙设备端发起,比如说Android系统的手机和平板、IOS系统的手机和ipad、Windows系统的笔记本电脑、mac系统的苹果电脑等等。这些不同系统的蓝牙设备端在打开蓝牙或者主动连接时,会去发起对蓝牙耳机的连接行为,不同系统的蓝牙设备端发起的连接行为是不一样的,例如,Android系统的手机和平板发起蓝牙连接次数会有2-3次, IOS系统的手机只发起一次蓝牙连接,Windows系统和mac系统的笔记本电脑只有一次蓝牙连接。根据不同系统蓝牙产品的蓝牙连接特性,本实施例在设计蓝牙耳机抢占连接时会针对这些不同的蓝牙连接特性做出具体响应。
本实施例通过上述技术方案,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接,在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求,若再次接收到由所述第一终端发送的抢占连接请求,则与所述第一终端建立蓝牙连接,进一步提升了蓝牙耳机连接的稳定性和安全性,降低了蓝牙耳机的待机功耗和连接功耗。
请参照图3,图3是本发明蓝牙耳机与终端的连接方法第三实施例的流程示意图,本实施例与图2所示的第二实施例的区别在于,本实施例中,所述步骤S201,在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求的步骤之后还包括:
步骤S203,若没有再次接收到由所述第一终端发送的抢占连接请求,则查找最后一次发送抢占连接请求的终端的mac地址。
可以理解的是,本实施例中,在接收到终端发送的抢占连接请求时,蓝牙耳机会将所有发送抢占连接请求的终端的mac地址,包括最后一次发送抢占连接请求的终端的mac地址存储于本地。
步骤S204,根据查找到的最后一次发送抢占连接请求的终端的mac地址,与最后一次发送抢占连接请求的终端建立蓝牙连接。
在查找到最后一次发送抢占连接请求的终端的mac地址后,根据该mac地址与最后一次发送抢占连接请求的终端建立蓝牙连接,由此实现抢占连接功能。
本实施例通过上述技术方案,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接,在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求,若没有再次接收到由所述第一终端发送的抢占连接请求,则查找最后一次发送抢占连接请求的终端的mac地址,根据查找到的最后一次发送抢占连接请求的终端的mac地址,与最后一次发送抢占连接请求的终端建立蓝牙连接,进一步提升了蓝牙耳机连接的稳定性和安全性,降低了蓝牙耳机的待机功耗和连接功耗。
请参照图4,图4是本发明蓝牙耳机与终端的连接方法第四实施例的流程示意图,本实施例与图1所示的第一实施例的区别在于,本实施例中,所述蓝牙连接请求类型为由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求,所述步骤S20,根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接的步骤包括:
步骤S205,根据用户通过蓝牙耳机按键触发的与所述第一终端建立蓝牙连接的主动切换连接请求,与所述第一终端建立蓝牙连接。
蓝牙耳机与蓝牙设备端连接后,蓝牙耳机本地都会把连接配对过的蓝牙设备端的mac地址的信息给记录下来。蓝牙耳机根据本地记录的配对信息可以对已经配对过的蓝牙设备端都可以发起主动切换连接。本实施例主要通过蓝牙耳机的组合按键来实现蓝牙耳机的主动切换连接。
本实施例通过上述技术方案,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接,根据用户通过蓝牙耳机按键触发的与所述第一终端建立蓝牙连接的主动切换连接请求,与所述第一终端建立蓝牙连接,进一步提升了蓝牙耳机连接的稳定性和安全性,降低了蓝牙耳机的待机功耗和连接功耗。
以下结合图1至图8对本发明蓝牙耳机与终端的连接方法进行进一步的详细阐述。
本发明提出的蓝牙耳机与终端的连接方法实施例中,蓝牙耳机与不同系统的蓝牙设备端的蓝牙连接方法,主要有两种:1、蓝牙设备端主动发起连接,来抢占蓝牙耳机;2、蓝牙耳机通过按键主动断开当前连接的蓝牙设备端,切换上一个配对连接过的蓝牙设备端。
一、蓝牙设备端发起抢占连接
蓝牙耳机与一个蓝牙设备端(比如手机)连接上后,设置蓝牙耳机为不可发现可以连接状态,这时其他有配对记录的蓝牙设备端(例如手机、平板、电脑)就可以发起抢占连接,蓝牙耳机会断开之前的连接,然后连接后者,从而实现抢占连接的整个过程。由蓝牙设备端(例如手机、平板、电脑)发起的主动抢占连接,会由很多种不同系统的蓝牙设备端发起,比如说Android系统的手机和平板、IOS系统的手机和ipad、Windows系统的笔记本电脑、mac系统的苹果电脑等等。这些不同系统的蓝牙设备端在打开蓝牙或者主动连接时,会去发起对蓝牙耳机的连接行为,不同系统的蓝牙设备端发起的连接行为会不一样。例如,Android系统的手机和平板发起蓝牙连接次数会有2-3次, IOS系统的手机只发起一次蓝牙连接,Windows系统和mac系统的笔记本电脑只有一次蓝牙连接。根据不同系统蓝牙产品的蓝牙连接特性,本发明在设计蓝牙耳机抢占连接时会针对这些不同的蓝牙连接特性做出具体响应。
具体的实现原理和步骤如下:
1、蓝牙耳机已经与一个蓝牙设备端(手机)连接,其他蓝牙设备端(不管什么系统的设备)来发起连接。
2、其他蓝牙设备端发起抢占连接时,蓝牙耳机记录当前发起抢占的蓝牙设备端的mac地址,并开启一个5秒左右的定时器,然后断开蓝牙耳机的底层的所有连接,包括原来的连接和后面发起的连接,使蓝牙耳机处于一个无连接状态,避免底层的连接和抢占连接的冲突,出现一些连接错误的情况。
3、在蓝牙耳机断开底层所有的蓝牙连接之后,不同系统的蓝牙设备端抢占的次数不一样,有些系统的蓝牙设备端会再次发起对蓝牙耳机的连接,这个时候抢占的蓝牙设备就会跟蓝牙耳机连接上,抢占连接成功。
4、在蓝牙耳机断开底层所有的蓝牙连接之后,不同系统的蓝牙设备端抢占的次数不一样,有些系统的蓝牙设备(例如IOS系统、mac系统等)不会再发起抢占连接,这个时候如果不增加措施的话抢占连接就会失败,导致蓝牙耳机没有任何连接。因此,在步骤2中发起的一个5秒钟的定时器的handler处理函数中,判断记录的抢占连接的mac地址的蓝牙设备端是否有连接成功,如果没有,就发起蓝牙耳机对该mac地址的蓝牙设备的主动连接,确保来抢占连接的蓝牙设备一定能连接上。
二、蓝牙耳机发起主动切换连接
蓝牙耳机与蓝牙设备端连接之后,蓝牙耳机本地都会把连接配对过的蓝牙设备端的mac地址的信息给记录下来。蓝牙耳机根据本地记录的配对信息可以对已经配对过的蓝牙设备端(不管是什么系统的设备)都可以发起主动连接。本发明主要通过蓝牙耳机的组合按键来实现蓝牙耳机的主动切换连接。
具体的实现原理和步骤如下:
1、首先判断蓝牙耳机的本地配对记录是否有两个以上,同时蓝牙耳机已经与一个蓝牙设备端已经连接。
2、蓝牙耳机通过组合按键实现主动切换连接功能,如同时按下音量加和音量减5秒钟,蓝牙耳机先断开蓝牙耳机底层的所有连接,然后主动回连上一次连接配对过的蓝牙设备端,由此实现主动切换连接功能。
需要说明的是,主动切换回连的方式是跟蓝牙移动设备的系统没有什么关系和影响。
综上所述,本发明蓝牙耳机与终端的连接方法通过上述技术方案,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接,根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,实现了一拖二的类似功能,并提升了蓝牙耳机连接的稳定性和安全性,降低了蓝牙耳机的待机功耗和连接功耗。
为实现上述目的,本发明还提出一种蓝牙耳机与终端的连接系统,该蓝牙耳机与终端的连接系统包括存储器、处理器、以及存储在所述存储器上的蓝牙耳机与终端的连接程序,所述处理器被所述存储器调用时执行以下步骤:
在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接;
根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,所述蓝牙连接请求类型包括由所述第一终端发送的抢占连接请求,和由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求。
优选地,所述蓝牙连接请求类型为由所述第一终端发送的抢占连接请求,所述处理器被所述存储器调用时还执行以下步骤:
在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求;
若再次接收到由所述第一终端发送的抢占连接请求,则与所述第一终端建立蓝牙连接。
优选地,所述处理器被所述存储器调用时还执行以下步骤:
若在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,没有再次接收到由所述第一终端发送的抢占连接请求,则查找最后一次发送抢占连接请求的终端的mac地址;
根据查找到的最后一次发送抢占连接请求的终端的mac地址,与最后一次发送抢占连接请求的终端建立蓝牙连接。
本发明蓝牙耳机与终端的连接系统通过上述技术方案,在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接,根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,实现了一拖二的类似功能,并提升了蓝牙耳机连接的稳定性和安全性,降低了蓝牙耳机的待机功耗和连接功耗。
为实现上述目的,本发明还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有蓝牙耳机与终端的连接程序,所述蓝牙耳机与终端的连接程序被处理器调用时实现如上实施例所述的方法的步骤,这里不再赘述。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (10)

  1. 一种蓝牙耳机与终端的连接方法,其特征在于,所述方法包括以下步骤:
    在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接;
    根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,所述蓝牙连接请求类型包括由所述第一终端发送的抢占连接请求,和由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求。
  2. 根据权利要求1所述的蓝牙耳机与终端的连接方法,其特征在于,所述蓝牙连接请求类型为由所述第一终端发送的抢占连接请求,所述根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接的步骤包括:
    在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求;
    若再次接收到由所述第一终端发送的抢占连接请求,则与所述第一终端建立蓝牙连接。
  3. 根据权利要求2所述的蓝牙耳机与终端的连接方法,其特征在于,所述在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求的步骤之后还包括:
    若没有再次接收到由所述第一终端发送的抢占连接请求,则查找最后一次发送抢占连接请求的终端的mac地址;
    根据查找到的最后一次发送抢占连接请求的终端的mac地址,与最后一次发送抢占连接请求的终端建立蓝牙连接。
  4. 根据权利要求3所述的蓝牙耳机与终端的连接方法,其特征在于,所述方法还包括:
    获取最后一次发送抢占连接请求的终端的mac地址。
  5. 根据权利要求1所述的蓝牙耳机与终端的连接方法,其特征在于,所述蓝牙连接请求类型为由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求,所述根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接的步骤包括:
    根据用户通过蓝牙耳机按键触发的与所述第一终端建立蓝牙连接的主动切换连接请求,与所述第一终端建立蓝牙连接。
  6. 根据权利要求1至5任意一项所述的蓝牙耳机与终端的连接方法,其特征在于,所述在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求的步骤之后包括:
    判断所述蓝牙耳机当前与所述第二终端是否处于连接状态;
    若是,则执行断开所述蓝牙耳机与所述第二终端的蓝牙连接的步骤;
    若否,则与所述第一终端建立蓝牙连接。
  7. 一种蓝牙耳机与终端的连接系统,其特征在于,包括存储器、处理器、以及存储在所述存储器上的蓝牙耳机与终端的连接程序,所述处理器被所述存储器调用时执行以下步骤:
    在蓝牙耳机接收到与第一终端建立蓝牙连接的蓝牙连接请求,且所述蓝牙耳机当前与第二终端处于连接状态时,断开所述蓝牙耳机与所述第二终端的蓝牙连接;
    根据蓝牙连接请求类型,采用对应的蓝牙连接方式与所述第一终端建立蓝牙连接,所述蓝牙连接请求类型包括由所述第一终端发送的抢占连接请求,和由用户通过所述蓝牙耳机触发的与所述第一终端建立蓝牙连接的主动切换连接请求。
  8. 根据权利要求7所述的蓝牙耳机与终端的连接系统,其特征在于,所述蓝牙连接请求类型为由所述第一终端发送的抢占连接请求,所述处理器被所述存储器调用时还执行以下步骤:
    在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,判断是否再次接收到由所述第一终端发送的抢占连接请求;
    若再次接收到由所述第一终端发送的抢占连接请求,则与所述第一终端建立蓝牙连接。
  9. 根据权利要求8所述的蓝牙耳机与终端的连接系统,其特征在于,所述处理器被所述存储器调用时还执行以下步骤:
    若在断开所述蓝牙耳机与所述第二终端的蓝牙连接的预设时长内,没有再次接收到由所述第一终端发送的抢占连接请求,则查找最后一次发送抢占连接请求的终端的mac地址;
    根据查找到的最后一次发送抢占连接请求的终端的mac地址,与最后一次发送抢占连接请求的终端建立蓝牙连接。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有蓝牙耳机与终端的连接程序,所述蓝牙耳机与终端的连接程序被处理器调用时实现如权利要求1至6中任意一项所述的方法的步骤。
     
PCT/CN2020/101655 2020-02-26 2020-07-13 蓝牙耳机与终端的连接方法、系统及存储介质 WO2021169147A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010121738.9 2020-02-26
CN202010121738.9A CN111246441B (zh) 2020-02-26 2020-02-26 蓝牙耳机与终端的连接方法、系统及存储介质

Publications (1)

Publication Number Publication Date
WO2021169147A1 true WO2021169147A1 (zh) 2021-09-02

Family

ID=70865818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/101655 WO2021169147A1 (zh) 2020-02-26 2020-07-13 蓝牙耳机与终端的连接方法、系统及存储介质

Country Status (2)

Country Link
CN (1) CN111246441B (zh)
WO (1) WO2021169147A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766477A (zh) * 2021-09-23 2021-12-07 Oppo广东移动通信有限公司 设备连接方法、装置、电子设备及计算机可读介质

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246441B (zh) * 2020-02-26 2021-08-24 深圳市岍丞技术有限公司 蓝牙耳机与终端的连接方法、系统及存储介质
CN111447602B (zh) * 2020-06-17 2020-09-29 成都极米科技股份有限公司 蓝牙设备及其蓝牙抢占方法和装置、计算机可读存储介质
CN112004173B (zh) * 2020-08-27 2023-06-27 努比亚技术有限公司 蓝牙耳机的切换方法、移动终端及计算机可读存储介质
CN114173309A (zh) * 2020-09-10 2022-03-11 华为技术有限公司 音频控制系统
CN112272373B (zh) * 2020-10-14 2022-03-25 海信视像科技股份有限公司 一种蓝牙设备类型切换方法及显示设备
CN115776662A (zh) * 2021-09-08 2023-03-10 Oppo广东移动通信有限公司 蓝牙连接方法、装置、耳机设备及计算机可读存储介质
CN113873589A (zh) * 2021-09-18 2021-12-31 深圳市爱都科技有限公司 一种蓝牙连接切换方法、蓝牙耳机及计算机可读存储介质
CN114125803A (zh) * 2021-11-30 2022-03-01 Oppo广东移动通信有限公司 设备连接切换方法、装置、电子设备和计算机可读存储介质
CN114245362B (zh) * 2022-02-25 2022-11-15 荣耀终端有限公司 设备回连方法和蓝牙外设

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075891A (zh) * 2009-11-24 2011-05-25 中兴通讯股份有限公司 一种基于个人网络的电话接听方法及系统
CN105302635A (zh) * 2014-07-17 2016-02-03 联想(北京)有限公司 一种切换方法及电子设备
US20170289739A1 (en) * 2016-04-05 2017-10-05 Plantronics, Inc. Connection Switching for Bluetooth Headsets
CN108924706A (zh) * 2018-06-26 2018-11-30 努比亚技术有限公司 蓝牙耳机切换控制方法、蓝牙耳机及计算机可读存储介质
CN110167194A (zh) * 2019-05-20 2019-08-23 安徽华米信息科技有限公司 设备连接方法、装置、蓝牙耳机及系统
CN110191442A (zh) * 2019-04-18 2019-08-30 华为技术有限公司 一种蓝牙连接方法、设备及系统
CN111225346A (zh) * 2019-11-28 2020-06-02 深圳传音控股股份有限公司 无线耳机的连接切换方法、无线耳机及存储介质
CN111246441A (zh) * 2020-02-26 2020-06-05 深圳市岍丞技术有限公司 蓝牙耳机与终端的连接方法、系统及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340212A (zh) * 2007-07-03 2009-01-07 艾威梯软件技术(北京)有限公司 按键触发蓝牙连接设备自动切换的方法、设备和系统
CN101835276B (zh) * 2010-05-12 2013-12-11 中兴通讯股份有限公司 一种移动数据终端拨号连接的方法及装置
CN103476030B (zh) * 2013-08-29 2016-12-28 小米科技有限责任公司 移动终端连接网络的方法、移动终端与终端设备
CN103475817B (zh) * 2013-09-03 2017-05-24 深圳一电科技有限公司 遥控设备与拍摄设备的配对方法
CN104967971B (zh) * 2015-06-26 2018-04-27 飞天诚信科技股份有限公司 一种实现Android系统下蓝牙自动回连的方法
CN106454697A (zh) * 2016-08-19 2017-02-22 深圳市元征科技股份有限公司 蓝牙的切换方法及装置
US10278217B2 (en) * 2016-11-29 2019-04-30 Pacesetter, Inc. Managing dynamic connection intervals for implantable and external devices
CN107708117A (zh) * 2017-10-27 2018-02-16 张毅昆 一种网络接入认证方法及装置
WO2019235892A1 (ko) * 2018-06-07 2019-12-12 엘지전자 주식회사 블루투스 기술을 이용하여 디바이스의 전력을 제어하기 위한 방법 및 장치

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075891A (zh) * 2009-11-24 2011-05-25 中兴通讯股份有限公司 一种基于个人网络的电话接听方法及系统
CN105302635A (zh) * 2014-07-17 2016-02-03 联想(北京)有限公司 一种切换方法及电子设备
US20170289739A1 (en) * 2016-04-05 2017-10-05 Plantronics, Inc. Connection Switching for Bluetooth Headsets
CN108924706A (zh) * 2018-06-26 2018-11-30 努比亚技术有限公司 蓝牙耳机切换控制方法、蓝牙耳机及计算机可读存储介质
CN110191442A (zh) * 2019-04-18 2019-08-30 华为技术有限公司 一种蓝牙连接方法、设备及系统
CN110167194A (zh) * 2019-05-20 2019-08-23 安徽华米信息科技有限公司 设备连接方法、装置、蓝牙耳机及系统
CN111225346A (zh) * 2019-11-28 2020-06-02 深圳传音控股股份有限公司 无线耳机的连接切换方法、无线耳机及存储介质
CN111246441A (zh) * 2020-02-26 2020-06-05 深圳市岍丞技术有限公司 蓝牙耳机与终端的连接方法、系统及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766477A (zh) * 2021-09-23 2021-12-07 Oppo广东移动通信有限公司 设备连接方法、装置、电子设备及计算机可读介质

Also Published As

Publication number Publication date
CN111246441A (zh) 2020-06-05
CN111246441B (zh) 2021-08-24

Similar Documents

Publication Publication Date Title
WO2021169147A1 (zh) 蓝牙耳机与终端的连接方法、系统及存储介质
RU2482606C2 (ru) Способы и устройства для автоматического множественного сопряжения bluetooth устройств
US20150201440A1 (en) BLUETOOTH Device Connection Method and Device
WO2019192586A1 (zh) 数据传输方法、装置、存储介质及电子设备
EP3537734B1 (en) Method and device for connecting a bluetooth device
CN107770759B (zh) 蓝牙语音链路的建立方法、装置、存储介质及移动终端
US20080076389A1 (en) Automatic pairing method for bluetooth®-enabled mobile terminal
WO2012142794A1 (zh) 蓝牙配件配对蓝牙设备的方法及蓝牙配件
US10542405B2 (en) Bluetooth profile fast connect
WO2011017875A1 (zh) 一种终端控制蓝牙耳机有序连接的方法及系统
EP3955694B1 (en) Method and apparatus for back-connecting bluetooth device, terminal and computer-readable storage medium
WO2020019843A1 (zh) 麦克风堵孔检测方法及相关产品
US8588753B2 (en) Apparatus and method in a wireless device for reestablishing a call
WO2020103089A1 (zh) 一种双卡的通信方法及相关产品
WO2015192310A1 (zh) 无线连接的切换方法,无线终端及其系统
WO2021213381A1 (zh) 寻呼响应方法、终端及网络设备
CN112312368A (zh) 数据处理方法、装置、设备和存储介质
WO2020133565A1 (zh) 寻找遥控设备的方法及装置、存储介质、终端设备、遥控设备
WO2021239032A1 (zh) 蓝牙协议连接方法、装置、存储介质及相关设备
CN114363876A (zh) 连接建立方法、装置、设备、存储介质及程序产品
WO2021120381A1 (zh) 通话网络的切换方法、装置及存储介质
CN107318155B (zh) 一种通话控制方法、终端和计算机可读存储介质
WO2022048488A1 (zh) 通信连接建立方法、蓝牙耳机及可读存储介质
WO2024001134A1 (zh) 音频设备的连接方法、装置、存储介质及设备
CN111031433A (zh) 无线耳机及其交互方法、交互系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20921048

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27/01/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20921048

Country of ref document: EP

Kind code of ref document: A1