[go: up one dir, main page]

CN114599020A - Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium - Google Patents

Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium Download PDF

Info

Publication number
CN114599020A
CN114599020A CN202210256985.9A CN202210256985A CN114599020A CN 114599020 A CN114599020 A CN 114599020A CN 202210256985 A CN202210256985 A CN 202210256985A CN 114599020 A CN114599020 A CN 114599020A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth device
interactive interface
interactive
input
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
Application number
CN202210256985.9A
Other languages
Chinese (zh)
Inventor
徐杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210256985.9A priority Critical patent/CN114599020A/en
Publication of CN114599020A publication Critical patent/CN114599020A/en
Pending legal-status Critical Current

Links

Images

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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a Bluetooth connection method, a Bluetooth connection device, an electronic device and a readable storage medium, and belongs to the technical field of communication. The Bluetooth connection method comprises the following steps: under the condition that the Bluetooth equipment is paired, receiving a first input of a user to a first interactive interface of at least two interactive interfaces, wherein the at least two interactive interfaces are respectively displayed on different screens; and responding to the first input, and establishing a communication connection between a first application program corresponding to the first interactive interface and the Bluetooth device.

Description

蓝牙连接方法、蓝牙连接装置、电子设备和可读存储介质Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium

技术领域technical field

本申请属于通信技术领域,具体涉及一种蓝牙连接方法、蓝牙连接装置、电子设备和可读存储介质。The present application belongs to the field of communication technologies, and in particular relates to a Bluetooth connection method, a Bluetooth connection device, an electronic device and a readable storage medium.

背景技术Background technique

目前,电子设备的种类越来越多,出现了具有双面屏、折叠屏等多屏类型的电子设备,多屏类型的电子设备支持多人使用,每个人可以使用不同屏幕中的应用,例如一个用户使用第一屏幕的视频应用观看视频,另一个用户可使用第二屏幕的直播应用观看直播。At present, there are more and more types of electronic devices, and electronic devices with multi-screen types such as double-sided screens and folding screens have appeared. Multi-screen electronic devices support the use of multiple people, and each person can use applications on different screens, such as One user can use the video application on the first screen to watch the video, and another user can use the live broadcast application on the second screen to watch the live broadcast.

相关技术中,通常当一个用户使用蓝牙设备连接电子设备后,另一个用户想要使用蓝牙设备连接电子设备,需要前一个用户先断开连接,后一个用户再进行连接,这导致操作繁琐。In the related art, when a user uses a Bluetooth device to connect an electronic device, another user wants to use a Bluetooth device to connect the electronic device, the former user needs to disconnect first, and the latter user connects again, which leads to cumbersome operations.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种蓝牙连接方法、蓝牙连接装置、电子设备和可读存储介质,能够解决相关技术中电子设备与蓝牙设备进行连接时操作繁琐的问题。The purpose of the embodiments of the present application is to provide a Bluetooth connection method, a Bluetooth connection device, an electronic device, and a readable storage medium, which can solve the problem of complicated operations when connecting an electronic device and a Bluetooth device in the related art.

第一方面,本申请实施例提供了一种蓝牙连接方法,该蓝牙连接方法包括:In a first aspect, an embodiment of the present application provides a Bluetooth connection method, and the Bluetooth connection method includes:

在与蓝牙设备已配对的情况下,接收用户对至少两个交互界面中的第一交互界面的第一输入,至少两个交互界面分别显示在不同的屏幕;In the case of being paired with the Bluetooth device, receiving a first input from the user to the first interactive interface of the at least two interactive interfaces, and the at least two interactive interfaces are respectively displayed on different screens;

响应于第一输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接。In response to the first input, a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device is established.

第二方面,本申请实施例提供了一种蓝牙连接装置,该蓝牙连接装置包括:In a second aspect, an embodiment of the present application provides a Bluetooth connection device, where the Bluetooth connection device includes:

接收模块,用于在与蓝牙设备已配对的情况下,接收用户对至少两个交互界面中的第一交互界面的第一输入,至少两个交互界面分别显示在不同的屏幕;a receiving module, configured to receive a first input from a user to a first interactive interface of the at least two interactive interfaces when paired with a Bluetooth device, and the at least two interactive interfaces are respectively displayed on different screens;

连接模块,用于响应于第一输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接。The connection module is configured to, in response to the first input, establish a communication connection between the first application program corresponding to the first interactive interface and the Bluetooth device.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores a program or an instruction that can be executed on the processor, and the program or instruction is executed by the processor to implement the first aspect steps of the method.

第四方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

第五方面,本申请实施例提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的方法。In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the method of the first aspect.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method of the first aspect.

在本申请实施例中,在电子设备与蓝牙设备已配对的情况下,电子设备接收用户对至少两个交互界面中的第一交互界面的第一输入,响应于该输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,由于至少两个交互界面分别显示在电子设备的不同屏幕,由此,实现了电子设备分屏幕连接蓝牙设备,避免了电子设备与蓝牙设备连接的情况下,再与另外的蓝牙设备连接时的繁琐操作。In the embodiment of the present application, in the case where the electronic device and the Bluetooth device have been paired, the electronic device receives the first input from the user to the first interactive interface of the at least two interactive interfaces, and in response to the input, establishes the first interactive interface For the communication connection between the corresponding first application and the Bluetooth device, since at least two interactive interfaces are displayed on different screens of the electronic device, the electronic device is connected to the Bluetooth device in a split-screen manner, and the electronic device and the Bluetooth device are avoided. In the case of connection, it is a cumbersome operation when connecting with another Bluetooth device.

附图说明Description of drawings

图1是本申请实施例的蓝牙连接方法的流程示意图;1 is a schematic flowchart of a Bluetooth connection method according to an embodiment of the present application;

图2是本申请实施例的电子设备的屏幕显示的示意图之一;FIG. 2 is one of the schematic diagrams of the screen display of the electronic device according to the embodiment of the present application;

图3是本申请实施例的电子设备的屏幕显示的示意图之二;3 is the second schematic diagram of the screen display of the electronic device according to the embodiment of the present application;

图4是本申请实施例的电子设备的屏幕显示的示意图之三;FIG. 4 is the third schematic diagram of the screen display of the electronic device according to the embodiment of the present application;

图5是本申请实施例的电子设备的折叠状态的示意图;5 is a schematic diagram of a folded state of an electronic device according to an embodiment of the present application;

图6是本申请实施例的电子设备的屏幕显示的示意图之四;6 is the fourth schematic diagram of the screen display of the electronic device according to the embodiment of the present application;

图7是本申请实施例的电子设备的屏幕显示的示意图之五;7 is the fifth schematic diagram of the screen display of the electronic device according to the embodiment of the present application;

图8是本申请实施例的电子设备的屏幕显示的示意图之六;8 is the sixth schematic diagram of the screen display of the electronic device according to the embodiment of the present application;

图9是相关技术中的电子设备和音频输出设备的结构示意图;9 is a schematic structural diagram of an electronic device and an audio output device in the related art;

图10是本申请实施例的电子设备和音频输出设备的结构示意图;10 is a schematic structural diagram of an electronic device and an audio output device according to an embodiment of the present application;

图11是本申请实施例的电子设备的屏幕显示的示意图之七;11 is the seventh schematic diagram of the screen display of the electronic device according to the embodiment of the present application;

图12是本申请实施例的电子设备的屏幕显示的示意图之八;12 is the eighth schematic diagram of the screen display of the electronic device according to the embodiment of the present application;

图13是本申请实施例的蓝牙连接装置的示意框图;13 is a schematic block diagram of a Bluetooth connection device according to an embodiment of the present application;

图14是本申请实施例的电子设备的示意框图之一;14 is one of the schematic block diagrams of the electronic device according to the embodiment of the present application;

图15是本申请实施例的电子设备的示意框图之二。FIG. 15 is the second schematic block diagram of the electronic device according to the embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.

本申请实施例提供的蓝牙连接方法,其执行主体可以是本申请实施例提供的蓝牙连接装置,或者集成了该蓝牙连接装置的电子设备,其中该蓝牙连接装置可以采用硬件或软件的方式实现。下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的蓝牙连接方法、蓝牙连接装置、电子设备和可读存储介质进行详细地说明。In the Bluetooth connection method provided by the embodiment of the present application, the execution body may be the Bluetooth connection device provided in the embodiment of the present application, or an electronic device integrating the Bluetooth connection device, wherein the Bluetooth connection device may be implemented in hardware or software. The Bluetooth connection method, Bluetooth connection device, electronic device, and readable storage medium provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

本申请实施例提供一种蓝牙连接方法,如图1所示,该蓝牙连接方法包括:An embodiment of the present application provides a Bluetooth connection method. As shown in FIG. 1 , the Bluetooth connection method includes:

步骤102,在与蓝牙设备已配对的情况下,接收用户对至少两个交互界面中的第一交互界面的第一输入,至少两个交互界面分别显示在不同的屏幕;Step 102, receiving a first input from a user to a first interactive interface of the at least two interactive interfaces in the case of being paired with a Bluetooth device, and the at least two interactive interfaces are displayed on different screens respectively;

步骤104,响应于第一输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接。Step 104, in response to the first input, establish a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device.

其中,第一输入包括但不限于单击输入、双击输入、滑动输入、按压输入等。具体地,本申请实施例对该输入的方式不作具体限定,可为任一可实现的方式。The first input includes, but is not limited to, single-click input, double-click input, sliding input, pressing input, and the like. Specifically, the embodiment of the present application does not specifically limit the input manner, and may be any achievable manner.

