CN116095656A - Bluetooth connection method and device - Google Patents

Bluetooth connection method and device Download PDF

Info

Publication number
CN116095656A
CN116095656A CN202310087833.5A CN202310087833A CN116095656A CN 116095656 A CN116095656 A CN 116095656A CN 202310087833 A CN202310087833 A CN 202310087833A CN 116095656 A CN116095656 A CN 116095656A
Authority
CN
China
Prior art keywords
bluetooth
area
bluetooth device
display
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310087833.5A
Other languages
Chinese (zh)
Inventor
郑少伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310087833.5A priority Critical patent/CN116095656A/en
Publication of CN116095656A publication Critical patent/CN116095656A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a Bluetooth connection method and device, and belongs to the technical field of electronics. The Bluetooth connection method comprises the following steps: under the condition that the first condition is met, the electronic equipment is adjusted to a first Bluetooth connection mode, wherein the first Bluetooth connection mode allows the electronic equipment to be connected with a plurality of Bluetooth equipment at the same time; establishing an association relationship between a first area and a first Bluetooth device; outputting audio generated by display content in the first area by using the first Bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio.

Description

Bluetooth connection method and device
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a Bluetooth connection method and device.
Background
With the development of intelligent terminal technology, more and more terminals have bluetooth connection function for information exchange with other terminal devices.
In the related art, when an electronic device performs bluetooth connection, it is necessary to start a bluetooth connection function first, then search for nearby bluetooth devices, and finally select one of a plurality of bluetooth devices searched for connection.
However, by adopting the above bluetooth connection method, only one bluetooth device can be connected at a time, and data generated by all applications in the electronic device can be output through the bluetooth device, so when the situation that data generated by different applications need to be output through different bluetooth devices is faced, the data generated by different applications can only be sent to a plurality of different electronic devices, and then different bluetooth devices are connected for output based on the plurality of different electronic devices, thereby resulting in poor bluetooth connection effect.
Disclosure of Invention
The embodiment of the application aims to provide a Bluetooth connection method and device, which can solve the problem of poor Bluetooth connection effect.
In a first aspect, an embodiment of the present application provides a bluetooth connection method, applied to an electronic device, where the method includes: under the condition that the first condition is met, the electronic equipment is adjusted to a first Bluetooth connection mode, wherein the first Bluetooth connection mode allows the electronic equipment to be connected with a plurality of Bluetooth equipment at the same time; establishing an association relationship between a first area and a first Bluetooth device; outputting audio generated by display content in the first area by using the first Bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio.
In a second aspect, embodiments of the present application provide a bluetooth connection device, including: the device comprises an adjusting module, a building module and an output module, wherein: the adjusting module is configured to adjust the electronic device to a first bluetooth connection mode when a first condition is satisfied, where the first bluetooth connection mode allows the electronic device to connect to multiple bluetooth devices at the same time; the establishing module is used for establishing an association relationship between the first area and the first Bluetooth device; the output module is configured to output audio generated by the display content in the first area by using the first bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the electronic device adjusts to a first bluetooth connection mode when the first condition is satisfied, wherein the first bluetooth connection mode allows the electronic device to connect a plurality of bluetooth devices at the same time; then, establishing an association relationship between the first area and the first Bluetooth device; to output audio generated by the display content in the first region using the first bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio. Therefore, the electronic equipment supports the simultaneous connection of a plurality of Bluetooth equipment by adjusting to the first Bluetooth connection mode, and the audio generated by the display content in the first area is output only through the first Bluetooth equipment by establishing the association relation between the first area and the first Bluetooth equipment. Therefore, the audio generated by displaying the content in different areas is output only through the Bluetooth equipment which establishes the association relation with the audio, and the Bluetooth connection effect is improved.
Drawings
Fig. 1 is a schematic flow chart of a bluetooth connection method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an interface example to which a bluetooth connection method according to an embodiment of the present application is applied;
fig. 3 is a schematic structural diagram of a bluetooth connection device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic hardware diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The following describes in detail the bluetooth connection method and apparatus provided in the embodiments of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
The bluetooth connection method provided by the embodiment of the application is applied to a scene of connecting a plurality of bluetooth devices, and a specific application scene can be defined according to the use requirement.
Illustratively, a scenario is taken as an example in which two bluetooth devices (e.g., bluetooth device 1 and bluetooth device 2) are employed for an electronic device to output data of two applications (e.g., application 1 and application 2). In the related art, when outputting data of the application 1 and the application 2, the electronic device 1 is connected to the bluetooth device 1 first, and then the data of the application 1 and the application 2 are simultaneously output by using the bluetooth device 1. If the data of the application 2 is to be output through the bluetooth device 2, the electronic device 1 is required to transmit the data of the application 2 to the electronic device 2 and connect the bluetooth device 2 using the electronic device 2, and at this time, the bluetooth device 2 outputs the data of the application 2. Therefore, one electronic device cannot output the data of the application 1 and the application 2 through the bluetooth device 1 and the bluetooth device 2 separately, so that the effect of outputting the data after the bluetooth connection is poor.
In this embodiment of the present application, if the electronic device 1 needs to use the bluetooth device 1 to output the data of the application 1 and use the bluetooth device 2 to output the data of the application 2, after starting the application 1 and the application 2, the bluetooth device 1 and the bluetooth device 2 may be connected at the same time, and the association relationship between the region 1 and the bluetooth device 1 and the association relationship between the region 2 and the bluetooth device 2 are respectively established, so that the electronic device 1 may use the bluetooth device 1 to output the data of the application 1 running in the region 1 and use the bluetooth device 2 to output the data of the application 2 running in the region 2, thereby improving the connection effect of the output data after bluetooth.
The main execution body of the bluetooth connection method provided in this embodiment may be a bluetooth connection device, and the bluetooth connection device may be an electronic device, or may be a control module or a processing module in the electronic device. The technical solutions provided in the embodiments of the present application are described below by taking an electronic device as an example.
The embodiment of the application provides a bluetooth connection method, as shown in fig. 1, the bluetooth connection method may include the following steps 201 to 203:
step 201: and the electronic equipment is adjusted to a first Bluetooth connection mode under the condition that the first condition is met.
In an embodiment of the present application, the first condition includes at least one of the following a and B:
a: an input is received to fold the display screen, and the folded display screen includes a plurality of display areas.
Specifically, in the case where the display screen of the electronic device is a flexible screen, the plurality of display areas may be obtained by folding the display screen of the electronic device into a plurality of display areas.
Specifically, in the case where the display screen of the electronic device is a hard screen, the plurality of display areas may be obtained by dividing the display screen of the electronic device into a plurality of display areas.
Alternatively, the area sizes of the plurality of display areas may be the same or different.
Alternatively, each of the plurality of display areas may be associated with a unique identity.
B: it is detected that the electronic device has launched a plurality of display windows capable of outputting audio.
For example, the electronic device may run multiple audio class applications simultaneously, one audio class application corresponding to each display window.
Further alternatively, in an embodiment of the present application, the above first condition may further include at least one of the following C, D, E and F:
c: the input of the folding display screen is received, the folded display screen comprises a plurality of display areas, and the camera detects that the current number of users of the electronic equipment is greater than 1.
For example, the electronic device may trigger the camera to perform face recognition, and determine the number of faces currently using the electronic device.
D: the input of the folding display screen is received, the folded display screen comprises a plurality of display areas, and the microphone detects that the current number of users of the electronic equipment is larger than 1.
For example, the electronic device may trigger the microphone to perform voice separation recognition, and determine the number of sounds currently using the electronic device.
E: the method comprises the steps that the electronic equipment is detected to start a plurality of display windows capable of outputting audio, and the camera detects that the number of current users of the electronic equipment is larger than 1.
F: it is detected that the electronic device has started a plurality of display windows capable of outputting audio, and the microphone detects that the number of currently used users of the electronic device is greater than 1.
Therefore, under the condition that the first condition is met, the electronic equipment is allowed to be connected with a plurality of Bluetooth equipment at the same time, under the condition that the first condition is not met, the electronic equipment is only allowed to be connected with one Bluetooth equipment, and the daily power consumption of the electronic equipment is reduced.
In the embodiment of the present application, the first bluetooth connection mode allows the electronic device to connect to a plurality of bluetooth devices at the same time.
Illustratively, the bluetooth device may include: bluetooth headset, bluetooth stereo, bluetooth handle, etc.
Further optionally, in an embodiment of the present application, the number of bluetooth devices allowed to be connected simultaneously in the first bluetooth connection mode is related to the number of display areas or display windows.
Illustratively, the first bluetooth connection mode allows the number of bluetooth devices connected simultaneously to be the same as the number of display areas. For example, if the folded display screen includes 2 display areas, the number of bluetooth devices that the first bluetooth connection mode allows the electronic device to be connected to simultaneously is also 2.
Illustratively, the first bluetooth connection mode allows the number of bluetooth devices connected simultaneously to be the same as the number of display windows described above. For example, in the case where it is detected that the electronic device has started 3 display windows capable of outputting audio, the number of bluetooth devices that the above-described first bluetooth connection mode allows the electronic device to be connected at the same time is also 3.
Step 202: the electronic equipment establishes an association relationship between the first area and the first Bluetooth equipment.
In this embodiment of the present application, the first area may be one of the plurality of display areas, or may be an area where one of the plurality of display windows capable of outputting audio is located.
In an exemplary case where an input to fold the display screen is received and the folded display screen includes a plurality of display areas, the first area is one of the plurality of display areas.
In an exemplary embodiment, when it is detected that the electronic device starts a plurality of display windows capable of outputting audio, the first area is an area where one of the plurality of display windows capable of outputting audio is located.
In this embodiment of the present application, the first bluetooth device may be one of the plurality of bluetooth devices.
In this embodiment of the present application, the electronic device may bind the first area with the first bluetooth device based on the identity tag corresponding to the first area, so as to establish an association relationship between the first area and the first bluetooth device.
Illustratively, the association relationship is used to indicate that the audio generated by the display content in the first area is output through the first bluetooth device.
Step 203: the electronic device outputs audio generated by the display content in the first area by using the first Bluetooth device.
In this embodiment of the present application, the audio generated by the display content may be audio played in an audio application running in the first area, or may be operation audio generated by performing operation input in the first area by a user.
For example, taking the first bluetooth device as a bluetooth headset, the audio generated by the display content is audio played by the audio application. After the association relationship between the first area and the bluetooth headset is established, if the audio application is running in the first area, the bluetooth headset can be adopted to play the audio played by the audio application.
In the bluetooth connection method provided in the embodiment of the present application, when the electronic device meets a first condition, the electronic device may adjust to a first bluetooth connection mode, where the first bluetooth connection mode allows the electronic device to connect to multiple bluetooth devices at the same time; then, establishing an association relationship between the first area and the first Bluetooth device; to output audio generated by the display content in the first region using the first bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio. Therefore, the electronic equipment supports the simultaneous connection of a plurality of Bluetooth equipment by adjusting to the first Bluetooth connection mode, and the audio generated by the display content in the first area is output only through the first Bluetooth equipment by establishing the association relation between the first area and the first Bluetooth equipment. Therefore, the audio generated by displaying the content in different areas is output only through the Bluetooth equipment which establishes the association relation with the audio, and the Bluetooth connection effect is improved.
Optionally, in the embodiment of the present application, before the step 202, the bluetooth connection method provided in the embodiment of the present application may further include the following step 301:
step 301: and the electronic equipment receives a first input of the first Bluetooth equipment identification under the condition that the N Bluetooth equipment identifications are displayed in the first area.
Wherein N is a positive integer greater than 1;
in the embodiment of the application, one bluetooth device identifier indicates one bluetooth device.
The bluetooth device identifier may be a name of a bluetooth device, an icon of a bluetooth device, or the like.
In this embodiment of the present application, the N bluetooth device identifiers indicate connectable bluetooth devices.
Illustratively, the connectable Bluetooth device is configured 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.
In this embodiment of the present application, the first input is used to trigger the electronic device to establish an association relationship between the first area and the first bluetooth device.
In this embodiment of the present application, the first input may be a click input of the first bluetooth device identifier, or other feasibility inputs, which is not limited in this embodiment of the present application.
Further optionally, in an embodiment of the present application, in combination with step 301, step 202 of "the electronic device establishes an association relationship between the first area and the first bluetooth device" may include the following step 302:
step 302: and the electronic equipment responds to the first input, and establishes an association relationship between the first area and the first Bluetooth equipment indicated by the first Bluetooth equipment identifier.
In this embodiment of the present application, the electronic device selects a first bluetooth device displayed in a first area by receiving a click input of a user on a name of the first bluetooth device, and then binds the first area with the first bluetooth device through an identity tag corresponding to the first area, so as to establish an association relationship between the first area and the first bluetooth device.
Therefore, through receiving the input of the first Bluetooth equipment identifier displayed in the first area, the association relationship between the first area and the first Bluetooth equipment is established, so that the audio generated by the display content in the first area can be output through the first Bluetooth equipment, and the Bluetooth connection effect is improved.
Optionally, in the embodiment of the present application, after the step 202, the bluetooth connection method provided in the embodiment of the present application may include the following steps 202a to 202d:
Step 202a: the electronic device displays the rest Bluetooth device identifiers except the first Bluetooth device identifier in the N Bluetooth device identifiers in the second area.
In this embodiment of the present application, after the association relationship between the first area and the first bluetooth device is established, the device identifier of the first bluetooth device will not be displayed in other areas of the electronic device.
Step 202b: the electronic device receives a second input of a second bluetooth device identification of the remaining bluetooth device identifications.
In this embodiment of the present application, the second input is used to trigger the electronic device to establish an association relationship between the second area and the second bluetooth device.
In this embodiment of the present application, the second input may be a click input of the second bluetooth device identifier, or other feasibility inputs, which is not limited in this embodiment of the present application.
Step 202c: and the electronic equipment responds to the second input to establish the association relationship between the second area and the second Bluetooth equipment indicated by the second Bluetooth equipment identifier.
In this embodiment of the present application, the electronic device selects the second bluetooth device by receiving a click input of a name of the second bluetooth device displayed in the second area by the user, and then binds the second area with the second bluetooth device by using an identity tag corresponding to the second area, so as to establish an association relationship between the second area and the second bluetooth device.
Step 202d: the electronic device outputs audio generated by the display content in the second area by using the second Bluetooth device.
For example, taking the second bluetooth device as a bluetooth headset, the audio generated by the display content is audio played by the audio application. After the association relationship between the second area and the bluetooth headset is established, if the audio application is running in the second area, the bluetooth headset can be used for playing the audio played by the audio application.
In this way, through receiving the input of different Bluetooth device identifiers displayed in different areas, the one-to-one association relationship between different areas and different Bluetooth devices is established, so that the audio generated by the display content in different areas can be output through the Bluetooth device establishing the association relationship with the area, and the Bluetooth connection effect is further improved.
Optionally, in the embodiment of the present application, after the step 202, the bluetooth connection method provided in the embodiment of the present application may include the following steps 401 and 402:
step 401: the electronic device sets the first Bluetooth device as a main control device of the electronic device.
In the embodiment of the present application, the above-mentioned main control device is used to control all areas in the electronic device.
It should be noted that the electronic device only allows one main control device to be provided.
In this embodiment of the present application, after the electronic device sets the bluetooth device 1 as the main control device, if the bluetooth device 1 is disconnected in the connection process with the electronic device, the electronic device will preferentially automatically connect with the bluetooth device 1 when searching the bluetooth device 1 and other bluetooth devices again.
Step 402: and the electronic equipment controls the multiple areas to respond to the first operation instruction under the condition that the electronic equipment receives the first operation instruction sent by the first Bluetooth equipment.
In an embodiment of the present application, the first operation instruction is used to instruct the electronic device to perform a related operation.
For example, in a case where the first bluetooth device is a bluetooth headset, the first operation instruction may include a volume adjustment instruction, a play pause instruction, a switch play instruction, and the like.
In this embodiment of the present application, when the electronic device receives the first operation instruction, it needs to first determine whether the bluetooth device that sends the first operation instruction is a master control device, and if the bluetooth device is the master control device, the electronic device executes an operation corresponding to the first operation instruction in all areas.
For example, the first bluetooth device is a bluetooth headset, and the plurality of areas includes an area 1 and an area 2. If the audio applications are running in the area 1 and the area 2 of the electronic device, the electronic device may receive a pause instruction sent by the bluetooth headset when the bluetooth headset is set as the main control device, and at this time, the electronic device may respond to the pause instruction, and simultaneously stop playing the audio of the audio applications running in the area 1 and the area 2.
In this way, by setting the Bluetooth device with the association relationship established as the main control device, all areas in the electronic device are controlled, and the convenience of the electronic device for simultaneously controlling all areas is improved.
Optionally, in the embodiment of the present application, after the step 202 described above in combination with the step 401 described above, the bluetooth connection method provided in the embodiment of the present application may include the following steps 403 and 404:
step 403: and the electronic equipment sets the third Bluetooth equipment as the auxiliary control equipment of the third area under the condition that the association relation is established between the third area and the third Bluetooth equipment.
In the embodiment of the present application, the above-mentioned secondary control device is only used for controlling the area in the electronic device with which the secondary control device has established an association relationship.
It should be noted that, the electronic device may be provided with a plurality of sub-control devices, and the same bluetooth device cannot be simultaneously provided as the main control device and the sub-control device.
In this embodiment of the present application, after the electronic device sets the bluetooth device 2 as the secondary control device, if the bluetooth device 2 is disconnected during the connection process with the electronic device, the electronic device will not connect the bluetooth device 2 again preferentially when searching the bluetooth device 2 and the bluetooth device 1 set as the primary control device again, and needs to connect the bluetooth device 2 after automatically connecting the bluetooth device 1.
Step 404: and the electronic equipment controls the third area to respond to the second operation instruction under the condition that the electronic equipment receives the second operation instruction sent by the third Bluetooth equipment.
In this embodiment of the present application, the second operation instruction is used to instruct the electronic device to perform the related operation in the third area.
For example, in a case where the third bluetooth device is a bluetooth headset, the second operation instruction may include a volume adjustment instruction, a play pause instruction, a switch play instruction, and the like.
In this embodiment of the present application, when the electronic device receives the second operation instruction, it needs to first determine whether the bluetooth device that sends the second operation instruction is a control device, and when it determines that the bluetooth device is a control device, it further determines whether the bluetooth device is a secondary control device, and if the bluetooth device is the secondary control device, the electronic device executes an operation corresponding to the second operation instruction in an area that establishes an association with the secondary control device.
For example, taking the third bluetooth device as a bluetooth headset, the plurality of areas includes an area 1 and an area 2 as an example. If the audio applications are running in both the area 1 and the area 2 of the electronic device, when the electronic device sets the bluetooth headset as the secondary control device in the area 2 (i.e., the third area), the electronic device may receive a pause instruction sent by the bluetooth headset, and at this time, the electronic device may respond to the pause instruction to stop playing the audio of the audio application running in the area 2.
Therefore, the Bluetooth device is set as the auxiliary control device of a certain area so as to control only the area in the electronic device, and the flexibility of controlling different areas by the electronic device is further improved.
Optionally, in the embodiment of the present application, before the step 202, the bluetooth connection method provided in the embodiment of the present application may further include the following steps 303 to 307:
step 303: the electronic device connects the electronic device with a plurality of Bluetooth devices and displays a plurality of Bluetooth device identifications.
In this embodiment of the present application, after the electronic device is adjusted to the first bluetooth connection mode, a plurality of bluetooth devices may be connected at the same time, so that the plurality of bluetooth devices are converted from an idle state to a connection state, and bluetooth device identifiers of the plurality of bluetooth devices that are successfully connected are displayed in any area in the electronic device.
Step 304: the electronic device receives a third input of a fourth bluetooth device identification.
In this embodiment of the present application, the third input is used to trigger the electronic device to select the fourth bluetooth device.
In this embodiment of the present application, the third input may be a click input of the fourth bluetooth device identifier, or other feasibility inputs, which is not limited in this embodiment of the present application.
Step 305: the electronic device displays a plurality of area identifications in response to the third input.
In the embodiment of the present application, the plurality of area identifiers are area identifiers of a plurality of areas in the electronic device.
The area identifier of the plurality of areas may be, for example, the name of the area, or an account number of the area.
It should be noted that, one area corresponds to one area identifier.
In this embodiment of the present application, after the electronic device connects a plurality of bluetooth devices, device identifiers of the plurality of bluetooth devices may be displayed in any area in the electronic device, and then, a third input of a fourth bluetooth device identifier in the plurality of bluetooth device identifiers is received, so as to display area identifiers of all areas capable of establishing an association relationship with the fourth bluetooth device.
Step 306: the electronic device receives a fourth input of a third one of the plurality of region identifications.
In this embodiment of the present application, the fourth input is used to trigger the electronic device to establish an association relationship between the third area and the fourth bluetooth device.
In this embodiment of the present application, the fourth input may be a click input of the third area identifier, or other feasibility inputs, which is not limited in this embodiment of the present application.
Illustratively, the third area identifier is any one of the plurality of area identifiers.
Step 307: and the electronic equipment responds to the fourth input, and establishes an association relationship between a third area indicated by the third area identifier and fourth Bluetooth equipment indicated by the fourth Bluetooth equipment identifier.
For example, as shown in fig. 2 (a), a bluetooth device identification control 11 (including the device identification of the bluetooth device 1 and the device identification of the bluetooth device 2) is displayed in the area 10. If the user clicks (i.e., the third input) on the device identifier of the bluetooth device 1 (i.e., the fourth bluetooth device identifier), as shown in fig. 2 (b), the area identifier control 12 (including the area identifier of the area 10 and the area identifier of the area 20) is displayed in the area 10. At this time, if the user clicks (i.e., the fourth input) the area identifier (i.e., the third area identifier) of the area 10, the electronic device establishes an association relationship between the area 10 and the bluetooth device 1.
Therefore, the electronic device displays the device identifiers of the connected Bluetooth devices on the display screen, so that a user can self-define and select the corresponding area of each Bluetooth device, and an association relationship is established, and the flexibility of connecting the Bluetooth devices is improved.
According to the Bluetooth connection method provided by the embodiment of the application, the execution main body can be a Bluetooth connection device. In this embodiment, a bluetooth connection device is used as an example to execute a bluetooth connection method, which illustrates a bluetooth connection device provided in this embodiment of the application.
The embodiment of the application provides a bluetooth connection device, as shown in fig. 3, the bluetooth connection device 500 includes: an adjustment module 501, a setup module 502, and an output module 503, wherein: the adjusting module 501 is configured to adjust the electronic device to a first bluetooth connection mode when a first condition is met, where the first bluetooth connection mode allows the electronic device to connect to multiple bluetooth devices at the same time; the establishing module 502 is configured to establish an association relationship between the first area and the first bluetooth device; the output module 503 is configured to output audio generated by the display content in the first area using the first bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio.
Optionally, in the embodiment of the present application, in a case where an input of folding a display screen is received and the folded display screen includes a plurality of display areas, the first area is one of the plurality of display areas; or when it is detected that the electronic device starts a plurality of display windows capable of outputting audio, the first area is an area where one of the plurality of display windows capable of outputting audio is located.
Optionally, in an embodiment of the present application, the bluetooth connection device 500 further includes: a receiving module, wherein: the receiving module is configured to receive a first input of a first bluetooth device identifier, where the first bluetooth device identifier indicates a bluetooth device, and N is a positive integer greater than 1, under the condition that N bluetooth device identifiers are displayed in the first area before the association relationship between the first area and the first bluetooth device is established by the establishing module 502; the establishing module 502 is specifically configured to establish an association relationship 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.
Optionally, in an embodiment of the present application, the bluetooth connection device 500 further includes: a display module, wherein: the display module is configured to display, in a second area, remaining bluetooth device identifiers except for the first bluetooth device identifier, after the association relationship between the first area and the first bluetooth device is established by the establishment module 502; the receiving module is further configured to receive a second input of a second bluetooth device identifier from the remaining bluetooth device identifiers; the establishing module 502 is further configured to establish an association between the second area and a second bluetooth device indicated by the second bluetooth device identifier in response to the second input received by the receiving module; the output module 503 is further configured to output audio generated by the display content in the second area using the second bluetooth device.
Optionally, in an embodiment of the present application, the number of bluetooth devices allowed to be connected simultaneously in the first bluetooth connection mode is related to the number of display areas or display windows.
In the bluetooth connection device provided in the embodiment of the present application, the bluetooth connection device is adjusted to a first bluetooth connection mode when a first condition is satisfied, where the first bluetooth connection mode allows the bluetooth connection device to connect a plurality of bluetooth devices at the same time; then, establishing an association relationship between the first area and the first Bluetooth device; to output audio generated by the display content in the first region using the first bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio. Therefore, the Bluetooth connection device supports the simultaneous connection of a plurality of Bluetooth devices by adjusting to the first Bluetooth connection mode, and the audio generated by the display content in the first area is output only through the first Bluetooth device by establishing the association relation between the first area and the first Bluetooth device. Therefore, the audio generated by displaying the content in different areas is output only through the Bluetooth equipment which establishes the association relation with the audio, and the Bluetooth connection effect is improved.
The bluetooth connection device in the embodiment of the present application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The bluetooth connection device in the embodiment of the present application may be a device with 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 embodiments of the present application.
The bluetooth connection device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 and fig. 2, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 600, including a processor 601 and a memory 602, where a program or an instruction capable of running on the processor 601 is stored in the memory 602, and the program or the instruction implements each step of the above-mentioned bluetooth connection method embodiment when being executed by the processor 601, and the steps can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: 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.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 110 is configured to adjust the electronic device to a first bluetooth connection mode when a first condition is met, where the first bluetooth connection mode allows the electronic device to connect to multiple bluetooth devices at the same time; the processor 110 is further configured to establish an association relationship between the first area and the first bluetooth device; the processor 110 is further configured to output audio generated by the display content in the first area using the first bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio.
Optionally, in the embodiment of the present application, in a case where an input of folding a display screen is received and the folded display screen includes a plurality of display areas, the first area is one of the plurality of display areas; or when it is detected that the electronic device starts a plurality of display windows capable of outputting audio, the first area is an area where one of the plurality of display windows capable of outputting audio is located.
Optionally, in this embodiment of the present application, before the processor 110 establishes an association between the first area and the first bluetooth device, the user input unit 107 is configured to receive, if N bluetooth device identifiers are displayed in the first area, a first input for the first bluetooth device identifier, where 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 an association relationship 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.
Optionally, in the embodiment of the present application, the display unit 106 is configured to display, in a second area, remaining bluetooth device identifiers other than the first bluetooth device identifier, from the N bluetooth device identifiers after the processor 110 establishes an association between the first area and the first bluetooth device; the user input unit 107 is further configured to receive a second input of a second bluetooth device identifier from the remaining bluetooth device identifiers; the processor 110 is further configured to establish an association between the second area and a 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 display content in the second area using the second bluetooth device.
Optionally, in an embodiment of the present application, the number of bluetooth devices allowed to be connected simultaneously in the first bluetooth connection mode is related to the number of display areas or display windows.
In the electronic device provided by the embodiment of the application, the electronic device is adjusted to a first bluetooth connection mode under the condition that a first condition is met, and the first bluetooth connection mode allows the electronic device to be connected with a plurality of bluetooth devices at the same time; then, establishing an association relationship between the first area and the first Bluetooth device; to output audio generated by the display content in the first region using the first bluetooth device; wherein the satisfaction of the first condition includes at least one of: receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas; it is detected that the electronic device has started a plurality of display windows capable of outputting audio. Therefore, the electronic equipment supports the simultaneous connection of a plurality of Bluetooth equipment by adjusting to the first Bluetooth connection mode, and the audio generated by the display content in the first area is output only through the first Bluetooth equipment by establishing the association relation between the first area and the first Bluetooth equipment. Therefore, the audio generated by displaying the content in different areas is output only through the Bluetooth equipment which establishes the association relation with the audio, and the Bluetooth connection effect is improved.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 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 referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above embodiment of the bluetooth connection method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or an instruction, implementing each process of the bluetooth connection method embodiment, and achieving the same technical effect, so as to avoid repetition, and no further description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the bluetooth connection method, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A bluetooth connection method applied to an electronic device, the method comprising:
adjusting the electronic equipment to a first Bluetooth connection mode under the condition that a first condition is met, wherein the first Bluetooth connection mode allows the electronic equipment to be connected with a plurality of Bluetooth equipment at the same time;
establishing an association relationship between a first area and a first Bluetooth device;
outputting audio generated by display content in the first area by adopting the first Bluetooth device;
wherein the meeting the first condition includes at least one of:
receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas;
it is detected that the electronic device has launched a plurality of display windows capable of outputting audio.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
when an input of a folded display screen is received and the folded display screen comprises a plurality of display areas, the first area is one of the display areas;
or,
and under the condition that the electronic equipment is detected to start a plurality of display windows capable of outputting audio, the first area is an area where one of the plurality of display windows capable of outputting audio is located.
3. The method of claim 1, wherein prior to establishing the association between the first region and the first bluetooth device, the method further comprises:
receiving a first input of a first Bluetooth device identifier under the condition that N Bluetooth device identifiers are displayed in the first area, wherein one Bluetooth device identifier indicates one Bluetooth device, and N is a positive integer greater than 1;
the establishing the association relationship between the first area and the first bluetooth device includes:
and responding to the first input, and establishing an association relationship between the first area and the first Bluetooth equipment indicated by the first Bluetooth equipment identifier.
4. The method of claim 3, wherein after establishing the association between the first area and the first bluetooth device, the method further comprises:
displaying the rest Bluetooth device identifiers except the first Bluetooth device identifier in the N Bluetooth device identifiers in a second area;
receiving a second input of a second Bluetooth device identifier in the rest Bluetooth device identifiers;
responding to the second input, and establishing an association relationship between the second area and a second Bluetooth device indicated by the second Bluetooth device identifier;
And outputting audio generated by the display content in the second area by adopting the second Bluetooth equipment.
5. The method of claim 1, wherein the first bluetooth connection mode allows a number of bluetooth devices connected simultaneously to be related to a number of the display areas or the display windows.
6. A bluetooth connection device, the device comprising: the device comprises an adjusting module, a building module and an output module, wherein:
the adjusting module is used for adjusting the electronic equipment to a first Bluetooth connection mode under the condition that a first condition is met, wherein the first Bluetooth connection mode allows the electronic equipment to be connected with a plurality of Bluetooth equipment at the same time;
the establishing module is used for establishing an association relationship between the first area and the first Bluetooth device;
the output module is used for outputting audio generated by the display content in the first area by adopting the first Bluetooth device;
wherein the meeting the first condition includes at least one of:
receiving input of a folded display screen, wherein the folded display screen comprises a plurality of display areas;
it is detected that the electronic device has launched a plurality of display windows capable of outputting audio.
7. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
when an input of a folded display screen is received and the folded display screen comprises a plurality of display areas, the first area is one of the display areas;
or,
and under the condition that the electronic equipment is detected to start a plurality of display windows capable of outputting audio, the first area is an area where one of the plurality of display windows capable of outputting audio is located.
8. The apparatus of claim 6, wherein the apparatus further comprises: a receiving module, wherein:
the receiving module is further configured to receive a first input of a first bluetooth device identifier, where the first bluetooth device identifier indicates a bluetooth device, and N is a positive integer greater than 1, under the condition that N bluetooth device identifiers are displayed in the first area before the association relationship between the first area and the first bluetooth device is established by the establishing module;
the establishing module is specifically configured to establish an association relationship 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.
9. The apparatus of claim 8, wherein the apparatus further comprises: a display module, wherein:
the display module is used for displaying the rest Bluetooth device identifiers except the first Bluetooth device identifier in the N Bluetooth device identifiers in a second area after the association relation between the first area and the first Bluetooth device is established by the establishment module;
the receiving module is further configured to receive a second input of a second bluetooth device identifier from the other bluetooth device identifiers;
the establishing module is further configured to establish an association relationship between the second area and a 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 is further used for outputting audio generated by the display content in the second area by adopting the second Bluetooth device.
10. The apparatus of claim 6, wherein the first bluetooth connection mode allows a number of bluetooth devices connected simultaneously to be related to a number of the display areas or the display windows.
CN202310087833.5A 2023-01-18 2023-01-18 Bluetooth connection method and device Pending CN116095656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310087833.5A CN116095656A (en) 2023-01-18 2023-01-18 Bluetooth connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310087833.5A CN116095656A (en) 2023-01-18 2023-01-18 Bluetooth connection method and device

