CN116684856A - Bluetooth connection method and device - Google Patents
Bluetooth connection method and device Download PDFInfo
- Publication number
- CN116684856A CN116684856A CN202310749482.XA CN202310749482A CN116684856A CN 116684856 A CN116684856 A CN 116684856A CN 202310749482 A CN202310749482 A CN 202310749482A CN 116684856 A CN116684856 A CN 116684856A
- Authority
- CN
- China
- Prior art keywords
- wearable device
- audio
- bluetooth headset
- audio data
- bluetooth
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- 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
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- 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)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及计算机技术领域,尤其涉及一种蓝牙连接方法及装置。The embodiment of the present invention relates to the field of computer technology, and in particular to a Bluetooth connection method and device.
背景技术Background technique
随着电子技术的不断发展,越来越多的用户开始使用智能手表、智能手环等可穿戴设备,但可穿戴设备与蓝牙耳机为一体的可穿戴设备少之又少,这类可穿戴设备中的蓝牙耳机可以连接可穿戴设备,也可以连接移动设备,蓝牙耳机分别与可穿戴设备以及移动设备进行交互是一个值得研究的问题。With the continuous development of electronic technology, more and more users start to use wearable devices such as smart watches and smart bracelets, but there are very few wearable devices that integrate wearable devices with Bluetooth headsets. The Bluetooth headset in can be connected to wearable devices or mobile devices. The interaction between Bluetooth headsets and wearable devices and mobile devices is a problem worth studying.
例如在手表与蓝牙耳机二合一的可穿戴设备中,蓝牙耳机可以播放智能手表的音频数据或者播放手机的音频数据,但是,蓝牙耳机播放智能手表与手机二者中的任一个设备的音频时,如需要蓝牙耳机播放另一个设备的音频,需要手动将前一个设备的音频通道断开,再手动连接另一个设备的音频通道,从而实现播放另一个设备的音频,所以现有技术中无法便捷、高效完成音频通道切换。For example, in a wearable device that combines a watch and a Bluetooth headset, the Bluetooth headset can play the audio data of the smart watch or the audio data of the mobile phone. , if you need a Bluetooth headset to play the audio of another device, you need to manually disconnect the audio channel of the previous device, and then manually connect the audio channel of another device, so as to play the audio of another device, so it is not convenient in the prior art , Efficiently complete audio channel switching.
发明内容Contents of the invention
本发明实施例提供一种蓝牙连接方法及装置,用以实现在具有蓝牙耳机的可穿戴设备中,蓝牙耳机可以便捷、高效地完成所连接的双音频通道的切换。Embodiments of the present invention provide a Bluetooth connection method and device, which are used to realize that in a wearable device with a Bluetooth headset, the Bluetooth headset can conveniently and efficiently complete the switching of the connected dual audio channels.
第一方面,本发明实施例提供一种蓝牙连接方法,该方法应用于具有蓝牙耳机的可穿戴设备,该方法包括:In the first aspect, an embodiment of the present invention provides a Bluetooth connection method, the method is applied to a wearable device with a Bluetooth headset, and the method includes:
所述可穿戴设备与所述蓝牙耳机通过第一音频通道建立第一蓝牙连接;The wearable device establishes a first Bluetooth connection with the Bluetooth headset through a first audio channel;
当所述蓝牙耳机通过所述第一音频通道播放所述可穿戴设备的第一音频数据时,所述可穿戴设备确定移动设备具有第二音频数据的播放需求;When the Bluetooth headset plays the first audio data of the wearable device through the first audio channel, the wearable device determines that the mobile device has a playback requirement for the second audio data;
若所述第二音频数据的播放优先级大于所述第一音频数据的播放优先级,则所述可穿戴设备向所述蓝牙耳机发送第一控制消息;其中,所述第一控制消息用于通知所述蓝牙耳机切换至通过第二音频通道与移动设备建立第二蓝牙连接;If the playback priority of the second audio data is greater than the playback priority of the first audio data, the wearable device sends a first control message to the Bluetooth headset; wherein the first control message is used for Notifying the Bluetooth headset to switch to establish a second Bluetooth connection with the mobile device through a second audio channel;
所述可穿戴设备向所述移动设备发送第二控制消息;其中,所述第二控制消息用于通知所述移动设备向所述蓝牙耳机发送所述第二音频数据。The wearable device sends a second control message to the mobile device; wherein the second control message is used to notify the mobile device to send the second audio data to the Bluetooth headset.
通过上述方式,在蓝牙耳机正在通过第一音频通道与可穿戴设备连接时,移动设备有播放音频的需求,可穿戴设备可以通知蓝牙耳机切换连接的音频通道,蓝牙耳机可以便捷、高效地完成所连接的双音频通道的切换,从而实现播放移动设备的音频。Through the above method, when the Bluetooth headset is connected to the wearable device through the first audio channel, and the mobile device needs to play audio, the wearable device can notify the Bluetooth headset to switch the connected audio channel, and the Bluetooth headset can complete all tasks conveniently and efficiently. The switching of the connected dual audio channels, so as to realize the audio playback of the mobile device.
可选地,该方法还包括:若所述第二音频数据的播放优先级不大于所述第一音频数据的播放优先级,则所述可穿戴设备继续通过所述蓝牙耳机播放所述第一音频数据。Optionally, the method further includes: if the playback priority of the second audio data is not greater than the playback priority of the first audio data, the wearable device continues to play the first audio data through the Bluetooth headset. audio data.
可选地,该方法还包括:Optionally, the method also includes:
当所述蓝牙耳机播放所述移动设备的第二音频数据时,所述可穿戴设备确定自身具有第三音频数据的播放需求;When the Bluetooth headset plays the second audio data of the mobile device, the wearable device determines that it has a playback requirement for the third audio data;
若所述第三音频数据的播放优先级大于所述第二音频数据的播放优先级,则所述可穿戴设备向所述蓝牙耳机发送第三控制消息,所述第三控制消息用于通知所述蓝牙耳机切换至通过所述第一音频通道与可穿戴设备建立所述第一蓝牙连接;If the playback priority of the third audio data is greater than the playback priority of the second audio data, the wearable device sends a third control message to the Bluetooth headset, and the third control message is used to notify the The Bluetooth headset is switched to establish the first Bluetooth connection with the wearable device through the first audio channel;
所述可穿戴设备与所述蓝牙耳机通过所述第一音频通道建立所述第一蓝牙连接;The wearable device and the Bluetooth headset establish the first Bluetooth connection through the first audio channel;
所述可穿戴设备向所述蓝牙耳机发送所述第三音频数据。The wearable device sends the third audio data to the Bluetooth headset.
通过上述方式,在蓝牙耳机正在通过第二音频通道与移动设备连接时,可穿戴设备有播放音频的需求,可穿戴设备可以通知蓝牙耳机切换连接的音频通道,蓝牙耳机可以便捷、高效地完成所连接的双音频通道的切换,从而实现播放可穿戴设备的音频。Through the above method, when the Bluetooth headset is connected to the mobile device through the second audio channel, and the wearable device needs to play audio, the wearable device can notify the Bluetooth headset to switch the connected audio channel, and the Bluetooth headset can complete all tasks conveniently and efficiently. The switching of the connected dual audio channels, so as to realize the audio playback of the wearable device.
可选地,该方法还包括:所述可穿戴设备根据预设的音频优先级列表,确定任意两个音频数据的播放优先级的大小。通过该方式,可穿戴设备可以自动确定任意两个音频数据的播放优先级的大小,从而完成自动切换音频通道。Optionally, the method further includes: the wearable device determines the play priority of any two audio data according to a preset audio priority list. In this way, the wearable device can automatically determine the playback priority of any two audio data, thereby completing automatic switching of audio channels.
可选地,该方法还包括:通过用户操作调整所述音频优先级列表中的音频类型和/或音频类型的顺序。如此,用户可以设置音频优先级列表,从而提升用户体验。Optionally, the method further includes: adjusting the audio types and/or the order of the audio types in the audio priority list through a user operation. In this way, the user can set an audio priority list, thereby improving user experience.
可选地,所述音频优先级列表中各个音频类型的播放优先级从大到小的顺序为:通话;社交聊天软件中的录音或语音;视频音频;音乐;可穿戴设备的运动提示音;系统提示音;其它音频。Optionally, the order of playback priority of each audio type in the audio priority list from large to small is: call; recording or voice in social chat software; video audio; music; motion prompt sound of wearable device; System prompt tone; other audio.
第二方面,本发明实施例提供一种蓝牙连接方法,该方法应用于可穿戴设备配套的蓝牙耳机,所述方法包括:In the second aspect, an embodiment of the present invention provides a Bluetooth connection method, which is applied to a Bluetooth headset matched with a wearable device, and the method includes:
所述蓝牙耳机与所述可穿戴设备通过第一音频通道建立第一蓝牙连接;The Bluetooth headset establishes a first Bluetooth connection with the wearable device through a first audio channel;
当所述蓝牙耳机播放所述可穿戴设备的第一音频数据时,接收来自所述可穿戴设备的第一控制消息;其中,所述第一控制消息用于通知所述蓝牙耳机切换至通过第二音频通道与移动设备建立第二蓝牙连接;When the Bluetooth headset plays the first audio data of the wearable device, it receives a first control message from the wearable device; wherein, the first control message is used to notify the Bluetooth headset to switch to the The second audio channel establishes a second Bluetooth connection with the mobile device;
所述蓝牙耳机断开与所述可穿戴设备之间的第一蓝牙连接,并与所述移动设备通过所述第二音频通道建立所述第二蓝牙连接;The Bluetooth headset disconnects the first Bluetooth connection with the wearable device, and establishes the second Bluetooth connection with the mobile device through the second audio channel;
所述蓝牙耳机接收来自所述移动设备的第二音频数据,并播放所述第二音频数据。The Bluetooth headset receives the second audio data from the mobile device, and plays the second audio data.
可选地,该方法还包括:Optionally, the method also includes:
当所述蓝牙耳机播放所述移动设备的第二音频数据时,接收来自所述可穿戴设备的第三控制消息,所述第三控制消息用于通知所述蓝牙耳机切换至通过所述第一音频通道与可穿戴设备建立所述第一蓝牙连接;When the Bluetooth headset plays the second audio data of the mobile device, it receives a third control message from the wearable device, and the third control message is used to notify the Bluetooth headset to switch to the first The audio channel establishes the first Bluetooth connection with the wearable device;
所述蓝牙耳机断开与所述移动设备之间的第二蓝牙连接,并与所述可穿戴设备通过第一音频通道建立第一蓝牙连接;The Bluetooth headset disconnects the second Bluetooth connection with the mobile device, and establishes a first Bluetooth connection with the wearable device through a first audio channel;
所述蓝牙耳机接收来自所述可穿戴设备的第三音频数据,并播放所述第三音频数据。The Bluetooth headset receives third audio data from the wearable device, and plays the third audio data.
第三方面,本发明实施例提供一种具有蓝牙耳机的可穿戴设备,包括:In a third aspect, an embodiment of the present invention provides a wearable device with a Bluetooth headset, including:
蓝牙模块,用于与蓝牙耳机通过第一音频通道建立第一蓝牙连接;A bluetooth module, configured to establish a first bluetooth connection with the bluetooth headset through the first audio channel;
处理模块,用于当蓝牙耳机通过第一音频通道播放可穿戴设备的第一音频数据时,确定移动设备具有第二音频数据的播放需求;A processing module, configured to determine that the mobile device has a playback requirement for the second audio data when the Bluetooth headset plays the first audio data of the wearable device through the first audio channel;
通信模块,用于若第二音频数据的播放优先级大于第一音频数据的播放优先级,则向蓝牙耳机发送第一控制消息;其中,第一控制消息用于通知蓝牙耳机切换至通过第二音频通道与移动设备建立第二蓝牙连接;The communication module is used to send the first control message to the Bluetooth headset if the playback priority of the second audio data is greater than the playback priority of the first audio data; wherein, the first control message is used to notify the Bluetooth headset to switch to the second The audio channel establishes a second Bluetooth connection with the mobile device;
通信模块,还用于向移动设备发送第二控制消息;其中,第二控制消息用于通知移动设备向蓝牙耳机发送第二音频数据。The communication module is further configured to send a second control message to the mobile device; wherein, the second control message is used to notify the mobile device to send the second audio data to the Bluetooth headset.
第四方面,本发明实施例提供一种蓝牙耳机,该蓝牙耳机与可穿戴设备配套,蓝牙耳机包括:In the fourth aspect, the embodiment of the present invention provides a Bluetooth headset, the Bluetooth headset is matched with a wearable device, and the Bluetooth headset includes:
蓝牙模块,用于与可穿戴设备通过第一音频通道建立第一蓝牙连接;A bluetooth module, configured to establish a first bluetooth connection with the wearable device through the first audio channel;
通信模块,用于当蓝牙耳机播放可穿戴设备的第一音频数据时,接收来自可穿戴设备的第一控制消息;其中,第一控制消息用于通知蓝牙耳机切换至通过第二音频通道与移动设备建立第二蓝牙连接;The communication module is used to receive a first control message from the wearable device when the Bluetooth headset plays the first audio data of the wearable device; wherein, the first control message is used to notify the Bluetooth headset to switch to the second audio channel to communicate with the mobile device. The device establishes a second Bluetooth connection;
蓝牙模块,还用于断开与可穿戴设备之间的第一蓝牙连接,并与移动设备通过第二音频通道建立第二蓝牙连接;The Bluetooth module is also used to disconnect the first Bluetooth connection with the wearable device, and establish a second Bluetooth connection with the mobile device through the second audio channel;
通信模块,还用于接收来自移动设备的第二音频数据;The communication module is also used for receiving the second audio data from the mobile device;
播放模块,用于并播放第二音频数据。The playing module is used to play the second audio data.
第五方面,本发明实施例还提供一种具有蓝牙耳机的可穿戴设备,包括:In the fifth aspect, the embodiment of the present invention also provides a wearable device with a Bluetooth headset, including:
存储器,用于存储程序指令;memory for storing program instructions;
处理器,用于调用所述存储器中存储的程序指令,按照获得的程序指令执行上述第一方面或者第一方面中任一可选的方法。The processor is configured to call the program instructions stored in the memory, and execute the above first aspect or any optional method in the first aspect according to the obtained program instructions.
第六方面,本发明实施例还提供一种具有蓝牙耳机的可穿戴设备,包括:In the sixth aspect, the embodiment of the present invention also provides a wearable device with a Bluetooth headset, including:
存储器,用于存储程序指令;memory for storing program instructions;
处理器,用于调用所述存储器中存储的程序指令,按照获得的程序指令执行上述第二方面或者第二方面中任一可选的方法。The processor is configured to call the program instructions stored in the memory, and execute the second aspect or any optional method in the second aspect according to the obtained program instructions.
第七方面,本发明实施例还提供一种计算机可读非易失性存储介质,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行上述第一方面或者第一方面中任一可选的方法,或者,执行上述第二方面或者第二方面中任一可选的方法。In the seventh aspect, the embodiment of the present invention also provides a computer-readable non-volatile storage medium, including computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned first aspect or Any optional method in the first aspect, or, perform the above-mentioned second aspect or any optional method in the second aspect.
上述第二方面至第七方面的有益效果可参见上述第一方面的相关描述。For the beneficial effects of the above-mentioned second aspect to the seventh aspect, reference may be made to the relevant description of the above-mentioned first aspect.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为本发明实施例提供的一种系统架构示意图;FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present invention;
图2为本发明实施例提供的一种蓝牙连接方法的流程示意图;FIG. 2 is a schematic flowchart of a Bluetooth connection method provided by an embodiment of the present invention;
图3为本发明实施例提供的一种蓝牙连接方法的流程示意图;FIG. 3 is a schematic flowchart of a Bluetooth connection method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种具有蓝牙耳机的可穿戴设备的结构示意图;FIG. 4 is a schematic structural diagram of a wearable device with a Bluetooth headset provided by an embodiment of the present invention;
图5为本发明实施例提供的一种蓝牙耳机的结构示意图。FIG. 5 is a schematic structural diagram of a bluetooth headset provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
图1示例性的示出了本发明实施例提供的一种系统架构示意图。FIG. 1 exemplarily shows a schematic diagram of a system architecture provided by an embodiment of the present invention.
该系统架构包括具有蓝牙耳机的可穿戴设备以及至少一个移动设备,如图1所示,示例性示出了具有蓝牙耳机101的可穿戴设备102、以及移动设备103,本发明对移动设备103的数量和具体形态不作限定。The system architecture includes a wearable device with a Bluetooth headset and at least one mobile device. As shown in FIG. 1 , a wearable device 102 with a Bluetooth headset 101 and a mobile device 103 are exemplary shown. The quantity and specific form are not limited.
蓝牙耳机101包括左耳耳机和右耳耳机两个耳机。蓝牙耳机101可以是入耳式无线耳机、挂耳式无线耳机等,本申请实施例对蓝牙耳机101的形态不作具体限定。The Bluetooth earphone 101 includes two earphones, a left-ear earphone and a right-ear earphone. The Bluetooth headset 101 may be an in-ear wireless headset, an ear-hook wireless headset, etc. The embodiment of the present application does not specifically limit the form of the Bluetooth headset 101 .
蓝牙耳机101在不使用时可以放置于可穿戴设备102中;蓝牙耳机101支持语音通话功能和播放媒体音频功能,在用户使用蓝牙耳机101时可以通过第一音频通道与可穿戴设备102建立第一蓝牙连接,在可穿戴设备102有播放音频数据的需求时,蓝牙耳机101连接可穿戴设备102,接收来自可穿戴设备102的音频数据并播放接收到的音频数据。The bluetooth earphone 101 can be placed in the wearable device 102 when not in use; Bluetooth connection, when the wearable device 102 needs to play audio data, the Bluetooth headset 101 is connected to the wearable device 102, receives audio data from the wearable device 102 and plays the received audio data.
蓝牙耳机101也可以通过第二音频通道与移动设备103建立第二蓝牙连接,在移动设备103有播放音频数据的需求时,蓝牙耳机101可以播放移动设备103的音频数据。The Bluetooth headset 101 can also establish a second Bluetooth connection with the mobile device 103 through the second audio channel. When the mobile device 103 needs to play audio data, the Bluetooth headset 101 can play the audio data of the mobile device 103 .
需要说明的是,蓝牙耳机101无法同时与可穿戴设备102以及移动设备103建立蓝牙连接,也就是说,当蓝牙耳机101与可穿戴设备102建立第一蓝牙连接时,无法与移动设备103建立第二蓝牙连接,只能在蓝牙耳机101与可穿戴设备102断开第一蓝牙连接后,才能与移动设备103建立第二蓝牙连接。相应的,当蓝牙耳机101与移动设备103建立第二蓝牙连接时,无法与可穿戴设备102建立第一蓝牙连接,只能在蓝牙耳机101与移动设备103断开第二蓝牙连接后,才能与可穿戴设备102建立第一蓝牙连接,后文中不再赘述。It should be noted that the Bluetooth headset 101 cannot establish Bluetooth connections with the wearable device 102 and the mobile device 103 at the same time, that is, when the Bluetooth headset 101 establishes the first Bluetooth connection with the wearable device 102, it cannot establish the second connection with the mobile device 103. Two Bluetooth connection, the second Bluetooth connection with the mobile device 103 can only be established after the Bluetooth headset 101 disconnects the first Bluetooth connection with the wearable device 102 . Correspondingly, when the Bluetooth headset 101 establishes the second Bluetooth connection with the mobile device 103, it cannot establish the first Bluetooth connection with the wearable device 102, and can only communicate with the wearable device 102 after the Bluetooth headset 101 disconnects the second Bluetooth connection with the mobile device 103. The wearable device 102 establishes a first Bluetooth connection, which will not be described in detail below.
本申请实施例中,可穿戴设备102可以为智能手环、智能手表、头显设备等。In the embodiment of the present application, the wearable device 102 may be a smart bracelet, a smart watch, a head-mounted display device, and the like.
本申请实施例中,移动设备103可以是手机、个人数字处理(Personal DigitalAssistant,PDA)、具有通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,未来5G网络中的终端设备等,或者,其它具有蓝牙功能的设备。In the embodiment of the present application, the mobile device 103 may be a mobile phone, a personal digital assistant (PDA), a handheld device with a communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, and in the future Terminal devices in the 5G network, or other devices with Bluetooth functions.
基于图1所示的系统架构,图2示例性的示出了本发明实施例提供的一种蓝牙连接方法的流程示意图。如图2所示,该蓝牙连接方法包括以下步骤:Based on the system architecture shown in FIG. 1 , FIG. 2 exemplarily shows a schematic flowchart of a Bluetooth connection method provided by an embodiment of the present invention. As shown in Figure 2, the Bluetooth connection method includes the following steps:
步骤201,可穿戴设备与蓝牙耳机通过第一音频通道建立第一蓝牙连接。Step 201, the wearable device and the Bluetooth headset establish a first Bluetooth connection through a first audio channel.
其中,可穿戴设备与蓝牙耳机为二合一的可穿戴电子设备。蓝牙耳机支持播放可穿戴设备或者移动设备的音频数据,当蓝牙耳机与可穿戴设备建立蓝牙连接后,可以播放可穿戴设备的音频数据;当蓝牙耳机与移动设备建立蓝牙连接后,可以播放移动设备的音频数据。Among them, the wearable device and the Bluetooth headset are two-in-one wearable electronic devices. The Bluetooth headset supports playing the audio data of wearable devices or mobile devices. When the Bluetooth headset establishes a Bluetooth connection with the wearable device, it can play the audio data of the wearable device; when the Bluetooth headset establishes a Bluetooth connection with the mobile device, it can play the audio data of the mobile device. audio data.
步骤202,当蓝牙耳机通过第一音频通道播放可穿戴设备的第一音频数据时,可穿戴设备确定移动设备具有第二音频数据的播放需求。Step 202, when the Bluetooth headset plays the first audio data of the wearable device through the first audio channel, the wearable device determines that the mobile device has a playback requirement of the second audio data.
其中,可穿戴设备确定移动设备具有第二音频数据的播放需求,可以通过以下方式实现。Wherein, the wearable device determines that the mobile device has a demand for playing the second audio data, which may be implemented in the following manner.
方式一,可穿戴设备接收到来自移动设备的音频播放请求,该音频播放请求包括待播放音频的音频信息,例如音频名称、音频大小等,例如移动设备的通话音频。Way 1, the wearable device receives an audio play request from the mobile device, and the audio play request includes audio information of the audio to be played, such as audio name, audio size, etc., such as the call audio of the mobile device.
方式二,可穿戴设备的显示屏上显示用户界面,例如该用户界面为移动设备上的音乐播放器的应用界面,该应用界面包括播放控件,可穿戴设备接收到针对播放控件的用户操作,例如点击操作,响应于该点击操作,确定移动设备具有第二音频数据的播放需求。Method 2: The user interface is displayed on the display screen of the wearable device. For example, the user interface is an application interface of a music player on the mobile device. The application interface includes playback controls. The wearable device receives user operations on the playback controls, such as A click operation, and in response to the click operation, it is determined that the mobile device has a playback requirement for the second audio data.
本申请实施例中,上述步骤202之后,即可穿戴设备确定移动设备具有第二音频数据的播放需求之后,可穿戴设备可以根据预设的音频优先级列表,确定任意两个音频数据的播放优先级的大小。In the embodiment of the present application, after the above step 202, after the wearable device determines that the mobile device has the playback requirement of the second audio data, the wearable device can determine the playback priority of any two audio data according to the preset audio priority list class size.
例如,可穿戴设备根据音频优先级列表,确定上述第二音频数据的播放优先级是否大于第一音频数据的播放优先级;若是,则执行步骤203~步骤208;若否,即第二音频数据的播放优先级不大于第一音频数据的播放优先级,则可穿戴设备与蓝牙耳机之间继续保持第一蓝牙连接,并继续通过蓝牙耳机播放第一音频数据,不执行步骤上述步骤203~步骤208。通过该方式,可穿戴设备可以自动确定任意两个音频数据的播放优先级的大小,从而完成自动切换音频通道。For example, the wearable device determines whether the playback priority of the second audio data is higher than the playback priority of the first audio data according to the audio priority list; if yes, execute steps 203 to 208; if not, the second audio data If the playback priority of the first audio data is not greater than that of the first audio data, the first Bluetooth connection between the wearable device and the Bluetooth headset will continue to be maintained, and the first audio data will continue to be played through the Bluetooth headset, and steps 203 to 203 above will not be performed. 208. In this way, the wearable device can automatically determine the playback priority of any two audio data, thereby completing automatic switching of audio channels.
示例性的,音频优先级列表中各个音频类型的播放优先级从大到小的顺序依次为:通话;社交聊天软件中的录音或语音;视频音频;音乐;可穿戴设备的运动提示音;系统提示音;其它音频。Exemplarily, the playback priority of each audio type in the audio priority list from large to small is: call; recording or voice in social chat software; video audio; music; motion prompt sound of wearable device; system Prompt tone; other audio.
可穿戴设备中可以设置默认的音频优先级列表,也可以通过用户操作调整音频优先级列表中的音频类型和/或音频类型的顺序,例如,可穿戴设备可现实音频优先级列表,用户可以通过对音频优先级列表中包括的音频类型进行增加或者删减,也可以对音频优先级列表中的各个音频类型的优先级顺序进行调整。其中,对各个音频类型的优先级顺序进行调整可以是其中一个或多个音频类型的优先级顺序进行调整,如此,用户可以设置音频优先级列表,从而提升用户体验。The default audio priority list can be set in the wearable device, and the audio types and/or the order of the audio types in the audio priority list can also be adjusted through user operations. For example, the wearable device can display the audio priority list, and the user can pass The audio types included in the audio priority list may be added or deleted, and the priority order of each audio type in the audio priority list may also be adjusted. Wherein, adjusting the priority order of each audio type may be adjusting the priority order of one or more audio types. In this way, the user can set an audio priority list, thereby improving user experience.
步骤203,若第二音频数据的播放优先级大于第一音频数据的播放优先级,则可穿戴设备向蓝牙耳机发送第一控制消息。相对应的,蓝牙耳机接收来自可穿戴设备的第一控制消息。Step 203, if the playback priority of the second audio data is higher than the playback priority of the first audio data, the wearable device sends a first control message to the Bluetooth headset. Correspondingly, the Bluetooth headset receives the first control message from the wearable device.
其中,第一控制消息用于通知蓝牙耳机切换音频通道,即通知蓝牙耳机从第一音频通道切换至通过第二音频通道与移动设备建立第二蓝牙连接。蓝牙耳机在接收到第一控制消息后,根据第一控制消息执行步骤204与步骤205。Wherein, the first control message is used to notify the Bluetooth headset to switch the audio channel, that is, to notify the Bluetooth headset to switch from the first audio channel to establish a second Bluetooth connection with the mobile device through the second audio channel. After receiving the first control message, the Bluetooth headset executes step 204 and step 205 according to the first control message.
上述步骤203中可以有多种实现方式。一种实现方式中,若可穿戴设备确定第二音频数据的播放优先级大于第一音频数据的播放优先级,则可穿戴设备可以直接向蓝牙耳机发送第一控制消息。There may be multiple implementations in the above step 203 . In an implementation manner, if the wearable device determines that the playback priority of the second audio data is higher than the playback priority of the first audio data, the wearable device may directly send the first control message to the Bluetooth headset.
另一种实现方式中,若可穿戴设备确定第二音频数据的播放优先级大于第一音频数据的播放优先级,则可穿戴设备显示切换提示界面,该切换提示界面包括切换提示信息,提示界面还包括第三控件和第四控件,其中第三控件用于确认切换,第四控件用于确认不切换,若可穿戴设备接收到作用于第三控件的用户操作,例如点击操作,响应于该点击操作,向蓝牙耳机发送第一控制消息。若可穿戴设备接收到作用于第四控件的用户操作,例如点击操作,响应于该点击操作,确定不切换音频通道,也就不发送第一控制消息。如此,可以在用户操作下选择是否切换音频通道,提升用户体验。In another implementation, if the wearable device determines that the playback priority of the second audio data is higher than the playback priority of the first audio data, the wearable device displays a switching prompt interface, the switching prompt interface includes switching prompt information, and the prompt interface It also includes a third control and a fourth control, wherein the third control is used to confirm switching, and the fourth control is used to confirm not switching. If the wearable device receives a user operation acting on the third control, such as a click operation, respond to the Click Operation to send the first control message to the Bluetooth headset. If the wearable device receives a user operation acting on the fourth control, such as a click operation, in response to the click operation, it is determined not to switch the audio channel, and the first control message is not sent. In this way, it is possible to choose whether to switch the audio channel under user operation, so as to improve user experience.
步骤204,蓝牙耳机断开与可穿戴设备之间的第一蓝牙连接。Step 204, the Bluetooth headset disconnects the first Bluetooth connection with the wearable device.
步骤205,蓝牙耳机与移动设备通过第二音频通道建立第二蓝牙连接。Step 205, the Bluetooth headset establishes a second Bluetooth connection with the mobile device through the second audio channel.
步骤206,可穿戴设备向移动设备发送第二控制消息。Step 206, the wearable device sends a second control message to the mobile device.
其中,第二控制消息用于通知移动设备向蓝牙耳机发送第二音频数据。移动设备在接收到第二控制消息后,执行步骤207。Wherein, the second control message is used to notify the mobile device to send the second audio data to the Bluetooth headset. After receiving the second control message, the mobile device executes step 207.
步骤207,移动设备向蓝牙耳机发送第二音频数据。Step 207, the mobile device sends the second audio data to the Bluetooth headset.
相对应的,蓝牙耳机接收来自移动设备的第二音频数据。Correspondingly, the Bluetooth headset receives the second audio data from the mobile device.
步骤208,蓝牙耳机播放第二音频数据。Step 208, the Bluetooth headset plays the second audio data.
基于上述内容,在蓝牙耳机正在通过第一音频通道与可穿戴设备连接时,移动设备有播放音频的需求,可穿戴设备可以通知蓝牙耳机切换连接的音频通道,蓝牙耳机可以便捷、高效地完成所连接的双音频通道的切换,从而实现播放移动设备的音频。Based on the above content, when the Bluetooth headset is connected to the wearable device through the first audio channel, and the mobile device needs to play audio, the wearable device can notify the Bluetooth headset to switch the connected audio channel, and the Bluetooth headset can complete all tasks conveniently and efficiently. The switching of the connected dual audio channels, so as to realize the audio playback of the mobile device.
举个例子,例如蓝牙耳机正在播放可穿戴设备的运动提示音时,用户在可穿戴设备上打开移动设备的音乐播放器,然后点击音乐播放器上的播放按钮,可穿戴设备确定移动设备具有音频播放需求,即需要播放移动设备的音乐,根据音频优先级列表可以确定移动设备需要播放的音乐的播放优先级大于可穿戴设备的运动提示音的优先级,然后,可穿戴设备向蓝牙耳机发送第一控制消息,并向移动设备发送第二控制消息。蓝牙耳机在接收到第一控制消息之后,断开与可穿戴设备之间的第一蓝牙连接,并通过第二音频通道建立与移动设备的第二蓝牙连接。移动设备在接收到第二控制消息之后,并在建立与蓝牙耳机的第二蓝牙连接之后,向蓝牙耳机发送需要播放的音乐对应的音频数据,这样蓝牙耳机在接收到来自移动设备的音频数据之后,播放该音频数据。For example, when the Bluetooth headset is playing the motion notification sound of the wearable device, the user opens the music player of the mobile device on the wearable device, and then clicks the play button on the music player, the wearable device determines that the mobile device has audio Playing requirements, that is, the music that needs to be played on the mobile device. According to the audio priority list, it can be determined that the priority of the music that the mobile device needs to play is higher than the priority of the motion notification tone of the wearable device. Then, the wearable device sends the Bluetooth headset the first A control message is sent, and a second control message is sent to the mobile device. After receiving the first control message, the Bluetooth headset disconnects the first Bluetooth connection with the wearable device, and establishes a second Bluetooth connection with the mobile device through the second audio channel. After the mobile device receives the second control message and establishes the second Bluetooth connection with the Bluetooth headset, it sends the audio data corresponding to the music to be played to the Bluetooth headset, so that the Bluetooth headset receives the audio data from the mobile device. , to play the audio data.
图3示例性的示出了本发明实施例提供的一种蓝牙连接方法的流程。如图2所示,该流程具体包括:FIG. 3 exemplarily shows a flow of a Bluetooth connection method provided by an embodiment of the present invention. As shown in Figure 2, the process specifically includes:
步骤301,移动设备与蓝牙耳机通过第二音频通道建立第二蓝牙连接。Step 301, the mobile device and the Bluetooth headset establish a second Bluetooth connection through a second audio channel.
步骤302,当蓝牙耳机通过第二音频通道播放移动设备的第二音频数据时,可穿戴设备确定自身具有第三音频数据的播放需求。In step 302, when the Bluetooth headset plays the second audio data of the mobile device through the second audio channel, the wearable device determines that it has a demand for playing the third audio data.
本申请实施例中,上述步骤302之后,即可穿戴设备确定自身具有第三音频数据的播放需求之后,可穿戴设备可以根据预设的音频优先级列表,确定任意两个音频数据的播放优先级的大小。In the embodiment of the present application, after the above step 302, after the wearable device determines that it has the playback requirement of the third audio data, the wearable device can determine the playback priority of any two audio data according to the preset audio priority list the size of.
例如,可穿戴设备根据音频优先级列表,确定上述第三音频数据的播放优先级是否大于第二音频数据的播放优先级;若是,则执行步骤303~步骤307;若否,即第三音频数据的播放优先级不大于第二音频数据的播放优先级,则可穿戴设备与蓝牙耳机之间继续保持第二蓝牙连接,并继续通过蓝牙耳机播放第二音频数据,不执行步骤上述步骤303~步骤307。For example, the wearable device determines whether the playback priority of the third audio data is higher than the playback priority of the second audio data according to the audio priority list; if yes, execute steps 303 to 307; if not, the third audio data is not greater than the playback priority of the second audio data, then the wearable device and the Bluetooth headset continue to maintain the second Bluetooth connection, and continue to play the second audio data through the Bluetooth headset, and do not perform steps 303 to 30 above. 307.
此处的播放优先级的具体实现可以参见前述相关介绍,此处不再赘述。For the specific implementation of the playback priority here, refer to the related introduction mentioned above, and will not be repeated here.
步骤303,若第三音频数据的播放优先级大于第二音频数据的播放优先级,则可穿戴设备向蓝牙耳机发送第三控制消息。相对应的,蓝牙耳机接收来自可穿戴设备的第三控制消息。Step 303, if the playback priority of the third audio data is higher than the playback priority of the second audio data, the wearable device sends a third control message to the Bluetooth headset. Correspondingly, the Bluetooth headset receives the third control message from the wearable device.
其中,第三控制消息用于通知蓝牙耳机切换音频通道,即通知蓝牙耳机从第二音频通道至通过第一音频通道与可穿戴设备建立第一蓝牙连接。当蓝牙耳机播放移动设备的第二音频数据时,接收来自可穿戴设备的第三控制消息,根据第三控制消息执行步骤304与步骤305。Wherein, the third control message is used to notify the Bluetooth headset to switch the audio channel, that is, to notify the Bluetooth headset to establish the first Bluetooth connection with the wearable device from the second audio channel to the first audio channel. When the Bluetooth headset plays the second audio data of the mobile device, a third control message from the wearable device is received, and step 304 and step 305 are executed according to the third control message.
上述步骤303中可以有多种实现方式。一种实现方式中,若可穿戴设备确定第三音频数据的播放优先级大于第二音频数据的播放优先级,则可穿戴设备可以直接向蓝牙耳机发送第三控制消息。There may be multiple implementations in the above step 303 . In an implementation manner, if the wearable device determines that the playback priority of the third audio data is higher than the playback priority of the second audio data, the wearable device may directly send the third control message to the Bluetooth headset.
另一种实现方式中,若可穿戴设备确定第三音频数据的播放优先级大于第二音频数据的播放优先级,则可穿戴设备显示切换提示界面,该切换提示界面包括切换提示信息,提示界面还可以包括第五控件和第六控件,其中第五控件用于确认切换,第六控件用于确认不切换,若可穿戴设备接收到作用于第五控件的用户操作,例如点击操作,响应于该点击操作,向蓝牙耳机发送第三控制消息。若可穿戴设备接收到作用于第六控件的用户操作,例如点击操作,响应于该点击操作,确定不切换音频通道,也就不发送第三控制消息。如此,可以在用户操作下选择是否切换音频通道,提升用户体验。In another implementation, if the wearable device determines that the playback priority of the third audio data is higher than the playback priority of the second audio data, the wearable device displays a switching prompt interface, the switching prompt interface includes switching prompt information, and the prompt interface It may also include a fifth control and a sixth control, wherein the fifth control is used to confirm switching, and the sixth control is used to confirm not switching. If the wearable device receives a user operation acting on the fifth control, such as a click operation, respond to The click operation sends a third control message to the Bluetooth headset. If the wearable device receives a user operation acting on the sixth control, such as a click operation, in response to the click operation, it is determined not to switch the audio channel, and the third control message is not sent. In this way, it is possible to choose whether to switch the audio channel under user operation, so as to improve user experience.
步骤304,蓝牙耳机断开与移动设备之间的第二蓝牙连接。Step 304, the Bluetooth headset disconnects the second Bluetooth connection with the mobile device.
步骤305,蓝牙耳机与可穿戴设备通过第一音频通道建立第一蓝牙连接。Step 305, the Bluetooth headset establishes a first Bluetooth connection with the wearable device through the first audio channel.
步骤306,可穿戴设备向蓝牙耳机发送第三音频数据。Step 306, the wearable device sends third audio data to the Bluetooth headset.
步骤307,蓝牙耳机播放第二音频数据。Step 307, the Bluetooth headset plays the second audio data.
基于上述内容,在蓝牙耳机正在通过第二音频通道与移动设备连接时,可穿戴设备有播放音频的需求,可穿戴设备可以通知蓝牙耳机切换连接的音频通道,蓝牙耳机可以便捷、高效地完成所连接的双音频通道的切换,从而实现播放可穿戴设备的音频。Based on the above content, when the Bluetooth headset is connected to the mobile device through the second audio channel, the wearable device needs to play audio, the wearable device can notify the Bluetooth headset to switch the connected audio channel, and the Bluetooth headset can complete all tasks conveniently and efficiently. The switching of the connected dual audio channels, so as to realize the audio playback of the wearable device.
基于相同的技术构思,图4示例性的示出了本发明实施例提供的一种具有蓝牙耳机的可穿戴设备,如图4所示,该具有蓝牙耳机的可穿戴设备400包括:Based on the same technical concept, FIG. 4 exemplarily shows a wearable device with a Bluetooth headset provided by an embodiment of the present invention. As shown in FIG. 4, the wearable device 400 with a Bluetooth headset includes:
蓝牙模块401,用于与蓝牙耳机通过第一音频通道建立第一蓝牙连接;Bluetooth module 401, configured to establish a first Bluetooth connection with the Bluetooth headset through the first audio channel;
处理模块402,用于当蓝牙耳机通过第一音频通道播放可穿戴设备的第一音频数据时,确定移动设备具有第二音频数据的播放需求;A processing module 402, configured to determine that the mobile device has a playback requirement for the second audio data when the Bluetooth headset plays the first audio data of the wearable device through the first audio channel;
通信模块403,用于若第二音频数据的播放优先级大于第一音频数据的播放优先级,则向蓝牙耳机发送第一控制消息;其中,第一控制消息用于通知蓝牙耳机切换至通过第二音频通道与移动设备建立第二蓝牙连接;The communication module 403 is configured to send a first control message to the Bluetooth headset if the playback priority of the second audio data is greater than the playback priority of the first audio data; wherein, the first control message is used to notify the Bluetooth headset to switch to the Bluetooth headset via the first audio data. The second audio channel establishes a second Bluetooth connection with the mobile device;
通信模块403,还用于向移动设备发送第二控制消息;其中,第二控制消息用于通知移动设备向蓝牙耳机发送第二音频数据。The communication module 403 is further configured to send a second control message to the mobile device; wherein, the second control message is used to notify the mobile device to send the second audio data to the Bluetooth headset.
可选的,蓝牙模块401,还用于:若第二音频数据的播放优先级不大于第一音频数据的播放优先级,则继续通过蓝牙耳机播放第一音频数据。Optionally, the bluetooth module 401 is further configured to continue to play the first audio data through the bluetooth headset if the play priority of the second audio data is not higher than that of the first audio data.
处理模块402,还用于:当蓝牙耳机播放移动设备的第二音频数据时,确定自身具有第三音频数据的播放需求;通信模块403,还用于:若第三音频数据的播放优先级大于第二音频数据的播放优先级,则向蓝牙耳机发送第三控制消息,第三控制消息用于通知蓝牙耳机切换至通过第一音频通道与可穿戴设备建立第一蓝牙连接;蓝牙模块401,还用于:与蓝牙耳机通过第一音频通道建立第一蓝牙连接;通信模块403,还用于向蓝牙耳机发送第三音频数据。The processing module 402 is also used for: when the bluetooth headset plays the second audio data of the mobile device, it is determined that it has the playback requirement of the third audio data; the communication module 403 is also used for: if the playback priority of the third audio data is greater than The playback priority of the second audio data is to send a third control message to the Bluetooth headset, and the third control message is used to notify the Bluetooth headset to switch to establish a first Bluetooth connection with the wearable device through the first audio channel; the Bluetooth module 401 also It is used for: establishing a first Bluetooth connection with the Bluetooth headset through the first audio channel; the communication module 403 is also used for sending third audio data to the Bluetooth headset.
可选的,处理模块402,还用于:可穿戴设备根据预设的音频优先级列表,确定任意两个音频数据的播放优先级的大小。Optionally, the processing module 402 is further configured to: the wearable device determines the playback priority of any two audio data according to the preset audio priority list.
可选的,处理模块402,还用于:通过用户操作调整音频优先级列表中的音频类型和/或音频类型的顺序。Optionally, the processing module 402 is further configured to: adjust the audio types and/or the order of the audio types in the audio priority list through user operations.
可选的,音频优先级列表中各个音频类型的优先级从大到小的顺序为:通话;社交聊天软件中的录音或语音;视频音频;音乐;可穿戴设备的运动提示音;系统提示音;其它音频。Optionally, the order of priority of each audio type in the audio priority list from largest to smallest is: call; recording or voice in social chat software; video audio; music; wearable device motion prompt sound; system prompt sound ; other audio.
基于相同的技术构思,图5示例性的示出了本发明实施例提供的一种蓝牙耳机,该蓝牙耳机与可穿戴设备配套,如图5所示,该蓝牙耳机500包括:Based on the same technical concept, FIG. 5 exemplarily shows a Bluetooth headset provided by an embodiment of the present invention, which is matched with a wearable device. As shown in FIG. 5, the Bluetooth headset 500 includes:
蓝牙模块501,用于与可穿戴设备通过第一音频通道建立第一蓝牙连接;Bluetooth module 501, configured to establish a first Bluetooth connection with the wearable device through a first audio channel;
通信模块502,用于当蓝牙耳机播放可穿戴设备的第一音频数据时,接收来自可穿戴设备的第一控制消息;其中,第一控制消息用于通知蓝牙耳机切换至通过第二音频通道与移动设备建立第二蓝牙连接;The communication module 502 is configured to receive a first control message from the wearable device when the Bluetooth headset plays the first audio data of the wearable device; wherein, the first control message is used to notify the Bluetooth headset to switch to the second audio channel and The mobile device establishes a second Bluetooth connection;
蓝牙模块501,还用于断开与可穿戴设备之间的第一蓝牙连接,并与移动设备通过第二音频通道建立第二蓝牙连接;The bluetooth module 501 is also used to disconnect the first bluetooth connection with the wearable device, and establish a second bluetooth connection with the mobile device through the second audio channel;
通信模块502,还用于接收来自移动设备的第二音频数据;The communication module 502 is further configured to receive second audio data from the mobile device;
播放模块503,用于并播放第二音频数据。The playing module 503 is configured to play the second audio data.
可选的,通信模块502,用于:当蓝牙耳机播放移动设备的第二音频数据时,接收来自可穿戴设备的第三控制消息,第三控制消息用于通知蓝牙耳机切换至通过第一音频通道与可穿戴设备建立第一蓝牙连接;蓝牙模块501,还用于:断开与移动设备之间的第二蓝牙连接,并与可穿戴设备通过第一音频通道建立第一蓝牙连接;通信模块502,还用于:接收来自可穿戴设备的第三音频数据;播放模块503,还用于播放第三音频数据。Optionally, the communication module 502 is configured to: when the Bluetooth headset plays the second audio data of the mobile device, receive a third control message from the wearable device, and the third control message is used to notify the Bluetooth headset to switch to pass the first audio data. The channel establishes a first Bluetooth connection with the wearable device; the Bluetooth module 501 is also used to: disconnect the second Bluetooth connection with the mobile device, and establish a first Bluetooth connection with the wearable device through the first audio channel; the communication module 502, further configured to: receive third audio data from the wearable device; and a playing module 503, further configured to play the third audio data.
基于相同的技术构思,本发明实施例还提供了一种计算设备,包括:Based on the same technical concept, the embodiment of the present invention also provides a computing device, including:
存储器,用于存储程序指令;memory for storing program instructions;
处理器,用于调用存储器中存储的程序指令,按照获得的程序执行上述一种蓝牙连接方法。The processor is used to call the program instructions stored in the memory, and execute the above-mentioned Bluetooth connection method according to the obtained program.
基于相同的技术构思,本发明实施例还提供了一种计算机可读存储介质,包括计算机可读指令,当计算机读取并执行计算机可读指令时,使得计算机执行上述一种蓝牙连接方法。Based on the same technical concept, an embodiment of the present invention also provides a computer-readable storage medium, including computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer executes the above-mentioned Bluetooth connection method.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310749482.XA CN116684856A (en) | 2023-06-21 | 2023-06-21 | Bluetooth connection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310749482.XA CN116684856A (en) | 2023-06-21 | 2023-06-21 | Bluetooth connection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116684856A true CN116684856A (en) | 2023-09-01 |
Family
ID=87787156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310749482.XA Pending CN116684856A (en) | 2023-06-21 | 2023-06-21 | Bluetooth connection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116684856A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117241253A (en) * | 2023-11-13 | 2023-12-15 | 成都智科通信技术股份有限公司 | A multi-audio adaptive switching playback processing method, system, terminal and medium |
CN117528325A (en) * | 2023-12-04 | 2024-02-06 | 深圳市博陆科电子科技有限公司 | Bluetooth headset dual-mode connection control method and device, bluetooth headset and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112004173A (en) * | 2020-08-27 | 2020-11-27 | 努比亚技术有限公司 | Switching method of Bluetooth earphone, mobile terminal and computer readable storage medium |
CN113382397A (en) * | 2019-04-18 | 2021-09-10 | 华为技术有限公司 | Bluetooth connection method, equipment and system |
WO2022155797A1 (en) * | 2021-01-19 | 2022-07-28 | 深圳市汇顶科技股份有限公司 | Bluetooth connection switching method, bluetooth chip, and bluetooth device |
CN115002934A (en) * | 2022-07-18 | 2022-09-02 | 荣耀终端有限公司 | Audio service processing system, electronic equipment and Bluetooth headset |
CN115309252A (en) * | 2021-05-08 | 2022-11-08 | Oppo广东移动通信有限公司 | Music control interface display method, device, wearable device and storage medium |
-
2023
- 2023-06-21 CN CN202310749482.XA patent/CN116684856A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113382397A (en) * | 2019-04-18 | 2021-09-10 | 华为技术有限公司 | Bluetooth connection method, equipment and system |
CN112004173A (en) * | 2020-08-27 | 2020-11-27 | 努比亚技术有限公司 | Switching method of Bluetooth earphone, mobile terminal and computer readable storage medium |
WO2022155797A1 (en) * | 2021-01-19 | 2022-07-28 | 深圳市汇顶科技股份有限公司 | Bluetooth connection switching method, bluetooth chip, and bluetooth device |
CN115309252A (en) * | 2021-05-08 | 2022-11-08 | Oppo广东移动通信有限公司 | Music control interface display method, device, wearable device and storage medium |
CN115002934A (en) * | 2022-07-18 | 2022-09-02 | 荣耀终端有限公司 | Audio service processing system, electronic equipment and Bluetooth headset |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117241253A (en) * | 2023-11-13 | 2023-12-15 | 成都智科通信技术股份有限公司 | A multi-audio adaptive switching playback processing method, system, terminal and medium |
CN117241253B (en) * | 2023-11-13 | 2024-01-19 | 成都智科通信技术股份有限公司 | Multi-audio self-adaptive switching play processing method, system, terminal and medium |
CN117528325A (en) * | 2023-12-04 | 2024-02-06 | 深圳市博陆科电子科技有限公司 | Bluetooth headset dual-mode connection control method and device, bluetooth headset and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7853649B2 (en) | Audio processing for improved user experience | |
US20090023417A1 (en) | Multiple interactive modes for using multiple earpieces linked to a common mobile handset | |
CN116684856A (en) | Bluetooth connection method and device | |
US20220286538A1 (en) | Earphone device and communication method | |
CN114040373A (en) | Audio service processing method, device, electronic device and storage medium | |
CN103312912A (en) | Sound mixing system and method | |
CN116471355B (en) | Audio playback method and electronic device | |
JP4992591B2 (en) | Communication system and communication terminal | |
CN113423007B (en) | Control method and device for multi-audio playing, electronic equipment and storage medium | |
CN106506834A (en) | Method, terminal and system for adding background sound during call | |
JP2004312662A (en) | Portable terminal with sound / background sound output function using key buttons during a call | |
WO2023045784A1 (en) | Call control method and apparatus, and electronic device and computer-readable storage medium | |
CN116866472B (en) | Volume control method and electronic equipment | |
CN119497049A (en) | A communication method, storage medium and electronic device | |
CN118120217A (en) | Audio processing method and electronic equipment | |
JP2014146903A (en) | Portable terminal | |
CN116033304A (en) | Audio output method, electronic equipment and readable storage medium | |
JP2007124679A (en) | Method of providing call background sound in personal portable terminal | |
CN117707464B (en) | Audio processing method and related equipment | |
CN116743905B (en) | Call volume control method and electronic device | |
CN116743904B (en) | Call volume control method and electronic device | |
JP2008099121A (en) | Cellular phone, and program | |
JP4585421B2 (en) | Data distribution apparatus, data distribution method, communication terminal apparatus, and data output program | |
JP2003157217A (en) | Information terminal equipment | |
CN118450314A (en) | Electronic device and audio playback method |
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 |