可选地,在电子设备与蓝牙设备已配对的情况下,电子设备接收用户对至少两个交互界面中的第一交互界面的第一输入,至少两个交互界面分别显示在电子设备的不同的屏幕。响应于该输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接。Optionally, in the case that the electronic device and the Bluetooth device have been paired, the electronic device receives the first input from the user to the first interactive interface of the at least two interactive interfaces, and the at least two interactive interfaces are respectively displayed on different parts of the electronic device. Screen. In response to the input, a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device is established.

可选地,电子设备具有至少两个屏幕,每个屏幕对应有交互界面。例如,电子设备可以是具有可扩展屏幕的电子设备,可扩展屏幕例如折叠屏、双面屏、卷轴屏等。其中,双面屏可以是由正反屏幕构成的双面屏幕,卷轴屏可以是由固定屏幕和扩展屏幕构成的、具有伸缩功能的屏幕。Optionally, the electronic device has at least two screens, and each screen corresponds to an interactive interface. For example, the electronic device may be an electronic device having an expandable screen, such as a folding screen, a double-sided screen, a scroll screen, and the like. Wherein, the double-sided screen may be a double-sided screen composed of front and back screens, and the scroll screen may be a screen with a telescopic function composed of a fixed screen and an extended screen.

可选地,蓝牙设备可以是手机、蓝牙耳机、蓝牙音响、可穿戴设备等具有蓝牙连接功能的电子设备。Optionally, the Bluetooth device may be an electronic device with a Bluetooth connection function, such as a mobile phone, a Bluetooth headset, a Bluetooth audio device, and a wearable device.

可选地,电子设备与蓝牙设备进行配对是指电子设备与蓝牙设备通过一个已建立的无线连接能够相互进行识别及通信。Optionally, pairing the electronic device with the Bluetooth device means that the electronic device and the Bluetooth device can identify and communicate with each other through an established wireless connection.

可选地,第一交互界面对应的第一应用程序,可以是应用图标位于第一交互界面中的应用程序,也可以是在后台与第一交互界面绑定的应用程序。Optionally, the first application program corresponding to the first interaction interface may be an application program whose application icon is located in the first interaction interface, or may be an application program bound with the first interaction interface in the background.

可选地,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接后,第一交互界面对应的第一应用程序与蓝牙设备之间进行数据交互。第一应用程序与蓝牙设备之间交互的数据可以是音频、视频、文档、图像等数据,使得蓝牙设备能够实现第一应用程序相关的音频、视频的播放,或者实现第一应用程序相关的文档、图像的显示。Optionally, after establishing the communication connection between the first application program corresponding to the first interaction interface and the Bluetooth device, data interaction is performed between the first application program corresponding to the first interaction interface and the Bluetooth device. The data interacted between the first application and the Bluetooth device may be data such as audio, video, documents, images, etc., so that the Bluetooth device can realize the playback of audio and video related to the first application, or realize the documents related to the first application. , the display of the image.

可选地,与电子设备建立通信连接的蓝牙设备可以为多个,不同交互界面可以分别与不同的蓝牙设备建立通信连接,对于同一个交互界面,也可以与至少两个蓝牙设备建立通信连接。Optionally, there may be multiple Bluetooth devices that establish communication connections with the electronic device, different interaction interfaces may establish communication connections with different Bluetooth devices respectively, and for the same interaction interface, communication connections may also be established with at least two Bluetooth devices.

本申请实施例,在电子设备与蓝牙设备已配对的情况下,电子设备接收用户对至少两个交互界面中的第一交互界面的第一输入,响应于该输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,由于至少两个交互界面分别显示在电子设备的不同屏幕,由此,实现电子设备分屏幕连接蓝牙设备,避免了电子设备与蓝牙设备连接的情况下,再与另外的蓝牙设备连接时的繁琐操作。In this embodiment of the present application, in the case where the electronic device and the Bluetooth device have been paired, the electronic device receives a first input from the user on the first interactive interface of the at least two interactive interfaces, and in response to the input, establishes a corresponding first interactive interface. In the communication connection between the first application and the Bluetooth device, since at least two interactive interfaces are displayed on different screens of the electronic device respectively, the electronic device is connected to the Bluetooth device in separate screens, and the connection between the electronic device and the Bluetooth device is avoided. , the tedious operation when connecting with another Bluetooth device.

值得注意的是,在第一交互界面对应的第一应用程序与蓝牙设备建立通信连接之后,用户可以在第一交互界面中对该蓝牙设备进行暂停播放、开始播放、音量调节等控制,也可以在第一交互界面中对电子设备所有已配对的蓝牙设备(也即,与该第一交互界面建立通信连接和未建立通信连接的所有蓝牙设备)进行暂停播放、开始播放、音量调节等控制。It is worth noting that after the first application corresponding to the first interaction interface establishes a communication connection with the Bluetooth device, the user can perform controls such as pause playback, start playback, volume adjustment, etc. on the Bluetooth device in the first interaction interface, or In the first interactive interface, all paired Bluetooth devices of the electronic device (ie, all Bluetooth devices that have established communication connections with the first interactive interface and have not established communication connections) are controlled to pause playback, start playback, and adjust volume.

可选地,在与蓝牙设备已配对的情况下,接收用户对至少两个交互界面中的第一交互界面的第一输入,包括:在与蓝牙设备已配对且在至少两个交互界面中分别显示屏幕选择控件的情况下,接收用户对第一交互界面中显示的屏幕选择控件的第一输入。Optionally, in the case of being paired with a Bluetooth device, receiving a first input from a user to a first interaction interface in the at least two interaction interfaces includes: pairing with a Bluetooth device and in the at least two interaction interfaces, respectively. In the case of displaying the screen selection control, a first input from the user to the screen selection control displayed in the first interactive interface is received.

可选地,用户可以自行选择将蓝牙设备连接于至少两个交互界面中的一个。具体地,在至少两个交互界面中分别显示屏幕选择控件,当接收到用户对其中一个屏幕选择控件的第一输入时,确定将该屏幕选择控件所在的第一交互界面中的第一应用程序与蓝牙设备进行通信连接。Optionally, the user may choose to connect the Bluetooth device to one of the at least two interactive interfaces. Specifically, screen selection controls are respectively displayed in at least two interactive interfaces, and when a first input from the user to one of the screen selection controls is received, the first application in the first interactive interface where the screen selection control is located is determined. Connect with Bluetooth devices for communication.

示例性地,如图2所示,电子设备包括屏幕A和屏幕B,电子设备上显示的屏幕选择控件包括屏幕选择控件202和屏幕选择控件204,屏幕A上显示屏幕选择控件202、屏幕B上显示屏幕选择控件204。若用户对屏幕选择控件202进行点击操作时,将屏幕A与第一蓝牙设备X+进行通信连接,若用户对屏幕选择控件204进行点击操作时,将屏幕B与第二蓝牙设备Y+进行通信连接。Exemplarily, as shown in FIG. 2 , the electronic device includes a screen A and a screen B, and the screen selection controls displayed on the electronic device include a screen selection control 202 and a screen selection control 204 . Screen selection controls 204 are displayed. If the user clicks the screen selection control 202, the screen A is connected to the first Bluetooth device X+ for communication; if the user clicks the screen selection control 204, the screen B is connected to the second Bluetooth device Y+ for communication connection.

可选地,电子设备上显示一个屏幕选择控件,用户通过对该屏幕选择控件进行移动实现选择与蓝牙设备进行通信连接的交互界面。示例性地,如图3所示,屏幕A和屏幕B上显示屏幕选择控件206,若用户将屏幕选择控件206向屏幕A方向滑动时,将屏幕A与第一蓝牙设备X+进行通信连接,若用户将控件206向屏幕B方向滑动时,将屏幕B与第二蓝牙设备Y+进行通信连接。Optionally, a screen selection control is displayed on the electronic device, and the user selects an interactive interface for communication connection with the Bluetooth device by moving the screen selection control. Exemplarily, as shown in FIG. 3 , the screen selection control 206 is displayed on the screen A and the screen B. If the user slides the screen selection control 206 in the direction of the screen A, the screen A is connected to the first Bluetooth device X+ for communication. When the user slides the control 206 toward the screen B, the screen B is connected to the second Bluetooth device Y+ for communication.

可选地,屏幕A可以显示直播界面,屏幕B可以显示视频界面,屏幕A和屏幕B之间可以做到屏幕通屏展示,无任何物理器件做隔断,类似于横向的平板效果,在通过上述任一方式将屏幕A与第一蓝牙设备X+进行通信连接、将屏幕B与第二蓝牙设备Y+进行通信连接后,则能够实现用户X使用第一蓝牙设备X+听屏幕A中直播的声音,用户Y使用第二蓝牙设备Y+听屏幕B中视频的声音。Optionally, screen A can display a live interface, and screen B can display a video interface, and a screen-to-screen display can be achieved between screen A and screen B without any physical device for partition, similar to the horizontal tablet effect. After the screen A is connected to the first Bluetooth device X+ for communication, and the screen B is connected to the second Bluetooth device Y+ in any way, user X can use the first Bluetooth device X+ to listen to the live sound on screen A. Y uses the second bluetooth device Y+ to listen to the sound of the video in screen B.

