Nothing Special   »   [go: up one dir, main page]

CN110168942B - Method, terminal, system and storage medium for selecting Bluetooth device - Google Patents

Method, terminal, system and storage medium for selecting Bluetooth device Download PDF

Info

Publication number
CN110168942B
CN110168942B CN201780081854.9A CN201780081854A CN110168942B CN 110168942 B CN110168942 B CN 110168942B CN 201780081854 A CN201780081854 A CN 201780081854A CN 110168942 B CN110168942 B CN 110168942B
Authority
CN
China
Prior art keywords
bluetooth
terminal
equipment
bluetooth device
electric quantity
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.)
Active
Application number
CN201780081854.9A
Other languages
Chinese (zh)
Other versions
CN110168942A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110535662.9A priority Critical patent/CN113422864A/en
Publication of CN110168942A publication Critical patent/CN110168942A/en
Application granted granted Critical
Publication of CN110168942B publication Critical patent/CN110168942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/40Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
    • H04B5/48Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method, a terminal and a system for selecting Bluetooth equipment, relates to the technical field of Bluetooth and is used for solving the inconvenience in use caused by unreasonable selection of the Bluetooth equipment by the terminal. The method comprises the following steps: the terminal is connected with at least two Bluetooth devices; the terminal acquires the electric quantity and the equipment information of the at least two Bluetooth equipment connected with the terminal; the terminal detects a current triggered event; the terminal determines a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices and the device information; and the terminal carries out the service corresponding to the event based on the first Bluetooth equipment. The embodiment of the application is applied to the communication between the terminal and at least two Bluetooth devices.

Description

Method, terminal, system and storage medium for selecting Bluetooth device
Technical Field
The present application relates to the field of bluetooth technologies, and in particular, to a method, a terminal, and a system for selecting a bluetooth device.
Background
As more and more devices support the bluetooth communication mode, some terminals support connecting multiple bluetooth devices at the same time, and when performing voice call or playing music, the terminal must select one of the bluetooth devices according to a certain policy. For example, the terminal is connected with a bluetooth headset and a vehicle bluetooth sound, the user opens a music player on the terminal to play music, and the terminal needs to select whether to use the bluetooth headset or the vehicle bluetooth sound to play music.
In the prior art, the terminal usually selects to use the last connected bluetooth device, or once a certain bluetooth device is determined to be used, other bluetooth devices are not used after the user actively modifies the bluetooth device. For example, when a call comes in, if the call content continues to be played by using the vehicle-mounted bluetooth sound, privacy of a user may be affected.
Disclosure of Invention
The embodiment of the application provides a method, a terminal and a system for selecting Bluetooth equipment, which are used for solving the inconvenience in use caused by unreasonable selection of the Bluetooth equipment by the terminal.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a method for selecting a bluetooth device is provided, the method comprising: the terminal is connected with at least two Bluetooth devices; the method comprises the steps that a terminal acquires electric quantity and equipment information of at least two Bluetooth equipment connected with the terminal; the terminal detects a current triggered event; the terminal determines a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices and the device information; and the terminal carries out the service corresponding to the event based on the first Bluetooth equipment. According to the method for selecting the Bluetooth equipment, the terminal selects at least one Bluetooth equipment from at least two Bluetooth equipments to perform business according to the type of the event to be triggered, the electric quantity of the Bluetooth equipment, the equipment information and the like, when the Bluetooth equipment is selected, the influence of different triggering events and the electric quantity of the Bluetooth equipment is considered, and the inconvenience in use caused by unreasonable Bluetooth equipment selection of the terminal is solved.
In one possible embodiment, the determining, by the terminal, the first bluetooth device from the at least two bluetooth devices according to the type of the event, the power amounts of the at least two bluetooth devices, and the device information may include: if more than one Bluetooth device in the at least two Bluetooth devices has the electric quantity more than or equal to the threshold value and supports the specification required by the type, the terminal determines the Bluetooth device with the highest priority as the first Bluetooth device from the more than one Bluetooth devices; if the electric quantity in the Bluetooth equipment supporting the specification required by the service is not more than or equal to the threshold value in the at least two Bluetooth equipment, the terminal determines the Bluetooth equipment with the highest electric quantity as the first Bluetooth equipment from the Bluetooth equipment supporting the specification required by the service. This embodiment provides a specific way of determining the first bluetooth device.
In a possible implementation manner, the terminal further acquires setting information of a user; the terminal determines a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices and the device information, and the method comprises the following steps: the terminal determines a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices, the device information and the setting information of the user. This embodiment provides that the first bluetooth device may be further determined according to the setting information of the user.
In a possible implementation manner, the determining, by the terminal, the first bluetooth device from the at least two bluetooth devices according to the type of the event, the power amounts of the at least two bluetooth devices, the device information, and the setting information of the user may include: if the Bluetooth equipment which belongs to the setting information of the user exists, the Bluetooth equipment corresponding to the setting information of the user is used as first Bluetooth equipment; if more than one Bluetooth device in the at least two Bluetooth devices has the electric quantity more than or equal to the threshold value and supports the specification required by the type and no Bluetooth device belongs to the setting information of the user, the terminal determines the Bluetooth device with the highest priority as the first Bluetooth device from the more than one Bluetooth devices; if the electric quantity in the Bluetooth equipment supporting the specification required by the service is not more than or equal to the threshold value in the at least two Bluetooth equipment, the terminal determines the Bluetooth equipment with the highest electric quantity as the first Bluetooth equipment from the Bluetooth equipment supporting the specification required by the service. This embodiment provides another specific way of determining the first bluetooth device.
In a possible implementation manner, after the terminal performs a service corresponding to the event based on the first bluetooth device, the method further includes: the terminal acquires the electric quantity of the first Bluetooth device; if the electric quantity of the first Bluetooth equipment is smaller than the threshold value, the terminal reminds the user and/or the terminal to switch to the second Bluetooth equipment for service; the second Bluetooth device is a Bluetooth device which is currently connected with the terminal. The embodiment enables the Bluetooth device which carries out the service to be switched to other Bluetooth devices when the power of the Bluetooth device is low.
In one possible implementation, the device information includes the type of device, parameters, and bluetooth specifications supported by the device. This embodiment provides specific content of device information.
In a possible implementation manner, before the terminal performs the service corresponding to the event based on the first bluetooth device, the method further includes: the terminal displays the alternative Bluetooth equipment and the recommended first Bluetooth equipment on a display interface; the terminal receives the selection of the user and takes the Bluetooth device selected by the user as the first Bluetooth device. This embodiment may be user selectable bluetooth devices.
In one possible embodiment, after the terminal is connected to at least two bluetooth devices, the method further includes: the terminal displays the electric quantity of at least two Bluetooth devices on a display interface. The embodiment can visually display the electric quantity of the Bluetooth equipment.
In one possible embodiment, after the terminal is connected to at least two bluetooth devices, the method further includes: and the terminal displays the device information of the connected at least two Bluetooth devices on a display interface. The embodiment can visually display the device information of the Bluetooth device.
In a possible implementation manner, the service corresponding to the event is a voice call service or an audio playing service. The embodiment provides specific content of the service corresponding to the event.
In a second aspect, a terminal is provided, which includes: the Bluetooth unit is used for connecting with at least two Bluetooth devices; the acquisition unit is used for acquiring the electric quantity and the equipment information of at least two Bluetooth equipment connected with the terminal; the detection unit is used for detecting a current triggered event; the determining unit is used for determining a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices and the device information; and the Bluetooth unit is also used for carrying out the service corresponding to the event based on the first Bluetooth equipment. Based on the same inventive concept, as the principle and the advantageous effects of the terminal for solving the problems can refer to the possible method embodiments of the first aspect and the advantageous effects brought thereby, the implementation of the terminal can refer to the possible method embodiments of the first aspect and the first aspect, and repeated details are not repeated.
In a third aspect, a terminal is provided, which includes: the mobile terminal comprises a storage module, a processing module, a communication module and a touch display module, wherein each module is used for supporting the terminal to execute each possible method implementation mode of the first aspect and the first aspect.
In a fourth aspect, a terminal is provided, which includes: one or more processors, a memory, a bus system, and one or more programs, the processors and memory being coupled via the bus system; wherein the one or more programs are stored in the memory, the one or more programs comprising instructions which, when executed by the terminal, cause the terminal to perform the various possible method embodiments of the first aspect and the first aspect.
In a fifth aspect, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a terminal, cause the terminal to perform the various possible method embodiments of the first aspect and the first aspect.
In a sixth aspect, there is provided a Graphical User Interface (GUI) stored in an electronic device comprising a touch screen, a memory, one or more processors to execute one or more computer programs stored in the memory, the GUI comprising: a first GUI displayed on the touch screen, the first GUI including an interface for an application and a prompt for a message; in response to the user's input, a second GUI is displayed on the touch screen, the second GUI including an interface of the application.
In a seventh aspect, an electronic device is provided, wherein the electronic device includes a processor configured to perform the possible method embodiments of the first aspect and the first aspect.
In an eighth aspect, a computer program product comprising instructions is provided, which when run on an electronic device causes the electronic device to perform the various possible method embodiments of the first aspect and the first aspect.
Technical effects of the third to eighth aspects may be as described with reference to the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is an external view of a terminal according to an embodiment of the present disclosure;
fig. 2 is a first schematic structural diagram of a terminal according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a communication system according to an embodiment of the present application;
fig. 4 is a first flowchart illustrating a method for selecting a bluetooth device according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a second method for selecting a bluetooth device according to an embodiment of the present application;
fig. 6 is a first schematic diagram of an application scenario provided in the embodiment of the present application;
fig. 7 is a third flowchart illustrating a method for selecting a bluetooth device according to an embodiment of the present application;
fig. 8 is a first schematic diagram illustrating power display of a bluetooth device according to an embodiment of the present disclosure;
fig. 9 is a fourth flowchart illustrating a method for selecting a bluetooth device according to an embodiment of the present application;
fig. 10 is a second schematic diagram illustrating power display of a bluetooth device according to an embodiment of the present disclosure;
fig. 11 is a third schematic diagram illustrating power display of a bluetooth device according to an embodiment of the present disclosure;
fig. 12 is a flowchart illustrating a fifth method for selecting a bluetooth device according to an embodiment of the present application;
fig. 13 is a schematic diagram of a message alert according to an embodiment of the present application;
fig. 14 is a second schematic diagram of an application scenario provided in the embodiment of the present application;
fig. 15 is a sixth flowchart illustrating a method for selecting a bluetooth device according to an embodiment of the present application;
fig. 16 is a schematic diagram of a prompt message provided in an embodiment of the present application;
fig. 17 is a seventh flowchart illustrating a method for selecting a bluetooth device according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 19 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 20 is a fourth schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The terminal in the embodiment of the present invention may be various devices configured with a display screen and a bluetooth module, for example, the terminal may include a mobile phone, a wearable electronic device (e.g., a smart watch, etc.), a tablet computer, a notebook computer, a vehicle-mounted computer, a virtual reality device, an augmented reality device, and the like, and the specific form of the terminal is not particularly limited in the embodiment of the present application.
For example, the following embodiments use a mobile phone as an example to explain how the terminal implements the specific technical solutions in the embodiments. As shown in fig. 1 or fig. 2, the terminal in the embodiment of the present invention may be a mobile phone 200. Fig. 1 is a schematic front view of a mobile phone 200, and fig. 2 is a schematic hardware structure of the mobile phone 200. The embodiment will be specifically described below by taking the mobile phone 200 as an example.
It should be understood that the illustrated handset 200 is merely one example of a terminal and that the handset 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have different components.
As shown in fig. 2, the handset 200 may include: a Radio Frequency (RF) circuit 210, a memory 220, an input unit 230, a display unit 240, a sensor 250, an audio circuit 260, a Wireless Fidelity (WiFi) module 270, a processor 280, a bluetooth module 281, a SIM card module 282, and a power supply 290. Those skilled in the art will appreciate that the handset configuration shown in fig. 2 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes the components of the mobile phone 200 in detail with reference to fig. 2:
the RF circuit 210 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the received downlink information to the processor 280; in addition, data relating to uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the RF circuitry 210 may also communicate with networks and other mobile devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications, general packet radio service, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
Memory 220 may be used to store software programs and data. The processor 280 performs various functions of the cellular phone 200 and data processing by executing software programs and/or data stored in the memory 220. The memory 220 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone 200, and the like. Further, the memory 220 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. In the following embodiments, memory 220 stores an operating system that enables cell phone 200 to operate, such as developed by apple Inc
Figure GPA0000268575550000061
Operating System, developed by Google
Figure GPA0000268575550000063
The open-source operating system is used for operating the system,developed by Microsoft corporation
Figure GPA0000268575550000062
An operating system, etc.
The input unit 230, such as a touch screen, may be used to receive input numeric or character information and generate signal inputs related to user settings and function control of the cellular phone 200. Specifically, the input unit 230 may include a touch panel 231 disposed on the front surface of the mobile phone 200 as shown in fig. 1, and may collect a touch operation performed by a user on or near the touch panel 231 (for example, an operation performed by the user on or near the touch panel 231 using any suitable object or accessory such as a finger or a stylus pen), and drive a corresponding connection device according to a preset program.
The display unit 240 (i.e., a display screen) may be used to display information input by or provided to the User and a Graphical User Interface (GUI) for various menus of the mobile phone 200. The display unit 240 may include a display panel 241 disposed on the front surface of the cellular phone 200. The display panel 241 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 240 may be used to display various interfaces described herein.
As shown in fig. 1, in some embodiments, the mobile phone 200 may be provided with a touch panel 231 and a display panel 241 on the front surface, and the touch panel 231 is covered on the display panel 241. When the touch panel 231 detects a touch operation thereon or nearby, it is transmitted to the processor 280 to determine a touch event, and then the processor 280 provides a corresponding visual output on the display panel 241 according to the type of the touch event. Although the touch panel 231 and the display panel 241 are shown as two separate components in fig. 2 to implement the input and output functions of the mobile phone 200, in some embodiments, the touch panel 231 and the display panel 241 may be integrated to implement the input and output functions of the mobile phone 200, and the integrated touch panel 231 and the display panel 241 may be referred to as a touch display screen.
The handset 200 may also include at least one sensor 250, such as a light sensor, motion sensor, and other sensors. The mobile phone 200 may further include other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described in detail.
Audio circuitry 260, speaker 261, and microphone 262 may provide an audio interface between a user and cell phone 200. The audio circuit 260 may transmit the electrical signal converted from the received audio data to the speaker 261, and convert the electrical signal into a sound signal by the speaker 261 and output the sound signal; on the other hand, the microphone 262 converts the collected sound signals into electrical signals, which are received by the audio circuit 260 and converted into audio data, which are then output to the RF circuit 210 for transmission to, for example, another cell phone, or to the memory 220 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone 200 can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 270, which provides wireless broadband internet access for the user.
The processor 280 is a control center of the mobile phone 200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone 200 and processes data by operating or executing software programs stored in the memory 220 and calling data stored in the memory 220, thereby performing overall monitoring of the mobile phone. In some embodiments, processor 280 may include one or more processing units; the processor 280 may also integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a baseband processor, which primarily handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 280.
The bluetooth module 281 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a short-range communication protocol, such as bluetooth. For example, the mobile phone 200 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) having a bluetooth module through the bluetooth module 281, so as to perform data interaction. In this embodiment, the bluetooth module 281 may pair with at least two bluetooth devices and maintain connection, and the processor 280 of the terminal may control the bluetooth module 281 to perform the method for selecting a bluetooth device according to this embodiment. Referring to fig. 3, a schematic diagram of a communication system according to an embodiment of the present disclosure includes a terminal 200 and a bluetooth device 300 having a bluetooth module, where the bluetooth device 300 may include a bluetooth headset, a bluetooth speaker, a vehicle bluetooth, and other devices. In the embodiment of the present application, the processor 280 of the terminal performs bluetooth communication with the bluetooth device 300 through the bluetooth module 281, for example, obtains power and device information of the bluetooth device, and transmits voice data, audio data, and the like with the bluetooth device.
The bluetooth specification that carries out bluetooth communication between terminal and the bluetooth equipment and adopt includes: a specification for transmitting voice and a specification for transmitting audio. The specification for transmitting voice may include a Hand Free Profile (HFP) specification, which may control operations of the bluetooth device to make and make phone calls, such as answering, hanging up, rejecting, dialing, and the like. The specifications for transmitting Audio may include an Advanced Audio Distribution Profile (A2 DP) that allows a stereo Audio signal to be transmitted with better transmission quality than a mono of HFP, and thus is commonly used in a scene where a bluetooth headset, a bluetooth sound, or the like plays music.
The handset 200 also includes a power supply 290 (such as a battery) for powering the various components. The power supply may be logically coupled to the processor 280 through a power management system to manage charging, discharging, and power consumption functions through the power management system. It is understood that, in the following embodiments, the power supply 290 may be used to supply power to the display panel 241 and the touch panel 231.
The methods in the following embodiments can be implemented in the mobile phone 200 having the above hardware structure.
It should be noted that, for the following drawings describing the display interface, the drawings are only used for exemplarily describing one possible expression form of the display interface, and are not intended to limit that the actual product must adopt the same expression form.
The embodiment of the application provides a method for selecting Bluetooth equipment, after a terminal is successfully paired with at least two Bluetooth equipment and is in a connection maintaining state, the terminal can acquire the electric quantity and equipment information of the Bluetooth equipment, and the terminal can use the Bluetooth equipment to perform business according to the type of a trigger event, the electric quantity and the equipment information of the Bluetooth equipment and the like.
Referring to fig. 4, a method for selecting a bluetooth device according to an embodiment of the present application may include steps S101 to S103:
s101, the terminal is connected with at least two Bluetooth devices.
The connection between the terminal and the at least two Bluetooth devices means that the terminal and the at least two Bluetooth devices are successfully paired and are in a connection maintaining state.
A procedure of establishing a connection between a terminal and a bluetooth device will be described. In an alternative implementation, the terminal as a master device may page the bluetooth device as a slave device in a frequency hopping manner, the bluetooth device may scan for external pages at regular intervals, and in response to the page after scanning the page of the terminal, the terminal establishes an Asynchronous Connection-Less Link (ACL) Connection with the bluetooth device. After the ACL connection is established, the terminal may initiate establishment of a Logical Link Control and Adaptation Protocol (L2 CAP) connection, after the L2CAP connection is established, the terminal queries a hands-free Service of the bluetooth device through a Service Discovery Protocol (SDP) and obtains a channel number of a Radio Frequency Communication (RFCOMM), then the terminal initiates a connection request of the RFCOMM to establish an RFCOMM connection, and then the connection between the terminal and the bluetooth device is established.
S102, the terminal acquires the electric quantity and the equipment information of the at least two Bluetooth equipment connected with the terminal.
Specifically, the terminal may acquire the device information of the bluetooth device in an information interaction process of pairing with the bluetooth device. The device information of the bluetooth device may include the type, parameters, and bluetooth specifications supported by the bluetooth device. The device information is described in detail below.
The type of bluetooth device refers to the kind to which the bluetooth device belongs, which may belong to, for example, a mobile phone, a watch, a bracelet, an earphone, a stereo, a car, etc. The parameters of the bluetooth device may include, for example, audio parameters (sampling rate, coding format, etc.), monaural or binaural, stereo or mono. The device type and the parameter of the bluetooth device are used for indicating the privacy level or the sound effect level of the bluetooth device, specifically, the privacy level or the sound effect level can be distinguished according to the device type for the bluetooth devices of different types, and the privacy level or the sound effect level can be further distinguished according to the parameter for the bluetooth devices of the same type. For example, the privacy level of bluetooth headset will be higher than that of bluetooth car, the sound effect level of bluetooth car will be higher than that of bluetooth headset, and to the device that is the same as the headset, the sound effect level of ears will be higher than that of single ears, and so on. The privacy level is for the transmitted speech and the sound effect level is for the transmitted audio.
The terminal can actively acquire the electric quantity of the Bluetooth device by sending a query command to the Bluetooth device, or the Bluetooth device can periodically report the electric quantity to the terminal through an AT command defined in the HFP specification. The terminal actively acquires the electric quantity of the Bluetooth equipment, and the electric quantity can be generated at the moment of triggering any user event so as to meet the real-time property; the periodic reporting is used for refreshing the electric quantity of a certain bluetooth device at fixed time intervals, each bluetooth device can report at different time points, and the reporting periods can be the same or different.
For the bluetooth device supporting the A2DP specification, the power of the terminal can be periodically reported to the terminal through the AT command defined in the HFP specification, so that when the terminal transmits audio data to the bluetooth device through the A2DP channel, the power of the bluetooth device can still be acquired through the HFP channel.
S103, the terminal detects the current trigger event.
For example, if the terminal has an incoming call or an outgoing call or is in a call, the terminal system may detect a currently triggered event, for example, may detect and determine that the terminal performs a voice call service through a bottom layer interface or in another manner; or, if the terminal starts or is playing audio, the terminal may detect that the terminal performs an audio playing service.
S104, the terminal determines a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices and the device information.
The type of the event refers to a type to which the current event belongs, for example, if an interface of the terminal detecting the current event belongs to a voice call interface or an audio play interface, the type of the event belongs to a voice pass type or an audio play type, and the corresponding service is a voice call service or an audio play service. It can be understood that the type of the event is determined by detecting the interface of the current event, which is only an exemplary illustration, and other technical solutions may also be available, and the embodiment of the present invention does not limit this. The first bluetooth device refers to a bluetooth device through which the terminal will perform a voice call service or an audio play service, and is not limited to one bluetooth device, and may refer to at least one bluetooth device.
Specifically, referring to fig. 5, step S104 may include steps S1041-S1042:
s1041, if the electric quantity of more than one Bluetooth device in the at least two Bluetooth devices is larger than or equal to the threshold value and the specification required by the type is supported, the terminal determines the Bluetooth device with the highest priority as the first Bluetooth device from the more than one Bluetooth device.
As described in step S102, the device information may include the type, parameters, and bluetooth specification supported by the bluetooth device, and the device type and parameters of the bluetooth device are used to indicate the privacy level or sound effect level of the bluetooth device. If the type of the event is a voice call service, the required specification is a specification for transmitting voice, and the corresponding priority is a privacy level; if the type of the event is an audio playing service, the required specification is a specification for transmitting audio, and the corresponding priority is a sound effect level. The threshold may be a percentage representing the minimum amount of power normally used by the bluetooth device, and may be, for example, 50%. It should be noted that if only one bluetooth device has a power greater than or equal to the threshold and supports the specification required by the service, there is no priority problem and only the bluetooth device can be selected.
Through the step, the matching of the specification supported by the selected Bluetooth equipment and the service is ensured, the electric quantity of the selected Bluetooth equipment is ensured to meet the normal use, and the Bluetooth equipment with high priority is selected according to the service type.
S1042, if no electric quantity in the bluetooth devices supporting the specification required by the service is greater than or equal to the threshold value, the terminal determines the bluetooth device with the highest electric quantity as the first bluetooth device from the bluetooth devices supporting the specification required by the service.
Through the step, under the condition that the matching between the specification supported by the selected Bluetooth equipment and the service is ensured, if the electric quantity of all the Bluetooth equipment can not meet the normal use, the Bluetooth equipment with the highest electric quantity is selected as much as possible so as to ensure the data transmission as much as possible.
And S105, the terminal carries out the service corresponding to the event based on the first Bluetooth equipment.
The method comprises the following steps: and after the terminal determines the first Bluetooth equipment, the terminal performs a voice call service or an audio play service corresponding to the event.
The following describes steps S104 and S105 by way of example.
Referring to fig. 6, assuming that the user holds the terminal 200 by bluetooth to connect the bluetooth headset 602 and plays music (i.e., performs an audio playing service), the user enters a car having bluetooth 601 in the car and turns on the bluetooth 601 in the car. Because the vehicle-mounted bluetooth 601 is powered by a vehicle storage battery or a vehicle generator, theoretically, the vehicle-mounted bluetooth 601 is always full of electricity (which is equivalent to that the electricity of the vehicle-mounted bluetooth is always larger than a threshold value in the using process), the bluetooth headset is generally powered by a battery, and the electricity is lost in the using process. Assuming that the power of the bluetooth headset 602 is greater than the threshold, the bluetooth headset 602 and the vehicle bluetooth 601 both support the specification of transmitting voice and the specification of transmitting audio. The privacy level of the Bluetooth headset 602 is higher than that of the vehicle-mounted Bluetooth 601, and the sound effect level of the vehicle-mounted Bluetooth 601 is higher than that of the Bluetooth headset 602.
The terminal 200 is successfully paired with the vehicle-mounted Bluetooth 601 and connection is established. At this time, the terminal 200 learns that the connected bluetooth device is changed from the original connection with the bluetooth headset 602 to the connection with both the bluetooth headset 602 and the vehicle-mounted bluetooth 601, and evaluates whether to reselect the bluetooth device for the audio playing service. Specifically, the terminal 200 determines that the audio playing service is still performed after the connection of the vehicle bluetooth 601, according to the audio playing service being performed before the connection of the vehicle bluetooth 601. And the terminal determines the vehicle bluetooth 601 with the highest priority (the priority is the sound effect level for the audio playing service) as the first bluetooth device according to the specification that the bluetooth headset 602 and the vehicle bluetooth 601 both support the transmission audio and the electric quantity is larger than the threshold, and performs the audio playing service through the vehicle bluetooth 601. At this time, the device playing music is switched from the bluetooth headset 602 to the vehicle bluetooth 601, so that data can be ensured to be continuously transmitted (for example, the music is ensured to be continuously played), and a better bluetooth device (with better sound effect) is selected in combination with the special requirement of data.
If the terminal 200 suddenly receives an incoming call at this time or the user makes an outgoing call through the terminal 200, the terminal 200 again evaluates whether to reselect the bluetooth device for the voice call service. Specifically, the terminal 200 determines that a voice call service will be performed and stops transmitting audio according to incoming and outgoing calls. According to the specification that the bluetooth headset 602 and the vehicle-mounted bluetooth 601 both support the transmission voice and the power amount is greater than the threshold, the terminal 200 determines the bluetooth headset 602 with higher priority (the priority is the privacy level for the voice call service) as the first bluetooth device, and performs the voice call service through the bluetooth headset 602. At this time, the terminal stops playing music through the vehicle-mounted bluetooth 601, and performs voice call service through the bluetooth headset 602, so that normal transmission of data (for example, call is guaranteed) can be guaranteed, and a better bluetooth device (with better privacy) is selected in combination with special requirements of data.
It should be noted that, when the specification supporting the voice transmission is HFP and the terminal and the bluetooth device are in a connected state, if there is an incoming call and an outgoing call from the terminal, the terminal and the bluetooth device first establish a Service Level Connection (Service Level Connection), the terminal initiates a Codec Connection Setup (Codec Connection Setup) process, and finally, the terminal and the bluetooth device establish an audio Connection, so that the terminal can perform a voice call Service through the bluetooth device.
If the user stays on the bluetooth headset 602 for a long time, which results in the power level of the bluetooth headset 602 being below the threshold, the terminal 200 again evaluates whether to reselect the bluetooth device for the voice call service. Specifically, the terminal 200 determines to perform the voice call service according to the fact that the user still keeps calling. Although both the bluetooth headset 602 and the vehicle bluetooth 601 support the specification of the transmission voice, if the bluetooth headset 602 is continuously used for calling, the calling may be interrupted or the calling effect may be affected, so the terminal determines the vehicle bluetooth 601 as the first bluetooth device according to that only the vehicle bluetooth 601 supports the specification of the transmission voice and the power is greater than the threshold value, and performs the voice calling service through the vehicle bluetooth 601. At this time, the terminal stops performing the voice call service through the bluetooth headset 602, and performs the voice call service through the vehicle-mounted bluetooth 601, so that normal data transmission (for example, call guarantee) can be ensured. It should be noted that, if the user may also charge the bluetooth headset 602 through the onboard power supply during the voice call service of the terminal 200 through the onboard bluetooth 601, if the terminal detects that the power of the bluetooth headset 602 increases to be greater than the threshold value, it may be determined that the bluetooth headset 602 is again the first bluetooth device and the call is switched back to the bluetooth headset 602 again.
It should be noted that, when the specification supporting audio transmission is A2DP, and the terminal and the bluetooth device are in a connected state, if the terminal needs to perform an audio playing service through the bluetooth device, the terminal first establishes a stream endpoint on the bluetooth device through a stream endpoint discovery process, then configures information such as an audio channel and a sampling rate of the stream endpoint, and finally starts a stream, and the terminal can perform the audio playing service through the bluetooth device.
In addition, although the scenario listed in the embodiment of the present application takes as an example that one terminal connects two bluetooth devices at the same time and selects one bluetooth device from the two bluetooth devices, it is understood that the scenario is equally applicable to a scenario that one terminal connects more than two bluetooth devices at the same time and selects at least one bluetooth device from the two bluetooth devices.
Through the steps, the use of the Bluetooth equipment by the user is facilitated, the resources of different Bluetooth equipment are fully utilized, and the selection of the Bluetooth equipment is more intelligent and humanized. And the strategy of intelligently switching a plurality of connected Bluetooth devices is effectively provided, different logic strategies and priority algorithms are used according to different use scenes of users, and the usability is improved.
According to the method for selecting the Bluetooth equipment, the terminal selects at least one Bluetooth equipment from at least two Bluetooth equipments to perform business according to the type of the event to be triggered, the electric quantity of the Bluetooth equipment, the equipment information and the like, when the Bluetooth equipment is selected, the influence of different triggering events and the electric quantity of the Bluetooth equipment is considered, and the inconvenience in use caused by unreasonable Bluetooth equipment selection of the terminal is solved.
In order to enable a user to visually know the power condition of the currently connected or used Bluetooth device, the power of the Bluetooth device can be displayed on a display interface.
Optionally, in a possible implementation manner, referring to fig. 7, after the terminal is connected to at least two bluetooth devices, the method may further include step S201:
s201, the terminal displays the electric quantity of at least two connected Bluetooth devices on a display interface.
Specifically, the power display mode of the selected bluetooth device is different from the power display mode of the unselected bluetooth device.
Through the step, the terminal distinguishes which Bluetooth devices are used through different power display modes of the Bluetooth devices. The problem of common display of the electric quantities of different Bluetooth devices is effectively solved, and a user can more intuitively and clearly obtain the electric quantities of all connected Bluetooth devices.
For example, referring to fig. 8, as an example of displaying the power of the bluetooth device, the power of the bluetooth device connected to the terminal may be displayed on the terminal status bar, for example, a bluetooth icon 801, a power 802 of the bluetooth device 1, a power 803 of the bluetooth device 2, and a power 804 of the bluetooth device 3 may be displayed, and it can be seen from the figure that the power 802 of the bluetooth device 1 and the power 803 of the bluetooth device 2 are displayed in the same manner, which is a solid power representation manner, and the power 804 of the bluetooth device 3 is displayed in a different manner, which is an empty power representation manner. It can be used to indicate that the current bluetooth device 1 and the current bluetooth device 2 are the first bluetooth devices in the above steps, or that the current bluetooth device 3 is the first bluetooth device in the above steps. Of course, other electric quantity representation manners may be conceivable, for example, the electric quantity representation manners are distinguished by different colors, broken lines and solid lines, flashing and non-flashing, and detailed description is omitted.
In order to facilitate the user to know the situation of the currently connected or used bluetooth device, device information of the bluetooth device may also be displayed on the display interface.
Optionally, in a possible implementation manner, referring to fig. 9, after the terminal is connected to at least two bluetooth devices, the method may further include step S301:
s301, the terminal displays the device information of the connected at least two Bluetooth devices on a display interface.
Illustratively, referring to fig. 10, as another example of the power display of the bluetooth device, device information of the bluetooth device connected to the terminal may be displayed on the terminal status bar, and the displayed device information may be displayed in pair with the power. For example, a device type 805 of the bluetooth device 1, a device type 806 of the bluetooth device 2, and a device type 807 of the bluetooth device 3 may be displayed. Compared with the power representation mode in fig. 8, the user can know the selected bluetooth device more conveniently.
Illustratively, referring to fig. 11, for yet another example of the power display of the bluetooth device, the power and device information of the bluetooth device may also be displayed in the bluetooth sub-menu of the setup menu. One way to open the bluetooth submenu may be by clicking on a set up option, another way may be by a bluetooth icon 1101 in a drop down menu like that shown in fig. 11A. As shown in fig. 11B, more detailed and clear information may be displayed in the bluetooth submenu with respect to fig. 8 and 10, for example, the power 1102 of the bluetooth device, the device name 1103, the device type 1104, and the like may be displayed, and the selected bluetooth device and the unselected bluetooth device may be distinguished by different display manners of the power 1102 as well. When clicking on the bluetooth device shown in fig. 11B, all information of the bluetooth device, such as device name, custom name, MAC address, supported protocol, device type, device parameter, power, etc., as shown in fig. 11C may be further displayed.
During the continuous use process of the first Bluetooth device, the power of the first Bluetooth device may be too low, and at this time, the user may be reminded that the currently used Bluetooth device is low in power and/or automatically switched to other Bluetooth devices.
Optionally, in a possible implementation, referring to fig. 12, the method may further include steps S401 and S402:
s401, the terminal obtains the electric quantity of the first Bluetooth device.
The manner of acquiring the electric quantity of the bluetooth device refers to step S102, and details are not repeated.
S402, if the electric quantity of the first Bluetooth device is smaller than the threshold value, the terminal reminds the user and/or the terminal to switch to a second Bluetooth device to carry out the service.
The terminal may automatically switch to the second bluetooth device for the voice call service or the audio playing service according to the determination manner in step S104, where the second bluetooth device is a bluetooth device currently connected to the terminal, and may be a newly connected bluetooth device.
For example, referring to fig. 13, the terminal may prompt a message reminder of "current bluetooth device low battery" on the display interface. In addition, if the selection state of the Bluetooth equipment is changed, the terminal refreshes and displays the electric quantity of the at least two Bluetooth equipment on the display screen, so that the electric quantity display mode of the selected Bluetooth equipment is different from the electric quantity display mode of the unselected Bluetooth equipment.
The terminal can automatically select the Bluetooth equipment, selectable Bluetooth equipment and recommended Bluetooth equipment can be displayed on a display interface, and a user can manually select the Bluetooth equipment. And the priority of the setting information of the user for selecting the Bluetooth device is higher, and the Bluetooth device is preferentially selected according to the setting information of the user under the condition that the electric quantity of the Bluetooth device meets the normal use condition in the same scene. Illustratively, referring to fig. 14, assuming that a terminal 1401 located in a room a connects bluetooth sound 1402 and 1403 located in the room a and bluetooth sound 1404 located in a room B, and that the bluetooth sound 1402 and 1404 are the same model of bluetooth sound, the terminal 1401 may select these three bluetooth sounds at the same time when automatically selecting, but it is not necessary for the user to use the bluetooth sound 1404 located in the room B, and therefore it is possible for the user to set that the terminal 1401 selects only the bluetooth sound 1402 and 1403 at this time, and even when the terminal 1401 restarts, the terminal 1401 still selects only the bluetooth sound 1402 and 1403.
Optionally, in a possible implementation, referring to fig. 15, before step S105, the method may further include steps S501 to S502:
s501, displaying the alternative Bluetooth device and the recommended first Bluetooth device on a display interface by the terminal.
For example, referring to fig. 16A, a prompt message may be displayed within a certain time period when the terminal has determined that the first bluetooth device has not been switched, where the prompt message includes a recommended first bluetooth device "my car bluetooth" and an alternative bluetooth device "my headset" for reminding the user that the first bluetooth device "my car bluetooth" will be selected for a service if the user does not perform any operation. Optionally, the prompt message may include the power and device information of all bluetooth devices, so as to facilitate the user to make a selection. It should be noted that the terminal may also display the alternative bluetooth device and the recommended first bluetooth device in the setting interface shown in fig. 11B, and the display manner is not limited in the present application.
S502, the terminal receives the selection of the user and takes the Bluetooth device selected by the user as a first Bluetooth device.
For example, referring to fig. 16B, if the user does not want to switch music to bluetooth car 601, the user may click on my headset to select my headset and click on my bluetooth car to deselect my bluetooth car, the terminal still has my headset as the first bluetooth device, and the terminal does not switch music from bluetooth headset 602 to bluetooth car 601.
As for the setting information of the bluetooth device selected by the user with higher priority, the setting information of the user may be considered preferentially when selecting the bluetooth device, and further optionally, in a possible implementation manner, the step S104 may specifically include: the terminal can determine the first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices, the device information and the setting information of the user. Specifically, referring to fig. 17, before step S1041, step S104 may further include step S1043:
s1043, if there is a Bluetooth device belonging to the setting information of the user, taking the Bluetooth device corresponding to the setting information of the user as a first Bluetooth device.
Through the steps, the matching of the specification supported by the selected Bluetooth equipment and the service is ensured, the electric quantity of the selected Bluetooth equipment is ensured to meet the normal use, and the preferred Bluetooth equipment of the user is optimized on the basis.
The preconditions of step S1041 now become: and in the at least two Bluetooth devices, more than one Bluetooth device has the electric quantity larger than or equal to the threshold value, supports the specification required by the type and does not have the Bluetooth device belonging to the setting information of the user.
The application provides a terminal for executing the method. In the embodiment of the present application, the terminal device may be divided into the functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module by corresponding functions, fig. 18 shows a possible structural diagram of the terminal involved in the above embodiment, and the terminal 200 includes: a bluetooth unit 2011, an acquisition unit 2012, a detection unit 2013, a determination unit 2014, a display unit 2015, and a reception unit 2016. The above units are used for supporting the terminal to execute the relevant method in any one of fig. 4, fig. 5, fig. 7, fig. 9, fig. 12, fig. 15 and fig. 17. The terminal provided by the present application is configured to execute the corresponding method provided above, and therefore, the corresponding features and the beneficial effects that can be achieved by the terminal may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Illustratively, the bluetooth unit 2011 is configured to support the terminal 200 to perform the processes S101, S105 in fig. 4, the processes S101, S105 in fig. 5, the processes S101, S105 in fig. 7, the processes S101, S105 in fig. 9, the processes S101, S105, S402 in fig. 12, the processes S101, S105 in fig. 15, and the processes S101, S105 in fig. 17; the obtaining unit 2012 is configured to support the terminal 200 to execute the process S102 in fig. 4, the process S102 in fig. 5, the process S102 in fig. 7, the process S102 in fig. 9, the processes S102 and S401 in fig. 12, the process S102 in fig. 15, and the process S102 in fig. 17; the detecting unit 2013 is configured to support the terminal 200 to execute the process S103 in fig. 4, the process S103 in fig. 5, the process S103 in fig. 7, the process S103 in fig. 9, the process S103 in fig. 12, the process S103 in fig. 15, and the process S103 in fig. 17; the determining unit 2014 is configured to support the terminal 200 to perform the process S104 in fig. 4, the processes S1041 and S1042 in fig. 5, the process S104 in fig. 7, the process S104 in fig. 9, the process S104 in fig. 12, the processes S104 and S502 in fig. 15, and the processes S1041 to S1043 in fig. 17; the display unit 2015 is configured to support the terminal 200 to perform the process S201 in fig. 7, the process S301 in fig. 9, the process S402 in fig. 12, and the process S501 in fig. 15; the receiving unit 2016 is configured to support the terminal 200 to perform the process S502 in fig. 15. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the case of an integrated unit, fig. 19 shows a possible structural diagram of the terminal involved in the above-described embodiment. The terminal 200 includes: a storage module 2021, a processing module 2022, a communication module 2023, and a touch display module 2024. The modules are used for supporting the terminal to execute the relevant method in any one of fig. 4, fig. 5, fig. 7, fig. 9, fig. 12, fig. 15 and fig. 17. The terminal provided by the present application is configured to execute the corresponding method provided above, and therefore, the corresponding features and the beneficial effects that can be achieved by the terminal may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Specifically, the processing module 2022 is configured to control and manage the actions of the terminal 200, for example, the processing module 2022 is configured to support the terminal 200 to execute the functions of the acquiring unit 2012, the detecting unit 2013 and the determining unit 2014. The communication module 2023 is used to support the terminal 200 to perform the functions of the bluetooth unit 2011. The touch display module 2024 is used to support the terminal 200 to perform the functions of the display unit 2015 and the receiving unit 2016. The memory module 2021 is used for storing program codes and data of the terminal.
The processing module 2022 may be a Processor or a controller, such as a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The communication module 2023 may be a transceiver, a transceiver circuit, bluetooth, a network interface or a communication interface, etc. The storage module 2021 may be a memory.
Specifically, the processing module 2022 may be the processor 280 shown in fig. 2, the communication module 2023 may be the RF circuit 210, the Wi-Fi module 270, and the bluetooth module 281 shown in fig. 2, the storage module 2021 may be the memory 220 shown in fig. 2, and the touch display module 2024 may be a touch display screen formed by the touch panel 231 and the display panel 241 shown in fig. 2.
When the processing module 2022 is a processor, the communication module 2023 is a bluetooth circuit, the storage module 2021 is a memory, and the touch display module 2024 is a touch display screen, the terminal according to the present application may be the terminal 200 shown in fig. 20.
Referring to fig. 20, the terminal 200 includes: one or more processors 2032, bluetooth circuitry 2033, memory 2031, bus system 2034, touch sensitive display screen 2035, and one or more programs. The bluetooth circuit 2033, the processor 2032, the memory 2031, and the touch display screen 2035 are connected to each other via a bus system 2034; the bus system 2034 may be a Peripheral Component Interconnect (PCI) standard bus or an extended industry standard architecture (EIS) bus or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. Where the one or more programs are stored in the memory 2031, the one or more programs including instructions which, when executed by the terminal, cause the terminal to perform the associated method of any of figures 4, 5, 7, 9, 12, 15 and 17.
The present application also provides a computer storage medium storing one or more programs, the one or more programs including instructions, which when executed by a terminal, cause the terminal to perform the associated method of any of fig. 4, 5, 7, 9, 12, 15 and 17.
The present application also provides a graphical user interface on a portable electronic device, the portable electronic device comprising a display, a memory, a plurality of applications; and one or more processors for executing one or more programs stored in the memory, the graphical user interface comprising user interfaces displayed in association with the methods of any of figures 4, 5, 7, 9, 12, 15, and 17, wherein the display comprises a touch surface and a display screen.
The present application further provides a graphical user interface stored in an electronic device comprising a touch screen, a memory, one or more processors to execute one or more computer programs stored in the memory, the graphical user interface comprising: a first GUI displayed on the touch screen, the first GUI including an interface for an application and a prompt for a message; displaying a second GUI on the touch screen in response to a user's input, the second GUI including an interface of an application.
The present application further provides an electronic device comprising means for performing the associated method of any of fig. 4, 5, 7, 9, 12, 15 and 17.
The present application also provides a computer program product containing instructions which, when run on an electronic device, cause the electronic device to perform the associated method of any of figures 4, 5, 7, 9, 12, 15 and 17.
The terminal, the electronic device, the graphical user interface, the computer storage medium, or the computer program product provided by the present application are all configured to execute the corresponding method provided above, and therefore, the beneficial effects achieved by the terminal, the electronic device, the graphical user interface, the computer storage medium, or the computer program product may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application are all or partially generated upon loading and execution of computer program instructions on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or can comprise one or more data storage devices, such as a server, a data center, etc., that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A method of selecting a bluetooth device, comprising:
the terminal is connected with at least two Bluetooth devices;
the terminal acquires the electric quantity and the equipment information of the at least two Bluetooth equipment connected with the terminal;
the terminal detects a current triggered event;
the terminal determines a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices and the device information;
the terminal carries out the service corresponding to the event based on the first Bluetooth equipment;
the device information comprises one or more of the type and parameters of the device and the Bluetooth specification supported by the device;
and the service corresponding to the event is a voice call service or an audio playing service.
2. The method according to claim 1, wherein the terminal further obtains setting information of a user;
the terminal determines a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices and the device information, and the method comprises the following steps:
and the terminal determines a first Bluetooth device from the at least two Bluetooth devices according to the type of the event, the electric quantity of the at least two Bluetooth devices, the device information and the setting information of the user.
3. The method according to claim 1 or 2, wherein after the terminal performs the service corresponding to the event based on the first bluetooth device, the method further comprises:
the terminal acquires the electric quantity of the first Bluetooth device;
if the electric quantity of the first Bluetooth equipment is smaller than a threshold value, the terminal reminds a user and/or the terminal to switch to second Bluetooth equipment to carry out the service; and the second Bluetooth equipment is the Bluetooth equipment which is currently connected with the terminal.
4. The method according to claim 1 or 2, wherein before the terminal performs the service corresponding to the event based on the first bluetooth device, the method further comprises:
the terminal displays the alternative Bluetooth equipment and the recommended first Bluetooth equipment on a display interface;
and the terminal receives the selection of the user and takes the Bluetooth device selected by the user as the first Bluetooth device.
5. The method according to claim 1 or 2, wherein after the terminal is connected with at least two bluetooth devices, the method further comprises: and the terminal displays the electric quantity of the at least two Bluetooth devices on a display interface.
6. A terminal, comprising:
the Bluetooth unit is used for connecting with at least two Bluetooth devices;
the acquisition unit is used for acquiring the electric quantity and the equipment information of the at least two Bluetooth equipment connected with the terminal;
the detection unit is used for detecting a current triggered event;
a determining unit, configured to determine a first bluetooth device from the at least two bluetooth devices according to the type of the event, the electric quantities of the at least two bluetooth devices, and the device information;
the Bluetooth unit is further configured to perform a service corresponding to the event based on the first Bluetooth device;
the device information comprises one or more of the type and parameters of the device and the Bluetooth specification supported by the device;
and the service corresponding to the event is a voice call service or an audio playing service.
7. The terminal of claim 6,
the acquisition unit is also used for acquiring the setting information of the user;
the determining unit is specifically configured to determine a first bluetooth device from the at least two bluetooth devices according to the type of the event, the electric quantities of the at least two bluetooth devices, the device information, and the setting information of the user.
8. The terminal according to claim 6 or 7, characterized in that the terminal further comprises a display unit,
the acquiring unit is further configured to acquire the electric quantity of the first bluetooth device after the bluetooth unit performs the service corresponding to the event based on the first bluetooth device;
if the electric quantity of the first Bluetooth device is smaller than a threshold value, the display unit is used for reminding a user and/or the Bluetooth unit that the Bluetooth unit is used for switching to a second Bluetooth device to perform the service; and the second Bluetooth equipment is the Bluetooth equipment which is currently connected with the terminal.
9. The terminal according to claim 6 or 7, characterized in that the terminal further comprises a display unit, a receiving unit,
the display unit is used for displaying the alternative Bluetooth equipment and the recommended first Bluetooth equipment on a display interface before the Bluetooth unit carries out the service corresponding to the event based on the first Bluetooth equipment;
the receiving unit is used for receiving the selection of the user, and the determining unit is also used for taking the Bluetooth device selected by the user as the first Bluetooth device.
10. The terminal according to claim 6 or 7, characterized in that the terminal further comprises a display unit,
the display unit is used for displaying the electric quantity of the at least two Bluetooth devices on a display interface after the Bluetooth unit is connected with the at least two Bluetooth devices.
11. A terminal, comprising:
one or more processors, a memory, a bus system, and one or more programs, the processors and the memory being connected by the bus system;
wherein the one or more programs are stored in the memory, the one or more programs including instructions which, when executed by the terminal, cause the terminal to perform the method of any of claims 1 to 5.
12. A communication system comprising a terminal according to any of claims 6-10 and at least two bluetooth devices, or comprising a terminal according to claim 11 and at least two bluetooth devices, the terminal being connected to the at least two bluetooth devices.
13. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a terminal, cause the terminal to perform the method of any of claims 1 to 5.
CN201780081854.9A 2017-11-10 2017-11-10 Method, terminal, system and storage medium for selecting Bluetooth device Active CN110168942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110535662.9A CN113422864A (en) 2017-11-10 2017-11-10 Method, terminal and system for selecting Bluetooth device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/110550 WO2019090726A1 (en) 2017-11-10 2017-11-10 Method for selecting bluetooth device, terminal, and system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110535662.9A Division CN113422864A (en) 2017-11-10 2017-11-10 Method, terminal and system for selecting Bluetooth device

Publications (2)

Publication Number Publication Date
CN110168942A CN110168942A (en) 2019-08-23
CN110168942B true CN110168942B (en) 2021-06-08

Family

ID=66437463

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201780081854.9A Active CN110168942B (en) 2017-11-10 2017-11-10 Method, terminal, system and storage medium for selecting Bluetooth device
CN202110535662.9A Pending CN113422864A (en) 2017-11-10 2017-11-10 Method, terminal and system for selecting Bluetooth device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110535662.9A Pending CN113422864A (en) 2017-11-10 2017-11-10 Method, terminal and system for selecting Bluetooth device

Country Status (2)

Country Link
CN (2) CN110168942B (en)
WO (1) WO2019090726A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023240443A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Bluetooth communication method and apparatus, and storage medium

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248347B (en) * 2019-06-28 2022-03-15 Oppo广东移动通信有限公司 Call abnormity detection method, device, equipment and storage medium
CN111836240B (en) * 2019-08-19 2024-03-22 北京骑胜科技有限公司 Bluetooth connection establishment method and device, electronic equipment and storage medium
CN110808021B (en) * 2019-11-08 2024-06-11 广州酷狗计算机科技有限公司 Audio playing method, device, terminal and storage medium
CN112596907B (en) * 2019-12-31 2021-12-03 华为技术有限公司 Method for occupying equipment and electronic equipment
CN113709691B (en) * 2020-05-19 2024-04-02 百度在线网络技术(北京)有限公司 Audio data playing method, device, equipment and storage medium
CN114125791B (en) * 2020-08-31 2022-12-23 荣耀终端有限公司 Audio pushing method and audio pushing system
CN114979869A (en) * 2021-02-22 2022-08-30 北京轩辕联科技有限公司 Earphone state determination method, device, equipment and storage medium
WO2022198391A1 (en) * 2021-03-22 2022-09-29 华为技术有限公司 Communication method, communication apparatus, and terminal
CN113115290B (en) * 2021-04-12 2022-10-04 英华达(上海)科技有限公司 Method for receiving audio data
CN113296728A (en) * 2021-05-24 2021-08-24 Oppo广东移动通信有限公司 Audio playing method and device, electronic equipment and storage medium
CN113747406B (en) * 2021-08-06 2024-03-12 深圳Tcl新技术有限公司 Bluetooth connection method and device, bluetooth equipment and storage medium
CN113810890A (en) * 2021-09-16 2021-12-17 Oppo广东移动通信有限公司 Device loop-back method, device, electronic device and storage medium
CN114268689B (en) * 2022-03-03 2022-08-05 荣耀终端有限公司 Electric quantity display method of Bluetooth device, terminal and storage medium
CN115065958A (en) * 2022-04-20 2022-09-16 Oppo广东移动通信有限公司 Device connection method, device, first device and computer readable storage medium
CN115225121B (en) * 2022-07-04 2024-07-26 维沃移动通信有限公司 Bluetooth data output method and device, electronic equipment and storage medium
CN116887388B (en) * 2023-09-06 2023-12-01 荣耀终端有限公司 Communication processing method, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118337A (en) * 2011-11-17 2013-05-22 中兴通讯股份有限公司 Information processing method and device for Bluetooth device and Bluetooth device thereof
CN103368616A (en) * 2012-03-30 2013-10-23 三星电子株式会社 Method and apparatus for bluetooth connection in mobile terminal
CN103560814A (en) * 2013-10-31 2014-02-05 宇龙计算机通信科技(深圳)有限公司 Method for pairing Bluetooth devices and Bluetooth devices
CN103636141A (en) * 2012-11-16 2014-03-12 华为终端有限公司 Method for establishing Bluetooth connection, mobile terminal, Bluetooth devices and system
US9014633B2 (en) * 2013-03-07 2015-04-21 Kin-Man TSE Bluetooth communication system and method for selectively switching modes of operation in between electronic devices
CN105101058A (en) * 2015-07-13 2015-11-25 惠州Tcl移动通信有限公司 Method and equipment for realizing cooperative works of multiple Bluetooth headsets
CN105657648A (en) * 2016-03-22 2016-06-08 广东欧珀移动通信有限公司 Method and device for controlling bluetooth module of playing equipment and audio/video playing system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312864A (en) * 2012-03-09 2013-09-18 深圳市三诺电子有限公司 Intelligent terminal and method for controlling bluetooth device via intelligent terminal
CN205081782U (en) * 2015-09-28 2016-03-09 北京轩辕联科技有限公司 A bluetooth intelligence communication device for it is on -vehicle
CN106131971A (en) * 2016-06-20 2016-11-16 乐视控股(北京)有限公司 The method of attachment of bluetooth equipment and device
CN106227646A (en) * 2016-08-31 2016-12-14 杭州联络互动信息科技股份有限公司 A kind of acquisition, the method and apparatus sending electric quantity for electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118337A (en) * 2011-11-17 2013-05-22 中兴通讯股份有限公司 Information processing method and device for Bluetooth device and Bluetooth device thereof
CN103368616A (en) * 2012-03-30 2013-10-23 三星电子株式会社 Method and apparatus for bluetooth connection in mobile terminal
CN103636141A (en) * 2012-11-16 2014-03-12 华为终端有限公司 Method for establishing Bluetooth connection, mobile terminal, Bluetooth devices and system
US9014633B2 (en) * 2013-03-07 2015-04-21 Kin-Man TSE Bluetooth communication system and method for selectively switching modes of operation in between electronic devices
CN103560814A (en) * 2013-10-31 2014-02-05 宇龙计算机通信科技(深圳)有限公司 Method for pairing Bluetooth devices and Bluetooth devices
CN105101058A (en) * 2015-07-13 2015-11-25 惠州Tcl移动通信有限公司 Method and equipment for realizing cooperative works of multiple Bluetooth headsets
CN105657648A (en) * 2016-03-22 2016-06-08 广东欧珀移动通信有限公司 Method and device for controlling bluetooth module of playing equipment and audio/video playing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023240443A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Bluetooth communication method and apparatus, and storage medium

