Bluetooth connection method and apparatus
By adjusting the electronic device to the first Bluetooth connection mode and establishing an association between the area and the Bluetooth device, the problem that existing Bluetooth connections can only connect to one device is solved, thus improving the Bluetooth connection effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-18
- Publication Date
- 2026-03-31
AI Technical Summary
Existing Bluetooth connection methods can only connect to one device, which means that data generated by different applications cannot be output through different Bluetooth devices, resulting in poor connection performance.
Under certain conditions, the electronic device switches to the first Bluetooth connection mode, allowing multiple Bluetooth devices to be connected simultaneously and establishing an association between the area and the Bluetooth device, so that the display content of different areas can output audio through the corresponding Bluetooth device.
This allows the display content of different areas to be output through Bluetooth devices that have established a connection with them, thus improving the Bluetooth connection effect.
Smart Images

Figure CN116095656B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, specifically relating to a Bluetooth connection method and device. Background Technology
[0002] With the development of smart terminal technology, more and more terminals have Bluetooth connectivity to exchange information with other terminal devices.
[0003] In related technologies, when electronic devices connect via Bluetooth, they first need to activate the Bluetooth connection function, then search for nearby Bluetooth devices, and finally select one of the multiple Bluetooth devices to connect to.
[0004] However, using the above Bluetooth connection method, only one Bluetooth device can be connected at a time, and all data generated by applications in the electronic device will be output through this Bluetooth device. Therefore, when faced with the need to output data generated by different applications through different Bluetooth devices, the only solution is to send the data generated by different applications to multiple different electronic devices, and then connect to different Bluetooth devices based on these multiple different electronic devices for output, resulting in poor Bluetooth connection performance. Summary of the Invention
[0005] The purpose of this application is to provide a Bluetooth connection method and apparatus that can solve the problem of poor Bluetooth connection performance.
[0006] In a first aspect, embodiments of this application provide a Bluetooth connection method applied to an electronic device. The method includes: adjusting the electronic device to a first Bluetooth connection mode when a first condition is met, wherein the first Bluetooth connection mode allows the electronic device to connect to multiple Bluetooth devices simultaneously; establishing an association between a first area and a first Bluetooth device; and outputting audio generated by content displayed in the first area using the first Bluetooth device; wherein meeting the first condition includes at least one of the following: receiving input from a folded display screen, and the folded display screen including multiple display areas; and detecting that the electronic device has activated multiple display windows capable of outputting audio.
[0007] Secondly, embodiments of this application provide a Bluetooth connection device, which includes: an adjustment module, an establishment module, and an output module, wherein: the adjustment module is used to adjust the electronic device to a first Bluetooth connection mode when a first condition is met, wherein the first Bluetooth connection mode allows the electronic device to connect to multiple Bluetooth devices simultaneously; the establishment module is used to establish an association between a first area and a first Bluetooth device; the output module is used to output audio generated by the content displayed in the first area using the first Bluetooth device; wherein meeting the first condition includes at least one of the following: receiving input from a folded display screen, and the folded display screen including multiple display areas; detecting that the electronic device has activated multiple display windows capable of outputting audio.
[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0010] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0012] In this embodiment, when a first condition is met, the electronic device switches to a first Bluetooth connection mode, which allows the electronic device to connect to multiple Bluetooth devices simultaneously. Then, by establishing an association between a first area and a first Bluetooth device, the first Bluetooth device outputs audio generated by the content displayed in the first area. The first condition includes at least one of the following: receiving input from a folded display screen, and the folded display screen including multiple display areas; detecting that the electronic device has activated multiple display windows capable of outputting audio. Thus, by switching to the first Bluetooth connection mode, the electronic device supports simultaneous connection to multiple Bluetooth devices, and by establishing an association between the first area and the first Bluetooth device, the audio generated by the content displayed in the first area is output only through the first Bluetooth device. Therefore, the audio generated by the content displayed in different areas is output only through the Bluetooth device with which it has established an association, thereby improving the Bluetooth connection performance. Attached Figure Description
[0013] Figure 1 This is a schematic flowchart of a Bluetooth connection method provided in an embodiment of this application;
[0014] Figure 2 This is a schematic diagram of an interface example used in a Bluetooth connection method provided in this application embodiment;
[0015] Figure 3 This is a schematic diagram of the structure of a Bluetooth connection device provided in an embodiment of this application;
[0016] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0017] Figure 5 This is a hardware schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0019] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0020] The Bluetooth connection method and apparatus provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0021] The Bluetooth connection method provided in this application is applied to scenarios where multiple Bluetooth devices are connected. The specific application scenario can be determined according to the usage requirements, and this application does not limit it.
[0022] For example, consider a scenario where an electronic device uses two Bluetooth devices (e.g., Bluetooth device 1 and Bluetooth device 2) to output data for two applications (e.g., application 1 and application 2). In related technologies, when electronic device 1 outputs data for application 1 and application 2, it first connects to Bluetooth device 1, and then uses Bluetooth device 1 to simultaneously output the data for both application 1 and application 2. If the data for application 2 is to be output via Bluetooth device 2, electronic device 1 needs to send the data for application 2 to electronic device 2, and then electronic device 2 needs to connect to Bluetooth device 2. At this point, Bluetooth device 2 outputs the data for application 2. Therefore, an electronic device cannot output the data for application 1 and application 2 separately via Bluetooth device 1 and Bluetooth device 2, resulting in poor data output quality after Bluetooth connection.
[0023] In this embodiment, if electronic device 1 needs to use Bluetooth device 1 to output data of application 1 and Bluetooth device 2 to output data of application 2, then after starting application 1 and application 2, Bluetooth device 1 and Bluetooth device 2 can be connected simultaneously, and then the association between region 1 and Bluetooth device 1 and the association between region 2 and Bluetooth device 2 can be established respectively. This allows electronic device 1 to use Bluetooth device 1 to output data of application 1 running in region 1 and Bluetooth device 2 to output data of application 2 running in region 2, thereby improving the connection effect of Bluetooth-enabled data output.
[0024] The Bluetooth connection method provided in this embodiment can be executed by a Bluetooth connection device, which can be an electronic device, or a control module or processing module within the electronic device. The following description uses an electronic device as an example to illustrate the technical solution provided in this application embodiment.
[0025] This application provides a Bluetooth connection method, such as... Figure 1 As shown, the Bluetooth connection method may include the following steps 201 to 203:
[0026] Step 201: If the first condition is met, the electronic device switches to the first Bluetooth connection mode.
[0027] In this embodiment of the application, the first condition mentioned above includes at least one of the following A and B:
[0028] A: The input to the foldable display screen has been received, and the folded display screen includes multiple display areas.
[0029] Specifically, when the display screen of the aforementioned electronic device is a flexible screen, the aforementioned multiple display areas can be obtained by folding the display screen of the electronic device into multiple display areas.
[0030] Specifically, when the display screen of the aforementioned electronic device is a rigid screen, the aforementioned multiple display areas can be obtained by dividing the display screen of the electronic device into multiple display areas.
[0031] Optionally, the sizes of the multiple display areas can be the same or different.
[0032] Optionally, each of the above multiple display areas can correspond to a unique identity identifier.
[0033] B: Multiple display windows capable of outputting audio have been detected launched by the electronic device.
[0034] For example, an electronic device can run multiple audio applications simultaneously, with one audio application corresponding to one display window.
[0035] Further, optionally, in embodiments of this application, the first condition may also include at least one of the following C, D, E, and F:
[0036] C: The input from the folded display screen is received, and the folded display screen includes multiple display areas, and the camera detects that the number of users currently using the electronic device is greater than 1.
[0037] For example, an electronic device can trigger a camera to perform facial recognition and determine the number of faces currently using the electronic device.
[0038] D: The input from the folded display screen is received, and the folded display screen includes multiple display areas, and the microphone detects that the number of users currently using the electronic device is greater than 1.
[0039] For example, an electronic device can trigger a microphone to perform voice separation and recognition to determine the number of voices currently using the electronic device.
[0040] E: The electronic device has launched multiple display windows capable of outputting audio, and the camera has detected that the number of users currently using the electronic device is greater than 1.
[0041] F: Multiple display windows capable of outputting audio have been activated by the electronic device, and the microphone has detected that the number of users currently using the electronic device is greater than 1.
[0042] Thus, electronic devices are allowed to connect to multiple Bluetooth devices simultaneously only if the first condition is met; otherwise, they are only allowed to connect to one Bluetooth device, reducing the daily power consumption of electronic devices.
[0043] In this embodiment of the application, the first Bluetooth connection mode described above allows an electronic device to connect to multiple Bluetooth devices simultaneously.
[0044] For example, the Bluetooth devices mentioned above may include: Bluetooth headsets, Bluetooth speakers, Bluetooth gamepads, etc.
[0045] Further optionally, in this embodiment of the application, the number of Bluetooth devices that can be connected simultaneously in the first Bluetooth connection mode is related to the number of display areas or display windows.
[0046] For example, the number of Bluetooth devices that can be connected simultaneously in the first Bluetooth connection mode is the same as the number of display areas. For instance, if the folded display screen includes two display areas, then the number of Bluetooth devices that the electronic device can connect to simultaneously in the first Bluetooth connection mode is also two.
[0047] For example, the number of Bluetooth devices that can be connected simultaneously in the first Bluetooth connection mode is the same as the number of display windows. For instance, if the electronic device is detected to have opened three display windows capable of outputting audio, the first Bluetooth connection mode also allows the electronic device to connect to three Bluetooth devices simultaneously.
[0048] Step 202: The electronic device establishes an association between the first region and the first Bluetooth device.
[0049] In this embodiment of the application, the first area can be one of the multiple display areas, or it can be the area where one of the multiple display windows capable of outputting audio is located.
[0050] For example, when an input is received from a foldable display screen and the folded display screen includes multiple display areas, the first area is one of the multiple display areas.
[0051] For example, when it is detected that the above-mentioned electronic device has activated multiple display windows capable of outputting audio, the first area is the area where one of the multiple display windows capable of outputting audio is located.
[0052] In this embodiment of the application, the first Bluetooth device can be one of the plurality of Bluetooth devices.
[0053] In this embodiment of the application, the electronic device can bind the first region to the first Bluetooth device based on the identity mark corresponding to the first region, so as to establish an association between the first region and the first Bluetooth device.
[0054] For example, the above association is used to indicate that the audio generated by the content displayed in the first area is output through the first Bluetooth device.
[0055] Step 203: The electronic device outputs the audio generated by the content displayed in the first area using the first Bluetooth device.
[0056] In this embodiment of the application, the audio generated by the displayed content can be audio played in an audio application running in the first area, or it can be operation audio generated by the user's operation input in the first area.
[0057] For example, taking a Bluetooth headset as the first Bluetooth device and audio from an audio application as the audio displayed, after the electronic device establishes a connection between the first area and the Bluetooth headset, if an audio application is running in that first area, the Bluetooth headset can play the audio from that application.
[0058] In the Bluetooth connection method provided in this application embodiment, when a first condition is met, the electronic device adjusts to a first Bluetooth connection mode, which allows the electronic device to connect to multiple Bluetooth devices simultaneously. Then, by establishing an association between a first area and a first Bluetooth device, the audio generated by the content displayed in the first area is output by the first Bluetooth device. The first condition includes at least one of the following: receiving input from a folded display screen, and the folded display screen including multiple display areas; detecting that the electronic device has activated multiple display windows capable of outputting audio. Thus, by adjusting to the first Bluetooth connection mode, the electronic device supports simultaneous connection to multiple Bluetooth devices, and by establishing an association between the first area and the first Bluetooth device, the audio generated by the content displayed in the first area is output only through the first Bluetooth device. Therefore, the audio generated by the content displayed in different areas is output only through the Bluetooth device with which it has established an association, thereby improving the Bluetooth connection effect.
[0059] Optionally, in this embodiment of the application, before step 202 above, the Bluetooth connection method provided in this embodiment of the application may further include the following step 301:
[0060] Step 301: When the electronic device displays N Bluetooth device identifiers in the first area, it receives the first input for the first Bluetooth device identifier.
[0061] Where N is a positive integer greater than 1;
[0062] In this application embodiment, a Bluetooth device identifier indicates a Bluetooth device.
[0063] For example, the Bluetooth device identifier mentioned above can be the name of the Bluetooth device, or it can be the icon of the Bluetooth device, etc.
[0064] In this embodiment of the application, the above N Bluetooth device identifiers all indicate connectable Bluetooth devices.
[0065] For example, the aforementioned connectable Bluetooth device is used to indicate that the Bluetooth device is in an idle state. In other words, the Bluetooth device is not connected to any other electronic device.
[0066] In this embodiment of the application, the first input is used to trigger the electronic device to establish an association between the first region and the first Bluetooth device.
[0067] In this embodiment of the application, the first input may be a click input on the first Bluetooth device identifier or other feasible inputs, and this embodiment of the application does not limit this.
[0068] Further optionally, in this embodiment of the application, in conjunction with the above step 301, the step 202 "establishing an association between the electronic device and the first Bluetooth device" may include the following step 302:
[0069] Step 302: In response to the first input, the electronic device establishes an association between the first region and the first Bluetooth device indicated by the first Bluetooth device identifier.
[0070] In this embodiment of the application, the electronic device selects the first Bluetooth device by receiving a user's click input on the name of the first Bluetooth device displayed in the first area, and then binds the first area with the first Bluetooth device through the identity mark corresponding to the first area to establish an association between the first area and the first Bluetooth device.
[0071] Thus, by receiving input of the first Bluetooth device identifier displayed in the first area, an association is established between the first area and the first Bluetooth device, so that the audio generated by the content displayed in the first area can be output through the first Bluetooth device, thereby improving the Bluetooth connection effect.
[0072] Optionally, in this embodiment of the application, after step 202 above, the Bluetooth connection method provided in this embodiment of the application may include the following steps 202a to 202d:
[0073] Step 202a: The electronic device displays the remaining Bluetooth device identifiers other than the first Bluetooth device identifier among the N Bluetooth device identifiers in the second area.
[0074] In this embodiment of the application, after the electronic device establishes the association between the first area and the first Bluetooth device, the device identifier of the first Bluetooth device will no longer be displayed in other areas of the electronic device.
[0075] Step 202b: The electronic device receives a second input for the second Bluetooth device identifier among the remaining Bluetooth device identifiers.
[0076] In this embodiment of the application, the second input is used to trigger the electronic device to establish an association between the second region and the second Bluetooth device.
[0077] In this embodiment, the second input may be a click on the second Bluetooth device identifier or other feasible inputs, and this embodiment does not limit this.
[0078] Step 202c: In response to the second input, the electronic device establishes an association between the second region and the second Bluetooth device indicated by the second Bluetooth device identifier.
[0079] In this embodiment of the application, the electronic device selects the second Bluetooth device by receiving the user's click input on the name of the second Bluetooth device displayed in the second area, and then binds the second area to the second Bluetooth device through the identity mark corresponding to the second area, so as to establish the association between the second area and the second Bluetooth device.
[0080] Step 202d: The electronic device uses a second Bluetooth device to output the audio generated by the content displayed in the second area.
[0081] For example, if the second Bluetooth device is a Bluetooth headset, and the audio displayed is played by an audio application, after the electronic device establishes a connection between the second area and the Bluetooth headset, if an audio application is running in that second area, the Bluetooth headset can play the audio played by that application.
[0082] In this way, by receiving input of different Bluetooth device identifiers displayed in different areas, a one-to-one correspondence between different areas and different Bluetooth devices is established, so that the audio generated by the content displayed in different areas can be output through the Bluetooth device that has established a relationship with that area, further improving the Bluetooth connection effect.
[0083] Optionally, in this embodiment of the application, after step 202 above, the Bluetooth connection method provided in this embodiment of the application may include the following steps 401 and 402:
[0084] Step 401: The electronic device sets the first Bluetooth device as the main control device of the electronic device.
[0085] In this embodiment of the application, the main control device is used to control all areas of the electronic device.
[0086] It should be noted that electronic devices are only allowed to have one master control device.
[0087] In this embodiment of the application, after the electronic device sets Bluetooth device 1 as the master control device, if Bluetooth device 1 disconnects during the connection process with the electronic device, the electronic device will automatically connect to Bluetooth device 1 first when it searches for Bluetooth device 1 and other Bluetooth devices again.
[0088] Step 402: Upon receiving the first operation command sent by the first Bluetooth device, the electronic device controls multiple areas to respond to the first operation command.
[0089] In this embodiment of the application, the first operation instruction is used to instruct the electronic device to perform related operations.
[0090] For example, when the first Bluetooth device is a Bluetooth headset, the first operation command may include volume adjustment command, play / pause command, and play switching command, etc.
[0091] In this embodiment of the application, when an electronic device receives a first operation instruction, it needs to first determine whether the Bluetooth device that sent the first operation instruction is the main control device. If the Bluetooth device is the main control device, the electronic device will execute the operation corresponding to the first operation instruction in all areas.
[0092] For example, taking the first Bluetooth device as a Bluetooth headset, and the multiple areas including area 1 and area 2 as an example. If audio applications are running in both area 1 and area 2 of the electronic device, when the electronic device sets the Bluetooth headset as the main control device, the electronic device can receive a pause command sent by the Bluetooth headset. At this time, the electronic device will respond to the pause command and stop the audio playback of the audio applications running in both area 1 and area 2.
[0093] In this way, by setting the Bluetooth device with which an existing association has been established as the master control device, the convenience of controlling all areas of the electronic device at the same time is improved.
[0094] Optionally, in this embodiment of the application, after step 202 and step 401 described above, the Bluetooth connection method provided in this embodiment of the application may include the following steps 403 and 404:
[0095] Step 403: If an association is established between the electronic device in the third region and the third Bluetooth device, the third Bluetooth device is set as the secondary control device in the third region.
[0096] In this embodiment of the application, the aforementioned secondary control device is only used to control the area of the electronic device that has been associated with the secondary control device.
[0097] It should be noted that electronic devices can be configured with multiple secondary control devices, but the same Bluetooth device cannot be configured as both a primary and secondary control device at the same time.
[0098] In this embodiment of the application, after the electronic device sets Bluetooth device 2 as a secondary control device, if Bluetooth device 2 disconnects during the connection process with the electronic device, when the electronic device re-searches for Bluetooth device 2 and Bluetooth device 1 set as the primary control device, it will not prioritize reconnecting to Bluetooth device 2. Instead, it will only connect to Bluetooth device 2 after automatically connecting to Bluetooth device 1.
[0099] Step 404: Upon receiving the second operation command sent by the third Bluetooth device, the electronic device controls the third region to respond to the second operation command.
[0100] In this embodiment of the application, the second operation instruction is used to instruct the electronic device to perform relevant operations in the third area.
[0101] For example, when the third Bluetooth device is a Bluetooth headset, the second operation command may include volume adjustment command, play / pause command, and play switching command.
[0102] In this embodiment of the application, when the electronic device receives the second operation instruction, it needs to first determine whether the Bluetooth device that sent the second operation instruction is a control device. If the Bluetooth device is determined to be a control device, it further determines whether the Bluetooth device is a secondary control device. If the Bluetooth device is a secondary control device, the electronic device executes the operation corresponding to the second operation instruction in the area where it has established an association with the secondary control device.
[0103] For example, taking the aforementioned third Bluetooth device as a Bluetooth headset, and the aforementioned multiple areas including area 1 and area 2 as an example, if audio applications are running in both area 1 and area 2 of the electronic device, then when the electronic device sets the aforementioned Bluetooth headset as a secondary control device in area 2 (i.e., the aforementioned third area), the electronic device can receive a pause command sent by the Bluetooth headset. At this time, the electronic device will respond to the pause command and stop playing the audio from the audio application running in area 2.
[0104] Thus, by setting a Bluetooth device as a secondary control device for a specific area, and controlling only that area within the electronic device, the flexibility of controlling different areas of the electronic device is further improved.
[0105] Optionally, in this embodiment of the application, before step 202 above, the Bluetooth connection method provided in this embodiment of the application may further include the following steps 303 to 307:
[0106] Step 303: The electronic device connects to multiple Bluetooth devices and displays the icons of the multiple Bluetooth devices.
[0107] In this embodiment of the application, after the electronic device is switched to the first Bluetooth connection mode, it can connect to multiple Bluetooth devices at the same time, so as to change the multiple Bluetooth devices from an idle state to a connected state, and display the Bluetooth device identifiers of the multiple Bluetooth devices that have been successfully connected in any area of the electronic device.
[0108] Step 304: The electronic device receives a third input for the fourth Bluetooth device identifier.
[0109] In this embodiment of the application, the third input is used to trigger the electronic device to select the fourth Bluetooth device.
[0110] In this embodiment, the third input may be a click input on the fourth Bluetooth device identifier, or other feasible inputs, and this embodiment does not limit this input.
[0111] Step 305: The electronic device responds to the third input and displays multiple area identifiers.
[0112] In this embodiment of the application, the aforementioned multiple area identifiers are area identifiers for multiple areas in an electronic device.
[0113] For example, the area identifiers of the aforementioned multiple areas can be the names of the areas, or they can be the account names of the areas, etc.
[0114] It should be noted that each region corresponds to a region identifier.
[0115] In this embodiment, after connecting multiple Bluetooth devices, the electronic device can display the device identifiers of the multiple Bluetooth devices in any area of the electronic device. Then, it receives a third input that selects a fourth Bluetooth device identifier from the multiple Bluetooth device identifiers to display the area identifiers of all areas that can be associated with the fourth Bluetooth device.
[0116] Step 306: The electronic device receives a fourth input for the third region identifier among a plurality of region identifiers.
[0117] In this embodiment of the application, the fourth input is used to trigger the electronic device to establish an association between the third region and the fourth Bluetooth device.
[0118] In this embodiment, the fourth input may be a click input on the third area identifier or other feasible inputs, and this embodiment does not limit this input.
[0119] For example, the third region identifier can be any one of the plurality of region identifiers.
[0120] Step 307: In response to the fourth input, the electronic device establishes an association between the third region indicated by the third region identifier and the fourth Bluetooth device indicated by the fourth Bluetooth device identifier.
[0121] For example, such as Figure 2 As shown in (a), area 10 displays a Bluetooth device identification control 11 (including the device identification of Bluetooth device 1 and the device identification of Bluetooth device 2). If the user clicks (i.e., the third input mentioned above) the device identification of Bluetooth device 1 (i.e., the fourth Bluetooth device identification mentioned above), then... Figure 2 As shown in (b), area 10 displays an area identification control 12 (including the area identification of area 10 and the area identification of area 20). At this time, if the user clicks (i.e., the fourth input mentioned above) the area identification of area 10 (i.e., the third area identification mentioned above), the electronic device establishes an association between area 10 and Bluetooth device 1.
[0122] In this way, the electronic device first displays the device identifiers of multiple connected Bluetooth devices on the screen, allowing the user to customize the area corresponding to each Bluetooth device and establish an association, thus improving the flexibility of connecting Bluetooth devices.
[0123] The Bluetooth connection method provided in this application can be executed by a Bluetooth connection device. This application uses a Bluetooth connection device executing the Bluetooth connection method as an example to illustrate the Bluetooth connection device provided in this application.
[0124] This application provides a Bluetooth connection device, such as... Figure 3As shown, the Bluetooth connection device 500 includes: an adjustment module 501, an establishment module 502, and an output module 503, wherein: the adjustment module 501 is used to adjust the electronic device to a first Bluetooth connection mode when a first condition is met, wherein the first Bluetooth connection mode allows the electronic device to connect to multiple Bluetooth devices simultaneously; the establishment module 502 is used to establish an association between a first area and a first Bluetooth device; the output module 503 is used to output audio generated by the content displayed in the first area using the first Bluetooth device; wherein meeting the first condition includes at least one of the following: receiving input from a folded display screen, and the folded display screen including multiple display areas; detecting that the electronic device has activated multiple display windows capable of outputting audio.
[0125] Optionally, in this embodiment of the application, when the input of the folded display screen is received and the folded display screen includes multiple display areas, the first area is one of the multiple display areas; or, when it is detected that the electronic device has activated multiple display windows capable of outputting audio, the first area is the area where one of the multiple display windows capable of outputting audio is located.
[0126] Optionally, in this embodiment of the application, the Bluetooth connection device 500 further includes a receiving module, wherein: the receiving module is configured to receive a first input for the first Bluetooth device identifier when the first area displays N Bluetooth device identifiers before the establishing module 502 establishes the association between the first area and the first Bluetooth device, wherein one Bluetooth device identifier indicates one Bluetooth device, and N is a positive integer greater than 1; the establishing module 502 is specifically configured to establish the association between the first area and the first Bluetooth device indicated by the first Bluetooth device identifier in response to the first input received by the receiving module.
[0127] Optionally, in this embodiment of the application, the Bluetooth connection device 500 further includes: a display module, wherein: the display module is configured to display, in the second area, the remaining Bluetooth device identifiers other than the first Bluetooth device identifier among the N Bluetooth device identifiers after the establishment module 502 establishes the association relationship between the first area and the first Bluetooth device; the receiving module is further configured to receive a second input to the second Bluetooth device identifier among the remaining Bluetooth device identifiers; the establishment module 502 is further configured to establish the association relationship between the second area and the second Bluetooth device indicated by the second Bluetooth device identifier in response to the second input received by the receiving module; and the output module 503 is further configured to output audio generated by the content displayed in the second area using the second Bluetooth device.
[0128] Optionally, in this embodiment of the application, the number of Bluetooth devices that can be connected simultaneously in the first Bluetooth connection mode is related to the number of display areas or display windows.
[0129] In the Bluetooth connection device provided in this application embodiment, when a first condition is met, the Bluetooth connection device adjusts to a first Bluetooth connection mode, which allows the Bluetooth connection device to connect to multiple Bluetooth devices simultaneously. Then, by establishing an association between a first area and a first Bluetooth device, the first Bluetooth device outputs audio generated by the content displayed in the first area. The first condition includes at least one of the following: receiving input from a folded display screen, and the folded display screen including multiple display areas; detecting that the electronic device has activated multiple display windows capable of outputting audio. Thus, by adjusting to the first Bluetooth connection mode, the Bluetooth connection device supports simultaneous connection to multiple Bluetooth devices, and by establishing an association between the first area and the first Bluetooth device, the audio generated by the content displayed in the first area is output only through the first Bluetooth device. Therefore, the audio generated by the content displayed in different areas is output only through the Bluetooth device with which it has established an association, thereby improving the Bluetooth connection effect.
[0130] The Bluetooth connection device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0131] The Bluetooth connection device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0132] The Bluetooth connection device provided in this application embodiment can achieve... Figure 1 and Figure 2 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0133] Optionally, such as Figure 4 As shown, this application embodiment also provides an electronic device 600, including a processor 601 and a memory 602. The memory 602 stores a program or instructions that can run on the processor 601. When the program or instructions are executed by the processor 601, they implement the various steps of the Bluetooth connection method embodiment described above and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0134] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0135] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0136] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0137] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0138] The processor 110 is configured to adjust the electronic device to a first Bluetooth connection mode when a first condition is met, wherein the first Bluetooth connection mode allows the electronic device to connect to multiple Bluetooth devices simultaneously; the processor 110 is also configured to establish an association between a first area and a first Bluetooth device; the processor 110 is also configured to output audio generated by the content displayed in the first area using the first Bluetooth device; wherein meeting the first condition includes at least one of the following: receiving input from a folded display screen, and the folded display screen including multiple display areas; detecting that the electronic device has activated multiple display windows capable of outputting audio.
[0139] Optionally, in this embodiment of the application, when the input of the folded display screen is received and the folded display screen includes multiple display areas, the first area is one of the multiple display areas; or, when it is detected that the electronic device has activated multiple display windows capable of outputting audio, the first area is the area where one of the multiple display windows capable of outputting audio is located.
[0140] Optionally, in this embodiment, the user input unit 107 is configured to receive a first input for a first Bluetooth device identifier when N Bluetooth device identifiers are displayed in the first area before the processor 110 establishes the association between the first area and the first Bluetooth device, wherein one Bluetooth device identifier indicates one Bluetooth device and N is a positive integer greater than 1; the processor 110 is specifically configured to establish the association between the first area and the first Bluetooth device indicated by the first Bluetooth device identifier in response to the first input received by the user input unit 107.
[0141] Optionally, in this embodiment, the display unit 106 is configured to display the remaining Bluetooth device identifiers (excluding the first Bluetooth device identifier) among the N Bluetooth device identifiers in the second area after the processor 110 establishes the association between the first area and the first Bluetooth device; the user input unit 107 is further configured to receive a second input for the second Bluetooth device identifier among the remaining Bluetooth device identifiers; the processor 110 is further configured to establish an association between the second area and the second Bluetooth device indicated by the second Bluetooth device identifier in response to the second input received by the user input unit 107; the processor 110 is further configured to output audio generated by the content displayed in the second area using the second Bluetooth device.
[0142] Optionally, in this embodiment of the application, the number of Bluetooth devices that can be connected simultaneously in the first Bluetooth connection mode is related to the number of display areas or display windows.
[0143] In the electronic device provided in this application embodiment, when a first condition is met, the electronic device adjusts to a first Bluetooth connection mode, which allows the electronic device to connect to multiple Bluetooth devices simultaneously. Then, by establishing an association between a first area and a first Bluetooth device, the audio generated by the content displayed in the first area is output by the first Bluetooth device. The first condition includes at least one of the following: receiving input from a folded display screen, and the folded display screen including multiple display areas; detecting that the electronic device has activated multiple display windows capable of outputting audio. Thus, by adjusting to the first Bluetooth connection mode, the electronic device supports simultaneous connection to multiple Bluetooth devices, and by establishing an association between the first area and the first Bluetooth device, the audio generated by the content displayed in the first area is output only through the first Bluetooth device. Therefore, the audio generated by the content displayed in different areas is output only through the Bluetooth device with which it has established an association, thereby improving the Bluetooth connection effect.
[0144] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0145] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or 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 memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0146] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0147] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the Bluetooth connection method embodiments described above and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0148] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0149] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above Bluetooth connection method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0150] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0151] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the Bluetooth connection method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0152] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0153] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they 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 this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0154] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A Bluetooth connection method, applied to an electronic device, characterized in that, The method comprises: adjusting the electronic device to a first Bluetooth connection mode in a case where a first condition is met, wherein the first Bluetooth connection mode allows the electronic device to simultaneously connect to multiple Bluetooth devices; establishing an association relationship between a first area and a first Bluetooth device; outputting, by the first Bluetooth device, audio generated by display content in the first area; wherein the first condition is met in at least one of the following ways: receiving an input of a folding display screen, and the folding display screen comprises multiple display areas; detecting that the electronic device starts multiple display windows capable of outputting audio; the number of simultaneously connected Bluetooth devices allowed by the first Bluetooth connection mode is related to the number of display areas or display windows.
2. The method of claim 1, wherein, in a case where the folding display screen is received and the folding display screen comprises multiple display areas, the first area is one of the multiple display areas; or, in a case where the electronic device is detected to start multiple display windows capable of outputting audio, the first area is an area where one of the multiple display windows capable of outputting audio is located.
3. The method of claim 1, wherein, Before the association relationship between the first area and the first Bluetooth device is established, the method further comprises: in a case where N Bluetooth device identifiers are displayed in the first area, receiving a first input of a first Bluetooth device identifier, one Bluetooth device identifier indicating one Bluetooth device, and N being a positive integer greater than 1; establishing the association relationship between the first area and the first Bluetooth device comprises: in response to the first input, establishing the association relationship between the first area and the first Bluetooth device indicated by the first Bluetooth device identifier.
4. The method of claim 3, wherein, After the association relationship between the first area and the first Bluetooth device is established, the method further comprises: displaying, in a second area, remaining Bluetooth device identifiers in the N Bluetooth device identifiers except the first Bluetooth device identifier; receiving a second input of a second Bluetooth device identifier in the remaining Bluetooth device identifiers; in response to the second input, establishing an association relationship between the second area and a second Bluetooth device indicated by the second Bluetooth device identifier; outputting, by the second Bluetooth device, audio generated by display content in the second area.
5. A Bluetooth connection device, characterized in that, The device comprises an adjustment module, an establishment module and an output module, wherein: the adjustment module is configured to adjust the electronic device to a first Bluetooth connection mode in a case where a first condition is met, wherein the first Bluetooth connection mode allows the electronic device to simultaneously connect to multiple Bluetooth devices; the establishment module is configured to establish an association relationship between a first area and a first Bluetooth device; the output module is configured to output, by the first Bluetooth device, audio generated by display content in the first area; wherein the first condition is met in at least one of the following ways: receiving an input of a folding display screen, and the folding display screen comprises multiple display areas; detecting that the electronic device starts multiple display windows capable of outputting audio; The first Bluetooth connection mode allows the number of simultaneously connected Bluetooth devices to be related to the number of display areas or display windows.
6. The apparatus of claim 5, wherein, in a case where an input of folding the display screen is received and the folded display screen comprises a plurality of display areas, the first area is one of the plurality of display areas; or, in a case where it is detected that the electronic device starts a plurality of display windows capable of outputting audio, the first area is an area in which one of the plurality of display windows capable of outputting audio is located.
7. The apparatus of claim 5, wherein, The apparatus further comprises a receiving module, wherein: the receiving module is further configured to, before the establishing module establishes the association relationship between the first area and the first Bluetooth device, display N Bluetooth device identifiers in the first area, one Bluetooth device identifier indicates one Bluetooth device, and N is a positive integer greater than 1; the establishing module is specifically configured to, in response to the first input received by the receiving module, establish the association relationship between the first area and the first Bluetooth device indicated by the first Bluetooth device identifier.
8. The apparatus of claim 7, wherein, The apparatus further comprises a display module, wherein: the display module is configured to, after the establishing module establishes the association relationship between the first area and the first Bluetooth device, display the remaining Bluetooth device identifiers except the first Bluetooth device identifier in the N Bluetooth device identifiers in a second area; the receiving module is further configured to receive a second input of a second Bluetooth device identifier in the remaining Bluetooth device identifiers; the establishing module is further configured to, in response to the second input received by the receiving module, establish an association relationship between the second area and a second Bluetooth device indicated by the second Bluetooth device identifier; the output module is further configured to output audio generated by display content in the second area by using the second Bluetooth device.
Citation Information
Patent Citations
Bluetooth connection method, Bluetooth connection device, electronic equipment and readable storage medium
CN114599020A