通过上述方式,将蓝牙设备与电子设备的任一屏幕进行通信连接,从而实现可以将不同屏幕中的音频传递给不同的蓝牙设备,避免了电子设备与蓝牙设备连接的情况下,再与另外的蓝牙设备连接时的繁琐操作。Through the above method, the Bluetooth device is connected to any screen of the electronic device for communication, so that the audio in different screens can be transmitted to different Bluetooth devices, avoiding the situation that the electronic device is connected with the Bluetooth device, and then communicate with other devices. The tedious operation when the bluetooth device is connected.

可选地,如图5所示,在电子设备为折叠屏电子设备的情况下,折叠屏在折叠状态时显示如图6所示的屏幕C,此时屏幕C单独进行显示,则将屏幕C对应的应用程序与蓝牙设备进行通信连接,该连接过程可以自动进行,也可以由用户手动确认后再进行连接。示例性地,如图7所示,在屏幕C上显示用于控制蓝牙设备连接的控件702,当用户点击控件702后,则将蓝牙设备与屏幕C进行通信连接。需要说明的是,屏幕A与屏幕C之间的折叠夹角θ小于或等于预设角度时,表明折叠屏为折叠状态。Optionally, as shown in FIG. 5 , in the case where the electronic device is a folding screen electronic device, the folding screen displays the screen C shown in FIG. 6 when the folding screen is in the folded state. The corresponding application program communicates with the Bluetooth device, and the connection process can be performed automatically, or the connection can be manually confirmed by the user. Exemplarily, as shown in FIG. 7 , a control 702 for controlling the connection of the Bluetooth device is displayed on the screen C. After the user clicks the control 702 , the Bluetooth device is connected to the screen C for communication. It should be noted that when the folding angle θ between the screen A and the screen C is less than or equal to the preset angle, it indicates that the folding screen is in a folded state.

可选地,第一应用程序为音频应用程序;蓝牙设备为音频输出设备;在建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接之后,还包括:获取第一交互界面对应的音频应用程序输出的音频数据;将音频数据传递至音频输出设备,通过音频输出设备输出音频数据。Optionally, the first application is an audio application; the Bluetooth device is an audio output device; after establishing a communication connection between the first application corresponding to the first interaction interface and the Bluetooth device, the method further includes: acquiring the first interaction interface The audio data output by the corresponding audio application; pass the audio data to the audio output device, and output the audio data through the audio output device.

可选地,第一应用程序为音频应用程序,音频应用程序可以是任意具有音频输出功能的应用,例如,社交应用、音乐播放应用、视频播放应用等。蓝牙设备为音频输出设备,在电子设备的第一交互界面对应的音频应用程序与该音频输出设备之间建立了通信连接后,将音频应用程序输出的音频数据传递至该音频输出设备,使得音频数据通过该音频输出设备输出。Optionally, the first application is an audio application, and the audio application may be any application with an audio output function, for example, a social application, a music playing application, a video playing application, and the like. The Bluetooth device is an audio output device. After a communication connection is established between the audio application program corresponding to the first interactive interface of the electronic device and the audio output device, the audio data output by the audio application program is transmitted to the audio output device, so that the audio Data is output through the audio output device.

例如,将屏幕A与用户X的第一蓝牙设备X+进行通信连接、将屏幕B与用户Y的第二蓝牙设备Y+进行通信连接后,如图4所示,当屏幕A中显示直播界面,屏幕B中显示视频界面时,则能够实现用户X使用第一蓝牙设备X+听屏幕A中直播的声音,用户Y使用第二蓝牙设备Y+听屏幕B中视频的声音。For example, after connecting screen A with the first Bluetooth device X+ of user X and connecting screen B with the second Bluetooth device Y+ of user Y, as shown in FIG. 4 , when the live interface is displayed on screen A, the screen When the video interface is displayed in B, user X can use the first Bluetooth device X+ to listen to the sound of the live broadcast on screen A, and user Y can use the second Bluetooth device Y+ to listen to the sound of the video on screen B.

另外,在第一交互界面与蓝牙设备进行通信连接之后,该蓝牙设备能够播放第一交互界面内所有运行的应用程序的音频。例如,当关掉屏幕A中的当前的直播应用,再在屏幕A中打开音乐应用时,用户X依然可以通过第一蓝牙设备X+听到音乐应用的声音,且与用户Y观看的视频页面互不影响。In addition, after the first interaction interface is communicatively connected with the Bluetooth device, the Bluetooth device can play audio of all running applications in the first interaction interface. For example, when closing the current live broadcast application on screen A, and then opening the music application on screen A, user X can still hear the sound of the music application through the first Bluetooth device X+, and interact with the video page watched by user Y. Does not affect.

通过上述方式,实现将不同的音频输出设备输出电子设备不同屏幕对应的音频应用程序的音频,提高了音频播放的灵活性。In the above manner, the audio of the audio application program corresponding to the different screens of the electronic device can be output from different audio output devices, and the flexibility of audio playback is improved.

可选地,在建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接之后,还包括:在第一交互界面中显示蓝牙设备控件;响应于用于将蓝牙设备控件由第一交互界面移动至至少两个交互界面中的第二交互界面的第二输入,断开第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,并建立第二交互界面对应的第二应用程序与蓝牙设备之间的通信连接。Optionally, after establishing the communication connection between the first application corresponding to the first interaction interface and the Bluetooth device, the method further includes: displaying the Bluetooth device control in the first interaction interface; An interactive interface is moved to the second input of the second interactive interface among the at least two interactive interfaces, the communication connection between the first application corresponding to the first interactive interface and the Bluetooth device is disconnected, and the second interactive interface corresponding to the Bluetooth device is established. A communication connection between the second application and the Bluetooth device.

其中,第二输入可以为对蓝牙设备控件的滑动输入,能够使蓝牙设备控件由第一交互界面移动至第二交互界面。The second input may be a sliding input to the Bluetooth device control, which can move the Bluetooth device control from the first interaction interface to the second interaction interface.

可选地,用户可以切换与蓝牙设备建立通信连接的应用程序。具体地,在第一交互界面对应的第一应用程序与蓝牙设备建立了通信连接的情况下,接收用户对在第一交互界面中显示的蓝牙设备控件的第二输入,将蓝牙设备控件从第一交互界面移动至第二交互界面,则断开蓝牙设备与第一应用程序之间的通信连接,并建立蓝牙设备与第二交互界面对应的第二应用程序之间的通信连接。Optionally, the user can switch applications that establish a communication connection with the Bluetooth device. Specifically, in the case where the first application corresponding to the first interaction interface has established a communication connection with the Bluetooth device, the second input from the user on the Bluetooth device control displayed in the first interaction interface is received, and the Bluetooth device control is changed from the first interaction interface. When an interactive interface moves to the second interactive interface, the communication connection between the Bluetooth device and the first application is disconnected, and the communication connection between the Bluetooth device and the second application corresponding to the second interactive interface is established.

示例性地,用户原本将第一蓝牙设备X+与屏幕A进行通信连接,若用户想要将第一蓝牙设备X+切换为与屏幕B连接,以使第一蓝牙设备X+播放屏幕B中应用程序的音频,则如图8所示,用户将屏幕A中显示的第一蓝牙设备X+的标识802从屏幕A移动至屏幕B,此时断开第一蓝牙设备X+与屏幕A的连接,并建立第一蓝牙设备X+与屏幕B的连接,用户能够通过第一蓝牙设备X+接听到屏幕B中应用程序的音频。同理,第一蓝牙设备X+的标识在屏幕B中时,用户也可以拖动至屏幕A。Exemplarily, the user originally connected the first Bluetooth device X+ to the screen A for communication. If the user wants to switch the first Bluetooth device X+ to be connected to the screen B, so that the first Bluetooth device X+ can play the application program in the screen B. Audio, then as shown in Figure 8, the user moves the logo 802 of the first Bluetooth device X+ displayed in the screen A from the screen A to the screen B, and disconnects the connection between the first Bluetooth device X+ and the screen A at this time, and establishes the first Bluetooth device X+ When a Bluetooth device X+ is connected to the screen B, the user can listen to the audio of the application program in the screen B through the first Bluetooth device X+. Similarly, when the logo of the first Bluetooth device X+ is on screen B, the user can also drag it to screen A.

通过上述方式,在需要对某个屏幕连接的蓝牙设备进行更改时,用户通过简单的操作即可实现屏幕与蓝牙设备的连接关系的切换,无需进行手动的断开连接、重新连接新的蓝牙设备的操作,提高了切换屏幕连接的蓝牙设备的效率。Through the above method, when the Bluetooth device connected to a certain screen needs to be changed, the user can switch the connection relationship between the screen and the Bluetooth device through a simple operation, without manually disconnecting and reconnecting the new Bluetooth device. , which improves the efficiency of switching the Bluetooth devices connected to the screen.

另外,需要说明的是,通过在交互界面中显示蓝牙设备控件,能够使用户明确知道蓝牙设备在接听哪个屏幕上的应用程序的内容。In addition, it should be noted that by displaying the Bluetooth device control in the interactive interface, the user can clearly know the content of the application on which screen the Bluetooth device is listening to.

可选地,响应于第一输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接之前,还包括:按照至少两个交互界面中各个应用程序所在的交互界面,为各个应用程序添加界面属性;响应于第一输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,包括:响应于第一输入,根据各个应用程序对应的界面属性,确定第一交互界面对应的第一应用程序,并建立第一应用程序与蓝牙设备之间的通信连接。Optionally, in response to the first input, before establishing the communication connection between the first application program corresponding to the first interaction interface and the Bluetooth device, the method further includes: according to the interaction interface where each application program in the at least two interaction interfaces is located, for Each application program adds interface attributes; in response to the first input, establishing a communication connection between the first application program corresponding to the first interactive interface and the Bluetooth device includes: in response to the first input, according to the interface attributes corresponding to each application program, A first application program corresponding to the first interactive interface is determined, and a communication connection between the first application program and the Bluetooth device is established.