Also Published As

Publication number Publication date
CN113422864A (en) 2021-09-21
WO2019090726A1 (en) 2019-05-16
CN110168942A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110168942B (en) Method, terminal, system and storage medium for selecting Bluetooth device
EP3157173B1 (en) Bluetooth communication method and device
CN111083684B (en) Method for controlling electronic equipment and electronic equipment
CN110771111B (en) Wireless communication method and device
CN109890021A (en) Bluetooth headset switching method, bluetooth headset and terminal
US11023296B2 (en) Method for managing multiple operating systems in a terminal
CN108781236B (en) Audio playing method and electronic equipment
JP7216812B2 (en) Method for indicating transmission time of unlicensed band, network device and terminal
CN108541080B (en) Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
EP3046352B1 (en) Method by which portable device displays information through wearable device, and device therefor
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
WO2020025034A1 (en) Master/slave switching method for wearable apparatus and related product
WO2020097757A1 (en) Bandwidth part configuration method and device
US11343741B2 (en) Data transmission method and device based on mobile network, and storage medium
JP7252259B2 (en) Access control method, message broadcasting method and related device
CN112997471B (en) Audio channel switching method and device, readable storage medium and electronic equipment
WO2020007174A1 (en) Communication connection establishment method and related device
JP6491237B2 (en) Method, apparatus, program and recording medium for processing touch screen point reports
WO2020025033A1 (en) Volume-based master-slave switching method and related products
CN108449787B (en) Connection control method and device and electronic equipment
CN102984389A (en) Method for depending on called terminal to determine back ringtone of calling terminal and terminal
CN109923848B (en) Method and device for controlling volume of device and server
CN106304287B (en) Method for reducing standby power consumption of mobile terminal and mobile terminal
JP2023519942A (en) Scheduling request configuration method, terminal and network equipment
KR20220160641A (en) Resource selection method and device

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
GR01 Patent grant
GR01 Patent grant