Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium
By automatically establishing or switching the communication connection between the screen application and the Bluetooth device by receiving user input on a multi-screen electronic device, the problem of cumbersome connection operation in the prior art is solved, and a more efficient Bluetooth device usage experience is achieved.
Patent Information
- Application Number
- CN202210256985.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-16
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2042-03-16
AI Technical Summary
In the prior art, the operation of electronic devices and Bluetooth devices is complicated when connecting them, especially on multi-screen electronic devices, where users need to frequently disconnect and reconnect Bluetooth devices to achieve independent use between different users.
When the electronic device and the Bluetooth device are paired, by receiving the user's input to the interactive interface of different screens, the communication connection between the application corresponding to the screen and the Bluetooth device is automatically established or switched, thereby realizing the split screen connection and avoiding cumbersome reconnection operations.
It realizes that on multi-screen electronic devices, users can use Bluetooth devices independently on different screens without frequent disconnection and reconnection, improving operational efficiency and flexibility.
Smart Images

Figure CN114599020B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a Bluetooth connection method, a Bluetooth connection device, an electronic device, and a readable storage medium. Background Art
[0002] At present, there are more and more types of electronic devices, including electronic devices with multiple screens such as double-sided screens and folding screens. Multi-screen electronic devices support use by multiple people, and each person can use applications on different screens. For example, one user uses a video application on the first screen to watch videos, and another user uses a live broadcast application on the second screen to watch live broadcasts.
[0003] In the related art, usually when one user uses a Bluetooth device to connect to an electronic device, and another user wants to use the Bluetooth device to connect to the electronic device, the former user needs to disconnect first and then the latter user can connect, which makes the operation cumbersome. Summary of the Invention
[0004] 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 cumbersome operations when connecting an electronic device with a Bluetooth device in the related art.
[0005] In a first aspect, an embodiment of the present application provides a Bluetooth connection method, the Bluetooth connection method comprising:
[0006] In a case where the Bluetooth device is paired, receiving a first input from a user on a first interactive interface of at least two interactive interfaces, wherein the at least two interactive interfaces are displayed on different screens respectively;
[0007] In response to the first input, a communication connection is established between the first application corresponding to the first interaction interface and the Bluetooth device.
[0008] In a second aspect, an embodiment of the present application provides a Bluetooth connection device, the Bluetooth connection device comprising:
[0009] a receiving module, configured to receive a first input from a user on a first interactive interface of at least two interactive interfaces when the user has paired with the Bluetooth device, the at least two interactive interfaces being displayed on different screens;
[0010] The connection module is configured to establish a communication connection between the first application corresponding to the first interaction interface and the Bluetooth device in response to a first input.
[0011] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.
[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.
[0014] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.
[0015] In an embodiment of the present application, when the electronic device and the Bluetooth device are paired, the electronic device receives a first input from a user on a first interactive interface among at least two interactive interfaces, and in response to the input, establishes a communication connection between a first application corresponding to the first interactive interface and the Bluetooth device. Since the at least two interactive interfaces are displayed on different screens of the electronic device, the electronic device is able to connect to the Bluetooth device on split screens, thereby avoiding the cumbersome operation of connecting to another Bluetooth device when the electronic device is connected to the Bluetooth device. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flowchart of a Bluetooth connection method according to an embodiment of the present application;
[0017] Figure 2 This is one of the schematic diagrams of the screen display of the electronic device according to the embodiment of the present application;
[0018] Figure 3 This is a second schematic diagram of the screen display of the electronic device according to an embodiment of the present application;
[0019] Figure 4 This is a third schematic diagram of the screen display of the electronic device according to an embodiment of the present application;
[0020] Figure 5 is a schematic diagram of an electronic device in a folded state according to an embodiment of the present application;
[0021] Figure 6 This is a fourth schematic diagram of the screen display of the electronic device according to an embodiment of the present application;
[0022] Figure 7 This is a fifth schematic diagram of the screen display of the electronic device according to an embodiment of the present application;
[0023] Figure 8 This is the sixth schematic diagram of the screen display of the electronic device according to the embodiment of the present application;
[0024] Figure 9 It is a structural diagram of an electronic device and an audio output device in the related art;
[0025] Figure 10 is a structural diagram of an electronic device and an audio output device according to an embodiment of the present application;
[0026] Figure 11 This is the seventh schematic diagram of the screen display of the electronic device according to the embodiment of the present application;
[0027] Figure 12 This is an eighth schematic diagram of a screen display of an electronic device according to an embodiment of the present application;
[0028] Figure 13 is a schematic block diagram of a Bluetooth connection device according to an embodiment of the present application;
[0029] Figure 14 This is one of the schematic block diagrams of the electronic device according to the embodiment of the present application;
[0030] Figure 15 This is the second schematic block diagram of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0032] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0033] The Bluetooth connection method provided in the embodiments of the present application may be performed by a Bluetooth connection device provided in the embodiments of the present application, or an electronic device incorporating 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 in the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios, in conjunction with the accompanying drawings.
[0034] The present application embodiment provides a Bluetooth connection method, such as Figure 1 As shown, the Bluetooth connection method includes:
[0035] Step 102: receiving a first user input on a first interactive interface of at least two interactive interfaces when the user has paired with the Bluetooth device, wherein the at least two interactive interfaces are displayed on different screens;
[0036] 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.
[0037] The first input includes but is not limited to single-click input, double-click input, sliding input, pressing input, etc. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any feasible method.
[0038] Optionally, when the electronic device is paired with the Bluetooth device, the electronic device receives a first user input on a first interactive interface of at least two interactive interfaces, the at least two interactive interfaces being displayed on different screens of the electronic device. In response to the input, a communication connection is established between a first application corresponding to the first interactive interface and the Bluetooth device.
[0039] Optionally, the electronic device has at least two screens, each corresponding to an interactive interface. For example, the electronic device may be an electronic device with an expandable screen, such as a foldable screen, a double-sided screen, or a scroll screen. A double-sided screen may be a double-sided screen consisting of front and back screens, and a scroll screen may be a screen with a retractable function consisting of a fixed screen and an expandable screen.
[0040] Optionally, the Bluetooth device can be an electronic device with Bluetooth connection function, such as a mobile phone, a Bluetooth headset, a Bluetooth speaker, a wearable device, etc.
[0041] Optionally, pairing the electronic device with the Bluetooth device means that the electronic device and the Bluetooth device can recognize and communicate with each other through an established wireless connection.
[0042] Optionally, the first application corresponding to the first interactive interface may be an application whose application icon is located in the first interactive interface, or may be an application bound to the first interactive interface in the background.
[0043] Optionally, after establishing a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device, data is exchanged between the first application corresponding to the first interactive interface and the Bluetooth device. The data exchanged between the first application and the Bluetooth device may be audio, video, documents, images, or other data, enabling the Bluetooth device to play audio or video related to the first application, or to display documents or images related to the first application.
[0044] Optionally, there may be multiple Bluetooth devices that establish communication connections with the electronic device, and different interaction interfaces may establish communication connections with different Bluetooth devices respectively. For the same interaction interface, communication connections may also be established with at least two Bluetooth devices.
[0045] In an embodiment of the present application, when the electronic device and the Bluetooth device are paired, the electronic device receives a first input from a user on a first interactive interface among at least two interactive interfaces, and in response to the input, establishes a communication connection between a first application corresponding to the first interactive interface and the Bluetooth device. Since the at least two interactive interfaces are displayed on different screens of the electronic device, the electronic device can be connected to the Bluetooth device on split screens, thereby avoiding the tedious operation of connecting the electronic device to another Bluetooth device when the electronic device is connected to the Bluetooth device.
[0046] It is worth noting that after the first application corresponding to the first interactive interface establishes a communication connection with the Bluetooth device, the user can pause playback, start playback, adjust the volume, etc. of the Bluetooth device in the first interactive interface, and can also pause playback, start playback, adjust the volume, etc. of all paired Bluetooth devices of the electronic device (that is, all Bluetooth devices that have established a communication connection with the first interactive interface and those that have not established a communication connection) in the first interactive interface.
[0047] Optionally, when paired with a Bluetooth device, receiving a first input from a user to a first interactive interface among at least two interactive interfaces includes: when paired with a Bluetooth device and screen selection controls are displayed respectively in at least two interactive interfaces, receiving a first input from a user to a screen selection control displayed in the first interactive interface.
[0048] Optionally, the user can select to connect the Bluetooth device to one of the at least two interactive interfaces. Specifically, screen selection controls are displayed in the at least two interactive interfaces, and when a first input from the user to one of the screen selection controls is received, a communication connection is determined between the first application in the first interactive interface where the screen selection control is located and the Bluetooth device.
[0049] For example, Figure 2As shown, the electronic device includes screen A and screen B. The screen selection controls displayed on the electronic device include screen selection control 202 and screen selection control 204. Screen selection control 202 is displayed on screen A, and screen selection control 204 is displayed on screen B. If a user clicks screen selection control 202, screen A is communicatively connected to the first Bluetooth device X+. If a user clicks screen selection control 204, screen B is communicatively connected to the second Bluetooth device Y+.
[0050] Optionally, a screen selection control is displayed on the electronic device, and the user moves the screen selection control to select an interactive interface for communication connection with the Bluetooth device. Figure 3 As shown, screen selection control 206 is displayed on screen A and screen B. If the user slides the screen selection control 206 toward screen A, screen A is connected to the first Bluetooth device X+ for communication. If the user slides the control 206 toward screen B, screen B is connected to the second Bluetooth device Y+ for communication.
[0051] Optionally, screen A can display a live broadcast interface, and screen B can display a video interface. Screen A and screen B can be displayed screen-to-screen without any physical device as a partition, which is similar to the effect of a horizontal tablet. After screen A is communicatively connected to the first Bluetooth device X+ and screen B is communicatively connected to the second Bluetooth device Y+ through any of the above methods, 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.
[0052] Through the above method, the Bluetooth device is communicatively connected with any screen of the electronic device, so that the audio in different screens can be transmitted to different Bluetooth devices, avoiding the tedious operation of connecting the electronic device to another Bluetooth device when the electronic device is connected to the Bluetooth device.
[0053] Alternatively, as Figure 5 As shown, when the electronic device is a folding screen electronic device, the folding screen displays the following when in the folded state: Figure 6 As shown in the screen C, when screen C is displayed alone, the application corresponding to screen C is connected to the Bluetooth device for communication. The connection process can be automatic or manually confirmed by the user. Figure 7 As shown, a control 702 for controlling the connection of the Bluetooth device is displayed on screen C. When the user clicks the control 702, the Bluetooth device is connected to screen C for communication. It should be noted that when the folding angle θ between screens A and C is less than or equal to the preset angle, it indicates that the folding screen is in a folded state.
[0054] 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 interactive interface and the Bluetooth device, it also includes: obtaining audio data output by the audio application corresponding to the first interactive interface; passing the audio data to the audio output device, and outputting the audio data through the audio output device.
[0055] Optionally, the first application is an audio application, which can be any application with an audio output function, such as a social application, a music playback application, a video playback application, etc. The Bluetooth device is an audio output device, and after a communication connection is established between the audio application corresponding to the first interactive interface of the electronic device and the audio output device, audio data output by the audio application is transmitted to the audio output device, so that the audio data is output through the audio output device.
[0056] For example, after screen A is connected to user X's first Bluetooth device X+ for communication, and screen B is connected to user Y's second Bluetooth device Y+ for communication, Figure 4 As shown, when the live broadcast interface is displayed on screen A and the video interface is displayed on screen 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.
[0057] In addition, after the first interactive interface establishes a communication connection with the Bluetooth device, the Bluetooth device can play the audio of all running applications in the first interactive 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 audio of the music application through the first Bluetooth device X+, and it will not affect the video page being watched by user Y.
[0058] Through the above method, different audio output devices can output the audio of audio applications corresponding to different screens of the electronic device, thereby improving the flexibility of audio playback.
[0059] Optionally, after establishing a communication connection between the first application corresponding to the first interaction interface and the Bluetooth device, it also includes: displaying a Bluetooth device control in the first interaction interface; in response to a second input for moving the Bluetooth device control from the first interaction interface to a second interaction interface among at least two interaction interfaces, disconnecting the communication connection between the first application corresponding to the first interaction interface and the Bluetooth device, and establishing a communication connection between the second application corresponding to the second interaction interface and the Bluetooth device.
[0060] 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.
[0061] Optionally, the user can switch the application that establishes a communication connection with the Bluetooth device. Specifically, when the first application corresponding to the first interactive interface establishes a communication connection with the Bluetooth device, receiving the second input of the user to the Bluetooth device control displayed in the first interactive interface, moving the Bluetooth device control from the first interactive interface to the second interactive interface, disconnecting the communication connection between the Bluetooth device and the first application, and establishing a communication connection between the Bluetooth device and the second application corresponding to the second interactive interface.
[0062] For example, the user originally connected the first Bluetooth device X+ to screen A. If the user wants to switch the first Bluetooth device X+ to screen B so that the first Bluetooth device X+ plays the audio of the application on screen B, Figure 8 As shown, the user moves the logo 802 of the first Bluetooth device X+ displayed on screen A from screen A to screen B. At this time, the connection between the first Bluetooth device X+ and screen A is disconnected, and the connection between the first Bluetooth device X+ and screen B is established. The user can listen to the audio of the application on 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.
[0063] Through the above method, when it is necessary to change the Bluetooth device connected to a certain screen, the user can switch the connection relationship between the screen and the Bluetooth device through simple operations, without the need to manually disconnect and reconnect the new Bluetooth device, thereby improving the efficiency of switching the Bluetooth device connected to the screen.
[0064] 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.
[0065] Optionally, before establishing a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device in response to the first input, it also includes: adding interface attributes to each application according to the interactive interface where each application is located in at least two interactive interfaces; establishing a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device in response to the first input, including: in response to the first input, determining the first application corresponding to the first interactive interface according to the interface attributes corresponding to each application, and establishing a communication connection between the first application and the Bluetooth device.
[0066] Optionally, interface attributes of corresponding interactive interfaces are added to applications in different interactive interfaces. For example, if the application icon of a first application is located in a first interactive interface, interface attributes of the first interactive interface are added to the first application.
[0067] 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 then a communication connection is established between the first application and the Bluetooth device.
[0068] In the above manner, when a Bluetooth device is connected to a certain interactive interface, the application to which the Bluetooth device needs to be connected is determined according to the interface attributes, thereby ensuring the accuracy of the Bluetooth device and the application.
[0069] In one embodiment, a Bluetooth connection method is provided. This embodiment can be applied to scenarios where an electronic device establishes a communication connection with an audio output device, such as a Bluetooth headset, a Bluetooth speaker, etc. The method includes the following steps:
[0070] First, receiving a first user input on a screen selection control displayed in a first interactive interface when the audio output device is paired and screen selection controls are displayed in at least two interactive interfaces, the at least two interactive interfaces being displayed on different screens;
[0071] Then, 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;
[0072] Next, audio data output by the audio application corresponding to the first interactive interface is obtained, the audio data is transferred to an audio output device, and the audio data is output through the audio output device.
[0073] In this embodiment, since at least two interactive interfaces are displayed on different screens of the electronic device, the electronic device can be connected to the audio output device through split screens, so that different screens output audio data to different audio output devices, avoiding the tedious operation of connecting the electronic device to another Bluetooth device after it is connected to a Bluetooth device.
[0074] It should be noted that the process of transmitting the audio signal of the electronic device to the audio output device in the related art is as follows: Figure 9As shown, the electronic device includes an application 9102, a decoding chip 9104, and a first communication module 9106 (e.g., a Bluetooth module). The audio output device includes a second communication module 9202 (e.g., a Bluetooth module), a digital-to-analog conversion module 9204, a signal amplification module 9206, and a sound playback module 9208. The decoding chip 9104 decodes the music file from application 9102, generating a digital signal, which is then transmitted to the audio output device via the first communication module 9106. The audio output device receives the digital signal and converts it into an analog signal that the human ear can understand via the digital-to-analog conversion module 9204. The signal amplification module 9206 amplifies the analog signal, and the sound playback module 9208 receives the amplified analog signal and emits sound, allowing the human ear to hear the music from application 9102.
[0075] In the embodiment of the present application, in order to ensure that the audio signals of the applications on different screens are transmitted to the corresponding audio output devices, such as Figure 10 As shown, an application identification module 9108 and a device screening module 9110 are added to the electronic device. The application identification module 9108 is 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.
[0076] 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 on the first interactive interface, when the first application begins to generate an audio signal, the application identification module 9108 determines that the first application is running on the first interactive interface. The device screening module 9110 then determines the device identifier of the audio output device from among the device identifiers of all devices connected to the electronic device, thereby selecting the transmission target for the audio signal and sending the audio signal of the first application to the audio output device.
[0077] For example, user Y first selects to establish a communication connection between the second Bluetooth device Y+ and the screen B of the electronic device. 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. The device screening module 9110 determines that the second Bluetooth device Y+ is connected to screen B. Then, the first communication module 9106 sends the digital signal to the second Bluetooth device Y+, thereby delivering the audio signal of the audio application to the second Bluetooth device Y+.
[0078] If the application identification module 9108 confirms that the audio application is running on screen A and there is no Bluetooth device connected to screen A, the application identification module 9108 does not perform audio signal transparent transmission, 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+ will not be able to hear it. If there is a first Bluetooth device X+ connected to screen A at this time, the application identification module 9108 performs audio transparent transmission, but in the device screening step, the device screening module 9110 selects the first Bluetooth device X+ to use, thus ensuring that the audio is transmitted to the first Bluetooth device X+.
[0079] Through the above method, the audio signal of an application in a certain screen is played by the corresponding Bluetooth device to which it is connected, so that the audio signals of different screens are played by different Bluetooth devices respectively, avoiding the tedious operation of connecting an electronic device to another Bluetooth device after connecting it to a Bluetooth device.
[0080] Optionally, the method also includes: when pairing with at least two Bluetooth devices, displaying Bluetooth device controls corresponding to at least two Bluetooth devices respectively in at least two interactive interfaces; for each Bluetooth device control, in response to a third input for moving the Bluetooth device control to one of the at least two interactive interfaces, establishing a communication connection between the Bluetooth device corresponding to the Bluetooth device control and the application corresponding to the interactive interface moved to.
[0081] 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 interaction interfaces.
[0082] Optionally, when more than one Bluetooth device requests to connect to 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 establish communication connections between applications corresponding to different interactive interfaces of different Bluetooth devices.
[0083] For example, Figure 11 As shown, 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. The electronic device displays a control 1102 for the first Bluetooth device X+, a control 1104 for the second Bluetooth device Y+, and a control 1106 for the third Bluetooth device M+, respectively. These controls can be displayed at the junction of screens A and B to indicate that no communication connection has been established with either screen A or screen B. Of course, a floating pop-up window can also be displayed on the electronic device to display the Bluetooth device controls of the Bluetooth devices in the pop-up window.
[0084] like Figure 12As shown, 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 application of the first Bluetooth device X+ is connected to the screen A in communication, and the applications of the second Bluetooth device Y+ and the third Bluetooth device M+ are connected to the screen B in communication.
[0085] In addition to the dragging interaction method, you can also select the Bluetooth device that needs to be connected to screen B. 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 two options, "Connect screen A" and "Connect screen B". Then the user clicks the "Connect screen B" option, and the second Bluetooth device Y+ and the third Bluetooth device M+ communicate and connect with screen B.
[0086] Through the above method, when multiple Bluetooth devices request to connect to different screens of an electronic device, communication connection between different Bluetooth devices and applications on different screens can be achieved through simple operations, thereby improving the communication connection efficiency between the electronic device and the Bluetooth device.
[0087] Optionally, when paired with at least two Bluetooth devices, the Bluetooth device is the first Bluetooth device; the method also includes: after establishing a communication connection between the first application corresponding to the first interaction interface and the first Bluetooth device, receiving a fourth input from the user to the first interaction interface; in response to the fourth input, establishing a communication connection between the first application corresponding to the first interaction interface and the second Bluetooth device among the at least two Bluetooth devices.
[0088] The fourth input includes but is not limited to single-click input, double-click input, sliding input, pressing input, etc. Specifically, the embodiment of the present application does not specifically limit the input method, and it can be any feasible method.
[0089] Optionally, one screen can be connected to multiple Bluetooth devices. Specifically, after establishing a communication connection between the first application corresponding to the first interactive interface and the first Bluetooth device, a fourth input from the user to the first interactive interface is received again, and in response to the fourth input, a communication connection is established between the first application corresponding to the first interactive interface and the second Bluetooth device.
[0090] Through the above method, when the electronic device and the Bluetooth device are paired, the electronic device receives the user's fourth input on the first interactive interface among at least two interactive interfaces, and in response to the input, establishes a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device. Since the at least two interactive interfaces are displayed on different screens of the electronic device, the electronic device is connected to the Bluetooth device on split screens, avoiding the tedious operation of connecting to another Bluetooth device when the electronic device is connected to the Bluetooth device.
[0091] The Bluetooth connection method provided in the embodiment of the present application can be executed by a Bluetooth connection device. In the embodiment of the present application, the Bluetooth connection device provided in the embodiment of the present application is described by taking the Bluetooth connection method executed by the Bluetooth connection device as an example.
[0092] The embodiment of the present application provides a Bluetooth connection device, such as Figure 13 As shown, the Bluetooth connection device 1300 includes:
[0093] A receiving module 1302 is configured to receive a first input from a user on a first interactive interface of at least two interactive interfaces when the user has paired with the Bluetooth device, the at least two interactive interfaces being displayed on different screens;
[0094] The connection module 1304 is configured to establish a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device in response to the first input.
[0095] Optionally, when the electronic device is paired with the Bluetooth device, the electronic device receives a first user input on a first interactive interface of at least two interactive interfaces, the at least two interactive interfaces being displayed on different screens of the electronic device. In response to the input, a communication connection is established between a first application corresponding to the first interactive interface and the Bluetooth device.
[0096] Optionally, the electronic device has at least two screens, each corresponding to an interactive interface. For example, the electronic device may be an electronic device with an expandable screen, such as a foldable screen, a double-sided screen, or a scroll screen. A double-sided screen may be a double-sided screen consisting of front and back screens, and a scroll screen may be a screen with a retractable function consisting of a fixed screen and an expandable screen.
[0097] Optionally, the Bluetooth device can be an electronic device with Bluetooth connection function, such as a mobile phone, a Bluetooth headset, a Bluetooth speaker, a wearable device, etc.
[0098] Optionally, pairing the electronic device with the Bluetooth device means that the electronic device and the Bluetooth device can recognize and communicate with each other through an established wireless connection.
[0099] Optionally, the first application corresponding to the first interactive interface may be an application whose application icon is located in the first interactive interface, or may be an application bound to the first interactive interface in the background.
[0100] Optionally, after establishing a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device, data is exchanged between the first application corresponding to the first interactive interface and the Bluetooth device. The data exchanged between the first application and the Bluetooth device may be audio, video, documents, images, or other data, enabling the Bluetooth device to play audio or video related to the first application, or to display documents or images related to the first application.
[0101] Optionally, there may be multiple Bluetooth devices that establish communication connections with the electronic device, and different interaction interfaces may establish communication connections with different Bluetooth devices respectively. For the same interaction interface, communication connections may also be established with at least two Bluetooth devices.
[0102] In an embodiment of the present application, when the electronic device and the Bluetooth device are paired, the electronic device receives a first input from a user on a first interactive interface among at least two interactive interfaces, and in response to the input, establishes a communication connection between a first application corresponding to the first interactive interface and the Bluetooth device. Since the at least two interactive interfaces are displayed on different screens of the electronic device, the electronic device is connected to the Bluetooth device on split screens, thereby avoiding the tedious operation of connecting to another Bluetooth device when the electronic device is connected to the Bluetooth device.
[0103] Optionally, the receiving module 1302 is specifically configured to receive a first input from a user on a screen selection control displayed in a first interaction interface when the Bluetooth device has been paired and the screen selection control is displayed in at least two interaction interfaces respectively.
[0104] Optionally, the first application is an audio application; the Bluetooth device is an audio output device; the Bluetooth connection device 1300 also includes: an acquisition module for acquiring audio data output by the audio application corresponding to the first interactive interface; a sending module for transmitting the audio data to the audio output device and outputting the audio data through the audio output device.
[0105] Optionally, the Bluetooth connection device 1300 also includes: a display module for displaying Bluetooth device controls in the first interactive interface; a receiving module 1302, further for receiving a second input for moving the Bluetooth device controls from the first interactive interface to a second interactive interface among at least two interactive interfaces; a connection module 1304, further for disconnecting the communication connection between the first application corresponding to the first interactive interface and the Bluetooth device in response to the second input, and establishing a communication connection between the second application corresponding to the second interactive interface and the Bluetooth device.
[0106] Optionally, an adding module is used to add interface attributes for each application according to the interactive interface in which each application is located in at least two interactive interfaces; the connection module 1304 is specifically used to respond to the first input, determine the first application corresponding to the first interactive interface according to the interface attributes corresponding to each application, and establish a communication connection between the first application and the Bluetooth device.
[0107] Optionally, the display module is also used to display Bluetooth device controls corresponding to at least two Bluetooth devices in at least two interactive interfaces when the at least two Bluetooth devices have been paired; the receiving module 1302 is also used to receive, for each Bluetooth device control, a third input for moving the Bluetooth device control to one of the at least two interactive interfaces; the connection module 1304 is also used to establish a communication connection between the Bluetooth device corresponding to the Bluetooth device control and the application corresponding to the interactive interface to which the control is moved in response to the third input.
[0108] Optionally, when paired with at least two Bluetooth devices, the Bluetooth device is the first Bluetooth device; the receiving module 1302 is also used to receive the user's fourth input to the first interactive interface after establishing a communication connection between the first application corresponding to the first interactive interface and the first Bluetooth device; the connection module 1304 is also used to establish a communication connection between the first application corresponding to the first interactive interface and the second Bluetooth device among the at least two Bluetooth devices in response to the fourth input.
[0109] The Bluetooth connection device 1300 in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0110] The Bluetooth connection device 1300 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0111] The Bluetooth connection device 1300 provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the Bluetooth connection method embodiment are not described here.
[0112] Alternatively, as Figure 14 As shown, an embodiment of the present application also provides an electronic device 1400, including a processor 1402 and a memory 1404, wherein the memory 1404 stores a program or instruction that can be run on the processor 1402, and when the program or instruction is executed by the processor 1402, the various steps of the above-mentioned Bluetooth connection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0113] 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.
[0114] Figure 15 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0115] The electronic device 1500 includes but is not limited to components such as 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 .
[0116] Those skilled in the art will understand that the electronic device 1500 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1520 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 15 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0117] Among them, the user input unit 1514 is used to receive the user's first input on the first interactive interface of at least two interactive interfaces when paired with the Bluetooth device, and the at least two interactive interfaces are displayed on different screens respectively; the processor 1520 is used to establish a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device in response to the first input.
[0118] Optionally, when the electronic device is paired with the Bluetooth device, the electronic device receives a first user input on a first interactive interface of at least two interactive interfaces, the at least two interactive interfaces being displayed on different screens of the electronic device. In response to the input, a communication connection is established between a first application corresponding to the first interactive interface and the Bluetooth device.
[0119] Optionally, the electronic device has at least two screens, each corresponding to an interactive interface. For example, the electronic device may be an electronic device with an expandable screen, such as a foldable screen, a double-sided screen, or a scroll screen. A double-sided screen may be a double-sided screen consisting of front and back screens, and a scroll screen may be a screen with a retractable function consisting of a fixed screen and an expandable screen.
[0120] Optionally, the Bluetooth device can be an electronic device with Bluetooth connection function, such as a mobile phone, a Bluetooth headset, a Bluetooth speaker, a wearable device, etc.
[0121] Optionally, pairing the electronic device with the Bluetooth device means that the electronic device and the Bluetooth device can recognize and communicate with each other through an established wireless connection.
[0122] Optionally, the first application corresponding to the first interactive interface may be an application whose application icon is located in the first interactive interface, or may be an application bound to the first interactive interface in the background.
[0123] Optionally, after establishing a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device, data is exchanged between the first application corresponding to the first interactive interface and the Bluetooth device. The data exchanged between the first application and the Bluetooth device may be audio, video, documents, images, or other data, enabling the Bluetooth device to play audio or video related to the first application, or to display documents or images related to the first application.
[0124] Optionally, there may be multiple Bluetooth devices that establish communication connections with the electronic device, and different interaction interfaces may establish communication connections with different Bluetooth devices respectively. For the same interaction interface, communication connections may also be established with at least two Bluetooth devices.
[0125] In an embodiment of the present application, when the electronic device and the Bluetooth device are paired, the electronic device receives a first input from a user on a first interactive interface among at least two interactive interfaces, and in response to the input, establishes a communication connection between a first application corresponding to the first interactive interface and the Bluetooth device. Since the at least two interactive interfaces are displayed on different screens of the electronic device, the electronic device is connected to the Bluetooth device on split screens, thereby avoiding the tedious operation of connecting to another Bluetooth device when the electronic device is connected to the Bluetooth device.
[0126] Optionally, the user input unit 1514 is specifically configured to receive a first input from a user on a screen selection control displayed in a first interaction interface when the user has paired with a Bluetooth device and the screen selection control is displayed in at least two interaction interfaces respectively.
[0127] Optionally, the first application is an audio application; the Bluetooth device is an audio output device; the processor 1520 is also used to obtain audio data output by the audio application corresponding to the first interactive interface; the radio frequency unit 1502 is used to transmit the audio data to the audio output device and output the audio data through the audio output device.
[0128] Optionally, the display unit 1512 is used to display the Bluetooth device control in the first interactive interface; the user input unit 1514 is also used to receive a second input for moving the Bluetooth device control from the first interactive interface to a second interactive interface among at least two interactive interfaces, and the processor 1520 is also used to disconnect the communication connection between the first application corresponding to the first interactive interface and the Bluetooth device in response to the second input, and establish a communication connection between the second application corresponding to the second interactive interface and the Bluetooth device.
[0129] Optionally, processor 1520 is also used to add interface attributes for each application according to the interaction interface in which each application is located in at least two interaction interfaces; processor 1520 is specifically used to respond to the first input, determine the first application corresponding to the first interaction interface according to the interface attributes corresponding to each application, and establish a communication connection between the first application and the Bluetooth device.
[0130] Optionally, the display unit 1512 is further used to display Bluetooth device controls corresponding to at least two Bluetooth devices in at least two interactive interfaces when the at least two Bluetooth devices have been paired; the user input unit 1514 is further used to receive, for each Bluetooth device control, a third input for moving the Bluetooth device control to one of the at least two interactive interfaces; the processor 1520 is further used to establish a communication connection between the Bluetooth device corresponding to the Bluetooth device control and the application corresponding to the interactive interface to which the control is moved in response to the three inputs.
[0131] Optionally, when paired with at least two Bluetooth devices, the Bluetooth device is the first Bluetooth device; the user input unit 1514 is also used to receive the user's fourth input on the first interaction interface after establishing a communication connection between the first application corresponding to the first interaction interface and the first Bluetooth device; the processor 1520 is also used to establish a communication connection between the first application corresponding to the first interaction interface and the second Bluetooth device among the at least two Bluetooth devices in response to the fourth input.
[0132] It should be understood that in an embodiment of the present application, the input unit 1508 may include a graphics processing unit (GPU) 15082 and a microphone 15084, and the graphics processor 15082 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1512 may include a display panel 15122, and the display panel 15122 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1514 includes a touch panel 15142 and at least one of other input devices 15144. The touch panel 15142 is also called a 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, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0133] The memory 1518 can be used to store software programs and 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, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1518 may include a volatile memory or a non-volatile memory, or the memory 1518 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 1518 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0134] Processor 1520 may include one or more processing units. Optionally, processor 1520 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1520.
[0135] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned Bluetooth connection method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0136] 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 a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0137] An embodiment of the present application further provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned Bluetooth connection method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0138] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0139] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned Bluetooth connection method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0140] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0142] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A Bluetooth connection method, characterized in that: The method comprises: In a case where the Bluetooth device has been paired, receiving a first input from a user on a first interactive interface of at least two interactive interfaces, wherein the at least two interactive interfaces are displayed on different screens respectively; In response to the first input, establishing a communication connection between a first application corresponding to the first interactive interface and the Bluetooth device; Among them, different interactive interfaces establish communication connections with different Bluetooth devices.
2. The method according to claim 1, characterized in that The step of receiving a first input from a user on a first interaction interface of at least two interaction interfaces when the user has paired with the Bluetooth device includes: In a case where the Bluetooth device has been paired and screen selection controls are displayed in the at least two interaction interfaces respectively, a first input of a user to the screen selection control displayed in the first interaction interface is received.
3. The method according to claim 1, characterized in that 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 interactive interface and the Bluetooth device, the method further includes: Acquire audio data output by the audio application corresponding to the first interactive interface; The audio data is transferred to the audio output device, and the audio data is outputted through the audio output device.
4. The method according to claim 1, wherein After establishing a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device, the method further includes: displaying a Bluetooth device control in the first interactive interface; In response to a second input for moving the Bluetooth device control from the first interactive interface to a 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 a communication connection between the second application corresponding to the second interactive interface and the Bluetooth device is established.
5. The method according to claim 1, characterized in that Before establishing a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device in response to the first input, the method further includes: According to the interactive interface where each application is located in the at least two interactive interfaces, adding interface attributes for each of the applications; The establishing, in response to the first input, a communication connection between the first application corresponding to the first interactive interface and the Bluetooth device includes: In response to the first input, the first application corresponding to the first interactive interface is determined according to the interface attributes corresponding to each of the applications, and a communication connection is established between the first application and the Bluetooth device.
6. The method according to claim 1, characterized in that The method further comprises: In a case where at least two Bluetooth devices have been paired, displaying Bluetooth device controls corresponding to the at least two Bluetooth devices respectively in the at least two interaction interfaces; For each of the Bluetooth device controls, in response to a 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 interactive interface to which the control is moved.
7. The method according to claim 1, characterized in that In a case where the Bluetooth device has been paired with at least two Bluetooth devices, the Bluetooth device is the first Bluetooth device; The method further comprises: After establishing a communication connection between the first application corresponding to the first interactive interface and the first Bluetooth device, receiving a fourth input from the user on the first interactive interface; In response to the fourth input, a communication connection is established between the first application corresponding to the first interactive interface and a second Bluetooth device among the at least two Bluetooth devices.
8. A Bluetooth connection device, characterized in that: The device comprises: a receiving module, configured to receive, when paired with a Bluetooth device, a first user input on a first interactive interface of at least two interactive interfaces, the at least two interactive interfaces being displayed on different screens; a connection module, configured to establish a communication connection between a first application corresponding to the first interactive interface and the Bluetooth device in response to the first input; Among them, different interactive interfaces establish communication connections with different Bluetooth devices.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the Bluetooth connection method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the Bluetooth connection method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
An audio data output method and a terminal
CN109743465A
Connection establishment method and device, electronic equipment and storage medium
CN113316131A