可选地,为不同交互界面内的应用程序添加对应的交互界面的界面属性,例如,第一应用程序的应用图标位于第一交互界面中,则为第一应用程序添加第一交互界面的界面属性。Optionally, add the interface attributes of the corresponding interactive interface for applications in different interactive interfaces, for example, if the application icon of the first application is located in the first interactive interface, then add the interface of the first interactive interface to the first application. Attributes.

在接收到用户的第一输入后,根据各个应用程序对应的界面属性,确定第一交互界面所对应的第一应用程序,进而建立第一应用程序与蓝牙设备之间的通信连接。After receiving the first input from the user, the first application corresponding to the first interactive interface is determined according to the interface attributes corresponding to each application, and a communication connection between the first application and the Bluetooth device is established.

通过上述方式,在进行蓝牙设备连接某个交互界面时,根据界面属性确定蓝牙设备所需要连接的应用程序,保证蓝牙设备与应用程序的准确性。In the above manner, when the Bluetooth device is connected to an interactive interface, the application program to be connected by the Bluetooth device is determined according to the interface attribute, so as to ensure the accuracy of the Bluetooth device and the application program.

在一个实施例中,提供了一种蓝牙连接方法,本实施例可应用于电子设备与音频输出设备建立通信连接的场景,音频输出设备例如蓝牙耳机、蓝牙音响等。该方法包括以下步骤:In one embodiment, a Bluetooth connection method is provided, and this embodiment can be applied to a scenario where an electronic device establishes a communication connection with an audio output device, such as a Bluetooth headset, a Bluetooth speaker, and the like. The method includes the following steps:

首先,在与音频输出设备已配对且在至少两个交互界面中分别显示屏幕选择控件的情况下,接收用户对第一交互界面中显示的屏幕选择控件的第一输入,至少两个交互界面分别显示在不同的屏幕;First, in the case that the audio output device has been paired and the screen selection controls are displayed in the at least two interactive interfaces respectively, a first input from the user to the screen selection controls displayed in the first interactive interface is received, and the at least two interactive interfaces are respectively displayed on different screens;

接着,响应于第一输入,建立第一交互界面对应的第一应用程序与音频输出设备之间的通信连接;Next, in response to the first input, establishing a communication connection between the first application corresponding to the first interactive interface and the audio output device;

接着,获取第一交互界面对应的音频应用程序输出的音频数据,将音频数据传递至音频输出设备,通过音频输出设备输出音频数据。Next, the audio data output by the audio application program corresponding to the first interactive interface is acquired, the audio data is transmitted to the audio output device, and the audio data is output through the audio output device.

本实施例中,由于至少两个交互界面分别显示在电子设备的不同屏幕,由此,实现电子设备分屏幕连接音频输出设备,使得不同的屏幕将音频数据输出至不同的音频输出设备,避免了电子设备与蓝牙设备连接的情况下,再与另外的蓝牙设备连接时的繁琐操作。In this embodiment, since at least two interactive interfaces are respectively displayed on different screens of the electronic device, the electronic device is connected to the audio output device in separate screens, so that different screens output audio data to different audio output devices, avoiding the need for When the electronic device is connected to a Bluetooth device, it is a cumbersome operation when it is connected to another Bluetooth device.

需要说明的是,相关技术中的电子设备的音频信号传递至音频输出设备的过程如图9所示,电子设备包括应用程序9102、解码芯片9104以及第一通信模块9106(例如蓝牙模块),音频输出设备中包括第二通信模块9202(例如蓝牙模块)、数模转换模块9204、信号放大模块9206以及放声模块9208。其中,解码芯片9104对应用程序9102的音乐文件进行解码,产生数字信号之后,通过第一通信模块9106发送给音频输出设备。音频输出设备接收数字信号,并通过数模转换模块9204把数字信号转换成人耳能听懂的模拟信号,信号放大模块9206将模拟信号进行放大,放声模块9208接收到放大后的模拟信号并发出声音,此时人耳便听到了应用程序9102的音乐。It should be noted that the process of transmitting the audio signal of the electronic device in the related art to the audio output device is shown in FIG. 9 . The output device includes a second communication module 9202 (eg, a Bluetooth module), a digital-to-analog conversion module 9204 , a signal amplification module 9206 and a sound playback module 9208 . Wherein, the decoding chip 9104 decodes the music file of the application program 9102, and after generating the digital signal, it is sent to the audio output device through the first communication module 9106. The audio output device receives the digital signal and converts the digital signal into an analog signal that can be understood by the human ear through the digital-to-analog conversion module 9204. The signal amplification module 9206 amplifies the analog signal, and the sound-playing module 9208 receives the amplified analog signal and emits sound. , the human ear can hear the music of the application 9102.

在本申请实施例中,为了保证不同屏幕的应用程序的音频信号传递至对应的音频输出设备,如图10所示,在电子设备中增加应用识别模块9108和设备筛选模块9110,应用识别模块9108用于识别应用程序所运行的屏幕,设备筛选模块9110用于选择音频输出设备。In this embodiment of the present application, in order to ensure that audio signals of applications on different screens are transmitted to the corresponding audio output devices, as shown in FIG. 10 , an application identification module 9108 and a device screening module 9110 are added to the electronic device. The application identification module 9108 Used to identify the screen on which the application is running, and the device screening module 9110 is used to select an audio output device.

电子设备与音频输出设备配对后,存储该音频输出设备的设备标识。在将音频输出设备与第一交互界面的第一应用程序通信连接后,当第一应用程序开始产生音频信号时,通过应用识别模块9108确定该第一应用程序是运行于第一交互界面的,再通过设备筛选模块9110在所有与电子设备连接的设备的设备标识中确定出该音频输出设备的设备标识,实现选择该音频信号的传输对象,进而将第一应用程序的音频信号发送至音频输出设备。After the electronic device is paired with the audio output device, the device identifier of the audio output device is stored. After the audio output device is communicatively connected to the first application of the first interactive interface, when the first application starts to generate an audio signal, the application identification module 9108 determines that the first application is running on the first interactive interface, Then determine the device identification of the audio output device in the device identification of all devices connected with the electronic equipment through the device screening module 9110, realize the selection of the transmission object of the audio signal, and then send the audio signal of the first application to the audio output. equipment.

示例性地,首先用户Y选择了将第二蓝牙设备Y+与电子设备的屏幕B进行通信连接。音频应用打开并进行音频播放时,通过应用识别模块9108判断该音频应用在电子设备的哪个屏幕运行,当确认音频应用在屏幕B运行时,应用识别模块9108将音频信号传输至解码芯片9104产生数字信号,设备筛选模块9110确定与屏幕B连接的是第二蓝牙设备Y+,则第一通信模块9106将数字信号发送给第二蓝牙设备Y+,实现将音频应用的音频信号送达至第二蓝牙设备Y+。Exemplarily, first, the user Y selects to connect the second Bluetooth device Y+ to the screen B of the electronic device for communication. When the audio application is opened and audio is played, the application identification module 9108 determines which screen of the electronic device the audio application is running on. When it is confirmed that the audio application is running on screen B, the application identification module 9108 transmits the audio signal to the decoding chip 9104 to generate a digital signal. signal, the device screening module 9110 determines that the second bluetooth device Y+ is connected to the screen B, then the first communication module 9106 sends the digital signal to the second bluetooth device Y+, so that the audio signal of the audio application is sent to the second bluetooth device. Y+.

若通过应用识别模块9108确认音频应用在屏幕A运行,且屏幕A没有连接的蓝牙设备时,应用识别模块9108不进行音频信号透传,则音频信号不会被送达至第二蓝牙设备Y+,即使电子设备播放该音频,第二蓝牙设备Y+也听不到。若此时有第一蓝牙设备X+连接到屏幕A,则应用识别模块9108进行音频透传,但是在设备筛选环节,设备筛选模块9110选择使用第一蓝牙设备X+,这样保证了音频传递至第一蓝牙设备X+。If it is confirmed by the application identification module 9108 that the audio application is running on the screen A, and there is no Bluetooth device connected to the screen A, the application identification module 9108 does not transparently transmit the audio signal, and the audio signal will not be sent to the second Bluetooth device Y+, Even if the electronic device plays the audio, the second Bluetooth device Y+ cannot hear it. If the first Bluetooth device X+ is connected to the screen A at this time, the application identification module 9108 performs audio transparent transmission, but in the device screening process, the device screening module 9110 chooses to use the first Bluetooth device X+, which ensures that the audio is transmitted to the first Bluetooth device X+. Bluetooth Device X+.

通过上述方式,实现某个屏幕中的应用程序的音频信号对应由其连接的蓝牙设备进行播放,使得不同屏幕的音频信号分别由不同的蓝牙设备播放,避免了电子设备与蓝牙设备连接的情况下,再与另外的蓝牙设备连接时的繁琐操作。Through the above method, the audio signal of the application program in a certain screen is played corresponding to the Bluetooth device connected to it, so that the audio signals of different screens are played by different Bluetooth devices respectively, avoiding the situation that the electronic device is connected with the Bluetooth device. , and the cumbersome operation when connecting with another Bluetooth device.