Publications (1)

Publication Number Publication Date
CN116095656A true CN116095656A (en) 2023-05-09

Family

ID=86208095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310087833.5A Pending CN116095656A (en) 2023-01-18 2023-01-18 Bluetooth connection method and device

Country Status (1)

Country Link
CN (1) CN116095656A (en)

Similar Documents

Publication Publication Date Title
CN111913628B (en) Sharing method and device and electronic equipment
WO2020156111A1 (en) Interface display method and terminal
US12001654B2 (en) Image storage method and terminal device
US20210352040A1 (en) Message sending method and terminal device
CN111782115B (en) Application program control method and device and electronic equipment
CN107832110A (en) A kind of information processing method and mobile terminal
CN110941340B (en) Split screen display method and terminal equipment
CN110096203B (en) Screenshot method and mobile terminal
CN110941501A (en) Application sharing method and electronic equipment
WO2020133350A1 (en) Interface display method and control terminal
WO2024169916A1 (en) Display processing method and apparatus, and electronic device
CN113220365A (en) Control method and control device
CN111209072B (en) Application sharing method, first electronic device and readable storage medium
CN113271376A (en) Communication control method, electronic equipment and earphone
US20230093481A1 (en) Screen control method and apparatus
CN113840033B (en) Audio data playing method and device
CN107835310B (en) Mobile terminal setting method and mobile terminal
WO2022171056A1 (en) Method and apparatus for starting application program, and electronic device
CN115421846A (en) Cross-device control method, control device, electronic device and readable storage medium
CN116095656A (en) Bluetooth connection method and device
CN114599020A (en) Bluetooth connection method, Bluetooth connection device, electronic device and readable storage medium
CN113992786A (en) Audio playing method and device
CN112905837A (en) Video file processing method and device and electronic equipment
CN115052005B (en) Synchronous display method, synchronous display device, electronic equipment and storage medium
US20240356993A1 (en) Screen control method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination