WO2021043286A1 - 蓝牙连接的方法和电子设备 - Google Patents

蓝牙连接的方法和电子设备 Download PDF

Info

Publication number
WO2021043286A1
WO2021043286A1 PCT/CN2020/113585 CN2020113585W WO2021043286A1 WO 2021043286 A1 WO2021043286 A1 WO 2021043286A1 CN 2020113585 W CN2020113585 W CN 2020113585W WO 2021043286 A1 WO2021043286 A1 WO 2021043286A1
Authority
WO
WIPO (PCT)
Prior art keywords
ear
connection
electronic device
address
accessory device
Prior art date
Application number
PCT/CN2020/113585
Other languages
English (en)
French (fr)
Inventor
朱宇洪
路俊峰
张静静
倪观军
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20860850.5A priority Critical patent/EP4024917B1/en
Priority to US17/640,639 priority patent/US11825539B2/en
Publication of WO2021043286A1 publication Critical patent/WO2021043286A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones
    • 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

Definitions

  • This application relates to the field of communications, and more specifically, to a Bluetooth connection method and electronic device.
  • Bluetooth (BT) technology is an open global specification for wireless data communication. It is based on low-cost short-range wireless connections and is the most widely supported, feature-rich and secure near-field wireless communication on the market today. standard.
  • the current Bluetooth technology mainly includes the basic rate (BR) Bluetooth technology and the enhanced data rate (EDR) Bluetooth technology. And the current electronic devices are also single-mode Bluetooth communication devices, that is, only support the BR/EDR Bluetooth connection mode. Since BR/EDR is mainly used to transmit some data with a large amount of data, such as audio data, etc., some data with a small amount of data (for example, the user's heart rate, blood pressure, etc.) needs to be transmitted between electronic devices through a Bluetooth connection. At the same time, the use of BR/EDR connection will cause waste of power consumption of electronic equipment.
  • BR basic rate
  • EDR enhanced data rate
  • the present application provides a Bluetooth connection method, which helps to save power consumption when electronic devices transmit data through Bluetooth technology.
  • a system in a first aspect, includes a first electronic device and an accessory device, wherein the first electronic device and the accessory device support dual-mode connection, and the dual-mode connection includes a basic rate/enhanced data rate BR/ EDR connection and Bluetooth low energy (BLE) connection, the first electronic device is used to establish a BR/EDR connection with the accessory device; the first electronic device is also used to determine that the accessory device supports the When dual-mode connection, disconnect the BR/EDR connection with the accessory device, and establish a BLE connection with the accessory device; the first electronic device is also used to transmit audio data, video data, or call the accessory device through the BLE connection data.
  • BLE Bluetooth low energy
  • the first electronic device when the first electronic device and the accessory device both support dual-mode connection, the first electronic device can first establish a BR/EDR connection with the accessory device, and when it is determined that the accessory device supports dual-mode connection, disconnect the accessory device.
  • the BR/EDR of the device is connected and a BLE connection is established with the accessory device.
  • the first electronic device can also transmit audio data, video data, or call data to the accessory device through the BLE connection, which helps to save the power consumption of the electronic device.
  • the first electronic device may query the capability information of the accessory device after establishing a BR/EDR connection with the accessory device.
  • the first electronic device can transmit call data on a synchronous connection-oriented/extended (SCO) or extended synchronous connection-oriented (ESCO) link; Audio data or video data is transmitted on the ACL link.
  • SCO synchronous connection-oriented/extended
  • ESCO extended synchronous connection-oriented
  • the first electronic device may use an isochronous channel (ISO) to transmit call data, audio data, or video data with the accessory device.
  • ISO isochronous channel
  • the first electronic device is specifically used to establish an asynchronous link ACL in the BR/EDR connection with the accessory device; the first electronic device is also used to On ACL, query request information is sent to the accessory device, and the query request information is used to query whether the accessory device supports the dual-mode connection; the first electronic device is also used to receive query response information sent by the accessory device, and the query response The information is used to indicate that the accessory device supports the dual-mode connection.
  • the first electronic device can ask the accessory device for its capability information when it establishes the ACL under the BR/EDR connection with the accessory device. There is no need to inquire after the BR/EDR connection is fully established. This helps to reduce the delay in establishing a BLE connection between the first electronic device and the accessory device.
  • the first electronic device is specifically configured to carry the query request information through an echo message.
  • the first electronic device can carry the query request information in the echo message, and can confirm the version supported by both parties to ensure that the version is compatible.
  • the query request information is carried in the echo request message.
  • the query response information is carried in the echo response message.
  • the accessory device is a Bluetooth headset
  • the Bluetooth headset includes a first ear and a second ear
  • the media access control MAC address of the first ear is the first address
  • the MAC address of the second ear is the second address
  • the second address is the MAC address used when the main ear and the first electronic device establish a connection
  • the first electronic device is specifically used for: when the first ear is the When the main ear is the main ear, establish a BR/EDR connection with the first ear through the second address; when it is determined that the Bluetooth headset supports the dual-mode connection, disconnect the BR/EDR connection with the first ear; pass the first address Establish a BLE connection with the first ear, and establish a BLE connection with the second ear through a second address.
  • the Bluetooth headset may statically configure the second MAC address as the MAC address used when establishing a connection with the first electronic device and the main ear.
  • the Bluetooth headset can also dynamically change the main ear.
  • the left ear is the main ear
  • the left ear establishes a BR/EDR connection with the first electronic device through the second MAC address
  • the right ear can monitor the link between the left ear and the first electronic device.
  • the left ear can establish a BLE connection with the first electronic device through the first MAC address
  • the right ear can establish a BLE connection with the first electronic device through the second MAC address.
  • the first electronic device is further configured to pass the first address and the first ear when the main ear is switched from the first ear to the second ear
  • the ear establishes a BLE connection, and establishes a BLE connection with the second ear through the second address.
  • the left ear uses the real MAC address (first address) of the left ear when establishing a connection with the electronic device, and the right ear is in When establishing a connection with an electronic device, the real MAC address (second address) of the right ear is used.
  • the system further includes a second electronic device that only supports BR/EDR connections, and is characterized in that the Bluetooth headset is used to disconnect the The BLE connection between the first ear and the first electronic device, and the BLE connection between the second ear and the first electronic device is disconnected; the second electronic device is used to pass through when the first ear is the main ear The second address establishes a BR/EDR connection with the first ear; the second electronic device is also used to pass the second address and the second ear when the main ear is switched from the first ear to the second ear The ear establishes a BR/EDR connection.
  • the left ear when the left ear is the main ear, the left ear establishes a BR/EDR connection with the second electronic device through the second MAC address, and the right ear can connect to the left ear Monitor the link with the second electronic device.
  • the right ear When the right ear is the main ear, the right ear establishes a BR/EDR connection with the second electronic device through the second MAC address, and the left ear can monitor the link between the right ear and the second electronic device.
  • the difference with the BLE connection is that under the BR/EDR connection, whether the left ear is the main ear or the right ear is the main ear, the main ear is BR/EDR connection through the same MAC address and electronic device.
  • BLE mode whether the left ear is the main ear or the right ear is the main ear, the left ear uses its real MAC address to establish a BLE connection with the electronic device, and the right ear uses its real MAC address to establish a BLE connection with the electronic device.
  • BLE connection whether the left ear is the main ear or the right ear is the main ear, the left ear uses its real MAC address to establish a BLE connection with the electronic device.
  • a Bluetooth connection method which is applied to an electronic device, the electronic device supports dual-mode connection, the dual-mode connection includes BR/EDR connection and BLE connection, and the method includes: the electronic device and accessories The device establishes a BR/EDR connection; when the electronic device determines that the accessory device supports the dual-mode connection, it disconnects the BR/EDR connection with the accessory device and establishes a BLE connection with the accessory device; the electronic device and the accessory device Transmit audio data, video data, or call data through the BLE connection.
  • the electronic device when both the electronic device and the accessory device support dual-mode connection, the electronic device can first establish a BR/EDR connection with the accessory device. When it is determined that the accessory device supports dual-mode connection, disconnect the BR/EDR connection with the accessory device. EDR connects and establishes a BLE connection with the accessory device. In addition, the electronic device can also transmit audio data, video data, or call data to the accessory device through the BLE connection, which helps to save the power consumption of the electronic device.
  • the electronic device can query the capability information of the accessory device after establishing a BR/EDR connection with the accessory device. Among them, after the BR/EDR connection is established, the electronic device can transmit call data on the SCO or ESCO; transmit audio data or video data on the ACL.
  • the electronic device and the accessory device can use ISO to transmit call data, audio data, or video data.
  • the electronic device before the electronic device disconnects the BR/EDR connection with the accessory device, it includes: the electronic device passes through the BR/EDR connection established with the accessory device ACL sends query request information to the accessory device, the query request information is used to query whether the accessory device supports the dual-mode connection; the electronic device receives the query response information sent by the accessory device, and the query response information is used to indicate the accessory The device supports this dual-mode connection.
  • the electronic device can ask the accessory device for its capability information when it establishes the ACL under the BR/EDR connection with the accessory device. There is no need to inquire after the BR/EDR connection is fully established. Helps reduce the delay of establishing BLE connections between electronic devices and accessory devices.
  • the sending query request information to the accessory device includes: the electronic device sends an echo message to the accessory device, and the echo message carries the query request information.
  • the electronic device can carry the query request information in the echo message, can confirm the version supported by both parties, and ensure that the version is compatible.
  • the accessory device is a Bluetooth headset
  • the Bluetooth headset includes a first ear and a second ear
  • the media access control MAC address of the first ear is the first address
  • the MAC address of the second ear is the second address
  • the second address is the MAC address used when the main ear establishes a connection with the electronic device.
  • the electronic device and the accessory device establish a BR/EDR connection, including: When one ear is the main ear, the electronic device establishes a BR/EDR connection with the first ear through the second address; when the main ear is switched from the first ear to the second ear, the electronic device passes through the second ear The address establishes a BR/EDR connection with the second ear.
  • the electronic device regardless of whether the left ear or the right ear is the main ear, the electronic device establishes a BR/EDR connection with the main ear through the second address.
  • the electronic device establishes a BLE connection with the first ear, and the electronic device establishes a BLE connection with the second ear, including: when the first ear is the master When ear, the electronic device establishes a BLE connection with the first ear through the first address, and the electronic device establishes a BLE connection with the second ear through the second address; when the main ear switches from the first ear to the In the second ear, the electronic device establishes a BLE connection with the first ear through the first address, and the electronic device establishes a BLE connection with the second ear through the second address.
  • the difference with the BLE connection is that under the BR/EDR connection, whether the left ear is the main ear or the right ear is the main ear, the main ear is BR/EDR connection through the same MAC address and electronic device.
  • BLE mode whether the left ear is the main ear or the right ear is the main ear, the left ear uses its real MAC address to establish a BLE connection with the electronic device, and the right ear uses its real MAC address to establish a BLE connection with the electronic device.
  • BLE connection whether the left ear is the main ear or the right ear is the main ear, the left ear uses its real MAC address to establish a BLE connection with the electronic device.
  • the electronic device and the accessory device when the electronic device and the accessory device both support dual-mode connection, the electronic device and the accessory device can establish a BR/EDR connection first, and the electronic device can query whether the accessory device supports dual-mode under the BR/EDR connection Connection, when both the electronic device and the accessory device support dual-mode connection, the electronic device can disconnect the BR/EDR connection with the accessory device and perform a BLE connection, and perform audio data, video data or call data transmission under the BLE connection , which helps to save the power consumption of electronic equipment.
  • a Bluetooth connection method is provided.
  • the method is applied to an accessory device.
  • the accessory device supports a dual-mode connection.
  • the dual-mode connection includes a basic rate/enhanced data rate BR/EDR connection and a Bluetooth low energy BLE connection.
  • the method includes: the accessory device establishes a BR/EDR connection with the electronic device; the accessory device sends instruction information to the electronic device, and the instruction information is used to indicate that the accessory device supports the dual-mode connection; the accessory device disconnects from the The BR/EDR connection of the electronic device and the establishment of a BLE connection with the electronic device; the accessory device and the electronic device transmit audio data, video data or call data through the BLE connection.
  • the accessory device when both the electronic device and the accessory device support dual-mode connection, the accessory device can first establish a BR/EDR connection with the electronic device.
  • the accessory device informs the electronic device that the electronic device supports dual-mode connection, the electronic device can disconnect and Connect the BR/EDR of the accessory device and establish a BLE connection with the accessory device.
  • the electronic device can also transmit audio data, video data, or call data to the accessory device through the BLE connection, which helps to save the power consumption of the electronic device and the accessory device.
  • the electronic device can query the capability information of the accessory device after establishing a BR/EDR connection with the accessory device. Among them, after the BR/EDR connection is established, the electronic device can transmit call data on the SCO or ESCO; transmit audio data or video data on the ACL.
  • the electronic device and the accessory device can use ISO to transmit call data, audio data, or video data.
  • the accessory device sends instruction information to the electronic device, including: after the accessory device establishes an ACL under the BR/EDR connection with the electronic device, the accessory device Send the instruction information to the electronic device on the ACL.
  • the accessory device is a Bluetooth headset
  • the Bluetooth headset includes a first ear and a second ear
  • the media access control MAC address of the first ear is the first address
  • the MAC address of the second ear is the second address
  • the second address is the MAC address used when the main ear establishes a connection with the electronic device.
  • the accessory device and the electronic device establish a BR/EDR connection, including: When one ear is the main ear, the first ear establishes a BR/EDR connection with the electronic device through the second address; when the main ear is switched from the first ear to the second ear, the second ear passes through the first ear The second address establishes a BR/EDR connection with the electronic device.
  • establishing a BLE connection between the accessory device and the electronic device includes: when the first ear is the main ear, the first ear passes through the first address and the The electronic device establishes a BLE connection, and the second ear establishes a BLE connection with the electronic device through the second address; when the main ear switches from the first ear to the second ear, the first ear passes the first address A BLE connection is established with the electronic device, and the second ear establishes a BLE connection with the electronic device through the second address.
  • a device in a fourth aspect, is provided, the device is included in an electronic device, and the device has the function of realizing the behavior of the electronic device in the foregoing aspects and possible implementations of the foregoing aspects.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
  • a device in a fifth aspect, is provided, the device is included in an accessory device, and the device has the function of realizing the foregoing aspects and the behavior of the accessory sub-device in the possible implementation manners of the foregoing aspects.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
  • an electronic device including: a Bluetooth chip; one or more processors; a memory; and one or more computer programs.
  • the Bluetooth chip supports BR/EDR connection and BLE connection.
  • One or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instruction is executed by the electronic device, the electronic device is caused to execute the Bluetooth connection method in the possible implementation of the second aspect described above.
  • an accessory device including: a Bluetooth chip; one or more processors; a memory; and one or more computer programs.
  • the Bluetooth chip supports BR/EDR connection and BLE connection.
  • One or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instruction is executed by the accessory device, the accessory device is caused to execute the Bluetooth connection method in the possible implementation of the third aspect.
  • a chip system which is set in an electronic device.
  • the chip system includes a Bluetooth chip and a processor, and the Bluetooth chip supports BR/EDR connection and BLE connection.
  • the Bluetooth chip is used to establish a BR/EDR connection with the accessory device;
  • the processor is used to determine that the accessory device supports dual-mode connection;
  • the Bluetooth chip is also used to disconnect the BR/EDR connection with the accessory device , And establish a BLE connection with the accessory device.
  • the Bluetooth chip is specifically used to: establish an ACL under BR/EDR with the accessory device; the Bluetooth chip is also used to send query request information to the accessory device on the ACL, and the query request information is used for Query whether the accessory device supports the dual-mode connection; the Bluetooth chip is also used to receive query response information sent by the accessory device, and the query response information is used to indicate that the accessory device supports the dual-mode connection.
  • the Bluetooth chip is specifically configured to send the query request information to the accessory device through a response echo message of the logical link control and adaptation protocol L2CAP.
  • the accessory device is a Bluetooth headset
  • the Bluetooth headset includes a first ear and a second ear
  • the media access control MAC address of the first ear is the first address
  • the MAC address of the second ear Is a second address
  • the second address is the MAC address used when establishing a connection between the main ear and the first electronic device
  • the Bluetooth chip is specifically used to: when the processor determines that the first ear is the main ear, pass the second address A BR/EDR connection is established with the accessory device; when the processor determines that the main ear is switched from the first ear to the second ear, a BR/EDR connection is established with the accessory device through the second address.
  • the Bluetooth chip is specifically used to: when the processor determines that the first ear is the main ear, establish a BLE connection with the first ear through the first address, and use the second address and the second ear to establish a BLE connection. Establish a BLE connection; when the processor determines that the main ear is switched from the first ear to the second ear, establish a BLE connection with the first ear through the first address and establish a BLE connection with the second ear through the second address.
  • a chip system which is set in an accessory device.
  • the chip system includes a Bluetooth chip and a processor, and the Bluetooth chip supports BR/EDR connection and BLE connection.
  • the Bluetooth chip is used to establish a BR/EDR connection with the electronic device; the Bluetooth chip is also used to indicate to the electronic device that the accessory device supports dual-mode connection; the Bluetooth chip is also used to disconnect the electronic device BR/EDR connection of the device, and establish a BLE connection with the electronic device.
  • the accessory device is a Bluetooth headset
  • the Bluetooth headset includes a first ear and a second ear
  • the media access control MAC address of the first ear is the first address
  • the MAC address of the second ear Is the second address
  • the second address is the MAC address used when the main ear establishes a connection with the electronic device
  • the accessory device establishes a BR/EDR connection with the electronic device.
  • the Bluetooth chip is used to determine the When the first ear is the main ear, a BR/EDR connection is established with the electronic device through the second address; when the processor determines that the main ear is switched from the first ear to the second ear, the second ear passes through the second ear.
  • the address establishes a BR/EDR connection with the electronic device.
  • the Bluetooth chip is specifically used to: when the processor determines that the first ear is the main ear, establish a BLE connection with the electronic device through the first address, and use the second address to communicate with the electronic device.
  • the device establishes a BLE connection; when the processor determines that the main ear is switched from the first ear to the second ear, it establishes a BLE connection with the electronic device through the first address, and establishes a BLE connection with the electronic device through the second address .
  • the present technical solution provides a computer-readable storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the Bluetooth connection in any one of the possible implementations of the above-mentioned aspects. method.
  • the present technical solution provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute any one of the above-mentioned methods of Bluetooth connection in any possible design.
  • Fig. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a Bluetooth protocol framework provided by an embodiment of the present application.
  • Fig. 3 is a schematic structural diagram of an accessory device provided by an embodiment of the present application.
  • Figure 4 is a set of GUIs provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a method for performing Bluetooth pairing and connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application.
  • Fig. 6 is another set of GUIs of an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a method for performing Bluetooth pairing and connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a method for performing Bluetooth pairing and connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a method for performing Bluetooth pairing and connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a method for performing Bluetooth pairing and connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a system architecture provided by an embodiment of the present application.
  • references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in conjunction with the embodiment. Therefore, the sentences “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized.
  • the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wearable electronic device with wireless communication function (such as a smart watch) Wait.
  • portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
  • the above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, compass 190, motor 191, indicator 192, camera 193, display screen 194, and user Identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • different processing units may be independent components, or may be integrated in one or more processors.
  • the electronic device 101 may also include one or more processors 110.
  • the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. In this way, repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 101 in processing data or executing instructions is improved.
  • the processor 110 may include one or more interfaces.
  • the interface can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transceiver (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM card interface and/or USB interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transfer data between the electronic device 101 and peripheral devices.
  • the USB interface 130 can also be used to connect earphones and play audio through the earphones.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode
  • FLED flexible light-emitting diode
  • mini light-emitting diode miniled
  • MicroLed Micro-oLed
  • quantum dot light emitting diode QLED
  • the electronic device 100 may include one or more display screens 194.
  • the display screen 194 in FIG. 1 may be bent.
  • the above-mentioned display screen 194 can be bent means that the display screen can be bent to any angle at any position and can be maintained at that angle.
  • the display screen 194 can be folded in half from the middle. You can also fold up and down from the middle.
  • the display screen 194 of the electronic device 100 may be a flexible screen.
  • the flexible screen has attracted much attention due to its unique characteristics and great potential.
  • flexible screens have the characteristics of strong flexibility and bendability, and can provide users with new interactive methods based on bendable characteristics, which can meet users' more needs for electronic devices.
  • the foldable display screen on the electronic device can be switched between a small screen in the folded configuration and a large screen in the unfolded configuration at any time. Therefore, users use the split screen function on electronic devices equipped with foldable display screens more and more frequently.
  • the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and transforms it into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or more cameras 193.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can run the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 101 to execute the Bluetooth pairing and connection methods provided in some embodiments of the present application, as well as various applications and data processing.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more applications (such as photo galleries, contacts, etc.) and so on.
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), and the like.
  • the processor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 to cause the electronic device 101 to execute the instructions provided in the embodiments of the present application.
  • the electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and an application processor. For example, music playback, recording, etc.
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the terminal 100 determines the strength of the pressure according to the change in capacitance.
  • the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example, when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the terminal 100.
  • the angular velocity of the terminal 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyroscope sensor 180B detects the shake angle of the terminal 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal 100 through a reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the terminal 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the terminal 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the terminal 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the terminal posture, apply to horizontal and vertical screen switching, pedometer and other applications.
  • the terminal 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the terminal 100 emits infrared light to the outside through the light emitting diode.
  • the terminal 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal 100. When insufficient reflected light is detected, the terminal 100 may determine that there is no object near the terminal 100.
  • the terminal 100 can use the proximity light sensor 180G to detect that the user holds the terminal 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the terminal 100 may adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the terminal 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal 100 when the temperature is lower than another threshold, the terminal 100 heats the battery 142 to avoid abnormal shutdown of the terminal 100 due to low temperature.
  • the terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the terminal 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the terminal 100 may receive key input, and generate key signal input related to user settings and function control of the terminal 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations that act on different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • an embodiment of the present application provides a Bluetooth protocol framework, including but not limited to a host protocol stack, a host controller interface (HCI), and a controller.
  • a Bluetooth protocol framework including but not limited to a host protocol stack, a host controller interface (HCI), and a controller.
  • the Host protocol stack defines multiple applications (profiles) and core protocols (protocol) in the Bluetooth framework, each profile defines its own corresponding message format and application rules, and the profile is a Bluetooth service (application).
  • the Bluetooth protocol has formulated specifications for various possible and universal application scenarios, such as the Bluetooth audio distribution profile (advanced audio distribution profile, A2DP), Bluetooth free Proposal agreement (hands-free profile, HFP) and so on.
  • Core protocols include but are not limited to Bluetooth's basic service protocol (service discovery protocol, SDP), logical link control and adaptation protocol (logical link control and adaptation protocol, L2CAP), etc.
  • SDP service discovery protocol
  • L2CAP logical link control and adaptation protocol
  • the core protocol is indispensable in the Bluetooth protocol stack.
  • HCI provides a unified interface for the upper layer protocol to enter the link manager and a unified way to enter the baseband.
  • SIG Bluetooth Special Interest Group
  • the Bluetooth Special Interest Group (SIG) specifies four physical bus methods for connecting with hardware, namely, four HCI transmission layers: USB, RS232, UART and PC card.
  • the controller defines the underlying hardware, including radio frequency (RF), baseband (BB), and link management (LM).
  • RF radio frequency
  • BB baseband
  • LM link management
  • the RF layer uses the 2.4GHz unlicensed ISM band microwave to achieve data bit stream filtering and transmission. It mainly defines the conditions that the Bluetooth transceiver needs to meet in this frequency band.
  • the baseband is responsible for frequency hopping and the transmission of Bluetooth data and information frames.
  • Link management is responsible for connecting, establishing and dismantling links and performing security control.
  • the link manager (LM) layer is the link management layer protocol of the Bluetooth protocol stack, which is responsible for translating upper-layer HCI commands into operations acceptable to the baseband, establishing asynchronous connection-oriented link (ACL), synchronous link Road (synchronous connection-oriented/extended, SCO) and extended synchronous link (extended synchronous connection-oriented, ESCO), as well as working modes that enable Bluetooth devices to enter an energy-saving state.
  • the link control (LC) layer is responsible for responding to upper-layer LM commands (such as executing LM commands for establishing the transmission link of the data packet and maintaining the link) during the transmission of a batch of data packets.
  • the electronic device and the accessory device can use an isochronous channel (ISO) to transmit call data, audio data, or video data.
  • ISO isochronous channel
  • Part of the content of the method described in the embodiment of the present application that is implemented by the wireless communication module 160 of the electronic device 100 shown in FIG. 1 may be specifically executed by a Bluetooth module or a Bluetooth chip.
  • FIG. 3 exemplarily shows a schematic structural diagram of an accessory device 200 provided in an embodiment of the present application.
  • the accessory device 200 shown in FIG. 3 is only an example, and the accessory device 200 may have more or fewer components than those shown in FIG. 3, two or more components may be combined, or There are different component configurations.
  • the various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits,
  • the accessory device 200 may include: a processor 201, a memory 202, a Bluetooth communication module 203, an antenna 204, a power switch 205, a USB communication processing module 206, and an audio module 207. among them:
  • the processor 201 can be used to read and execute computer-readable instructions.
  • the processor 201 may mainly include a controller, an arithmetic unit, and a register.
  • the controller is mainly responsible for the instruction decoding, and sends out control signals for the operation corresponding to the instruction.
  • the arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of instructions.
  • the hardware architecture of the processor 201 may be an application specific integrated circuit (ASIC) architecture, MIPS architecture, ARM architecture, or NP architecture, and so on.
  • ASIC application specific integrated circuit
  • the processor 201 may be used to parse the signal received by the Bluetooth communication processing module 203, such as a pairing mode modification request sent by the electronic device 100, and so on.
  • the processing 201 may be used to perform corresponding processing operations according to the analysis result, such as generating a pairing mode modification response, and so on.
  • the memory 202 is coupled with the processor 201, and is used to store various software programs and/or multiple sets of instructions.
  • the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 202 may store an operating system, such as embedded operating systems such as uCOS, VxWorks, and RTLinux.
  • the memory 202 may also store a communication program, which may be used to communicate with the electronic device 100, one or more servers, or other devices.
  • the Bluetooth communication module 203 may include a classic Bluetooth (BT) module and a Bluetooth low energy (Bluetooth low energy, BLE) module,
  • the Bluetooth communication module 203 can monitor signals emitted by other devices (such as the electronic device 100), such as detection requests, scan signals, etc., and can send response signals, scan responses, etc., so that other devices (such as The electronic device 100) can discover the accessory device 200, and go to other devices (such as the electronic device 100) to establish a wireless communication connection, and communicate with the other devices (such as the electronic device 100) via Bluetooth.
  • other devices such as the electronic device 100
  • the Bluetooth communication module 203 can monitor signals emitted by other devices (such as the electronic device 100), such as detection requests, scan signals, etc., and can send response signals, scan responses, etc., so that other devices (such as The electronic device 100) can discover the accessory device 200, and go to other devices (such as the electronic device 100) to establish a wireless communication connection, and communicate with the other devices (such as the electronic device 100) via Bluetooth.
  • the Bluetooth communication module 203 can also transmit signals, such as broadcasting BLE signals, so that other devices (such as the electronic device 100) can discover the accessory device 200 and establish a wireless communication connection with other devices (such as the electronic device 100) , Communicate with other devices (such as the electronic device 100) via Bluetooth.
  • signals such as broadcasting BLE signals
  • the wireless communication function of the accessory device 200 can be realized by the antenna 204, the Bluetooth communication module 203, the modem processor, and the like.
  • the antenna 204 can be used to transmit and receive electromagnetic wave signals.
  • Each antenna in the accessory device 200 can be used to cover a single or multiple communication frequency bands.
  • the power switch 205 can be used to control the power supply to the accessory device 200 from the power source.
  • the USB communication processing module 206 can be used to communicate with other devices through a USB interface (not shown).
  • the audio module 26 can be used to output audio signals through an audio output interface, so that the accessory device 200 can support audio playback.
  • the audio module can also be used to receive audio data through the audio input interface.
  • the accessory device 200 may be a media playback device such as a Bluetooth headset.
  • the accessory device 200 may further include a display screen (not shown), where the display screen can be used to display images, prompt information, and the like.
  • the display can adopt LCD display, OLED display, AMOLED display, FLED display, QLED display and so on.
  • the accessory device 200 may also include a serial interface such as an RS-232 interface.
  • the serial interface can be connected to other devices, such as audio amplifiers such as speakers, so that the accessory device 200 and the audio amplifiers can cooperate to play audio and video.
  • the structure illustrated in FIG. 3 does not constitute a specific limitation on the accessory device 200.
  • the accessory device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the Bluetooth protocol framework used by the accessory device can be referred to as shown in FIG. 2 above, which will not be repeated here.
  • Fig. 4 shows a set of graphical user interfaces (GUI) provided by an embodiment of the present application.
  • GUI graphical user interfaces
  • the mobile phone is in a bright screen state and the mobile phone desktop is displayed.
  • the mobile desktop includes applications (applications, APPs) such as Alipay applications, task card stores, Weibo, photo albums, WeChat, card packages, settings, and themes.
  • applications applications, APPs
  • Alipay applications such as Alipay applications, task card stores, Weibo, photo albums, WeChat, card packages, settings, and themes.
  • the Bluetooth headset is now in the headset box.
  • the phone when the Bluetooth headset detects that the user opens the headset box and approaches the phone, the phone will automatically pop up a reminder box 401, where the device name of the Bluetooth headset can be displayed in the reminder box 401.
  • the phone detects After the user clicks the operation of the control 402, the mobile phone can be paired with the Bluetooth headset.
  • Fig. 5 shows a schematic flow chart of a method 500 for performing Bluetooth pairing and connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application. As shown in Fig. 5, the method 500 includes:
  • BR basic rate
  • EDR enhanced data rate
  • the Bluetooth headset determines the main ear, and the main ear can send a BLE broadcast data packet to surrounding devices.
  • the BLE broadcast data packet may carry the MAC address of the main ear and the device type of the Bluetooth headset.
  • the main ear may be determined according to a predefined rule.
  • the predefined rule may be a combination of static configuration and dynamic configuration.
  • the MAC address of the left ear in the Bluetooth headset is MAC address 1
  • the MAC address of the right ear is MAC address 2.
  • the right ear can be statically configured as the primary ear, and the MAC address 2 and the device type of the Bluetooth headset can be carried in the above BLE broadcast.
  • the mobile phone receives the BLE broadcast data packet, it can parse out that the MAC address is MAC address 2, and the mobile phone will always establish a BR/EDR connection with the Bluetooth headset using MAC address 2.
  • the Bluetooth headset When the Bluetooth headset detects the user's operation of opening the box, the Bluetooth headset can dynamically configure the determination method of the main ear.
  • a Bluetooth headset can determine who is the primary ear and who is the secondary ear based on the positions of the left and right ears.
  • the Bluetooth headset detects that the left ear is inserted into the user's ear and the right ear has not been inserted into the user's ear, the Bluetooth headset can determine that the left ear is the primary ear and the right ear is the accessory ear.
  • the BR/EDR link has been established between the left ear and the right ear, which means that the left ear knows the MAC address of the right ear, and the right ear also knows the MAC address of the left ear.
  • the left ear can use MAC address 2 to establish a BR/EDR link with the mobile phone, and the right ear can monitor (or listen to) the link between the mobile phone and the left ear.
  • the Bluetooth headset can also determine who is the left ear and who is the right ear based on the power of the left and right ears. For example, when both the left and right ears are inserted into the user’s ears, and the power of the right ear is higher than that of the left ear, then the Bluetooth headset can determine that the right ear is the primary ear and the left ear is the secondary ear, then the right ear can be used MAC address 2 establishes a BR/EDR link with the mobile phone, and the left ear can monitor (or listen to) the link between the mobile phone and the right ear.
  • the mobile phone After receiving the BLE broadcast data packet, the mobile phone displays the device type of the Bluetooth headset and reminds the user whether it is necessary to establish a connection between the mobile phone and the Bluetooth headset.
  • the device type of the Bluetooth headset and the control 402 may be displayed on the display screen of the mobile phone.
  • S507 Perform a (BR/EDR) pairing/SDP/encryption process between the mobile phone and the main ear.
  • S505 and S506 can be understood as a standard Bluetooth pairing process between the mobile phone and the main ear.
  • an HFP connection can be made between the mobile phone and the main ear.
  • an A2DP connection can be made between the mobile phone and the main ear.
  • the above connection between the mobile phone and the Bluetooth headset is described by taking the Bluetooth headset approaching and discovering the mobile phone as an example, and the mobile phone can also actively search for the Bluetooth headset to establish a connection with the Bluetooth headset.
  • the above method 500 is a process of connecting the mobile phone through proximity discovery during the first connection of the Bluetooth headset.
  • the main ear can initiate a page for the MAC address of the mobile phone.
  • the mobile phone can perform a standard Bluetooth pairing process with the main ear to establish a BR/EDR connection.
  • Fig. 6 shows another set of GUIs of an embodiment of the present application.
  • the GUI shown in Fig. 6 is an example of an example in which the mobile phone detects that the user has turned on the Bluetooth function and then actively searches for the Bluetooth headset.
  • the GUI is a mobile phone desktop.
  • the mobile phone desktop includes icons of multiple application programs, and the icons of the multiple application programs include a set icon 601.
  • the mobile phone detects the user's operation of clicking the icon 601 on the desktop, it can start to set the mobile phone related functions, and display the GUI as shown in (b) in FIG. 6.
  • the GUI includes multiple functional options.
  • the multiple functional options include wireless and network, device connection, desktop, wallpaper, and sound.
  • the user can set Bluetooth, NFC, and mobile phone screen projection through the device connection function.
  • the mobile phone detects the operation of clicking the device connection function 602 with the user, the mobile phone opens the Bluetooth connection setting interface and displays the GUI as shown in (c) in FIG. 6.
  • the GUI shown in (c) in FIG. 6, which is a device connection setting interface of a mobile phone.
  • the GUI includes multiple functional options under the device connection, the multiple functional options include Bluetooth, NFC, Huawei beacon, Huawei share, mobile phone screen projection and other device connection options.
  • the mobile phone detects that the user clicks the operation of the Bluetooth function 603, the mobile phone can open the setting interface of the Bluetooth function and display the GUI as shown in (d) in FIG. 6.
  • the Bluetooth device interface includes Bluetooth switch control 604, device name "Huawei P30" and other functions.
  • the mobile phone detects that the user clicks on the control 604, the mobile phone can turn on the Bluetooth function, and can display as shown in (e) in FIG. 6.
  • the setting interface can display paired devices and available devices.
  • the paired devices can be Bluetooth devices that the mobile phone has previously connected to, and the available devices can be Bluetooth devices searched by the mobile phone.
  • the Bluetooth devices searched by the mobile phone can be displayed in the available devices in the setting interface, including "Bluetooth headset” 605.
  • the mobile phone detects that the user clicks on the "Bluetooth headset” 605
  • the mobile phone can initiate a page to the Bluetooth headset according to the media access control (MAC) address of the Bluetooth headset, and display (g) in Figure 6
  • MAC media access control
  • the Bluetooth settings interface it can be displayed in the paired devices that the Bluetooth device with the device name "Bluetooth headset" and the mobile phone are connected.
  • FIG. 7 shows a schematic flowchart of a method 700 for performing a Bluetooth pairing connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application. As shown in FIG. 7, the method 700 includes:
  • the Bluetooth headset detects an operation of opening the headset box by the user.
  • the Bluetooth headset detects that the user presses a function key on the headset box, and the main ear enters an inquiry scan.
  • the host sends an instruction to the controller to make the controller enter the pairable mode.
  • S704 The mobile phone detects that the user has turned on the Bluetooth function.
  • S705 The mobile phone sends an inquiry message to surrounding devices.
  • the master ear In response to the inquiry sent by the mobile phone, the master ear sends an FHS packet to the mobile phone, where the FHS packet includes the MAC address of the master ear.
  • the mobile phone sends request information to the master ear according to the MAC address in the FHS packet, and the request information is used to request the device name of the Bluetooth headset.
  • the main ear In response to the request information, the main ear sends the device name of the Bluetooth headset to the mobile phone.
  • S709 The mobile phone displays the device name of the Bluetooth headset in the available devices in the Bluetooth device search interface.
  • the device name of the Bluetooth headset may be "Bluetooth headset”.
  • S710 The mobile phone detects that the user clicks on the "Bluetooth headset”.
  • the mobile phone in response to the user's operation of clicking the "Bluetooth headset", the mobile phone initiates a page for the MAC address of the Bluetooth headset.
  • the main ear is in a page scan (page scan) state, and after receiving the page sent by the mobile phone, the mobile phone establishes an ACL link with the main earphone.
  • page scan page scan
  • a (BR/EDR) pairing/SDP/encryption process is performed between the mobile phone and the main ear.
  • S712 and S713 can be understood as a standard Bluetooth pairing process between the mobile phone and the main ear.
  • S714 Data transmission is performed between the mobile phone and the main ear.
  • an HFP connection can be made between the mobile phone and the main ear.
  • an A2DP connection can be made between the mobile phone and the main ear.
  • the above method 700 introduces a process in which the mobile phone actively queries the Bluetooth headset and establishes a connection.
  • connection established between the mobile phone and the Bluetooth headset can be a BR/EDR connection, that is, the mobile phone only establishes a BR/EDR connection with the main ear, and the auxiliary ear can monitor (or listen to) the link between the mobile phone and the main ear.
  • the mobile phone and Bluetooth headset can perform normal data transmission after establishing a BR/EDR connection.
  • Another BLE mode connection method is given in the embodiment of this application.
  • a BR/EDR connection can be established. After identifying the type and capability of the peer device , Select whether the subsequent connection is based on BR/EDR mode or BLE mode.
  • FIG. 8 shows a schematic flowchart of a method 800 for performing a Bluetooth pairing connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application. As shown in FIG. 8, the method 800 includes:
  • the mobile phone and the Bluetooth headset establish a connection through the first mode.
  • the first mode may be the BR/EDR mode.
  • the mobile phone is actually connected to the main ear of the Bluetooth headset.
  • the mobile phone and the Bluetooth headset establish a connection through the second mode, and the mobile phone and the Bluetooth headset disconnect the connection in the first mode.
  • the second mode takes precedence over the first mode.
  • the mobile phone After the mobile phone establishes an ACL link through BR/EDR, it can ask whether the Bluetooth headset supports dual mode. If both the mobile phone and the Bluetooth headset support dual mode, then the mobile phone and Bluetooth The headset can establish a BLE connection.
  • both mobile phones and accessory devices support dual-mode
  • the mobile phone and accessory devices can transmit heart rate, blood pressure and other data through BLE connections, which can save the power consumption of the mobile phone and accessory devices.
  • BLE connections can be used to transmit audio data, video data or call data.
  • the mobile phone supports dual-mode, but the accessory device does not support dual-mode; or, if the mobile phone does not support dual-mode but the accessory device supports dual-mode, the mobile phone can continue after establishing an ACL link through BR/EDR (BR /EDR) pairing/SDP/encryption, etc., so that the mobile phone and the accessory device establish a BR/EDR connection before transmitting data.
  • BR/EDR BR /EDR
  • the mobile phone and the Bluetooth headset can continue to pass through the first mode establish connection.
  • the mobile phone actually establishes a BLE connection with the main ear and the auxiliary ear of the Bluetooth headset respectively, or in other words, the mobile phone establishes a BLE connection with the left ear and the right ear of the Bluetooth headset respectively.
  • the BLE mode is more helpful to save the power consumption of the electronic device than the BR/EDR mode.
  • FIG. 9 is a schematic flowchart showing a method 900 for performing a Bluetooth pairing connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application. As shown in FIG. 9, the method 900 includes:
  • the mobile phone and the Bluetooth headset establish a connection through the first mode.
  • the first mode may be the BR/EDR mode.
  • the mobile phone actually establishes a BR/EDR connection with the main ear.
  • S902 The mobile phone sends capability query request information to the Bluetooth headset, where the capability query request information is used to query whether the Bluetooth headset supports dual modes.
  • the mobile phone sends capability query request information to the master ear.
  • the mobile phone sends query request information to the Bluetooth headset via echo.
  • a mobile phone can send an echo request message to a Bluetooth headset, carrying capability query request information in the echo request message;
  • a Bluetooth headset can send an echo response echo response message to the mobile phone, and the echo response message carries capability query response information.
  • S902 may be a capability query performed when a BR/EDR connection has been established between the mobile phone and the Bluetooth headset in S901. It can also be the process of establishing BR/EDR between the mobile phone and the Bluetooth headset in the S901. After the ACL link is established between the mobile phone and the main ear, the mobile phone can send the capability query request information to the Bluetooth headset, so that the mobile phone can communicate with the main ear. Before establishing the BR/EDR protocol and profile, determine whether the Bluetooth headset supports dual-mode. If the mobile phone determines that the Bluetooth headset supports dual-mode, then this can avoid the subsequent process of establishing a BR/EDR connection and quickly switch to the BLE connection. Save the time delay of establishing BLE connection between mobile phone and Bluetooth headset.
  • S903 The main ear sends capability query response information to the mobile phone, where the capability query response information is used to indicate that the Bluetooth headset supports dual modes.
  • the main ear sends the capability query response information to the mobile phone.
  • S904 The mobile phone queries the main ear for the real MAC addresses of the main ear and the auxiliary ear.
  • the MAC address of the left ear of the Bluetooth headset is MAC address 1
  • the MAC address of the right ear is MAC address 2.
  • the Bluetooth headset can statically configure the main ear as the right ear before opening the box, then the Bluetooth headset will use MAC address 2 to establish a BR/EDR connection with the mobile phone after the box is opened.
  • the Bluetooth headset can also dynamically adjust the main ear through position and power. For example, if a Bluetooth headset determines that the left ear is in the user's ear and the right ear is not in the user's ear, then it can be determined that the left ear is the main ear. After opening the box, a connection will be established between the left ear and the right ear, so the left ear actually knows the MAC address of the right ear, so the left ear can use MAC address 2 to establish a BR/EDR connection with the mobile phone.
  • the Bluetooth headset may have a wearing detection function.
  • the Bluetooth headset may detect the position of the headset through a proximity light sensor.
  • the position of the left ear or the right ear is detected by the proximity light sensor.
  • the proximity light sensor can determine whether the left ear or the right ear is located in the user's ear, or the proximity light sensor can determine whether the left ear or the right ear is detached from the user's ear.
  • the Bluetooth headset can determine the main ear based on the power of the left ear and the right ear. If the power of the right ear is higher than that of the left ear, the Bluetooth headset can determine that the right ear is the main ear. At this time, the right ear can use MAC address 2 to establish a BR/EDR connection with the mobile phone.
  • the mobile phone saves the MAC address 2 address information, then the mobile phone can query the main ear and the secondary ear for the MAC address of the MAC address 2.
  • the main ear sends the real MAC addresses of the main ear and the secondary ear to the mobile phone.
  • the right ear is the main ear.
  • the main ear (right ear) can establish an ACL link with the mobile phone through MAC address 2, and the mobile phone asks the main ear (right ear) whether it supports dual mode. If the capability query response information returned by the main ear (right ear) indicates that dual-mode is supported, the mobile phone will then query the main ear (right ear) for MAC address information. The main ear (right ear) will return to the mobile phone its real MAC address as MAC address 2, and the opposite ear (left ear) as MAC address 1.
  • the MAC address 2 can be used to establish an ACL link with the mobile phone.
  • the main ear (right ear) reports the real MAC address of the main ear and auxiliary ear to the mobile phone, it can report (MAC address 2, MAC address 1), which means that the real MAC address of the main ear (right ear) is MAC address 2.
  • the real MAC address of the ear (left ear) is MAC address 1.
  • Table 1 shows the working status of the main ear in the BR/EDR mode and the BLE mode when the right ear is the main ear.
  • the left ear is the main ear.
  • the main ear (left ear) can establish an ACL link with the mobile phone through MAC address 2, and the mobile phone asks the main ear (left ear) whether it supports dual mode. If the capability query response message returned by the main ear (left ear) indicates that dual-mode is supported, the mobile phone will then query the main ear (left ear) for MAC address information. The main ear (left ear) will return to the mobile phone its real MAC address as MAC address 1, and the opposite ear (right ear) as MAC address 2.
  • the MAC address 2 can be used to establish an ACL link with the mobile phone.
  • the main ear (left ear) reports the real MAC addresses of the main ear and auxiliary ear to the mobile phone, it can report (MAC address 1, MAC address 2), which means that the real MAC address of the main ear (left ear) is MAC address 1.
  • the real MAC address of the ear (right ear) is MAC address 2.
  • Table 2 shows another working state of the main ear in the BR/EDR mode and the BLE mode when the left ear is the main ear.
  • the mobile phone and the main ear establish a connection through the second mode.
  • the second mode is a BLE mode.
  • the process of establishing a BLE connection between the mobile phone and the real MAC address of the main ear includes: establishing a (BLE) ACL link between the mobile phone and the real MAC address of the main ear; performing (BLE) SDP/ Encryption process; the mobile phone and the real MAC address of the main ear (BLE) HFP/A2DP connection.
  • the mobile phone and the accessory ear establish a connection through the second mode.
  • the process of establishing a BLE connection between the mobile phone and the real MAC address of the accessory ear includes: the real MAC address of the mobile phone and the accessory ear establishes a (BLE) ACL link; the real MAC address of the mobile phone and the accessory ear performs (BLE) SDP/ Encryption process; the real MAC address of the mobile phone and the accessory ear (BLE) HFP/A2DP connection.
  • the main ear when the right ear is the main ear, the main ear (right ear) will return to the mobile phone its real MAC address as MAC address 2 and the MAC address of the opposite ear (left ear) as MAC address 1. Then the mobile phone actually establishes a BLE connection with the real MAC address (MAC address 2) of the main ear (right ear). The mobile phone establishes a BLE connection with the real MAC address (MAC address 1) of the accessory ear (left ear).
  • the main ear when the left ear is the main ear, the main ear (left ear) will return to the mobile phone its real MAC address as MAC address 1, and the MAC address of the opposite ear (right ear) as MAC address 2. Then the mobile phone actually establishes a BLE connection with the real MAC address (MAC address 1) of the main ear (left ear). The mobile phone establishes a BLE connection with the real MAC address (MAC address 2) of the accessory ear (right ear).
  • FIG. 10 shows a schematic flowchart of a method 1000 for performing a Bluetooth pairing connection between a mobile phone and a Bluetooth headset according to an embodiment of the present application. As shown in FIG. 10, the method 1000 includes:
  • the Bluetooth headset detects the user's operation to open the headset box.
  • the left ear and the right ear of the Bluetooth earphone establish a BR/EDR connection.
  • the master ear can initiate a page by targeting the MAC address of the last connected electronic device.
  • the Bluetooth headset is opened for the first time or no other electronic device is connected to the box last time.
  • S1004 The Bluetooth headset detects the operation of the user pressing the function key.
  • S1006 The Bluetooth settings interface of the mobile phone detects the operation of turning on the Bluetooth by the user.
  • Bluetooth controller Bluetooth controller
  • S1008 The Bluetooth controller initiates an inquiry (inquiry) to surrounding devices.
  • the master ear After receiving the inquiry, the master ear sends an FHS packet to the Bluetooth controller of the mobile phone, and the FHS packet includes the MAC address of the master ear.
  • the MAC address of the left ear is MAC address 1
  • the MAC address of the right ear is MAC address 2.
  • the right ear can be statically configured as the main ear.
  • the Bluetooth headset determines that the right ear is in the ear and the left ear is not in the user's ear, it can be determined that the right ear is the main ear.
  • the right ear reports the FHS packet, and the FHS packet includes MAC address 2.
  • the mobile phone After receiving the FHS packet, the mobile phone sends the device name query information to the master ear.
  • S1011 The main ear returns its device name to the mobile phone.
  • the device name of the Bluetooth device is "Bluetooth headset”.
  • a Bluetooth device with the device name "Bluetooth headset” can be displayed.
  • the mobile phone displays the device name of the Bluetooth device "Bluetooth headset" in the available devices in the Bluetooth setting interface.
  • S1013 The mobile phone detects that the user clicks on the device name of the Bluetooth device.
  • S1001-S1015 are described by taking the mobile phone actively searching for Bluetooth headsets as an example. For this process, reference may be made to the description of the process of S701-S712 in the foregoing method 700.
  • S1001-S1015 can also be replaced by the process of S501-S506 in the above method 500, that is, the mobile phone can establish a (BR/EDR) ACL link with the main ear through active search, or it can be a Bluetooth headset that can be found with the mobile phone through proximity. Establish (BR/EDR) ACL link.
  • the Bluetooth stack of the mobile phone sends capability query request information to the main ear for querying whether the Bluetooth headset supports dual mode.
  • the mobile phone after the mobile phone establishes an ACL link with the Bluetooth headset, it can send capability query request information to the Bluetooth headset. In this way, capability interaction can be performed without the need for a Bluetooth connection between the mobile phone and the Bluetooth headset.
  • the dual mode When the dual mode is supported, it helps to save the time delay for the mobile phone and the Bluetooth headset to establish a connection through the second mode.
  • S1017 The main ear sends capability query response information to the mobile phone, where the capability query response information is used to indicate that the Bluetooth headset supports dual modes.
  • the mobile phone sends the capability query request information to the main ear via echo, which can confirm the version supported by both parties and ensure that the version is compatible.
  • S1018 The Bluetooth protocol stack of the mobile phone determines whether it supports dual mode.
  • both the mobile phone and the Bluetooth headset support dual mode and the main version is the same, the mobile phone and the Bluetooth headset can enter the second mode connection.
  • S1018 and S1016-S1017 there is no actual sequence between S1018 and S1016-S1017. It can be that the mobile phone first judges whether it supports dual mode. After confirming that it supports dual mode, the phone executes S1016; it can be that the phone executes S1016-S1017. After confirming that the Bluetooth headset supports dual mode, the phone judges whether it supports dual mode. .
  • the steps after S1022 are executed.
  • S1020 The Bluetooth protocol stack of the mobile phone reports the connection event to the settings of the mobile phone.
  • the Bluetooth settings interface of the mobile phone shows that the mobile phone and the Bluetooth headset are connected.
  • S1022 The Bluetooth protocol stack of the mobile phone sends MAC address query information to the primary ear, and the MAC address query information is used to query the real MAC addresses of the primary ear and the secondary ear.
  • the Bluetooth protocol stack of the mobile phone can carry its own version information through (BR/EDR) L2CAP Echo to confirm the second mode protocol version that both parties can support.
  • the mobile phone initiates a Bluetooth address query request to the headset, and carries the BR MAC address of the mobile phone and a random BLE address in the echo request message. After the Bluetooth headset receives the version information of the mobile phone, it can be determined that the mobile phone wants to query the real MAC addresses of the primary and secondary ears.
  • the version information carried by the mobile phone may include 1 byte to indicate the main version number, and 1 byte to indicate the sub version number.
  • the main ear sends a MAC address query response message to the Bluetooth protocol stack of the mobile phone, and the MAC address query response message carries the real MAC addresses of the main ear and the auxiliary ear.
  • the primary ear sends (BR/EDR) synchronization pairing information to the secondary ear, and synchronizes the link key (link key) generated under the BR/EDR to the secondary ear.
  • BR/EDR link key
  • S1025 The primary ear notifies the secondary ear to send a standard BLE unconnectable broadcast.
  • the main ear uses its real MAC address to send a connectable broadcast, so that the mobile phone can initiate a BLE connection to the main ear.
  • the secondary ear uses its real MAC address to send a connectable broadcast, so that the mobile phone can initiate a BLE connection to the secondary ear.
  • the Bluetooth headset can first stop sending non-continuous broadcasts, and then switch to sending continuous broadcasts.
  • the Bluetooth protocol stack of the mobile phone adds the real MAC addresses of the primary ear and the secondary ear to the whitelist.
  • S1030 The Bluetooth protocol stack of the mobile phone notifies the Bluetooth controller to disconnect the ACL link with the main ear.
  • S1031 The ACL link is disconnected between the Bluetooth controller of the mobile phone and the main ear.
  • the Bluetooth protocol stack of the mobile phone may send the (BR/EDR) ACL link disconnection event to the master ear, and the master ear may return the (BR/EDR) ACL link disconnection completion event to the Bluetooth protocol stack.
  • a (BLE) ACL link is established between the Bluetooth protocol stack of the mobile phone and the master ear.
  • S1033 The master ear stops sending connectable broadcasts.
  • S1034 Perform (BLE) encryption/SDP process between the Bluetooth protocol stack of the mobile phone and the master ear.
  • a (BLE) HFP/A2DP connection is established between the Bluetooth protocol stack of the mobile phone and the main ear.
  • an HFP connection can be made between the mobile phone and the main ear.
  • an A2DP connection can be made between the mobile phone and the main ear.
  • the Bluetooth controller of the mobile phone and the accessory ear have established a (BLE) ACL link so far.
  • S1037 The secondary ear stops sending and can broadcast continuously.
  • a (BLE) encryption/SDP process is performed between the Bluetooth protocol stack of the mobile phone and the secondary ear.
  • a (BLE) HFP/A2DP connection is established between the Bluetooth protocol stack of the mobile phone and the accessory ear.
  • S1040 The Bluetooth protocol stack of the mobile phone reports the connection event to the settings.
  • S1041 The Bluetooth setting interface of the mobile phone shows that the mobile phone and the Bluetooth headset are connected.
  • the mobile phone and the Bluetooth headset when both the mobile phone and the Bluetooth headset support dual-mode, or both the mobile phone and the Bluetooth headset support BR/EDR mode and BLE mode, the mobile phone and the Bluetooth headset can switch from the BR/EDR mode connection to the BLE mode connection. This helps to save the power consumption of mobile phones and Bluetooth headsets.
  • FIG. 11 shows a schematic diagram of a system architecture 1100 provided by an embodiment of the present application.
  • the system 1100 may include: an electronic device 1101 and an accessory device 1102.
  • the electronic device 1101 may be the electronic device in the foregoing embodiment, and the accessory device 1102 may be the accessory device in the foregoing embodiment.
  • the electronic device 1101 may be a smart phone, a tablet computer, a personal computer, or the like.
  • the accessory device 1102 may be a Bluetooth headset, Bluetooth speaker, smart watch, or other devices that support Bluetooth functions.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

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

Abstract

本申请提供了一种蓝牙连接的方法和电子设备,该方法包括:电子设备和配件设备建立基本速率/增强数据速率BR/EDR连接;电子设备确定自己支持双模连接且配件设备也支持双模连接,其中,双模连接包括BR/EDR连接和蓝牙低功耗BLE连接;该电子设备断开与该配件设备的BR/EDR连接并和该配件设备建立BLE连接。本申请实施例中,在电子设备和配件设备都支持双模连接时,可以建立BLE连接,有助于节省电子设备和配件设备的功耗。

Description

蓝牙连接的方法和电子设备
本申请要求于2019年9月6日提交中国专利局、申请号为201910844436.1、申请名称为“蓝牙连接的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,并且更具体地,涉及一种蓝牙连接的方法和电子设备。
背景技术
蓝牙(Bluetooth,BT)技术是一种无线数据通信的开放性全球规范,它以低成本的近距离无线连接为基础,是当今市场上支持范围最广泛、功能最丰富且安全的近场无线通信标准。
目前的蓝牙技术主要包括基本速率(basic rate,BR)蓝牙技术和增强数据速率(enhanced data rate,EDR)蓝牙技术。并且目前的电子设备也都是单模的蓝牙通信设备,即仅支持BR/EDR的蓝牙连接方式。由于BR/EDR主要是用于传输一些数据量较大的数据,如音频数据等,在电子设备之间需要通过蓝牙连接传输一些数据量较小的数据(例如,用户的心率、血压等数据)时,采用BR/EDR的连接方式会造成电子设备功耗的浪费。
发明内容
本申请提供一种蓝牙连接的方法,有助于节省电子设备通过蓝牙技术传输数据时的功耗。
第一方面,提供了一种系统,该系统包括第一电子设备和配件设备,其中,该第一电子设备和该配件设备支持双模连接,该双模连接包括基本速率/增强数据速率BR/EDR连接和蓝牙低功耗(Bluetooth low energy,BLE)连接,该第一电子设备,用于和该配件设备建立BR/EDR连接;该第一电子设备,还用于在确定该配件设备支持该双模连接时,断开与该配件设备的BR/EDR连接,并和该配件设备建立BLE连接;该第一电子设备,还用于和该配件设备通过BLE连接传输音频数据、视频数据或者通话数据。
本申请实施例中,当第一电子设备和配件设备都支持双模连接时,第一电子设备可以先和配件设备建立BR/EDR连接,在确定配件设备支持双模连接时,断开和配件设备的BR/EDR连接并和配件设备建立BLE连接。并且第一电子设备还可以通过BLE连接向配件设备传输音频数据、视频数据或者通话数据等等,有助于节省电子设备的功耗。
在一些可能的实现方式中,第一电子设备可以在和配件设备建立好BR/EDR连接后,查询配件设备的能力信息。其中,在建立好BR/EDR连接后,第一电子设备可以在同步链路(synchronous connection-oriented/extended,SCO)或者扩展同步链路(extended synchronous connection-oriented,ESCO)上传输通话数据;在ACL链路上传输音频数据 或者视频数据。
在一些可能的实现方式中,在BLE连接下,第一电子设备可以和配件设备使用等时信道(isochronous channel,ISO)进行传输通话数据、音频数据或者视频数据。
结合第一方面,在第一方面的某些实现方式中,该第一电子设备具体用于和该配件设备建立BR/EDR连接中的异步链路ACL;该第一电子设备还用于在该ACL上,向该配件设备发送查询请求信息,该查询请求信息用于查询该配件设备是否支持该双模连接;该第一电子设备还用于接收该配件设备发送的查询响应信息,该查询响应信息用于指示该配件设备支持该双模连接。
本申请实施例中,第一电子设备可以在和配件设备建立好BR/EDR连接下的ACL时,就可以向配件设备询问其能力信息,无需在BR/EDR连接完全建立好之后在去询问,这样有助于减少第一电子设备和配件设备之间建立BLE连接的时延。
结合第一方面,在第一方面的某些实现方式中,该第一电子设备具体用于通过回声echo消息携带该查询请求信息。
本申请实施例中,第一电子设备可以在echo消息中携带该查询请求信息,可以确认双方所支持的版本,确保实现版本兼容。
在一些可能的实现方式中,该查询请求信息携带在回声请求echo request消息中。
在一些可能的实现方式中,该查询响应信息携带在回声响应echo response消息中。
结合第一方面,在第一方面的某些实现方式中,该配件设备为蓝牙耳机,该蓝牙耳机包括第一耳和第二耳,该第一耳的媒体接入控制MAC地址为第一地址,该第二耳的MAC地址为第二地址,该第二地址为主耳和该第一电子设备建立连接时使用的MAC地址,该第一电子设备具体用于:当该第一耳为该主耳时,通过该第二地址和该第一耳建立BR/EDR连接;在确定该蓝牙耳机支持该双模连接时,断开和该第一耳的BR/EDR连接;通过该第一地址和该第一耳建立BLE连接,且通过第二地址和该第二耳建立BLE连接。
本申请实施例中,蓝牙耳机可以通过静态配置第二MAC地址为与第一电子设备和主耳建立连接时使用的MAC地址。第一电子设备在和蓝牙耳机建立BR/EDR连接时,蓝牙耳机还可以动态得变更主耳,当左耳为主耳时,左耳通过第二MAC地址和第一电子设备建立BR/EDR连接,右耳可以对左耳和第一电子设备之间的链路进行监听。第一电子设备在和蓝牙耳机建立BLE连接时,左耳可以通过第一MAC地址和第一电子设备建立BLE连接,右耳可以通过第二MAC地址和第一电子设备建立BLE连接。
结合第一方面,在第一方面的某些实现方式中,该第一电子设备还用于当该主耳从该第一耳切换至该第二耳时,通过该第一地址和该第一耳建立BLE连接,且通过该第二地址和该第二耳建立BLE连接。
本申请实施例中,电子设备在和蓝牙耳机建立BLE连接时,无论主耳如何变化,左耳在和电子设备建立连接时都是使用左耳真实的MAC地址(第一地址),右耳在和电子设备建立连接时都是使用右耳真实的MAC地址(第二地址)。
结合第一方面,在第一方面的某些实现方式中,该系统还包括第二电子设备,该第二电子设备仅支持BR/EDR连接,其特征在于,该蓝牙耳机,用于断开该第一耳和该第一电子设备的BLE连接,且断开该第二耳和该第一电子设备的BLE连接;该第二电子设备,用于当该第一耳为该主耳时,通过该第二地址和该第一耳建立BR/EDR连接;该第二电子 设备,还用于当该主耳从该第一耳切换至该第二耳时,通过该第二地址和该第二耳建立BR/EDR连接。
本申请实施例中,若第二电子设备仅支持BR/EDR连接,当左耳为主耳时,左耳通过第二MAC地址和第二电子设备建立BR/EDR连接,右耳可以对左耳和第二电子设备之间的链路进行监听。当右耳为主耳时,右耳通过第二MAC地址和第二电子设备建立BR/EDR连接,左耳可以对右耳和第二电子设备之间的链路进行监听。与BLE连接时的区别是,在BR/EDR连接下,无论左耳是主耳或者右耳是主耳,主耳都是通过同一个MAC地址和电子设备进行BR/EDR连接。而在BLE模式下,无论左耳是主耳或者右耳是主耳,左耳都是通过自己真实的MAC地址和电子设备建立BLE连接,右耳都是通过自己真实的MAC地址和电子设备建立BLE连接。
第二方面,提供了一种蓝牙连接的方法,该方法应用于电子设备,该电子设备支持双模连接,该双模连接包括BR/EDR连接和BLE连接,该方法包括:该电子设备和配件设备建立BR/EDR连接;该电子设备在确定该配件设备支持该双模连接时,断开与该配件设备的BR/EDR连接,并和该配件设备建立BLE连接;该电子设备和该配件设备通过BLE连接传输音频数据、视频数据或者通话数据。
本申请实施例中,当电子设备和配件设备都支持双模连接时,电子设备可以先和配件设备建立BR/EDR连接,在确定配件设备支持双模连接时,断开和配件设备的BR/EDR连接并和配件设备建立BLE连接。并且电子设备还可以通过BLE连接向配件设备传输音频数据、视频数据或者通话数据等等,有助于节省电子设备的功耗。
在一些可能的实现方式中,电子设备可以在和配件设备建立好BR/EDR连接后,查询配件设备的能力信息。其中,在建立好BR/EDR连接后,电子设备可以在SCO或者ESCO上传输通话数据;在ACL上传输音频数据或者视频数据。
在一些可能的实现方式中,在BLE连接下,电子设备可以和配件设备使用ISO进行传输通话数据、音频数据或者视频数据。
结合第二方面,在第二方面的某些实现方式中,该电子设备断开与该配件设备的BR/EDR连接之前,包括:该电子设备通过和该配件设备建立的BR/EDR连接中的ACL,向该配件设备发送查询请求信息,该查询请求信息用于查询该配件设备是否支持该双模连接;该电子设备接收该配件设备发送的查询响应信息,该查询响应信息用于指示该配件设备支持该双模连接。
本申请实施例中,电子设备可以在和配件设备建立好BR/EDR连接下的ACL时,就可以向配件设备询问其能力信息,无需在BR/EDR连接完全建立好之后在去询问,这样有助于减少电子设备和配件设备之间建立BLE连接的时延。
结合第二方面,在第二方面的某些实现方式中,该向该配件设备发送查询请求信息,包括:该电子设备向该配件设备发送echo消息,该echo消息中携带该查询请求信息。
本申请实施例中,电子设备可以在echo消息中携带该查询请求信息,可以确认双方所支持的版本,确保实现版本兼容。
结合第二方面,在第二方面的某些实现方式中,该配件设备为蓝牙耳机,该蓝牙耳机包括第一耳和第二耳,该第一耳的媒体接入控制MAC地址为第一地址,该第二耳的MAC地址为第二地址,该第二地址为该主耳和该电子设备建立连接时使用的MAC地址,该电 子设备和配件设备建立BR/EDR连接,包括:当该第一耳为主耳时,该电子设备通过该第二地址和该第一耳建立BR/EDR连接;当该主耳从该第一耳切换至该第二耳时,该电子设备通过该第二地址和该第二耳建立BR/EDR连接。
本申请实施例中,无论左耳还是右耳为主耳,电子设备都是都通过第二地址与主耳建立BR/EDR连接。
结合第二方面,在第二方面的某些实现方式中,该电子设备和该第一耳建立BLE连接,且该电子设备和该第二耳建立BLE连接,包括:当该第一耳为主耳时,该电子设备通过该第一地址和该第一耳建立BLE连接,且该电子设备通过该第二地址和该第二耳建立BLE连接;当该主耳从该第一耳切换至该第二耳时,该电子设备通过该第一地址和该第一耳建立BLE连接,且该电子设备通过该第二地址和该第二耳建立BLE连接。
与BLE连接时的区别是,在BR/EDR连接下,无论左耳是主耳或者右耳是主耳,主耳都是通过同一个MAC地址和电子设备进行BR/EDR连接。而在BLE模式下,无论左耳是主耳或者右耳是主耳,左耳都是通过自己真实的MAC地址和电子设备建立BLE连接,右耳都是通过自己真实的MAC地址和电子设备建立BLE连接。
本申请实施例中,在电子设备和配件设备都支持双模连接的情况下,电子设备和配件设备可以先建立BR/EDR连接,在BR/EDR连接下电子设备可以查询配件设备是否支持双模连接,在电子设备和配件设备都支持双模连接的情况下,电子设备可以和配件设备断开BR/EDR连接并进行BLE连接,并在BLE连接下进行音频数据、视频数据或者通话数据的传输,有助于节省电子设备的功耗。
第三方面,提供了一种蓝牙连接的方法,该方法应用于配件设备,该配件设备支持双模连接,该双模连接包括基本速率/增强数据速率BR/EDR连接和蓝牙低功耗BLE连接,该方法包括:该配件设备和电子设备建立BR/EDR连接;该配件设备向该电子设备发送指示信息,该指示信息用于指示该配件设备支持该双模连接;该配件设备断开与该电子设备的BR/EDR连接,并和该电子设备建立BLE连接;该配件设备和该电子设备通过BLE连接传输音频数据、视频数据或者通话数据。
本申请实施例中,当电子设备和配件设备都支持双模连接时,配件设备可以先和电子设备建立BR/EDR连接,在配件设备告知电子设备支持双模连接时,电子设备可以断开和配件设备的BR/EDR连接并和配件设备建立BLE连接。并且电子设备还可以通过BLE连接向配件设备传输音频数据、视频数据或者通话数据等等,有助于节省电子设备和配件设备的功耗。
在一些可能的实现方式中,电子设备可以在和配件设备建立好BR/EDR连接后,查询配件设备的能力信息。其中,在建立好BR/EDR连接后,电子设备可以在SCO或者ESCO上传输通话数据;在ACL上传输音频数据或者视频数据。
在一些可能的实现方式中,在BLE连接下,电子设备可以和配件设备使用ISO进行传输通话数据、音频数据或者视频数据。
结合第三方面,在第三方面的某些实现方式中,该配件设备向该电子设备发送指示信息,包括:该配件设备在和该电子设备建立BR/EDR连接下的ACL后,该配件设备在该ACL上向该电子设备发送该指示信息。
结合第三方面,在第三方面的某些实现方式中,该配件设备为蓝牙耳机,该蓝牙耳机 包括第一耳和第二耳,该第一耳的媒体接入控制MAC地址为第一地址,该第二耳的MAC地址为第二地址,该第二地址为该主耳和该电子设备建立连接时使用的MAC地址,该配件设备和电子设备建立BR/EDR连接,包括:当该第一耳为主耳时,该第一耳通过该第二地址和该电子设备建立BR/EDR连接;当该主耳从该第一耳切换至该第二耳时,该第二耳通过该第二地址和该电子设备建立BR/EDR连接。
结合第三方面,在第三方面的某些实现方式中,该配件设备和该电子设备建立BLE连接,包括:当该第一耳为主耳时,该第一耳通过该第一地址和该电子设备建立BLE连接,且该第二耳通过该第二地址和该电子设备建立BLE连接;当该主耳从该第一耳切换至该第二耳时,该第一耳通过该第一地址和该电子设备建立BLE连接,且该第二耳通过该第二地址和该电子设备建立BLE连接。
第四方面,提供了一种装置,该装置包含在电子设备中,该装置具有实现上述方面及上述方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。
第五方面,提供了一种装置,该装置包含在配件设备中,该装置具有实现上述方面及上述方面的可能实现方式中配件子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。
第六方面,提供了一种电子设备,包括:蓝牙芯片;一个或多个处理器;存储器;以及一个或多个计算机程序。其中,该蓝牙芯片支持BR/EDR连接和BLE连接。一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第二方面可能的实现中的蓝牙连接的方法。
第七方面,提供了一种配件设备,包括:蓝牙芯片;一个或多个处理器;存储器;以及一个或多个计算机程序。其中,该蓝牙芯片支持BR/EDR连接和BLE连接。一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被配件设备执行时,使得配件设备执行上述第三方面可能的实现中的蓝牙连接的方法。
第八方面,提供了一种芯片系统,设置于电子设备中,该芯片系统包括:蓝牙芯片和处理器,该蓝牙芯片支持BR/EDR连接和BLE连接。其中,该蓝牙芯片,用于和配件设备建立BR/EDR连接;该处理器,用于确定该配件设备支持双模连接;该蓝牙芯片,还用于断开和该配件设备的BR/EDR连接,并和该配件设备建立BLE连接。
在一些可能的实现方式中,该蓝牙芯片具体用于:和该配件设备建立BR/EDR下的ACL;该蓝牙芯片还用于在ACL上向配件设备发送查询请求信息,该查询请求信息用于查询该配件设备是否支持该双模连接;该蓝牙芯片,还用于接收该配件设备发送的查询响应信息,该查询响应信息用于指示该配件设备支持该双模连接。
在一些可能的实现方式中,该蓝牙芯片具体用于通过逻辑链路控制和适配协议L2CAP的回应echo消息向该配件设备发送该查询请求信息。
在一些可能的实现方式中,该配件设备为蓝牙耳机,该蓝牙耳机包括第一耳和第二耳,该第一耳的媒体接入控制MAC地址为第一地址,该第二耳的MAC地址为第二地址,该第二地址为主耳和该第一电子设备建立连接时使用的MAC地址,该蓝牙芯片具体用于:在处理器确定第一耳为主耳时,通过该第二地址和该配件设备建立BR/EDR连接;在处理器确定主耳从第一耳切换到第二耳时,通过该第第二地址和该配件设备建立BR/EDR连 接。
在一些可能的实现方式中,该蓝牙芯片具体用于:在处理器确定第一耳为主耳时,通过该第一地址和该第一耳建立BLE连接且通过第二地址和该第二耳建立BLE连接;在处理器确定主耳从第一耳切换到第二耳时,通过该第一地址和该第一耳建立BLE连接且通过第二地址和该第二耳建立BLE连接。
第九方面,提供了一种芯片系统,设置于配件设备中,该芯片系统包括:蓝牙芯片和处理器,该蓝牙芯片支持BR/EDR连接和BLE连接。其中,该蓝牙芯片,用于和电子设备建立BR/EDR连接;该蓝牙芯片,用于还用于向电子设备指示该配件设备支持双模连接;该蓝牙芯片,还用于断开和该电子设备的BR/EDR连接,并和该电子设备建立BLE连接。
在一些可能的实现方式中,该配件设备为蓝牙耳机,该蓝牙耳机包括第一耳和第二耳,该第一耳的媒体接入控制MAC地址为第一地址,该第二耳的MAC地址为第二地址,该第二地址为该主耳和该电子设备建立连接时使用的MAC地址,该配件设备和电子设备建立BR/EDR连接,其中,该蓝牙芯片,用于在处理器确定该第一耳为主耳时,通过该第二地址和该电子设备建立BR/EDR连接;在处理器确定主耳从该第一耳切换至该第二耳时,该第二耳通过该第二地址和该电子设备建立BR/EDR连接。
在一些可能的实现方式中,该蓝牙芯片具体用于:在处理器确定该第一耳为主耳时,通过该第一地址和该电子设备建立BLE连接,且通过该第二地址和该电子设备建立BLE连接;在处理器确定主耳从该第一耳切换至该第二耳时,通过该第一地址和该电子设备建立BLE连接,且通过该第二地址和该电子设备建立BLE连接。
第十方面,本技术方案提供了一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的实现中的蓝牙连接的方法。
第十一方面,本技术方案提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的设计中的蓝牙连接的方法。
附图说明
图1是本申请实施例提供的电子设备的结构示意图。
图2是本申请实施例提供的蓝牙协议框架的示意图。
图3是本申请实施例提供的配件设备的结构示意图。
图4是本申请实施例提供的一组GUI。
图5是本申请实施例提供的手机和蓝牙耳机进行蓝牙配对连接的方法的示意性流程图。
图6是本申请实施例的另一组GUI。
图7是本申请实施例提供的手机和蓝牙耳机进行蓝牙配对连接的方法的示意性流程图。
图8是本申请实施例提供的手机和蓝牙耳机进行蓝牙配对连接的方法的示意性流程图。
图9是本申请实施例提供的手机和蓝牙耳机进行蓝牙配对连接的方法的示意性流程图。
图10是本申请实施例提供的手机和蓝牙耳机进行蓝牙配对连接的方法的示意性流程图。
图11是本申请实施例提供的一种系统架构的示意图。
具体实施方式
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
以下介绍电子设备、用于这样的电子设备的用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2020113585-appb-000001
Figure PCTCN2020113585-appb-000002
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是台式计算机。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110、外部存储器接口120、内部存储器121、通用串行总线(universal serial bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、天线1、天线2、移动通信模块150、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、指南针190、马达191、指示器192、摄像头193、显示屏194以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字 信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的部件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备101也可以包括一个或多个处理器110。其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。在其他一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例性地,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。这样就避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备101处理数据或执行指令的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路间(inter-integrated circuit,I2C)接口、集成电路间音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、用输入输出(general-purpose input/output,GPIO)接口、SIM卡接口和/或USB接口等。其中,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口、Micro USB接口、USB Type C接口等。USB接口130可以用于连接充电器为电子设备101充电,也可以用于电子设备101与外围设备之间传输数据。该USB接口130也可以用于连接耳机,通过耳机播放音频。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、外部存储器、显示屏194、摄像头193和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量、电池循环次数、电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大 器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像、视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、迷你发光二极管(mini light-emitting diode,miniled)、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或多个显示屏194。
在本申请的一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,上述图1中的显示屏194可以被弯折。这里,上述显示屏194可以被弯折是指显示屏可以在任意部位被弯折到任意角度,并可以在该角度保持,例如,显示屏194可以从中部左右对折。也可以从中部上下对折。
电子设备100的显示屏194可以是一种柔性屏,目前,柔性屏以其独特的特性和巨大的潜力而备受关注。柔性屏相对于传统屏幕而言,具有柔韧性强和可弯曲的特点,可以给用户提供基于可弯折特性的新交互方式,可以满足用户对于电子设备的更多需求。对于配置有可折叠显示屏的电子设备而言,电子设备上的可折叠显示屏可以随时在折叠形态下的小屏和展开形态下大屏之间切换。因此,用户在配置有可折叠显示屏的电子设备上使用分屏功能,也越来越频繁。
电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP 处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或多个摄像头193。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3、MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别、人脸识别、语音识别、文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备101执行本申请一些实施例中所提供的蓝牙配对连接的方法,以及各种应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用(比如图库、联系人等)等。存储数据区可存储电子设备101使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得电子设备101执行本申请实施例中所提供的蓝牙配对连接的方法,以及其他应用及数据处理。电子设备100可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、以及应用处理器等实现音频功能。例如音乐播放、录音等。
传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L、骨传导传感器180M等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端100根据压力传感器180A检测所述触摸操作强度。终端100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定终端100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,终端100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。终端100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端100是翻盖机时,终端100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测终端100在各个方向上(一般为三轴)加速度的大小。当终端100静止时可检测出重力的大小及方向。还可以用于识别终端姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。终端100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端100通过发光二极管向外发射红外光。终端100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端100附近有物体。当检测到不充分的反射光时,终端100可以确定终端100附近没有物体。终端100可以利用接近光传感器180G检测用户手持终端100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。终端100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。终端100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,终端100利用温度传感器180J检 测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端100对电池142加热,以避免低温导致终端100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端100可以接收按键输入,产生与终端100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
如图2所示,本申请实施例提供一种蓝牙协议框架,包括但不限于主机(host)协议栈、主机控制接口(host controller interface,HCI)、控制器(controller)。
其中,Host协议栈定义了蓝牙框架中的多个应用(profile)和核心协议(protocol),每个profile定义了各自相应的消息格式与应用规则,profile是蓝牙服务(application)。为了实现不同平台下的不同设备的互联互通,蓝牙协议为各种可能的、有通用意义的应用场景,都制定的了规范,如蓝牙音频传输模型协定(advanced audio distribution profile,A2DP)、蓝牙免提协议(hands-free profile,HFP)等等。
核心协议包括但不限于蓝牙基本的服务协议(service discover protocol,SDP)、逻辑链路控制和适配协议(logical link control and adaptation protocol,L2CAP)等。核心协议是蓝牙协议栈中必不可少的。
其中,HCI为上层协议提供了进入链路管理器的统一接口和进入基带的统一方式,在主机核心协议栈和控制器之间会存在若干传输层,这些传输层是透明的,完成传输数据的任务,蓝牙技术联盟(Bluetooth special interest group,SIG)规定了四种与硬件连接的物理总线方式,即四种HCI传输层:USB,RS232,UART和PC卡。
其中,controller定义了底层硬件部分,包括无线射频(RF)、基带(BB)和链路管理(LM),RF层通过2.4GHz无需授权的ISM频段的微波,实现数据位流的过滤和传输,主要定义了蓝牙收发器在此频带正常工作所需要满足的条件。基带负责跳频以及蓝牙数据和信息帧的传输。链路管理负责连接、建立和拆除链路并进行安全控制。链路管理(link manager,LM)层是蓝牙协议栈的链路管理层协议,负责将上层HCI命令翻译成基带能接受的操作,建立异步链路(asynchronous connection-oriented link,ACL)、同步链路(synchronous connection-oriented/extended,SCO)和扩展同步链路(extended synchronous connection-oriented,ESCO)以及使蓝牙设备进入节能状态的工作模式等。链路控制(link control,LC)层负责在一批数据包传送期间,响应上层LM命令(如执行建立数据包的传输链路,维持链路等功能的LM命令)。
在BR/EDR连接下,电子设备和配件设备使用SCO和ESCO进行传输通话数据;使用ACL链路传输音频数据或者视频数据。
在BLE连接下,电子设备可以和配件设备使用等时信道(isochronous channel,ISO)进行传输通话数据、音频数据或者视频数据。
本申请实施例所述的方法由图1所示的电子设备100的无线通信模块160来实现的部分内容,具体可以是蓝牙模块或者是蓝牙芯片来执行。
图3示例性的示出了本申请实施例提供的配件设备200的结构示意图。
下面以配件设备200为例对实施例进行具体说明。应该理解的是,图3所示配件设备200仅是一个范例,并且配件设备200可以具有比图3中所示的更多或更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现,
如图3所示,配件设备200可以包括:处理器201,存储器202,蓝牙通信模块203,天线204,电源开关205,USB通信处理模块206,音频模块207。其中:
处理器201可用于读取和执行计算机可读指令。具体实现中,处理器201可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器201的硬件架构可以是专用集成电路(ASIC)架构、MIPS架构、ARM架构或者NP架构等等。
在一些实施例中,处理器201可以用于解析蓝牙通信处理模块203接收到的信号,如电子设备100发送的配对模式修改请求,等等。处理201可以用于根据解析结果进行相应的处理操作,如生成配对模式修改响应,等等。
存储器202与处理器201耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器202可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器202可以存储操作系统,例如uCOS,VxWorks、RTLinux等嵌入式操作系统。存储器202还可以存储通信程序,该通信程序可用于与电子设备100,一个或多个服务器,或其他设备进行通信。
蓝牙通信模块203可以包括经典蓝牙(BT)模块和低功耗蓝牙(Bluetooth low energy,BLE)模块,
在一些实施例中,蓝牙通信模块203、可以监听到其他设备(如电子设备100)发射的信号,如探测请求、扫描信号等等,并可以发送响应信号、扫描响应等,使得其他设备(如电子设备100)可以发现配件设备200,并去其他设备(如电子设备100)建立无线通信连接,通过蓝牙与其他设备(如电子设备100)进行通信。
在另一些实施例中,蓝牙通信模块203也可以发射信号,如广播BLE信号,使得其他设备(如电子设备100)可以发现配件设备200,并与其他设备(如电子设备100)建立无线通信连接,通过蓝牙与其他设备(如电子设备100)进行通信。
配件设备200的无线通信功能可以通过天线204,蓝牙通信模块203,调制解调处理器等实现。
天线204可用于发射和接收电磁波信号。配件设备200中的每个天线可用于覆盖单个或多个通信频带。
在一些实施例中蓝牙通信模块203的天线可以有一个或多个。
电源开关205可用于控制电源向配件设备200的供电。
USB通信处理模块206可用于通过USB接口(未示出)与其他设备进行通信。
音频模块26可用于通过音频输出接口输出音频信号,这样可使得配件设备200支持音频播放。音频模块还可用于通过音频输入接口接收音频数据。配件设备200可以为蓝牙耳机等媒体播放设备。
在一些实施例中,配件设备200还可以包括显示屏(未示出),其中,该显示屏可用于显示图像,提示信息等。显示屏可以采用LCD显示屏,OLED显示屏,AMOLED显示屏,FLED显示屏,QLED显示屏等等。
在一些实施例中,配件设备200还可以包括RS-232接口等串行接口。该串行接口可连接至其他设备,如音箱等音频外放设备,使得配件设备200和音频外放设备协作播放音视频。
可以理解的是图3示意的结构并不构成对配件设备200的具体限定。在本申请另一些实施例中,配件设备200可以包括比图示更多或更少的部件,或组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
本申请实施例所述的方法中,配件设备使用的蓝牙协议框架可以参考上述图2所示,在此不再赘述。
为了便于理解,本申请以下实施例将以具有图1和图2所示结构的手机,以及图3所示的蓝牙耳机为例,结合附图对本申请实施例提供的蓝牙配对连接的方法进行具体阐述。
图4示出了本申请实施例提供的一组图形用户界面(graphical user interface,GUI)。图4示出了蓝牙耳机通过靠近发现和手机连接的过程。
参见图4中的(a)所示,手机处于亮屏状态且显示手机桌面。其中,手机桌面包括支付宝应用、任务卡商店、微博、相册、微信、卡包、设置和主题等应用程序(application,APP)。蓝牙耳机此时处于耳机盒中。
参见图4中的(b)所示,当蓝牙耳机检测到用户打开耳机盒且,靠近手机后,手机会自动弹出提醒框401,其中提醒框401中可以显示蓝牙耳机的设备名称,当手机检测到用户点击控件402的操作后,手机可以和蓝牙耳机进行配对。
图5示出了本申请实施例的手机和蓝牙耳机进行蓝牙配对连接的方法500的示意性流 程图,如图5所示,该方法500包括:
S501,蓝牙耳机检测到用户打开耳机盒的操作后。
S502,响应于检测到用户打开耳机盒的操作,主耳和副耳之间先建立基本速率(basic rate,BR)/增强数据速率(enhanced data rate,EDR)链路(或者,左耳和右耳之间先建立BR/EDR链路)。
S503,蓝牙耳机确定主耳,主耳可以向周围的设备发送BLE广播数据包。
示例性的,该BLE广播数据包中可以携带主耳的MAC地址以及蓝牙耳机的设备类型。
应理解,本申请实施例中,主耳可以根据预定义规则确定。该预定义规则可以为静态配置与动态配置结合的方式。
例如,蓝牙耳机中左耳的MAC地址为MAC地址1,右耳的MAC地址为MAC地址2。蓝牙耳机在开盒前可以先静态配置右耳为主耳,则上述BLE广播中可以携带MAC地址2以及蓝牙耳机的设备类型。当手机接收到该BLE广播数据包后,可以解析出其中的MAC地址为MAC地址2,手机就会始终以MAC地址2和蓝牙耳机建立BR/EDR连接。
当蓝牙耳机检测到用户开盒的操作后,蓝牙耳机可以动态配置主耳的确定方式。
例如,蓝牙耳机可以根据左耳和右耳的位置确定谁是主耳谁是副耳。当蓝牙耳机检测到左耳插入用户的耳中,右耳还没有插入用户的耳中时,蓝牙耳机可以确定左耳为主耳,右耳是副耳。此时左耳和右耳之间已经建立BR/EDR链路,也就是说左耳知道右耳的MAC地址,右耳也知道左耳的MAC地址。那么左耳就可以使用MAC地址2和手机建立BR/EDR链路,右耳可以监听(或者,侦听)手机和左耳之间的链路。
在左耳和右耳都插入用户耳中的情况下,蓝牙耳机还可以根据左耳和右耳的电量来判断谁是左耳谁是右耳。例如,在左耳和右耳都插入用户耳中的情况下,右耳的电量比左耳的电量高,那么蓝牙耳机可以确定右耳为主耳,左耳为副耳,那么右耳可以使用MAC地址2和手机建立BR/EDR链路,左耳可以监听(或者,侦听)手机和右耳之间的链路。
S504,手机接收到该BLE广播数据包后,显示蓝牙耳机的设备类型以及提醒用户是否需要将手机和蓝牙耳机建立连接。
示例性的,如图4中的(b)所示,手机的显示屏上可以显示蓝牙耳机的设备类型以及控件402。
S505,当手机检测到用户点击控件402的操作后,手机可以针对MAC地址2发起寻呼(page)。
S506,蓝牙耳机处于寻呼扫描(page scan)时,接收到手机发送的page,手机和主耳建立(BR/EDR)ACL链接。
S507,手机和主耳之间进行(BR/EDR)配对/SDP/加密过程。
应理解,S505和S506可以理解为手机和主耳之间进行标准蓝牙配对的流程。
S508,手机和主耳之间进行数据传输。
示例性的,当手机通过蓝牙耳机接听电话时,手机和主耳之间可以进行HFP连接。
示例性的,当手机通过蓝牙耳机听音乐,看视频时,手机和主耳之间可以进行A2DP连接。
应理解,以上手机和蓝牙耳机建立连接是以蓝牙耳机靠近发现手机为例进行说明,也可以通过手机主动搜索蓝牙耳机,从而和蓝牙耳机建立连接。
还应理解,上述方法500是以蓝牙耳机首次连接过程中通过靠近发现来连接手机的过程。当下一次用户打开耳机盒后,主耳可以针对手机的MAC地址发起page,当手机处于page scan时,手机可以和主耳进行标准蓝牙配对的流程,从而建立BR/EDR连接。
图6示出了本申请实施例的另一组GUI。
图6所示的GUI为手机通过检测到用户打开蓝牙功能,进而主动搜索蓝牙耳机为例进行说明。
参见图6中的(a)所示,该GUI为手机桌面。该手机桌面包括多个应用程序的图标,该多个应用程序的图标中包括设置的图标601。当手机检测到用户点击桌面上的图标601的操作后,可以启动设置手机相关功能,显示如图6中的(b)所示的GUI。
参见图6中的(b)所示的GUI,该GUI为手机的设置界面。该GUI包括多个功能选项,该多个功能选项中包括无线和网络、设备连接、桌面和壁纸和声音等,其中,用户可以通过设备连接功能进行蓝牙、NFC和手机投屏等功能的设置。当手机检测到与用户点击设备连接功能602的操作后,手机打开蓝牙连接的设置界面,显示如图6中的(c)所示的GUI。
参见图6中的(c)所示的GUI,该GUI为手机的设备连接设置界面。该GUI包括对设备连接下的多个功能选项,该多个功能选项包括蓝牙,NFC,Huawei beacon,Huawei share,手机投屏等设备连接选项。当手机检测到用户点击蓝牙功能603的操作后,手机可以打开蓝牙功能的设置界面,显示如图6中的(d)所示的GUI。
参加图6中的(d)所示的GUI,该GUI为蓝牙设置界面。该蓝牙设备界面包括蓝牙开关控件604,设备名称“Huawei P30”等功能。当手机检测到用户点击控件604的操作后,手机可以开启蓝牙功能,并可以显示图6中的(e)所示。
参见图6中的(e)所示的GUI,该GUI为蓝牙设置界面。该设置界面可以显示已配对设备和可用设备,其中已配对设备可以为手机之前连接过的蓝牙设备,可用设备中可以为手机搜索到的蓝牙设备。
参见图6中的(f)所示的GUI,该GUI为蓝牙设置界面。该设置界面中可用设备中可以显示手机搜索到的蓝牙设备,其中包括“蓝牙耳机”605。当手机检测到用户点击“蓝牙耳机”605的操作后,手机可以针对蓝牙耳机的媒体接入控制(media access control,MAC)地址向蓝牙耳机发起寻呼,并显示如图6中的(g)所示的GUI。
参见图6中的(g)所示的GUI,该GUI为蓝牙设置界面。该蓝牙设置界面中在已配对设备中可以显示设备名为“蓝牙耳机”的蓝牙设备和手机已连接。
图7示出了本申请实施例的手机和蓝牙耳机进行蓝牙配对连接的方法700的示意性流程图,如图7所示,该方法700包括:
S701,蓝牙耳机检测到用户打开耳机盒的操作。
S702,响应于用户打开耳机盒的操作,左耳和右耳建立BR/EDR链路。
S703,蓝牙耳机检测到用户按压耳机盒上的功能键,主耳进入查询扫描(inquiry scan)。
应理解,手机检测到用户按压功能键进入可配对模式后,主机(host)给控制器(controller)发送指令,使得控制器进入可配对模式。
S704,手机检测到用户打开蓝牙功能。
示例性的,如图6中的(c)所示,当手机检测到用户点击蓝牙功能603的操作后, 手机打开蓝牙。
S705,手机向周围的设备发送查询(inquiry)消息。
S706,主耳响应于手机发送的inquiry,向手机发送FHS包,其中,FHS包中包括主耳的MAC地址。
应理解,主耳的确定过程可以参考上述方法500中的描述,为了简洁,在此不再赘述。
S707,手机针对该FHS包中的MAC地址,向主耳发送请求信息,该请求信息用于请求蓝牙耳机的设备名。
S708,响应于该请求信息,主耳向手机发送该蓝牙耳机的设备名。
S709,手机在蓝牙设备搜索界面中的可用设备中显示该蓝牙耳机的设备名。
示例性的,如图6中的(f)所示,该蓝牙耳机的设备名可以为“蓝牙耳机”。
S710,手机检测到用户点击“蓝牙耳机”的操作。
S711,响应于用户点击“蓝牙耳机”的操作,手机针对该蓝牙耳机的MAC地址发起寻呼(page)。
S712,主耳处于寻呼扫描(page scan)状态下,接收到手机发送的page后,手机和主耳机建立ACL链接。
S713,手机和主耳之间进行(BR/EDR)配对/SDP/加密过程。
应理解,S712和S713可以理解为手机和主耳之间进行标准蓝牙配对的流程。
S714,手机和主耳之间进行数据传输。
示例性的,当手机通过蓝牙耳机接听电话时,手机和主耳之间可以进行HFP连接。
示例性的,当手机通过蓝牙耳机听音乐,看视频时,手机和主耳之间可以进行A2DP连接。
应理解,以上方法700介绍了手机主动查询蓝牙耳机并建立连接的过程。
以上结合方法500和方法700介绍了手机和蓝牙耳机建立连接的过程。目前,手机和蓝牙耳机建立的连接可以为BR/EDR连接,也就是手机只和主耳建立BR/EDR连接,副耳可以监听(或者,侦听)手机和主耳之间的链路。
对于仅支持BR/EDR模式的手机和蓝牙耳机来说,手机和蓝牙耳机可以建立BR/EDR连接后进行正常的数据传输。本申请实施例中给出了另一种BLE模式的连接方式,对于支持BR/EDR和BLE的手机和蓝牙耳机来说,可以通过建立BR/EDR连接,在识别对端设备的类型和能力后,选择后续连接是基于BR/EDR模式还是基于BLE模式。
图8示出了本申请实施例提供的手机和蓝牙耳机进行蓝牙配对连接的方法800的示意性流程图,如图8所示,该方法800包括:
S801,手机和蓝牙耳机通过第一模式建立连接。
示例性的,该第一模式可以为BR/EDR模式。
应理解,这里手机和蓝牙耳机进行BR/EDR连接的建立过程可以参考上述方法500和方法700中的描述,为了简洁,在此不再赘述。
还应理解,该第一模式下,手机其实是和蓝牙耳机的主耳建立连接。
S802,在手机确定蓝牙耳机支持双模,且手机本身也支持双模时,手机和蓝牙耳机通过第二模式建立连接。
一个实施例中,手机和蓝牙耳机通过第二模式建立连接之间,手机和蓝牙耳机断开第 一模式的连接。
本申请实施例中以第二模式优先于第一模式,手机在通过BR/EDR建立ACL链路后就可以询问蓝牙耳机是否支持双模,如果手机和蓝牙耳机都支持双模,那么手机和蓝牙耳机可以建立BLE连接。
示例性的,手机和配件设备(例如,手表,手环等)都支持双模,那么手机可以和配件设备通过BLE连接传输心率、血压等等数据,这样可以节省手机和配件设备的功耗。或采用BLE扩展的传输协议进行音频数据、视频数据或者通话数据的传送。
那么对于手机支持双模,但是配件设备不支持双模;或者,手机不支持双模,但是配件设备支持双模的情况下,手机可以在通过BR/EDR建立ACL链路后,继续进行(BR/EDR)配对/SDP/加密等等操作,从而手机和配件设备建立BR/EDR连接后再传输数据。
应理解,若手机不支持双模,或者手机支持双模但是蓝牙耳机不支持双模,或者手机不支持双模但是蓝牙耳机支持双模时,手机可以和蓝牙耳机之间继续保持通过第一模式建立连接。
还应理解,在该第二模式下,手机其实分别和蓝牙耳机的主耳和副耳建立BLE连接,或者说手机分别和蓝牙耳机的左耳和右耳建立BLE连接。
本申请实施例中,BLE模式相比于BR/EDR模式,更有助于节省电子设备的功耗。
下面对本申请实施例的BLE模式进行说明。
图9是示出了本申请实施例提供的手机和蓝牙耳机进行蓝牙配对连接的方法900的示意性流程图,如图9所示,该方法900包括:
S901,手机和蓝牙耳机通过第一模式建立连接。
示例性的,该第一模式可以为BR/EDR模式。手机其实是和主耳建立BR/EDR连接。
应理解,这里手机和蓝牙耳机进行BR/EDR连接的建立过程可以参考上述方法500和方法700中的描述,为了简洁,在此不再赘述。
S902,手机向蓝牙耳机发送能力查询请求信息,该能力查询请求信息用于查询蓝牙耳机是否支持双模。
示例性的,手机向主耳发送能力查询请求信息。
示例性的,手机通过echo向蓝牙耳机发送查询请求信息。例如,手机可以向蓝牙耳机发送回声请求echo request消息,在echo request消息中携带能力查询请求信息;蓝牙耳机可以向手机发送回声响应echo response消息,在echo response消息携带能力查询响应信息。
应理解,S902可以是在S901手机和蓝牙耳机已经建立BR/EDR连接的情况下进行的能力查询。也可以是S901中手机和蓝牙耳机建立BR/EDR的过程中,当手机和主耳之间建立ACL链路后,手机就可以向蓝牙耳机发送该能力查询请求信息,这样手机可以在和主耳建立好BR/EDR的协议和profile之前就确定蓝牙耳机是否支持双模,如果手机确定蓝牙耳机支持双模,那么这样可以避免后续BR/EDR连接建立的过程,快速切换到BLE连接,有助于节省手机和蓝牙耳机建立BLE连接的时延。
S903,主耳向手机发送能力查询响应信息,该能力查询响应信息用于指示该蓝牙耳机支持双模。
示例性的,主耳向手机发送该能力查询响应信息。
S904,手机向主耳查询主耳和副耳的真实的MAC地址。
示例性的,蓝牙耳机的左耳的MAC地址为MAC地址1,右耳的MAC地址为MAC地址2。在BR/EDR模式下,蓝牙耳机在开盒前可以先静态配置主耳为右耳,那么蓝牙耳机在开盒后就会使用MAC地址2与手机建立BR/EDR连接。
在蓝牙耳机检测到用户开盒后,蓝牙耳机还可以通过位置和电量来动态调整主耳。例如,蓝牙耳机在确定左耳在用户的耳中,右耳不在用户的耳中,那么可以确定左耳为主耳。由于开盒后,左耳和右耳之间会建立连接,所以左耳其实也知道右耳的MAC地址,那么左耳可以使用MAC地址2和手机建立BR/EDR连接。
示例性的,蓝牙耳机可以具备佩戴检测功能,例如,蓝牙耳机可以通过接近光传感器检测耳机的位置。在动态地址变换的过程中通过接近光传感器检测检测左耳或者右耳的位置。接近光传感器可以确定左耳或者右耳是否位于用户的耳中,或者接近光传感器可以确定左耳或者右耳是否从用户的耳中脱落。
又例如,左耳和右耳都在用户的耳中,那么蓝牙耳机可以根据左耳和右耳的电量来确定主耳。若右耳的电量高于左耳,那么蓝牙耳机可以确定右耳为主耳,此时,右耳可以使用MAC地址2与手机建立BR/EDR连接。
在BLE模式下,对于手机而言,手机保存有MAC地址2这一地址信息,那么手机可以针对MAC地址2向主耳查询主耳和副耳的MAC地址。
S905,主耳向手机发送主耳和副耳真实的MAC地址。
示例性的,若右耳位于用户的耳中,左耳不再用户的耳中,此时右耳为主耳。那么其实是主耳(右耳)可以通过MAC地址2和手机建立ACL链路,手机向主耳(右耳)询问是否支持双模。若主耳(右耳)返回的能力查询响应信息中指示支持双模,那么手机会接着向主耳(右耳)查询MAC地址信息。主耳(右耳)会向手机返回其真实的MAC地址为MAC地址2,以及对耳(左耳)的MAC地址为MAC地址1。
应理解,手机和主耳(右耳)建立(BR/EDR)ACL链路时,可以使用MAC地址2与手机建立ACL链路。主耳(右耳)在向手机上报主耳和副耳真实的MAC地址时,可以上报(MAC地址2,MAC地址1),表示主耳(右耳)的真实MAC地址为MAC地址2,对耳(左耳)的真实MAC地址为MAC地址1。
示例性的,表1示出了右耳为主耳时,主耳在BR/EDR模式和BLE模式下的工作状态。
表1主耳在BR/EDR模式和BLE模式下的工作状态
Figure PCTCN2020113585-appb-000003
示例性的,若左耳位于用户的耳中,右耳不再用户的耳中,此时左耳为主耳。那么其实是主耳(左耳)可以通过MAC地址2和手机建立ACL链路,手机向主耳(左耳)询问是否支持双模。若主耳(左耳)返回的能力查询响应信息中指示支持双模,那么手机会接着向主耳(左耳)查询MAC地址信息。主耳(左耳)会向手机返回其真实的MAC地 址为MAC地址1,以及对耳(右耳)的MAC地址为MAC地址2。
应理解,手机和主耳(左耳)建立(BR/EDR)ACL链路时,可以使用MAC地址2与手机建立ACL链路。主耳(左耳)在向手机上报主耳和副耳真实的MAC地址时,可以上报(MAC地址1,MAC地址2),表示主耳(左耳)的真实MAC地址为MAC地址1,对耳(右耳)的真实MAC地址为MAC地址2。
示例性的,表2示出了在左耳为主耳时,主耳在BR/EDR模式和BLE模式下的另一工作状态。
表2主耳在BR/EDR模式和BLE模式下的另一工作状态
Figure PCTCN2020113585-appb-000004
S906,手机和主耳通过第二模式建立连接。
示例性的,该第二模式为BLE模式。
一个实施例中,手机和主耳的真实MAC地址建立BLE连接的过程包括:手机和主耳的真实MAC地址建立(BLE)ACL链路;手机和主耳的真实MAC地址进行(BLE)SDP/加密的过程;手机和主耳的真实MAC地址进行(BLE)HFP/A2DP连接。
S907,手机和副耳通过第二模式建立连接。
一个实施例中,手机和副耳的真实MAC地址建立BLE连接的过程包括:手机和副耳的真实MAC地址建立(BLE)ACL链路;手机和副耳的真实MAC地址进行(BLE)SDP/加密的过程;手机和副耳的真实MAC地址进行(BLE)HFP/A2DP连接。
示例性的,当右耳为主耳时,主耳(右耳)会向手机返回其真实的MAC地址为MAC地址2,以及对耳(左耳)的MAC地址为MAC地址1。那么手机其实是和主耳(右耳)真实的MAC地址(MAC地址2)建立BLE连接。手机和副耳(左耳)真实的MAC地址(MAC地址1)建立BLE连接。
示例性的,当左耳为主耳时,主耳(左耳)会向手机返回其真实的MAC地址为MAC地址1,以及对耳(右耳)的MAC地址为MAC地址2。那么手机其实是和主耳(左耳)真实的MAC地址(MAC地址1)建立BLE连接。手机和副耳(右耳)真实的MAC地址(MAC地址2)建立BLE连接。
图10示出了本申请实施例提供的手机和蓝牙耳机进行蓝牙配对连接的方法1000的示意性流程图,如图10所示,该方法1000包括:
S1001,蓝牙耳机检测到用户打开耳机盒的操作。
S1002,响应于用户打开耳机盒的操作,蓝牙耳机的左耳和右耳建立BR/EDR连接。
S1003,主耳判断已配对设备清单(paired device list,PDL)PDL是否为空。
应理解,蓝牙耳机确定主耳和副耳的过程可以参考上述方法500中的描述,为了简洁,在此不再赘述。
例如,若PDL不为空,则主耳可以通过针对上一次连接的电子设备的MAC地址发起page。
又例如,若PDL为空,则蓝牙耳机为第一次开盒或者上次开盒没有连接其他电子设备。
S1004,蓝牙耳机检测到用户按压功能键的操作。
S1005,响应于用户按压功能键的操作,蓝牙耳机进入查询扫描(inquiry scan)。
S1006,手机的蓝牙设置(settings)界面检测到用户打开蓝牙的操作。
S1007,响应于用户打开蓝牙的操作,settings向蓝牙控制器(Bluetooth controller)发送指示,指示蓝牙控制器开始查找蓝牙设备。
S1008,蓝牙控制器向周围设备发起查询(inquiry)。
S1009,主耳收到该inquiry后,向手机的蓝牙控制器发送FHS包,该FHS包中包括主耳的MAC地址。
示例性的,左耳的MAC地址为MAC地址1,右耳的MAC地址为MAC地址2。当蓝牙耳机开盒前,可以静态配置右耳为主耳。当蓝牙耳机确定右耳位于耳中,左耳不在用户耳中时,可以确定右耳为主耳。此时右耳上报FHS包,该FHS包中包括MAC地址2。
S1010,手机在收到该FHS包后,向主耳发送设备名查询信息。
S1011,主耳向手机返回其设备名。
示例性的,该蓝牙设备的设备名为“蓝牙耳机”。
示例性的,如图6中的(f),在手机的蓝牙设置界面的可用设备中,可以显示设备名为“蓝牙耳机”的蓝牙设备。
S1012,手机在蓝牙设置界面中的可用设备中显示蓝牙设备的设备名“蓝牙耳机”。
S1013,手机检测到用户点击该蓝牙设备的设备名的操作。
S1014,响应于用户点击该蓝牙设备的设备名的操作,手机针对MAC地址2发起page。
S1015,处于page scan的主耳在接收到手机发送的page后,手机的蓝牙控制器(Bluetooth controller)和主耳建立(BR/EDR)ACL链路。
应理解,S1001-S1015是以手机主动搜索蓝牙耳机为例进行说明,该过程可以参考上述方法700中S701-S712的过程的描述。
还应理解,S1001-S1015还可以替换为上述方法500中S501-S506的过程,即手机可以通过主动搜索与主耳建立(BR/EDR)ACL链路,也可以是蓝牙耳机通过靠近发现与手机建立(BR/EDR)ACL链路。
S1016,手机的蓝牙协议栈(Bluetooth stack)向主耳发送能力查询请求信息,用于查询蓝牙耳机是否支持双模。
本申请实施例中,手机在和蓝牙耳机建立ACL链路后就可以向蓝牙耳机发送能力查询请求信息,这样不需要手机和蓝牙耳机建立好蓝牙连接就可以进行能力交互,在手机和蓝牙耳机都支持双模时,有助于节省手机和蓝牙耳机通过第二模式建立连接的时延。
S1017,主耳向手机发送能力查询响应信息,该能力查询响应信息用于指示蓝牙耳机支持双模。
示例性的,手机通过echo向主耳发送该能力查询请求信息,可以确认双方所支持的版本,确保实现版本兼容。
S1018,手机的蓝牙协议栈确定自己是否支持双模。
应理解,若手机和蓝牙耳机都支持双模,且主版本相同,则手机和蓝牙耳机可以则进 入第二模式连接。
应理解,S1018和S1016-S1017之间并没有实际的先后顺序。可以是手机先判断自己是否支持双模,在确定自己支持双模后,手机在执行S1016;可以是手机向执行S1016-S1017,在确定蓝牙耳机支持双模后,手机在判断自己是否支持双模。
若手机的蓝牙协议栈确定自己不支持双模,则执行S1019-S1021的步骤。
若手机的蓝牙协议栈确定自己也支持双模,则执行S1022以后的步骤。
S1019,手机的蓝牙协议栈和主耳之间进行(BR/EDR)配对/SDP/加密的过程。
S1020,手机的蓝牙协议栈向手机的settings上报连接事件。
S1021,手机的蓝牙设置(settings)界面显示手机和蓝牙耳机已连接。
示例性的,如图6中的(g)所示,在蓝牙设置界面中在已配对设备中可以显示设备名为“蓝牙耳机”的蓝牙设备和手机已连接。
S1022,手机的蓝牙协议栈向主耳发送MAC地址查询信息,该MAC地址查询信息用于查询主耳和副耳真实的MAC地址。
一个实施例中,手机的蓝牙协议栈可以通过(BR/EDR)L2CAP Echo携带自己的版本信息,确认双方可支持的第二模式协议版本。手机向耳机发起蓝牙地址查询请求,在回声请求echo request消息中携带手机的BR MAC地址和随机的BLE地址。蓝牙耳机在接收到手机的版本信息后,即可以确定手机希望查询主耳和副耳真实的MAC地址。
示例性的,手机携带的版本信息中可以包括1个字节用来指示主版本号,1个字节指示子版本号。
S1023,主耳向手机的蓝牙协议栈发送MAC地址查询响应信息,该MAC地址查询响应信息中携带主耳和副耳真实的MAC地址。
应理解,该S1023的过程可以参考上述方法900中的描述,为了简洁,在此不再赘述。
S1024,主耳向副耳发送(BR/EDR)同步配对信息,将BR/EDR下生成的链路密钥(link key)同步给副耳。
S1025,主耳通知副耳发送标准的BLE不可连接广播。
S1026,主耳停止发送不可连接广播。
S1027,主耳使用其真实的MAC地址发送可连接广播,从而手机可以向主耳发起BLE连接。
S1028,副耳使用其真实的MAC地址发送可连接广播,从而手机可以向副耳发起BLE连接。
蓝牙耳机可以先停止发送不可连续广播,在转为发送可连续广播。
S1029,手机的蓝牙协议栈将主耳和副耳真实的MAC地址加入白名单中。
S1030,手机的蓝牙协议栈通知蓝牙控制器断开与主耳之间的ACL链路。
S1031,手机的蓝牙控制器与主耳之间断开ACL链接。
示例性的,手机的蓝牙协议栈可以向主耳发送(BR/EDR)ACL链路断开事件,主耳可以向蓝牙协议栈返回(BR/EDR)ACL链路断开完成事件。
S1032,手机的蓝牙协议栈与主耳之间建立(BLE)ACL链路。
S1033,主耳停止发送可连接广播。
S1034,手机的蓝牙协议栈与主耳之间进行(BLE)加密/SDP过程。
S1035,手机的蓝牙协议栈与主耳之间建立(BLE)HFP/A2DP连接。
示例性的,当手机通过蓝牙耳机接听电话时,手机和主耳之间可以进行HFP连接。
示例性的,当手机通过蓝牙耳机听音乐,看视频时,手机和主耳之间可以进行A2DP连接。
S1036,手机的蓝牙控制器与副耳至今建立(BLE)ACL链路。
S1037,副耳停止发送可连续广播。
S1038,手机的蓝牙协议栈与副耳之间进行(BLE)加密/SDP过程。
S1039,手机的蓝牙协议栈与副耳之间建立(BLE)HFP/A2DP连接。
S1040,手机的蓝牙协议栈向settings上报连接事件。
S1041,手机的蓝牙设置界面显示手机和蓝牙耳机已连接。
示例性的,如图6中的(g)所示,在蓝牙设置界面中在已配对设备中可以显示设备名为“蓝牙耳机”的蓝牙设备和手机已连接。
本申请实施例中,当手机和蓝牙耳机都支持双模,或者说手机和蓝牙耳机都支持BR/EDR模式和BLE模式时,手机和蓝牙耳机可以从BR/EDR模式连接切换至BLE模式连接,这样有助于节省手机和蓝牙耳机的功耗。
图11示出了本申请实施例提供的一种系统架构1100的示意图。如图11所示,该系统1100可包括:电子设备1101和配件设备1102。
其中,电子设备1101可以为上述实施例中的电子设备,该配件设备1102可以为上述实施例中的配件设备。
示例性的,电子设备1101可以是智能手机、平板电脑、个人电脑等。配件设备1102可以是蓝牙耳机、蓝牙音箱、智能手表等支持蓝牙功能的设备。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (28)

  1. 一种系统,所述系统包括第一电子设备和配件设备,其中,所述第一电子设备和所述配件设备支持双模连接,所述双模连接包括基本速率/增强数据速率BR/EDR连接和蓝牙低功耗BLE连接,其特征在于,
    所述第一电子设备,用于和所述配件设备建立BR/EDR连接;
    所述第一电子设备,还用于在确定所述配件设备支持所述双模连接时,断开与所述配件设备的BR/EDR连接,并和所述配件设备建立BLE连接;
    所述第一电子设备,还用于和所述配件设备通过BLE连接传输音频数据、视频数据或者通话数据。
  2. 根据权利要求1所述的系统,其特征在于,所述第一电子设备具体用于和所述配件设备建立BR/EDR连接中的异步链路ACL;
    所述第一电子设备还用于在所述ACL上,向所述配件设备发送查询请求信息,所述查询请求信息用于查询所述配件设备是否支持所述双模连接;
    所述第一电子设备还用于接收所述配件设备发送的查询响应信息,所述查询响应信息用于指示所述配件设备支持所述双模连接。
  3. 根据权利要求2所述的系统,其特征在于,所述第一电子设备具体用于通过回声echo消息携带所述查询请求信息。
  4. 根据权利要求1至3中任一项所述的系统,其特征在于,所述配件设备为蓝牙耳机,所述蓝牙耳机包括第一耳和第二耳,所述第一耳的媒体接入控制MAC地址为第一地址,所述第二耳的MAC地址为第二地址,所述第二地址为主耳和所述第一电子设备建立连接时使用的MAC地址,所述第一电子设备具体用于:
    当所述第一耳为所述主耳时,通过所述第二地址和所述第一耳建立BR/EDR连接;
    在确定所述蓝牙耳机支持所述双模连接时,断开和所述第一耳的BR/EDR连接;
    通过所述第一地址和所述第一耳建立BLE连接,且通过第二地址和所述第二耳建立BLE连接。
  5. 根据权利要求4所述的系统,其特征在于,
    所述第一电子设备还用于当所述主耳从所述第一耳切换至所述第二耳时,通过所述第一地址和所述第一耳建立BLE连接,且通过所述第二地址和所述第二耳建立BLE连接。
  6. 根据权利要求4或5所述的系统,所述系统还包括第二电子设备,所述第二电子设备仅支持BR/EDR连接,其特征在于,
    所述蓝牙耳机,用于断开所述第一耳和所述第一电子设备的BLE连接,且断开所述第二耳和所述第一电子设备的BLE连接;
    所述第二电子设备,用于当所述第一耳为所述主耳时,通过所述第二地址和所述第一耳建立BR/EDR连接;
    所述第二电子设备,还用于当所述主耳从所述第一耳切换至所述第二耳时,通过所述第二地址和所述第二耳建立BR/EDR连接。
  7. 一种蓝牙连接的方法,所述方法应用于电子设备,所述电子设备支持双模连接, 所述双模连接包括BR/EDR连接和BLE连接,其特征在于,所述方法包括:
    所述电子设备和配件设备建立BR/EDR连接;
    所述电子设备在确定所述配件设备支持所述双模连接时,断开与所述配件设备的BR/EDR连接,并和所述配件设备建立BLE连接;
    所述电子设备和所述配件设备通过BLE连接传输音频数据、视频数据或者通话数据。
  8. 根据权利要求7所述的方法,其特征在于,所述电子设备断开与所述配件设备的BR/EDR连接之前,包括:
    所述电子设备通过和所述配件设备建立的BR/EDR连接中的ACL,向所述配件设备发送查询请求信息,所述查询请求信息用于查询所述配件设备是否支持所述双模连接;
    所述电子设备接收所述配件设备发送的查询响应信息,所述查询响应信息用于指示所述配件设备支持所述双模连接。
  9. 根据权利要求8所述的方法,其特征在于,所述向所述配件设备发送查询请求信息,包括:
    所述电子设备向所述配件设备发送echo消息,所述echo消息中携带所述查询请求信息。
  10. 根据权利要求7至9中任一项所述的方法,其特征在于,所述配件设备为蓝牙耳机,所述蓝牙耳机包括第一耳和第二耳,所述第一耳的媒体接入控制MAC地址为第一地址,所述第二耳的MAC地址为第二地址,所述第二地址为主耳和所述电子设备建立连接时使用的MAC地址,所述电子设备和配件设备建立BR/EDR连接,包括:
    当所述第一耳为所述主耳时,所述电子设备通过所述第二地址和所述第一耳建立BR/EDR连接;
    当所述主耳从所述第一耳切换至所述第二耳时,所述电子设备通过所述第二地址和所述第二耳建立BR/EDR连接。
  11. 根据权利要求10所述的方法,其特征在于,所述电子设备和所述第一耳建立BLE连接,且所述电子设备和所述第二耳建立BLE连接,包括:
    当所述第一耳为主耳时,所述电子设备通过所述第一地址和所述第一耳建立BLE连接,且所述电子设备通过所述第二地址和所述第二耳建立BLE连接;
    当所述主耳从所述第一耳切换至所述第二耳时,所述电子设备通过所述第一地址和所述第一耳建立BLE连接,且所述电子设备通过所述第二地址和所述第二耳建立BLE连接。
  12. 一种蓝牙连接的方法,所述方法应用于配件设备,所述配件设备支持双模连接,所述双模连接包括基本速率/增强数据速率BR/EDR连接和蓝牙低功耗BLE连接,其特征在于,所述方法包括:
    所述配件设备和电子设备建立BR/EDR连接;
    所述配件设备向所述电子设备发送指示信息,所述指示信息用于指示所述配件设备支持所述双模连接;
    所述配件设备断开与所述电子设备的BR/EDR连接,并和所述电子设备建立BLE连接;
    所述配件设备和所述电子设备通过BLE连接传输音频数据、视频数据或者通话数据。
  13. 根据权利要求12所述的方法,其特征在于,所述配件设备向所述电子设备发送 指示信息,包括:
    所述配件设备在和所述电子设备建立BR/EDR连接下的ACL后,所述配件设备在所述ACL上向所述电子设备发送所述指示信息。
  14. 根据权利要求12或13所述的方法,其特征在于,所述配件设备为蓝牙耳机,所述蓝牙耳机包括第一耳和第二耳,所述第一耳的媒体接入控制MAC地址为第一地址,所述第二耳的MAC地址为第二地址,所述第二地址为主耳和所述电子设备建立连接时使用的MAC地址,所述配件设备和电子设备建立BR/EDR连接,包括:
    当所述第一耳为所述主耳时,所述第一耳通过所述第二地址和所述电子设备建立BR/EDR连接;
    当所述主耳从所述第一耳切换至所述第二耳时,所述第二耳通过所述第二地址和所述电子设备建立BR/EDR连接。
  15. 根据权利要求14所述的方法,其特征在于,所述配件设备和所述电子设备建立BLE连接,包括:
    当所述第一耳为主耳时,所述第一耳通过所述第一地址和所述电子设备建立BLE连接,且所述第二耳通过所述第二地址和所述电子设备建立BLE连接;
    当所述主耳从所述第一耳切换至所述第二耳时,所述第一耳通过所述第一地址和所述电子设备建立BLE连接,且所述第二耳通过所述第二地址和所述电子设备建立BLE连接。
  16. 一种电子设备,所述电子设备支持双模连接,所述双模连接包括BR/EDR连接和BLE连接,其特征在于,包括:
    蓝牙芯片;
    一个或多个处理器;
    一个或多个存储器;
    所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    和配件设备建立BR/EDR连接;
    在确定所述配件设备支持所述双模连接时,断开与所述配件设备的BR/EDR连接,并和所述配件设备建立BLE连接;
    和所述配件设备通过BLE连接传输音频数据、视频数据或者通话数据。
  17. 根据权利要求16所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    在断开与所述配件设备的BR/EDR连接之前,通过和所述配件设备建立的BR/EDR连接中的ACL,向所述配件设备发送查询请求信息,所述查询请求信息用于查询所述配件设备是否支持所述双模连接;
    接收所述配件设备发送的查询响应信息,所述查询响应信息用于指示所述配件设备支持所述双模连接。
  18. 根据权利要求17所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    向所述配件设备发送echo消息,所述echo消息中携带所述查询请求信息。
  19. 根据权利要求16至18中任一项所述的电子设备,其特征在于,所述配件设备为 蓝牙耳机,所述蓝牙耳机包括第一耳和第二耳,所述第一耳的媒体接入控制MAC地址为第一地址,所述第二耳的MAC地址为第二地址,所述第二地址为主耳和所述电子设备建立连接时使用的MAC地址,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    当所述第一耳为所述主耳时,通过所述第二地址和所述第一耳建立BR/EDR连接;
    当所述主耳从所述第一耳切换至所述第二耳时,通过所述第二地址和所述第二耳建立BR/EDR连接。
  20. 根据权利要求19所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    当所述第一耳为所述主耳时,通过所述第一地址和所述第一耳建立BLE连接,且所述电子设备通过所述第二地址和所述第二耳建立BLE连接;
    当所述主耳从所述第一耳切换至所述第二耳时,通过所述第一地址和所述第一耳建立BLE连接,且所述电子设备通过所述第二地址和所述第二耳建立BLE连接。
  21. 一种配件设备,所述配件设备支持双模连接,所述双模连接包括基本速率/增强数据速率BR/EDR连接和蓝牙低功耗BLE连接,其特征在于,包括:
    蓝牙芯片;
    一个或多个处理器;
    一个或多个存储器;
    所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述配件设备执行以下步骤:
    和电子设备建立BR/EDR连接;
    向所述电子设备发送指示信息,所述指示信息用于指示所述配件设备支持所述双模连接;
    断开与所述电子设备的BR/EDR连接,并和所述电子设备建立BLE连接;
    和所述电子设备通过BLE连接传输音频数据、视频数据或者通话数据。
  22. 根据权利要求21所述的配件设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述配件设备执行以下步骤:
    在和所述电子设备建立BR/EDR连接下的ACL后,所述配件设备在所述ACL上向所述电子设备发送所述指示信息。
  23. 根据权利要求20或21所述的配件设备,其特征在于,所述配件设备为蓝牙耳机,所述蓝牙耳机包括第一耳和第二耳,所述第一耳的媒体接入控制MAC地址为第一地址,所述第二耳的MAC地址为第二地址,所述第二地址为主耳和所述电子设备建立连接时使用的MAC地址,当所述指令被所述一个或多个处理器执行时,使得所述配件设备执行以下步骤:
    当所述第一耳为所述主耳时,控制所述第一耳通过所述第二地址和所述电子设备建立BR/EDR连接;
    当所述主耳从所述第一耳切换至所述第二耳时,控制所述第二耳通过所述第二地址和所述电子设备建立BR/EDR连接。
  24. 根据权利要求23所述的配件设备,其特征在于,当所述指令被所述一个或多个 处理器执行时,使得所述配件设备执行以下步骤:
    当所述第一耳为所述主耳时,控制所述第一耳通过所述第一地址和所述电子设备建立BLE连接,且控制所述第二耳通过所述第二地址和所述电子设备建立BLE连接;
    当所述主耳从所述第一耳切换至所述第二耳时,控制所述第一耳通过所述第一地址和所述电子设备建立BLE连接,且控制所述第二耳通过所述第二地址和所述电子设备建立BLE连接。
  25. 一种芯片系统,其特征在于,所述芯片系统包括至少一个处理器,当程序指令在所述至少一个处理器中执行时,使得如权利要求7-11中任一所述的方法在所述电子设备上的功能得以实现。
  26. 一种芯片系统,其特征在于,所述芯片系统包括至少一个处理器,当程序指令在所述至少一个处理器中执行时,使得如权利要求12-15中任一所述的方法在所述电子设备上的功能得以实现。
  27. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求7-11中任一项所述的蓝牙连接的方法。
  28. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述配件设备执行如权利要求12-15中任一项所述的蓝牙连接的方法。
PCT/CN2020/113585 2019-09-06 2020-09-04 蓝牙连接的方法和电子设备 WO2021043286A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20860850.5A EP4024917B1 (en) 2019-09-06 2020-09-04 Bluetooth connection method and electronic device
US17/640,639 US11825539B2 (en) 2019-09-06 2020-09-04 Bluetooth connection method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910844436.1A CN112469015B (zh) 2019-09-06 2019-09-06 蓝牙连接的方法和电子设备
CN201910844436.1 2019-09-06

Publications (1)

Publication Number Publication Date
WO2021043286A1 true WO2021043286A1 (zh) 2021-03-11

Family

ID=74807288

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/113585 WO2021043286A1 (zh) 2019-09-06 2020-09-04 蓝牙连接的方法和电子设备

Country Status (4)

Country Link
US (1) US11825539B2 (zh)
EP (1) EP4024917B1 (zh)
CN (2) CN114866994A (zh)
WO (1) WO2021043286A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113677039A (zh) * 2021-08-19 2021-11-19 Oppo广东移动通信有限公司 基于蓝牙的设备连接方法、装置、电子设备及存储介质
CN114499587A (zh) * 2021-07-22 2022-05-13 荣耀终端有限公司 音频同步的通信方法、系统及电子设备
CN116033597A (zh) * 2022-08-08 2023-04-28 荣耀终端有限公司 蓝牙连接方法、装置、电子设备及存储介质

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220256627A1 (en) * 2021-02-09 2022-08-11 Realtek Semiconductor Corp. Bluetooth communication system and related computer program product capable of reducing complexity of pairing bluetooth host device with bluetooth device set for user
CN113518334B (zh) * 2021-06-10 2023-06-13 中电海康集团有限公司 一种实现蓝牙信标beacon和app uart双服务的方法
US20230039972A1 (en) * 2021-08-03 2023-02-09 Bose Corporation Methods for improving wireless connections for previously paired devices
CN113676881B (zh) * 2021-08-06 2024-05-07 Oppo广东移动通信有限公司 设备控制方法、装置、电子设备及存储介质
CN115996371A (zh) * 2021-10-20 2023-04-21 Oppo广东移动通信有限公司 蓝牙连接方法、装置、电子设备及存储介质
CN113923641B (zh) * 2021-12-07 2022-05-06 荣耀终端有限公司 一种连接方法及装置
CN117395635A (zh) * 2022-06-30 2024-01-12 Oppo广东移动通信有限公司 音频设备的连接方法、装置、存储介质及设备
CN117479131A (zh) * 2022-07-22 2024-01-30 Oppo广东移动通信有限公司 蓝牙连接方法、装置、电子设备及计算机可读存储介质
CN116761156B (zh) * 2023-08-23 2023-11-14 腾讯科技(深圳)有限公司 音频处理方法、装置和存储介质及电子设备
CN117479344B (zh) * 2023-12-15 2024-05-24 荣耀终端有限公司 一种蓝牙连接方法、电子设备及可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130321209A1 (en) * 2012-05-30 2013-12-05 Nokia Corporation Method, apparatus, and computer program product for high accuracy location determination
CN104467925A (zh) * 2014-12-31 2015-03-25 重庆金瓯科技发展有限责任公司 一种双模蓝牙通信控制方法及其双模蓝牙通信转接装置
CN106131810A (zh) * 2016-06-20 2016-11-16 飞天诚信科技股份有限公司 一种连接蓝牙双模设备的方法及装置
CN106658366A (zh) * 2016-11-30 2017-05-10 建荣半导体(深圳)有限公司 蓝牙工作模式的切换方法、装置及蓝牙芯片、电子设备
CN106658678A (zh) * 2016-10-28 2017-05-10 青岛海信移动通信技术股份有限公司 一种可穿戴设备的蓝牙连接方法及设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8737917B2 (en) * 2009-07-24 2014-05-27 Broadcom Corporation Method and system for a dual-mode bluetooth low energy device
US10548068B2 (en) 2014-07-31 2020-01-28 Lg Electronics Inc. Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
WO2017018604A1 (ko) * 2015-07-26 2017-02-02 엘지전자(주) 블루투스 le(low energy) 기술을 이용하여 대체 통신 수단을 연결하기 위한 방법 및 장치
US9930477B2 (en) * 2015-12-10 2018-03-27 Lg Electronics Inc. Method and apparatus for transmitting and receiving data in wireless communication system
WO2019050556A1 (en) * 2017-09-11 2019-03-14 Intel IP Corporation BLUETOOTH COMMUNICATIONS IN MIXED MODE

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130321209A1 (en) * 2012-05-30 2013-12-05 Nokia Corporation Method, apparatus, and computer program product for high accuracy location determination
CN104467925A (zh) * 2014-12-31 2015-03-25 重庆金瓯科技发展有限责任公司 一种双模蓝牙通信控制方法及其双模蓝牙通信转接装置
CN106131810A (zh) * 2016-06-20 2016-11-16 飞天诚信科技股份有限公司 一种连接蓝牙双模设备的方法及装置
CN106658678A (zh) * 2016-10-28 2017-05-10 青岛海信移动通信技术股份有限公司 一种可穿戴设备的蓝牙连接方法及设备
CN106658366A (zh) * 2016-11-30 2017-05-10 建荣半导体(深圳)有限公司 蓝牙工作模式的切换方法、装置及蓝牙芯片、电子设备

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114499587A (zh) * 2021-07-22 2022-05-13 荣耀终端有限公司 音频同步的通信方法、系统及电子设备
CN114499587B (zh) * 2021-07-22 2022-12-23 荣耀终端有限公司 音频同步的通信方法、系统、无线耳机、终端及存储介质
CN113677039A (zh) * 2021-08-19 2021-11-19 Oppo广东移动通信有限公司 基于蓝牙的设备连接方法、装置、电子设备及存储介质
CN113677039B (zh) * 2021-08-19 2024-05-03 Oppo广东移动通信有限公司 基于蓝牙的设备连接方法、装置、电子设备及存储介质
CN116033597A (zh) * 2022-08-08 2023-04-28 荣耀终端有限公司 蓝牙连接方法、装置、电子设备及存储介质
CN116033597B (zh) * 2022-08-08 2023-12-12 荣耀终端有限公司 蓝牙连接方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
US11825539B2 (en) 2023-11-21
CN112469015A (zh) 2021-03-09
EP4024917A4 (en) 2022-10-26
EP4024917A1 (en) 2022-07-06
CN112469015B (zh) 2022-04-12
CN114866994A (zh) 2022-08-05
EP4024917B1 (en) 2023-11-08
US20220408505A1 (en) 2022-12-22

Similar Documents

Publication Publication Date Title
WO2021043286A1 (zh) 蓝牙连接的方法和电子设备
WO2021027616A1 (zh) 一种通过遥控器实现一碰投屏的终端设备、方法以及系统
WO2020211733A1 (zh) 一种蓝牙连接方法、设备及系统
WO2021164556A1 (zh) 无线耳机盒及系统
WO2021036835A1 (zh) 一种蓝牙搜索方法、系统及相关装置
WO2020107485A1 (zh) 一种蓝牙连接方法及设备
WO2020133183A1 (zh) 音频数据的同步方法及设备
CN112449332B (zh) 一种蓝牙连接的方法和电子设备
WO2021082829A1 (zh) 蓝牙连接方法及相关装置
WO2021023046A1 (zh) 一种电子设备控制方法及一种电子设备
WO2022100610A1 (zh) 投屏方法、装置、电子设备及计算机可读存储介质
WO2021043219A1 (zh) 一种蓝牙回连方法及相关装置
WO2021037146A1 (zh) 一种移动终端的文件共享方法及设备
WO2021017909A1 (zh) 一种通过nfc标签实现功能的方法、电子设备及系统
WO2021043198A1 (zh) 一种蓝牙配对方法及相关装置
CN113169915A (zh) 无线音频系统、音频通讯方法及设备
WO2022042265A1 (zh) 通信方法、终端设备及存储介质
WO2021027623A1 (zh) 一种设备能力发现方法及p2p设备
CN113676879A (zh) 一种分享信息的方法、电子设备和系统
WO2021227942A1 (zh) 一种分享信息的方法、电子设备和系统
CN113676339A (zh) 组播方法、装置、终端设备及计算机可读存储介质
WO2021043250A1 (zh) 一种蓝牙通信方法及相关装置
WO2021218544A1 (zh) 一种提供无线上网的系统、方法及电子设备
WO2022135144A1 (zh) 自适应显示方法、电子设备及存储介质
WO2021037208A1 (zh) 一种蓝牙连接的方法和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20860850

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2020860850

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2020860850

Country of ref document: EP

Effective date: 20220331