可选地,该方法还包括:在与至少两个蓝牙设备已配对的情况下,在至少两个交互界面中显示至少两个蓝牙设备分别对应的蓝牙设备控件;对于每个蓝牙设备控件,响应于用于将蓝牙设备控件移动至至少两个交互界面中的其中一个交互界面的第三输入,建立蓝牙设备控件对应的蓝牙设备与移动至的交互界面对应的应用程序之间的通信连接。Optionally, the method further includes: in the case of pairing with at least two Bluetooth devices, displaying Bluetooth device controls corresponding to the at least two Bluetooth devices respectively in the at least two interactive interfaces; for each Bluetooth device control, responding Based on the third input for moving the Bluetooth device control to one of the at least two interactive interfaces, a communication connection is established between the Bluetooth device corresponding to the Bluetooth device control and the application corresponding to the moved interactive interface.

其中,第三输入可以为对蓝牙设备控件的滑动输入,能够将蓝牙设备控件移动至至少两个交互界面中的其中一个交互界面。The third input may be a sliding input to the Bluetooth device control, which can move the Bluetooth device control to one of the at least two interactive interfaces.

可选地,当多于一个蓝牙设备同时请求连接不同的交互界面的应用程序时,用户可通过拖动蓝牙设备的蓝牙设备控件到对应的交互界面,实现不同蓝牙设备不同的交互界面对应的应用程序建立通信连接。Optionally, when more than one bluetooth device requests to connect applications with different interactive interfaces at the same time, the user can drag the bluetooth device control of the bluetooth device to the corresponding interactive interface to realize the application corresponding to the different interactive interfaces of different bluetooth devices. The program establishes a communication connection.

示例性地,如图11所示,第一蓝牙设备X+、第二蓝牙设备Y+以及第三蓝牙设备M+请求连接电子设备的不同屏幕,电子设备上分别显示第一蓝牙设备X+的控件1102、第二蓝牙设备Y+的控件1104以及第三蓝牙设备M+的控件1106,并且上述控件可以显示于屏幕A与屏幕B的交界处,以表示未与屏幕A和屏幕B中任一个进行通信连接。当然,也可以在电子设备上显示一个悬浮的弹窗,在该弹窗中显示蓝牙设备的蓝牙设备控件。Exemplarily, as shown in FIG. 11 , the first Bluetooth device X+, the second Bluetooth device Y+ and the third Bluetooth device M+ request to connect to different screens of the electronic device, and the electronic devices display the controls 1102 of the first Bluetooth device X+, The control 1104 of the second bluetooth device Y+ and the control 1106 of the third bluetooth device M+, and the above-mentioned controls can be displayed at the junction of screen A and screen B to indicate that there is no communication connection with either screen A or screen B. Of course, a floating pop-up window may also be displayed on the electronic device, and the Bluetooth device controls of the Bluetooth device are displayed in the pop-up window.

如图12所示,当用户将第一蓝牙设备X+的控件1102拖动至屏幕A,将第二蓝牙设备Y+的控件1104和第三蓝牙设备M+的控件1106拖动至屏幕B,则实现第一蓝牙设备X+的应用程序与屏幕A通信连接,第二蓝牙设备Y+和第三蓝牙设备M+的应用程序与屏幕B通信连接。As shown in FIG. 12 , when the user drags the control 1102 of the first Bluetooth device X+ to screen A, and drags the control 1104 of the second Bluetooth device Y+ and the control 1106 of the third Bluetooth device M+ to screen B, the first An application program of a bluetooth device X+ is communicatively connected to the screen A, and the applications of the second bluetooth device Y+ and the third bluetooth device M+ are communicatively connected to the screen B.

除了拖动的交互方式,还可以对需要连接屏幕B的蓝牙设备进行选定,例如,用户点击了第二蓝牙设备Y+的控件1104以及第三蓝牙设备M+的控件1106后,电子设备显示“连接屏幕A”和“连接屏幕B”的两个选项,然后用户点击“连接屏幕B”的选项,第二蓝牙设备Y+和第三蓝牙设备M+与屏幕B通信连接。In addition to the interactive method of dragging, the Bluetooth device that needs to be connected to screen B can also be selected. For example, after the user clicks the control 1104 of the second Bluetooth device Y+ and the control 1106 of the third Bluetooth device M+, the electronic device displays "connection". There are two options of "screen A" and "connect to screen B", and then the user clicks the option of "connect to screen B", the second bluetooth device Y+ and the third bluetooth device M+ are connected to the screen B in communication.

通过上述方式,实现在多个蓝牙设备请求连接电子设备的不同屏幕的情况下,能够通过简单的操作实现不同蓝牙设备与不同屏幕的应用程序的通信连接,提高了电子设备与蓝牙设备间的通信连接效率。Through the above method, when multiple Bluetooth devices request to connect to different screens of the electronic device, the communication connection between different Bluetooth devices and applications on different screens can be realized through simple operations, which improves the communication between the electronic device and the Bluetooth device. connection efficiency.

可选地,在与至少两个蓝牙设备已配对的情况下,蓝牙设备为第一蓝牙设备;方法还包括:在建立第一交互界面对应的第一应用程序与第一蓝牙设备之间的通信连接后,接收用户对第一交互界面的第四输入;响应于第四输入,建立第一交互界面对应的第一应用程序与至少两个蓝牙设备中的第二蓝牙设备之间的通信连接。Optionally, when paired with at least two Bluetooth devices, the Bluetooth device is the first Bluetooth device; the method further includes: establishing communication between the first application corresponding to the first interaction interface and the first Bluetooth device After the connection is made, a fourth input from the user on the first interactive interface is received; in response to the fourth input, a communication connection between the first application corresponding to the first interactive interface and the second bluetooth device of the at least two bluetooth devices is established.

其中,第四输入包括但不限于单击输入、双击输入、滑动输入、按压输入等。具体地,本申请实施例对该输入的方式不作具体限定,可为任一可实现的方式。The fourth input includes, but is not limited to, single-click input, double-click input, sliding input, pressing input, and the like. Specifically, the embodiment of the present application does not specifically limit the input manner, and may be any achievable manner.

可选地,一个屏幕可对应连接多个蓝牙设备。具体地,在建立第一交互界面对应的第一应用程序与第一蓝牙设备之间的通信连接后,再次接收用户对第一交互界面的第四输入,响应于该第四输入,建立第一交互界面对应的第一应用程序与第二蓝牙设备之间的通信连接。Optionally, one screen can be connected to multiple Bluetooth devices correspondingly. Specifically, after the communication connection between the first application corresponding to the first interaction interface and the first Bluetooth device is established, a fourth input from the user to the first interaction interface is received again, and in response to the fourth input, the first application is established. The communication connection between the first application corresponding to the interactive interface and the second Bluetooth device.

通过上述方式,在电子设备与蓝牙设备已配对的情况下,电子设备接收用户对至少两个交互界面中的第一交互界面的第四输入,响应于该输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,由于至少两个交互界面分别显示在电子设备的不同屏幕,由此,实现了电子设备分屏幕连接蓝牙设备,避免了电子设备与蓝牙设备连接的情况下,再与另外的蓝牙设备连接时的繁琐操作。In the above manner, in the case that the electronic device and the Bluetooth device have been paired, the electronic device receives the fourth input from the user to the first interactive interface among the at least two interactive interfaces, and in response to the input, establishes a fourth input corresponding to the first interactive interface. In the communication connection between an application and a Bluetooth device, since at least two interactive interfaces are displayed on different screens of the electronic device, the electronic device can be connected to the Bluetooth device in separate screens, and the connection between the electronic device and the Bluetooth device is avoided. , the tedious operation when connecting with another Bluetooth device.

本申请实施例提供的蓝牙连接方法,执行主体可以为蓝牙连接装置。本申请实施例中以蓝牙连接装置执行蓝牙连接方法为例,说明本申请实施例提供的蓝牙连接装置。In the Bluetooth connection method provided by the embodiments of the present application, the execution body may be a Bluetooth connection device. In the embodiment of the present application, the Bluetooth connection device provided by the embodiment of the present application is described by taking the Bluetooth connection device executing the Bluetooth connection method as an example.

本申请实施例提供了一种蓝牙连接装置,如图13所示,该蓝牙连接装置1300包括:An embodiment of the present application provides a Bluetooth connection device. As shown in FIG. 13 , the Bluetooth connection device 1300 includes:

接收模块1302,用于在与蓝牙设备已配对的情况下,接收用户对至少两个交互界面中的第一交互界面的第一输入,至少两个交互界面分别显示在不同的屏幕;a receiving module 1302, configured to receive a first input from a user to a first interactive interface of the at least two interactive interfaces when paired with a Bluetooth device, and the at least two interactive interfaces are respectively displayed on different screens;

连接模块1304,用于响应于第一输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接。The connection module 1304 is configured to, in response to the first input, establish a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device.

可选地,在电子设备与蓝牙设备已配对的情况下,电子设备接收用户对至少两个交互界面中的第一交互界面的第一输入,至少两个交互界面分别显示在电子设备的不同的屏幕。响应于该输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接。Optionally, in the case that the electronic device and the Bluetooth device have been paired, the electronic device receives the first input from the user to the first interactive interface of the at least two interactive interfaces, and the at least two interactive interfaces are respectively displayed on different parts of the electronic device. Screen. In response to the input, a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device is established.

