WO2020107485A1 - 一种蓝牙连接方法及设备 - Google Patents

一种蓝牙连接方法及设备 Download PDF

Info

Publication number
WO2020107485A1
WO2020107485A1 PCT/CN2018/118783 CN2018118783W WO2020107485A1 WO 2020107485 A1 WO2020107485 A1 WO 2020107485A1 CN 2018118783 W CN2018118783 W CN 2018118783W WO 2020107485 A1 WO2020107485 A1 WO 2020107485A1
Authority
WO
WIPO (PCT)
Prior art keywords
earplug
wireless
mobile phone
electronic device
earbud
Prior art date
Application number
PCT/CN2018/118783
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 EP18941156.4A priority Critical patent/EP3879845A4/en
Priority to US17/298,289 priority patent/US11653398B2/en
Priority to PCT/CN2018/118783 priority patent/WO2020107485A1/zh
Priority to CN201880098318.4A priority patent/CN112789867B/zh
Publication of WO2020107485A1 publication Critical patent/WO2020107485A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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/1016Earpieces of the intra-aural type
    • 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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • H04W12/55Secure pairing of devices involving three or more devices, e.g. group pairing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • 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/1025Accumulators or arrangements for charging
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication

Definitions

  • the embodiments of the present application relate to the field of electronic technology, and in particular, to a Bluetooth connection method and device.
  • true wireless stereo (TWS) earphones include two earplugs, and no wire connection is required between the two earplugs, which is more convenient for users to use.
  • Embodiments of the present application provide a Bluetooth connection method and device, which can establish a Bluetooth connection between an electronic device and each TWS earbud, so as to perform data interaction based on the Bluetooth connection.
  • the technical solution of the present application provides a Bluetooth connection method applied to an electronic device and a pair of wireless earbuds.
  • the pair of wireless earbuds includes a first wireless earbud and a second wireless earbud.
  • the method includes: A first Bluetooth connection between the first wireless earbuds, and a wireless connection between the first wireless earbuds and the second wireless earbuds.
  • the electronic device establishes a second Bluetooth connection with the second wireless earplug through the first wireless earplug.
  • the electronic device maintains the first Bluetooth connection and the second Bluetooth connection at the same time.
  • the electronic device can first establish a Bluetooth connection with the first wireless earbuds, and use the first wireless earbuds' media function to achieve dual-channel connection connection).
  • the method further includes: the electronic device sends audio data to the first wireless earbud through the first Bluetooth connection; the electronic device sends audio data to the second wireless earbud through the second Bluetooth connection.
  • the electronic device can exchange audio signals through the Bluetooth connection path between the first wireless earbud and the second wireless earbud, respectively.
  • the method before the electronic device establishes the second Bluetooth connection with the second wireless earbud, the method further includes: the electronic device receives an instruction sent by the first wireless earbud and the second wireless earbud and the first Information for pairing wireless earbuds.
  • the electronic device can perform Bluetooth connection with the second wireless earplug.
  • the method before the electronic device establishes the second Bluetooth connection with the second wireless earbud, the method further includes: the electronic device receives the first identification information sent by the first wireless earbud, and the first identification information Instruct the first wireless earbud and the second wireless earbud of a pair of wireless earbuds to support Bluetooth connection with the electronic device at the same time.
  • the electronic device sends second identification information to the first wireless earbud, and the second identification information indicates that the electronic device supports two wireless earbuds in a pair of wireless earbuds while maintaining a Bluetooth connection.
  • the dual-sending connection process can be performed.
  • the electronic device sends the second identification information to the first wireless earbud, including: the electronic device displays the identification of the first wireless earbud; after detecting the user's operation on the identification, the electronic device sends The wireless earbud sends second identification information.
  • the electronic device After the user operates the logo, it can indicate that the user wants to use the wireless earbud, and wants to connect the electronic device and the wireless earbud. At this time, the electronic device notifies the first wireless earbud that the electronic device supports dual-sending, and the first wireless earbud only indicates the first The two wireless earbuds can be connected to the electronic device so that the subsequent dual-sender connection process can be performed.
  • the first identification information and the second identification information may be a universally unique identifier (UUID).
  • UUID universally unique identifier
  • the electronic device sends second identification information to the first wireless earbud by using a Bluetooth Low Energy (BLE) message.
  • BLE Bluetooth Low Energy
  • the BLE message may be a BLE unconnectable broadcast message.
  • the technical solution of the present application also provides a Bluetooth connection method applied to a pair of wireless earbuds and an electronic device.
  • the pair of wireless earbuds includes a first wireless earbud and a second wireless earbud.
  • the method includes: a first wireless earbud Establish a wireless connection with the second wireless earbud.
  • the first wireless earbud is paired with the second wireless earbud.
  • the first wireless earbud establishes a first Bluetooth connection with the electronic device.
  • the first wireless earplug sends information of the second wireless earplug to the electronic device, and sends information of the electronic device to the second wireless earplug, so that the second wireless earplug establishes a second Bluetooth connection with the electronic device.
  • the second wireless earbud establishes a Bluetooth connection with the electronic device.
  • the first Bluetooth connection and the second Bluetooth connection are maintained simultaneously.
  • the first wireless earbud can first establish a Bluetooth connection with the electronic device, and then indicate the information of the electronic device and the second wireless earbud to the other party, so that The second wireless earbud and the electronic device establish a Bluetooth connection, thereby realizing a dual-channel connection (or dual-sender connection).
  • the method before the information of the electronic device sent from the first wireless earbud to the second wireless earbud, the method further includes: the first wireless earbud sends first identification information to the electronic device, the first identification information indicates The first wireless earbud and the second wireless earbud of a pair of wireless earbuds support simultaneous Bluetooth connection with the electronic device; the first wireless earbud receives second identification information sent by the electronic device, and the second identification information instructs the electronic device to support The two wireless earbuds in the system maintain Bluetooth connection at the same time.
  • the first wireless earbud and the electronic device can first indicate to each other that they support dual-sending, and then perform the dual-sender connection process.
  • the first wireless earbud sends the first identification information to the electronic device, including: the first wireless earbud connects the broadcast message via Bluetooth low energy BLE or Bluetooth BLE connectable broadcast message, Send the first identification information to the electronic device.
  • the method further includes: The second wireless earbud enters the unconnectable and undiscoverable state.
  • the second wireless earplug that enters the connectable and discoverable state can establish a second Bluetooth connection with the electronic device.
  • the method further includes: the first wireless earbud and the second wireless earbud disconnect the wireless connection.
  • the electronic device can communicate with the first wireless earbud and the second wireless earbud through the first Bluetooth connection and the second Bluetooth connection, respectively, and the wireless connection between the first wireless earbud and the second wireless earbud may not be required , So the wireless connection can be disconnected.
  • the technical solution of the present application provides a Bluetooth connection device, which is included in an electronic device, and the device has a function of implementing the behavior of the electronic device in any of the methods of the first aspect and possible implementation manners .
  • the function can be realized by hardware, and can also be realized by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, turning on a module or unit, establishing a module or unit, interacting with a module or unit, etc.
  • the technical solution of the present application provides a Bluetooth connection device, which is included in a first wireless earplug, and the device has the first wireless in any method of implementing the second aspect and the possible implementation manners of the second aspect
  • the function of earplug behavior can be realized by hardware, and can also be realized by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, an earplug connection module or unit, an electronic device connection module or unit, a dual-engine connection module or unit, etc.
  • the technical solution of the present application provides a Bluetooth connection device, which is included in a second wireless earplug, and the device has the second wireless in any method of implementing the second aspect and the possible implementation manners of the second aspect
  • the function of earplug behavior can be realized by hardware, and can also be realized by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, building modules or units, processing modules or units, etc.
  • the technical solution of the present application provides a Bluetooth connection device, the device is included in a wireless device, the wireless device includes a first wireless earplug and a second wireless earplug, the device has the above-mentioned second aspect and second aspect
  • the function of wireless device behavior in any method of possible implementation can be realized by hardware, and can also be realized by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the above functions.
  • the wireless device may be a TWS headset.
  • the technical solution of the present application provides a pair of wireless earplugs.
  • the pair of wireless earplugs may include the first wireless earplug and the second wireless earplug in any possible implementation manner of any one of the above aspects.
  • the technical solution of the present application provides a system, which may include the electronic device, the first wireless earplug, and the second wireless earplug in any possible implementation manner of any one of the above aspects.
  • the electronic device and the first wireless earbud can pass the Bluetooth low energy BLE message and the basic rate (BR)/enhanced rate at the same time (enhanced data, EDR) message for discovery.
  • the electronic device After discovering the first wireless earplug, the electronic device may display an identification.
  • the electronic device After the electronic device detects the user's operation on the identifier, if the electronic device supports dual-sending, the electronic device and the second wireless earbud may establish a Bluetooth connection through the first wireless earbud, thereby achieving the dual-sender connection. If the electronic device does not support dual sending, it can perform connection processes such as monitoring, forwarding, and NFMI.
  • the technical solution of the present application provides an electronic device, including one or more processors and one or more memories.
  • the one or more memories are coupled to one or more processors.
  • the one or more memories are used to store computer program code.
  • the computer program codes include computer instructions.
  • the one or more processors execute the computer instructions, the electronic device is executed.
  • the Bluetooth connection method in any possible implementation of the first aspect or the second aspect above.
  • the technical solution of the present application provides a computer storage medium, including computer instructions, which, when the computer instructions run on an electronic device, cause the electronic device to perform any of the possible implementations of the first aspect or the second aspect Bluetooth connection method.
  • the technical solution of the present application provides a computer program product that, when the computer program product runs on a computer, causes an electronic device to perform the Bluetooth connection method in any possible implementation of the first aspect or the second aspect .
  • FIG. 1 is a schematic diagram of a system provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application.
  • FIG. 3A is a schematic structural diagram of an earplug provided by an embodiment of the present application.
  • 3B is a schematic diagram of an earplug and a headphone case provided by an embodiment of the present application.
  • 3C is a schematic diagram of an earplug provided by an embodiment of the present application.
  • 4A is a schematic diagram of a connection method provided by an embodiment of the present application.
  • 4B is a schematic diagram of another connection method provided by an embodiment of the present application.
  • 4C is a schematic diagram of another connection method provided by an embodiment of the present application.
  • 4D is a schematic diagram of another connection method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 8A is a schematic diagram of another interface provided by an embodiment of the present application.
  • FIG. 8B is a schematic diagram of another interface provided by an embodiment of the present application.
  • 10A is a flowchart of another Bluetooth connection method provided by an embodiment of this application.
  • 10B is a flowchart of another Bluetooth connection method provided by an embodiment of this application.
  • FIG. 11 is a schematic diagram of another interface provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another interface provided by an embodiment of the present application.
  • 15 is a schematic diagram of a scenario provided by an embodiment of this application.
  • FIG. 18 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of a first wireless earplug according to an embodiment of the present application.
  • 20 is a schematic structural diagram of a second wireless earplug according to an embodiment of the present application.
  • An embodiment of the present application provides a pairing connection method.
  • the method can be applied to a system composed of an electronic device 01 and at least one external device 02.
  • the electronic device 01 and the external device 02 are connected wirelessly.
  • the wireless method may be Bluetooth (bluetooth, BT), wireless fidelity (wireless fidelity, Wi-Fi) network, global navigation satellite system (global navigation satellite system (GNSS), frequency modulation (frequency modulation (FM), close range Wireless communication technology (near field communication, NFC), infrared technology (infrared, IR) and other connections.
  • the electronic device 01 may be a mobile phone, a media player (such as MP3, MP4, etc.), a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a personal digital assistant (personal digital assistant, PDA) , TV, smart watch and other equipment.
  • the external device 02 may be a wireless earphone, a wireless speaker, a wireless bracelet, a wireless car, a wireless smart glasses, an augmented reality (AR) ⁇ virtual reality (VR) device, etc.
  • AR augmented reality
  • VR virtual reality
  • the wireless earphone may be a head-mounted, earplug or other portable listening device.
  • the external device 02 may include a paired first body 021 and a second body 022.
  • the first body 021 and the second body 022 cooperate with each other and work together.
  • the external device 02 may be an earplug TWS earphone.
  • the TWS earphone may include a paired left earplug (usually marked with "L") and right earplug (usually marked with "R"), and the left earplug and right earplug are used for stereo playback
  • the left earplug can be used to play the left channel signal of audio data
  • the right earplug can be used to synchronously play the right channel signal of the audio data.
  • the external device 02 may be a wireless speaker.
  • the wireless speaker may include a pair of left channel speakers and a right channel speaker.
  • the left channel speaker may be used to play the left channel signal of audio data
  • the right channel speaker may be used. To play the right channel signal of the audio data synchronously.
  • the electronic device 01 is a mobile phone as an example
  • the external device 02 is an earplug TWS headset as an example
  • the first body 021 and the second body 022 are a right and left earplug of a TWS headset as an example Explain. It can be understood that the electronic device 01 and the external device 02 in the system may also be other devices, which are not limited in this embodiment of the present application.
  • FIG. 2 shows a schematic structural diagram of the mobile phone 100.
  • the mobile phone 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, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, key 190, motor 191, indicator 192, camera 193, display screen 194, and user Identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro 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 ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100.
  • the mobile phone 100 may include more or fewer components than shown, or combine some components, or split some 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, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), and an image signal processor (image)signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • application processor application processor
  • AP application processor
  • modem processor graphics processor
  • GPU graphics processor
  • ISP image signal processor
  • controller memory
  • video codec video codec
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile phone 100.
  • the controller can generate the operation control signal according to the instruction operation code and the timing signal to complete the control of fetching instructions and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Avoid repeated access, reduce the waiting time of the processor 110, thus improving the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • Interfaces can include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit, sound, I2S) interface, pulse code modulation (pulse code modulation (PCM) interface, universal asynchronous transceiver (universal asynchronous) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and And/or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may respectively couple the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the mobile phone 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to achieve functions such as answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to realize the function of answering the phone call through the Bluetooth headset. Both I2S interface and PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193.
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI) and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the mobile phone 100.
  • the processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the mobile phone 100.
  • the GPIO interface can be configured via software.
  • the GPIO interface can be configured as a control signal or a data signal.
  • the GPIO interface may be used to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and an external device. It can also be used to connect headphones and play audio through the headphones.
  • the interface can also be used to connect other mobile phones, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic description, and does not constitute a limitation on the structure of the mobile phone 100.
  • the mobile phone 100 may also use different interface connection methods in the foregoing embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may 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 wireless charging input through the wireless charging coil of the mobile phone 100. While the charging management module 140 charges the battery 142, it can also supply power to the mobile phone 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, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be disposed in the processor 110.
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction 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 mobile phone 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 from the antenna 1 and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor and convert it to electromagnetic wave radiation through 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 may be provided in the same device as at least part of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110, and may be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area network (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellite systems that are applied to the mobile phone 100 (global navigation system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • 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 electromagnetic wave signals, and transmits the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it to electromagnetic wave radiation through the antenna 2.
  • the mobile phone 100 may use the wireless communication module 160 to establish a wireless connection with an external device through a wireless communication technology (such as Bluetooth). Based on the established wireless connection, the mobile phone 100 can send audio data to an external device and can also receive audio data from the external device.
  • a wireless communication technology such as Bluetooth
  • the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
  • Wireless communication technology may include global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband code division Multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long-term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM , And/or IR technology, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband code division Multiple access
  • WCDMA wideband code division multiple access
  • TD-SCDMA time division code division multiple access
  • long-term evolution long term evolution
  • LTE long term evolution
  • GNSS can include global positioning system (GPS), global navigation satellite system (global navigation system (GLONASS), Beidou satellite navigation system (beidou navigation, satellite system, BDS), quasi-zenith satellite system (quasi-zenith satellite system (QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou satellite navigation system beidou navigation, satellite system, BDS
  • quasi-zenith satellite system quasi-zenith satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the mobile phone 100 realizes a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that 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 may use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (active-matrix organic light) emitting diode, AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the mobile phone 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP processes the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, which is converted into a visible image.
  • 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. In some embodiments, the ISP may be set in the camera 193.
  • the camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the mobile phone 100 is selected at a frequency point, the digital signal processor is used to perform Fourier transform on the energy at the frequency point.
  • Video codec is used to compress or decompress digital video.
  • the mobile phone 100 may support one or more video codecs. In this way, the mobile phone 100 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • moving picture experts group moving picture experts, MPEG
  • MPEG2 moving picture experts, MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent recognition of the mobile phone 100, such as image recognition, face recognition, voice recognition, and text understanding.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 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 computer executable program code, and the executable program code includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the mobile phone 100.
  • the processor 110 may establish a wireless pairing connection with two main bodies of an external device through the wireless communication module 160 by executing instructions stored in the internal memory 121, and perform Short-distance data exchange to realize functions such as calling and playing music through external devices.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.).
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100 and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (Universal Flash Storage, UFS), and so on.
  • the mobile phone 100 may use wireless communication technology (such as Bluetooth) to establish a wireless connection between the two main bodies of the external device. For example, the mobile phone 100 establishes a wireless connection with the first body, and then establishes a wireless connection between the mobile phone 100 and the second body through the first body. After the wireless connection is established, the mobile phone 100 can store the Bluetooth address of the external device in the internal memory 121.
  • wireless communication technology such as Bluetooth
  • the external device is a device including two main bodies, such as a TWS headset
  • the left and right earbuds of the TWS headset have respective Bluetooth addresses
  • the mobile phone 100 may store the Bluetooth addresses of the left and right earbuds of the TWS headset in the internal In the memory 121, the left and right earplugs of the TWS earphone are used as a pair of devices.
  • the mobile phone 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the mobile phone 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also known as "handset" is used to convert audio electrical signals into sound signals.
  • the voice can be received by holding the receiver 170B close to the ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a person's mouth, and input a sound signal to the microphone 170C.
  • the mobile phone 100 may be provided with at least one microphone 170C. In other embodiments, the mobile phone 100 may be provided with two microphones 170C. In addition to collecting sound signals, it may also achieve a noise reduction function. In other embodiments, the mobile phone 100 may also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the headset interface 170D is used to connect wired headsets.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal (OMTP) standard interface, and the American Telecommunications Industry Association (cellular telecommunication industry association of the United States, CTIA) standard interface.
  • OMTP open mobile terminal
  • CTIA American Telecommunications Industry Association
  • the TWS headset when the mobile phone 100 establishes a wireless connection with an external device such as a TWS headset, the TWS headset can be used as an audio input/output device of the mobile phone 100.
  • the audio module 170 may receive the audio electrical signal transmitted by the wireless communication module 160 to realize functions such as answering a phone call and playing music through a TWS headset.
  • the TWS headset can collect the user's voice signal, convert it into an audio electrical signal, and send it to the wireless communication module 160 of the mobile phone 100.
  • the wireless communication module 160 transmits the audio electrical signal to the audio module 170.
  • the audio module 170 can convert the received audio electrical signal into a digital audio signal, encode it, and pass it to the mobile communication module 150.
  • the mobile communication module 150 transmits to the call peer device to realize the call.
  • the application processor may transmit the audio electrical signal corresponding to the music played by the media player to the audio module 170.
  • the audio electrical signal is transmitted to the wireless communication module 160 by the audio module 170.
  • the wireless communication module 160 may send the audio electrical signal to the TWS headset, so that the TWS headset converts the audio electrical signal into a sound signal and plays it.
  • 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 be at least two parallel plates with conductive materials. When force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The mobile phone 100 determines the strength of the pressure based on the change in capacitance. When a touch operation is applied to the display screen 194, the mobile phone 100 detects the intensity of the touch operation according to the pressure sensor 180A. The mobile phone 100 may calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on 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 mobile phone 100.
  • the angular velocity of the mobile phone 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the mobile phone 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shaking of the mobile phone 100 through 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 mobile phone 100 calculates the altitude using 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 mobile phone 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the mobile phone 100 when the mobile phone 100 is a clamshell machine, the mobile phone 100 can detect the opening and closing of the clamshell 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 acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of a mobile phone, and be used in horizontal and vertical screen switching, pedometer and other applications.
  • the distance sensor 180F is used to measure the distance.
  • the mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting scenes, the mobile phone 100 may use the distance sensor 180F to measure 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 mobile phone 100 emits infrared light outward through a light emitting diode.
  • the mobile phone 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 mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 can determine that there is no object near the mobile phone 100.
  • the mobile phone 100 can use the proximity light sensor 180G to detect that the user is holding the mobile phone 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, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense the brightness of ambient light.
  • the mobile phone 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • 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 mobile phone 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile phone 100 can use the collected fingerprint characteristics to unlock a fingerprint, access an application lock, take a photo with a fingerprint, and answer a call with a fingerprint.
  • the temperature sensor 180J is used to detect the temperature.
  • the mobile phone 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 performs to reduce the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature. In some other embodiments, when the temperature is below another threshold, the mobile phone 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K may be provided on the display screen 194, and the touch sensor 180K and the display screen 194 constitute a touch screen, also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation 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 may be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the mobile phone 100, which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive a blood pressure beating signal.
  • the bone conduction sensor 180M may also be provided in the earphone and combined into a bone conduction earphone.
  • the audio module 170 may parse out the voice signal based on the vibration signal of the vibrating bone block of the voice part acquired by the bone conduction sensor 180M to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the key 190 includes a power-on key, a volume key, and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the mobile phone 100 can receive key input and generate key signal input related to user settings and function control of the mobile phone 100.
  • the motor 191 may generate a vibration prompt.
  • the motor 191 can be used for vibration notification of incoming calls and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
  • Touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate a charging state, a power change, and may also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the mobile phone 100.
  • the mobile phone 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 can also be compatible with external memory cards.
  • the mobile phone 100 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the mobile phone 100 uses eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
  • FIG. 3A shows a structural diagram of one of the main bodies of a TWS earphone, namely, an earplug (left earplug or right earplug).
  • the earplug of the TWS earphone may include: a processor 301, a memory 302, a sensor 303, a wireless communication module 304, a receiver 305, a microphone 306, and a power supply 307.
  • the memory 302 may be used to store application code, such as an application code for establishing a wireless connection with another earbud of the TWS earphone and pairing the earbud with the electronic device 01.
  • the processor 301 may execute the above application program code to implement the function of the earplug of the TWS earphone in the embodiment of the present application. For example, the wireless pairing connection between each earplug of the TWS earphone and the electronic device 01 is realized.
  • the memory 302 may also store a Bluetooth address for uniquely identifying the earbud, and a Bluetooth address of another earbud where the TWS headset is stored.
  • the memory 302 may also store the pairing history of the electronic device 01 that has successfully paired with the earbud before.
  • the pairing history may include the Bluetooth address of the electronic device 01 that has successfully paired with the earbud. Based on the pairing history, the earplug can automatically connect back to the paired electronic device 01.
  • the aforementioned Bluetooth address may be a media access control (media access control, MAC) address.
  • the sensor 303 may be a distance sensor or a proximity light sensor.
  • the earplug can determine whether the earphone is worn by the user through the sensor 303.
  • the earplug may use a proximity light sensor to detect whether there is an object near the earplug, thereby determining whether the earplug is worn by the user.
  • the earplug may open the receiver 305.
  • the earplug may also include a bone conduction sensor, combined with a bone conduction earphone. Using the bone conduction sensor, the earplug can obtain the vibration signal of the vibrating bone mass of the voice part, analyze the voice signal, and realize the voice function.
  • the earplug may further include a touch sensor for detecting the user's touch operation.
  • the earplug may further include a fingerprint sensor, which is used to detect a user's fingerprint and identify the user's identity.
  • the earplug may further include an ambient light sensor, which may adaptively adjust some parameters, such as volume, according to the perceived brightness of the ambient light.
  • the wireless communication module 304 is used to support wireless data exchange between the current earplug and another earplug of the TWS earphone and various electronic devices 01.
  • the wireless communication module 304 may be a Bluetooth transceiver.
  • the earplugs of the TWS headset can establish a wireless connection with the electronic device 01 through the Bluetooth transceiver to achieve short-range data exchange between the two.
  • At least one receiver 305 which may also be referred to as an "earpiece”, may be used to convert audio electrical signals into sound signals and play them.
  • the receiver 305 can convert the received audio electrical signal into a sound signal and play it.
  • At least one microphone 306 which may also be referred to as a "microphone” or a “microphone,” is used to convert sound signals into audio electrical signals.
  • the microphone 306 can collect the user's voice signal and convert it into an audio electrical signal during the user's speech (such as talking or sending a voice message) .
  • the above audio electrical signal is the audio data in the embodiment of the present application.
  • the power supply 307 can be used to supply power to various components included in the earplugs of the TWS earphone.
  • the power source 307 may be a battery, such as a rechargeable battery.
  • TWS earphones will be equipped with a headphone box (eg, headphone box 023 shown in FIG. 3B).
  • the earphone box can be used to store the left and right earplugs of TWS earphones.
  • 3A as shown in FIG. 3B, the earphone box 023 can be used to store the left earplug 022 and the right earplug 021 of the TWS earphone.
  • the headset box 023 may be provided with at least one touch control 024, which may be used to trigger the pairing of the TWS headset with the new electronic device 01, or trigger the re-pairing between the two earplugs of the TWS headset, etc. .
  • the earphone box 023 may also be provided with a charging port 025 for charging the earphone box itself. It can be understood that the earphone box 023 may also include other controls, which will not be described here one by one. In addition, the earphone box 023 can also charge the left and right earplugs of the TWS earphone. Correspondingly, in some embodiments, the earplugs of the TWS earphone may further include: an input/output interface 308.
  • the input/output interface 308 may be used to provide any wired connection between the earplug of the TWS earphone and the earphone box (such as the earphone box 023 described above).
  • the input/output interface 308 may be an electrical connector.
  • the earplug of the TWS earphone When the earplug of the TWS earphone is placed in the earphone box, the earplug of the TWS earphone can be electrically connected to the earphone box (such as the input/output interface included in the earphone box) through the electrical connector. After the electrical connection is established, the earphone box can charge the power supply 307 of the earplug of the TWS earphone.
  • the earplugs of the TWS headset can also communicate with the headset box.
  • earplugs of TWS earphones can receive pairing instructions from the earphone box through the electrical connector.
  • the pairing command is used to instruct the earbuds of the TWS headset to turn on the wireless communication module 304, so that the earbuds of the TWS headset can use the corresponding wireless communication protocol (such as Bluetooth) to pair with the electronic device 01.
  • the earplugs of the aforementioned TWS earphones may not include the input/output interface 308.
  • the earplugs can realize charging or data communication functions based on the wireless connection established with the earphone box through the wireless communication module 304 described above.
  • the earphone box may further include a processor, a memory, and other components.
  • the memory can be used to store application program code, and is controlled and executed by the processor of the earphone box to realize the function of the earphone box.
  • the processor of the earphone box can send a pairing command to the earplug of the TWS headset in response to the user's operation of opening the lid by executing the application code stored in the memory.
  • the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the earplugs of the TWS earphone. It may have more or fewer components than shown in FIG. 3A, may combine two or more components, or may have different component configurations.
  • the earplug may further include an indicator light 309 (which can indicate the status of the earplug's power level, etc.), a display screen 310 (which can prompt the user of relevant information), a dust filter (which can be used with the earpiece), a motor, and other components.
  • the various components shown in FIG. 3A may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing or application specific integrated circuits.
  • FIG. 3C provides a schematic structural diagram of an earplug 021, which may include a receiver 305, a microphone 306, an input/output interface 308, an indicator 309, a display screen 310, and a touch key 311 and a proximity light sensor 312.
  • the touch key 311 is used in conjunction with the touch sensor to trigger operations such as pause, play, record, turn on the MIC, and turn off the MIC.
  • the structure of the left and right earplugs of the TWS earphones can be the same.
  • the left and right earplugs of a TWS earphone may include the components shown in FIG. 3A.
  • the structure of the left and right earplugs of the TWS earphone may also be different.
  • one earplug (such as the right earplug) of the TWS earphone may include the components shown in FIG. 3A
  • the other earplug (such as the left earplug) may include other components other than the microphone 306 in FIG. 3A.
  • FIGS. 3A, 3B, and 3C are only exemplary descriptions, and are not intended to limit the structure or function of the TWS earphone and earphone box.
  • the following embodiments of the present application will take the mobile phone as the electronic device 01, the TWS headset as the external device 02, and the Bluetooth connection between the mobile phone 01 and the TWS headset 02 as an example to illustrate the pairing connection method provided in the embodiments of the present application.
  • the TWS headset can exchange audio data through a Bluetooth connection with a mobile phone, and the audio data can include media data and voice data.
  • the TWS headset can play media data such as music, recordings, and sounds in video files for users; in phone, audio call, and video call scenarios, it can play the call alert tone, play the voice data of the opposite end of the call, and collect the user's voice Send the data to the mobile phone; in the game scene, you can play background music, game prompts, teammates' voice data, etc., and collect the user's voice data to send to the mobile phone; in the WeChat voice message scene, you can play voice messages and collect user recordings And send the voice data to the mobile phone; in scenarios such as voice assistants, the user's voice data can be collected and sent to the mobile phone.
  • the Bluetooth connection solutions between the TWS headset and the mobile phone mainly include a monitoring solution, a forwarding solution, and a near field magnetic induction (NFMI) solution.
  • NFMI near field magnetic induction
  • the TWS headset 400 may include a main earbud 401 and a secondary earbud 402, and the mobile phone 403 establishes a Bluetooth connection with the main earbud 401 to complete the interaction of audio data to the main earbud 401, and complete the mobile phone 403 and the TWS headset 400 Triggered business actions (for example, play, pause, switch to the previous song, switch to the next song, etc.); a Bluetooth connection is established between the two earbuds to complete the information synchronization between the two earbuds; the secondary earbud 402 monitors the main earbud The Bluetooth link between 401 and mobile phone 403 acquires audio data.
  • a Bluetooth connection for example, play, pause, switch to the previous song, switch to the next song, etc.
  • the TWS headset 400 may include a main earbud 401 and a secondary earbud 402, and a Bluetooth connection is established between the mobile phone 403 and the main earbud 401 to complete the interaction of audio data to the main earbud 401, and complete the mobile phone 403 and TWS Business actions triggered by the headset 400; a Bluetooth connection is established between the dual earbuds to complete information synchronization between the dual earbuds; the primary earbud 401 forwards audio data to the secondary earbuds 402 through the Bluetooth link with the secondary earbuds 402.
  • the TWS earphone 400 may include a main earbud 401 and a secondary earbud 402.
  • a Bluetooth connection is established between the mobile phone 403 and the main earbud 401 to complete the interaction of audio data to the main earbud 401, and complete the mobile phone 403 and TWS
  • the business action triggered by the headset 400 an NFMI connection is established between the pair of earplugs to complete information synchronization between the pair of earplugs; the main earplug 401 forwards audio data to the secondary earplug 402 through the NFMI link with the secondary earplug 402.
  • the above monitoring solution, forwarding solution and NFMI solution only establish a pairing connection between the mobile phone and one TWS earbud.
  • the mobile phone only exchanges audio data with the TWS headset through the connection with the one earbud, so these connection schemes can also be called single Hair development program.
  • the mobile phone can establish a Bluetooth connection with each TWS earplug in the paired TWS earplug, and maintain two Bluetooth connections at the same time, thereby connecting with each TWS earplug Respectively interact audio data, business control data and synchronous data, etc., to achieve operations such as audio data playback and business action control, so it can be called a dual connection scheme or a dual transmission scheme.
  • the wireless connection between the two TWS earbuds can be maintained or the wireless connection can be disconnected.
  • Two TWS earplugs can receive the same audio data, and play the left channel audio data or the right channel audio data in the audio data according to whether they belong to the left earplug or the right earplug. Or the mobile phone can separately send left channel audio data to the left earplug and right channel audio data to the right earplug, so that the two earplugs play audio data of different channels.
  • the TWS earphone includes a first earplug and a second earplug.
  • the mobile phone can first establish a Bluetooth pairing connection with the first earbud, and then establish a Bluetooth pairing connection with the mobile phone and the second earbud, so as to establish a Bluetooth connection between the mobile phone and each TWS earbud, to achieve a dual-fire connection .
  • the two TWS earbuds cooperate with each other and work together to realize the simultaneous playback of the left channel signal and the right channel signal of the same audio data.
  • the link between the mobile phone and each TWS earbud can occupy the 2.4GHZ frequency band, respectively, and the two earbuds do not need to share the 2.4GHZ frequency band, so the transmission bandwidth of the TWS earphone is large.
  • each earplug can reply to the retransmission, confirmation and other messages in time through the link between each earphone and the mobile phone, so it can respond as soon as possible, the packet loss rate is small, the anti-interference is strong, and the sound quality of the audio data is good.
  • the link problem between the mobile phone and one TWS earplug (such as poor channel quality, broken link, etc.) will not affect the other TWS earplug, and the data can still be transmitted normally between the mobile phone and the other TWS earplug. Will cause interruption of data transmission.
  • the two earplugs of the TWS headset can directly receive the data sent by the mobile phone without forwarding it to other solutions.
  • a wireless connection can also be established between the first earplug and the second earplug of the TWS, so that after the mobile phone establishes a Bluetooth pairing connection with the first earplug, the mobile phone and the second earplug can interact through the first earplug as a media device
  • the Bluetooth address and other information of the mobile phone or the second earplug, and then based on the Bluetooth address obtained through interaction, a Bluetooth pairing connection between the mobile phone and the second earplug can be established to achieve a dual-sender connection.
  • the Bluetooth address is used to uniquely identify a Bluetooth device.
  • the Bluetooth address may be a MAC address or a serial number.
  • the Bluetooth address is used as the MAC address as an example for description.
  • the two TWS earbuds can be paired and connected; after that, the mobile phone is paired with the first earbud in the TWS headset; subsequently, the mobile phone and the second earbud
  • the MAC address of the mobile phone or the second earplug can be exchanged between the first earplug, and then the mobile phone and the second earplug can establish a pairing connection between the mobile phone and the second earplug according to the MAC address obtained by the interaction.
  • the mobile phone when the user uses the TWS headset, the mobile phone can first establish a pairing connection with the first earbud in the TWS headset; then, the pairing connection is made between the two TWS earbuds; subsequently, between the mobile phone and the second earbud
  • the MAC address of the mobile phone or the second earplug can be exchanged through the first earplug, and then the mobile phone or the second earplug can establish a pairing connection between the mobile phone and the second earplug according to the MAC address obtained by the interaction.
  • the mobile phone establishes a paired connection with the first earplug in the TWS headset and exchanges audio data, and the first earplug is in the mono-ear mode.
  • the first earbud and the second earbud are paired and connected; then, the mobile phone and the second earbud can exchange the MAC address of the mobile phone or the second earbud through the first earbud.
  • the mobile phone and the second earplug can establish a pairing connection between the mobile phone and the second earplug according to the MAC address obtained through interaction.
  • the first earplug disconnects the Bluetooth connection with the mobile phone, and then re-establishes the dual-socket connection between the mobile phone and the TWS headset.
  • the dual-feed connection method may include:
  • the mobile phone turns on the Bluetooth function.
  • the user can turn on the Bluetooth function on the mobile phone.
  • a wireless pairing connection is established between the first earplug and the second earplug in the TWS earphone.
  • the first earplug and the second earplug are placed in the earphone box, when the earphone box is opened, or after a certain earplug is removed from the earphone box, or the user touches (for example, tap, click (Or long press, etc.)
  • Bluetooth pairing connection can be made between the first earbud and the second earbud via BLE or BR/EDR.
  • BLE Bluetooth pairing connection
  • the two earbuds can discover each other through BLE broadcast, and establish a Bluetooth pairing connection through BLE connectable broadcast message.
  • the two earplugs can be discovered through page scanning (page scanning) or inquiry scanning (inquiry scanning), and can be established through messages such as page (page) and page response (page response).
  • Bluetooth pairing connection The specific process of using these two methods to perform Bluetooth pairing connection can refer to the existing technology, which will not be repeated here.
  • the first earplug and the second earplug have the MAC addresses of each other.
  • the first earplug and the second earplug can be stored according to The other party’s MAC address is paged to establish a Bluetooth connection.
  • the first indicator light on the earphone box lights up. If the first indicator light is off, it means that the first earplug and the second earplug have not been paired.
  • the user can touch the second control on the earphone box to instruct the first earplug and the second earplug to clear the saved MAC address, and then the first earplug and the second earplug can establish a Bluetooth connection between the first earplug and the second earplug by scanning or the like.
  • the first earbud and the second earbud have already been paired. After the first earplug and the second earplug are placed in the earphone box, the first earplug and the second earplug can clear the saved MAC address, thereby releasing the pairing relationship between the two earplugs.
  • the Bluetooth pairing connection can be carried out between scanning and broadcasting.
  • a wireless pairing connection can also be established between the first earplug and the second earplug through other short-range wireless communication technologies such as Wi-Fi, which is not limited in the embodiments of the present application.
  • the first earplug and the second earplug can save the MAC address of each other to indicate that the first earplug and the second earplug are used as a paired pair /A pair of devices; or, the first earplug and the second earplug can correspond to the same identity, to indicate that the first earplug and the second earplug are used as a pair of devices, for example, the left channel signal and the same audio data can be played simultaneously Right channel signal.
  • the identity identifier may be an identifier negotiated by the first earplug and the second earplug (for example, the MAC address of the first earplug); it may also be an identifier set by the mobile phone after the first earplug and the second earplug are connected to the mobile phone, or It is a preset logo, which is not limited in the embodiments of the present application.
  • the first earplug and/or the second earplug may sound to prompt the user that a connection has been established between the TWS earphones.
  • the first earplug and/or the second earplug can prompt the user that the connection between the TWS earphones has been established by the indicator light being on or blinking or the indicator light being a specific color.
  • the first earplug and/or the second earplug display information such as text or icons on the display screen to remind the user that the TWS headset has established a connection.
  • the first earplug and/or the second earplug reminds the user that the TWS headset has established a connection through vibration or other methods.
  • the first earplug and the second earplug After the first earplug and the second earplug establish a wireless pairing connection, the first earplug can enter a connectable and discoverable state so that it can be discovered and connected by a mobile phone; the second earplug can enter a non-connectable and undiscoverable state. In the unconnectable and undiscoverable state, the second earbud will not be detected by other devices via Bluetooth, nor will it establish a Bluetooth connection with other devices.
  • the first earplug enters a pairing state with a mobile phone.
  • the first earbud Before establishing a Bluetooth pairing connection between the TWS headset and the mobile phone, the first earbud needs to enter the pairing state with the mobile phone first.
  • the first earplug may be any earplug in the TWS earphone.
  • the TWS earphone may include a main earplug and a secondary earplug
  • the first earplug may be the main earplug in the TWS earphone
  • the second earplug may be the secondary earplug in the TWS earphone
  • the mobile phone may first establish Bluetooth connection.
  • the main earplug and the auxiliary earplug can be distinguished in various ways.
  • the right earplug of the TWS earphone is the main earplug
  • the left earplug is the secondary earplug.
  • the earplugs taken out of the earphone box are the main earplugs
  • the earplugs taken out of the earphone box are the secondary earplugs.
  • the earplugs that are inserted first are the main earplugs
  • the earplugs that are inserted later are the secondary earplugs.
  • the earplug with the larger power is the main earplug, and the other earplug is the secondary earplug.
  • the main earplug is an earplug indicated by the user's voice or the like.
  • the first earplug may determine that it is the main earplug.
  • the main earplugs when using the TWS earphones by default are the main earplugs when the user last used them.
  • the TWS headset When the user uses the TWS headset to pair with the current mobile phone, if the user uses the TWS headset to establish a pairing relationship with other electronic devices and does not release the pairing relationship with other electronic devices, for example, the TWS headset saves the pairing with other mobile phones History (if the MAC address of another paired mobile phone is saved), the TWS headset can only enter the pairing state after it is unpaired from other electronic devices. Exemplarily, after the TWS earphone detects that the user long presses the pairing key (for example, the touch control 024) on the TWS earphone, the pairing relationship between the TWS earphone and other electronic devices may be released.
  • the pairing key for example, the touch control 024
  • the user may press and hold the pairing key on the earphone box, and the earphone box may trigger the TWS earphone to release the pairing relationship with other electronic devices.
  • the first earplug and the second earplug enter a pairable state.
  • the TWS headset can automatically enter the pairing state.
  • the mobile phone establishes a Bluetooth connection with the first earplug.
  • the first earbud and the mobile phone can confirm whether the two parties support the dual-send mode through one or more interaction processes, and exchange the Bluetooth addresses (such as MAC addresses) of the two parties.
  • the mobile phone can establish a Bluetooth connection with the first earbud according to its own capabilities. For example, if both the mobile phone and the first earbud support the dual-send mode, the following steps in the embodiments of the present application may be performed to establish a dual-send connection between the mobile phone and the TWS headset. If the mobile phone does not support dual-send mode, you can perform the connection process of monitoring, forwarding, NFMI and other solutions.
  • the first earbud and the mobile phone can first confirm that both sides support the dual-send mode, and then establish a Bluetooth connection; or, the first earbud and the mobile phone can also First establish a Bluetooth connection, and then confirm that both parties support dual-send mode.
  • step 503 may specifically include:
  • the first earplug sends a first BLE unconnectable broadcast message, where the first BLE unconnectable broadcast message includes the MAC address of the first earplug and the first dual-send identifier (ie, first identification information), and the first dual-send identifier It is used to indicate that the first earplug supports the dual-socket mode, that is, the first earplug and the second earplug can establish a dual-socket connection with the mobile phone, and the mobile phone can maintain two Bluetooth connections with the two earplugs at the same time.
  • the first BLE unconnectable broadcast message includes the MAC address of the first earplug and the first dual-send identifier (ie, first identification information), and the first dual-send identifier
  • the first earbud can send a pairing broadcast message, such as a BLE unconnectable broadcast message, so as to be discovered by the mobile phone as soon as possible and improve the efficiency of pairing connection with the mobile phone.
  • a pairing broadcast message such as a BLE unconnectable broadcast message
  • the first earplug can discover the mobile phone or be discovered by the mobile phone through a quick discovery solution.
  • a specific frequency band (for example, frequency band 1) can be negotiated between a specific manufacturer's TWS headset and a specific manufacturer's mobile phone, and both parties send and detect paired broadcast messages on a specific frequency band to improve the efficiency of discovery and thus improve Pairing connection efficiency.
  • the first BLE unconnectable broadcast message may be an ADV_NONCONN_IND message.
  • the dual-issue identifier may be a universally unique identifier (UUID).
  • the first earplug can send the first BLE unconnectable broadcast message multiple times, so that the message can be detected by the mobile phone more quickly and with a greater probability.
  • the first BLE unconnectable broadcast message may also carry other information, such as the name of the first earplug (for example, the name is TWS earphone, or the left earplug named TWS), the name of the TWS earphone corresponding to the first earplug, the first The device type of an earplug (for example, the device type is TWS earphone), etc.
  • the mobile phone After the mobile phone receives the first BLE unconnectable broadcast message, if the mobile phone supports the dual send mode, it sends a second BLE unconnectable broadcast message to the first earbud.
  • the second BLE unconnectable broadcast message includes the second dual send ID (ie, the second identification information) and the MAC address of the mobile phone.
  • the second dual-send identifier is used to indicate that the mobile phone supports dual-send mode, that is, the mobile phone supports establishing a Bluetooth connection with both earbuds in a pair of headphones, while maintaining the two Bluetooth connection.
  • the second BLE unconnectable broadcast message may be an ADV_NONCONN_IND message.
  • the mobile phone After the mobile phone determines that the first earplug supports the dual-send mode and also supports the dual-send mode according to the first dual-send identifier of the first earplug, the mobile phone can send a second BLE unconnectable broadcast message to the first earplug and carry the mobile phone's own MAC Address and the MAC address of the first earbud, thereby notifying the first earbud of the MAC address of the mobile phone.
  • the second BLE unconnectable broadcast message may also include other information, such as the MAC address of the first earbud.
  • the MAC address is exchanged between the first earbud and the mobile phone.
  • the first earplug After receiving the second BLE unconnectable broadcast message sent by the mobile phone, the first earplug sends the first BLE connectable broadcast message to the mobile phone.
  • the first earbud After the first earbud determines that the mobile phone also supports the dual-send mode according to the first dual-send identifier sent by the mobile phone, and the first earbud and the mobile phone exchange MAC addresses, the first earbud can send the first BLE connectable broadcast message to the mobile phone to request the The phone establishes a connection.
  • the first BLE connectable broadcast message may be an ADV_DIRECT_IND message or an ADV_IND message.
  • the mobile phone displays a first logo, and the first logo is used to represent the first earplug or the TWS earphone corresponding to the first earplug.
  • the first identification may include at least one of the following: the name of the first earplug, the icon of the first earplug, the MAC address of the first earplug, the name of the TWS headset corresponding to the first earplug, and the icon of the TWS headset corresponding to the first earplug , The same identity corresponding to the first earplug and the second earplug, etc.
  • the first identification may be the icon and name of the TWS headset.
  • a fast discovery solution is used, referring to FIG.
  • the mobile phone may display the first logo through the pop-up window 801 to remind the user that the Bluetooth device corresponding to the first logo has been found; the first logo includes the TWS headset’s Icon 802, the name 803 of the TWS headset, and the MAC address 804 of the TWS headset.
  • the first BLE unconnectable broadcast message or the first BLE connectable broadcast message may include the name of the TWS earphone corresponding to the first earbud. If the mobile phone supports the dual-shot mode, the mobile phone may display a first logo according to the name of the TWS earphone received from the first earplug, and the first logo includes the name of the TWS earphone corresponding to the first earplug.
  • the first logo can be displayed regardless of whether the mobile phone supports the dual-send mode. If the mobile phone supports the dual-send mode, when the user operates the first identifier, the mobile phone may execute the dual-send connection process in response to the user's operation. If the mobile phone does not support dual-send mode, when the user operates the first logo, the mobile phone does not respond to the user's operation; for example, the first logo is displayed in gray on the mobile phone to remind the user that there is no response after clicking; for example, the first The logo is marked as unavailable, etc.
  • the mobile phone After detecting the user's operation on the first identification, the mobile phone sends a connection success message to the first earplug.
  • the mobile phone After detecting the user's operation on the first logo, the mobile phone determines that the user wants to connect the mobile phone and the first earplug, and thus can send a connection success message to the first earplug.
  • the user's operation on the first logo may be an operation in which the user clicks the name of the TWS headset.
  • the operation of the user on the first logo may be an operation of the user clicking the connection control 805.
  • the connection success information may be a CONNECT_IND message. After the mobile phone sends a connection success message to the first earplug, a pairing connection is successfully established between the mobile phone and the first earplug.
  • the mobile phone may perform operations such as authentication (such as legality verification) and encryption. After the authentication is completed, the mobile phone sends the connection to the first earplug successfully News.
  • the mobile phone and the first earplug can first determine whether the two sides support the dual-send mode through the first BLE unconnectable broadcast message; then, after the user clicks the first logo, if the mobile phone and the first earplug Both support dual send mode, then the mobile phone performs dual send connection process. In addition, if the mobile phone or the first earbud does not support the dual-send mode, the mobile phone performs the forwarding, monitoring or NFMI connection process, which will not be repeated here.
  • step 503 may specifically include:
  • the first earplug sends a second BLE connectable broadcast message, where the second BLE connectable broadcast message includes the MAC address of the first earplug and the first dual-send identifier, and the name of the first earplug or the TWS corresponding to the first earplug
  • the name of the headset, and the first dual-send logo is used to indicate that the first earbud supports the dual-send mode.
  • the first earplug can send a second BLE connectable broadcast message to be discovered by the mobile phone as soon as possible and improve the efficiency of pairing connection with the mobile phone.
  • the second connectable broadcast message may be an ADV_IND message.
  • the second BLE connectable broadcast message may also include information such as the MAC address of the first earplug and the device type of the first earplug.
  • the mobile phone After the mobile phone receives the second BLE connectable broadcast message sent by the first earplug, if the mobile phone supports the dual-send mode, a first logo is displayed, and the first logo is used to indicate the first earplug or the TWS earphone corresponding to the first earplug .
  • the first identifier may be displayed according to the information carried in the second BLE connectable broadcast message, and the first identifier may include the name of the first earplug or the name of the TWS earphone corresponding to the first earplug.
  • the mobile phone After detecting the user's operation on the first logo, the mobile phone sends a connection success message to the first earplug.
  • the connection success information may include the MAC address of the mobile phone, so that the mobile phone can notify the first earbud of its own Bluetooth address.
  • the mobile phone can send a connection success message to the first earbud, and then establish a dual-transmission connection between the mobile phone and the TWS headset.
  • the connection success information may be a CONNECT_IND message.
  • the forwarding, monitoring or NFMI connection process is performed.
  • the connection success information in step B3 may include a second dual-send identifier, which is used to indicate that the mobile phone supports the dual-send mode.
  • step B4 is further included: the mobile phone may send the first earbud to the first earbud through a connection link (eg, a BLE link) with the first earbud Two double-issue logo.
  • the mobile phone may send a second dual-send identifier to the first earbud to notify the first earbud that the mobile phone also supports the dual-send mode ; Then, after the mobile phone detects the user's operation on the first logo, the connection success message is sent to the first earplug.
  • the mobile phone and the first earbud After detecting the user's operation on the first logo, unlike the above solution, the mobile phone and the first earbud establish a Bluetooth connection through a BLE message. In other solutions, the mobile phone can establish a Bluetooth connection with the first earbud through a BR/EDR message. .
  • the above steps A3-A5 may be replaced by:
  • the mobile phone After receiving the first BLE unconnectable broadcast message, the mobile phone displays a first logo if it supports the dual-send mode, and the first logo is used to indicate the first earplug or the TWS headset corresponding to the first earplug.
  • the first BLE unconnectable broadcast message includes the name of the first earplug or the name of the TWS earphone corresponding to the first earplug, and the mobile phone can display the first identifier according to the first BLE unconnectable broadcast message.
  • the mobile phone If the mobile phone detects the user's operation on the first identification, it sends a paging message to the first earplug.
  • the first BLE unconnectable broadcast message in step A1 may carry the MAC address of the first earbud, and the mobile phone may send a paging message to the first earbud according to the MAC address.
  • the mobile phone may include a second dual-send identifier in the paging message in step C1 to indicate that the mobile phone supports the dual-send mode.
  • the mobile phone may send the second dual-send identifier through the connection link with the first earplug.
  • the mobile phone may send information carrying the second dual-send identifier to the first earbud to notify the first earbud that the mobile phone also supports Dual-send mode; then, after the mobile phone detects the user's operation on the first logo, it sends a paging message to the first earbud.
  • the first earplug sends a paging response message to the mobile phone.
  • the first earplug may send a paging response message to the mobile phone, thereby establishing a Bluetooth pairing connection between the first earplug and the mobile phone.
  • the above step B3 may be replaced with steps C1-C2.
  • the second BLE connectable broadcast message in the above step B1 may carry the MAC address of the first earplug, and the mobile phone may send a paging message to the first earplug according to the MAC address.
  • step C1 if the mobile phone supports the dual-send mode, after receiving the second BLE connectable broadcast message, it may send information carrying the second dual-send identifier to the first earbud to notify the first earbud The mobile phone also supports the dual-send mode; then, after the mobile phone detects the user's operation on the first identification, it sends a paging message to the first earbud.
  • steps C1 and C2 can be used for mobile phones that support BR/EDR Bluetooth pairing connection.
  • the paging message and paging response message of BR/EDR follow SPP protocol; the broadcast message of BLE mode follows GATT protocol.
  • the mobile phone and the first earbud can also negotiate link information such as frequency hopping method, clock, etc. Connect link to transfer music data.
  • the two parties can mutually store each other's MAC address.
  • the mobile phone and/or the TWS headset can prompt the user that the mobile phone has established the pairing connection with the first earbud by means of sound, display, vibration, and indicator lights.
  • the mobile phone may display the icon 1101 of the first earplug in the status bar, indicating that a Bluetooth pairing connection is established with the first earplug.
  • the first earplug may establish a wireless connection with the second earplug before establishing a Bluetooth connection with the mobile phone, or may establish a wireless connection with the second earplug after establishing a Bluetooth connection with the mobile phone.
  • the application examples are not limited.
  • the first earbud sends the first BLE unconnectable broadcast message in step A1
  • the first earplug can also open the BR/EDR mode to perform discovery/discovery through page scan or query scan.
  • the first earplug may also Turn on the BR/EDR mode and perform discovery/discovery through page scan or query scan.
  • the phone After the mobile phone determines that the first earplug supports the dual-shot mode through the BLE method (such as one of steps A1 and B1), or discovers the first earplug through the BR/EDR method, in an embodiment of steps A4, B2, or C0 ,
  • the phone can display a first logo.
  • the first identification may include the name of the first earplug or the name of the TWS earphone corresponding to the first earplug.
  • the mobile phone may display the first logo. Then, if the mobile phone discovers the first earplug through the BR/EDR method, the mobile phone determines that the device discovered by the two methods is the same device, and thus only displays a first identification.
  • the mobile phone may not display the first logo temporarily; if the mobile phone determines that it also supports the dual-shot mode, the mobile phone The first logo can be displayed. Then, if the mobile phone discovers the first earplug through the BR/EDR method, the mobile phone determines that the device discovered by the two methods is the same device, and thus only displays a first identification.
  • step A4, B2, or C0 if the mobile phone finds the first earplug through the BR/EDR method, the first logo may be displayed. Then, if the mobile phone discovers the first earplug through the BLE method, and the first earplug supports the dual-shot mode, the mobile phone determines that the devices discovered by the two methods are the same device, and thus only one first logo is displayed.
  • the first BLE unconnectable broadcast message sent by the first earplug in step A2 and the second BLE connectable broadcast message sent by the first earplug in step B1 do not include the name of the first earplug and the first earplug The name of the corresponding TWS headset.
  • step A4, B2, or C0 if the mobile phone determines that the first earplug supports the dual-shot mode through the BLE method, and the first earplug is not found through the BR/EDR method, the mobile phone may not display the first logo. Then, if the mobile phone finds the first earplug through the BR/EDR method, the first logo may be displayed.
  • the dual-send connection process is executed; if the mobile phone does not support the dual-send mode, the connection process such as monitoring and forwarding NFMI is executed.
  • the mobile phone may display a first logo and a second logo
  • the first logo may include the name of the first earplug or the name of the TWS earphone corresponding to the first earplug
  • the second identification may include the MAC address of the first earplug or the MAC address of the TWS headset.
  • step A4, B2, or C0 if the mobile phone determines that the first earbud supports dual-sending mode through the first BLE unreachable broadcast message or the unnamed second BLE connectable broadcast message, and is not discovered through the BR/EDR method With the first earplug, the mobile phone can display the second identification according to the first BLE connectable broadcast message or according to the second BLE connectable broadcast message; if the mobile phone determines that it also supports the dual-send mode, it can display the first identification. Then, if the mobile phone discovers the first earplug through the BR/EDR method, the mobile phone determines that the device discovered in the two methods is the same device, and thus can still display the first logo and continue to display the second logo.
  • step A4, B2, or C0 if the mobile phone determines that the first earbud supports the dual-shot mode through the BLE method, and the first earbud is not found through the BR/EDR method, the mobile phone may display the second logo; if the mobile phone determines itself The dual send mode is also supported, and the second logo is still displayed. Then, if the mobile phone finds the first earplug through the BR/EDR method, the mobile phone can display the first logo and stop displaying the second logo; or the mobile phone can display the first logo and the second logo.
  • step A4, B2, or C0 if the mobile phone finds the first earplug through the BR/EDR method, the first logo may be displayed. Then, if the mobile phone determines that the first earplug and the mobile phone support the dual-send mode through the BLE pairing broadcast message, the first logo and the second logo may be displayed.
  • the mobile phone displays the first logo and the second logo
  • the dual-send connection process is executed; if the mobile phone does not support the dual-send mode, the monitoring is executed , Forward NFMI and other connection processes.
  • the mobile phone will not perform the connection process.
  • the mobile phone performs connection processes such as monitoring and forwarding NFMI.
  • the mobile phone executes the dual-sender connection process provided by the embodiment of the present application.
  • a first logo can be displayed; when the mobile phone discovers by BR/EDR After the first earplug, the mobile phone can display a third logo.
  • Both the first identification and the third identification may include the name of the first earplug or the name of the TWS earphone corresponding to the first earplug.
  • the first identifier corresponds to a dual-sending connection scheme
  • the third identifier corresponds to a single-sending connection scheme.
  • the mobile phone detects the user's click operation on the first logo 1201, if the mobile phone also supports dual-sending, the dual-sending connection process provided by the embodiment of the present application is executed between the mobile phone and the first earplug and the second earplug; After the user clicks on the third identifier 1202, the mobile phone and the first earplug and the second earplug perform a monitoring, forwarding, or NFMI connection process.
  • the first earplug can also turn off the BR/EDR mode.
  • the mobile phone notifies the first earplug that the mobile phone supports the dual-send mode.
  • step 504 If the mobile phone supports the dual-send mode, the mobile phone can notify the first earplug so that the first earplug can perform the dual-send connection process. For example, this step may be step B4 above. It should be noted that, in step 503, if the mobile phone has notified the first earbud that the mobile phone supports the dual-send mode (for example, in step A2, the mobile phone sends the second dual-send identifier to the first earbud), step 504 may also be omitted.
  • the first earbud can forward the MAC address of the mobile phone to the second earbud.
  • the second earplug establishes a Bluetooth pairing connection with the mobile phone according to the MAC address of the mobile phone, and the mobile phone maintains the Bluetooth connection with the first earplug. The plan will be described in detail below.
  • the mobile phone and the second earbud establish a Bluetooth connection.
  • the dual-send connection process can be performed.
  • the first earplug can send the information of the second earplug (such as the MAC address of the second earplug) to the mobile phone, and send the information of the mobile phone (such as the MAC address of the mobile phone) to the second earplug, so that the mobile phone and the second earplug can pass through the first
  • the earbuds establish a Bluetooth connection.
  • step 505 may include: the first earplug may send connection information 1 to the second earplug, and the connection information 1 may include the MAC address of the mobile phone and indicate that the second earplug enters a connectable and discoverable state .
  • Instructing the second earbud to enter a connectable and discoverable state may be indicated by other information in the connection information 1 than the MAC address of the mobile phone, such as a specific identification; or by a specific message or message type carrying the connection information 1; or
  • the MAC address of the mobile phone because the second earbud has the Bluetooth address of the first earbud, and the other MAC address sent by the first earbud is received, the second earbud can be recognized, thereby entering a connectable and discoverable state, and connected to the mobile phone.
  • the second earplug can establish a Bluetooth connection with the mobile phone according to the connection information 1, and the Bluetooth connection is maintained between the mobile phone and the first earplug. After the second earbud establishes a Bluetooth connection with the mobile phone, since the first earbud has previously established a Bluetooth connection with the mobile phone, the dual-earth connection between the mobile phone and the two earbuds of the TWS headset is realized.
  • the first earplug After receiving the second dual-send identifier sent by the mobile phone, the first earplug determines that the mobile phone also supports the dual-send mode, so that the process of dual-send connection can be performed.
  • the MAC address of the mobile phone is stored in the first earbud, so the first earbud can forward the MAC address of the mobile phone to the Two earplugs, so that the first earplug establishes a Bluetooth pairing connection with the mobile phone according to the MAC address of the mobile phone.
  • connection information 1 may also include link information such as the frequency hopping method and clock between the mobile phone and the first earplug, so that the second earplug can establish a link according to the link information between the mobile phone and the first earplug, thereby Keep in sync with the link between the mobile phone and the first earbud, so that the first earbud and the second earbud can play stereo music.
  • link information such as the frequency hopping method and clock between the mobile phone and the first earplug
  • the first earplug can send connection information 1 to the second earplug according to the SPP protocol; when the first earplug and the second earplug are BLE connected, The first earplug may send connection information 1 to the second earplug according to the GATT protocol.
  • step 505 the second earplug may actively connect to the mobile phone.
  • step 505 may specifically include:
  • the first earplug sends connection information 1 to the second earplug to indicate that the second earplug can connect to the mobile phone.
  • the second earplug After receiving the connection information 1, the second earplug enters a connectable and discoverable state, so that other devices can be actively connected or connected by other devices.
  • the second earplug sends connection request information to the mobile phone according to the connection information 1.
  • the second earplug may actively initiate a connection to the mobile phone according to information such as the MAC address of the mobile phone in the connection information 1.
  • the connection request information may include the MAC address of the second earplug, so that the receiver of the connection request information can learn the identity of the device requesting to establish the connection.
  • the interaction information (eg, connection information, notification information, connection success information, etc.) between the mobile phone, the first earplug, and the second earplug may be a BLE message that follows the GATT protocol, It may be a BR/EDR message following the SPP protocol, which is not limited in the embodiments of the present application.
  • connection request information may be BLE's ADV_DIRECT_IND message or ADV_IND message; or, the connection request may be a BR/EDR page message.
  • the second earplug sends notification information 1 to the first earplug.
  • the notification information 1 may be used to notify the first earplug, the second earplug will request to connect to the mobile phone, or the second earplug has entered a connectable and discoverable state.
  • step D2 may be before step D3 or after step D3, which is not limited in the embodiments of the present application.
  • the first earplug After receiving the notification information 1 sent by the second earplug, the first earplug sends the notification information 2 to the mobile phone.
  • the notification information 2 may include the MAC address of the second earplug, which may indicate that the second earplug is paired with the first earplug, so that the mobile phone learns the identity of the paired device requesting the first earplug connected to the mobile phone.
  • the notification information 2 can be used to notify the mobile phone that the second earplug will request to connect to the mobile phone, or the second earplug has entered a connectable and discoverable state, and the mobile phone can be connected to the second earplug.
  • step D2 may be before step D4 or after step D4, which is not limited in the embodiments of the present application.
  • the mobile phone After the mobile phone receives the MAC address of the second earplug in the notification information 2, it can determine that the first earplug and the second earplug are used as a pair of devices.
  • the mobile phone After receiving the notification information 2 and the connection request information, the mobile phone sends a connection success message to the second earplug.
  • the mobile phone After the mobile phone receives the connection request information sent by the second earplug, if it determines that the MAC address in the connection request information is consistent with the MAC address of the second earplug in the notification information 2 sent by the first earplug, it can indicate the request
  • the device that establishes a connection with the mobile phone is the device indicated by the first earplug, so the mobile phone can send a connection success message to the second earplug, thereby successfully establishing a Bluetooth connection with the second earplug, and achieving a dual-socket connection between the mobile phone and the TWS headset.
  • the connection success information may be a BLE CONNECT_IND message, or a BR/EDR page response message, etc.
  • the second earplug may forward the connection request information to the mobile phone through forwarding of the first earplug, for example, the connection request information of step D2 is forwarded through the first earplug. Further, during the forwarding process, the second earplug may send the notification information 1 to the first earplug, and the first earplug may send the communication information 2 to the mobile phone.
  • the first earplug may also notify the mobile phone of the MAC address of the second earplug in step 503, so that the mobile phone learns the pairing relationship between the first earplug and the second earplug.
  • the first earplug may send the MAC address of the second earplug to the mobile phone through a BLE unconnectable broadcast message, a BLE connectable broadcast message, etc., to indicate that the first earplug and the second earplug are paired and indicate that the mobile phone can be connected to the second earplug .
  • steps D3 and D4 can also be omitted; and in step D5, after the mobile phone receives the connection request information sent by the second earplug, if it is determined that the first earplug is sent in step 503
  • the MAC address of the second earbud is the same as the MAC address in the connection request message, and then the connection success message is sent to the second earbud, so that the Bluetooth connection with the second earbud is successfully established, and the dual-socket connection between the mobile phone and the TWS headset is realized .
  • step 505 the mobile phone may actively connect the second earplug.
  • step 505 may specifically include:
  • the first earplug sends connection information 1 to the second earplug to indicate that the second earplug can connect to the mobile phone.
  • the second earplug After receiving the connection information 1, the second earplug enters a connectable and discoverable state, so that other devices can be actively connected or connected by other devices.
  • the second earplug sends a notification message 3 to the first earplug.
  • the notification message 3 may be used to notify the first earplug that the second earplug has entered a connectable and discoverable state, or the second earplug may be connected.
  • the first earplug After receiving the notification information 3 sent by the second earplug, the first earplug sends the notification information 4 to the mobile phone.
  • the notification information 4 includes the MAC address of the second earplug, which may indicate that the second earplug is paired with the first earplug.
  • the notification information 4 may be used to notify the mobile phone to actively connect the second earplug; or the second earplug has entered a connectable and discoverable state.
  • the first earplug may receive the MAC address of the second earplug in the notification information 3, or may obtain the MAC address of the second earplug when wirelessly connecting with the second earplug before.
  • the mobile phone After receiving the notification message 4, the mobile phone sends connection request information to the second earplug.
  • the mobile phone may send the connection request information to the second earplug according to the MAC address of the second earplug in the notification information 4.
  • the connection request information may include the MAC address of the mobile phone, so that the recipient of the connection request information can know the identity of the device requesting to establish the connection.
  • the second earplug After receiving the connection request information, the second earplug sends a connection success message to the mobile phone.
  • the second earplug After the second earplug receives the connection request information, if it is determined that the MAC address of the mobile phone in the connection request information is consistent with the MAC address of the mobile phone in the connection information 1 sent by the first earplug, it may indicate that the request is established with the second earplug
  • the connected device is the device indicated by the first earplug, so the second earplug can send a connection success message to the mobile phone.
  • the first earplug may also notify the mobile phone of the MAC address of the second earplug in step 503, so that the mobile phone learns the pairing relationship between the first earplug and the second earplug.
  • the first earplug may also send the MAC address of the second earplug to the mobile phone through the first BLE unconnectable broadcast message, the first connectable broadcast message, the second connectable broadcast message, etc., to indicate the first earplug and the second earplug Paired use, and the phone can be connected to the second earbud.
  • steps E2 and E3 can also be omitted.
  • the mobile phone can send the second earplug to the second earplug according to the MAC address of the second earplug sent by the first earplug in step 503 Send connection request information.
  • the dual-shot connection between the mobile phone and the TWS headset is realized.
  • the mobile phone and/or the TWS headset can use sound, display, vibration, indicator lights, etc.
  • the user is prompted to establish a pairing connection with the TWS headset.
  • the mobile phone may display the icon 1501 of the TWS headset in the status bar, indicating that a Bluetooth pairing connection is established with the TWS headset.
  • the icon 1502 of the mobile phone is displayed on the display screen of the TWS headset, indicating that the TWS headset has established a pairing connection with the mobile phone.
  • step 505 may include: the first earplug may send connection information 2 to the mobile phone, and the connection information 2 may include the MAC address of the second earplug, which may indicate that the second earplug and the first earplug Paired to indicate that the phone can be connected to the second earbud.
  • the mobile phone may establish a Bluetooth connection with the second earplug according to the connection information 2, and the mobile phone maintains a Bluetooth connection with the first earplug.
  • the MAC address of the second earbud is stored in the first earbud, so the first earbud can forward the MAC address of the second earbud to the connection information 2
  • the mobile phone so that the second earbud establishes a Bluetooth pairing connection with the mobile phone according to the MAC address of the mobile phone.
  • the mobile phone After receiving the MAC address of the second earplug in the connection information 2 sent by the first earplug, the mobile phone can determine that the first earplug and the second earplug are used as a pair of devices.
  • step 505 the mobile phone may actively connect the second earplug.
  • step 505 may specifically include:
  • the first earplug sends connection information 2 to the mobile phone to indicate that the second earplug is paired with the first earplug.
  • the mobile phone After receiving the connection information 2, the mobile phone learns that the second earplug can be connected.
  • the mobile phone After receiving the connection information 2, the mobile phone sends notification information 5 to the first earplug.
  • the first earplug After receiving the notification information 5, the first earplug sends notification information 6 to the second earplug to indicate that the second earplug can connect to the mobile phone.
  • the notification message 6 may include the MAC address of the mobile phone, and the second earplug may learn that the mobile phone can be connected according to the notification information 6.
  • the first earplug may send the notification information 6 to the second earplug without waiting for the notification information 5, that is, step F1 may be omitted.
  • the second earplug After receiving the notification information 6, the second earplug enters a connectable and discoverable state so that it can connect with other devices.
  • the mobile phone may notify the second earplug to enter the connectable and discoverable state through the first earplug, so that it can be connected with the mobile phone.
  • the mobile phone After receiving the connection information 2, the mobile phone sends connection request information to the second earplug.
  • the second earplug After receiving the notification information 6 and the connection request information, the second earplug sends a connection success message to the mobile phone.
  • the second earplug may indicate that the device requesting to establish a connection with the second earplug is the device indicated by the first earplug, so the second earplug may Send a successful connection message to the phone.
  • steps F0-F5 For the specific implementation process of steps F0-F5, please refer to the relevant description of steps D0-D5, which will not be repeated here.
  • the mobile phone may send the connection request information to the second earplug through the forwarding of the first earplug.
  • step 505 the second earplug may actively connect to the mobile phone.
  • step 505 may include:
  • the first earplug sends connection information 2 to the mobile phone to indicate that the second earplug is paired with the first earplug.
  • the mobile phone After receiving the connection information 2, the mobile phone learns that the second earplug can be connected.
  • the mobile phone After receiving the connection information 2, the mobile phone sends notification information 7 to the first earplug.
  • the first earplug After receiving the notification information 7, the first earplug sends notification information 8 to the second earplug to indicate that the second earplug can be connected to the earphone.
  • the notification message 8 may include the MAC address of the mobile phone.
  • the second earplug After receiving the notification information 8, the second earplug enters a connectable and discoverable state so that it can be connected with other devices.
  • the mobile phone can notify the second earplug to enter the connectable and discoverable state through the first earplug, so that it can be connected with the mobile phone.
  • the second earplug sends connection request information to the mobile phone according to the notification information 8.
  • the mobile phone can send the connection request information to the mobile phone according to the MAC address of the mobile phone in the notification message 8.
  • the mobile phone After receiving the connection request information, the mobile phone sends a connection success message to the second earplug.
  • the mobile phone determines that the MAC address of the second earplug in the connection information 2 is consistent with the MAC address of the second earplug in the connection request information sent by the first earplug, it may indicate that the device requesting to establish a connection with the mobile phone is the device indicated by the first earplug, Therefore, the mobile phone can send the connection success information to the second earplug.
  • steps G0-G5 For the specific implementation process of steps G0-G5, please refer to the relevant description of steps E0-E5, which will not be repeated here.
  • the mobile phone and/or the second earplug may also notify the first earplug that the mobile phone and the second earplug have established a Bluetooth connection.
  • the mobile phone can maintain the Bluetooth connection between the first earplug and the second earplug, respectively, thereby maintaining the dual-socket connection between the mobile phone and the TWS headset.
  • the mobile phone After the mobile phone realizes the dual-ear connection with the first earplug and the second earplug, the mobile phone may store the MAC addresses of the first earplug and the second earplug in association, to indicate that the first earplug and the second earplug are used as a pair of devices.
  • the first earplug and the second earplug may maintain a wireless connection or may disconnect the wireless connection. That is, optionally, after step 505, referring to FIG. 5, the method may further include:
  • the mobile phone can send audio data to the first earplug and the second earplug, respectively, and the first earplug and the second earplug play the audio signal of the corresponding channel simultaneously.
  • the user may use the first earplug and the second earplug to play music.
  • the TWS headset can be used to play music after the dual connection of the TWS headset is established. If the user first clicks on the first logo of the first earplug to establish a dual connection between the mobile phone and the TWS, and then starts playing music; after the user starts playing music, the TWS headset can be used to play music.
  • the mobile phone may send stereo audio data (including left channel data and right channel data) to both the first earplug and the second earplug; the first earplug and the second earplug respectively extract audio from a corresponding channel Data for playback.
  • stereo audio data including left channel data and right channel data
  • the first earplug and the second earplug can respectively receive audio data of a corresponding channel from the mobile phone for playback.
  • the amount of audio data received by the first earplug and the second earplug from the mobile phone is small, and the audio code rate is low, which can reduce the probability of interference and transmission delay in the wireless environment; and, can also reduce the radio frequency of each earplug
  • the working time of the receiver reduces the power consumption of the earplugs.
  • the user can use the touch operation on the earplug, the trigger operation on the mobile phone or the voice instruction to pause, play, previous, next, etc., between the mobile phone and the TWS headset
  • the dual-sender connection responds and processes in time.
  • the voice data collected by the MIC on the TWS headset can also be sent to the mobile phone through the connection channel between each earplug and the mobile phone.
  • the first earplug sends a BLE Primary broadcast message as an example.
  • the first earplug may also send a Secondary broadcast message so that the first earplug is discovered by the mobile phone.
  • the first earplug may send a series of Secondary broadcast messages such as ADV_EXT_IND message (Primary broadcast message), and AUX_ADV_IND message, AUX_SCAN_RSP message, AUX_SYNC_IND message.
  • ADV_EXT_IND message Primary broadcast message
  • AUX_ADV_IND message AUX_SCAN_RSP message
  • AUX_SYNC_IND message Compared with sending a Secondary broadcast message, the first earbud sends a Primary broadcast message, which can be discovered by the mobile phone faster, thereby improving the connection efficiency with the mobile phone.
  • the mobile phone and the first earplug can be discovered in other ways.
  • the user can also turn on the Bluetooth search function.
  • the mobile phone enters the Bluetooth scanning state and frequency-hops to scan other devices; the first earbud can frequency-hop to send a paired broadcast message; when the phone and the first earbud When frequency hopping to the same frequency band, the mobile phone detects the paired broadcast message of the first earplug, thereby discovering the first earplug, and then establishing a Bluetooth connection with the first earplug. Then, the mobile phone and the first earplug may perform other steps in the above embodiments.
  • the above mainly describes the process of establishing the dual-socket connection between the mobile phone and the TWS headset for the first time, and then establishing the dual-socket connection between the mobile phone and the TWS headset again.
  • the connection method provided in the embodiment.
  • the TWS headset can be automatically connected back to the mobile phone. For example, it is not necessary to perform the above steps that both parties indicate that they each support the dual-shot mode, thereby improving the connection efficiency.
  • the following is an example.
  • the mobile phone has a history of pairing with the first earplug and the second earplug. After receiving the broadcast message of the first earplug, the mobile phone determines that the mobile phone has been paired with the first earplug and the second earplug, so as to automatically Establish a double-ended connection with the first earplug and the second earplug. For example, the mobile phone stores the MAC addresses of the associated first earplug and second earplug, and the mobile phone can directly page the first earplug and the second earplug according to the MAC address to establish a dual connection between the first earplug and the second earplug. Send connection.
  • the mobile phone automatically pages the first earbud according to the MAC address of the first earbud, thereby establishing a Bluetooth connection with the first earbud, and the mobile phone and the second earbud establish the MAC address of the mobile phone or the second earbud forwarded by the first earbud.
  • Bluetooth connection to achieve dual-sender connection.
  • the mobile phone determines that it has been paired with the first earplug according to the stored MAC address, thereby establishing a Bluetooth connection with the first earplug; similarly, the mobile phone can establish a second earplug Bluetooth connection between the two, so as to achieve dual-sender connection.
  • the MAC address of the mobile phone is stored on the first earplug and the second earplug, indicating that the TWS headset has been paired with the mobile phone, so the first earplug and the second earplug can page the mobile phone directly according to the MAC address of the mobile phone, thereby Establish a double-ended connection between the first earplug, the second earplug, and the mobile phone.
  • the MAC address of the mobile phone is stored on the first earbud, and the MAC address of the mobile phone is forwarded to the second earbud. After detecting the paired broadcast of the mobile phone, the first earbud and the second earbud establish a Bluetooth connection with the mobile phone .
  • the user uses the first earbud to listen to music
  • a Bluetooth connection is established between the first earbud and the mobile phone, and the first earbud is in mono ear mode; when the user wants to use a pair of TWS headphones, the TWS headphones can be switched For binaural mode.
  • a wireless connection is established between the first earplug and the second earplug, and the second earplug and the mobile phone establish a Bluetooth connection through the first earplug, thereby playing music through the dual-issue connection channel.
  • the mobile phone and the TWS headset perform the process of establishing the dual-socket connection for the first time in the above embodiment, re-establish the Bluetooth connection between the first earbud and the mobile phone, and establish the Bluetooth connection between the second earbud and the mobile phone, Thus, music is played through the dual-channel connection channel.
  • the user can play stereo music through the two TWS earphones.
  • the other earplug that is not used can maintain the Bluetooth connection with the mobile phone; or, the other earplug can also disconnect the Bluetooth connection between the mobile phone and switch to Mono ear mode, for example, when the other earplug comes out of the ear, the mobile phone can disconnect the Bluetooth connection between the other earplug and the mobile phone.
  • the electronic device, the first wireless earplug, and the second wireless earplug include hardware and/or software modules corresponding to performing each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered beyond the scope of the present application.
  • the electronic device, the first wireless earplug, and the second wireless earplug may be divided into functional modules according to the above method example.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated.
  • a processing module In a processing module.
  • the above integrated module can be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 18 shows a schematic diagram of a possible composition of the electronic device 1800 involved in the above embodiment.
  • the electronic device 1800 may include: an opening unit 1801, establishment unit 1802, and interaction unit 1803.
  • the opening unit 1801 may be used to support the electronic device 1800 to perform the above step 500 and/or other processes used in the technology described herein.
  • the establishment unit 1802 may be used to support the electronic device 1800 to perform the above steps 503-505, etc., and/or other processes for the technology described herein.
  • the interaction unit 1803 may be used to support the electronic device 1800 to perform the above steps A4, B2, C0, etc. to display the logo, and receive user operations, and/or other processes used in the technology described herein.
  • the electronic device 1800 provided in this embodiment is used to execute the above-mentioned Bluetooth connection method, and therefore can achieve the same effect as the above-mentioned implementation method.
  • the electronic device 1800 may include a processing module, a storage module, and a communication module.
  • the processing module may be used to control and manage the actions of the electronic device 1800.
  • the processing module may be used to support the electronic device 1800 to perform the steps performed by the opening unit 1801, the establishing unit 1802, and the interaction unit 1803.
  • the storage module may be used to support the electronic device 1800 to store the MAC address of the first wireless earbud, the MAC address of the second wireless earbud, etc., as well as store program codes and data.
  • the communication module may be used to support communication between the electronic device 1800 and other devices.
  • the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application.
  • the processor may also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.
  • the electronic device involved in this embodiment may be an electronic device having the structure shown in FIG. 2.
  • FIG. 19 shows a schematic diagram of a possible composition of the first wireless earplug 1900 involved in the above embodiment.
  • the first wireless earplug 1900 may Including: an earplug connection unit 1901, an electronic device connection unit 1902, and a twin-engine connection unit 1903.
  • the earplug connection unit 1901 may be used to support the first wireless earplug 1900 to perform the above steps 501, 506, etc., and/or other processes used in the technology described herein.
  • the electronic device connection unit 1902 may be used to support the first wireless earbud 1900 to perform the above step 503 and the like, and/or other processes for the technology described herein.
  • the dual-transmission connection unit 1903 may be used to support the first wireless earbud 1900 to perform the above step 505, etc., and/or used in other processes of the technology described herein.
  • the first wireless earplug 1900 provided in this embodiment is used to perform the above-mentioned Bluetooth connection method, and thus can achieve the same effect as the above-mentioned implementation method.
  • FIG. 20 shows a schematic diagram of a possible composition of the second wireless earplug 2000 involved in the above embodiment.
  • the second wireless earplug 2000 may Including: establishment unit 2001 and processing unit 2002.
  • the establishment unit 2001 may be used to support the second wireless earplug 2000 to perform the above steps 501, 506, etc., and/or other processes used in the technology described herein.
  • the processing unit 2002 may be used to support the second wireless earplug 2000 to perform the above step 505, etc., and/or other processes for the technology described herein.
  • the second wireless earplug 2000 provided in this embodiment is used to perform the above-mentioned Bluetooth connection method, and therefore can achieve the same effect as the above-mentioned implementation method.
  • An embodiment of the present application further provides a wireless device, and the wireless device may include the first wireless earplug shown in FIG. 18 and the second wireless earplug shown in FIG. 19.
  • the first wireless earplug and the second wireless earplug may implement the Bluetooth connection method provided in the foregoing method embodiment.
  • the wireless device may be a TWS headset.
  • Embodiments of the present application also provide a computer storage medium that stores computer instructions.
  • the computer instructions run on the electronic device, the first wireless earbud, or the second wireless earbud, the electronic device, the first The wireless earplug or the second wireless earplug executes the above related method steps to implement the Bluetooth connection method in the above embodiment.
  • An embodiment of the present application also provides a computer program product, which, when the computer program product runs on a computer, causes the computer to perform the above-mentioned related steps to implement the Bluetooth connection method performed by the electronic device in the above embodiment.
  • the embodiments of the present application also provide an apparatus.
  • the apparatus may specifically be a chip, a component, or a module.
  • the apparatus may include a connected processor and a memory; wherein, the memory is used to store computer execution instructions.
  • the processor may execute computer-executed instructions stored in the memory to cause the chip to execute the Bluetooth connection method performed by the electronic device, the first wireless earbud, or the second wireless earbud in the foregoing method embodiments.
  • the electronic devices, computer storage media, computer program products, or chips provided in this embodiment are used to perform the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding The beneficial effects in the method will not be repeated here.
  • Another embodiment of the present application provides a system, which may include the foregoing electronic device, the foregoing first wireless earplug, and the foregoing second wireless earplug, and may be used to implement the foregoing Bluetooth connection method.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a division of logical functions.
  • 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 be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment 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 above integrated unit may be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application may essentially be part of or contribute to the existing technology, or all or part of the technical solutions may be embodied in the form of software products, which are stored in a storage medium
  • several instructions are included to enable a device (which may be a single-chip microcomputer, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of the present application.
  • the foregoing storage media include various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例提供一种蓝牙连接方法及设备,涉及电子技术领域,能够分别建立电子设备与每只TWS耳塞之间的蓝牙连接,从而基于该蓝牙连接分别进行数据交互。具体方案为:电子设备建立与第一无线耳塞之间的第一蓝牙连接,第一无线耳塞和第二无线耳塞之间具有无线连接。电子设备通过第一无线耳塞,建立与第二无线耳塞之间的第二蓝牙连接。电子设备同时保持第一蓝牙连接和第二蓝牙连接。本申请实施例用于建立蓝牙连接。

Description

一种蓝牙连接方法及设备 技术领域
本申请实施例涉及电子技术领域,尤其涉及一种蓝牙连接方法及设备。
背景技术
随着用户对耳机便利性要求的提高,以及部分厂商对手机等电子设备耳机孔的取消,无线耳机获得了越来越多用户的青睐。尤其地,真无线立体声(true wireless stereo,TWS)耳机包括两只耳塞,这两只耳塞之间不需要线材连接,用户使用起来更为方便。
发明内容
本申请实施例提供一种蓝牙连接方法及设备,能够分别建立电子设备与每只TWS耳塞之间的蓝牙连接,从而基于该蓝牙连接分别进行数据交互。
为达到上述目的,本申请实施例采用如下技术方案:
第一方面,本申请技术方案提供了一种应用于电子设备与一对无线耳塞的蓝牙连接方法,这一对无线耳塞包括第一无线耳塞和第二无线耳塞,该方法包括:电子设备建立与第一无线耳塞之间的第一蓝牙连接,第一无线耳塞和第二无线耳塞之间具有无线连接。电子设备通过第一无线耳塞,建立与第二无线耳塞之间的第二蓝牙连接。电子设备同时保持第一蓝牙连接和第二蓝牙连接。
在该方案中,对于配对使用的第一无线耳塞和第二无线耳塞,电子设备可以先与第一无线耳塞建立蓝牙连接,借助第一无线耳塞的媒介作用,实现双通路连接(或称双发连接)。
在一种可能的实现方式中,该方法还包括:电子设备通过第一蓝牙连接,向第一无线耳塞发送音频数据;电子设备通过第二蓝牙连接,向第二无线耳塞发送音频数据。
也就是说,在实现双发连接后,电子设备可以分别通过与第一无线耳塞和第二无线耳塞各自之间的蓝牙连接通路,交互音频信号。
在另一种可能的实现方式中,在电子设备建立与第二无线耳塞之间的第二蓝牙连接之前,该方法还包括:电子设备接收第一无线耳塞发送的指示第二无线耳塞与第一无线耳塞配对使用的信息。
这样,在获知第二无线耳塞与第一无线耳塞配对使用后,电子设备可以与第二无线耳塞进行蓝牙连接。
在另一种可能的实现方式中,在电子设备建立与第二无线耳塞之间的第二蓝牙连接之前,方法还包括:电子设备接收第一无线耳塞发送的第一识别信息,第一识别信息指示一对无线耳塞的第一无线耳塞和第二无线耳塞支持与电子设备同时保持蓝牙连接。电子设备向第一无线耳塞发送第二识别信息,第二识别信息指示电子设备支持与一对无线耳塞中的两只无线耳塞同时保持蓝牙连接。
这样,在第一无线耳塞和电子设备互相获知对方支持双发后,可以执行双发连接流程。
在另一种可能的实现方式中,电子设备向第一无线耳塞发送第二识别信息,包括:电子设备显示第一无线耳塞的标识;电子设备在检测到用户针对标识的操作后,向第一无线耳塞发送第二识别信息。
在用户对该标识进行操作后,可以表明用户想要使用无线耳塞,想要连接电子设备和无线耳塞,此时电子设备才通知第一无线耳塞电子设备支持双发,第一无线耳塞才指示第二无线耳塞可以连接电子设备,从而才能执行后续的双发连接流程。
在另一种可能的实现方式中,第一识别信息和第二识别信息可以是通用唯一识别码(universally unique identifier,UUID)。
在另一种可能的实现方式中,电子设备通过低功耗蓝牙(bluetooth low energy,BLE)消息向第一无线耳塞发送第二识别信息。例如,该BLE消息可以是BLE不可连接广播消息。
第二方面,本申请技术方案还提供了一种应用于一对无线耳塞与电子设备的蓝牙连接方法,一对无线耳塞包括第一无线耳塞和第二无线耳塞,该方法包括:第一无线耳塞建立与第二无线耳塞之间的无线连接,第一无线耳塞与第二无线耳塞配对使用。第一无线耳塞建立与电子设备之间的第一蓝牙连接。第一无线耳塞向电子设备发送第二无线耳塞的信息,以及向第二无线耳塞发送电子设备的信息,以使得第二无线耳塞与电子设备建立第二蓝牙连接。第二无线耳塞与电子设备建立蓝牙连接。第一蓝牙连接和第二蓝牙连接被同时保持。
在该方案中,对于配对使用的第一无线耳塞和第二无线耳塞,第一无线耳塞可以先与电子设备建立蓝牙连接,而后将电子设备和第二无线耳塞的信息分别指示给对方,以使得第二无线耳塞和电子设备建例蓝牙连接,从而实现双通路连接(或称双发连接)。
在一种可能的实现方式中,在第一无线耳塞向第二无线耳塞发送的电子设备的信息之前,该方法还包括:第一无线耳塞向电子设备发送第一识别信息,第一识别信息指示一对无线耳塞的第一无线耳塞和第二无线耳塞支持与电子设备同时保持蓝牙连接;第一无线耳塞接收电子设备发送的第二识别信息,第二识别信息指示电子设备支持与一对无线耳塞中的两只无线耳塞同时保持蓝牙连接。
也就是说,第一无线耳塞和电子设备之间可以先相互表明自身支持双发,而后再执行双发连接流程。
在另一种可能的实现方式中,第一无线耳塞向电子设备发送第一识别信息,包括:第一无线耳塞通过低功耗蓝牙BLE不可连接广播消息或低功耗蓝牙BLE可连接广播消息,向电子设备发送第一识别信息。
在另一种可能的实现方式中,在第一无线耳塞建立与第二无线耳塞之间的无线连接之后,且在第一无线耳塞向第二无线耳塞发送电子设备的信息之前,方法还包括:第二无线耳塞进入不可连接不可发现状态。
这样,进入可连接可发现状态的第二无线耳塞,可以与电子设备建立第二蓝牙连接。
在另一种可能的实现方式中,在第二无线耳塞与电子设备建立第二蓝牙连接之后,方法还包括:第一无线耳塞和第二无线耳塞断开无线连接。
在建立双发连接之后,电子设备可以通过第一蓝牙连接和第二蓝牙连接分别与第 一无线耳塞和第二无线耳塞通信,可以不需要第一无线耳塞和第二无线耳塞之间的无线连接,因而该无线连接可以断开。
第三方面,本申请技术方案提供了一种蓝牙连接装置,该装置包含在电子设备中,该装置具有实现上述第一方面及第一方面的可能实现方式中任一方法中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,开启模块或单元、建立模块或单元、交互模块或单元等。
第四方面,本申请技术方案提供了一种蓝牙连接装置,该装置包含在第一无线耳塞中,该装置具有实现上述第二方面及第二方面的可能实现方式中任一方法中第一无线耳塞行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,耳塞连接模块或单元、电子设备连接模块或单元、双发连接模块或单元等。
第五方面,本申请技术方案提供了一种蓝牙连接装置,该装置包含在第二无线耳塞中,该装置具有实现上述第二方面及第二方面的可能实现方式中任一方法中第二无线耳塞行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,建立模块或单元、处理模块或单元等。
第六方面,本申请技术方案提供了一种蓝牙连接装置,该装置包含在无线设备中,该无线设备包括第一无线耳塞和第二无线耳塞,该装置具有实现上述第二方面及第二方面的可能实现方式中任一方法中无线设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。
例如,该无线设备可以是TWS耳机。
第七方面,本申请技术方案提供了一对无线耳塞,这一对无线耳塞可以包括以上任一方面的任一项可能的实现方式中的第一无线耳塞和第二无线耳塞。
第八方面,本申请技术方案提供了一种***,该***可以包括以上任一方面的任一项可能的实现方式中的电子设备、第一无线耳塞和第二无线耳塞。在一种可能的实现方式中,在电子设备与第一无线耳塞的连接过程中,电子设备和第一无线耳塞可以同时通过低功耗蓝牙BLE消息和基础速率(basic rate,BR)/增强速率(enhanced data rate,EDR)消息进行发现。电子设备在发现第一无线耳塞后,可以显示一个标识。在电子设备检测到用户对该标识的操作后,若电子设备支持双发,则电子设备和第二无线耳塞可以通过第一无线耳塞建立蓝牙连接,从而实现双发连接。若电子设备不支持双发,则可以执行监听、转发、NFMI等连接流程。
第九方面,本申请技术方案提供了一种电子设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述第一方面或第二方面任一项可能的实现中的蓝牙连接方法。
第十方面,本申请技术方案提供了一种计算机存储介质,包括计算机指令,当计 算机指令在电子设备上运行时,使得电子设备执行上述第一方面或第二方面任一项可能的实现中的蓝牙连接方法。
第十一方面,本申请技术方案提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得电子设备执行上述第一方面或第二方面任一项可能的实现中的蓝牙连接方法。
附图说明
图1为本申请实施例提供的一种***示意图;
图2为本申请实施例提供的一种手机的结构示意图;
图3A为本申请实施例提供的一种耳塞的结构示意图;
图3B为本申请实施例提供的一种耳塞和耳机盒的示意图;
图3C为本申请实施例提供的一种耳塞的示意图;
图4A为本申请实施例提供的一种连接方式示意图;
图4B为本申请实施例提供的另一种连接方式示意图;
图4C为本申请实施例提供的另一种连接方式示意图;
图4D为本申请实施例提供的另一种连接方式示意图;
图5为本申请实施例提供的一种蓝牙连接方法流程图;
图6为本申请实施例提供的一种界面示意图;
图7为本申请实施例提供的一种蓝牙连接方法流程图;
图8A为本申请实施例提供的另一种界面示意图;
图8B为本申请实施例提供的另一种界面示意图;
图9为本申请实施例提供的另一种蓝牙连接方法流程图;
图10A为本申请实施例提供的另一种蓝牙连接方法流程图;
图10B为本申请实施例提供的另一种蓝牙连接方法流程图;
图11为本申请实施例提供的另一种界面示意图;
图12为本申请实施例提供的另一种界面示意图;
图13为本申请实施例提供的另一种蓝牙连接方法流程图;
图14为本申请实施例提供的另一种蓝牙连接方法流程图;
图15为本申请实施例提供的一种场景示意图;
图16为本申请实施例提供的另一种蓝牙连接方法流程图;
图17为本申请实施例提供的另一种蓝牙连接方法流程图;
图18为本申请实施例提供的一种电子设备的结构示意图;
图19为本申请实施例提供的一种第一无线耳塞的结构示意图;
图20为本申请实施例提供的一种第二无线耳塞的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
本申请实施例提供一种配对连接方法,如图1所示,该方法可以应用于电子设备01和至少一个外接设备02所组成的***。在该***中,电子设备01与外接设备02之间以无线方式连接。其中,该无线方式可以是蓝牙(bluetooth,BT),无线保真(wireless fidelity,Wi-Fi)网络,全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等连接。例如,电子设备01可以是手机、媒体播放器(例如MP3、MP4等)、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、个人数字助理(personal digital assistant,PDA)、电视、智能手表等设备。例如,外接设备02可以是无线耳塞耳机,无线音箱,无线手环,无线车载,无线智能眼镜,增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等,本申请实施例对此不做任何限制。其中,无线耳机可以是头戴式、耳塞式或其他便携式收听设备。
其中,外接设备02可以包括配对使用的第一主体021和第二主体022,第一主体021和第二主体022之间相互配合、协同工作。例如,外接设备02可以是耳塞式TWS耳机,TWS耳机可以包括配对使用的左耳塞(通常标识有“L”)和右耳塞(通常标识有“R”),左耳塞和右耳塞用于立体声播放,左耳塞可以用于播放音频数据的左声道信号,右耳塞可以用于同步播放该音频数据的右声道信号。再例如,外接设备02可以是无线音箱,无线音箱可以包括配对使用的左声道音箱和右声道音箱,左声道音箱可以用于播放音频数据的左声道信号,右声道音箱可以用于同步播放该音频数据的右声道信号。
在图1所示的***中,电子设备01是以手机为例,外接设备02是以耳塞式TWS耳机为例,第一主体021和第二主体022是以TWS耳机的右、左耳塞为例进行说明的。可以理解的是,该***中的电子设备01和外接设备02,还可以是其他设备,本申请实施例对此不做任何限制。
示例性的,当电子设备01为手机100时,图2示出了手机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等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理 器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
在一些实施例中,处理器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)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现手机100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话等功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。I2S接口和PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等***器件。MIPI 接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现手机100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现手机100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为手机100充电,也可以用于手机100与外接设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他手机,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机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的至 少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块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可以利用无线通信模块160,通过无线通信技术(如蓝牙),建立与外接设备建立无线连接。基于建立的无线连接,手机100可以向外接设备发送音频数据,还可以接收来自外接设备的音频数据。
在一些实施例中,手机100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机100可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括全球移动通讯***(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。
手机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),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes, QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。
手机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个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机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的指令,从而执行手机100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在内部存储器121中的指令,通过无线通信模块160分别建立与外接设备的两个主体之间的无线配对连接,以及与外接设备进行短距离数据交换,以通过外接设备实现通话、播放音乐等功能。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage, UFS)等。
在本申请实施例中,手机100可以采用无线通信技术(如蓝牙)分别建立与外接设备两个主体之间的无线连接。例如,手机100线建立与第一主体之间的无线连接,而后通过第一主体建立手机100与第二主体之间的无线连接。在建立无线连接后,手机100可以将外接设备的蓝牙地址存储在内部存储器121中。在一些实施例中,当外接设备为包含两个主体的设备,如TWS耳机时,TWS耳机的左右耳塞分别有各自的蓝牙地址,手机100可以将TWS耳机的左右耳塞的蓝牙地址关联存储在内部存储器121中,以便将TWS耳机的左右耳塞作为一对设备使用。
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机100可以设置至少一个麦克风170C。在另一些实施例中,手机100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动手机平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
在本申请实施例中,当手机100与外接设备,如TWS耳机建立了无线连接时,TWS耳机可以作为手机100的音频输入/输出设备使用。示例性的,音频模块170可以接收无线通信模块160传递的音频电信号,实现通过TWS耳机接听电话、播放音乐等功能。例如,在用户打电话的过程中,TWS耳机可以采集用户的声音信号,并转换为音频电信号后发送给手机100的无线通信模块160。无线通信模块160将该音频电信号传输给音频模块170。音频模块170可以将接收到的音频电信号转换为数字音频信号,并进行编码后传递至移动通信模块150。由移动通信模块150传输至通话对端设备,以实现通话。又例如,用户在使用手机100的媒体播放器播放音乐时,应用处理器可以将媒体播放器播放的音乐对应的音频电信号传输至音频模块170。由音频模块170将该音频电信号传输至无线通信模块160。无线通信模块160可以将音频电信号发送给TWS耳机,以便TWS耳机将该音频电信号转换为声音信号后播放。
压力传感器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可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过***SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。手机100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时***多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。手机100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机100中,不能和手机100分离。
示例性的,当外接设备02为TWS耳机时,图3A示出了一种TWS耳机的其中一 个主体,即耳塞(左耳塞或右耳塞)的结构示意图。如图3A所示,TWS耳机的耳塞可以包括:处理器301、存储器302、传感器303、无线通信模块304、受话器305、麦克风306以及电源307。
其中,存储器302可以用于存储应用程序代码,如用于与TWS耳机的另一只耳塞建立无线连接,以及使得耳塞与上述电子设备01进行配对连接的应用程序代码。
处理器301可以执行上述应用程序代码,以实现本申请实施例中TWS耳机的耳塞的功能。例如,实现TWS耳机的每只耳塞分别与电子设备01之间的无线配对连接。
存储器302中还可以存储有用于唯一标识该耳塞的蓝牙地址,以及存储有TWS耳机的另一只耳塞的蓝牙地址。另外,该存储器302中还可以存储有与该耳塞之前成功配对过的电子设备01的配对历史。例如,该配对历史可以包括与该耳塞成功配对过的电子设备01的蓝牙地址。基于该配对历史,该耳塞能够自动回连至已配对的该电子设备01。上述蓝牙地址可以为媒体访问控制(media access control,MAC)地址。
传感器303可以为距离传感器或接近光传感器。耳塞可以通过该传感器303确定是否被用户佩戴。例如,耳塞可以利用接近光传感器来检测耳塞附近是否有物体,从而确定耳塞是否被用户佩戴。在确定耳塞被佩戴时,耳塞可以打开受话器305。在一些实施例中,该耳塞还可以包括骨传导传感器,结合成骨传导耳机。利用该骨传导传感器,耳塞可以获取声部振动骨块的振动信号,解析出语音信号,实现语音功能。在另一些实施例中,该耳塞还可以包括触摸传感器,用于检测用户的触摸操作。在另一些实施例中,该耳塞还可以包括指纹传感器,用于检测用户指纹,识别用户身份等。在另一些实施例中,该耳塞还可以包括环境光传感器,可以根据感知的环境光的亮度,自适应调节一些参数,如音量大小。
无线通信模块304,用于支持当前耳塞与TWS耳机的另一只耳塞以及与各种电子设备01之间的无线数据交换。在一些实施例中,该无线通信模块304可以为蓝牙收发器。TWS耳机的耳塞可以通过该蓝牙收发器与上述电子设备01之间建立无线连接,以实现两者之间的短距离数据交换。
至少一个受话器305,也可以称为“听筒”,可以用于将音频电信号转换成声音信号并播放。例如,当TWS耳机的耳塞作为上述电子设备01的音频输出设备时,受话器305可以将接收到的音频电信号转换为声音信号并播放。
至少一个麦克风306,也可以称为“话筒”,“传声器”,用于将声音信号转换为音频电信号。例如,当TWS耳机的耳塞作为上述电子设备01的音频输入设备时,在用户说话(如通话或发语音消息)的过程中,麦克风306可以采集用户的声音信号,并将其转换为音频电信号。上述音频电信号即为本申请实施例中的音频数据。
电源307,可以用于向TWS耳机的耳塞包含的各个部件供电。在一些实施例中,该电源307可以是电池,如可充电电池。
通常,TWS耳机会配有一耳机盒(如,图3B中所示的耳机盒023)。该耳机盒可以用于收纳TWS耳机的左右耳塞。如结合图3A,如图3B所示,该耳机盒023可以用于收纳TWS耳机的左耳塞022和右耳塞021。在一些实施例中,该耳机盒023上可以设置有至少一个触摸控件024,可以用于触发TWS耳机与新的电子设备01进行配对,或者触发TWS耳机的两只耳塞之间的重新配对等操作。该耳机盒023上还可以 设置有充电口025,用于耳机盒自身进行充电。可以理解的是,该耳机盒023上还可以包括其他控件,此处不再一一说明。另外,该耳机盒023还可以为TWS耳机的左右耳塞充电。相应的,在一些实施例中,上述TWS耳机的耳塞还可以包括:输入/输出接口308。
输入/输出接口308可以用于提供TWS耳机的耳塞与耳机盒(如上述耳机盒023)之间的任何有线连接。在一些实施例中,输入/输出接口308可以为电连接器。当TWS耳机的耳塞置于耳机盒中时,TWS耳机的耳塞可以通过该电连接器与耳机盒(如与耳机盒包括的输入/输出接口)电连接。在该电连接建立后,耳机盒可以为TWS耳机的耳塞的电源307充电。在该电连接建立后,TWS耳机的耳塞还可以与耳机盒进行数据通信。例如,TWS耳机的耳塞可以通过该电连接器接收来自耳机盒的配对指令。该配对命令用于指示TWS耳机的耳塞打开无线通信模块304,从而使得TWS耳机的耳塞可以采用对应的无线通信协议(如蓝牙)与电子设备01进行配对连接。
当然,上述TWS耳机的耳塞还可以不包括输入/输出接口308。在这种情况下,耳塞可以基于通过上述无线通信模块304与耳机盒建立的无线连接,实现充电或者数据通信功能。
另外,在一些实施例中,耳机盒(如上述耳机盒023)还可以包括处理器,存储器等部件。该存储器可以用于存储应用程序代码,并由耳机盒的处理器来控制执行,以实现耳机盒的功能。例如。当用户打开耳机盒的盒盖时,耳机盒的处理器通过执行存储在存储器中的应用程序代码,可以响应于用户打开盒盖的操作向TWS耳机的耳塞发送配对命令等。
可以理解的是,本申请实施例示意的结构并不构成对TWS耳机的耳塞的具体限定。其可以具有比图3A中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。例如,该耳塞还可以包括指示灯309(可以指示耳塞的电量等状态)、显示屏310(可以提示用户相关信息)、防尘网(可以配合听筒使用)、马达等部件。图3A中所示出的各种部件可以在包括一个或多个信号处理或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
示例性的,图3C提供了一种耳塞021的结构示意图,可以包括受话器305,麦克风306,输入/输出接口308,指示等309、显示屏310,以及触摸键311和接近光传感器312等。该触摸键311与触摸传感器配合使用,用于触发暂停、播放、录音、开启MIC、关闭MIC等操作。
需要说明的是,TWS耳机的左右耳塞的结构可以相同。例如,TWS耳机的左右耳塞可以都包括图3A中所示的部件。或者,TWS耳机的左右耳塞的结构也可以不同。例如,TWS耳机的一只耳塞(如右耳塞)可以包括图3A中所示的部件,而另一只耳塞(如左耳塞)可以包括图3A中除麦克风306之外的其他的部件。
还需要说明的是,图3A、图3B、图3C所示的结构仅为示例性说明,并不作为对TWS耳机和耳机盒结构或功能的限定。
本申请以下实施例将以手机为电子设备01,TWS耳机为外接设备02,手机01和TWS耳机02之间以蓝牙方式建立连接为例,对本申请实施例提供的配对连接方法进行阐述。
TWS耳机可以通过与手机之间的蓝牙连接交互音频(audio)数据,该音频数据可以包括媒体(media)数据和语音(voice)数据等。例如,TWS耳机可以为用户播放音乐、录音、视频文件中的声音等媒体数据;在电话、音频通话、视频通话场景下,可以播放来电提示音、播放通话对端的语音数据,并采集用户的语音数据发送给手机;在游戏场景下,可以播放背景音乐、游戏提示音、队友的语音数据等,并采集用户的语音数据发送给手机;在微信语音消息场景下,可以播放语音消息,采集用户录制的语音数据并发送给手机;在语音助手等场景下,可以采集用户的语音数据发送给手机。
目前,TWS耳机与手机之间的蓝牙连接方案主要有监听方案、转发方案以及近场磁感应(near field magnetic induction,NFMI)方案等。
参见图4A,在监听方案中,TWS耳机400可以包括主耳塞401和副耳塞402,手机403和主耳塞401建立蓝牙连接,完成音频数据到主耳塞401的交互,并完成手机403和TWS耳机400触发的业务动作(比如,播放、暂停、切换到上一首、切换到下一首等);双耳塞之间建立有蓝牙连接,完成双耳塞之间的信息同步;副耳塞402通过监听主耳塞401和手机403之间的蓝牙链路获取音频数据。
参见图4B,在转发方案中,TWS耳机400可以包括主耳塞401和副耳塞402,手机403和主耳塞401之间建立蓝牙连接,完成音频数据到主耳塞401的交互,并完成手机403和TWS耳机400触发的业务动作;双耳塞之间建立有蓝牙连接,完成双耳塞之间的信息同步;主耳塞401通过与副耳塞402之间的蓝牙链路向副耳塞402转发音频数据。
参见图4C,在NFMI方案中,TWS耳机400可以包括主耳塞401和副耳塞402,手机403和主耳塞401之间建立蓝牙连接,完成音频数据到主耳塞401的交互,并完成手机403和TWS耳机400触发的业务动作;双耳塞之间建立有NFMI连接,完成双耳塞之间的信息同步;主耳塞401通过与副耳塞402之间的NFMI链路向副耳塞402转发音频数据。
上述监听方案、转发方案和NFMI方案只建立手机与一只TWS耳塞之间的配对连接,手机仅通过与该只耳塞之间的连接与TWS耳机交互音频数据,因而这些连接方案也可以称为单发方案。
在本申请实施例提供的配对连接方法中,参见图4D,手机可以与配对使用TWS耳塞中的每只TWS耳塞之间都建立蓝牙连接,并同时保持两路蓝牙连接,从而与每只TWS耳塞分别交互音频数据、业务控制数据和同步数据等,实现音频数据播放和业务动作控制等操作,因而可以称为双连接方案或双发方案。在建立手机与TWS耳机之间的双发连接后,两只TWS耳塞之间可以保持无线连接,也可以断开无线连接。两只TWS耳塞可以收到相同的音频数据,根据自己属于左耳塞或者右耳塞来播放音频数据中的左声道音频数据或右声道音频数据。或者手机可以分别给左耳塞发送左声道音频数据,给右耳塞发送右声道音频数据,从而使得两个耳塞播放不同声道的音频数据。
例如,在一实施例中,TWS耳机包括第一耳塞和第二耳塞。在使用TWS耳机时,手机可以先建立与第一耳塞的蓝牙配对连接,而后再建立手机与第二耳塞的蓝牙配对连接,从而建立手机与每只TWS耳塞之间的蓝牙连接,实现双发连接。
在建立双发连接后,两只TWS耳塞相互配合、协同工作,分别实现对同一音频数 据的左声道信号和右声道信号的同步播放。在建立双发连接后,手机与每只TWS耳塞之间的链路可以分别占用2.4GHZ频段,两只耳塞不需要分享2.4GHZ频段,因而TWS耳机的传输带宽较大。并且,每只耳塞均可以通过各自与手机之间的链路及时回复重发、确认等消息,因而能够尽快响应,丢包率小,抗干扰性强,音频数据的音质较好。而且,手机与一只TWS耳塞之间的链路问题(例如信道质量差、断链等)不会影响到另一只TWS耳塞,手机与另一只TWS耳塞之间仍可正常传输数据,不会造成数据传输的中断。此外,在双发方案中,TWS耳机的两个耳塞可以直接接收手机发送的数据,而不需要向其他方案那样进行转发。
并且,TWS的第一耳塞和第二耳塞之间也可以建立无线连接,从而在手机建立与第一耳塞的蓝牙配对连接后,手机和第二耳塞之间可以通过第一耳塞作为媒介设备来交互手机或第二耳塞的蓝牙地址等信息,而后可以根据交互获得的蓝牙地址,建立手机与第二耳塞之间的蓝牙配对连接,实现双发连接。其中,蓝牙地址用于唯一标识一个蓝牙设备,例如蓝牙地址可以是MAC地址或序列号等。本申请以下实施例中以蓝牙地址为MAC地址为例进行说明。
其中,双发连接的具体实现方式可以有多种。
例如,在一种情况下,在用户使用TWS耳机时,两只TWS耳塞之间可以先进行配对连接;之后,手机再与TWS耳机中的第一耳塞建立配对连接;后续,手机和第二耳塞之间可以通过第一耳塞交互手机或第二耳塞的MAC地址,而后手机和第二耳塞可以根据交互获得的MAC地址,建立手机与第二耳塞之间的配对连接。
在另一种情况下,在用户使用TWS耳机时,手机可以先与TWS耳机中的第一耳塞建立配对连接;而后,两只TWS耳塞之间进行配对连接;后续,手机和第二耳塞之间可以通过第一耳塞交互手机或第二耳塞的MAC地址,而后手机或第二耳塞根据交互获得的MAC地址,建立手机与第二耳塞之间的配对连接。
在又一种情况下,手机与TWS耳机中的第一耳塞建立配对连接,并交互音频数据,第一耳塞为单耳模式。在第一耳塞切换为双耳模式后,第一耳塞与第二耳塞之间进行配对连接;而后,手机和第二耳塞之间可以通过第一耳塞交互手机或第二耳塞的MAC地址,后续,手机和第二耳塞可以根据交互获得的MAC地址建立手机与第二耳塞之间的配对连接。或者,在第一耳塞切换为双耳模式后,第一耳塞与手机断开蓝牙连接,而后重新建立手机与TWS耳机之间的双发连接。
本申请以下实施例将以音乐播放场景下,通过建立手机与TWS耳机之间的双发连接,来为用户播放音乐为例进行说明。参见图5,双发连接方法可以包括:
500、手机开启蓝牙功能。
在用户希望使用TWS耳机播放音乐时,示例性的,参见图6,用户可以打开手机上的蓝牙功能。
501、TWS耳机中的第一耳塞和第二耳塞之间建立无线配对连接。
例如,在一种情况下,第一耳塞和第二耳塞置于耳机盒中,在耳机盒开盒时,或者某一只耳塞从耳机盒中取出后,或者用户触摸(例如,轻触、点击或长按等)耳机盒上的第一控件后,第一耳塞和第二耳塞之间可以通过BLE方式或BR/EDR方式进行蓝牙配对连接。当采用BLE方式时,两只耳塞之间可以通过BLE广播互相发现,并 通过BLE可连接广播消息建立蓝牙配对连接。当采用BR/EDR方式时,两只耳塞之间可以通过寻呼扫描(page scan)或查询扫描(inquiry scan)进行发现,并通过寻呼(page)和寻呼响应(page response)等消息建立蓝牙配对连接。采用这两种方式进行蓝牙配对连接的具体过程可以参考现有技术,此处不予赘述。
在另一种情况下,若第一耳塞和第二耳塞出厂时已经预先配对,或本次使用前已进行了配对,则第一耳塞和第二耳塞之间相互保存有对方的MAC地址。在放置第一耳塞和第二耳塞的耳机盒开盒时,或者用户触摸耳机盒上的第一控件后,或者某一只耳塞从耳机盒中取出后,第一耳塞和第二耳塞可以根据保存的对方的MAC地址进行寻呼,从而建立蓝牙连接。
其中,若第一耳塞和第二耳塞之间已配对过,则当第一耳塞和第二耳塞放置于耳机盒之后,耳机盒上的第一指示灯亮。若第一指示灯不亮,则表明第一耳塞和第二耳塞之间未配对过,此时,用户可以触摸耳机盒上的第二控件,以指示第一耳塞和第二耳塞清除已保存的MAC地址,而后第一耳塞和第二耳塞可以通过扫描等方式建立第一耳塞和第二耳塞之间的蓝牙连接。
在又一种情况下,若第一耳塞和第二耳塞之间已相互保存对方的MAC地址,则第一耳塞和第二耳塞之间已配对过。当第一耳塞和第二耳塞放置于耳机盒之后,第一耳塞和第二耳塞可以清除已保存的MAC地址,从而解除两只耳塞之间的配对关系。而后,在耳机盒开盒,或者用户触摸(例如,轻触、点击或长按等)耳机盒上的第一控件,或者某一只耳塞从耳机盒中取出后,第一耳塞和第二耳塞之间可以通过扫描、广播等方式进行蓝牙配对连接。
由于蓝牙、Wi-Fi等无线通信技术均使用2.4GHz频段,因而若已建立蓝牙配对连接的第一耳塞和第二耳塞支持NFMI,则可以第一耳塞和第二耳塞之间可以切换到NFMI(不使用2.4GHz频段)连接,以降低在2.4GHz频段进行数据传输时的干扰。
此外,第一耳塞和第二耳塞之间还可以通过Wi-Fi等其他近距离无线通信技术建立无线配对连接,本申请实施例不予限定。
需要说明的是,在第一耳塞和第二耳塞建立无线连接后,第一耳塞和第二耳塞之间可以互相保存对方的MAC地址,以表明第一耳塞和第二耳塞作为配对使用的一组/一对设备使用;或者,第一耳塞和第二耳塞可以对应同一身份标识,以表明第一耳塞和第二耳塞作为一对设备协同使用,例如可以同步播放同一音频数据的左声道信号和右声道信号。其中,该身份标识可以是第一耳塞和第二耳塞协商的标识(例如为第一耳塞的MAC地址);也可以是第一耳塞和第二耳塞与手机连接后,手机设置的标识,还可以是预设的标识,本申请实施例不做限定。
在第一耳塞和第二耳塞建立无线配对连接后,第一耳塞和/或第二耳塞可以声音提示用户TWS耳机间已经建立连接。或者,第一耳塞和/或第二耳塞通过指示灯长亮或闪烁或指示灯为特定的颜色来提示用户TWS耳机之间已经建立连接。或者,第一耳塞和/或第二耳塞通过显示屏显示文字或图标等信息,来提示用户TWS耳机已建立连接。第一耳塞和/或第二耳塞通过振动等其他方式提示用户TWS耳机已建立连接。
在第一耳塞和第二耳塞建立无线配对连接后,第一耳塞可以进入可连接可发现状态,以便可以被手机发现和连接;第二耳塞可以进入不可连接不可发现状态。在不可 连接不可发现状态下,第二耳塞不会被其他设备通过蓝牙检测到,也不会与其他设备建立蓝牙连接。
502、第一耳塞进入与手机的配对状态。
在TWS耳机与手机建立蓝牙配对连接之前,第一耳塞需要先进入与手机的配对状态。其中,第一耳塞可以是TWS耳机中的任意一个耳塞。
在一实施例中,TWS耳机可以包括主耳塞和副耳塞,第一耳塞可以为TWS耳机中的主耳塞,第二耳塞可以为TWS耳机中的副耳塞,手机可以首先建立与主耳塞之间的蓝牙连接。
其中,主耳塞和副耳塞的区分方式可以有多种。例如,默认TWS耳机的右耳塞为主耳塞,左耳塞为副耳塞。再例如,先从耳机盒中拿出的耳塞为主耳塞,后从耳机盒中拿出的耳塞为副耳塞。再例如,先入耳的耳塞为主耳塞,后入耳的耳塞为副耳塞。再例如,TWS耳机中电量较大的耳塞为主耳塞,另一只耳塞为副耳塞。再例如,主耳塞为用户语音等方式指示的耳塞,比如第一耳塞在检测到用户在第一耳塞上的第二控件的触摸操作后,可以确定自己为主耳塞。再例如,本次使用TWS耳机时的主耳塞默认为用户上一次使用时的主耳塞。
需要注意的是,在用户使用TWS耳机的过程中,主、副耳塞的角色可以进行切换。
在用户使用TWS耳机与当前手机进行配对连接时,若用户使用TWS耳机已经与其他电子设备建立了配对关系,且未解除与其他电子设备的配对关系,例如TWS耳机上保存有与其他手机的配对历史(如保存有已配对的其他手机的MAC地址),则TWS耳机在解除与其他电子设备的配对关系后,才可以进入配对状态。示例性的,当TWS耳机检测到用户长按TWS耳机上的配对键(例如可以是触摸控件024)的操作后,可以解除TWS耳机与其他电子设备的配对关系。再示例性的,在将TWS耳机从耳机盒中取出之前,用户可以长按耳机盒上的配对键,耳机盒可以触发TWS耳机解除与其他电子设备的配对关系。在解除TWS耳机与其他电子设备的配对关系后,第一耳塞和第二耳塞进入可配对状态。
若用户之前未使用TWS耳机与其他电子设备配对过(比如,TWS耳机上未保存有与其他电子设备的配对历史),则TWS耳机可以自动进入配对状态。
503、手机建立与第一耳塞之间的蓝牙连接。
在第一耳塞进入与手机的配对状态后,第一耳塞与手机之间可以通过一次或多次交互过程确认双方是否支持双发模式,并交换双方的蓝牙地址(例如MAC地址)。手机可以根据自身的能力与第一耳塞建立蓝牙连接。例如,若手机与第一耳塞均支持双发模式,则可以执行本申请实施例中的以下步骤,从而建立手机与TWS耳机之间的双发连接。若手机不支持双发模式,则可以执行监听、转发、NFMI等方案的连接流程。
其中,在建立手机与TWS耳机之间的双发连接的过程中,第一耳塞与手机之间可以先确认双方支持双发模式,再建立蓝牙连接;或者,第一耳塞与手机之间也可以先建立蓝牙连接,再确认双方支持双发模式。
例如,在一实施例中,参见图7,步骤503具体可以包括:
A1、第一耳塞发送第一BLE不可连接广播消息,该第一BLE不可连接广播消息 中包括第一耳塞的MAC地址和第一双发标识(即第一识别信息),该第一双发标识用于表示第一耳塞支持双发模式,即第一耳塞和第二耳塞可以与手机建立双发连接,手机可以和两个耳塞同时保持两路蓝牙连接。
在第一耳塞和第二耳塞建立配对连接后,第一耳塞即可发送配对广播消息,例如BLE不可连接广播消息,以尽快被手机发现,提高与手机的配对连接效率。
在一种实施方案中,第一耳塞可以通过快速发现方案来发现手机或被手机发现。在快速发现方案中,特定厂商的TWS耳机与特定厂商的手机之间可以协商特定的频段(例如频段1),双方在特定的频段上发送和检测配对广播消息,以提高发现的效率,从而提高配对连接效率。
例如,该第一BLE不可连接广播消息可以为ADV_NONCONN_IND消息。例如,该双发标识可以为通用唯一识别码(universally unique identifier,UUID)。
需要注意的是,第一耳塞可以多次发送第一BLE不可连接广播消息,以便该消息能够更快、更大概率地被手机检测到。
此外,第一BLE不可连接广播消息中还可以携带有其他信息,例如第一耳塞的名称(例如名称为TWS耳机,或者名称为TWS的左耳塞)、第一耳塞对应的TWS耳机的名称、第一耳塞的设备类型(例如设备类型为TWS耳机)等。
A2、手机在接收到第一BLE不可连接广播消息后,若手机支持双发模式,则向第一耳塞发送第二BLE不可连接广播消息,该第二BLE不可连接广播消息中包括第二双发标识(即第二识别信息)和手机的MAC地址,该第二双发标识用于表示手机支持双发模式,即手机支持与一对耳机中的的两只耳塞均建立蓝牙连接,同时保持两路蓝牙连接。
例如,第二BLE不可连接广播消息可以为ADV_NONCONN_IND消息。手机在根据第一耳塞的第一双发标识确定第一耳塞支持双发模式,且自身也支持双发模式后,可以向第一耳塞发送第二BLE不可连接广播消息,并携带手机自身的MAC地址和第一耳塞的MAC地址,从而将手机的MAC地址通知给第一耳塞。第二BLE不可连接广播消息中还可以包括其他信息,例如第一耳塞的MAC地址。
这样,第一耳塞和手机之间就实现了MAC地址的交换。
A3、第一耳塞接收到手机发送的第二BLE不可连接广播消息后,向手机发送第一BLE可连接广播消息。
在第一耳塞根据手机发送的第一双发标识确定手机也支持双发模式,且第一耳塞和手机交换MAC地址后,第一耳塞可以向手机发送第一BLE可连接广播消息,以请求与手机建立连接。例如,第一BLE可连接广播消息可以为ADV_DIRECT_IND消息或ADV_IND消息。
A4、若手机支持双发模式,则手机显示第一标识,该第一标识用于表示第一耳塞或第一耳塞对应的TWS耳机。
例如,第一标识可以包括以下至少一种:第一耳塞的名称,第一耳塞的图标,第一耳塞的MAC地址,第一耳塞对应的TWS耳机的名称,第一耳塞对应的TWS耳机的图标,第一耳塞和第二耳塞对应的同一身份标识等。示例性的,参见图8A中的800,第一标识可以为TWS耳机的图标和名称。再示例性的,当采用快速发现方案时,参见 图8B,手机可以通过弹窗801来显示第一标标识,从而提醒用户已发现第一标识对应的蓝牙设备;该第一标识包括TWS耳机的图标802、TWS耳机的名称803和TWS耳机的MAC地址804。
在一种实施方案中,第一BLE不可连接广播消息或第一BLE可连接广播消息中可以包括第一耳塞对应的TWS耳机的名称。若手机支持双发模式,则手机可以根据从第一耳塞接收到的TWS耳机的名称显示第一标识,该第一标识包括第一耳塞对应的TWS耳机的名称。
作为步骤A4的一种替换,无论手机是否支持双发模式都可以显示第一标识。若手机支持双发模式,则当用户对第一标识进行操作时,手机可以响应于用户的操作执行双发连接流程。若手机不支持双发模式,则当用户对第一标识进行操作时,手机不响应用户的操作;例如第一标识在手机上的显示为灰色,以提醒用户点击后无响应;再例如第一标识标记为不可用等。
A5、手机检测到用户在第一标识上的操作后,向第一耳塞发送连接成功信息。
手机在检测到用户在第一标识上的操作后,确定用户想要连接手机和第一耳塞,因而可以向第一耳塞发送连接成功信息。
示例性的,参见图8A,用户在第一标识上的操作可以为用户点击TWS耳机的名称的操作。再示例性的,参见图8B,用户在第一标识上的操作可以为用户点击连接控件805的操作。连接成功信息可以是CONNECT_IND消息。在手机向第一耳塞发送连接成功信息后,手机与第一耳塞之间成功建立了配对连接。
可选地,手机接收到第一耳塞发送的第一BLE可连接广播消息后,可以进行鉴权(如合法性验证)、加密等操作,在鉴权完成后,手机向第一耳塞发送连接成功消息。
也就是说,在本申请实施例中,手机和第一耳塞可以先通过第一BLE不可连接广播消息确定双方是否支持双发模式;而后,在用户点击第一标识后,若手机和第一耳塞均支持双发模式,则手机执行双发连接流程。此外,若手机或第一耳塞不支持双发模式,则手机执行转发、监听或NFMI连接流程,此处不予赘述。
在另一实施例中,参见图9,步骤503具体可以包括:
B1、第一耳塞发送第二BLE可连接广播消息,该第二BLE可连接广播消息中包括第一耳塞的MAC地址和第一双发标识,以及第一耳塞的名称或第一耳塞对应的TWS耳机的名称,该第一双发标识用于表示第一耳塞支持双发模式。
在第一耳塞和第二耳塞建立配对连接后,第一耳塞即可发送第二BLE可连接广播消息,以尽快被手机发现,提高与手机的配对连接效率。例如,第二可连接广播消息可以为ADV_IND消息。
另外,第二BLE可连接广播消息中还可以包括第一耳塞的MAC地址、第一耳塞的设备类型等信息。
B2、手机接收到第一耳塞发送的第二BLE可连接广播消息后,若手机支持双发模式,则显示第一标识,该第一标识用于表示第一耳塞或第一耳塞对应的TWS耳机。
若手机支持双发模式,则可以根据第二BLE可连接广播消息中携带的信息显示第一标识,该第一标识可以包括第一耳塞的名称或第一耳塞对应的TWS耳机的名称。
B3、手机检测到用户在第一标识上的操作后,向第一耳塞发送连接成功信息。
其中,连接成功信息中可以包括手机的MAC地址,以便手机可以将自身的蓝牙地址通知给第一耳塞。
在用户点击第一标识后,手机可以向第一耳塞发送连接成功信息,进而建立手机与TWS耳机之间的双发连接。例如,该连接成功信息可以为CONNECT_IND消息。此外,若手机或第一耳塞不支持双发模式,则执行转发、监听或NFMI连接流程。
若手机支持双发模式,则在一种实施方案中,步骤B3中的连接成功信息中可以包括第二双发标识,该第二双发标识用于表示手机支持双发模式。在另一种实施方案中,参见图9,在上述步骤503的B3之后,还包括步骤B4:手机可以通过与第一耳塞之间的连接链路(例如BLE链路)向第一耳塞发送第二双发标识。在另一种实施方案中,在上述步骤B3之前,手机可以在接收到第一BLE可连接广播消息后,向第一耳塞发送第二双发标识,以通知第一耳塞手机也支持双发模式;而后,在手机检测到用户在第一标识上的操作后,再向第一耳塞发送连接成功信息。
在检测到用户在第一标识上的操作后,与上述方案中手机与第一耳塞通过BLE消息建立蓝牙连接不同,在其他方案中,手机可以通过BR/EDR消息建立与第一耳塞的蓝牙连接。例如,在A1-A5描述的方案中,参见图10A,上述步骤A3-A5可以替换为:
C0、手机在接收到第一BLE不可连接广播消息后,若支持双发模式,则显示第一标识,该第一标识用于表示第一耳塞或第一耳塞对应的TWS耳机。
其中,第一BLE不可连接广播消息包括第一耳塞的名称或第一耳塞对应的TWS耳机的名称,手机可以根据第一BLE不可连接广播消息显示第一标识。
C1、若手机检测到用户对第一标识的操作,则向第一耳塞发送寻呼消息。
其中,上述步骤A1中的第一BLE不可连接广播消息可以携带第一耳塞的MAC地址,手机可以根据该MAC地址向第一耳塞发送寻呼消息。
若手机支持双发模式,则在一种实施方案中,手机可以在步骤C1中的寻呼消息中包括第二双发标识,用于表示手机支持双发模式。在另一种实施方案中,在步骤C1之后,手机可以通过与第一耳塞之间的连接链路发送第二双发标识。在另一种实施方案中,在步骤C1之前,手机可以在接收到第一BLE不可连接广播消息后,向第一耳塞发送携带有第二双发标识的信息,以通知第一耳塞手机也支持双发模式;而后,在手机检测到用户在第一标识上的操作后,再向第一耳塞发送寻呼消息。
C2、第一耳塞向手机发送寻呼响应消息。
第一耳塞可以向手机发送寻呼响应消息,从而建立第一耳塞与手机之间的蓝牙配对连接。
再例如,在B1-B3描述的方案中,参见图10B,上述步骤B3可以替换为步骤C1-C2。其中,上述步骤B1中的第二BLE可连接广播消息可以携带第一耳塞的MAC地址,手机可以根据该MAC地址向第一耳塞发送寻呼消息。作为步骤C1的一种替换方式,若手机支持双发模式,则可以在接收到第二BLE可连接广播消息后,向第一耳塞发送携带有第二双发标识的信息,以通知第一耳塞手机也支持双发模式;而后,在手机检测到用户在第一标识上的操作后,再向第一耳塞发送寻呼消息。
其中,步骤C1、C2描述的方案可以用于支持BR/EDR蓝牙配对连接的手机。BR/EDR的寻呼消息和寻呼响应消息等遵循SPP协议;BLE方式的广播消息遵循GATT 协议。
需要注意的是,在手机与第一耳塞建立蓝牙配对连接的过程中,手机与第一耳塞之间还可以协商跳频方式、时钟等链路信息,以便可以通过手机与第一耳塞之间的连接链路传输音乐数据。
在手机与第一耳塞建立蓝牙配对连接后,双方可以互存对方的MAC地址。
在手机与第一耳塞建立蓝牙配对连接后,手机和/或TWS耳机可以通过声音、显示、振动、指示灯等方式提示用户手机已与第一耳塞建立配对连接。示例性的,参见图11,手机可以在状态栏显示第一耳塞的图标1101,表示与第一耳塞建立了蓝牙配对连接。
需要说明的是,在本申请实施例中,第一耳塞可以在与手机建立蓝牙连接之前与第二耳塞建立无线连接,也可以在与手机建立蓝牙连接之后再与第二耳塞建立无线连接,本申请实施例不予限定。
为了兼容蓝牙BR/EDR方式,在上述步骤A1-A5描述的方案中,以及步骤A1-A2、C0-C2描述的方案中,在第一耳塞在步骤A1中发送第一BLE不可连接广播消息的同时,第一耳塞还可以打开BR/EDR方式,通过寻呼扫描或查询扫描来进行发现/被发现。或者,在步骤B1-B3描述的方案中,以及步骤B1-B2、C1-C2描述的方案中,在第一耳塞在步骤B1中发送第二BLE可连接广播消息的同时,第一耳塞还可以打开BR/EDR方式,通过寻呼扫描或查询扫描来进行发现/被发现。
在手机通过BLE方式(如步骤A1,B1的一种方式)确定第一耳塞支持双发模式,或通过BR/EDR方式发现第一耳塞后,在步骤A4、B2或C0的一种实施方案中,手机可以显示一个第一标识。该第一标识可以包括第一耳塞的名称或第一耳塞对应的TWS耳机的名称。
例如,手机通过BLE方式确定第一耳塞支持双发模式,且未通过BR/EDR方式发现第一耳塞,则手机可以显示第一标识。而后,若手机通过BR/EDR方式发现第一耳塞,则手机确定两种方式发现的设备为同一设备,因而仅显示一个第一标识。
再例如,手机通过BLE方式确定第一耳塞支持双发模式,且未通过BR/EDR方式发现第一耳塞,则手机可以暂不显示第一标识;若手机确定自身也支持双发模式,则手机可以显示第一标识。而后,若手机通过BR/EDR方式发现第一耳塞,则手机确定两种方式发现的设备为同一设备,因而仅显示一个第一标识。
又例如,在步骤A4、B2或C0中,若手机通过BR/EDR方式发现第一耳塞,则可以显示第一标识。而后,若手机通过BLE方式发现第一耳塞,且第一耳塞支持双发模式,则手机确定两种方式发现的设备为同一设备,因而仅显示一个第一标识。
再例如,第一耳塞在步骤A2中发送的第一BLE不可连接广播消息,以及第一耳塞在步骤B1中发送的第二BLE可连接广播消息,均不包括第一耳塞的名称和第一耳塞对应的TWS耳机的名称。在步骤A4、B2或C0中,若手机通过BLE方式确定第一耳塞支持双发模式,且未通过BR/EDR方式发现第一耳塞,则手机可以不显示第一标识。而后,若手机通过BR/EDR方式发现第一耳塞,则可以显示该第一标识。
在用户点击该第一标识后,若手机支持双发模式,则执行双发连接流程;若手机不支持双发模式,则执行监听、转发NFMI等连接流程。
在步骤A4、B2或C0的另一种实施方案中,手机可以显示一个第一标识和一个第二标识,该第一标识可以包括第一耳塞的名称或第一耳塞对应的TWS耳机的名称,该第二标识可以包括第一耳塞的MAC地址或TWS耳机的MAC地址。
例如,在步骤A4、B2或C0中,若手机通过第一BLE不可连接广播消息或不带名称的第二BLE可连接广播消息确定第一耳塞支持双发模式,且未通过BR/EDR方式发现第一耳塞,则手机可以根据第一BLE可连接广播消息或根据第二BLE可连接广播消息显示第二标识;若手机确定自身也支持双发模式,则可以显示第一标识。而后,若手机通过BR/EDR方式发现第一耳塞,则手机确定两种方式发现的设备为同一设备,因而可以仍显示该第一标识,并继续显示第二标识。
再例如,在步骤A4、B2或C0中,若手机通过BLE方式确定第一耳塞支持双发模式,且未通过BR/EDR方式发现第一耳塞,则手机可以显示第二标识;若手机确定自身也支持双发模式,则仍显示该第二标识。而后,若手机通过BR/EDR方式发现第一耳塞,则手机可以显示该第一标识,停止显示该第二标识;或者手机可以显示该第一标识和该第二标识。
又例如,在步骤A4、B2或C0中,若手机通过BR/EDR方式发现第一耳塞,则可以显示第一标识。而后,若手机通过BLE配对广播消息确定第一耳塞和手机支持双发模式,则可以显示第一标识和第二标识。
若手机显示第一标识和第二标识,一种情况下,在用户点击该第一标识后,若手机支持双发模式,则执行双发连接流程;若手机不支持双发模式,则执行监听、转发NFMI等连接流程。当用户点击该第二标识时,手机不会执行连接过程。另一种情况下,当用户点击该第一标识时,手机执行监听、转发NFMI等连接流程。当用户点击该第二标识时,手机执行本申请实施例提供的双发连接流程。
在步骤A4、B2或C0的又一种实施方案中,在手机通过BLE方式发现第一耳塞,且第一耳塞支持双发模式后,可以显示一个第一标识;当手机通过BR/EDR方式发现第一耳塞后,手机可以显示一个第三标识。该第一标识和第三标识均可以包括第一耳塞的名称或第一耳塞对应的TWS耳机的名称。其中,第一标识对应双发连接方案,第三标识对应单发连接方案。示例性的,手机的界面示意图可以参见图12,1201表示第一标识,1202表示第三标识。在手机检测到用户在第一标识1201上的点击操作后,若手机也支持双发,则手机与第一耳塞和第二耳塞之间执行本申请实施例提供的双发连接流程;在手机检测到用户在第三标识1202上的点击操作后,手机与第一耳塞和第二耳塞之间执行监听、转发或NFMI连接流程。
此外,在第一耳塞打开BR/EDR可连接可发现状态后,若第一耳塞确定第一耳塞和手机均支持双发模式(例如第一耳塞接收到手机发送的第二双发标识),则第一耳塞还可以关闭BR/EDR方式。
504、手机通知第一耳塞,手机支持双发模式。
若手机支持双发模式,则手机可以通知第一耳塞,以使得第一耳塞可以执行双发连接流程。例如,该步骤可以是以上步骤B4。需要说明的是,若在步骤503中,手机已经通知过第一耳塞手机支持双发模式(例如在步骤A2中手机向第一耳塞发送第二双发标识),则步骤504也可以省去。
在一实施例中,在手机建立与第一耳塞之间的蓝牙配对连接后,第一耳塞可以将手机的MAC地址转发给第二耳塞。第二耳塞根据手机的MAC地址建立与手机之间的蓝牙配对连接,且手机保持与第一耳塞之间的蓝牙连接。以下对该方案进行具体说明。
505、手机和第二耳塞建立蓝牙连接。
在第一耳塞确定手机也支持双发模式后,可以执行双发连接流程。第一耳塞可以向手机发送第二耳塞的信息(例如第二耳塞的MAC地址),并向第二耳塞发送手机的信息(例如手机的MAC地址),以使得手机和第二耳塞可以通过第一耳塞建立蓝牙连接。
例如,在一种实施方案中,步骤505可以包括:第一耳塞可以向第二耳塞发送连接信息1,该连接信息1中可以包括手机的MAC地址,并指示第二耳塞进入可连接可发现状态。指示第二耳塞进入可连接可发现状态可以是由连接信息1中除手机MAC地址以外的其他内容指示的,如特定的标识;或者通过携带连接信息1的特定消息或消息类型指示的;或者是手机的MAC地址,因为第二耳塞中有第一耳塞的蓝牙地址,收到第一耳塞发来的其他MAC地址,则第二耳塞可以识别出来,从而进入可连接可发现状态,与手机连接。第二耳塞可以根据连接信息1建立与手机之间的蓝牙连接,且手机与第一耳塞之间保持蓝牙连接。在第二耳塞建立与手机之间的蓝牙连接后,由于第一耳塞与手机之前已建立了蓝牙连接,因而实现了手机与TWS耳机的两只耳塞之间的双发连接。
第一耳塞接收到手机发送的第二双发标识后,确定手机也支持双发模式,因而可以执行双发连接的流程。在双发连接流程的过程中,由于在第一耳塞与手机建立蓝牙配对连接后,第一耳塞中保存有手机的MAC地址,因而第一耳塞可以通过连接信息1将手机的MAC地址转发给第二耳塞,以便于第一耳塞根据手机的MAC地址建立与手机之间的蓝牙配对连接。
此外,连接信息1中还可以包括手机与第一耳塞之间的跳频方式、时钟等链路信息,以使得第二耳塞可以根据手机与第一耳塞之间的链路信息建立链路,从而与手机与第一耳塞之间的链路保持同步,使得第一耳塞和第二耳塞能够播放播放立体声音乐。
其中,当第一耳塞和第二耳塞之间为BR/EDR连接时,第一耳塞可以根据SPP协议向第二耳塞发送连接信息1;当第一耳塞和第二耳塞之间为BLE连接时,第一耳塞可以根据GATT协议向第二耳塞发送连接信息1。
在一实施例中,在步骤505中,第二耳塞可以主动连接手机。参见图13,步骤505具体可以包括:
D0、第一耳塞向第二耳塞发送连接信息1,以指示第二耳塞可连接手机。
D1、第二耳塞接收到连接信息1后,进入可连接可发现状态,以便可以主动连接其他设备或被其他设备连接。
D2、第二耳塞根据连接信息1,向手机发送连接请求信息。
具体的,第二耳塞可以根据连接信息1中的手机的MAC地址等信息,主动发起对手机的连接。该连接请求信息中可以包括第二耳塞的MAC地址,以使得连接请求信息的接收者可以获知请求建立连接的设备的身份。
需要说明的是,在本文的步骤505中,手机、第一耳塞、第二耳塞之间交互的信 息(例如,连接信息、通知信息、连接成功信息等)可以是遵循GATT协议的BLE消息,也可以是遵循SPP协议的BR/EDR消息,本申请实施例不予限定。
例如,该连接请求信息可以是BLE的ADV_DIRECT_IND消息或ADV_IND消息等;或者,该连接请求可以是BR/EDR的page消息等。
D3、第二耳塞向第一耳塞发送通知信息1。
其中,通知信息1可以用于通知第一耳塞,第二耳塞将请求连接手机,或者第二耳塞已进入可连接可发现状态。
需要注意的是,步骤D2可以在步骤D3之前,也可以在步骤D3之后,本申请实施例不予限定。
D4、第一耳塞在接收到第二耳塞发送的通知信息1后,向手机发送通知信息2。
其中,通知信息2中可以包括第二耳塞的MAC地址,可以表明第二耳塞与第一耳塞配对使用,使得手机获知请求与手机连接的第一耳塞的配对设备的身份。通知信息2可以用于通知手机,第二耳塞将请求连接手机,或者第二耳塞已进入可连接可发现状态,手机可连接第二耳塞。
需要注意的是,步骤D2可以在步骤D4之前,也可以在步骤D4之后,本申请实施例不予限定。
当手机接收到通知信息2中的第二耳塞的MAC地址后,可以确定第一耳塞和第二耳塞作为一对设备使用。
D5、手机接收到通知信息2和连接请求信息后,向第二耳塞发送连接成功信息。
具体的,手机在接收到第二耳塞发送的连接请求信息后,若确定连接请求信息中的MAC地址,与第一耳塞发送的通知信息2中的第二耳塞的MAC地址一致,则可以表明请求与手机建立连接的设备是第一耳塞指示的设备,因而手机可以向第二耳塞发送连接成功信息,从而成功建立与第二耳塞之间的蓝牙连接,实现手机与TWS耳机的双发连接。
例如,与连接请求信息相对应,连接成功信息可以是BLE的CONNECT_IND消息,或者BR/EDR的page response消息等。
在另一实施例中,作为上述步骤D2-D4的一种替换,第二耳塞可以通过第一耳塞的转发,将连接请求信息发送给手机,比如步骤D2的连接请求信息通过第一耳塞转发。进一步地,还可以在转发过程中,第二耳塞将通知信息1发送给第一耳塞,第一耳塞将通信信息2发送给手机。
在另一实施例中,第一耳塞也可以在步骤503中将第二耳塞的MAC地址通知给手机,以使得手机获知第一耳塞和第二耳塞的配对关系。例如,第一耳塞可以通过BLE不可连接广播消息、BLE可连接广播消息等将第二耳塞的MAC地址也发送给手机,以表明第一耳塞和第二耳塞配对使用,指示手机可连接第二耳塞。这样,在上述D0-D5描述的方案中,步骤D3和D4也可以省去;并且在步骤D5中,手机接收到第二耳塞发送的连接请求信息后,若确定第一耳塞在步骤503中发送的第二耳塞的MAC地址,与连接请求信息中的MAC地址一致,则向第二耳塞发送连接成功信息,从而成功建立与第二耳塞之间的蓝牙连接,实现手机与TWS耳机的双发连接。
在另一实施例中,在步骤505中,手机可以主动连接第二耳塞。参见图14,步骤 505具体可以包括:
E0、第一耳塞向第二耳塞发送连接信息1,以指示第二耳塞可连接手机。
E1、第二耳塞接收到连接信息1后,进入可连接可发现状态,以便可以主动连接其他设备或被其他设备连接。
E2、第二耳塞向第一耳塞发送通知消息3。
其中,通知消息3可以用于通知第一耳塞,第二耳塞已进入可连接可发现状态,或者第二耳塞可以被连接。
E3、第一耳塞在接收到第二耳塞发送的通知信息3后,向手机发送通知信息4。
其中,通知信息4中包括第二耳塞的MAC地址,可以表明第二耳塞与第一耳塞配对使用。通知信息4可以用于通知手机主动连接第二耳塞;或者第二耳塞已进入可连接可发现状态。第一耳塞可以在通知信息3中接收第二耳塞的MAC地址,也可以在之前与第二耳塞进行无线连接时获得第二耳塞的MAC地址。
E4、手机接收到通知信息4后,向第二耳塞发送连接请求信息。
具体的,手机可以根据通知信息4中的第二耳塞的MAC地址,向第二耳塞发送连接请求信息。连接请求信息中可以包括手机的MAC地址,以使得连接请求信息的接收者可以获知请求建立连接的设备的身份。
E5、第二耳塞在接收到连接请求信息后,向手机发送连接成功信息。
具体的,第二耳塞在接收到连接请求信息后,若确定连接请求信息中手机的MAC地址,与第一耳塞发送的连接信息1中手机的MAC地址一致,则可以表明请求与第二耳塞建立连接的设备是第一耳塞指示的设备,因而第二耳塞可以向手机发送连接成功信息。
在另一实施例中,第一耳塞也可以在步骤503中将第二耳塞的MAC地址通知给手机,以使得手机获知第一耳塞和第二耳塞的配对关系。例如,第一耳塞可以通过第一BLE不可连接广播消息、第一可连接广播消息、第二可连接广播消息等将第二耳塞的MAC地址也发送给手机,以表明第一耳塞和第二耳塞配对使用,且手机可以连接第二耳塞。这样,在上述步骤E0-E5描述的方案中,步骤E2和E3也可以省去,在步骤E4中,手机可以根据第一耳塞在步骤503中发送的第二耳塞的MAC地址,向第二耳塞发送连接请求信息。
在步骤505中建立手机与第二耳塞之间的配对连接后,手机与TWS耳机之间即实现的双发连接,此时手机和/或TWS耳机可以通过声音、显示、振动、指示灯等方式提示用户已与TWS耳机建立配对连接。示例性的,参见图15中的(a),手机可以在状态栏显示TWS耳机的图标1501,表示与TWS耳机建立了蓝牙配对连接。再示例性的,参见图15中的(b),TWS耳机的显示屏上显示有手机的图标1502,表示TWS耳机与手机建立了配对连接。
再例如,在另一种实施方案中,步骤505可以包括:第一耳塞可以向手机发送连接信息2,该连接信息2中可以包括第二耳塞的MAC地址,可以表明第二耳塞与第一耳塞配对使用,以指示手机可以连接第二耳塞。手机可以根据连接信息2建立与第二耳塞之间的蓝牙连接,且手机与第一耳塞之间保持蓝牙连接。
在该方案中,在第一耳塞与第二耳塞建立蓝牙配对连接后,第一耳塞中保存有第 二耳塞的MAC地址,因而第一耳塞可以通过连接信息2将第二耳塞的MAC地址转发给手机,以便于第二耳塞根据手机的MAC地址建立与手机之间的蓝牙配对连接。手机接收到第一耳塞发送的连接信息2中第二耳塞的MAC地址后,可以确定第一耳塞和第二耳塞作为一对设备使用。
在一实施例中,在步骤505中,手机可以主动连接第二耳塞。参见图16,步骤505具体可以包括:
F0、第一耳塞向手机发送连接信息2,以指示第二耳塞与第一耳塞配对使用。
手机接收到连接信息2后,获知可连接第二耳塞。
F1、手机在接收到连接信息2后,向第一耳塞发送通知信息5。
F2、第一耳塞接收到通知信息5后,向第二耳塞发送通知信息6,以指示第二耳塞可连接手机。
其中,通知消息6中可以包括手机的MAC地址,第二耳塞可以根据通知信息6获知可以连接手机。
可以理解地,第一耳塞可以不等到收到通知信息5,就向第二耳塞发送通知信息6,即步骤F1可以省去。
F3、第二耳塞在接收到通知信息6后,进入可连接可发现状态,以便可以与其他设备进行连接。
也就是说,在步骤F1-F3中,手机可以通过第一耳塞通知第二耳塞进入可连接可发现状态,以便可以与手机进行连接。
F4、手机在接收到连接信息2后,向第二耳塞发送连接请求信息。
F5、第二耳塞在接收到通知信息6和连接请求信息后,向手机发送连接成功信息。
若第二耳塞确定连接请求信息中手机的MAC地址与通知信息6中的手机的MAC地址一致,则可以表明请求与第二耳塞建立连接的设备是第一耳塞指示的设备,因而第二耳塞可以向手机发送连接成功信息。
其中,关于步骤F0-F5的具体实现过程可以参见步骤D0-D5的相关描述,此处不予赘述。
在另一实施例中,作为上述步骤F1-F4的一种替换,手机可以通过第一耳塞的转发,将连接请求信息发送给第二耳塞。
在另一实施例中,在步骤505中,第二耳塞可以主动连接手机。参见图17,步骤505可以包括:
G0、第一耳塞向手机发送连接信息2,以指示第二耳塞与第一耳塞配对使用。
手机接收到连接信息2后,获知可连接第二耳塞。
G1、手机接收到连接信息2后,向第一耳塞发送通知信息7。
G2、第一耳塞接收到通知信息7后,向第二耳塞发送通知信息8,以指示第二耳塞可连接耳机。
其中,通知消息8中可以包括手机的MAC地址。
G3、第二耳塞在接收到通知信息8后,进入可连接可发现状态,以便可以与其他设备进行连接。
也就是说,在步骤G1-G3中,手机可以通过第一耳塞通知第二耳塞进入可连接可 发现状态,以便可以与手机进行连接。
G4、第二耳塞根据通知信息8,向手机发送连接请求信息。
其中,手机可以根据通知消息8中手机的MAC地址,向手机发送连接请求信息。
G5、手机在接收到连接请求信息后,向第二耳塞发送连接成功信息。
若手机确定连接信息2中第二耳塞的MAC地址,与第一耳塞发送的连接请求信息中第二耳塞的MAC地址一致,则可以表明请求与手机建立连接的设备是第一耳塞指示的设备,因而手机可以向第二耳塞发送连接成功信息。
其中,关于步骤G0-G5的具体实现过程可以参见步骤E0-E5的相关描述,此处不予赘述。
此外,在步骤505之后,手机和/或第二耳塞还可以通知第一耳塞,手机和第二耳塞已建立蓝牙连接。
可以理解的是,手机和第二耳塞通过第一耳塞的媒介作用建立蓝牙连接的方式还可以有其他方式,以上方式仅为举例说明,并不作为具体限定。
在建立手机与第二耳塞之间的配对连接后,手机可以保持分别与第一耳塞和第二耳塞之间的蓝牙连接,从而保持手机与TWS耳机之间的双发连接。
在手机实现与第一耳塞和第二耳塞的双发连接后,手机可以关联存储第一耳塞和第二耳塞的MAC地址,以表明第一耳塞和第二耳塞是作为一对设备使用的。
在建立双发连接后,第一耳塞与第二耳塞之间可以保持无线连接,也可以断开无线连接。即,可选地,在步骤505之后,参见图5,该方法还可以包括:
506、第一耳塞和第二耳塞之间断开无线连接。
在建立双发连接后,手机可以分别向第一耳塞和第二耳塞发送音频数据,第一耳塞和第二耳塞同步播放对应声道的音频信号。例如,用户可以使用第一耳塞和第二耳塞播放音乐。
可以理解的是,若用户先启动播放音乐,后点击第一耳塞的第一标识从而建立手机与TWS的双连接;则在建立TWS耳机的双连接后,才使用TWS耳机播放音乐。若用户先点击第一耳塞的第一标识从而建立手机与TWS的双连接,后启动播放音乐;则在用户启动播放音乐后,即可使用TWS耳机播放音乐。
在一实施例中,手机可以向第一耳塞和第二耳塞均发送立体声音频数据(包括左声道数据和右声道数据);第一耳塞和第二耳塞分别从中提取一个对应声道的音频数据进行播放。
在另一实施例中,第一耳塞和第二耳塞可以分别从手机接收一个对应声道的音频数据进行播放。在该方案中,第一耳塞和第二耳塞从手机接收的音频数据量少,音频码率低,因而可以减小无线环境被干扰的概率和传输时延;并且,还可以减少每只耳塞射频收信机的工作时间,降低耳塞的功耗。
此外,在播放音乐的过程中,用户可以通过在耳塞上的触摸操作、在手机上的触发操作或者通过语音指示暂停、播放、上一首、下一首等,手机和TWS耳机之间可以通过双发连接及时响应和处理。并且,TWS耳机上的MIC采集到的语音数据,还可以通过每只耳塞各自与手机之间的连接通道发送给手机。
以上实施例是以发现过程中,第一耳塞发送BLE的Primary广播消息为例进行说 明的,第一耳塞也可以发送Secondary广播消息以使得第一耳塞被手机发现。例如,作为步骤B2中ADV_IND该Primary广播消息的替换,第一耳塞可以发送ADV_EXT_IND消息(Primary广播消息),以及AUX_ADV_IND消息、AUX_SCAN_RSP消息、AUX_SYNC_IND消息等一系列的Secondary广播消息。与发送Secondary广播消息相比,第一耳塞发送Primary广播消息,能够更快地被手机发现,从而提高与手机的连接效率。
此外,手机和第一耳塞之间还可以通过其他方式进行发现。例如,用户在打开手机的蓝牙功能后,还可以开启蓝牙搜索功能,此时手机进入蓝牙扫描状态,并跳频扫描其他设备;第一耳塞可以跳频发送配对广播消息;当手机和第一耳塞跳频到同一频段时,手机检测到第一耳塞的配对广播消息,从而发现第一耳塞,进而与第一耳塞建立蓝牙连接。而后,手机和第一耳塞可以执行以上实施例中的其他步骤。
以上主要阐述了首次建立手机与TWS耳机的双发连接过程,后续再次建立该手机与该TWS耳机的双发连接时,在一种实施方案中,TWS耳机和手机之间可以重新执行本申请以上实施例提供的连接方法。在另一种实施方案中,TWS耳机可以自动回连到手机,比如不需要执行上述双方表明各自支持双发模式的等步骤,从而可以提高连接效率,以下进行举例说明。
例如,在一实施例中,手机上保存有与第一耳塞和第二耳塞的配对历史,手机在接收到第一耳塞的广播消息后,确定已与第一耳塞和第二耳塞配对,从而自动建立与第一耳塞和第二耳塞之间的双发连接。例如,手机上保存有相关联的第一耳塞和第二耳塞的MAC地址,手机可以根据该MAC地址直接寻呼第一耳塞和第二耳塞,建立与第一耳塞和第二耳塞之间的双发连接。再例如,手机根据第一耳塞的MAC地址自动寻呼第一耳塞,从而建立与第一耳塞之间的蓝牙连接,手机和第二耳塞通过第一耳塞转发的手机或第二耳塞的MAC地址建立蓝牙连接,从而实现双发连接。再例如,手机接收到第一耳塞的配对广播消息后,根据保存的MAC地址确定已与第一耳塞配对,从而建立与第一耳塞之间的蓝牙连接;同样地,手机可以建立与第二耳塞之间的蓝牙连接,从而实现双发连接。
在另一实施例中,第一耳塞和第二耳塞上保存有手机的MAC地址,表明TWS耳机已与手机配对,因而第一耳塞和第二耳塞可以根据手机的MAC地址直接寻呼手机,从而建立第一耳塞、第二耳塞与手机之间的双发连接。
在另一实施例中,第一耳塞上保存有手机的MAC地址,并将手机的MAC地址转发给第二耳塞,第一耳塞和第二耳塞检测到手机的配对广播后,与手机建立蓝牙连接。
在建立手机与TWS耳机的双发连接后,后续若需要建立手机与其他TWS耳机之间的双发连接,或者需要建立其他手机与TWS耳机之间的双发连接,则可以重新执行上述首次建立双发连接的流程。
在另一实施例中,用户使用第一耳塞听音乐,第一耳塞与手机之间建立了蓝牙连接,第一耳塞处于单耳模式;在用户想要使用一对TWS耳机时,TWS耳机可以切换为双耳模式。在一种方案中,第一耳塞和第二耳塞之间建立无线连接,第二耳塞和手机通过第一耳塞建立蓝牙连接,从而通过双发连接通道进行音乐播放。在另一种方案中,手机和TWS耳机执行上述实施例中首次建立双发连接的流程,重新建立第一耳塞 与手机之间的蓝牙连接,并建立第二耳塞与手机之间的蓝牙连接,从而通过双发连接通道进行音乐播放。在建立手机与TWS耳机的双发连接后,用户可以通过两只TWS耳塞播放立体声音乐。若用户后续只使用一只TWS耳塞,则不被使用的另一只耳塞可以保持与手机之间的蓝牙连接;或者,另一只耳塞也可以断开与手机之间的蓝牙连接,从而切换为单耳模式,例如当另一只耳塞出耳时,手机可以断开另一只耳塞与手机之间的蓝牙连接。
可以理解的是,为了实现上述功能,电子设备、第一无线耳塞和第二无线耳塞包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备、第一无线耳塞和第二无线耳塞进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图18示出了上述实施例中涉及的电子设备1800的一种可能的组成示意图,如图18所示,该电子设备1800可以包括:开启单元1801、建立单元1802和交互单元1803。
其中,开启单元1801可以用于支持电子设备1800执行上述步骤500等,和/或用于本文所描述的技术的其他过程。
建立单元1802可以用于支持电子设备1800执行上述步骤503-505等,和/或用于本文所描述的技术的其他过程。
交互单元1803可以用于支持电子设备1800执行上述步骤A4,B2,C0等显示标识,并接收用户操作,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的电子设备1800,用于执行上述蓝牙连接方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,电子设备1800可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备1800的动作进行控制管理,例如,可以用于支持电子设备1800执行上述开启单元1801、建立单元1802和交互单元1803执行的步骤。存储模块可以用于支持电子设备1800存储第一无线耳塞的MAC地址、第二无线耳塞的MAC地址等,以及存储程序代码和数据等。通信模块,可以用于支持电子设备1800与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP) 和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图2所示结构的电子设备。
在采用对应各个功能划分各个功能模块的情况下,图19示出了上述实施例中涉及的第一无线耳塞1900的一种可能的组成示意图,如图19所示,该第一无线耳塞1900可以包括:耳塞连接单元1901、电子设备连接单元1902和双发连接单元1903。
其中,耳塞连接单元1901可以用于支持第一无线耳塞1900执行上述步骤501、506等,和/或用于本文所描述的技术的其他过程。
电子设备连接单元1902可以用于支持第一无线耳塞1900执行上述步骤503等,和/或用于本文所描述的技术的其他过程。
双发连接单元1903可以用于支持第一无线耳塞1900执行上述步骤505等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的第一无线耳塞1900,用于执行上述蓝牙连接方法,因此可以达到与上述实现方法相同的效果。
在采用对应各个功能划分各个功能模块的情况下,图20示出了上述实施例中涉及的第二无线耳塞2000的一种可能的组成示意图,如图20所示,该第二无线耳塞2000可以包括:建立单元2001和处理单元2002。
其中,建立单元2001可以用于支持第二无线耳塞2000执行上述步骤501、步骤506等,和/或用于本文所描述的技术的其他过程。
处理单元2002可以用于支持第二无线耳塞2000执行上述步骤505等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的第二无线耳塞2000,用于执行上述蓝牙连接方法,因此可以达到与上述实现方法相同的效果。
本申请的实施例还提供一种无线设备,该无线设备可以包括图18所示的第一无线耳塞和图19所示的第二无线耳塞。该第一无线耳塞和第二无线耳塞可以实现上述方法实施例提供的蓝牙连接方法。例如,该无线设备可以是TWS耳机。
本申请的实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备、第一无线耳塞或第二无线耳塞上运行时,使得电子设备、第一无线耳塞或第二无线耳塞执行上述相关方法步骤实现上述实施例中的蓝牙连接方法。
本申请的实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中电子设备执行的蓝牙连接方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块, 该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中电子设备、第一无线耳塞或第二无线耳塞执行的蓝牙连接方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
本申请另一实施例提供了一种***,该***可以包括上述电子设备、上述第一无线耳塞和上述第二无线耳塞,可以用于实现上述蓝牙连接方法。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种应用于电子设备与一对无线耳塞的蓝牙连接方法,所述一对无线耳塞包括第一无线耳塞和第二无线耳塞,其特征在于,所述方法包括:
    所述电子设备建立与所述第一无线耳塞之间的第一蓝牙连接,所述第一无线耳塞和所述第二无线耳塞之间具有无线连接;
    所述电子设备通过所述第一无线耳塞建立与所述第二无线耳塞之间的第二蓝牙连接;
    所述电子设备同时保持所述第一蓝牙连接和所述第二蓝牙连接。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述电子设备通过所述第一蓝牙连接,向所述第一无线耳塞发送音频数据;
    所述电子设备通过所述第二蓝牙连接,向所述第二无线耳塞发送音频数据。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述电子设备建立与所述第二无线耳塞之间的第二蓝牙连接之前,所述方法还包括:
    所述电子设备接收所述第一无线耳塞发送的指示所述第二无线耳塞与所述第一无线耳塞配对使用的信息。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述电子设备建立与所述第二无线耳塞之间的第二蓝牙连接之前,所述方法还包括:
    所述电子设备接收所述第一无线耳塞发送的第一识别信息,所述第一识别信息指示所述一对无线耳塞的第一无线耳塞和第二无线耳塞支持与所述电子设备同时保持蓝牙连接;
    所述电子设备向所述第一无线耳塞发送第二识别信息,所述第二识别信息指示所述电子设备支持与一对无线耳塞中的两只无线耳塞同时保持蓝牙连接。
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备向所述第一无线耳塞发送第二识别信息,包括:
    所述电子设备显示所述第一无线耳塞的标识;
    所述电子设备在检测到用户针对所述标识的操作后,向所述第一无线耳塞发送所述第二识别信息。
  6. 根据权利要求4或5所述的方法,其特征在于,所述电子设备通过低功耗蓝牙BLE消息发送所述第二识别信息。
  7. 一种应用于一对无线耳塞与电子设备的蓝牙连接方法,所述一对无线耳塞包括第一无线耳塞和第二无线耳塞,其特征在于,所述方法包括:
    所述第一无线耳塞建立与所述第二无线耳塞之间的无线连接;
    所述第一无线耳塞建立与所述电子设备之间的第一蓝牙连接;
    所述第一无线耳塞向所述电子设备发送所述第二无线耳塞的信息,以及向所述第二无线耳塞发送所述电子设备的信息,以使得所述第二无线耳塞与所述电子设备建立第二蓝牙连接;
    所述第一蓝牙连接和所述第二蓝牙连接被同时保持。
  8. 根据权利要求7所述的方法,其特征在于,在所述第一无线耳塞向所述第二无线耳塞发送所述的电子设备的信息之前,所述方法还包括:
    所述第一无线耳塞向所述电子设备发送第一识别信息,所述第一识别信息指示所述一对无线耳塞的第一无线耳塞和第二无线耳塞支持与所述电子设备同时保持蓝牙连接;
    所述第一无线耳塞接收所述电子设备发送的第二识别信息,所述第二识别信息指示所述电子设备支持与一对无线耳塞中的两只无线耳塞同时保持蓝牙连接。
  9. 根据权利要求8所述的方法,其特征在于,所述第一无线耳塞向所述电子设备发送第一识别信息,包括:
    所述第一无线耳塞通过低功耗蓝牙BLE不可连接广播消息或低功耗蓝牙BLE可连接广播消息,向所述电子设备发送所述第一识别信息。
  10. 根据权利要求7-9任一项所述的方法,其特征在于,在所述第一无线耳塞建立与第二无线耳塞之间的无线连接之后,且在所述第一无线耳塞向所述第二无线耳塞发送所述电子设备的信息之前,所述方法还包括:
    所述第二无线耳塞进入不可连接不可发现状态;
    在所述第一无线耳塞向所述第二无线耳塞发送所述电子设备的信息之后,所述方法还包括:
    所述第二无线耳塞进入可连接可发现状态;
    所述第二无线耳塞与所述电子设备建立第二蓝牙连接,包括:
    进入可连接可发现状态的第二无线耳塞与所述电子设备建立所述第二蓝牙连接。
  11. 根据权利要求7-10任一项所述的方法,其特征在于,在所述第二无线耳塞与所述电子设备建立第二蓝牙连接之后,所述方法还包括:
    所述第一无线耳塞和所述第二无线耳塞断开无线连接。
  12. 一对无线耳塞,其特征在于,所述一对无线耳塞包括第一无线耳塞和第二无线耳塞,所述第一无线耳塞和所述第二无线耳塞用于执行如权利要求7-11任一项所述的蓝牙连接方法。
  13. 一种电子设备,包括触摸屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1-11中任一项所述的蓝牙连接方法。
  14. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-11中任一项所述的蓝牙连接方法。
  15. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-11中任一项所述的蓝牙连接方法。
  16. 一种装置,其特征在于,所述装置为芯片,所述装置包括相连的处理器和存储器;其中,所述存储器用于存储计算机执行指令,当所述装置运行时,所述处理器可执行所述存储器存储的计算机执行指令,以使得所述芯片执行如权利要求1-11中任一项所述的电子设备、所述的第一无线耳塞或所述的第二无线耳塞执行的蓝牙连接方法。
PCT/CN2018/118783 2018-11-30 2018-11-30 一种蓝牙连接方法及设备 WO2020107485A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP18941156.4A EP3879845A4 (en) 2018-11-30 2018-11-30 BLUETOOTH CONNECTION PROCESS AND DEVICE
US17/298,289 US11653398B2 (en) 2018-11-30 2018-11-30 Bluetooth connection method and device
PCT/CN2018/118783 WO2020107485A1 (zh) 2018-11-30 2018-11-30 一种蓝牙连接方法及设备
CN201880098318.4A CN112789867B (zh) 2018-11-30 2018-11-30 一种蓝牙连接方法及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/118783 WO2020107485A1 (zh) 2018-11-30 2018-11-30 一种蓝牙连接方法及设备

Publications (1)

Publication Number Publication Date
WO2020107485A1 true WO2020107485A1 (zh) 2020-06-04

Family

ID=70854733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/118783 WO2020107485A1 (zh) 2018-11-30 2018-11-30 一种蓝牙连接方法及设备

Country Status (4)

Country Link
US (1) US11653398B2 (zh)
EP (1) EP3879845A4 (zh)
CN (1) CN112789867B (zh)
WO (1) WO2020107485A1 (zh)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800836A (zh) * 2020-06-30 2020-10-20 北京小米移动软件有限公司 一种通信方法、装置、电子设备及存储介质
CN112020048A (zh) * 2020-09-04 2020-12-01 歌尔科技有限公司 蓝牙设备的配对方法、设备及存储介质
CN112104943A (zh) * 2020-09-22 2020-12-18 深圳市汇顶科技股份有限公司 一种地址传输方法、蓝牙芯片、蓝牙耳机以及电子设备
CN112291683A (zh) * 2020-10-15 2021-01-29 广州安凯微电子股份有限公司 Tws耳机的控制方法及装置
CN112422254A (zh) * 2020-11-03 2021-02-26 深圳市卓翼科技股份有限公司 通信方法、***、装置、计算机设备和存储介质
CN113194450A (zh) * 2021-05-06 2021-07-30 维沃移动通信有限公司 蓝牙设备管理方法及装置
WO2022251847A1 (en) * 2021-05-27 2022-12-01 Qualcomm Incorporated Spatial audio data exchange
WO2024001134A1 (zh) * 2022-06-30 2024-01-04 Oppo广东移动通信有限公司 音频设备的连接方法、装置、存储介质及设备
WO2024066694A1 (zh) * 2022-09-28 2024-04-04 Oppo广东移动通信有限公司 音频设备的连接方法、装置、存储介质及设备
TWI841141B (zh) 2022-01-07 2024-05-01 聯發科技股份有限公司 電子設備的控制方法、電子設備的電路以及電子設備

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600694B (zh) * 2019-01-16 2020-08-11 歌尔科技有限公司 一种无线耳机的配对方法、装置、终端及充电盒
US20220321368A1 (en) * 2019-08-29 2022-10-06 Intellectual Discovery Co., Ltd. Method, device, computer program, and recording medium for audio processing in wireless communication system
US11737158B2 (en) * 2019-11-14 2023-08-22 Dsp Group Ltd. True wireless stereo system and method
TWI779337B (zh) * 2020-08-24 2022-10-01 瑞昱半導體股份有限公司 藍牙耳機系統以及藍牙耳機收納暨充電盒
EP4300994A4 (en) * 2021-04-30 2024-06-19 Samsung Electronics Co., Ltd. METHOD AND ELECTRONIC DEVICE FOR RECORDING AUDIO DATA FROM MULTIPLE DEVICES
CN115708373A (zh) * 2021-08-18 2023-02-21 Oppo广东移动通信有限公司 蓝牙音频的接收方法、装置、终端及存储介质
CN113853031B (zh) * 2021-09-18 2024-04-02 雅迪科技集团有限公司 头盔的连接方式切换方法及装置
CN113660732B (zh) * 2021-10-20 2022-03-01 翱捷科技(深圳)有限公司 一种耳机通信方法、***及一种耳机
JP2023102074A (ja) * 2022-01-11 2023-07-24 パナソニックIpマネジメント株式会社 ワイヤレスヘッドフォンおよびワイヤレスヘッドフォンの制御方法
CN114945208A (zh) * 2022-04-30 2022-08-26 恒玄科技(上海)股份有限公司 一种降低功耗的方法、***和耳机对
CN117119416A (zh) * 2022-05-17 2023-11-24 华为技术有限公司 通信方法、***及相关设备
CN117319968A (zh) * 2022-06-21 2023-12-29 Oppo广东移动通信有限公司 设备连接方法、装置、音频播放设备及装置
CN115119336B (zh) * 2022-08-23 2023-01-13 荣耀终端有限公司 耳机连接***、方法、耳机、电子设备及可读存储介质
CN115175065B (zh) * 2022-09-06 2023-01-17 荣耀终端有限公司 广播方法、tws耳机及存储介质
CN118057899A (zh) * 2022-11-21 2024-05-21 Oppo广东移动通信有限公司 设备控制方法、装置、终端设备及存储介质
CN116016751A (zh) * 2022-12-26 2023-04-25 Oppo广东移动通信有限公司 设备显示方法、广播方法、装置、电子设备及存储介质
CN116887388B (zh) * 2023-09-06 2023-12-01 荣耀终端有限公司 通信处理方法、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204669601U (zh) * 2015-06-23 2015-09-23 上海艾斯玛特智能科技有限公司 一种全无线高保真音响***
CN107708014A (zh) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 无线耳机主从关系自动切换的方法、装置及无线耳机
US20180083468A1 (en) * 2016-09-21 2018-03-22 Otter Products, Llc Charging apparatus for wireless earphone
CN108345591A (zh) * 2018-01-26 2018-07-31 歌尔股份有限公司 基于移动终端双耳无线耳机的语音实时翻译方法及***
CN108810741A (zh) * 2018-06-14 2018-11-13 歌尔科技有限公司 一种双无线耳机连接的方法、装置及无线耳机
CN108881990A (zh) * 2018-06-25 2018-11-23 努比亚技术有限公司 音频播放方法、终端及计算机存储介质

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9191988B2 (en) * 2012-05-26 2015-11-17 Qualcomm Incorporated Smart pairing using bluetooth technology
CN104794097A (zh) * 2014-01-22 2015-07-22 李振华 可动态组合和调整的个人工作***
KR20160042569A (ko) * 2014-10-10 2016-04-20 삼성전자주식회사 다중 연결 방법 및 이를 지원하는 전자 장치
CN104540175B (zh) 2014-11-26 2019-04-02 青岛歌尔声学科技有限公司 一种不间断蓝牙连接的切换方法、蓝牙设备和***
US10015623B2 (en) 2016-06-17 2018-07-03 Nxp B.V. NFMI based robustness
CN107071618A (zh) 2017-04-26 2017-08-18 歌尔科技有限公司 一种连接双耳蓝牙耳机的方法和装置
CN107885478A (zh) 2017-09-21 2018-04-06 广东思派康电子科技有限公司 计算机可读存储介质、通信***
CN107894881A (zh) 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 蓝牙耳机的主从连接切换、通话监听和麦克切换的方法
US10244307B1 (en) 2018-02-09 2019-03-26 Bestechnic (Shanghai) Co., Ltd. Communication of wireless headphones
CN108462951A (zh) 2018-03-30 2018-08-28 联想(北京)有限公司 一种数据通信方法、***和电子设备
CN108810697B (zh) * 2018-06-14 2019-12-06 歌尔科技有限公司 一种无线耳机配对的方法、装置及无线耳机
CN109347581B (zh) * 2018-09-30 2020-11-27 Oppo广东移动通信有限公司 蓝牙耳机连接方法、装置、电子设备及存储介质
CN109495850A (zh) * 2018-11-01 2019-03-19 Oppo广东移动通信有限公司 耳机与终端的连接方法、装置及耳机盒

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204669601U (zh) * 2015-06-23 2015-09-23 上海艾斯玛特智能科技有限公司 一种全无线高保真音响***
US20180083468A1 (en) * 2016-09-21 2018-03-22 Otter Products, Llc Charging apparatus for wireless earphone
CN107708014A (zh) * 2017-11-08 2018-02-16 深圳市沃特沃德股份有限公司 无线耳机主从关系自动切换的方法、装置及无线耳机
CN108345591A (zh) * 2018-01-26 2018-07-31 歌尔股份有限公司 基于移动终端双耳无线耳机的语音实时翻译方法及***
CN108810741A (zh) * 2018-06-14 2018-11-13 歌尔科技有限公司 一种双无线耳机连接的方法、装置及无线耳机
CN108881990A (zh) * 2018-06-25 2018-11-23 努比亚技术有限公司 音频播放方法、终端及计算机存储介质

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800836A (zh) * 2020-06-30 2020-10-20 北京小米移动软件有限公司 一种通信方法、装置、电子设备及存储介质
CN111800836B (zh) * 2020-06-30 2024-01-16 北京小米移动软件有限公司 一种通信方法、装置、电子设备及存储介质
CN112020048B (zh) * 2020-09-04 2022-06-21 歌尔科技有限公司 蓝牙设备的配对方法、设备及存储介质
CN112020048A (zh) * 2020-09-04 2020-12-01 歌尔科技有限公司 蓝牙设备的配对方法、设备及存储介质
CN112104943A (zh) * 2020-09-22 2020-12-18 深圳市汇顶科技股份有限公司 一种地址传输方法、蓝牙芯片、蓝牙耳机以及电子设备
CN112291683A (zh) * 2020-10-15 2021-01-29 广州安凯微电子股份有限公司 Tws耳机的控制方法及装置
CN112422254A (zh) * 2020-11-03 2021-02-26 深圳市卓翼科技股份有限公司 通信方法、***、装置、计算机设备和存储介质
CN113194450A (zh) * 2021-05-06 2021-07-30 维沃移动通信有限公司 蓝牙设备管理方法及装置
CN113194450B (zh) * 2021-05-06 2023-08-04 维沃移动通信有限公司 蓝牙设备管理方法及装置
WO2022251847A1 (en) * 2021-05-27 2022-12-01 Qualcomm Incorporated Spatial audio data exchange
CN117356114A (zh) * 2021-05-27 2024-01-05 高通股份有限公司 空间音频数据交换
TWI841141B (zh) 2022-01-07 2024-05-01 聯發科技股份有限公司 電子設備的控制方法、電子設備的電路以及電子設備
WO2024001134A1 (zh) * 2022-06-30 2024-01-04 Oppo广东移动通信有限公司 音频设备的连接方法、装置、存储介质及设备
WO2024066694A1 (zh) * 2022-09-28 2024-04-04 Oppo广东移动通信有限公司 音频设备的连接方法、装置、存储介质及设备

Also Published As

Publication number Publication date
CN112789867A (zh) 2021-05-11
EP3879845A1 (en) 2021-09-15
CN112789867B (zh) 2023-02-10
EP3879845A4 (en) 2021-11-24
US20220039179A1 (en) 2022-02-03
US11653398B2 (en) 2023-05-16

Similar Documents

Publication Publication Date Title
WO2020107485A1 (zh) 一种蓝牙连接方法及设备
EP3934292B1 (en) Bluetooth connection method, device and system
US11805350B2 (en) Point-to-multipoint data transmission method and device
WO2020133183A1 (zh) 音频数据的同步方法及设备
WO2020124610A1 (zh) 一种传输速率的控制方法及设备
CN111601199A (zh) 无线耳机盒及***
WO2021043219A1 (zh) 一种蓝牙回连方法及相关装置
WO2021043170A1 (zh) 一种蓝牙连接方法及相关装置
CN112913321B (zh) 一种使用蓝牙耳机进行通话的方法、设备及***
WO2021043198A1 (zh) 一种蓝牙配对方法及相关装置
CN112806092B (zh) 一种麦克风mic切换方法及设备
US20240040481A1 (en) Tws headset connection method and device
WO2020124371A1 (zh) 一种数据信道的建立方法及设备
WO2022105674A1 (zh) 来电接听方法、电子设备及存储介质
CN115426064B (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: 18941156

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018941156

Country of ref document: EP

Effective date: 20210611