可选地,电子设备具有至少两个屏幕,每个屏幕对应有交互界面。例如,电子设备可以是具有可扩展屏幕的电子设备,可扩展屏幕例如折叠屏、双面屏、卷轴屏等。其中,双面屏可以是由正反屏幕构成的双面屏幕,卷轴屏可以是由固定屏幕和扩展屏幕构成的、具有伸缩功能的屏幕。Optionally, the electronic device has at least two screens, and each screen corresponds to an interactive interface. For example, the electronic device may be an electronic device having an expandable screen, such as a folding screen, a double-sided screen, a scroll screen, and the like. Wherein, the double-sided screen may be a double-sided screen composed of front and back screens, and the scroll screen may be a screen with a telescopic function composed of a fixed screen and an extended screen.

可选地,蓝牙设备可以是手机、蓝牙耳机、蓝牙音响、可穿戴设备等具有蓝牙连接功能的电子设备。Optionally, the Bluetooth device may be an electronic device with a Bluetooth connection function, such as a mobile phone, a Bluetooth headset, a Bluetooth audio device, and a wearable device.

可选地,电子设备与蓝牙设备进行配对是指电子设备与蓝牙设备通过一个已建立的无线连接能够相互进行识别及通信。Optionally, pairing the electronic device with the Bluetooth device means that the electronic device and the Bluetooth device can identify and communicate with each other through an established wireless connection.

可选地,第一交互界面对应的第一应用程序,可以是应用图标位于第一交互界面中的应用程序,也可以是在后台与第一交互界面绑定的应用程序。Optionally, the first application program corresponding to the first interaction interface may be an application program whose application icon is located in the first interaction interface, or may be an application program bound with the first interaction interface in the background.

可选地,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接后,第一交互界面对应的第一应用程序与蓝牙设备之间进行数据交互。第一应用程序与蓝牙设备之间交互的数据可以是音频、视频、文档、图像等数据,使得蓝牙设备能够实现第一应用程序相关的音频、视频的播放,或者实现第一应用程序相关的文档、图像的显示。Optionally, after establishing the communication connection between the first application program corresponding to the first interaction interface and the Bluetooth device, data interaction is performed between the first application program corresponding to the first interaction interface and the Bluetooth device. The data interacted between the first application and the Bluetooth device may be data such as audio, video, documents, images, etc., so that the Bluetooth device can realize the playback of audio and video related to the first application, or realize the documents related to the first application. , the display of the image.

可选地,与电子设备建立通信连接的蓝牙设备可以为多个,不同交互界面可以分别与不同的蓝牙设备建立通信连接,对于同一个交互界面,也可以与至少两个蓝牙设备建立通信连接。Optionally, there may be multiple Bluetooth devices that establish communication connections with the electronic device, different interaction interfaces may establish communication connections with different Bluetooth devices respectively, and for the same interaction interface, communication connections may also be established with at least two Bluetooth devices.

本申请实施例,在电子设备与蓝牙设备已配对的情况下,电子设备接收用户对至少两个交互界面中的第一交互界面的第一输入,响应于该输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,由于至少两个交互界面分别显示在电子设备的不同屏幕,由此,实现了电子设备分屏幕连接蓝牙设备,避免了电子设备与蓝牙设备连接的情况下,再与另外的蓝牙设备连接时的繁琐操作。In this embodiment of the present application, in the case where the electronic device and the Bluetooth device have been paired, the electronic device receives a first input from the user on the first interactive interface of the at least two interactive interfaces, and in response to the input, establishes a corresponding first interactive interface. In the communication connection between the first application and the Bluetooth device, since at least two interactive interfaces are displayed on different screens of the electronic device respectively, the electronic device is connected to the Bluetooth device in separate screens, and the connection between the electronic device and the Bluetooth device is avoided. In this case, it is a cumbersome operation when connecting with another Bluetooth device.

可选地,接收模块1302,具体用于在与蓝牙设备已配对且在至少两个交互界面中分别显示屏幕选择控件的情况下,接收用户对第一交互界面中显示的屏幕选择控件的第一输入。Optionally, the receiving module 1302 is specifically configured to receive the user's first response to the screen selection control displayed in the first interactive interface under the condition that it has been paired with the Bluetooth device and the screen selection controls displayed in the at least two interactive interfaces respectively. enter.

可选地,第一应用程序为音频应用程序;蓝牙设备为音频输出设备;该蓝牙连接装置1300还包括:获取模块,用于获取第一交互界面对应的音频应用程序输出的音频数据;发送模块,用于将音频数据传递至音频输出设备,通过音频输出设备输出音频数据。Optionally, the first application is an audio application; the Bluetooth device is an audio output device; the Bluetooth connection device 1300 further includes: an acquiring module for acquiring audio data output by the audio application corresponding to the first interactive interface; a sending module , which is used to transmit audio data to an audio output device and output audio data through the audio output device.

可选地,该蓝牙连接装置1300还包括:显示模块,用于在第一交互界面中显示蓝牙设备控件;接收模块1302,还用于接收用于将蓝牙设备控件由第一交互界面移动至至少两个交互界面中的第二交互界面的第二输入;连接模块1304,还用于响应于第二输入,断开第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,并建立第二交互界面对应的第二应用程序与蓝牙设备之间的通信连接。Optionally, the Bluetooth connection device 1300 further includes: a display module for displaying the Bluetooth device controls in the first interactive interface; a receiving module 1302, further for receiving a control for moving the Bluetooth device from the first interactive interface to at least one The second input of the second interactive interface in the two interactive interfaces; the connection module 1304 is further configured to, in response to the second input, disconnect the communication connection between the first application corresponding to the first interactive interface and the Bluetooth device, and A communication connection between the second application program corresponding to the second interactive interface and the Bluetooth device is established.

可选地,添加模块,用于按照至少两个交互界面中各个应用程序所在的交互界面,为各个应用程序添加界面属性;连接模块1304,具体用于响应于第一输入,根据各个应用程序对应的界面属性,确定第一交互界面对应的第一应用程序,并建立第一应用程序与蓝牙设备之间的通信连接。Optionally, an adding module is used to add interface attributes for each application according to the interactive interface where each application is located in the at least two interactive interfaces; the connection module 1304 is specifically used to respond to the first input, according to the corresponding application of each application. The interface attribute is determined, the first application program corresponding to the first interactive interface is determined, and the communication connection between the first application program and the Bluetooth device is established.

可选地,显示模块,还用于在与至少两个蓝牙设备已配对的情况下,在至少两个交互界面中显示至少两个蓝牙设备分别对应的蓝牙设备控件;接收模块1302,还用于对于每个蓝牙设备控件,接收用于将蓝牙设备控件移动至至少两个交互界面中的其中一个交互界面的第三输入;连接模块1304,还用于响应于第三输入,建立蓝牙设备控件对应的蓝牙设备与移动至的交互界面对应的应用程序之间的通信连接。Optionally, the display module is further configured to display the respective corresponding Bluetooth device controls of the at least two Bluetooth devices in the at least two interactive interfaces when the at least two Bluetooth devices have been paired; the receiving module 1302 is further configured to For each Bluetooth device control, receive a third input for moving the Bluetooth device control to one of the at least two interactive interfaces; the connection module 1304 is further configured to, in response to the third input, establish a corresponding Bluetooth device control The communication connection between the Bluetooth device and the application corresponding to the interactive interface of the mobile to.

可选地,在与至少两个蓝牙设备已配对的情况下,蓝牙设备为第一蓝牙设备;接收模块1302,还用于在建立第一交互界面对应的第一应用程序与第一蓝牙设备之间的通信连接后,接收用户对第一交互界面的第四输入;连接模块1304,还用于响应于第四输入,建立第一交互界面对应的第一应用程序与至少两个蓝牙设备中的第二蓝牙设备之间的通信连接。Optionally, when paired with at least two Bluetooth devices, the Bluetooth device is the first Bluetooth device; the receiving module 1302 is further configured to establish a relationship between the first application corresponding to the first interaction interface and the first Bluetooth device. After the communication connection between the two, receive the fourth input from the user to the first interactive interface; the connection module 1304 is further configured to, in response to the fourth input, establish the first application corresponding to the first interactive interface and the at least two Bluetooth devices. A communication connection between the second Bluetooth devices.

本申请实施例中的蓝牙连接装置1300可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The Bluetooth connection apparatus 1300 in this embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a PDA, a vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR)/virtual reality (VR) ) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook or personal digital assistant (PDA), etc., and can also be a server, network attached storage (NAS) ), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., which are not specifically limited in the embodiments of the present application.

本申请实施例中的蓝牙连接装置1300可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The Bluetooth connection device 1300 in this embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

本申请实施例提供的蓝牙连接装置1300能够实现图1的蓝牙连接方法实施例实现的各个过程,为避免重复,这里不再赘述。The Bluetooth connection device 1300 provided in this embodiment of the present application can implement each process implemented in the embodiment of the Bluetooth connection method in FIG. 1 , and to avoid repetition, details are not described here.

可选地,如图14所示,本申请实施例还提供一种电子设备1400,包括处理器1402和存储器1404,存储器1404上存储有可在处理器1402上运行的程序或指令,该程序或指令被处理器1402执行时实现上述蓝牙连接方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 14 , an embodiment of the present application further provides an electronic device 1400, including a processor 1402 and a memory 1404, and the memory 1404 stores a program or instruction that can run on the processor 1402, the program or When the instruction is executed by the processor 1402, each step of the above-mentioned embodiment of the Bluetooth connection method is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图15为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 15 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备1500包括但不限于:射频单元1502、网络模块1504、音频输出单元1506、输入单元1508、传感器1510、显示单元1512、用户输入单元1514、接口单元1516、存储器1518、以及处理器1520等部件。The electronic device 1500 includes but is not limited to: a radio frequency unit 1502, a network module 1504, an audio output unit 1506, an input unit 1508, a sensor 1510, a display unit 1512, a user input unit 1514, an interface unit 1516, a memory 1518, and a processor 1520, etc. part.

本领域技术人员可以理解,电子设备1500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1520逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图15中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1520 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 15 does not constitute a limitation to the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .

其中,用户输入单元1514,用于在与蓝牙设备已配对的情况下,接收用户对至少两个交互界面中的第一交互界面的第一输入,至少两个交互界面分别显示在不同的屏幕;处理器1520,用于响应于第一输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接。Wherein, the user input unit 1514 is configured to receive the first input from the user to the first interactive interface of the at least two interactive interfaces when paired with the Bluetooth device, and the at least two interactive interfaces are respectively displayed on different screens; The processor 1520 is configured to, in response to the first input, establish a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device.

可选地,在电子设备与蓝牙设备已配对的情况下,电子设备接收用户对至少两个交互界面中的第一交互界面的第一输入,至少两个交互界面分别显示在电子设备的不同的屏幕。响应于该输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接。Optionally, in the case that the electronic device and the Bluetooth device have been paired, the electronic device receives the first input from the user to the first interactive interface of the at least two interactive interfaces, and the at least two interactive interfaces are respectively displayed on different parts of the electronic device. Screen. In response to the input, a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device is established.

可选地,电子设备具有至少两个屏幕,每个屏幕对应有交互界面。例如,电子设备可以是具有可扩展屏幕的电子设备,可扩展屏幕例如折叠屏、双面屏、卷轴屏等。其中,双面屏可以是由正反屏幕构成的双面屏幕,卷轴屏可以是由固定屏幕和扩展屏幕构成的、具有伸缩功能的屏幕。Optionally, the electronic device has at least two screens, and each screen corresponds to an interactive interface. For example, the electronic device may be an electronic device having an expandable screen, such as a folding screen, a double-sided screen, a scroll screen, and the like. Wherein, the double-sided screen may be a double-sided screen composed of front and back screens, and the scroll screen may be a screen with a telescopic function composed of a fixed screen and an extended screen.

可选地,蓝牙设备可以是手机、蓝牙耳机、蓝牙音响、可穿戴设备等具有蓝牙连接功能的电子设备。Optionally, the Bluetooth device may be an electronic device with a Bluetooth connection function, such as a mobile phone, a Bluetooth headset, a Bluetooth audio device, and a wearable device.

可选地,电子设备与蓝牙设备进行配对是指电子设备与蓝牙设备通过一个已建立的无线连接能够相互进行识别及通信。Optionally, pairing the electronic device with the Bluetooth device means that the electronic device and the Bluetooth device can identify and communicate with each other through an established wireless connection.

可选地,第一交互界面对应的第一应用程序,可以是应用图标位于第一交互界面中的应用程序,也可以是在后台与第一交互界面绑定的应用程序。Optionally, the first application program corresponding to the first interaction interface may be an application program whose application icon is located in the first interaction interface, or may be an application program bound with the first interaction interface in the background.

可选地,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接后,第一交互界面对应的第一应用程序与蓝牙设备之间进行数据交互。第一应用程序与蓝牙设备之间交互的数据可以是音频、视频、文档、图像等数据,使得蓝牙设备能够实现第一应用程序相关的音频、视频的播放,或者实现第一应用程序相关的文档、图像的显示。Optionally, after establishing the communication connection between the first application program corresponding to the first interaction interface and the Bluetooth device, data interaction is performed between the first application program corresponding to the first interaction interface and the Bluetooth device. The data interacted between the first application and the Bluetooth device may be data such as audio, video, documents, images, etc., so that the Bluetooth device can realize the playback of audio and video related to the first application, or realize the documents related to the first application. , the display of the image.

可选地,与电子设备建立通信连接的蓝牙设备可以为多个,不同交互界面可以分别与不同的蓝牙设备建立通信连接,对于同一个交互界面,也可以与至少两个蓝牙设备建立通信连接。Optionally, there may be multiple Bluetooth devices that establish communication connections with the electronic device, different interaction interfaces may establish communication connections with different Bluetooth devices respectively, and for the same interaction interface, communication connections may also be established with at least two Bluetooth devices.

本申请实施例,在电子设备与蓝牙设备已配对的情况下,电子设备接收用户对至少两个交互界面中的第一交互界面的第一输入,响应于该输入,建立第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,由于至少两个交互界面分别显示在电子设备的不同屏幕,由此,实现了电子设备分屏幕连接蓝牙设备,避免了电子设备与蓝牙设备连接的情况下,再与另外的蓝牙设备连接时的繁琐操作。In this embodiment of the present application, in the case where the electronic device and the Bluetooth device have been paired, the electronic device receives a first input from the user on the first interactive interface of the at least two interactive interfaces, and in response to the input, establishes a corresponding first interactive interface. In the communication connection between the first application and the Bluetooth device, since at least two interactive interfaces are displayed on different screens of the electronic device respectively, the electronic device is connected to the Bluetooth device in a split screen, and the connection between the electronic device and the Bluetooth device is avoided. In this case, it is a cumbersome operation when connecting with another Bluetooth device.

可选地,用户输入单元1514,具体用于在与蓝牙设备已配对且在至少两个交互界面中分别显示屏幕选择控件的情况下,接收用户对第一交互界面中显示的屏幕选择控件的第一输入。Optionally, the user input unit 1514 is specifically configured to receive the user's first input on the screen selection control displayed in the first interactive interface under the condition that it has been paired with the Bluetooth device and the screen selection controls are displayed in the at least two interactive interfaces respectively. an input.

可选地,第一应用程序为音频应用程序;蓝牙设备为音频输出设备;处理器1520,还用于获取第一交互界面对应的音频应用程序输出的音频数据;射频单元1502,用于将音频数据传递至音频输出设备,通过音频输出设备输出音频数据。Optionally, the first application is an audio application; the Bluetooth device is an audio output device; the processor 1520 is further configured to acquire audio data output by the audio application corresponding to the first interactive interface; the radio frequency unit 1502 is used to convert the audio The data is passed to the audio output device, and the audio data is output through the audio output device.

可选地,显示单元1512,用于在第一交互界面中显示蓝牙设备控件;用户输入单元1514,还用于接收用于将蓝牙设备控件由第一交互界面移动至至少两个交互界面中的第二交互界面的第二输入,处理器1520,还用于响应于第二输入,断开第一交互界面对应的第一应用程序与蓝牙设备之间的通信连接,并建立第二交互界面对应的第二应用程序与蓝牙设备之间的通信连接。Optionally, the display unit 1512 is configured to display the Bluetooth device control in the first interactive interface; the user input unit 1514 is further configured to receive the control input for moving the Bluetooth device from the first interactive interface to the at least two interactive interfaces. The second input of the second interactive interface, the processor 1520 is further configured to, in response to the second input, disconnect the communication connection between the first application corresponding to the first interactive interface and the Bluetooth device, and establish a corresponding second interactive interface The communication connection between the second application and the bluetooth device.

可选地,处理器1520,还用于按照至少两个交互界面中各个应用程序所在的交互界面,为各个应用程序添加界面属性;处理器1520,具体用于响应于第一输入,根据各个应用程序对应的界面属性,确定第一交互界面对应的第一应用程序,并建立第一应用程序与蓝牙设备之间的通信连接。Optionally, the processor 1520 is further configured to add interface attributes for each application program according to the interactive interface where each application program in the at least two interactive interfaces is located; The interface attribute corresponding to the program determines the first application program corresponding to the first interactive interface, and establishes a communication connection between the first application program and the Bluetooth device.

可选地,显示单元1512,还用于在与至少两个蓝牙设备已配对的情况下,在至少两个交互界面中显示至少两个蓝牙设备分别对应的蓝牙设备控件;用户输入单元1514,还用于对于每个蓝牙设备控件,接收用于将蓝牙设备控件移动至至少两个交互界面中的其中一个交互界面的第三输入;处理器1520,还用于响应于三输入,建立蓝牙设备控件对应的蓝牙设备与移动至的交互界面对应的应用程序之间的通信连接。Optionally, the display unit 1512 is further configured to display the respective Bluetooth device controls corresponding to the at least two Bluetooth devices in the at least two interactive interfaces when the at least two Bluetooth devices have been paired; the user input unit 1514 is further configured to for each Bluetooth device control, receiving a third input for moving the Bluetooth device control to one of the at least two interactive interfaces; the processor 1520 is further configured to establish the Bluetooth device control in response to the three inputs The communication connection between the corresponding Bluetooth device and the application corresponding to the interactive interface moved to.

可选地,在与至少两个蓝牙设备已配对的情况下,蓝牙设备为第一蓝牙设备;用户输入单元1514,还用于在建立第一交互界面对应的第一应用程序与第一蓝牙设备之间的通信连接后,接收用户对第一交互界面的第四输入;处理器1520,还用于响应于第四输入,建立第一交互界面对应的第一应用程序与至少两个蓝牙设备中的第二蓝牙设备之间的通信连接。Optionally, in the case of pairing with at least two Bluetooth devices, the Bluetooth device is the first Bluetooth device; the user input unit 1514 is further configured to establish the first application corresponding to the first interaction interface and the first Bluetooth device. After the communication between the two devices is connected, a fourth input from the user to the first interactive interface is received; the processor 1520 is further configured to, in response to the fourth input, establish a first application corresponding to the first interactive interface and the at least two Bluetooth devices. the communication connection between the second bluetooth device.

应理解的是,本申请实施例中,输入单元1508可以包括图形处理器(GraphicsProcessing Unit,GPU)15082和麦克风15084,图形处理器15082对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1512可包括显示面板15122,可以采用液晶显示器、有机发光二极管等形式来配置显示面板15122。用户输入单元1514包括触控面板15142以及其他输入设备15144中的至少一种。触控面板15142,也称为触摸屏。触控面板15142可包括触摸检测装置和触摸控制器两个部分。其他输入设备15144可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in this embodiment of the present application, the input unit 1508 may include a graphics processor (Graphics Processing Unit, GPU) 15082 and a microphone 15084. camera) to process the image data of still pictures or videos. The display unit 1512 may include a display panel 15122, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1514 includes at least one of a touch panel 15142 and other input devices 15144 . Touch panel 15142, also known as touch screen. The touch panel 15142 may include two parts, a touch detection device and a touch controller. Other input devices 15144 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

存储器1518可用于存储软件程序以及各种数据。存储器1518可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1518可以包括易失性存储器或非易失性存储器,或者,存储器1518可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1518包括但不限于这些和任意其它适合类型的存储器。Memory 1518 may be used to store software programs as well as various data. The memory 1518 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, image playback function, etc.), etc. Further, memory 1518 may include volatile memory or non-volatile memory, or memory 1518 may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous random access memory) DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 1518 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器1520可包括一个或多个处理单元;可选的,处理器1520集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1520中。The processor 1520 may include one or more processing units; optionally, the processor 1520 integrates an application processor and a modem processor, wherein the application processor mainly processes operations involving an operating system, a user interface, and an application program, etc. Modem processors mainly deal with wireless communication signals, such as baseband processors. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1520.

本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述蓝牙连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing Bluetooth connection method embodiment can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here.

其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, and the like.

本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述蓝牙连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used for running a program or an instruction to implement each process of the above-mentioned Bluetooth connection method embodiment, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述蓝牙连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned Bluetooth connection method embodiments, and can achieve the same technical effect , in order to avoid repetition, it will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of computer software products that are essentially or contribute to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk , CD-ROM), including several instructions to enable a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (10)

1. A bluetooth connection method, the method comprising:
under the condition that the Bluetooth equipment is paired, receiving a first input of a user to a first interactive interface of at least two interactive interfaces, wherein the at least two interactive interfaces are respectively displayed on different screens;
and responding to the first input, and establishing communication connection between a first application program corresponding to the first interactive interface and the Bluetooth device.
2. The method of claim 1, wherein receiving a first input from a user to a first interactive interface of the at least two interactive interfaces after pairing with the bluetooth device comprises:
receiving a first input of a user to a screen selection control displayed in the first interactive interface if the Bluetooth device is paired and the screen selection controls are respectively displayed in the at least two interactive interfaces.
3. The method of claim 1, wherein the first application is an audio application; the Bluetooth equipment is audio output equipment;
after establishing a communication connection between a first application program corresponding to the first interactive interface and the bluetooth device, the method further includes:
acquiring audio data output by the audio application program corresponding to the first interactive interface;
and transmitting the audio data to the audio output equipment, and outputting the audio data through the audio output equipment.
4. The method of claim 1, after establishing a communication connection between the first application program corresponding to the first interactive interface and the bluetooth device, further comprising: displaying a Bluetooth device control in the first interactive interface;
and responding to a second input for moving the Bluetooth device control from the first interactive interface to a second interactive interface of the at least two interactive interfaces, disconnecting the communication connection between the first application program corresponding to the first interactive interface and the Bluetooth device, and establishing the communication connection between the second application program corresponding to the second interactive interface and the Bluetooth device.
5. The method of claim 1, wherein before establishing a communication connection between a first application corresponding to the first interactive interface and the bluetooth device in response to the first input, the method further comprises:
adding interface attributes for each application program according to the interactive interface where each application program in the at least two interactive interfaces is located;
the establishing of the communication connection between the first application program corresponding to the first interactive interface and the bluetooth device in response to the first input comprises:
and responding to the first input, determining the first application program corresponding to the first interactive interface according to the interface attribute corresponding to each application program, and establishing communication connection between the first application program and the Bluetooth equipment.
6. The method of claim 1, further comprising:
under the condition that at least two Bluetooth devices are paired, displaying Bluetooth device controls respectively corresponding to the at least two Bluetooth devices in the at least two interactive interfaces;
and for each Bluetooth device control, responding to a third input for moving the Bluetooth device control to one of the at least two interactive interfaces, and establishing communication connection between the Bluetooth device corresponding to the Bluetooth device control and the application program corresponding to the moved interactive interface.
7. The method of claim 1, wherein the bluetooth device is a first bluetooth device if paired with at least two bluetooth devices;
the method further comprises the following steps:
after the communication connection between the first application program corresponding to the first interactive interface and the first Bluetooth device is established, receiving fourth input of a user to the first interactive interface;
and responding to the fourth input, and establishing a communication connection between a first application program corresponding to the first interactive interface and a second Bluetooth device in the at least two Bluetooth devices.
8. An apparatus for bluetooth connection, the apparatus comprising:
the receiving module is used for receiving a first input of a user to a first interactive interface of at least two interactive interfaces under the condition that the Bluetooth equipment is paired, and the at least two interactive interfaces are respectively displayed on different screens;
and the connection module is used for responding to the first input and establishing communication connection between the first application program corresponding to the first interactive interface and the Bluetooth equipment.
9. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the bluetooth connection method of any one of claims 1 to 7.
10. A readable storage medium on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the bluetooth connection method according to any one of claims 1 to 7.
CN202210256985.9A 2022-03-16 2022-03-16 Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium Pending CN114599020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210256985.9A CN114599020A (en) 2022-03-16 2022-03-16 Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210256985.9A CN114599020A (en) 2022-03-16 2022-03-16 Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN114599020A true CN114599020A (en) 2022-06-07

Family

ID=81809384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210256985.9A Pending CN114599020A (en) 2022-03-16 2022-03-16 Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114599020A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225121A (en) * 2022-07-04 2022-10-21 维沃移动通信有限公司 Bluetooth data output method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100304674A1 (en) * 2009-06-01 2010-12-02 Samsung Electronics Co. Ltd. System and method for connecting bluetooth devices
CN109743465A (en) * 2019-03-18 2019-05-10 维沃移动通信有限公司 A kind of audio data output method and terminal
CN110972334A (en) * 2019-12-09 2020-04-07 上海传英信息技术有限公司 Bluetooth pairing connection method and device and readable storage medium
CN113316131A (en) * 2021-05-27 2021-08-27 Oppo广东移动通信有限公司 Connection establishing method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100304674A1 (en) * 2009-06-01 2010-12-02 Samsung Electronics Co. Ltd. System and method for connecting bluetooth devices
CN109743465A (en) * 2019-03-18 2019-05-10 维沃移动通信有限公司 A kind of audio data output method and terminal
CN110972334A (en) * 2019-12-09 2020-04-07 上海传英信息技术有限公司 Bluetooth pairing connection method and device and readable storage medium
CN113316131A (en) * 2021-05-27 2021-08-27 Oppo广东移动通信有限公司 Connection establishing method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225121A (en) * 2022-07-04 2022-10-21 维沃移动通信有限公司 Bluetooth data output method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111913628B (en) Sharing method and device and electronic equipment
US11895426B2 (en) Method and apparatus for capturing video, electronic device and computer-readable storage medium
CN109710349B (en) Screen capturing method and mobile terminal
CN114422463A (en) Communication method, apparatus, electronic device and storage medium
WO2023155858A1 (en) Document editing method and apparatus
CN112118477A (en) Virtual gift display method, device, equipment and storage medium
US12019669B2 (en) Method, apparatus, device, readable storage medium and product for media content processing
CN114449391A (en) Recording method and device and electronic equipment
CN116320642B (en) Multimedia resource playback method, device, terminal and storage medium
AU2022203591A1 (en) Method and apparatus for switching display interface, and electronic device
CN111953852B (en) Call record generation method, device, terminal and storage medium
WO2024001956A1 (en) Video call method and apparatus, first electronic device, and second electronic device
CN114599020A (en) Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium
CN111556271B (en) Video call method, video call device and electronic equipment
WO2024041556A1 (en) Voice chat display method and apparatus, electronic device and computer-readable medium
CN115113845A (en) Volume adjusting method and device, electronic equipment and readable storage medium
WO2023109671A1 (en) Live broadcast information processing method and apparatus, and device and storage medium
WO2022267644A1 (en) Screen sharing method and system, and virtual display device
WO2023030292A1 (en) Multimedia file playback method and apparatus
CN114895813A (en) Information display method and device, electronic equipment and readable storage medium
JP6521154B2 (en) Communication device, method and program
CN113760211A (en) Control method and control device
JP2018503149A (en) Information input method, apparatus, program, and recording medium
CN115066892B (en) Data transmission method and data transmission system
CN116132565A (en) Display method, display device, electronic equipment and readable storage medium

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