WO2024114202A1 - 通信方法及相关设备 - Google Patents

通信方法及相关设备 Download PDF

Info

Publication number
WO2024114202A1
WO2024114202A1 PCT/CN2023/127416 CN2023127416W WO2024114202A1 WO 2024114202 A1 WO2024114202 A1 WO 2024114202A1 CN 2023127416 W CN2023127416 W CN 2023127416W WO 2024114202 A1 WO2024114202 A1 WO 2024114202A1
Authority
WO
WIPO (PCT)
Prior art keywords
headset
electronic device
message
sub
communication connection
Prior art date
Application number
PCT/CN2023/127416
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 华为技术有限公司
Publication of WO2024114202A1 publication Critical patent/WO2024114202A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • 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/14Direct-mode setup

Definitions

  • the present application relates to the field of terminal technology, and in particular to a communication method and related equipment.
  • a user may have multiple electronic devices (such as headphones, watches, mobile phones, etc.) at the same time, and these electronic devices can realize data exchange through communication connections established between each other (such as Bluetooth communication connections).
  • these electronic devices can realize data exchange through communication connections established between each other (such as Bluetooth communication connections).
  • Bluetooth communication connections such as Bluetooth communication connections
  • the embodiments of the present application provide a communication method and related devices, which can conveniently switch communication connections between different devices, simplify user operations, and improve user experience.
  • an embodiment of the present application provides a pairing and connection method, which is applied to a first device, wherein the first device includes a first sub-device and an earphone, and the first sub-device is provided with an earphone slot for accommodating the earphone.
  • the method includes: the first sub-device is paired with the second device and a communication connection is established; the first sub-device sends device information of the earphone to the second device based on the communication connection, and the device information of the earphone is used to pair the second device with the earphone.
  • the first sub-device may be, for example, a smart watch, and the device information of the headset may include the MAC address of the headset.
  • the earpiece can be considered as a whole to be paired with the mobile phone.
  • the mobile phone can obtain the MAC address of the earphone from the watch, so that the mobile phone can automatically pair the earphone based on the MAC address of the earphone, without the need for the user to manually pair the earphone and the mobile phone.
  • the user only needs to pair the earpiece and the mobile phone once.
  • the device information of the earphone is obtained from the earphone by the first sub-device through an electrical connection formed by contact between a communication electrode of the earphone and a communication electrode in the earphone slot.
  • the earphone and the first sub-device can still communicate based on the above electrical connection.
  • a wireless communication connection such as a Bluetooth communication connection
  • the method further includes: the first sub-device is paired with the headset based on the device information of the headset.
  • the first sub-device can automatically pair with the headset based on the acquired device information (such as the MAC address) of the headset, without the need for additional user operations, which is convenient and fast, and improves the user experience.
  • the acquired device information such as the MAC address
  • pairing of the first sub-device with the earphone is performed when the earphone is located in the earphone slot.
  • the first sub-device is paired with the headset based on the device information of the headset, specifically including: if only one ear is located in the headset slot, the first sub-device is paired with the single ear located in the headset slot based on the device information of the headset; if both ears are located in the headset slot, the first sub-device is paired with both ears located in the headset slot based on the device information of the headset.
  • the first sub-device can be paired with both ears at the same time, and can also be paired with a single ear in the earphone slot. After the user subsequently puts another earphone into the earphone slot, the first sub-device can be paired with the earphone alone.
  • the method when the headset is successfully paired with the second device, the method further includes: the first sub-device detects a first operation of the user; in response to the first operation, the first sub-device controls the headset to enter a waiting-for-pairing state; and the headset is paired with a third device.
  • the headset after the headset is paired with the first device, it can also be paired with another device. That is to say, the first sub-device and the headset can be paired with the same device or with different devices.
  • the application scenarios are relatively wide, which improves the user experience.
  • an embodiment of the present application provides a call control method, which is applied to a first device, wherein the first device includes a first sub-device and a headset, the first sub-device establishes a first communication connection with the second device, the first sub-device establishes a second communication connection with the headset, and the headset establishes a third communication connection with a third device, the method including: the first sub-device receives a first message sent by the second device based on the first communication connection, the first message is used to indicate that the second device has received a first incoming call; the first sub-device receives a second message sent by the headset based on the second communication connection, the second message is used to indicate that the third device has received a second incoming call, and the second message is sent by the third device to the headset based on the third communication connection; the first sub-device displays a first incoming call interface based on the first message, or displays a second incoming call interface based on the second message.
  • the first sub-device when both the second device and the third device have incoming calls, the first sub-device can receive the incoming call notification, and the first sub-device can display the incoming call interface of one of the incoming calls, and can subsequently support the user to answer the call. In this way, even if the first sub-device does not establish a wireless communication connection with the incoming call device, the incoming call device can also send the incoming call notification to the first sub-device through the headset, which is more convenient and improves the user experience.
  • the first incoming call interface is the incoming call interface corresponding to the first incoming call.
  • the method also includes: the first sub-device detects a first operation of the user, and the first operation is used to answer the first incoming call; in response to the first operation, the first sub-device sends a third message to the headset based on the second communication connection, and the third message includes device information of the second device; the headset disconnects the third communication connection based on the device information of the second device, and establishes a fourth communication connection with the second device; the first sub-device sends a fourth message to the second device based on the first communication connection, or the headset sends a fourth message to the second device based on the fourth communication connection, and the fourth message is used to instruct the second device to answer the first incoming call; the headset receives and plays the call audio of the first incoming call from the second device based on the fourth communication connection.
  • the first sub-device can display the incoming call interface of the second device, so that the user can answer the incoming call of the second device by operating the incoming call interface.
  • the second incoming call interface is a call interface corresponding to the second incoming call.
  • the method also includes: the first sub-device detects a second operation of the user, and the second operation is used to answer the second incoming call; in response to the second operation, the first sub-device sends a fifth message to the headset based on the second communication connection; the headset sends a sixth message to the third device based on the fifth message, and the sixth message is used to instruct the third device to answer the second incoming call; the headset receives and plays the call audio of the second incoming call from the third device based on the third communication connection.
  • the first sub-device can cancel displaying the second device's incoming call interface and instead display the third device's incoming call interface. In this way, the user can answer the third device's incoming call by operating the incoming call interface.
  • the first device may be a fusion electronic device (for example, a fusion electronic device formed by a watch and headphones), the first sub-device may be an electronic device 200 (for example, a watch), the second device may be an electronic device 100 (for example, a mobile phone A), the third device may be an electronic device 400 (for example, a mobile phone B), the first message may be the incoming call message 1 in Figure 13, the first incoming call may be the incoming call 1 in Figure 13, the second message may be the incoming call message 1", the second incoming call may be the incoming call 1' in Figure 13, the first incoming call interface may be the incoming call interface corresponding to the incoming call 1, the second incoming call interface may be the incoming call interface corresponding to the incoming call 1', the first operation may be the operation of the user answering the incoming call 1, the third message may be the answering message 1 in Figure 13, the fourth message may be the information of the event of connecting the incoming call 1 in Figure 13, the second operation may be the operation of
  • an embodiment of the present application provides a call control method, which is applied to a first device, wherein the first device includes a first sub-device and a headset, a first communication connection is established between the first sub-device and the second device, a second communication connection is established between the first sub-device and the headset, and a third communication connection is established between the headset and the third device.
  • the method includes: the headset receives and plays call audio of a first incoming call from the third device based on the third communication connection; the headset sends a first message to the first sub-device based on the second communication connection, and the first message is used to indicate that the third device has connected the first incoming call; the first sub-device displays a first connection interface based on the first message; the first sub-device receives the second message sent by the second device based on the first communication connection, and the first message is used to indicate that the third device has connected the first incoming call.
  • the second message is used to indicate that the second device has received the second incoming call; the first sub-device switches the first connection interface to the first incoming call interface based on the second message, and detects the user's first operation, and the first operation is used to answer the second incoming call; in response to the first operation, the first sub-device sends a third message to the headset based on the second communication connection, and the third message includes the device information of the second device; the headset disconnects the third communication connection with the second device based on the device information of the second device, and establishes a fourth communication connection; the first sub-device sends a fourth message to the second device based on the first communication connection, or the headset sends a fourth message to the second device based on the fourth communication connection, and the fourth message is used to instruct the second device to answer the second incoming call; the headset based Receive and play call audio of a second incoming call from the second device on the fourth communication connection.
  • the first sub-device when the headset answers a call from a third device and there is an incoming call from the second device, the first sub-device can also display the incoming call interface of the second device. When the user answers the call from the second device, the first sub-device can notify the headset to establish a communication connection with the second device to answer the call from the second device. In this way, the user does not need to manually switch the communication connection, which is convenient and quick, and improves the user experience.
  • the method before the headset receives and plays the call audio of the first incoming call from the third device based on the third communication connection, the method also includes: the headset sends a fifth message to the first sub-device based on the second communication connection, and the fifth message is used to indicate that the third device has received the first incoming call; the first sub-device displays a second incoming call interface based on the fifth message, and detects a second operation of the user, and the second operation is used to answer the first incoming call; in response to the second operation, the first sub-device sends a sixth message to the headset based on the second communication connection; the headset sends a seventh message to the third device based on the sixth message, and the seventh message is used to indicate that the third device answers the first incoming call.
  • the incoming calling device can send an incoming call notification to the first sub-device through the headset, and the call can be answered on the first sub-device, which is more convenient and improves the user experience.
  • the first device may be a fusion electronic device (for example, a fusion electronic device formed by a watch and headphones), the first sub-device may be an electronic device 200 (for example, a watch), the second device may be an electronic device 100 (for example, a mobile phone A), the third device may be an electronic device 400 (for example, a mobile phone B), the first incoming call may be the incoming call 1' in Figure 13, the first message may be the message 1 for connecting the incoming call 1' in Figure 13, the first connection interface may be the connection interface corresponding to the incoming call 1', the second message may be the incoming call message of the second device, the second incoming call may be the incoming call of the second device, the first incoming call interface may be the incoming call interface corresponding to the incoming call of the second device, the first operation may be the operation of answering the second incoming call, the third message may be, for example, the answering message 1 in Figure 13, the fourth message may be the information of connecting the second incoming call event,
  • an embodiment of the present application provides a call control method, which is applied to a first device, wherein the first device includes a first sub-device and an earphone, the first sub-device is provided with an earphone slot for accommodating the earphone, the earphone is in the earphone slot, the first sub-device establishes a first communication connection with the second device, and the first sub-device establishes a second communication connection with the earphone, the method comprising: the first sub-device receives a first message sent by the second device based on the first communication connection, the first message is used to indicate that the second device has received an incoming call; the first sub-device displays an incoming call interface based on the first message, and sends a second message to the earphone based on the second communication connection, the second message includes device information of the second device; the earphone detects that the earphone is taken out of the earphone slot, and the earphone establishes a third communication connection with the second device
  • the first sub-device can notify the earphone of the incoming call.
  • the earphone can automatically establish a communication connection with the second device to answer the incoming call of the second device, thereby simplifying user operations and improving user experience.
  • the method after the earphone detects that the earphone is taken out of the earphone slot, the method also includes: the earphone establishes a fourth communication connection with the first sub-device; the earphone sends a fourth message to the first sub-device based on the fourth communication connection, and the fourth message is used to indicate that the second device has answered the incoming call; the first sub-device displays a connection interface based on the fourth message.
  • the first sub-device can also display the answering interface.
  • the method further includes: the first sub-device detects that the earphone is placed in the earphone slot; the first sub-device sends a fifth message to the earphone, and the earphone sends a sixth message to the second device based on the fifth message, and the sixth message is used to instruct the second device to hang up the call; or, the first sub-device sends a seventh message to the earphone, and the earphone disconnects the second communication connection with the second device based on the seventh message, and the second device plays the call audio of the incoming call.
  • the call can be automatically hung up or automatically transferred to the second device side for answering based on the call strategy that has been set after the earphone is put into the box, which is convenient and fast and improves the user experience.
  • the method further includes: the first sub-device detects a second operation of the user; in response to the second operation, the first sub-device displays a first setting interface, where the first setting interface is used to set the volume of the earphone; or the first device detects a third operation of the user; in response to the third operation, the first sub-device displays a second setting interface, where the second setting interface is used to set the volume of the earphone; The interface is used to set the noise reduction mode of the headset.
  • the user can set the sound and noise reduction mode of the headset on the first sub-device.
  • the first device may be a fusion electronic device (for example, a fusion electronic device formed by a watch and headphones), the first sub-device may be an electronic device 200 (for example, a watch), the second device may be an electronic device 100 (for example, a mobile phone A), the first message may be the incoming call message 1 in Figure 8, the second message may be the incoming call status notification message 1 in Figure 8, the first operation may be, for example, an operation of the user wearing headphones, the third message may be information about the connection event in Figure 8, the fourth message may be message 1 of the connected call in Figure 8, the fifth message may be information about the "in-box hang up" strategy in Figure 8, the sixth message may be information about the hang-up event in Figure 8, the seventh message may be information about the "in-box transfer” strategy in Figure 8, the second operation may be an operation of the user performing sound settings, the first setting interface may be an interface for performing sound settings, the third operation may be an operation of the user performing noise reduction mode settings, and the second setting interface may be
  • an embodiment of the present application provides a call control method, which is applied to a first device, wherein the first device includes a first sub-device and a headset, a first communication connection is established between the first sub-device and the headset, a second communication connection is established between the headset and the second device, a first call record is stored on the first sub-device, and the first call record is a call record of the second device, the method comprising: the first sub-device detects a first operation of a user on the first call record, and the first operation is used to call a first number corresponding to the first call record; in response to the first operation, the first sub-device sends a first message to the headset based on the first communication connection, and the first message is used to instruct the second device to call the first number; the headset sends a second message to the second device based on the second communication connection, and the second message is used to instruct the second device to call the first number; the headset receives and plays call audio from the second device to the first
  • the first sub-device when a communication connection is not established between the first sub-device and the second device, after detecting the user's outgoing call operation, the first sub-device can perform a dialing operation through the second device that has a communication connection with the headset, answer the call on the headset, complete the outgoing call task, simplify user operations, and improve user experience.
  • the first device may be a fusion electronic device (for example, a fusion electronic device formed by a watch and headphones), the first sub-device may be an electronic device 200 (for example, a watch), the second device may be an electronic device 400 (for example, a mobile phone B), the first message may be information 1 of the dialing event 1 in Figure 14, and the second message may be information 2 of the dialing event 1 in Figure 14.
  • a fusion electronic device for example, a fusion electronic device formed by a watch and headphones
  • the first sub-device may be an electronic device 200 (for example, a watch)
  • the second device may be an electronic device 400 (for example, a mobile phone B)
  • the first message may be information 1 of the dialing event 1 in Figure 14
  • the second message may be information 2 of the dialing event 1 in Figure 14.
  • an embodiment of the present application provides a call control method, which is applied to a first device, wherein the first device includes a first sub-device and a headset, a first communication connection is established between the first sub-device and the headset, a second communication connection is established between the first sub-device and the second device, a first call record is stored on the first sub-device, and the first call record is a call record of the second device, the method including: the first sub-device detects a first operation of a user on the first call record, and the first operation is used to call a first number corresponding to the first call record; in response to the first operation, the first sub-device sends a first message to the headset based on the first communication connection, and the first message includes device information of the second device; the headset establishes a third communication connection with the second device based on the device information of the second device; the first sub-device sends a second message to the second device based on the second communication connection, or the headset sends
  • the first device may be a fusion electronic device (for example, a fusion electronic device formed by a watch and headphones), the first sub-device may be an electronic device 200 (for example, a watch), the second device may be an electronic device 100 (for example, a mobile phone A), the first message may be information 1 of the dialing event 1' in Figure 14, and the second message may be information 2 of the dialing event 1' in Figure 14.
  • a fusion electronic device for example, a fusion electronic device formed by a watch and headphones
  • the first sub-device may be an electronic device 200 (for example, a watch)
  • the second device may be an electronic device 100 (for example, a mobile phone A)
  • the first message may be information 1 of the dialing event 1' in Figure 14
  • the second message may be information 2 of the dialing event 1' in Figure 14.
  • an embodiment of the present application provides a call control method, which is applied to a first device, wherein the first device includes a first sub-device and an earphone, the first sub-device is provided with an earphone slot for accommodating the earphone, the earphone is in the earphone slot, the first sub-device establishes a first communication connection with the second device, the first sub-device establishes a second communication connection with the earphone, a first call record is stored on the first sub-device, and the first call record is a call record of the second device, the method comprising: the first sub-device detects a first operation of a user on the first call record, the first operation is used to call a first number corresponding to the first call record; in response to the first operation, the first device sends a first message to the earphone based on the second communication connection, the first message including device information of the second device; the earphone detects that the earphone is taken out of the earphone slot,
  • the first sub-device when the earphone is in the earphone slot and the first sub-device detects the user's outgoing call operation, the first sub-device can notify the earphone of the information of the outgoing call dialing event. After the earphone is out of the box, the earphone can automatically establish a communication connection with the second device (i.e., the dialing device) to answer the call on the earphone and complete the outgoing call task, thereby simplifying user operations and improving user experience.
  • the second device i.e., the dialing device
  • the first device may be a fusion electronic device (for example, a fusion electronic device formed by a watch and headphones), the first sub-device may be an electronic device 200 (for example, a watch), the second device may be an electronic device 100 (for example, a mobile phone A), the first operation may be an operation in which a user triggers a dialing event, the first message may be information 1 of the dialing event in Figure 10, and the second operation may be an operation in which a user wears headphones, for example, and the second message may be information 2 of the dialing event in Figure 10.
  • the first operation may be an operation in which a user triggers a dialing event
  • the first message may be information 1 of the dialing event in Figure 10
  • the second operation may be an operation in which a user wears headphones, for example, and the second message may be information 2 of the dialing event in Figure 10.
  • an embodiment of the present application provides an upgrade method, which is applied to a first device, wherein the first device includes a first sub-device and headphones, and a communication connection is established between the first sub-device and the headphones.
  • the method includes: the first sub-device detects an operation by a user to trigger an upgrade; in response to the operation, the first sub-device determines whether the headphones meet the upgrade conditions, and if so, the first sub-device sends a first message to the headphones based on the communication connection, and the first message includes an upgrade package; the headphones initiate the upgrade based on the upgrade package.
  • the user can trigger the headset to start upgrading through the first sub-device.
  • the first sub-device is provided with an earphone slot for accommodating the earphone, and the first sub-device determines whether the earphone meets the upgrade conditions, specifically including: the first sub-device determines whether the earphone is in the earphone slot and/or whether the power of the earphone exceeds a preset threshold.
  • the method further includes: the first sub-device starts upgrading.
  • the user can complete the entire upgrade process of the electronic device 200 and the electronic device 300 with one upgrade operation, which is simple and convenient and improves the user experience.
  • the first device may be a fusion electronic device (for example, a fusion electronic device formed by a watch and headphones), the first sub-device may be an electronic device 200 (for example, a watch), and the first message may include the upgrade package sent in step S1605 in Figure 16.
  • a fusion electronic device for example, a fusion electronic device formed by a watch and headphones
  • the first sub-device may be an electronic device 200 (for example, a watch)
  • the first message may include the upgrade package sent in step S1605 in Figure 16.
  • an embodiment of the present application provides a music playing method, which is applied to a first device, the first device comprising a first sub-device and headphones, the method comprising: the first sub-device detects an operation by a user to play a first song; in response to the operation, the first sub-device determines whether the first sub-device establishes a first communication connection with the headphones, and if so, the first sub-device sends first audio data to the headphones, and the first audio data is used for the headphones to play the first song; if not, the first sub-device displays a first prompt message, and the first prompt message is used to prompt the user to establish a first communication connection between the headphones and the first sub-device.
  • the first sub-device can determine whether a wireless communication connection is established with the headset. If so, the song can be played. If not, the user can be prompted to establish a wireless communication connection between the headset and the first sub-device so that the song can be played based on the connection.
  • an embodiment of the present application provides an electronic device, which is a first device, the first device includes a first sub-device and headphones, the first sub-device is provided with an earphone slot for accommodating the headphones, and the electronic device includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions.
  • the electronic device executes the method in any possible implementation of the first aspect or the second aspect or the third aspect or the fourth aspect or the fifth aspect or the sixth aspect or the seventh aspect or the eighth aspect or the ninth aspect.
  • an embodiment of the present application provides a computer storage medium, which stores a computer program, and the computer program includes program instructions.
  • the program instructions When the program instructions are run on an electronic device, the electronic device executes a method in any possible implementation of the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, the seventh aspect, the eighth aspect, or the ninth aspect.
  • an embodiment of the present application provides a computer program product.
  • the computer program product runs on a computer, it enables the computer to execute a method in any possible implementation of the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, the seventh aspect, the eighth aspect, or the ninth aspect.
  • FIG1 is a schematic diagram of a common communication system provided in an embodiment of the present application.
  • FIG2A is a schematic diagram of an electronic device in a fusion form consisting of a watch and earphones provided in an embodiment of the present application;
  • 2B-2E are schematic diagrams of an earphone inside/outside a watch provided by an embodiment of the present application.
  • FIG2F is a schematic diagram of a communication system provided in an embodiment of the present application.
  • 2G and 2H are schematic diagrams of a group of connection modes between different electronic devices provided in an embodiment of the present application.
  • FIG2I is a schematic diagram of the structure of an electronic device in a fusion form provided in an embodiment of the present application.
  • FIG3 is a flow chart of a communication method provided in an embodiment of the present application in a “pairing connection” scenario
  • 4A and 4B are schematic diagrams of a group of user interfaces involved in the fusion-type electronic device provided in an embodiment of the present application after being turned on for the first time or restored to factory settings;
  • FIG5 is a schematic diagram of a user interface involved in the pairing process of headphones and a watch provided in an embodiment of the present application;
  • 6A-6F are schematic diagrams of a group of user interfaces involved in the pairing process of a mobile phone and a watch provided in an embodiment of the present application;
  • FIG7 is a schematic diagram of a user interface involved in the pairing process of a mobile phone and a headset provided in an embodiment of the present application;
  • FIG8 is a flow chart of a communication method provided by an embodiment of the present application in an incoming call scenario
  • 9A-9C are a set of schematic diagrams of a communication method provided in an embodiment of the present application in an incoming call scenario
  • 9D-9F are schematic diagrams of a group of user interfaces involved in the process of performing sound setting and noise reduction mode setting provided in an embodiment of the present application.
  • 9G-9I are schematic diagrams of a group of user interfaces involved in the process of setting a call strategy after entering the box provided by an embodiment of the present application;
  • FIG10 is a flow chart of a communication method provided by an embodiment of the present application in an outgoing call scenario
  • 11A-11F are schematic diagrams of a group of user interfaces involved in a communication method provided in an embodiment of the present application in an outgoing call scenario;
  • FIG12 is another flow chart of a communication method provided by an embodiment of the present application in an incoming call scenario
  • FIG13 is another flow chart of a communication method provided by an embodiment of the present application in an incoming call scenario
  • FIG14 is another flow chart of a communication method provided by an embodiment of the present application in an outgoing call scenario
  • FIG15 is a flow chart of a communication method provided by an embodiment of the present application in a music playing scenario
  • FIG16 is a flow chart of a communication method provided in an embodiment of the present application in an upgrade scenario.
  • GUI graphical user interface
  • a user may have multiple electronic devices (such as headphones, watches, mobile phones, etc.) at the same time. These electronic devices can establish communication connections (such as Bluetooth communication connections) between each other, so that data interaction can be achieved subsequently based on the established communication connections.
  • communication connections such as Bluetooth communication connections
  • the user needs to manually operate the electronic device 100 to establish communication connections with the electronic device 200 and the electronic device 300 in sequence (for example, as shown in FIG. 1 1, communication connection 2), if the user wants to establish the communication connection 3 shown in FIG1 between the electronic device 300 and the electronic device 200, the user needs to manually operate the electronic device 300 and the electronic device 200 to switch the communication connection.
  • the user needs to manually operate the electronic device 300 to enter the pairing mode, and then, after the electronic device 200 searches and finds the electronic device 300, the user can select the electronic device 300 on the electronic device 200 for pairing.
  • the electronic device 300 can establish the above-mentioned communication connection 3 with the electronic device 200.
  • the electronic device 300 switches the communication connection from the communication connection 2 shown in FIG1 to the communication connection 3. It can be seen that the switching of the communication connection requires manual operation by the user. Each time the communication connection is switched, the user needs to manually execute the process of establishing the communication connection. The operation is relatively cumbersome.
  • the electronic device 300 cannot automatically switch the communication connection according to the sound source, and the user experience is poor.
  • the electronic device 100 can send the device information of the electronic device 300 to the electronic device 200, so that when the electronic device 300 establishes the communication connection 3 with the electronic device 200, the electronic device 300 does not need to enter the pairing mode to complete the establishment of the communication connection 3.
  • the electronic device 300 can switch the communication connection between the electronic device 100 and the electronic device 200 according to the sound source (for example, switching the communication connection from the communication connection 2 to the communication connection 3).
  • the electronic device 200 and the electronic device 300 are two independent electronic devices, not one electronic device.
  • Problem 2 The electronic device 200 and the electronic device 300 need to be paired with the electronic device 100 and establish a communication connection respectively, which cannot be completed in one operation. In addition, when the user has multiple electronic devices 100 at the same time, it is impossible to quickly complete the switching of communication connections.
  • An embodiment of the present application provides a fused electronic device, which may be an electronic device formed by fusing two independent electronic devices, the electronic device 200 and the electronic device 300 .
  • the electronic device exemplarily shown in FIG2A may be an electronic device in a fusion form consisting of a smart watch and a TWS headset.
  • the smart watch can act as an earphone box for the TWS earphone.
  • the user can put the TWS earphone into the body of the smart watch, and the earphone putting process can be called the earphone putting into the box process; the user can also take the TWS earphone out of the body of the smart watch, and the earphone taking out process can be called the earphone taking out of the box process.
  • Figures 2B-2E are schematic diagrams of the TWS headset inside/outside the watch body of the smart watch.
  • Figure 2B exemplifies a scene in which the left earphone of the TWS headset is inside the watch body of the smart watch and the right earphone is outside the watch body of the smart watch
  • Figure 2C exemplifies a scene in which the left earphone of the TWS headset is outside the watch body of the smart watch and the right earphone is inside the watch body of the smart watch
  • Figure 2D exemplifies a scene in which both the left earphone and the right earphone of the TWS headset are inside the watch body of the smart watch
  • Figure 2E exemplifies a scene in which both the left earphone and the right earphone of the TWS headset are outside the watch body of the smart watch.
  • an embodiment of the present application provides a communication method, whereby a user can pair an electronic device 100 (such as a mobile phone) with a smart watch and a TWS headset and establish a communication connection through a single operation.
  • an electronic device 100 such as a mobile phone
  • the fused electronic device can automatically switch the communication connection between the multiple electronic devices 100 according to the user's usage scenarios, thereby simplifying user operations and improving user experience.
  • the smart watch and the TWS headset form an electronic device on which resource scheduling and control can be unified, which is convenient and quick.
  • FIG. 2F exemplarily shows a communication system provided in an embodiment of the present application.
  • the communication system may include: a plurality of electronic devices, which may include the electronic device 100 and a fused electronic device.
  • the multiple electronic devices included in the communication system can all be intelligent terminal devices.
  • the electronic device 100 can be various types of smart terminal devices.
  • the electronic device 100 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a smart screen, etc.
  • the embodiment of the present application does not limit the specific type and quantity of the electronic device 100.
  • the fused electronic device may be an electronic device formed by fusion of two or more independent electronic devices. Preparation.
  • the fused electronic device may be an electronic device formed by fusion of the electronic device 200 (eg, a watch) and the electronic device 300 (eg, headphones).
  • an electronic device 200 e.g., a watch
  • an electronic device 300 e.g., a headset
  • a wireless communication connection e.g., a Bluetooth communication connection
  • the connection method among the electronic devices 200, 300, and 100 can be referred to as connection method 1;
  • the electronic device 200 e.g., a watch
  • the electronic device 300 e.g., a headset
  • can also establish a wireless communication connection e.g., a Bluetooth communication connection
  • the electronic device 200 can establish a wireless communication connection 1 with the electronic device 100, and the electronic device 300 can establish a wireless communication connection 2 with an electronic device different from the electronic device 100 (e.g., an electronic device 400).
  • the connection method among the electronic devices 200, 300, 100 (e.g., mobile phone A), and 400 (e.g., mobile phone B) can be referred to as connection method 2.
  • a Bluetooth (BT) communication connection can be established between multiple electronic devices in the communication system so as to communicate based on the Bluetooth communication connection.
  • multiple electronic devices in the communication system can also establish wired connections, or other wireless connections, such as wireless local area networks (WLAN), such as wireless fidelity point to point (Wi-Fi P2P) connection, near field communication (NFC) connection, infrared technology (IR) connection, etc.
  • WLAN wireless local area networks
  • Wi-Fi P2P wireless fidelity point to point
  • NFC near field communication
  • IR infrared technology
  • each electronic device in the communication system can form a network (i.e., networking) according to a certain communication protocol and networking strategy, so that each electronic device in the communication system can communicate with each other.
  • Multiple electronic devices in the communication system can be configured with different software operating systems (OS), including but not limited to Etc. Among them, It is Huawei's Hongmeng system. Multiple electronic devices can also be configured with the same software operating system, for example, The software operating systems of these multiple electronic devices are When the communication system is connected to the network, it can be regarded as a super terminal.
  • OS software operating systems
  • the following is a schematic diagram of the structure of a fusion electronic device provided in an embodiment of the present application.
  • FIG. 2I exemplarily shows the structure of a fusion-type electronic device provided in an embodiment of the present application.
  • the fused electronic device may be an electronic device formed by fusion of electronic device 200 (e.g., a watch) and electronic device 300 (e.g., a headset), and the software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes a layered architecture system as an example to exemplify the software structure of the electronic device.
  • the layered architecture divides the software into several layers, each with a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the system of the electronic device is divided into four layers, from top to bottom, namely the application layer, the application framework layer, the system library, and the kernel and hardware platform layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as call control, music control, headset device management, and headset charging management.
  • the call control can be used to provide call control functions during the incoming/outgoing call process. For example, control the call status (e.g., connected state, hung up state), control the interface switching during the call process (e.g., switch the incoming call interface to the connected interface, cancel the display of the connected interface); provide the call strategy setting function after the electronic device 300 is installed; and so on.
  • control the call status e.g., connected state, hung up state
  • control the interface switching during the call process e.g., switch the incoming call interface to the connected interface, cancel the display of the connected interface
  • Music control can be used to provide control functions during music playback, such as playing and pausing music, switching to the next/previous song, controlling the volume of music, etc.
  • the headset device management can be used to provide the function of the electronic device 200 to manage the electronic device 300 (taking the electronic device 300 as a headset as an example), for example, storing the device information (such as version number information) and connection status information of the electronic device 300;
  • the earphone charging management can be used to provide the function of the electronic device 200 to manage the charging of the electronic device 300. For example, the power of the electronic device 300 is monitored and the input of the battery (not shown) is received to power the electronic device 300.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a device, notification manager, machine-box interaction software development kit (Software Development Kit, SDK), etc.
  • the window manager can be used to provide window management services and manage window programs. For example, the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers can be used to store and retrieve data and make it accessible to applications.
  • the data may include video, images, audio, calls made and received, etc.
  • the view system can include visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views. For example, a view for displaying text and a view for displaying images.
  • the phone manager can be used to provide communication functions of the electronic device 200, such as management of call status (including answering, hanging up, etc.).
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • the machine-box interaction SDK can be used to provide one or more interfaces for the electronic device 200 to interact with the electronic device 300 (taking the electronic device 300 as a headset as an example) for business interaction.
  • the machine-box interaction SDK can be used to control the electronic device 300 to enter the waiting pairing state, adjust the volume of the electronic device 300, set the noise reduction mode of the electronic device 300, send information about the box entry event to the electronic device 300 after detecting the box entry event during a call, and interact with the electronic device 300 during the upgrade process of the electronic device 300; and so on.
  • the system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • functional modules such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • a 2D graphics engine is a drawing engine for 2D drawings.
  • the kernel and hardware platform layer may include a hardware abstraction layer (HardwareAbstractLayer, HAL) and a kernel layer (Kernel).
  • HAL hardware abstraction layer
  • Kernel kernel layer
  • the hardware abstraction layer runs in the user space (UserSpace), encapsulates the kernel layer driver, and provides a calling interface to the upper layer.
  • the hardware abstraction layer may include multiple service calling interfaces.
  • the hardware abstraction layer may provide a headphone control interface, which is used to provide an interface for the electronic device 200 to control the electronic device 300 (taking the electronic device 300 as a headphone as an example).
  • the kernel layer is a layer between hardware and software.
  • the kernel layer at least includes a display driver, a Bluetooth driver, and a sensor driver.
  • the kernel layer may include a kernel abstract layer (KAL) and a driver subsystem.
  • KAL includes one or more kernels, such as LiteOS, a lightweight Internet of Things system kernel.
  • the driver subsystem may include a hardware driver framework (HDF).
  • the hardware driver framework can provide unified peripheral access capabilities and a driver development and management framework.
  • the multi-kernel kernel layer can select the corresponding kernel for processing according to the needs of the system.
  • system service layer (not shown in the figure) between the application framework layer and the kernel and hardware platform layer.
  • the system service layer can serve as a set of core capabilities of the system to provide services to applications.
  • machine-box interaction SDK may also exist in the system service layer.
  • the embodiment of the present application does not limit the position of the system service layer in the software structure. It can be between the application layer and the application framework layer, or between the application framework layer and the system library, etc.
  • the electronic device 200 may further include a wireless communication module, such as a Bluetooth communication module, which may be used to communicate wirelessly with other electronic devices.
  • a wireless communication module such as a Bluetooth communication module, which may be used to communicate wirelessly with other electronic devices.
  • the electronic device 300 may include: a call management module, an audio management module, and a charging management module; wherein the call management module, the audio management module, and the charging management module may all be in the application layer as shown in FIG. 2I .
  • the call management module can be used to provide call management functions during incoming or outgoing calls. For example, in an incoming call scenario, after detecting a wearing event and/or a preset gesture, a message is sent to the incoming device to instruct the incoming device to answer the call; for another example, during a call, whether to hang up or transfer the call is determined based on a preset call strategy; and so on.
  • the audio management module can be used to provide audio management functions of the electronic device 300. For example, outputting audio signals through an audio output interface, receiving audio data through an audio input interface, and so on.
  • the charging management module can be used to provide charging management functions of the electronic device 300, for example, receiving charging input; and so on.
  • the electronic device 300 may further include a box communication module, which may be used to provide a function for the electronic device 300 to communicate with the electronic device 200 through an electrical connection formed by contact of communication electrodes.
  • a box communication module which may be used to provide a function for the electronic device 300 to communicate with the electronic device 200 through an electrical connection formed by contact of communication electrodes.
  • the electronic device 300 may further include a wireless communication module, such as a Bluetooth communication module, which may be used to communicate wirelessly with other electronic devices.
  • a wireless communication module such as a Bluetooth communication module, which may be used to communicate wirelessly with other electronic devices.
  • FIG2I is merely exemplary and should not impose any limitation on the software structure of the electronic device in the embodiments of the present application.
  • the software structure of the electronic device may adopt a layered structure different from that of FIG2I, or each layer may include more or fewer modules, or a combination of multiple different modules, etc., which is not limited in the embodiments of the present application.
  • FIG3 exemplarily shows the specific process of the communication method provided in an embodiment of the present application in a “pairing connection” scenario.
  • condition for triggering the execution of the specific process in the "pairing connection” scenario shown in FIG3 is based on the first power-on or factory reset of the watch. In actual applications, the condition for triggering the execution of the specific process in the "pairing connection” scenario shown in FIG3 may also be other, and the embodiment of the present application does not limit this.
  • step S301 The watch determines whether the earphone is in the box. If not, the following step S302 may be executed. If so, the following step S303 may be executed.
  • the watch After the watch detects that the user performs the first power-on operation or restores the factory settings, it can determine whether the earphone is in the box. In the embodiment of the present application, whether the earphone is in the box can be determined by the Hall sensor. Specifically, the earphone out of the box and into the box will cause a change in the magnetic field, and the Hall sensor can determine whether the earphone is out of the box or into the box according to the change in the magnetic field.
  • the watch and the earphones are an electronic device formed by merging their forms
  • the watch is provided with an earphone slot for accommodating the earphones. Therefore, “the earphones are in the box” may mean that the earphones are in the earphone slot, and “the earphones are not in the box” may mean that the earphones are not in the earphone slot.
  • the earphone may include a left earphone and a right earphone.
  • step S303 can be executed to start the pairing process of the earphone and the watch.
  • the watch may execute the following step S302 to prompt the user to put the earphone into the box.
  • the earphone and the watch need to communicate through the electrical connection formed by the contact of the communication electrodes (i.e., the contact between the communication electrodes of the earphone and the communication electrodes in the earphone slot) before the pairing is completed, for example, through the Universal Asynchronous Receiver/Transmitter (UART), the earphone needs to be kept in the box during the entire pairing process so that the earphone can contact the URAT contacts, thereby maintaining the communication between the earphone and the watch.
  • the watch needs to be in a closed state during the entire pairing process.
  • the earphone may be adsorbed on the cover of the watch. Then, when the watch is in an open state, the earphone will also be adsorbed on the open cover, which is equivalent to the earphone being outside the box. Therefore, in this case, the watch needs to be in a closed state.
  • whether the watch is in a closed state or an open state can be judged based on the opening and closing state of the buckle on the watch. If the buckle on the watch is in a closed state, it means that the watch is in a closed state; if the buckle on the watch is in an open state, it means that the watch is in an open state.
  • the watch can determine whether the earphone is out of the box or in the box. In some examples, the earphone can also determine whether it is out of the box or in the box. The earphone can also determine whether it is out of the box or in the box through a Hall sensor.
  • S302 The watch prompts the user to put the earphones into the box.
  • the watch prompts the user to put the earphones into the box, and the watch may display the user interface 410 as exemplarily shown in FIG. 4A .
  • the user interface 410 may include a prompt message 411 (eg, “There are currently earphones outside the watch, please put them in and close the cover. If you ignore this step, the earphones outside the watch will not be usable”) and an option 412 (eg, an “Ignore” option).
  • a prompt message 411 eg, “There are currently earphones outside the watch, please put them in and close the cover. If you ignore this step, the earphones outside the watch will not be usable”
  • an option 412 eg, an “Ignore” option
  • the watch can execute the following step S303 to start the pairing process of the earphone and the watch after detecting that both the left earphone and the right earphone are in the box.
  • the watch may display user interface 420 as exemplarily shown in FIG. 4B .
  • a user operation e.g, a click operation
  • option 412 e.g, the “Ignore” option
  • the user interface 430 may include a prompt message 421 (e.g., “Choosing to ignore will cause the earphones outside the watch body to be unusable. Continue?”), Option 422, Option 423.
  • a prompt message 421 e.g., “Choosing to ignore will cause the earphones outside the watch body to be unusable. Continue?”
  • the watch If the watch detects a user operation (such as a click operation) on option 422, in response to the operation, the watch can return to displaying the user interface shown in Figure 4A to prompt the user to put the earphones into the box.
  • a user operation such as a click operation
  • the watch can start the pairing process with the earphone in the box. It is easy to understand that if both the left earphone and the right earphone are not in the box, the watch cannot start the pairing process of the earphone and the watch after detecting the user's operation on option 423 (such as a click operation). In this case, the watch can also display a prompt message to remind the user that both earphones are not in the box and the pairing process of the earphone and the watch cannot be started. The earphones need to be put into the box before the pairing process of the earphone and the watch can be started.
  • the watch can trigger the earphones to turn on Bluetooth and enter the pairing state through the electrical connection formed by the contact of the communication electrodes.
  • the watch can also obtain device information such as the MAC address of the earphones through the electrical connection formed by the contact of the communication electrodes.
  • device information such as the MAC address of the earphones can also be written into the watch since leaving the factory, without the need for the watch to actively obtain it.
  • the watch can initiate pairing with the earphones, and the earphones can feed back a message of successful pairing to the watch.
  • the watch can send a pairing request to the earphones based on the saved MAC address of the earphones through the electrical connection formed by the communication electrode contacts, and the pairing request can include the MAC address of the watch.
  • the earphones can receive the pairing request through the electrical connection formed by the communication electrode contacts, and feed back a message of successful pairing to the watch, and the message can include the MAC address of the earphones.
  • the earphones and the watch are paired. In this way, since the watch knows the MAC address of the earphones before pairing, it can automatically pair the earphones, simplifying user operations.
  • the watch and the two earphones can be paired at one time. If one earphone is in the box, the watch can be paired with one earphone first. After detecting that the other earphone is placed in the box, the watch can be paired with the other earphone.
  • the watch may display the user interface 510 shown in FIG. 5 exemplarily, which may include a prompt message 511 (e.g., “Welcome to XXX, do not open the watch cover or take out the earphones before pairing is complete”) and an option 512 (e.g., a “Continue” option), wherein the prompt message 511 may be used to prompt the user not to open the watch cover or take out the earphones before the pairing process is completed, and the option 512 may be used to perform the pairing process.
  • the watch may detect the user's operation (e.g., a click operation) on option 512, and in response to the operation, the watch may start the pairing process.
  • the watch may display user interface 610 as exemplarily shown in FIG. 6A .
  • user interface 610 can be used to prompt the user to pair the mobile phone with the watch.
  • user interface 610 may include option 611 (such as a "click to scan” option), and the watch can detect the user's operation on option 611 (such as a click operation).
  • the watch can display user interface 620 as shown in Figure 6B.
  • the user interface may include a QR code 621, and the QR code 621 can be used for the user to pair by scanning the code with a mobile phone.
  • the QR code 621 may include device information of the watch (such as the MAC address of the watch, device model, device name, etc.). By scanning the QR code 621, the mobile phone can obtain the device information of the watch, and thus can pair with the watch based on the device information.
  • the user may also slide up on the user interface 610 shown in FIG. 6A to make the watch display the user interface 620 shown in FIG. 6B .
  • the user can scan the QR code 621 shown in FIG. 6B through the mobile phone.
  • the user interface shown in FIG. 6C may be a user interface provided by a sports health application on a mobile phone, and the user interface may include a window 630, which may include one or more options (e.g., option 631, option 632), wherein option 631 may be used to pair with other devices (e.g., watches) by scanning a code, and option 632 may be used to pair with other devices (e.g., watches) by manually adding devices.
  • the mobile phone may detect the user's operation (e.g., a click operation) for option 631, and in response to the operation, the mobile phone may display a code scanning interface, and after successfully scanning the QR code 621 shown in FIG.
  • the mobile phone may send a pairing request to the watch via Bluetooth, and the pairing request may include the device information of the mobile phone (e.g., the MAC address of the mobile phone, the device model, the device name, etc.), and after the watch receives the pairing request sent by the mobile phone, it may display the user interface 640 shown in FIG. 6D exemplarily.
  • the device information of the mobile phone e.g., the MAC address of the mobile phone, the device model, the device name, etc.
  • user interface 640 may include the device name of the sender of the pairing request (e.g., “XXXX”), option 641, and option 642. If the watch detects a user operation (e.g., a click operation) on option 641, in response to the operation, the pairing process between the watch and the phone may be terminated; if the watch detects a user operation (e.g., a click operation) on option 642, in response to the operation, the pairing process between the watch and the phone may be terminated.
  • the pairing process can be started, and at the same time, the watch can also display the user interface shown in Figure 6E, which can be used to prompt the user that the mobile phone and the watch are pairing.
  • the subsequent pairing process of the phone and the headset can be automatically started, without the user having to manually start the pairing process of the phone and the headset.
  • the watch can also display the user interface shown in Figure 6F, which can be used to prompt the user that the pairing between the mobile phone and the watch has failed.
  • the watch may also return to displaying the user interface 510 exemplarily shown in FIG. 5 , or the user interface exemplarily shown in FIG. 6A .
  • manually adding pairing can be achieved by the user clicking option 632 in Figure 6C.
  • Manually adding pairing can scan the device to be paired through Bluetooth and obtain the device information of the device to be paired. The subsequent process is similar to the aforementioned "scanning code pairing" process, which will not be repeated here.
  • step S305 the mobile phone and the headset are paired. If the pairing fails, the following step S306 is executed. If the pairing is successful, the entire pairing process of the mobile phone, the watch and the headset is completed.
  • the watch can send the device information of the headset (such as the MAC address, device model, device name, etc. of the headset) to the mobile phone.
  • the mobile phone can send a pairing request to the headset via Bluetooth based on the device information of the headset.
  • the pairing request may include the device information of the mobile phone (such as the MAC address, device model, device name, etc. of the mobile phone).
  • the headset receives the pairing request via Bluetooth and feeds back a message of successful pairing to the mobile phone, which may include the MAC address of the headset. At this point, the headset and the mobile phone are paired.
  • the watch before the mobile phone and the earphones are paired, the watch can also detect whether the earphones are in the box to control the earphones in the box to enter a pairing state, wherein the specific process of "the watch detects whether the earphones are in the box” can refer to the aforementioned text description of step S301 and will not be repeated here.
  • both the left earphone and the right earphone are in the box, or the left earphone or the right earphone is not in the box but the user confirms to ignore the earphone outside the watch body in the aforementioned steps S301-S302 (for example, the user clicks option 412 shown in Figure 4A, and the user clicks option 423 shown in Figure 4B), then after the mobile phone and the watch are successfully paired, the pairing process of the mobile phone and the earphone can be started.
  • the watch can display the user interface shown in Figures 4A and 4B again to prompt the user to put the earphone into the box.
  • the watch detects that the user confirms to ignore the earphone outside the watch body or that both the left earphone and the right earphone are put into the box, the pairing process of the mobile phone and the earphone can be started.
  • the mobile phone/headphone can send a message to the watch that the mobile phone and the headset are pairing.
  • the watch can display the user interface shown in Figure 7, which can be used to prompt the user that the mobile phone and the headset are pairing.
  • the mobile phone/watch prompts that the pairing between the mobile phone and the headset has failed.
  • the mobile phone can display a relevant user interface to prompt the user that the pairing of the mobile phone and the headset fails.
  • the mobile phone/headset can also send a message to the headset that the pairing of the mobile phone and the headset fails, and the watch can also display a relevant user interface based on the message to prompt the user that the pairing of the mobile phone and the headset fails.
  • the watch can display a prompt message to remind the user not to open the cover during the pairing process and keep the watch cover in a closed state.
  • the embodiment of the present application only takes the pairing process of pairing headphones and watches, pairing mobile phones and watches, and pairing mobile phones and headphones as an example. It is easy to understand that the execution order of the pairing of headphones and watches, mobile phones and watches, and mobile phones and headphones can also be other, and the embodiment of the present application is not limited to this.
  • the pairing of a mobile phone and a watch may precede the pairing of headphones and a watch.
  • the watch may display a series of user interfaces (such as the user interfaces shown in Figures 5, 6A, 6B, and 6D) to guide the user to pair the mobile phone and the watch.
  • the watch may automatically trigger pairing with the headphones. If the headphones are not in the box, the user interfaces shown in Figures 4A and 4B may be displayed.
  • the watch After the watch detects that the user confirms to ignore the headphones that are not in the box or that the user puts the headphones that are not in the box into the box, it may start the pairing process of the watch and the headphones.
  • the earphones may not be in the box when pairing with a mobile phone. After the earphones are out of the box, if the earphones and the watch are within a certain communication distance range, the earphones can establish a wireless communication connection (such as a Bluetooth communication connection) with the watch. Therefore, in this case, it is necessary to ensure that the earphones and the watch have established a wireless communication connection (such as a Bluetooth communication connection). In this way, the watch can control the earphones to enter the pairing state through the wireless communication connection. Further, the earphones can be paired with the mobile phone only after entering the pairing state.
  • a wireless communication connection such as a Bluetooth communication connection
  • the user only needs to perform the pairing operation of the mobile phone and the watch once to complete the pairing process of the earphones and the watch, the mobile phone and the watch, and the mobile phone and the earphones, without the user's perception, thus simplifying the user operation and improving the user experience.
  • the watch and the earphones are combined into a fusion electronic device with an integrated connection, thus improving the user experience of new form products.
  • the following introduces the specific execution process of the communication method provided in the embodiment of the present application in the incoming call scenario and the outgoing call scenario when the connection method between the electronic device 100 (for example, mobile phone A), the electronic device 200 (for example, a watch), and the electronic device 300 (for example, headphones) is the connection method 1 shown in the aforementioned Figure 2G.
  • the embodiment shown in FIG8 may be executed when the electronic device 100, the electronic device 200, and the electronic device 300 are all paired successfully, and the electronic device 100 has established a Bluetooth communication connection with the electronic device 200, and the electronic device 300 is in the box and a call is received by the electronic device 100.
  • S801 The electronic device 100 receives an incoming call.
  • a call application i.e., an application for answering or making calls
  • a sports health application i.e., an application for managing the electronic device 200
  • the call application may notify the sports health application of the incoming call.
  • the electronic device 100 sends an incoming call message 1 to the electronic device 200 based on the Bluetooth communication connection.
  • the incoming call message 1 may include but is not limited to: device information of the electronic device 100 (eg, MAC address, etc.) and the incoming caller's phone number.
  • the electronic device 100 can send the incoming call message 1 to the electronic device 200 through the sports health application, so that the electronic device 200 can subsequently display the incoming call interface based on the incoming call message 1.
  • the electronic device 100 can also send the incoming call message 1 to the electronic device 200 through a Bluetooth message synchronization service (such as Synergy).
  • S803 The electronic device 200 displays an incoming call interface.
  • the electronic device 200 can display an incoming call interface based on the incoming call message 1.
  • the incoming call interface 910 shown in FIG. 9A may include the incoming call phone number (e.g., 186xxxx1105), the incoming call contact (e.g., Lisa), option 911, and option 912, wherein option 911 may be used to hang up the incoming call, and option 912 may be used to answer the incoming call.
  • the electronic device 200 sends an incoming call status notification message 1 to the electronic device 300 .
  • the incoming call status notification message 1 may be used to notify the electronic device 300 that there is an incoming call that needs to be answered.
  • the electronic device 200 and the electronic device 300 when the electronic device 200 and the electronic device 300 have not established a wireless communication connection (such as a Bluetooth communication connection) (for example, when the electronic device 300 is in a box), the electronic device 200 and the electronic device 300 can communicate based on the electrical connection formed by the contact of the communication electrodes.
  • a wireless communication connection such as a Bluetooth communication connection
  • the electronic device 200 can trigger the electronic device 300 to switch from the sleep state to the wake-up state, so that the electronic device 300 can receive messages sent by the electronic device 200.
  • S805 The electronic device 300 detects an out-of-box event.
  • the electronic device 300 may trigger the execution of subsequent steps S806 to S808 and steps S809 to S811 , thereby establishing a Bluetooth communication connection with the electronic device 100 and the electronic device 200 .
  • the electronic device 300 sends a Bluetooth back-connection broadcast message 1 .
  • the electronic device 300 can reconnect to the device that was previously paired with the electronic device 300. Usually, the electronic device 300 reconnects to the device that was paired with the electronic device 300 the most recently. For example, if the device that was paired with the electronic device 300 the most recently is the electronic device 100, the electronic device 300 can send a Bluetooth reconnection broadcast message 1 to the electronic device 100 based on the pairing information stored when pairing with the electronic device 100 (e.g., the MAC address of the electronic device 100). The Bluetooth reconnection broadcast message 1 can be used to request to establish a Bluetooth connection with the electronic device 100. Communication connection, the Bluetooth back-connection broadcast message 1 may include device information of the electronic device 300 (eg, the MAC address of the electronic device 300 ).
  • the electronic device 100 establishes a Bluetooth communication connection 1 with the electronic device 300 .
  • the electronic device 100 determines that the device information of the electronic device 300 included in the Bluetooth broadcast message 1 exists in the pairing information list stored in the electronic device 100 , and then establishes a Bluetooth communication connection 1 with the electronic device 300 .
  • the electronic device 100 sends a Bluetooth incoming call notification message to the electronic device 300 based on the Bluetooth communication connection 1 .
  • the Bluetooth incoming call notification message may include but is not limited to: device information of the electronic device 100 (such as the MAC address of the electronic device 100).
  • the Bluetooth incoming call notification message may be used to notify the electronic device 300 that the electronic device 100 has an incoming call, and may also be used to notify the electronic device 300 that the reconnection is successful.
  • the electronic device 300 sends a Bluetooth back-connection broadcast message 2.
  • the electronic device 200 and the electronic device 200 form an electronic device, and the electronic device 300 has been paired with the electronic device 200 before detecting the out-of-box event. Therefore, after detecting the out-of-box event, the electronic device 300 can not only connect back to other electronic devices (such as the electronic device 100), but also connect back to the electronic device 200.
  • the electronic device 300 can send a Bluetooth back-connection broadcast message 2 to the electronic device 200 based on the pairing information stored when pairing with the electronic device 200 (such as the MAC address of the electronic device 200), and the Bluetooth back-connection broadcast message 2 can be used to request to establish a Bluetooth communication connection with the electronic device 200, and the Bluetooth back-connection broadcast message 2 may include device information of the electronic device 300 (such as the MAC address of the electronic device 300).
  • the electronic device 200 establishes a Bluetooth communication connection 2 with the electronic device 300 .
  • the electronic device 200 determines that the device information of the electronic device 300 included in the Bluetooth broadcast message 2 exists in its own stored pairing information list, and then the electronic device 200 establishes a Bluetooth communication connection 2 with the electronic device 300 .
  • the electronic device 200 sends a Bluetooth incoming call synchronization message to the electronic device 300 based on the Bluetooth communication connection 2 .
  • the Bluetooth incoming call synchronization message may include but is not limited to: device information of the incoming call device (e.g., electronic device 100) (e.g., MAC address of the incoming call device).
  • the Bluetooth incoming call synchronization message may be used to notify the electronic device 300 of an incoming call, and may also be used to notify the electronic device 300 of a successful reconnection.
  • the electronic device 300 can determine whether the electronic device currently establishing the Bluetooth communication connection 1 with the electronic device 300 and the current incoming call device are the same device based on the Bluetooth incoming call synchronization message sent by the electronic device 200 and the Bluetooth incoming call notification message sent by the electronic device 100. If so, the subsequent steps can be continued to play the incoming call sound through the electronic device 300. If not, the electronic device 300 needs to reconnect the current incoming call device. Only after the reconnection is successful can the subsequent steps be continued to play the incoming call sound through the electronic device 300. In this way, when the user has multiple electronic devices (such as mobile phones) at the same time, the switching of communication connections can be completed quickly and automatically without manual operation by the user, thereby improving the user experience.
  • the Bluetooth incoming call synchronization message sent by the electronic device 200 and the Bluetooth incoming call notification message sent by the electronic device 100 If so, the subsequent steps can be continued to play the incoming call sound through the electronic device 300. If not, the electronic device 300 needs to reconnect the current incoming call device. Only after the
  • the implementation method of determining "whether the electronic device that currently establishes Bluetooth communication connection 1 with electronic device 300 and the current incoming call device are the same device" can be as follows: electronic device 300 can compare the device information of the incoming call device included in the Bluetooth incoming call synchronization message sent by electronic device 200 with the device information of electronic device 100 included in the Bluetooth incoming call notification message sent by electronic device 100. If they are the same, it means that the electronic device that currently establishes Bluetooth communication connection 1 with electronic device 300 and the current incoming call device are the same device; if they are different, it means that the electronic device that currently establishes Bluetooth communication connection 1 with electronic device 300 and the current incoming call device are not the same device.
  • Steps S806-S808 may be executed before steps S809-S811, or after steps S809-S811, or simultaneously with steps S809-S811.
  • the incoming call status notification message 1 in the aforementioned step S804 may include the device information of the electronic device 100, so that after the electronic device 300 is out of the box, it can reconnect to the electronic device 100 based on the device information of the electronic device 100 included in the incoming call status notification message 1 (i.e., execute steps S806-S809), so that after the reconnection is successful, it is no longer necessary to determine whether the device it is currently connected to is the incoming call device.
  • the above steps S808 and S811 are optional.
  • the above steps S809 to S811 may also be performed before the above step S806, that is, the electronic device 300 executes step S809 to connect to the electronic device 200 after it is out of the box.
  • the electronic device 300 can connect to the electronic device 100 based on the device information of the electronic device 100 included in the Bluetooth incoming call synchronization message sent by the electronic device 200 (that is, execute steps S806 to S809). In this way, after the reconnection is successful, it is no longer necessary to determine whether the device currently reconnected is the incoming call device.
  • the above step S808 is optional.
  • electronic device 200 may also detect an out-of-box event. In this case, electronic device 200 may actively reconnect to electronic device 300 after detecting the out-of-box event, instead of electronic device 300 actively reconnecting to electronic device 200 in step S809 above.
  • electronic device 300 may send a message of the reconnection failure to electronic device 200, and electronic device 200 may display a prompt message based on the message (for example, "Headphone connection failed, please answer the call on your mobile phone") to prompt the user to answer the incoming call on electronic device 100.
  • S812 The electronic device 300 detects an event that the user wears headphones.
  • step S812 may be used as a condition for triggering the execution of the following step S813.
  • condition that triggers the execution of the following step S813 may also be an event in which the electronic device 300 detects that the user is wearing headphones (for example, the event of wearing headphones shown in FIG. 9B ), and/or an event in which the user presses a physical button (for example, a button on the electronic device 300 for answering incoming calls) or triggers a gesture operation (for example, double-clicking the electronic device 300).
  • a physical button for example, a button on the electronic device 300 for answering incoming calls
  • a gesture operation for example, double-clicking the electronic device 300.
  • the condition that triggers the execution of the following step S813 may also be that the electronic device 200 detects the user's operation (such as a click operation) on option 912 shown in Figure 9A.
  • the electronic device 200 can send information about the connection event to the electronic device 100 based on the Bluetooth communication connection established with the electronic device 100, and the electronic device 300 does not need to execute the following step S813; alternatively, the electronic device 200 can also send an indication message to the electronic device 300 based on the Bluetooth communication connection 2 to instruct the electronic device 300 to execute the following step S813.
  • the electronic device 300 sends information of a connection event to the electronic device 100 based on the Bluetooth communication connection 1 .
  • the information of the connection event may include a call connection instruction, such as an ATA (Attention Adapter) instruction.
  • ATA Application Adapter
  • the electronic device 300 sends a message 1 to answer the incoming call to the electronic device 200 based on the Bluetooth communication connection 2 .
  • the above-mentioned message 1 for answering the incoming call may include information for instructing the electronic device 100 to answer the incoming call.
  • the electronic device 200 switches the incoming call interface to the answering interface (eg, the user interface 920 exemplarily shown in FIG. 9C ) based on the message 1 that answers the incoming call.
  • the answering interface eg, the user interface 920 exemplarily shown in FIG. 9C
  • the connection interface may not be displayed on the electronic device 200 , thereby saving energy consumption of the electronic device 200 .
  • electronic device 100 may send message 1 of answering the incoming call to electronic device 200, so that electronic device 200 displays the answering interface based on the message.
  • electronic device 300 does not need to perform the above step S815.
  • the electronic device 100 sends a message 2 to connect the incoming call to the electronic device 300 based on the Bluetooth communication connection 1 .
  • the above-mentioned message 2 for connecting the incoming call may include a signal of the call sound (ie, call audio) of the incoming call.
  • the electronic device 300 plays a call sound based on the message 2 of answering the incoming call.
  • the above steps are explained using the electronic device 300 in the box as an example. It is easy to understand that if the electronic device 300 is outside the box and the electronic devices 100, 200 and 300 maintain Bluetooth communication connections, then when the electronic device 100 receives an incoming call, the above steps S805-S811 may not be executed, and the incoming call status notification message in the above step S804 may include the device information of the electronic device 100.
  • the electronic device 300 may determine that the currently connected device is the incoming call device based on the device information of the electronic device 100, and after determining that the electronic device 100 is the incoming call device, it may trigger the subsequent process of answering the incoming call.
  • the electronic device 200 can support the user to set the sound and noise reduction mode of the electronic device 300.
  • the electronic device 200 can support the user to trigger the display of the sound settings interface by pressing a physical button (such as button 922) or clicking an interface option (such as option 921).
  • the user interface 930 exemplarily shown in FIG9D can be a sound settings interface, and the user can set the sound by adjusting the volume bar 931, which is flexible and convenient.
  • the electronic device 200 may display the prompt message "Click the button/hot zone on the right side of the watch to adjust the volume" as exemplified in FIG. 9E.
  • the electronic device 200 can support the user to click on the interface option (such as option 923) to trigger the display of the noise reduction mode setting interface.
  • the user interface 940 exemplarily shown in FIG. 9F can be a noise reduction mode setting interface, which may include multiple noise reduction mode options (such as option 941, option 942, option 943), each noise reduction mode option corresponds to a noise reduction mode, and the user can set the corresponding noise reduction mode by clicking on any one of the options, which is flexible and convenient.
  • option 941 corresponds to the "noise reduction mode", which achieves the noise reduction effect by neutralizing the sound waves generated by the noise reduction system with the external noise sound waves, and can completely filter out external sounds
  • option 942 corresponds to the "transmittal mode", which allows external sounds to enter, for example, it can filter out environmental sounds and allow human voices to enter
  • option 942 corresponds to "off mode”, which means turning off “noise reduction mode” and “transparent transmission mode", and the system does not need to perform noise reduction processing on the sound.
  • the electronic device 300 may also automatically set the noise reduction mode after detecting an event in which the user triggers a certain gesture operation (eg, a triple-click operation on the electronic device 300).
  • a certain gesture operation eg, a triple-click operation on the electronic device 300.
  • the electronic device 200 can support the user to set a call strategy after the earphone is inserted into the box.
  • the call strategy after the earphone is put into the box may include two strategies: “hang up after putting into the box” and “transfer after putting into the box".
  • “hang up after putting into the box” may mean that if an event of putting into the box occurs during the process of answering the call, the call will be hung up;
  • "transfer after putting into the box” may mean that if an event of putting into the box occurs during the process of answering the call, the earphone can stop playing the call sound, and the call sound will be transferred to the incoming call device (such as electronic device 100). The call will not be hung up, and the user can continue to answer the call.
  • the user can set the call strategy after the earphone is in the box through the "settings" menu on the electronic device 200.
  • the user interface 950 exemplarily shown in FIG. 9G may be a user interface corresponding to the "settings" menu, and the user interface may include one or more setting options (such as option 951, etc.), wherein option 951 may be used for the user to enter the call strategy setting interface to set the call strategy.
  • the electronic device 200 may detect the user's operation on option 951 (such as a click operation), and in response to the operation, the electronic device 200 may display the user interface 960 exemplarily shown in FIG. 9H, which may be a call strategy setting interface.
  • the electronic device 200 can default the call strategy after the headset is put into the box to "transfer after entering the box” (that is, option 961 corresponding to "hang up after entering the box” shown in Figure 9H is in the off state), and save the information of the call strategy after the headset is put into the box as the information of the "transfer after entering the box” strategy.
  • the electronic device 200 can detect the user's operation on option 961 (such as a click operation). In response to the operation, the electronic device 200 can set option 961 from the closed state shown in Figure 9H to the open state shown in Figure 9I, and save the information of the call policy after the headset is put into the box as the information of the "put in the box and hang up" policy.
  • option 961 such as a click operation
  • S819 The electronic device 200 detects an earphone entry event.
  • the earphone-in-box event is detected by the electronic device 200 during the call process.
  • the electronic device 200 sends information of the box entry event to the electronic device 300 .
  • the electronic device 300 sends a request to the electronic device 200 for obtaining a post-box call policy.
  • the electronic device 300 can obtain the call strategy after the earphone is put into the box by sending a request to the electronic device 300, or the electronic device 200 actively sends the call strategy after the earphone is put into the box to the electronic device 300 after detecting the above-mentioned entry event.
  • the electronic device 200 can also actively send the call policy after the headset is put into the box to the electronic device 300. In this way, when the headset is put into the box during the call, if the headset is put into the box event occurs, the electronic device 300 does not need to request the electronic device 200 to obtain the call policy after the headset is put into the box.
  • the electronic device 300 may also detect the box entry event by itself. In this case, the above steps S819 to S820 may not be performed.
  • the electronic device 200 sends information of the “hang up after entering the box” policy to the electronic device 300 .
  • the above step S822 may be triggered and executed by the above step S821.
  • the electronic device 300 sends information of a hang-up event to the electronic device 100 based on the Bluetooth communication connection 1 .
  • the information of the above-mentioned hang-up event may include a call hang-up instruction, such as an ATCHUP (Attention Call Hang Up) instruction.
  • a call hang-up instruction such as an ATCHUP (Attention Call Hang Up) instruction.
  • the Bluetooth communication connection 1 may be disconnected after sending information of a hang-up event to the electronic device 100.
  • the electronic device 100 hangs up the incoming call based on the information of the hang-up event.
  • the electronic device 300 sends synchronization information of the hang-up event to the electronic device 200.
  • the electronic device 200 cancels display of the connection interface based on the synchronization information of the hang-up event.
  • the above step S825 may be executed by the electronic device 100 instead of the electronic device 300. That is to say, after the electronic device 100 hangs up the call, it may send information about the hang-up event to the electronic device 200. After the electronic device 200 receives the synchronization information of the hang-up event sent by the electronic device 100, the electronic device 200 may cancel the display of the connection interface based on the synchronization information of the hang-up event.
  • the user may also hang up the call on electronic device 100.
  • electronic device 100 may send an instruction message for hanging up the call to electronic device 200.
  • electronic device 200 may cancel displaying the connection interface. After hanging up the call, the call sound will no longer be played on electronic device 300.
  • the user may also hang up the call on the electronic device 200.
  • the electronic device 200 may send an instruction message for hanging up the call to the electronic device 100. After receiving the instruction message, the electronic device 100 may hang up the call. After hanging up the call, the call sound will no longer be played on the electronic device 300.
  • the electronic device 200 sends the information of the “transfer into box” strategy to the electronic device 300.
  • the above step S822' can be triggered and executed by the above step S821.
  • the electronic device 300 goes into sleep mode and disconnects the Bluetooth communication connection 1 with the electronic device 100.
  • the electronic device 100 plays the call sound.
  • the call can be automatically transferred to the electronic device 100 for answering, that is, the electronic device 100 plays the call sound and the electronic device 300 stops playing the call sound.
  • the electronic device 300 sends synchronization information of the event of disconnecting the Bluetooth communication connection 1 to the electronic device 200.
  • step S825' may be executed by electronic device 100 instead of electronic device 300. That is, after electronic device 100 disconnects the Bluetooth communication connection 1 with electronic device 300, electronic device 100 may send information about the event of disconnecting the Bluetooth communication connection 1 to electronic device 200, and electronic device 200 may cancel display of the connection interface based on the information.
  • the above steps S825’-S826’ may not be performed.
  • the embodiment shown in FIG10 may be executed when the electronic device 100, the electronic device 200, and the electronic device 300 are all successfully paired, and a Bluetooth communication connection is established between the electronic device 100 and the electronic device 200, and when the electronic device 300 is in the box, the electronic device 200 detects that a user triggers a dialing event.
  • S1001 The electronic device 200 detects that a user triggers a dialing event.
  • a possible implementation manner of a user triggering a dialing event on the electronic device 200 may be as follows:
  • the user interface 1110 shown in FIG. 11A may be a user interface corresponding to a function menu on the electronic device 200, and the user interface may include one or more options (e.g., option 1111), wherein option 1111 may be used for the user to enter the call record interface to view the call record or dial the number in the call record. If the user wants to view the call record, or dial the number in the call record, then the electronic device 200 may detect the user's operation (e.g., click operation) on option 1111 shown in FIG. 11A , and in response to the operation, the electronic device 200 may display the user interface 1120 shown in FIG.
  • option 1111 may be used for the user to enter the call record interface to view the call record or dial the number in the call record.
  • call record 11B which may be a call record interface, and may include one or more call records (e.g., call record 1121). Assuming that the user wants to call Lisa shown in call record 1121, then the electronic device 200 may detect the user triggering a dialing event (e.g., the operation of clicking on call record 1121), and generate information 1 of the dialing event.
  • a dialing event e.g., the operation of clicking on call record 1121
  • the information recorded in each call record may include, but is not limited to: the phone number, contact person, and device information of the electronic device that generated the call record (e.g., MAC address, etc.) corresponding to the call record.
  • call record 1121 is a call record generated by a user using electronic device 100 to call contact person Lisa with phone number 186xxxx1105, then the phone number corresponding to the call record 1121 is 186xxxx1105, the contact person is Lisa, and the device information of the electronic device that generated the call record 1121 is the device information of electronic device 100 (e.g., MAC address, etc.).
  • the above-mentioned one or more call records may be call records generated by an electronic device (such as a mobile phone) that has established a wireless communication connection (such as a Bluetooth communication connection) with the electronic device 200. That is to say, when the electronic device (such as a mobile phone) has an incoming call, as long as the electronic device has notified the electronic device 200 of the incoming call, the electronic device 200 can save the call record, and subsequently the electronic device 200 can support the user to trigger a dialing event by operating the call record.
  • a wireless communication connection such as a Bluetooth communication connection
  • the call record list of the electronic device 200 may also only display the call records generated by the electronic device (such as a mobile phone) currently connected to the electronic device 200. In this way, after the user triggers the dialing event, it can avoid the subsequent failure of the electronic device 300 to successfully connect to the call.
  • the above electronic devices (such as mobile phones) are connected, resulting in dialing failure.
  • the electronic device 200 sends information 1 of a dialing event to the electronic device 300 .
  • the dialing event information 1 may include but is not limited to: the dialed phone number (eg, the phone number corresponding to the call record 1121 ), and device information of the dialing device (eg, device information of the electronic device that generates the call record 1121 ).
  • the electronic device 200 may trigger the electronic device 300 to switch from the sleep state to the wake-up state, so that the electronic device 300 can receive the message sent by the electronic device 200 .
  • S1003 The electronic device 300 detects an out-of-box event.
  • electronic device 300 if after electronic device 200 sends information about a dialing event to electronic device 300, no out-of-box event of electronic device 300 is detected, electronic device 300 will be in an unconnected state (i.e., a state in which no wireless communication connection is established between electronic device 300 and electronic device 200). Then, electronic device 200 may display the user interface shown in the example of FIG. 11C , which may include prompt information to prompt the user that electronic device 300 is in an unconnected state and that dialing has failed. The user may try to initiate dialing again after successfully connecting to electronic device 300.
  • the electronic device 300 may trigger the execution of subsequent steps S1004 to S1005 and steps S1006 to S1007, thereby establishing a Bluetooth communication connection with the electronic device 100 and the electronic device 200.
  • the electronic device 300 sends a Bluetooth back-connection broadcast message 1 .
  • the electronic device 100 establishes a Bluetooth communication connection 1 with the electronic device 300 .
  • the electronic device 300 sends a Bluetooth back-connection broadcast message 2 .
  • the electronic device 200 establishes a Bluetooth communication connection 2 with the electronic device 300 .
  • step S1004-step S1005 and step S1006-step S1007 is similar to step S806-step S807 and step S809-step S810 in the aforementioned Figure 8, and will not be repeated here.
  • the electronic device 300 can compare the device information of the dial-up device with the device information of the currently connected electronic device 100. If they are the same, it means that the dial-up device is the currently connected electronic device 100, and the subsequent steps can be continued; if they are different, it means that the dial-up device is not the currently connected electronic device 100, then the electronic device 300 needs to reconnect to the dial-up device, and the subsequent steps can be continued after the reconnection is successful.
  • the electronic device 300 after the electronic device 300 is taken out of the box, it may not reconnect to the device that was paired with the electronic device 300 the last time, but reconnect to the dial-up device based on the device information of the dial-up device sent by the electronic device 200. After the reconnection is successful, the subsequent steps can be directly executed, so that the electronic device 300 does not need to determine whether the currently connected device is a dial-up device.
  • the electronic device 300 detects an event that the user wears headphones.
  • step S1008 may be used as a condition to trigger the execution of the following step S1009.
  • condition that triggers the execution of the following step S1009 may also be an event in which the electronic device 300 detects that the user is wearing headphones (for example, the event of wearing headphones shown in FIG. 9B ), and/or an event in which the user presses a physical button (for example, a button on the electronic device 300 for making calls) or triggers a gesture operation (for example, double-clicking the electronic device 300).
  • a physical button for example, a button on the electronic device 300 for making calls
  • a gesture operation for example, double-clicking the electronic device 300.
  • the electronic device 300 sends the dialing event information 2 to the electronic device 100 based on the Bluetooth communication connection 1 .
  • the information 2 of the dialing event may include, but is not limited to: the dialed phone number (eg, the phone number corresponding to the call record 1121).
  • condition for triggering the execution of the above step S1009 may also be that the electronic device 300 successfully establishes a Bluetooth communication connection 1 with the electronic device 100. In this case, the above step S1008 may not be executed.
  • the electronic device 100 performs a dialing operation based on the information 2 of the dialing event.
  • the electronic device 100 may display the user interface shown in FIG. 11D , and the electronic device 300 may also display the user interface shown in FIG. 11E , to prompt the user that the electronic device 100 has completed the dialing operation and is initiating a call.
  • the electronic device 300 can send a message to the electronic device 200 based on the Bluetooth communication connection 2 that the user is not wearing headphones. Further, the electronic device 200 can display the user interface shown in Figure 11F based on the message to prompt the user to wear headphones (for example, automatic dialing can be performed after wearing headphones). After the user wears the headphones and the electronic device 100 completes the dialing operation, the electronic device 200 can display the user interface shown in Figure 11E.
  • the device information of the dialing device (for example, the device name of the dialing device) can also be displayed in the user interface shown in Figure 11E.
  • the electronic device 100 sends a call-connecting message 1 to the electronic device 300 based on the Bluetooth communication connection 1 .
  • the above-mentioned message 1 for connecting the call may include a signal of the call sound (ie, call audio) of the phone.
  • the electronic device 300 sends a call-connecting message 2 to the electronic device 200 based on the Bluetooth communication connection 2 .
  • the above-mentioned call-connecting message 2 may include information for instructing the electronic device 100 to connect the call.
  • the electronic device 200 displays a call connection interface based on the message 2 indicating that the call is connected.
  • the electronic device 300 plays a call sound based on the message 1 indicating that the call is connected.
  • the electronic device 100 may also send a message 2 indicating that the call is connected to the electronic device 200, so that the electronic device 200 displays a connection interface (such as the user interface 920 shown in Figure 9C) based on the message.
  • a connection interface such as the user interface 920 shown in Figure 9C
  • the above steps are explained using the example of the electronic device 300 being inside the box. It is easy to understand that if the electronic device 300 is outside the box, and the electronic devices 100, 200, and 300 all maintain Bluetooth communication connections, then after receiving the dialing event information 1 sent by the electronic device 200, the above steps S1004 to S1007 do not need to be executed.
  • the electronic device 300 only needs to confirm whether the currently connected electronic device 100 is a dialing device. If so, it triggers the execution of subsequent steps.
  • a watch and earphones are paired with the same mobile phone, which can support the formation of "connection method 1" shown in FIG. 2G above, that is, the watch and earphones are connected to the same mobile phone, and the connection between the watch and earphones, and the connection between the earphones and the mobile phone can be established based on the pairing information when the earphones are out of the box.
  • the earphone can also be paired with another mobile phone separately, and the connection mode between the earphone and the mobile phone can be changed from the "connection mode 1" shown in the aforementioned FIG. 2G to the "connection mode 2" shown in the aforementioned FIG. 2H.
  • the process of pairing the earphone with another mobile phone separately can be as follows:
  • the watch can receive a certain operation from the user, which can be used to control the headset to enter a pairing state.
  • the watch can receive a notification message sent by the headset to learn that the headset is in a waiting-for-pairing state.
  • the notification message can be transmitted through a communication connection between the watch and the headset, and the communication connection can be a wireless communication connection (such as a Bluetooth communication connection) established between the headset and the watch, or an electrical connection formed by contact of communication electrodes.
  • the other mobile phone can discover the headset in the pairing state through wireless communication technologies such as Bluetooth. After the other mobile phone detects the user's operation of connecting the headset, it can pair with the headset and establish a wireless communication connection (such as a Bluetooth communication connection).
  • a wireless communication connection such as a Bluetooth communication connection
  • the following describes the specific execution process of the communication method provided in the embodiment of the present application in the incoming call scenario and the outgoing call scenario when the connection method between the electronic device 100 (e.g., mobile phone A), the electronic device 200 (e.g., a watch), the electronic device 300 (e.g., headphones), and the electronic device 400 (e.g., mobile phone B) is the connection method 2 shown in the aforementioned FIG. 2H.
  • the electronic device 100 e.g., mobile phone A
  • the electronic device 200 e.g., a watch
  • the electronic device 300 e.g., headphones
  • the electronic device 400 e.g., mobile phone B
  • the following embodiments are all executed when the electronic device 100 establishes a Bluetooth communication connection 1 with the electronic device 200 , the electronic device 200 establishes a Bluetooth communication connection 2 with the electronic device 300 , and the electronic device 300 establishes a Bluetooth communication connection 3 with the electronic device 400 .
  • Incoming call scenario 1 (electronic device 400 incoming call)
  • FIG12 exemplarily shows a specific process in the scenario of an incoming call to the electronic device 400. The following is a detailed description of the steps:
  • S1201 The electronic device 400 receives an incoming call.
  • the electronic device 400 sends an incoming call message 1 to the electronic device 300 based on the Bluetooth communication connection 3 .
  • the incoming call message 1 may include but is not limited to: device information of the electronic device 400 (eg, MAC address, etc.) and the incoming caller's phone number.
  • the electronic device 300 sends an incoming call message 2 to the electronic device 200 based on the Bluetooth communication connection 2 .
  • the incoming call message 2 may include but is not limited to: device information of the electronic device 400 (eg, MAC address, etc.) and the incoming caller's phone number.
  • the electronic device 200 displays an incoming call interface based on the incoming call message 2 .
  • S1205 The electronic device 300 detects an event that the user wears headphones.
  • step S1205 may be used as a condition for triggering the execution of the following step S1206.
  • the condition for triggering the execution of the following step S1206 may also be that the electronic device 300 detects an event that the user wears headphones (for example, the event of wearing headphones as shown in FIG. 9B ), and/or the user presses a physical button (for example, a button on the electronic device 300 for answering an incoming call). Or an event that triggers a certain gesture operation (such as double-clicking the electronic device 300).
  • the user may also trigger a connection event on the incoming call interface displayed on the electronic device 200 (for example, by clicking on the answer option displayed on the incoming call interface).
  • the electronic device 200 may send an indication message to the electronic device 300 based on the Bluetooth communication connection 2 to instruct the electronic device 300 to execute the following step S1206.
  • the electronic device 300 sends information of the connection event to the electronic device 400 based on the Bluetooth communication connection 3 .
  • the information of the connection event may include a call connection instruction, such as an ATA (Attention Adapter) instruction.
  • ATA Application Adapter
  • S1207 The electronic device 400 answers the incoming call based on the information of the answering event.
  • the electronic device 300 sends a message 1 to answer the incoming call to the electronic device 200 based on the Bluetooth communication connection 2 .
  • the above-mentioned message 1 for answering the incoming call may include information for instructing the electronic device 400 to answer the incoming call.
  • the electronic device 200 switches the incoming call interface to the answering interface based on the message 1 of the incoming call being answered.
  • the electronic device 400 sends a message 2 for answering the incoming call to the electronic device 300 based on the Bluetooth communication connection 3 .
  • the above-mentioned message 2 for connecting the incoming call may include a signal of the call sound (ie, call audio) of the incoming call.
  • the electronic device 300 plays a call sound based on the message 2 of answering the incoming call.
  • Incoming call scenario 2 (both electronic device 100 and electronic device 400 receive incoming calls)
  • FIG13 exemplarily shows a specific process in a scenario where both electronic device 100 and electronic device 400 receive calls. The following is a detailed description of the steps:
  • the electronic device 100 receives an incoming call 1.
  • the electronic device 100 sends an incoming call message 1 to the electronic device 200 based on the Bluetooth communication connection 1 .
  • the incoming call message 1 may include but is not limited to: device information of the electronic device 100 (eg, MAC address, etc.) and the phone number of the incoming call 1.
  • Electronic device 400 receives incoming call 1’.
  • the electronic device 400 sends an incoming call message 1' to the electronic device 300 based on the Bluetooth communication connection 3.
  • the above-mentioned incoming call message 1' may include but is not limited to: device information of the electronic device 400 (such as MAC address, etc.) and the telephone number of the incoming call 1'.
  • the electronic device 300 sends an incoming call message 1" to the electronic device 200 based on the Bluetooth communication connection 2.
  • the above-mentioned incoming call message 1" may include but is not limited to: device information of the electronic device 400 (such as MAC address, etc.) and the telephone number of the incoming call 1'.
  • the electronic device 200 displays an incoming call interface corresponding to the incoming call 1 based on the incoming call message 1 .
  • both the electronic device 100 and the electronic device 300 may send incoming call messages to the electronic device 200, and the electronic device 200 can only display the interface of one call, therefore, when both the electronic device 100 and the electronic device 400 have incoming calls, the electronic device 200 can display the incoming call interface corresponding to the electronic device whose incoming call message is received first.
  • the electronic device 200 first receives the incoming call message 1 .
  • the electronic device 200 can display the incoming call interface corresponding to the incoming call 1' based on the incoming call message 1".
  • the above steps S1303 to S1305 may also be performed after the above step S1306, that is, when the electronic device 200 is displaying the incoming call interface corresponding to the incoming call 1, the electronic device 400 receives an incoming call.
  • the electronic device 200 displays the incoming call interface corresponding to the incoming call 1, there may be two situations for answering the incoming call: one situation is to answer the incoming call 1; the other situation is that the incoming call 1 times out and is not answered (that is, the electronic device 100 ends the ringing but is not answered), and the incoming call 1' has not timed out (that is, the electronic device 400 is still ringing), and the incoming call 1' is answered.
  • the above two situations are described in detail below:
  • electronic device 100 can send a timeout notification message of incoming call 1 to electronic device 200 via Bluetooth communication connection 1, and electronic device 200 can cancel display of the incoming call interface corresponding to incoming call 1 based on the timeout notification message of incoming call 1.
  • electronic device 400 can send a timeout notification message of incoming call 1' to electronic device 200 via electronic device 300, and if electronic device 200 is displaying the incoming call interface corresponding to incoming call 1', then electronic device 200 can also cancel display of the incoming call interface corresponding to incoming call 1' based on the timeout notification message of incoming call 1'.
  • the electronic device 200 detects the user's operation of answering the incoming call 1 .
  • the operation of the user answering the incoming call 1 may be an operation (eg, a click operation) of the user on an answering option on an incoming call interface corresponding to the incoming call 1 .
  • the electronic device 200 sends an answering message 1 to the electronic device 300 based on the Bluetooth communication connection 2 .
  • the message includes a message indicating that the user answers the incoming call 1 and device information of the electronic device 100 .
  • the device information of the electronic device 100 in the above-mentioned answering message 1 may include the MAC address of the electronic device 100 .
  • the electronic device 300 disconnects the Bluetooth communication connection 3 .
  • the electronic device 300 may determine that it needs to reconnect to the electronic device 100 based on the device information of the electronic device 100 in the above-mentioned answering message 1, and before reconnecting to the electronic device 100, disconnect the Bluetooth communication connection (ie, Bluetooth communication connection 3) with the electronic device 400.
  • the Bluetooth communication connection ie, Bluetooth communication connection 3
  • the electronic device 300 sends a Bluetooth back-connection broadcast message 1 .
  • the electronic device 300 establishes a Bluetooth communication connection 4 with the electronic device 100 .
  • the electronic device 300 can send a reconnection failure message to the electronic device 200 based on the Bluetooth communication connection 2, and the electronic device 200 can display a prompt message based on the message (for example, "The headphone connection failed, please answer the call on the mobile phone") to prompt the user to answer the incoming call 1 on the electronic device 100.
  • the electronic device 300 sends information of the event of answering the incoming call 1 to the electronic device 100 based on the Bluetooth communication connection 4 .
  • the information of the event of answering the incoming call 1 may include a call answering instruction, such as an ATA (Attention Adapter) instruction.
  • a call answering instruction such as an ATA (Attention Adapter) instruction.
  • S1313 The electronic device 100 answers the incoming call 1 based on the information of the event of answering the incoming call 1.
  • the electronic device 300 sends a message 1 to connect the incoming call 1 to the electronic device 200 based on the Bluetooth communication connection 2 .
  • the message 1 for answering the incoming call 1 may include information for instructing the electronic device 100 to answer the incoming call 1 .
  • the electronic device 200 displays a corresponding answering interface of the incoming call 1 based on the message 1 for answering the incoming call 1.
  • the electronic device 100 sends a message 2 to connect the incoming call 1 to the electronic device 300 based on the Bluetooth communication connection 4 .
  • the message 2 for connecting the incoming call 1 may include a signal of the call sound (ie, call audio) of the incoming call 1 .
  • the electronic device 300 plays the call audio of the incoming call 1 based on the message 2 for connecting the incoming call 1.
  • electronic device 100 after electronic device 100 answers incoming call 1, it can send message 1 of answering incoming call 1 to electronic device 200 based on Bluetooth communication connection 1, so that electronic device 200 displays a connection interface based on the message. In this case, electronic device 300 does not need to perform the above step S1314.
  • the electronic device 200 cancels displaying the incoming call interface corresponding to the incoming call 1, and displays the incoming call interface corresponding to the incoming call 1' based on the incoming call message 1".
  • the trigger condition for "electronic device 200 cancels display of the incoming call interface corresponding to incoming call 1 and displays the incoming call interface corresponding to incoming call 1'" may also be that the user hangs up incoming call 1 and incoming call 1' has not timed out.
  • the electronic device 200 detects the user’s operation of answering the incoming call 1’.
  • the above-mentioned operation of the user answering the incoming call 1' can be the user's operation on the answering option on the incoming call interface corresponding to the incoming call 1' (for example, a click operation).
  • the electronic device 200 sends an answer message 1’ to the electronic device 300 based on the Bluetooth communication connection 2, and the message includes a message that the user answers the incoming call 1’.
  • the electronic device 300 sends information about the incoming call 1’ event to the electronic device 400 based on the Bluetooth communication connection 3.
  • the information of the above-mentioned event of answering the incoming call 1' may include a call answering instruction, such as an ATA (Attention Adapter) instruction.
  • a call answering instruction such as an ATA (Attention Adapter) instruction.
  • the electronic device 400 answers the incoming call 1’ based on the information of the event of answering the incoming call 1’.
  • the electronic device 300 sends a message 1 to the electronic device 200 to connect the incoming call 1’ based on the Bluetooth communication connection 2.
  • the message 1 for connecting the incoming call 1' may include information for instructing the electronic device 400 to connect the incoming call 1'.
  • the electronic device 200 displays the corresponding connection interface of the incoming call 1’ based on the message 1 of connecting the incoming call 1’.
  • electronic device 400 sends message 2 to connect incoming call 1’ to electronic device 300 based on Bluetooth communication connection 3.
  • the message 2 for connecting the incoming call 1' may include a signal of the call sound (i.e., call audio) of the incoming call 1'.
  • the electronic device 300 answers the incoming call 1’ and message 2 plays the call sound of the incoming call 1’.
  • electronic device 300 when electronic device 300 is answering an incoming call from electronic device 400, and electronic device 200 is displaying a connection interface corresponding to the incoming call from electronic device 400, if electronic device 100 has an incoming call, then electronic device 100 can send an incoming call message to electronic device 200 based on Bluetooth communication connection 1, and electronic device 200 can display a corresponding incoming call interface based on the incoming call message.
  • the subsequent process of answering the incoming call is similar to the steps in the first situation of Figure 13, and will not be repeated here. It is easy to understand that in the above situation, after electronic device 300 starts answering the incoming call from electronic device 100, the call sound of the incoming call from electronic device 400 can be automatically transferred to electronic device 400.
  • multiple call records can be saved and displayed on the electronic device 200.
  • These multiple call records can be call records generated by different electronic devices (such as the electronic device 100 and the electronic device 400).
  • the user can trigger a dialing event by operating a certain call record (such as clicking on a certain call record), so that the dialing device performs a dialing operation, wherein the dialing device is the electronic device that generates the call record.
  • the relevant introduction about saving and displaying call records on the electronic device 200 can refer to the aforementioned relevant text description, which will not be repeated here.
  • Figure 14 shows an example of the specific process of the outgoing call scenario. The following is a detailed introduction of the steps:
  • dialing devices as electronic device 400 and electronic device 100 as an example:
  • the dial-up device is an electronic device 400
  • the electronic device 200 detects that a user triggers dialing event 1.
  • the electronic device 200 sends information 1 of the dialing event 1 to the electronic device 300 based on the Bluetooth communication connection 2 .
  • the information 1 of the dialing event 1 may include, but is not limited to: the dialed telephone number and the device information of the dialing device.
  • the electronic device 300 sends the information 2 of the dialing event 1 to the electronic device 400 based on the Bluetooth communication connection 3 .
  • the information 2 of the dialing event 1 may include but is not limited to: the dialed telephone number.
  • the electronic device 400 performs a dialing operation based on the information 2 of the dialing event 1 .
  • the electronic device 400 sends a message 1 to connect the call 1 to the electronic device 300 based on the Bluetooth communication connection 3 .
  • the message 1 for connecting the phone 1 may include a signal of the call sound (ie, call audio) of the phone 1 .
  • the electronic device 300 sends a message 2 to connect the call 1 to the electronic device 200 based on the Bluetooth communication connection 2 .
  • the message 2 for connecting the call 1 may include information for instructing the electronic device 400 to connect the call 1 .
  • the electronic device 200 displays a corresponding connection interface of the call 1 based on the message 2 of the call 1 being connected.
  • the electronic device 300 plays the call sound of the phone 1 based on the message 1 of the connected phone 1.
  • the dialing device is an electronic device 100
  • the electronic device 200 detects that the user triggers the dialing event 1’.
  • the electronic device 200 sends information 1 of the dialing event 1’ to the electronic device 300 based on the Bluetooth communication connection 2.
  • the information 1 of the dialing event 1' may include but is not limited to: the dialed telephone number and the device information of the dialing device.
  • the electronic device 300 may determine that it needs to reconnect to the electronic device 100 based on the device information of the dialing device in the information 1 of the dialing event 1', and before reconnecting to the electronic device 100, disconnect the Bluetooth communication connection (i.e., Bluetooth communication connection 3) with the electronic device 400.
  • the Bluetooth communication connection i.e., Bluetooth communication connection 3
  • the electronic device 300 sends a Bluetooth back-connection broadcast message 1.
  • the electronic device 300 establishes a Bluetooth communication connection 4 with the electronic device 100.
  • the electronic device 300 can send a reconnection failure message to the electronic device 200 based on the Bluetooth communication connection 2, and the electronic device 200 can display relevant prompt information based on the message (for example, "The headset fails to connect to the electronic device 100, do you want to continue to use the electronic device 400 to make a call") to prompt the user to perform a dialing operation on the electronic device 400.
  • the electronic device 200 can send a message to the electronic device 300 based on the Bluetooth communication connection 2 to indicate that the user agrees to continue to use the electronic device 400 to make a call.
  • the electronic device 300 can re-establish a Bluetooth communication connection with the electronic device 400, and send a dialing event 1' information 2 to the electronic device 400 based on the Bluetooth communication connection.
  • the information may include the dialed phone number to trigger the electronic device 400 to perform a dialing operation based on the information.
  • S1406 ′ the electronic device 300 sends information 2 of the dialing event 1 ′ to the electronic device 100 based on the Bluetooth communication connection 4 .
  • the information 2 of the dialing event 1' may include but is not limited to: the dialed telephone number.
  • the electronic device 100 performs a dialing operation based on the information 2 of the dialing event 1’.
  • electronic device 100 sends message 1 to connect call 1’ to electronic device 300 based on Bluetooth communication connection 4.
  • the above-mentioned message 1 for connecting the phone 1’ may include a signal of the call sound (i.e., call audio) of the phone 1’.
  • electronic device 300 sends message 2 to connect call 1’ to electronic device 200 based on Bluetooth communication connection 2.
  • the message 2 for connecting the call 1' may include information for instructing the electronic device 100 to connect the call 1'.
  • the electronic device 200 displays the connection interface corresponding to the phone 1’ based on the message 2 of the connected phone 1’.
  • the electronic device 300 plays the call sound of the phone 1’ based on the message 1 of the connected phone 1’.
  • the electronic device 100 may also send the above-mentioned message 2 of connecting the call 1' to the electronic device 200 based on the Bluetooth communication connection 1, so that the electronic device 200 displays the connection interface based on the message.
  • the above-mentioned step S1410' may not be executed.
  • the call record list of the electronic device 200 may also only display the call records generated by the electronic device (such as a mobile phone) to which the electronic device 200 is currently connected. In this way, the user can avoid dialing failure after triggering a dialing event.
  • FIG. 15 exemplarily shows the specific process of the communication method provided in an embodiment of the present application in a music playback scenario.
  • the method can be applied to a communication system including an electronic device 200 (e.g., a watch) and an electronic device 300 (e.g., a headset), wherein the electronic device 200 and the electronic device 300 are an electronic device formed after morphological fusion, and the electronic device 200 may include a music application module, an audio service module, an audio codec module, and a Bluetooth module.
  • an electronic device 200 e.g., a watch
  • an electronic device 300 e.g., a headset
  • the electronic device 200 and the electronic device 300 are an electronic device formed after morphological fusion
  • the electronic device 200 may include a music application module, an audio service module, an audio codec module, and a Bluetooth module.
  • the music application module of the electronic device 200 detects the user's operation of playing song 1.
  • the music application module of the electronic device 200 sends audio file 1 to the audio service module of the electronic device 200 , where audio file 1 is the audio file corresponding to song 1 .
  • the audio service module of the electronic device 200 obtains the connection status information of the electronic device 300, and determines based on the information whether the electronic device 300 has established a wireless communication connection with the electronic device 200. If not, execute the following step S1504; if yes, execute the following step S1506.
  • the audio service module of electronic device 200 can obtain the connection status information of electronic device 300 from the Bluetooth module of electronic device 200, and the connection status information of electronic device 300 may include an indication message of whether electronic device 200 has established a wireless communication connection (such as a Bluetooth communication connection) with electronic device 300.
  • a wireless communication connection such as a Bluetooth communication connection
  • the audio service module of the electronic device 200 sends a message to the music application module of the electronic device 200 indicating that the electronic device 300 is not connected.
  • “electronic device 300 is not connected” may mean that electronic device 300 has not established a wireless communication connection with electronic device 200.
  • electronic device 300 is in a box, or electronic device 300 and electronic device 200 are not within a communication distance range capable of establishing a wireless communication connection.
  • the music application module of the electronic device 200 prompts the user to connect the electronic device 300 based on the message that the electronic device 300 is not connected.
  • Steps S1506 to S1510 After determining that the electronic device 300 has established a wireless communication connection with the electronic device 200, the electronic device 200 may send the audio data of song 1 to the electronic device 300 to enable the electronic device 300 to play song 1.
  • a possible implementation method may be as follows: Steps S1506 to S1510:
  • the audio service module of the electronic device 200 sends the data stream of the audio file 1 to the audio codec module of the electronic device 200 .
  • the audio codec module of the electronic device 200 encodes and decodes the data stream of the audio file 1 to obtain an audio stream.
  • the audio codec module of the electronic device 200 can first decode the data stream of the audio file 1 to obtain an audio stream in a pulse code modulation (Pulse Code Modulation, PCM) format, and further, the audio stream in the PCM format can be encoded to obtain an audio stream in an audio coding format supported by Bluetooth, for example, an audio stream in a sub-band coding (Sub-band Coding, SBC) format, or an audio stream in an advanced audio coding (Advanced Audio Coding, AAC) format, etc., which is not limited to the embodiments of the present application.
  • PCM pulse code modulation
  • PCM Pulse Code Modulation
  • PCM Pulse Code Modulation
  • PCM Pulse Code Modulation
  • the audio stream in the PCM format can be encoded to obtain an audio stream in an audio coding format supported by Bluetooth, for example, an audio stream in a sub-band coding (Sub-band Coding, SBC) format, or an audio stream in an advanced audio coding (Advanced Audio Coding,
  • the audio decoding module of the electronic device 200 sends the audio stream to the Bluetooth module of the electronic device 200 .
  • the Bluetooth module of the electronic device 200 sends the audio stream to the electronic device 300 .
  • the Bluetooth module of the electronic device 200 may be based on the Bluetooth high-quality audio transmission protocol (Advanced Audio Distribution Protocol). Profile, A2DP) is used to send audio streams to the electronic device 300.
  • A2DP Advanced Audio Distribution Protocol
  • the electronic device 300 plays song 1 based on the audio stream.
  • FIG. 16 exemplarily shows the specific process of the communication method provided in an embodiment of the present application in an upgrade scenario.
  • the method can be applied to a communication system including an electronic device 200 (e.g., a watch), an electronic device 300 (e.g., a headset), an electronic device 100 (e.g., a mobile phone), and an upgrade server, wherein the electronic device 200 and the electronic device 300 are an electronic device formed after morphological fusion.
  • an electronic device 200 e.g., a watch
  • an electronic device 300 e.g., a headset
  • an electronic device 100 e.g., a mobile phone
  • upgrade server e.g., a mobile phone
  • the development staff will develop a new version of the firmware, so that the old version of the firmware in the headset/watch can be upgraded with the new version of the firmware.
  • the headset/watch adopts the Over The Air (OTA) technology to upgrade the firmware.
  • OTA Over The Air
  • the data packet used for the firmware upgrade can be called an upgrade package, and the upgrade package can be one or more.
  • the electronic device 200 reads the latest version number information on the electronic device 100 .
  • the electronic device 100 can read the latest version number information from the upgrade server. Then, the electronic device 200 can periodically read the version number information on the electronic device 100 (for example, on the sports health application installed on the electronic device 100), or the electronic device 200 can read the version number information on the electronic device 100 under the user's trigger, or the electronic device 100 can also actively send the latest version number information to the electronic device 200 when there is a firmware update, so that the user can be prompted to trigger the upgrade operation in time when there is a firmware update.
  • the electronic device 200 can periodically read the version number information on the electronic device 100 (for example, on the sports health application installed on the electronic device 100), or the electronic device 200 can read the version number information on the electronic device 100 under the user's trigger, or the electronic device 100 can also actively send the latest version number information to the electronic device 200 when there is a firmware update, so that the user can be prompted to trigger the upgrade operation in time when there is a firmware update.
  • the upgrade server sends the upgrade package to the electronic device 200 through the electronic device 100 .
  • the electronic device 100 can periodically detect whether the upgrade server has a firmware update for the electronic device 200/electronic device 300. If so, the electronic device 100 can download the upgrade package from the upgrade server in advance and send it to the electronic device 200 based on a wireless communication connection (such as a Bluetooth communication connection); or, it can also download the upgrade package from the upgrade server in advance, and then send the upgrade package to the electronic device 200 based on a wireless communication connection (such as a Bluetooth communication connection) after detecting an operation triggered by a user to upgrade; or, it can only download the latest version number information first, and then download the upgrade package from the upgrade server after detecting an operation triggered by a user to upgrade, and send it to the electronic device 200 based on a wireless communication connection (such as a Bluetooth communication connection).
  • a wireless communication connection such as a Bluetooth communication connection
  • S1603 The electronic device 200 detects an operation by the user to trigger an upgrade.
  • the electronic device 200 may execute the following step S1604.
  • the above-mentioned user-triggered upgrade operation may also be performed on the electronic device 100.
  • the electronic device 100 may notify the electronic device 200 to execute the following step S1604 based on a wireless communication connection (eg, a Bluetooth communication connection).
  • a wireless communication connection eg, a Bluetooth communication connection
  • the electronic device 200 determines whether the headset is allowed to be upgraded. If so, the following step S1605 is executed. If not, a prompt message is displayed.
  • the electronic device 200 can determine whether the electronic device 300 is allowed to be upgraded (for example, whether the electronic device 300 is in the box, whether the power of the electronic device 300 exceeds a preset threshold, etc.). If so (for example, the electronic device 300 is in the box and the power of the electronic device 300 exceeds the preset threshold, etc.), the electronic device 200 can perform the following step S1605. If not, the electronic device 200 can display a prompt message that the electronic device 300 is currently not allowed to be upgraded, so that the electronic device 300 can be placed in a state where the upgrade is allowed through user operations (for example, placing the electronic device 300 in the box, charging the electronic device 300 until the power of the electronic device 300 exceeds the preset threshold, etc.).
  • the upgrade can only be performed if both earphones of the electronic device 300 are allowed to be upgraded, and a single earphone cannot be upgraded separately; in other examples, a single earphone can be upgraded separately if the upgrade is allowed, and the other earphone can be upgraded separately later if the upgrade is allowed.
  • S1606 The electronic device 300 starts upgrading based on the upgrade package.
  • the electronic device 200 may obtain the upgrade progress information of the electronic device 300 and display an upgrade progress interface based on the upgrade progress information.
  • step S1607 may be executed.
  • the electronic device 300 may send a notification message of upgrade failure to the electronic device 200, and the electronic device 200 may display prompt information based on the message to prompt the user that the electronic device 300 fails to upgrade.
  • the user can re-trigger the upgrade.
  • the electronic device 300 sends an upgrade completion notification message to the electronic device 200.
  • the electronic device 200 may display an upgrade progress interface based on its own upgrade progress information.
  • a prompt message may be displayed to prompt the user that the upgrade of the electronic device 300 has failed.
  • the user can re-trigger the upgrade.
  • electronic device 200 may display a prompt message to prompt the user that both electronic device 200 and electronic device 300 are successfully upgraded and the entire upgrade process is completed.
  • the upgrade of the electronic device 200 may be started first, and then the upgrade of the electronic device 300 may be started after the upgrade of the electronic device 200. In other examples, the upgrade of the electronic device 200 and the electronic device 300 may also be started at the same time.
  • the electronic device 300 is in the box, so the electronic device 200 and the electronic device 300 can communicate (e.g., transmit the upgrade package) through the electrical connection formed by the contact electrodes.
  • the electronic device 300 may not be in the box during the upgrade, in which case the electronic device 200 and the electronic device 300 can communicate (e.g., transmit the upgrade package) through a wireless communication connection (e.g., a Bluetooth communication connection).
  • the electronic device 200 and the electronic device 300 have completed the one-stop upgrade process.
  • the user can complete the entire upgrade process of the electronic device 200 and the electronic device 300 with one upgrade operation, which is simple and convenient, and improves the user experience.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated.
  • the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
  • SSD solid state drive
  • the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media.
  • the programs can include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本申请公开了一种通信方法及相关设备,基于手表与耳机组成的融合形态的电子设备,用户通过一次操作即可将电子设备100(例如手机)与手表、耳机进行配对并建立通信连接,这样,一次性完成电子设备100与手表、耳机的配对、建连动作,用户无感知;此外,用户在同时拥有多个电子设备100的情况下,该融合形态的电子设备可以根据用户的使用场景在这多个电子设备100之间自动完成通信连接的切换,简化用户操作,提高用户体验。

Description

通信方法及相关设备
本申请要求于2022年11月30日提交中国国家知识产权局、申请号为202211526428.0、申请名称为“通信方法及相关设备”的中国专利申请的优先权,本申请要求于2022年12月30日提交中国国家知识产权局、申请号为202211743755.1、申请名称为“通信方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种通信方法及相关设备。
背景技术
随着终端技术的发展,一个用户可能同时拥有多个电子设备(例如耳机、手表、手机等),这些电子设备之间可以通过两两之间建立的通信连接(例如蓝牙通信连接)来实现数据交互。但是,目前电子设备的使用场景仍然有较大的局限性,用户体验差。
发明内容
本申请实施例提供了一种通信方法及相关设备,可以便捷地在不同设备间切换通信连接,简化用户操作,提高用户体验。
第一方面,本申请实施例提供了一种配对连接方法,应用于第一设备,第一设备包括第一子设备和耳机,第一子设备中设置有容纳耳机的耳机槽,该方法包括:第一子设备与第二设备配对并建立通信连接;第一子设备基于通信连接向第二设备发送耳机的设备信息,耳机的设备信息用于第二设备与耳机配对。
其中,第一子设备可例如是智能手表,耳机的设备信息可以包括耳机的MAC地址。
通过实施第一方面提供的方法,表耳可视为一个整体与手机进行配对,在手机与手表配对完成之后,手机可以从手表获得耳机的MAC地址,从而手机可基于耳机的MAC地址自动配对耳机,而不需要用户手动配对耳机和手机。用户只需要一次配对流程便可配对表耳和手机。
在一种可能的实现方式中,耳机的设备信息是第一子设备通过耳机的通信电极与耳机槽内的通信电极接触所形成的电连接从耳机获取的。
这样,在耳机位于耳机槽内的情况下,即使耳机和第一子设备没有建立无线通信连接(例如蓝牙通信连接),耳机和第一子设备也可以基于上述电连接进行通信。
在一种可能的实现方式中,该方法还包括:第一子设备基于耳机的设备信息与耳机配对。
这样,第一子设备可以基于获取到的耳机的设备信息(例如MAC地址)自动与耳机进行配对,无需用户额外的操作,方便快捷,提高用户体验。
在一种可能的实现方式中,第一子设备与耳机配对是在耳机位于耳机槽时进行的。
在一种可能的实现方式中,第一子设备基于耳机的设备信息与耳机配对,具体包括:若仅单耳位于耳机槽,则第一子设备基于耳机的设备信息与位于耳机槽的单耳配对;若双耳位于耳机槽,则述第一子设备基于耳机的设备信息与位于耳机槽的双耳配对。
这样,既可以支持第一子设备与双耳同时配对,也可以支持与位于耳机槽内的单耳配对,后续用户再将另一种耳机放入耳机槽后,第一子设备可以再单独与该耳机配对。
在一种可能的实现方式中,在耳机与第二设备配对成功的情况下,该方法还包括:第一子设备检测到用户的第一操作;响应于第一操作,第一子设备控制耳机进入待配对状态;耳机与第三设备配对。
这样,耳机在与第一设备配对完成后,还可以在与另一个设备配对,也即是说,第一子设备和耳机可以配对同一个设备,也可以配对不同的设备,应用场景较为广泛,提高用户体验。
在上述第一方面中,第一设备可以是融合形态的电子设备(例如手表和耳机形成的融合形态的电子设 备),第一子设备可以电子设备200(例如手表),第二设备可以是电子设备100(例如手机),第一操作可以是用于控制耳机进入待配对状态的操作,第三设备可以是电子设备400(例如手机)。
第二方面,本申请实施例提供了一种通话控制方法,应用于第一设备,第一设备包括第一子设备和耳机,第一子设备与第二设备建立有第一通信连接,第一子设备与耳机建立有第二通信连接,耳机与第三设备建立有第三通信连接,该方法包括:第一子设备基于第一通信连接接收第二设备发送的第一消息,第一消息用于指示第二设备接收到第一来电;第一子设备基于第二通信连接接收耳机发送的第二消息,第二消息用于指示第三设备接收到第二来电,第二消息是第三设备基于第三通信连接向耳机发送的;第一子设备基于第一消息显示第一来电界面,或,基于第二消息显示第二来电界面。
通过实施第二方面提供的方法,在第二设备和第三设备均有来电的情况下,第一子设备均可以接收到来电通知,第一子设备可以显示其中一路来电的来电界面,后续可以支持用户接听来电,这样,即使第一子设备没有与来电设备建立无线通信连接,来电设备也可以通过耳机来向第一子设备发送来电通知,较为方便,提高用户体验。
在一种可能的实现方式中,第一来电界面为第一来电对应的来电界面,在第一子设备基于第一消息显示第一来电界面之后,方法还包括:第一子设备检测到用户的第一操作,第一操作用于接听第一来电;响应于第一操作,第一子设备基于第二通信连接向耳机发送第三消息,第三消息中包括第二设备的设备信息;耳机基于第二设备的设备信息断开第三通信连接,并与第二设备建立第四通信连接;第一子设备基于第一通信连接向第二设备发送第四消息,或,耳机基于第四通信连接向第二设备发送第四消息,第四消息用于指示第二设备接通第一来电;耳机基于第四通信连接接收并播放来自第二设备的第一来电的通话音频。
这样,在第二设备来电振铃过程中,第三设备有来电的情况下,第一子设备可以显示第二设备的来电界面,这样,用户可以通过操作来电界面来接听第二设备的来电。
在一种可能的实现方式中,第二来电界面为第二来电对应的来电界面,在第一子设备基于第二消息显示第二来电界面之后,该方法还包括:第一子设备检测到用户的第二操作,第二操作用于接听第二来电;响应于第二操作,第一子设备基于第二通信连接向耳机发送第五消息;耳机基于第五消息向第三设备发送第六消息,第六消息用于指示第三设备接通第二来电;耳机基于第三通信连接接收并播放来自第三设备的第二来电的通话音频。
这样,在第二设备来电超时未接听,第三设备还在来电振铃过程的情况下,第一子设备可以取消显示第二设备的来电界面,而是显示第三设备的来电界面,这样,用户可以通过操作来电界面来接听第三设备的来电。
在上述第二方面中,第一设备可以是融合形态的电子设备(例如手表和耳机形成的融合形态的电子设备),第一子设备可以电子设备200(例如手表),第二设备可以是电子设备100(例如手机A),第三设备可以是电子设备400(例如手机B),第一消息可以是图13中的来电消息1,第一来电可以是图13中的来电1,第二消息可以是图13中的来电消息1”,第二来电可以是图13中的来电1’,第一来电界面可以是来电1对应的来电界面,第二来电界面可以是来电1’对应的来电界面,第一操作可以是用户接听来电1的操作,第三消息可以是图13中的接听消息1,第四消息可以是图13中的接通来电1事件的信息,第二操作可以是用户接听来电1’的操作,第五消息可以是图13中的接听消息1’,第六消息可以是图13中的接通来电1’事件的信息。
第三方面,本申请实施例提供了一种通话控制方法,应用于第一设备,第一设备包括第一子设备和耳机,第一子设备与第二设备建立有第一通信连接,第一子设备与耳机建立有第二通信连接,耳机与第三设备建立有第三通信连接,该方法包括:耳机基于第三通信连接接收并播放来自第三设备的第一来电的通话音频;耳机基于第二通信连接向第一子设备发送第一消息,第一消息用于指示第三设备已接通第一来电;第一子设备基于第一消息显示第一接通界面;第一子设备基于第一通信连接接收第二设备发送的第二消息,第二消息用于指示第二设备接收到第二来电;第一子设备基于第二消息将第一接通界面切换显示为第一来电界面,并检测到用户的第一操作,第一操作用于接听第二来电;响应于第一操作,第一子设备基于第二通信连接向耳机发送第三消息,第三消息中包括第二设备的设备信息;耳机基于第二设备的设备信息与第二设备断开第三通信连接,并建立第四通信连接;第一子设备基于第一通信连接向第二设备发送第四消息,或,耳机基于第四通信连接向第二设备发送第四消息,第四消息用于指示第二设备接通第二来电;耳机基 于第四通信连接接收并播放来自第二设备的第二来电的通话音频。
通过实施第三方面提供的方法,在耳机接听第三设备的来电时,第二设备有来电的情况下,第一子设备也可以显示第二设备的来电界面,在用户接听第二设备的来电时,第一子设备可以通知耳机与第二设备建立通信连接,以接听第二设备的来电,这样,无需用户手动操作来切换通信连接,方便快捷,提高用户体验。
在一种可能的实现方式中,在耳机基于第三通信连接接收并播放来自第三设备的第一来电的通话音频之前,该方法还包括:耳机基于第二通信连接向第一子设备发送第五消息,第五消息用于指示第三设备接收到第一来电;第一子设备基于第五消息显示第二来电界面,并检测到用户的第二操作,第二操作用于接听第一来电;响应于第二操作,第一子设备基于第二通信连接向耳机发送第六消息;耳机基于第六消息向第三设备发送第七消息,第七消息用于指示第三设备接通第一来电。
这样,即使第一子设备没有与来电设备建立无线通信连接,来电设备也可以通过耳机来向第一子设备发送来电通知,并可以在第一子设备上进行接听来电的操作,较为方便,提高用户体验。
在上述第三方面中,第一设备可以是融合形态的电子设备(例如手表和耳机形成的融合形态的电子设备),第一子设备可以电子设备200(例如手表),第二设备可以是电子设备100(例如手机A),第三设备可以是电子设备400(例如手机B),第一来电可以是图13中的来电1’,第一消息可以是图13中的接通来电1’的消息1,第一接通界面可以是来电1’对应的接通界面,第二消息可以是第二设备的来电消息,第二来电可以是第二设备的来电,第一来电界面可以是第二设备的来电对应的来电界面,第一操作可以是接听第二来电的操作,第三消息可以是例如图13中的接听消息1,第四消息可以是接通第二来电事件的信息,第五消息可以是第一来电的来电消息,第二来电界面可以是第一来电对应的来电界面,第二操作可以是接听第一来点的操作,第六消息可以是例如图13中的接听消息1’,第七消息可以是接通第一来电事件的信息。
第四方面,本申请实施例提供了一种通话控制方法,应用于第一设备,第一设备包括第一子设备和耳机,第一子设备中设置有容纳耳机的耳机槽,耳机在耳机槽内,第一子设备与第二设备建立有第一通信连接,第一子设备与耳机建立有第二通信连接,该方法包括:第一子设备基于第一通信连接接收第二设备发送的第一消息,第一消息用于指示第二设备接收到来电;第一子设备基于第一消息显示来电界面,并基于第二通信连接向耳机发送第二消息,第二消息中包括第二设备的设备信息;耳机检测到耳机被拿出耳机槽,耳机基于第二设备的设备信息与第二设备建立第三通信连接;耳机检测到用户的第一操作;响应于第一操作,耳机基于第三通信连接向第二设备发送第三消息,第三消息用于指示第二设备接通来电;耳机基于第三通信连接接收并播放来自第二设备的来电的通话音频。
通过实施第四方面提供的方法,在耳机在耳机槽内,且第二设备有来电的情况下,第一子设备可以通知耳机有来电,在耳机出盒后,耳机可以自动与第二设备建立通信连接,以接听第二设备的来电,简化用户操作,提高用户体验。
在一种可能的实现方式中,在耳机检测到耳机被拿出耳机槽之后,该方法还包括:耳机与第一子设备建立第四通信连接;耳机基于第四通信连接向第一子设备发送第四消息,第四消息用于指示第二设备已接通来电;第一子设备基于第四消息显示接通界面。
这样,在接通来电之后,第一子设备也可以显示接通界面。
在一种可能的实现方式中,在第一设备基于第四消息显示接通界面之后,该方法还包括:第一子设备检测到耳机被放入耳机槽中;第一子设备向耳机发送第五消息,耳机基于第五消息向第二设备发送第六消息,第六消息用于指示第二设备挂断来电;或,第一子设备向耳机发送第七消息,耳机基于第七消息与第二设备断开第二通信连接,第二设备播放来电的通话音频。
这样,在耳机入盒后,可以基于已设置好的入盒后的通话策略来自动挂断电话或自动转移电话到第二设备侧来接听,方便快捷,提高用户体验。
在一种可能的实现方式中,在第一设备基于第四消息显示接通界面之后,该方法还包括:第一子设备检测到用户的第二操作;响应于第二操作,第一子设备显示第一设置界面,第一设置界面用于设置耳机的音量;或,第一设备检测到用户的第三操作;响应于第三操作,第一子设备显示第二设置界面,第二设置 界面用于设置耳机的降噪模式。
这样,用户可以在第一子设备上对耳机进行声音和降噪模式的设置。
在上述第四方面中,第一设备可以是融合形态的电子设备(例如手表和耳机形成的融合形态的电子设备),第一子设备可以电子设备200(例如手表),第二设备可以是电子设备100(例如手机A),第一消息可以是图8中的来电消息1,第二消息可以是图8中的来电状态通知消息1,第一操作可以是例如用户佩戴耳机的操作,第三消息可以是图8中的接通事件的信息,第四消息可以是图8中的接通来电的消息1,第五消息可以是图8中的“入盒挂断”策略的信息,第六消息可以是图8中的挂断事件的信息,第七消息可以是图8中的“入盒转移”策略的信息,第二操作可以是用户进行声音设置的操作,第一设置界面可以是用于进行声音设置的界面,第三操作可以是用户进行降噪模式设置的操作,第二设置界面可以是用于进行降噪模式设置的界面。
第五方面,本申请实施例提供了一种通话控制方法,应用于第一设备,第一设备包括第一子设备和耳机,第一子设备与耳机建立有第一通信连接,耳机与第二设备建立有第二通信连接,第一子设备上存储有第一通话记录,第一通话记录是第二设备的通话记录,该方法包括:第一子设备检测到用户针对第一通话记录的第一操作,第一操作用于向第一通话记录对应的第一号码去电;响应于第一操作,第一子设备基于第一通信连接向耳机发送第一消息,第一消息用于指示第二设备向第一号码去电;耳机基于第二通信连接向第二设备发送第二消息,第二消息用于指示第二设备向第一号码去电;耳机基于第二通信连接接收并播放来自第二设备向第一号码去电的通话音频。
通过实施第五方面的方法,在第一子设备与第二设备未建立有通信连接的情况下,第一子设备在检测到用户的去电操作之后,可以通过与耳机建立有通信连接的第二设备来执行拨号操作,在耳机上接听电话,完成去电任务,简化用户操作,提高用户体验。
在上述第五方面中,第一设备可以是融合形态的电子设备(例如手表和耳机形成的融合形态的电子设备),第一子设备可以电子设备200(例如手表),第二设备可以是电子设备400(例如手机B),第一消息可以是图14中的拨号事件1的信息1,第二消息可以是图14中的拨号事件1的信息2。
第六方面,本申请实施例提供了一种通话控制方法,应用于第一设备,第一设备包括第一子设备和耳机,第一子设备与耳机建立有第一通信连接,第一子设备与第二设备建立有第二通信连接,第一子设备上存储有第一通话记录,第一通话记录是第二设备的通话记录,该方法包括:第一子设备检测到用户针对第一通话记录的第一操作,第一操作用于向第一通话记录对应的第一号码去电;响应于第一操作,第一子设备基于第一通信连接向耳机发送第一消息,第一消息中包括第二设备的设备信息;耳机基于第二设备的设备信息与第二设备建立第三通信连接;第一子设备基于第二通信连接向第二设备发送第二消息,或,耳机基于第三通信连接向第二设备发送第二消息,第二消息用于指示第二设备向第一号码去电;耳机基于第三通信连接接收并播放来自第二设备向第一号码去电的通话音频。
通过实施第六方面的方法,在第一子设备与第二设备建立有通信连接,而耳机未与第二设备建立有通信连接的情况下,第一子设备在检测到用户的去电操作之后,可以通知耳机与第二设备(即拨号设备)建立通信连接,以便在耳机上接听电话,完成去电任务,简化用户操作,提高用户体验。
在上述第六方面中,第一设备可以是融合形态的电子设备(例如手表和耳机形成的融合形态的电子设备),第一子设备可以电子设备200(例如手表),第二设备可以是电子设备100(例如手机A),第一消息可以是图14中的拨号事件1’的信息1,第二消息可以是图14中的拨号事件1’的信息2。
第七方面,本申请实施例提供了一种通话控制方法,应用于第一设备,第一设备包括第一子设备和耳机,第一子设备中设置有容纳耳机的耳机槽,耳机在耳机槽内,第一子设备与第二设备建立有第一通信连接,第一子设备与耳机建立有第二通信连接,第一子设备上存储有第一通话记录,第一通话记录是第二设备的通话记录,该方法包括:第一子设备检测到用户针对第一通话记录的第一操作,第一操作用于向第一通话记录对应的第一号码去电;响应于第一操作,第一设备基于第二通信连接向耳机发送第一消息,第一消息中包括第二设备的设备信息;耳机检测到耳机被拿出耳机槽,耳机基于第二设备的设备信息与第二设备建立第三通信连接;耳机检测到用户的第二操作;响应于第二操作,耳机基于第三通信连接向第二设备发送第二消息,第二消息用于指示第二设备向第一号码去电;耳机基于第三通信连接接收并播放来自第二设备向第一号码去电的通话音频。
通过实施第七方面提供的方法,在耳机在耳机槽内,且第一子设备检测到用户的去电操作的情况下,第一子设备可以通知耳机去电拨号事件的信息,在耳机出盒后,耳机可以自动与第二设备(即拨号设备)建立通信连接,以便在耳机上接听电话,完成去电任务,简化用户操作,提高用户体验。
在上述第七方面中,第一设备可以是融合形态的电子设备(例如手表和耳机形成的融合形态的电子设备),第一子设备可以电子设备200(例如手表),第二设备可以是电子设备100(例如手机A),第一操作可以是用户触发拨号事件的操作,第一消息可以是图10中的拨号事件的信息1,第二操作可以是例如用户佩戴耳机的操作,第二消息可以是图10中的拨号事件的信息2。
第八方面,本申请实施例提供了一种升级方法,应用于第一设备,第一设备包括第一子设备和耳机,第一子设备与耳机建立有通信连接,该方法包括:第一子设备检测到用户触发升级的操作;响应于该操作,第一子设备判断耳机是否满足升级条件,若是,则第一子设备基于通信连接向耳机发送第一消息,第一消息中包括升级包;耳机基于升级包启动升级。
通过实施第八方面的方法,用户可以通过第一子设备来触发耳机启动升级。
在一种可能的实现方式中,第一子设备中设置有容纳耳机的耳机槽,第一子设备判断耳机是否满足升级条件,具体包括:第一子设备判断耳机是否在耳机槽内,和/或,耳机的电量是否超过预设阈值。
在一种可能的实现方式中,在耳机基于升级包启动升级之后,该方法还包括:第一子设备启动升级。
这样,用户一次升级操作即可完成电子设备200和电子设备300的整个升级过程,简单便捷,提高用户体验。
在上述第八方面中,第一设备可以是融合形态的电子设备(例如手表和耳机形成的融合形态的电子设备),第一子设备可以电子设备200(例如手表),第一消息可以包括图16中的步骤S1605中发送的升级包。
第九方面,本申请实施例提供了一种音乐播放方法,应用于第一设备,第一设备包括第一子设备和耳机,该方法包括:第一子设备检测到用户播放第一歌曲的操作;响应于该操作,第一子设备判断第一子设备是否与耳机建立第一通信连接,若是,则第一子设备向耳机发送第一音频数据,第一音频数据用于耳机播放第一歌曲;若否,则第一子设备显示第一提示信息,第一提示信息用于提示用户将耳机与第一子设备建立第一通信连接。
通过实施第九方面的方法,第一子设备可以判断是否与耳机建立有无线通信连接,若是,则可以播放歌曲,若否,则可以提示用户将耳机与第一子设备建立无线通信连接,以便可以基于该连接来播放歌曲。
第十方面,本申请实施例提供了一种电子设备,该电子设备为第一设备,第一设备包括第一子设备和耳机,第一子设备中设置有容纳耳机的耳机槽,该电子设备包括一个或多个处理器和一个或多个存储器;其中,一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述第一方面或第二方面或第三方面或第四方面或第五方面或第六方面或第七方面或第八方面或第九方面任一项可能的实现方式中的方法。
第十一方面,本申请实施例提供了一种计算机存储介质,该计算机存储介质存储有计算机程序,计算机程序包括程序指令,当程序指令在电子设备上运行时,使得电子设备执行上述第一方面或第二方面或第三方面或第四方面或第五方面或第六方面或第七方面或第八方面或第九方面任一项可能的实现方式中的方法。
第十二方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面或第二方面或第三方面或第四方面或第五方面或第六方面或第七方面或第八方面或第九方面任一项可能的实现方式中的方法。
附图说明
图1是本申请实施例提供的一种常见的通信***示意图;
图2A是本申请实施例提供的一种手表与耳机组成的融合形态的电子设备的示意图;
图2B-图2E是本申请实施例提供的一种耳机在手表的表体内/表体外的示意图;
图2F是本申请实施例提供的一种通信***示意图;
图2G和图2H是本申请实施例提供的一组不同电子设备之间的连接方式示意图;
图2I是本申请实施例提供的一种融合形态的电子设备的结构示意图;
图3是本申请实施例提供的一种通信方法在“配对连接”场景下的流程示意图;
图4A和图4B是本申请实施例提供的融合形态的电子设备在首次开机或恢复出厂设置之后涉及的一组用户界面示意图;
图5是本申请实施例提供的耳机和手表配对过程中涉及的一个用户界面示意图;
图6A-图6F是本申请实施例提供的手机和手表配对过程中涉及的一组用户界面示意图;
图7是本申请实施例提供的手机和耳机配对过程中涉及的一个用户界面示意图;
图8是本申请实施例提供的一种通信方法在来电场景下的一种流程示意图;
图9A-图9C是本申请实施例提供的通信方法在来电场景下涉及的一组示意图;
图9D-图9F是本申请实施例提供的进行声音设置和降噪模式设置过程涉及的一组用户界面示意图;
图9G-图9I是本申请实施例提供的进行入盒后通话策略设置过程涉及的一组用户界面示意图;
图10是本申请实施例提供的一种通信方法在去电场景下的一种流程示意图;
图11A-图11F是本申请实施例提供的通信方法在去电场景下涉及的一组用户界面示意图;
图12是本申请实施例提供的一种通信方法在来电场景下的另一种流程示意图;
图13是本申请实施例提供的一种通信方法在来电场景下的另一种流程示意图;
图14是本申请实施例提供的一种通信方法在去电场景下的另一种流程示意图;
图15是本申请实施例提供的一种通信方法在音乐播放场景下的流程示意图;
图16是本申请实施例提供的一种通信方法在升级场景下的一种流程示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
应当理解,本申请的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作***与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
随着终端技术的发展,一个用户可能同时拥有多个电子设备(例如耳机、手表、手机等),这些电子设备可以两两之间建立通信连接(例如蓝牙通信连接),以便后续可以基于已建立的通信连接来实现数据交互。
举例来说,参阅图1,以电子设备100是手机、电子设备200是手表、电子设备300是耳机为例,通常,用户需要手动操作电子设备100来依次与电子设备200、电子设备300建立通信连接(例如图1所示 的通信连接1、通信连接2),如果用户想要电子设备300与电子设备200之间建立图1所示的通信连接3,则需要用户手动操作电子设备300与电子设备200来切换通信连接。以通信连接3为蓝牙通信连接为例,首先,用户需要手动操作电子设备300进入配对模式,然后,在电子设备200搜索发现电子设备300之后,用户可以在电子设备200上选择电子设备300来进行配对,完成配对之后,电子设备300可以与电子设备200建立上述通信连接3,至此,电子设备300将通信连接由图1所示的通信连接2切换到了通信连接3。可以看出,切换通信连接需要用户手动操作,每切换一次通信连接,都需要用户手动执行一遍建立通信连接的流程,操作较为繁琐,而且,在来电或音乐播放场景下,电子设备300也无法根据音源来自动切换通信连接,用户体验差。
基于上述问题,业界提出的一些解决方案对此进行了部分优化。例如,在图1所示的通信连接1建立之前,如果通信连接2已经建立过,那么,在电子设备100与电子设备200建立通信连接1时,电子设备100可以将电子设备300的设备信息发送给电子设备200,这样,电子设备300与电子设备200建立通信连接3时,则无需电子设备300进入配对模式即可完成建立通信连接3。又例如,在一些场景下(例如音乐播放场景),电子设备300可以根据音源来在电子设备100与电子设备200之间切换通信连接(例如将通信连接由通信连接2切换到通信连接3)。
可以看出,虽然上述的一些解决方案在一定程度上简化了操作,但是,仍然存在下述问题:
问题1:电子设备200与电子设备300是两个独立的电子设备,而非是一个电子设备。
问题2、电子设备200与电子设备300需要分别与电子设备100进行配对并建立通信连接,无法通过一次操作来完成。此外,用户在同时拥有多个电子设备100的情况下,无法快速完成通信连接的切换。
本申请实施例提供了一种融合形态的电子设备,该融合形态的电子设备可以是将电子设备200与电子设备300这两个独立的电子设备进行形态融合组成的一个电子设备。
以电子设备200是智能手表、电子设备300是真无线立体声(True Wireless Stereo,TWS)耳机为例,参阅图2A,图2A示例性所示的电子设备可以是智能手表与TWS耳机组成的融合形态的电子设备。
从图2A中容易看出,智能手表可以充当TWS耳机的耳机盒,用户可以将TWS耳机放入到智能手表的表体内,耳机放入过程可以称为耳机入盒过程;用户也可以将TWS耳机拿出到智能手表的表体外,耳机拿出过程可以称为耳机出盒过程。
参阅图2B-图2E,图2B-图2E是TWS耳机在智能手表的表体内/表体外的示意图。可以看出,图2B示例性示出了TWS耳机的左耳机在智能手表的表体内,右耳机在智能手表的表体外的场景,图2C示例性示出了TWS耳机的左耳机在智能手表的表体外,右耳机在智能手表的表体内的场景,图2D示例性示出了TWS耳机的左耳机和右耳机均在智能手表的表体内的场景,图2E示例性示出了TWS耳机的左耳机和右耳机均在智能手表的表体外的场景。
基于上述智能手表与TWS耳机组成的融合形态的电子设备,本申请实施例提供了一种通信方法,用户通过一次操作即可将电子设备100(例如手机)与智能手表、TWS耳机进行配对并建立通信连接,这样,一次性完成电子设备100与智能手表、TWS耳机的配对、建连动作,用户无感知;此外,用户在同时拥有多个电子设备100的情况下,该融合形态的电子设备可以根据用户的使用场景在这多个电子设备100之间自动完成通信连接的切换,简化用户操作,提高用户体验;而且,智能手表与TWS耳机组成一个电子设备可以统一进行资源调度管控,方便快捷。
下面,首先介绍本申请实施例提供的一种通信***。
图2F示例性示出了本申请实施例提供的一种通信***。
如图2F所示,该通信***可以包括:多个电子设备。这多个电子设备中可以包括电子设备100、融合形态的电子设备。
该通信***中包括的多个电子设备均可以为智能终端设备。
其中,电子设备100可以各种类型的智能终端设备,例如,电子设备100可以为手机,还可以为平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、智慧屏等等,本申请实施例对电子设备100的具体类型及其数量不作限制。
其中,融合形态的电子设备可以为两个或两个以上独立的电子设备进行形态融合后组成的一个电子设 备。
在本申请实施例中,融合形态的电子设备可以是以电子设备200(例如手表)与电子设备300(例如耳机)进行形态融合后组成的一个电子设备为例。
在本申请实施例中,参阅图2G,电子设备200(例如手表)与电子设备300(例如耳机)可以与同一个电子设备(例如电子设备100)建立无线通信连接(例如蓝牙通信连接),在这种情况下,电子设备200、电子设备300、电子设备100之间的连接方式可以称为连接方式1;参阅图2H,电子设备200(例如手表)与电子设备300(例如耳机)也可以与不同的电子设备建立无线通信连接(例如蓝牙通信连接),例如,电子设备200可以与电子设备100建立无线通信连接1,电子设备300可以与不同于电子设备100的一个电子设备(例如电子设备400)建立无线通信连接2,在这种情况下,电子设备200、电子设备300、电子设备100(例如手机A)、电子设备400(例如手机B)之间的连接方式可以称为连接方式2。
该通信***中的多个电子设备之间可以建立蓝牙(bluetooth,BT)通信连接,以便基于该蓝牙通信连接来进行通信。
不限于上述蓝牙通信连接,该通信***中的多个电子设备还可以建立有线连接,或,其他无线连接,例如无线局域网(wireless local area networks,WLAN)例如无线保真点对点(wireless fidelity point to point,Wi-Fi P2P)连接、近距离无线通信(near field communication,NFC)连接,红外技术(infrared,IR)连接等等。
此外,该通信***中的多个电子设备也可以结合上述任意几种方式来连接并通信,本申请实施例对此不做限制。也即是说,该通信***中的各个电子设备可以按照一定的通信协议和组网策略组建网络(即组网),使得该通信***中的各个电子设备之间可以互相通信。
该通信***中的多个电子设备可以配置不同的软件操作***(OperatingSystem,OS),包括但不限于等等。其中,为华为的鸿蒙***。多个电子设备也可以都配置相同的软件操作***,例如可以均配置在这多个电子设备的软件操作***均为时,该通信***可以看作一个超级终端。
下面介绍本申请实施例提供的一种融合形态的电子设备的结构示意图。
图2I示例性示出了本申请实施例提供的一种融合形态的电子设备的结构。
如图2I所示,该融合形态的电子设备可以是由电子设备200(例如手表)和电子设备300(例如耳机)进行形态融合后组成的一个电子设备,该电子设备的软件***可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的***为例,示例性说明该电子设备的软件结构。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些示例中,将电子设备的***分为四层,从上至下分别为应用程序层,应用程序框架层,***库,以及内核及硬件平台层。
应用程序层可以包括一系列应用程序包。
如图2I所示,应用程序包可以包括通话控制,音乐控制,耳机设备管理,耳机充电管理等应用程序。
通话控制可以用于提供来电/去电过程的通话控制功能。例如,控制通话状态(例如接通状态、挂断状态)、控制通话过程的界面切换(例如来电界面切换到接通界面、取消显示接通界面);提供电子设备300入盒后通话策略的设置功能;等等。
音乐控制可以用于提供音乐播放过程的控制功能。例如,音乐的播放与暂停、切换下一首/上一首音乐、控制音乐的音量;等等。
耳机设备管理可以用于提供电子设备200对电子设备300(以电子设备300是耳机为例)进行设备管理的功能。例如,存储电子设备300的设备信息(例如版本号信息)、连接状态信息;等等。
耳机充电管理可以用于提供电子设备200对电子设备300进行充电管理的功能。例如,监测电子设备300的电量、接收电池(图中未示出)的输入为电子设备300供电。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2I所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理 器,通知管理器,机盒交互软件开发工具包(SoftwareDevelopmentKit,SDK)等。
窗口管理器可以用于提供窗口管理服务,管理窗口程序。例如,窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器可以用于存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话等。
视图***可以包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,显示文字的视图以及显示图片的视图。
电话管理器可以用于提供电子设备200的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
机盒交互SDK可以用于提供电子设备200与电子设备300(以电子设备300是耳机为例)进行业务交互的一个或多个接口。例如,可以通过机盒交互SDK来控制电子设备300进入待配对状态、调节电子设备300的音量大小、设置电子设备300的降噪模式、通话过程中在检测到入盒事件后向电子设备300发送入盒事件的信息、在电子设备300升级过程中与电子设备300进行信息交互;等等。
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核及硬件平台层可以包括硬件抽象层(HardwareAbstractLayer,HAL),内核层(Kernel)。
硬件抽象层运行于用户空间(UserSpace),对内核层驱动进行封装,向上层提供调用接口。硬件抽象层可以包括多个服务调用接口,例如,在本申请实施例中,硬件抽象层可以提供耳机控制接口,用于提供电子设备200对电子设备300(以电子设备300是耳机为例)进行控制的接口。内核层是硬件和软件之间的层。内核层至少包含显示驱动,蓝牙驱动,传感器驱动。例如,内核层可以包括内核抽象层(kernel abstract layer,KAL)和驱动子***。KAL下包括一个或多个内核,如轻量级物联网***内核LiteOS等。驱动子***则可以包括硬件驱动框架(Hardware Driver Foundation,HDF)。硬件驱动框架能够提供统一外设访问能力和驱动开发、管理框架。多内核的内核层可以根据***的需求选择相应的内核进行处理。
其中,在应用程序框架层和内核及硬件平台层之间,还可以存在一个***服务层(图中未示出),***服务层可以作为***的核心能力集合,对应用程序提供服务,在一些示例中,上述机盒交互SDK也可以存在于***服务层,其中,本申请实施例对***服务层在软件结构中的位置不作限定,可以是在应用程序层和应用程序框架层之间,也可以是在应用程序框架层和***库之间等。
电子设备200还可以包括无线通信模块,例如蓝牙通信模块,可以用于与其他电子设备进行无线通信。
电子设备300可以包括:通话管理模块、音频管理模块、充电管理模块;其中,通话管理模块、音频管理模块、充电管理模块均可以在图2I所示的应用程序层。
通话管理模块可以用于提供来电或去电过程中的通话管理功能。例如,在来电场景下,检测到佩戴事件和/或预设手势之后向来电设备发送消息以指示来电设备接通来电;又例如,通话过程中基于预设的通话策略来确定挂断通话还是转移通话;等等。
音频管理模块可以用于提供电子设备300的音频管理功能。例如,通过音频输出接口输出音频信号、通过音频输入接口接收音频数据;等等。
充电管理模块可以用于提供电子设备300的充电管理功能,例如,接收充电输入;等等。
电子设备300还可以包括机盒通信模块,可以用于提供电子设备300与电子设备200通过通信电极接触所形成的电连接进行通信的功能。
电子设备300还可以包括无线通信模块,例如蓝牙通信模块,可以用于与其他电子设备进行无线通信。
可以理解的是,图2I仅仅是示例性的,不应该对本申请实施例中的上述电子设备的软件结构产生任何的限制。例如,在一些示例中,上述电子设备的软件结构可以采用与图2I不同的分层结构,或者每层还可以包括更多或更少的模块,或者多种不同模块的组合等,本申请实施例对此不作限定。
基于上述手表与耳机组成的融合形态的电子设备,下面结合不同应用场景来介绍本申请提供的通信方法:
配对连接场景
图3示例性示出了本申请实施例提供的通信方法在“配对连接”场景下的具体流程。
在本申请实施例中,图3所示的“配对连接”场景下的具体流程触发执行的条件是以手表首次开机或恢复出厂设置为例的。在实际应用中,图3所示的“配对连接”场景下的具体流程触发执行的条件也可能是其他,本申请实施例对此不作限定。
S301、手表判断耳机是否在盒内,若否,则可以执行下述步骤S302,若是,则可以执行下述步骤S303。
手表在检测到用户进行首次开机的操作或恢复出厂设置的操作之后,可以判断耳机是否在盒内,在本申请实施例中,耳机是否在盒内可以是通过霍尔传感器来进行判断的。具体地,耳机出盒、入盒均会导致磁场的变化,霍尔传感器可以根据磁场的变化来判断耳机出盒还是入盒。
在本申请实施例中,由于手表和耳机是进行形态融合后组成的一个电子设备,手表中设置有容纳耳机的耳机槽,因此,“耳机在盒内”可以是指耳机在耳机槽内,“耳机不在盒内”可以是指耳机不在耳机槽内。
耳机可以包括左耳机和右耳机。
如果手表确定左耳机和右耳机均在盒内,则可以执行下述步骤S303来启动耳机和手表的配对过程。
如果手表确定左耳机和右耳机中的至少一只耳机不在盒内,则可以执行下述步骤S302来提示用户将耳机放入盒内。
在本申请实施例中,由于耳机和手表在配对完成前需要通过通信电极接触(即耳机的通信电极和耳机槽内的通信电极接触)所形成的电连接来进行通信,例如,通过通用异步收发器(UniversalAsynchronous Receiver/Transmitter,UART)来进行通信,因此,整个配对过程需要保持耳机在盒内,以使得耳机可以与URAT触点接触,从而保持耳机和手表能够通信。在一些示例中,在整个配对过程中还需要手表处于关盖状态。例如,在产品设计时,耳机可能是吸附在手表的表盖上的,那么,在手表处于开盖状态时,耳机也会吸附在打开的表盖上,这时就相当于耳机处于盒外了,因此,在这种情况下,手表需要处于关盖状态。
在本申请实施例中,手表处于关盖状态还是开盖状态可以是基于手表上的卡扣的开合状态来进行判断的,手表上的卡扣处于闭合状态则表示手表处于关盖状态,手表上的卡扣处于张开状态则表示手表处于开盖状态。
需要说明的是,在本申请实施例中,手表可以判断耳机出盒还是入盒。在一些示例中,耳机也可以判断自身出盒还是入盒。耳机判断自身出盒还是入盒也可以是通过霍尔传感器来实现的。
S302、手表提示用户将耳机放入盒内。
手表提示用户将耳机放入盒内,可以是,手表显示图4A示例性所示的用户界面410。
参阅图4A,用户界面410中可以包括提示信息411(例如“当前有耳机处于表体外,请放入耳机并关盖。若忽略此步骤,表体外的耳机将无法使用”)、选项412(例如“忽略”选项)。
如果用户看到上述提示信息411之后,把表体外的耳机放入了盒内,则手表在检测到左耳机和右耳机均在盒内之后,可以执行下述步骤S303来启动耳机和手表的配对过程。
如果手表检测到用户针对选项412(例如“忽略”选项)的操作(例如点击操作),响应于该操作,手表可以显示图4B示例性所示的用户界面420。
参阅图4B,用户界面430中可以包括提示信息421(例如“选择忽略将会导致表体外的耳机无法使用。 是否继续?”)、选项422、选项423。
如果手表检测到用户针对选项422的操作(例如点击操作),响应于该操作,手表可以返回显示图4A所示的用户界面,以提示用户将耳机放入盒内。
如果手表检测到用户针对选项423的操作(例如点击操作),响应于该操作,手表可以启动与盒内的耳机的配对过程。容易理解,如果左耳机和右耳机均不在盒内,手表在检测到用户针对选项423的操作(例如点击操作)之后,则无法启动耳机和手表的配对过程,在这种情况下,手表也可以显示提示信息,以提示用户两只耳机均不在盒内,无法启动耳机和手表的配对过程,需要将耳机放入盒内之后才能启动耳机和手表的配对过程。
S303、耳机和手表配对。
首先,在耳机和手表配对之前,手表可以通过通信电极接触所形成的电连接来触发耳机开启蓝牙,进入待配对状态,此外,手表还可以通过通信电极接触所形成的电连接来获取到耳机的MAC地址等设备信息,当然,对于手表和耳机这一融合形态的电子设备,耳机的MAC地址等设备信息也可以自出厂便写入到手表中,无需手表主动获取。
然后,在耳机和手表配对时,手表可以向耳机发起配对,耳机可以向手表反馈配对成功的消息。具体地,手表可以基于已保存的耳机的MAC地址通过通信电极接触所形成的电连接向耳机发送配对请求,该配对请求中可以包括手表的MAC地址,耳机可以通过通信电极接触所形成的电连接接收上述配对请求,并向手表反馈配对成功的消息,该消息中可以包括耳机的MAC地址。至此,耳机和手表完成配对。这样,由于手表配对前已知耳机的MAC地址吗,因此可以自动配对耳机,简化用户操作。
容易理解,如果左耳机和右耳机均在盒内,手表和两只耳机可以一次性完成配对,如果一只耳机在盒内,手表可以先和一只耳机进行配对,在检测到另一只耳机放入盒内之后,手表可以再和另一只耳机进行配对。
S304、手机和手表配对。
在手机和手表配对之前,手表可以显示图5示例性所示的用户界面510,该用户界面中可以包括提示信息511(例如“欢迎使用XXX,配对完成前请勿打开表盖或取出耳机”)、选项512(例如“继续”选项),其中,提示信息511可以用于提示用户在完成配对过程之前请勿打开表盖或取出耳机,选项512可以用于进行配对过程。示例性地,手表可以检测到用户针对选项512的操作(例如点击操作),响应于该操作,手表可以启动配对过程。
手表在检测到用户针对图5所示的选项512的操作之后,可以显示图6A示例性所示的用户界面610。
参阅图6A,用户界面610可以用于提示用户将手机与手表进行配对,在一些示例中,用户界面610中可以包括选项611(例如“点击扫码”选项),手表可以检测到用户针对选项611的操作(例如点击操作),响应于该操作,手表可以显示图6B示例性所示的用户界面620,该用户界面中可以包括二维码621,二维码621可以用于用户通过手机扫码来进行配对,二维码621中可以包括手表的设备信息(例如手表的MAC地址、设备型号、设备名称等),通过扫描二维码621,手机可以获取手表的设备信息,从而可以基于该设备信息与手表进行配对。
可选地,用户也可以通过在图6A所示的用户界面610上进行上滑操作来使得手表显示图6B所示的用户界面620。
如果用户想要将手机与手表进行配对,那么,用户可以通过手机来扫描图6B所示的二维码621。
示例性地,参阅图6C,图6C所示的用户界面可以是手机上的运动健康应用程序提供的一个用户界面,该用户界面中可以包括窗口630,该窗口中可以包括一个或多个选项(例如选项631、选项632),其中,选项631可以用于通过扫码的方式来与其他设备(例如手表)进行配对,选项632可以用于通过手动添加设备的方式来与其他设备(例如手表)进行配对。手机可以检测到用户针对选项631的操作(例如点击操作),响应于该操作,手机可以显示扫码界面,在成功扫描到图6B所示的二维码621之后,手机可以通过蓝牙向手表发送配对请求,该配对请求中可以包括手机的设备信息(例如手机的MAC地址、设备型号、设备名称等),手表接收到手机发送的配对请求之后,可以显示图6D示例性所示的用户界面640。
参阅图6D,用户界面640中可以包括配对请求发送方的设备名称(例如“XXXX”)、选项641、选项642。如果手表检测到用户针对选项641的操作(例如点击操作),响应于该操作,手表与手机的配对过程可以终止;如果手表检测到用户针对选项642的操作(例如点击操作),响应于该操作,手表与手机的配 对过程可以启动,同时,手表还可以显示图6E示例性所示的用户界面,该用户界面可以用于提示用户手机与手表正在进行配对。
若手机与手表配对成功,则可以自动启动后续手机与耳机的配对过程,无需用户手动操作来启动手机与耳机的配对过程。
若手机与手表配对失败,则配对流程终止,同时,手表还可以显示图6F示例性所示的用户界面,该用户界面可以用于提示用户手机与手表配对失败。
可选地,在手机与手表配对失败之后,手表也可以返回显示图5示例性所示的用户界面510,或,图6A示例性所示的用户界面。
手机和手表配对的方式可以有多种,例如,扫码配对、手动添加配对等等。其中,手动添加配对可以是通过用户点击图6C中的选项632来实现的,手动添加配对可以通过蓝牙来扫描到要配对的设备,获取到要配对的设备的设备信息,后续过程与前述“扫码配对”过程类似,在此不再赘述。
S305、手机和耳机配对,若配对失败,则执行下述步骤S306,若配对成功,则手机、手表、耳机的整个配对过程完成。
具体地,在手机和手表配对成功之后,手表可以将耳机的设备信息(例如耳机的MAC地址、设备型号、设备名称等)发送给手机,手机可以基于耳机的设备信息通过蓝牙向耳机发送配对请求,该配对请求中可以包括手机的设备信息(例如手机的MAC地址、设备型号、设备名称等),耳机通过蓝牙接收上述配对请求,并向手机反馈配对成功的消息,该消息中可以包括耳机的MAC地址。至此,耳机和手机完成配对。
在本申请实施例中,在手机和耳机配对之前,手表还可以检测耳机是否在盒内,以控制在盒内的耳机进入待配对状态,其中,“手表检测耳机是否在盒内”的具体过程可以参照前述关于步骤S301的文字描述,在此不再赘述。
在一些示例中,如果左耳机和右耳机均在盒内,或,左耳机或右耳机不在盒内但用户在前述步骤S301-S302中确认忽略表体外的耳机了(例如用户点击了图4A所示的选项412、用户点击了图4B所示的选项423),那么,在手机和手表配对成功之后,可以启动手机和耳机的配对过程。
在另一些示例中,如果左耳机或右耳机不在盒内,那么,在手机和手表配对成功之后,手表可以再次显示前述图4A、图4B示例性所示的用户界面,以提示用户将耳机放入盒内。手表在检测到用户确认忽略表体外的耳机或左耳机和右耳机均被放入盒内之后,可以启动手机和耳机的配对过程。
在手机和耳机进行配对过程中,手机/耳机可以向手表发送手机和耳机正在进行配对的消息,手表可以基于该消息来显示图7示例性所示的用户界面,该用户界面可以用于提示用户手机和耳机正在进行配对。
S306、手机/手表提示手机和耳机配对失败。
在手机和耳机配对失败的情况下,手机可以显示相关用户界面来提示用户手机和耳机配对失败。可选地,手机/耳机也可以向耳机发送手机和耳机配对失败的消息,手表也可以基于该消息显示相关用户界面来提示用户手机和耳机配对失败。
在一些示例中,在手表和耳机配对过程中、手机和耳机配对过程中,如果用户将表盖打开(即表盖处于开盖状态),则手表可以显示提示信息,以提示用户在配对过程中请勿开盖,保持表盖处于闭合状态。
需要说明的是,本申请实施例仅仅以上述配对过程依次是耳机和手表配对、手机和手表配对、手机和耳机配对为例,容易理解,上述耳机和手表配对、手机和手表配对、手机和耳机配对的执行顺序也可以是其他,本申请实施例对此不作限定。
例如,手机和手表配对可以先于耳机和手表配对,在这种情况下,手表检测到用户对手表进行首次开机的操作或恢复出厂设置的操作之后,可以显示用于引导用户进行手机和手表配对的一系列用户界面(例如图5、图6A、图6B、图6D所示的用户界面),在手机与手表配对成功之后,手表可以自动触发与耳机进行配对,在有耳机不在盒内的情况下,可以显示前述图4A、图4B所示的用户界面,手表在检测到用户确认忽略不在盒内的耳机或用户将不在盒内的耳机放入盒内之后,可以启动手表与耳机的配对过程。在一 些示例中,耳机和手机进行配对时,耳机也可以不在盒内,由于耳机出盒后,如果耳机和手表在一定的通信距离范围内,耳机可以与手表建立无线通信连接(例如蓝牙通信连接),因此,在这种情况下,需要保证耳机与手表建立有无线通信连接(例如蓝牙通信连接),这样,手表才可以通过该无线通信连接来控制耳机进入待配对状态,进一步地,耳机在进入待配对状态之后才可以与手机进行配对。
通过实施上述图3所示实施例提供的方法,在配对连接场景下,用户只需执行一次手机与手表的配对操作,即可完成耳机和手表、手机和手表、手机和耳机的配对过程,用户无感知,简化用户操作,提高用户体验,而且,手表和耳机组合了一个融合形态的电子设备,一体化连接,这样,可以提升新形态产品的用户体验。
下面介绍在电子设备100(例如手机A)、电子设备200(例如手表)、电子设备300(例如耳机)之间的连接方式为前述图2G所示的连接方式1的情况下,本申请实施例提供的通信方法在来电场景、去电场景下的具体执行过程。
来电场景
图8所示实施例可以是在电子设备100、电子设备200、电子设备300均配对成功过,且电子设备100与电子设备200建立有蓝牙通信连接,电子设备300在盒内时,电子设备100来电的情况下执行的。
S801、电子设备100接收到来电。
电子设备100上可以安装有通话应用程序(即用于接听或拨打电话的应用程序)和运动健康应用程序(即用于管理电子设备200的应用程序),在接收到来电之后,通话应用程序可以通知运动健康应用程序接收到来电。
S802、电子设备100基于蓝牙通信连接向电子设备200发送来电消息1。
其中,上述来电消息1中可以包括但不限于:电子设备100的设备信息(例如MAC地址等)、来电的电话号码。
电子设备100接收到来电之后,可以通过运动健康应用程序向电子设备200发送来电消息1,以便后续电子设备200可以基于该来电消息1来显示来电界面。在一些示例中,电子设备100还可以通过蓝牙消息同步服务(例如Synergy)来向电子设备200发送来电消息1。
S803、电子设备200显示来电界面。
具体地,电子设备200在接收到电子设备100发送的来电消息1之后,可以基于该来电消息1显示来电界面。例如图9A示例性所示的来电界面910,该界面中可以包括来电的电话号码(例如186xxxx1105)、来电的联系人(例如Lisa)、选项911、选项912,其中,选项911可以用于挂断来电,选项912可以用于接通来电。
S804、电子设备200向电子设备300发送来电状态通知消息1。
其中,上述来电状态通知消息1可以用于通知电子设备300有来电需要接听。
容易理解,在本申请实施例中,电子设备200与电子设备300未建立无线通信连接(例如蓝牙通信连接)的情况下(例如电子设备300在盒内的情况下),电子设备200与电子设备300可以基于通信电极接触所形成的电连接来进行通信。
由于电子设备300在盒内时可能会处于休眠状态,无法与其他设备正常通信(例如无法接收其他设备发送的消息),因此,在执行上述步骤S804之前,电子设备200可以触发电子设备300由休眠状态切换到唤醒状态,从而使得电子设备300可以接收电子设备200发送的消息。
S805、电子设备300检测到出盒事件。
电子设备300在检测到出盒事件后,可以触发执行后续步骤S806-步骤S808、步骤S809-步骤S811,从而可以与电子设备100、电子设备200建立蓝牙通信连接。
S806、电子设备300发送蓝牙回连广播消息1。
电子设备300在检测到出盒事件后,可以回连之前与电子设备300配对过的设备。通常电子设备300回连的是最近一次与电子设备300配对过的设备,以最近一次与电子设备300配对过的设备是电子设备100为例,电子设备300可以基于与电子设备100配对时存储的配对信息(例如电子设备100的MAC地址)向电子设备100发送蓝牙回连广播消息1,该蓝牙回连广播消息1可以用于请求与电子设备100建立蓝牙 通信连接,该蓝牙回连广播消息1中可以包括电子设备300的设备信息(例如电子设备300的MAC地址)。
S807、电子设备100与电子设备300建立蓝牙通信连接1。
具体地,电子设备100接收到上述蓝牙回连广播消息1之后,确定该蓝牙广播消息1中包括的电子设备300的设备信息存在于自身已存储的配对信息列表中,则电子设备100与电子设备300建立蓝牙通信连接1。
S808、电子设备100基于蓝牙通信连接1向电子设备300发送蓝牙来电通知消息。
上述蓝牙来电通知消息中可以包括但不限于:电子设备100的设备信息(例如电子设备100的MAC地址)。上述蓝牙来电通知消息可以用于向电子设备300通知电子设备100有来电,也可以用于向电子设备300通知回连成功。
S809、电子设备300发送蓝牙回连广播消息2。
在本申请实施例中,电子设备200与电子设备200组成了一个电子设备,且电子设备300在检测到出盒事件前与电子设备200配对过,因此,电子设备300在检测到出盒事件后,除了可以回连其他电子设备(例如电子设备100),还可以回连电子设备200。具体地,电子设备300可以基于与电子设备200配对时存储的配对信息(例如电子设备200的MAC地址)向电子设备200发送蓝牙回连广播消息2,该蓝牙回连广播消息2可以用于请求与电子设备200建立蓝牙通信连接,该蓝牙回连广播消息2中可以包括电子设备300的设备信息(例如电子设备300的MAC地址)。
S810、电子设备200与电子设备300建立蓝牙通信连接2。
具体地,电子设备200接收到上述蓝牙回连广播消息2之后,确定该蓝牙广播消息2中包括的电子设备300的设备信息存在于自身已存储的配对信息列表中,则电子设备200与电子设备300建立蓝牙通信连接2。
S811、电子设备200基于蓝牙通信连接2向电子设备300发送蓝牙来电同步消息。
上述蓝牙来电同步消息中可以包括但不限于:来电设备(例如电子设备100)的设备信息(例如来电设备的MAC地址)。上述蓝牙来电同步消息可以用于向电子设备300通知有来电,也可以用于向电子设备300通知回连成功。
电子设备300在成功回连电子设备100和电子设备300之后,可以基于电子设备200发送的蓝牙来电同步消息、电子设备100发送的蓝牙来电通知消息来判断当前与电子设备300建立蓝牙通信连接1的电子设备,与,当前的来电设备是否是同一个设备,若是,则可以继续执行后续步骤以便通过电子设备300播放来电的通话声音,若否,则电子设备300需要回连当前的来电设备,回连成功之后才可以继续执行后续步骤以便通过电子设备300播放来电的通话声音。这样,用户在同时拥有多个电子设备(例如手机)的情况下,可以快速自动完成通信连接的切换,无需用户手动操作,提高用户体验。
示例性地,判断“当前与电子设备300建立蓝牙通信连接1的电子设备,与,当前的来电设备是否是同一个设备”的实现方式可以如下:电子设备300可以将电子设备200发送的蓝牙来电同步消息中包括的来电设备的设备信息,与,电子设备100发送的蓝牙来电通知消息中包括的电子设备100的设备信息进行比对。若相同,则表示当前与电子设备300建立蓝牙通信连接1的电子设备,与,当前的来电设备是同一个设备;若不同,则表示当前与电子设备300建立蓝牙通信连接1的电子设备,与,当前的来电设备不是同一个设备。
需要说明的是,本申请实施例对步骤S806-步骤S808与步骤S809-步骤S811的执行时间顺序不作限定。步骤S806-步骤S808可以先于步骤S809-步骤S811执行,也可以后于步骤S809-步骤S811执行,也可以与步骤S809-步骤S811同时执行。
在一些示例中,前述步骤S804中的来电状态通知消息1中可以包括电子设备100的设备信息,这样,电子设备300在出盒之后可以基于来电状态通知消息1中包括的电子设备100的设备信息回连电子设备100(即执行步骤S806-步骤S809),这样,回连成功后则无需再判断其当前回连的设备是否是来电设备了。在这种情况下,上述步骤S808、步骤S811是可选的。
在一些示例中,上述步骤S809-步骤S811也可以是在上述步骤S806之前执行,即电子设备300在出盒之后就执行步骤S809来回连电子设备200,回连成功之后,电子设备300可以基于电子设备200发送的蓝牙来电同步消息中包括的电子设备100的设备信息来回连电子设备100(即执行步骤S806-步骤S809), 这样,回连成功后则无需再判断其当前回连的设备是否是来电设备了。在这种情况下,上述步骤S808是可选的。
在一些示例中,电子设备200也可以检测出盒事件,在这种情况下,电子设备200在检测到出盒事件后,可以主动回连电子设备300,而不是上述步骤S809中电子设备300主动回连电子设备200。
在一些示例中,如果电子设备300回连电子设备100失败,电子设备300可以向电子设备200发送回连失败的消息,电子设备200可以基于该消息来显示提示信息(例如“耳机连接失败,请在手机接听”),以提示用户在电子设备100上接听来电。
S812、电子设备300检测到用户佩戴耳机的事件。
其中,上述步骤S812可以作为触发执行下述步骤S813的条件。
在一些示例中,触发执行下述步骤S813的条件也可以是电子设备300检测到用户佩戴耳机的事件(例如图9B所示的佩戴耳机的事件),和/或,用户按下物理按键(例如电子设备300上用于接听来电的按键)或触发某个手势操作(例如双击电子设备300)的事件。
在一些示例中,触发执行下述步骤S813的条件还可以是电子设备200检测到用户针对图9A所示的选项912的操作(例如点击操作),在这种情况下,电子设备200可以基于与电子设备100建立的蓝牙通信连接向电子设备100发送接通事件的信息,电子设备300则无需执行下述步骤S813了;或者,电子设备200也可以基于蓝牙通信连接2向电子设备300发送指示消息,以指示电子设备300执行下述步骤S813。
S813、电子设备300基于蓝牙通信连接1向电子设备100发送接通事件的信息。
其中,上述接通事件的信息中可以包括电话接通指令,例如ATA(AttentionAdapter)指令。
S814、电子设备100接通来电。
S815、电子设备300基于蓝牙通信连接2向电子设备200发送接通来电的消息1。
其中,上述接通来电的消息1中可以包括用于指示电子设备100接通来电的信息。
S816、电子设备200基于接通来电的消息1将来电界面切换显示为接通界面(例如图9C示例性所示的用户界面920)。
在一些示例中,电子设备100接通来电之后,因为电子设备100上会显示接通界面,因此,电子设备200上也可以不显示接通界面,这样,可以节省电子设备200的能耗。
在一些示例中,电子设备100接通来电之后,可以向电子设备200发送接通来电的消息1,以使得电子设备200基于该消息来显示接通界面,在这种情况下,电子设备300无需执行上述步骤S815。
S817、电子设备100基于蓝牙通信连接1向电子设备300发送接通来电的消息2。
其中,上述接通来电的消息2中可以包括来电的通话声音(即通话音频)的信号。
S818、电子设备300基于接通来电的消息2播放通话声音。
上述各个步骤是以电子设备300在盒内为例来说明的,容易理解,如果电子设备300在盒外,且电子设备100、电子设备200、电子设备300两两之间均保持着蓝牙通信连接,那么,在电子设备100接收到来电时,上述步骤S805-S811可以不执行,上述步骤S804中的来电状态通知消息中可以包括电子设备100的设备信息,电子设备300可以基于电子设备100的设备信息来确定当前连接的设备是来电设备,确定电子设备100是来电设备之后,再触发后续接通来电的过程。
在本申请实施例中,电子设备200可以支持用户来对电子设备300进行声音设置和降噪模式设置。
参阅图9C,对于声音设置,电子设备200可以支持用户通过按下物理按键(例如按键922)或点击界面选项(例如选项921)来触发显示声音设置界面。图9D示例性所示的用户界面930可以是声音设置界面,用户可以通过调节音量条931来进行声音设置,灵活便捷。
可选地,为了便于用户获知如何进行声音设置,在接通来电时,电子设备200可以显示图9E示例性所示的提示信息“点击手表右侧按键/热区可调整音量”。
继续参阅图9C,对于降噪模式设置,电子设备200可以支持用户点击界面选项(例如选项923)来触发显示降噪模式设置界面。图9F示例性所示的用户界面940可以是降噪模式设置界面,该界面中可以包括多个降噪方式选项(例如选项941、选项942、选项943),每个降噪方式选项对应一种降噪模式,用户可以通过点击其中任意一个选项来设置对应的降噪模式,灵活便捷。其中,选项941对应的是“降噪模式”,是通过降噪***产生的声波与外界噪音声波相互中和来实现降噪效果的,可以做到完全过滤到外部声音;选项942对应的是“透传模式”,可以让外界声音进入,例如,可以过滤掉环境声音,让人声进入;选项 942对应的是“关闭模式”,即关闭“降噪模式”和“透传模式”,***无需对声音进行降噪处理。
在一些示例中,电子设备300也可以在检测到用户触发某个手势操作(例如三击电子设备300的操作)的事件之后,来自动设置降噪模式。
在本申请实施例中,电子设备200可以支持用户进行耳机入盒后通话策略的设置。
耳机入盒后通话策略可以包括“入盒挂断”、“入盒转移”这两种策略,其中,“入盒挂断”可以是指在接通电话的过程中如果发生入盒事件,则挂断电话;“入盒转移”可以是指在接通电话的过程中如果发生入盒事件,则耳机可以停止播放通话声音,通话声音转移至来电设备(例如电子设备100),不挂断电话,用户可以继续接听。
示例性地,用户可以通过电子设备200上的“设置”菜单来进行耳机入盒后通话策略的设置。参阅图9G,图9G示例性所示的用户界面950可以是“设置”菜单对应的一个用户界面,该用户界面中可以包括一个或多个设置选项(例如选项951等等),其中,选项951可以用于用户进入通话策略的设置界面来进行通话策略的设置。如果用户想要进行通话策略的设置,那么,电子设备200可以检测到用户针对选项951的操作(例如点击操作),响应于该操作,电子设备200可以显示图9H示例性所示的用户界面960,该用户界面可以为通话策略的设置界面。
参阅图9H,在一些示例中,电子设备200可以默认耳机入盒后通话策略为“入盒转移”(即图9H所示的“入盒挂断”对应的选项961处于关闭状态),并将耳机入盒后通话策略的信息保存为“入盒转移”策略的信息。
继续参阅图9H,如果用户想要将耳机入盒后通话策略设置为“入盒挂断”,则电子设备200可以检测到用户针对选项961的操作(例如点击操作),响应于该操作,电子设备200可以将选项961由图9H所示的关闭状态置为图9I所示的开启状态,并将耳机入盒后通话策略的信息保存为“入盒挂断”策略的信息。
S819、电子设备200检测到耳机入盒事件。
其中,上述耳机入盒事件是在接通电话过程中电子设备200检测到的。
S820、电子设备200向电子设备300发送入盒事件的信息。
S821、电子设备300向电子设备200发送获取入盒后通话策略的请求。
在本申请实施例中,在耳机入盒后通话策略的信息被设置完成后保存于电子设备200的情况下,电子设备300可以通过发送请求来向电子设备300获取入盒后通话策略,或,电子设备200在检测到上述入盒事件后主动向电子设备300发送入盒后通话策略。
在一些示例中,耳机入盒后通话策略的信息被设置完成后,电子设备200也可以主动将耳机入盒后通话策略发送给电子设备300,这样,在接通电话过程中,发生入盒事件,电子设备300就无需向电子设备200请求获取入盒后通话策略了。
在一些示例中,电子设备300也可以自身检测入盒事件,在这种情况下,上述步骤S819-步骤S820也可以不执行。
容易理解,在入盒后通话策略为“入盒挂断”策略的情况下,执行下述步骤S822-步骤S826来进行电话挂断;在入盒后通话策略为“入盒转移”策略的情况下,执行下述步骤S822’-步骤S826’来进行电话转移。
下面分别介绍入盒后通话策略为“入盒挂断”策略的情况下进行电话挂断的过程、入盒后通话策略为“入盒转移”策略的情况下进行电话转移的过程:
情况一:耳机入盒后通话策略为“入盒挂断”
S822、电子设备200向电子设备300发送“入盒挂断”策略的信息。
其中,上述步骤S822可以是由上述步骤S821触发执行的。
S823、电子设备300基于蓝牙通信连接1向电子设备100发送挂断事件的信息。
其中,上述挂断事件的信息中可以包括电话挂断指令,例如ATCHUP(AttentionCall Hang Up)指令。
在本申请实施例中,电子设备300入盒后,可以是在向电子设备100发送挂断事件的信息之后,再断开蓝牙通信连接1。
S824、电子设备100基于挂断事件的信息挂断来电。
S825、电子设备300向电子设备200发送挂断事件的同步信息。
S826、电子设备200基于上述挂断事件的同步信息取消显示接通界面。
在一些示例中,上述步骤S825也可以不是电子设备300来执行的,而是电子设备100来执行的,也即是说,电子设备100挂断电话后,可以向电子设备200发送挂断事件的信息,电子设备200接收到电子设备100发送的挂断事件的同步信息之后,电子设备200可以基于挂断事件的同步信息取消显示接通界面。
在一些示例中,用户也可以在电子设备100上挂断来电,在这种情况下,电子设备100可以向电子设备200发送挂断来电的指示信息,接收到该指示信息之后,电子设备200可以取消显示接通界面,挂断来电之后,电子设备300上也不再播放通话声音。
在另一些示例中,用户也可以在电子设备200上挂断来电,在这种情况下,电子设备200可以向电子设备100发送挂断来电的指示信息,接收到该指示信息之后,电子设备100可以挂断来电,挂断来电之后,电子设备300上也不再播放通话声音。
情况二:耳机入盒后通话策略为“入盒转移”
S822’、电子设备200向电子设备300发送“入盒转移”策略的信息。
其中,上述步骤S822’可以是由上述步骤S821触发执行的。
S823’、电子设备300休眠,且与电子设备100断开蓝牙通信连接1。
S824’、电子设备100播放通话声音。
这样,电话可以自动转移到电子设备100进行接听,即电子设备100播放通话声音,电子设备300停止播放通话声音。
S825’、电子设备300向电子设备200发送断开蓝牙通信连接1事件的同步信息。
S826’、电子设备200取消显示接通界面。
在一些示例中,上述步骤S825’也可以不是电子设备300来执行的,而是电子设备100来执行的,也即是说,电子设备100与电子设备300断开蓝牙通信连接1之后,电子设备100可以向电子设备200发送断开蓝牙通信连接1事件的信息,电子设备200可以基于该信息取消显示接通界面。
在一些示例中,电话转移到电子设备100之后,上述步骤S825’-S826’也可以不执行。
去电场景
图10所示实施例可以是在电子设备100、电子设备200、电子设备300均配对成功过,且电子设备100与电子设备200建立有蓝牙通信连接,电子设备300在盒内时,电子设备200检测到用户触发拨号事件的情况下执行的。
S1001、电子设备200检测到用户触发拨号事件。
示例性地,用户在电子设备200上触发拨号事件的一种可能的实现方式可以如下:
参阅图11A,图11A示例性所示的用户界面1110可以是电子设备200上的功能菜单对应的一个用户界面,该用户界面中可以包括一个或多个选项(例如选项1111),其中,选项1111可以用于用户进入通话记录界面来查看通话记录、拨打通话记录中的电话。如果用户想要查看通话记录,或,拨打通话记录中的电话,那么,电子设备200可以检测到用户针对图11A所示的选项1111的操作(例如点击操作),响应于该操作,电子设备200可以显示图11B示例性所示的用户界面1120,该用户界面可以为通话记录界面,该用户界面中可以包括一条或多条通话记录(例如通话记录1121),假设用户想要给通话记录1121所示的Lisa打电话,那么,电子设备200可以检测到用户触发拨号事件(例如点击通话记录1121的操作),并生成拨号事件的信息1。
其中,每一条通话记录中记录的信息可以包括但不限于:该通话记录对应的电话号码、联系人、产生该通话记录的电子设备的设备信息(例如MAC地址等)。举例来说,假设通话记录1121是用户通过电子设备100给联系人为Lisa、电话号码为186xxxx1105拨打电话而产生的通话记录,那么,上述通话记录1121对应的电话号码即为186xxxx1105、联系人即为Lisa、产生通话记录1121的电子设备的设备信息即为电子设备100的设备信息(例如电子设备100的MAC地址等)。
需要说明的是,上述一条或多条通话记录可以是与电子设备200建立过无线通信连接(例如蓝牙通信连接)的电子设备(例如手机)所产生的通话记录,也即是说,电子设备(例如手机)有来电时,只要该电子设备通知过电子设备200有来电,那么,电子设备200就可以保存该条通话记录,后续电子设备200就可以支持用户通过操作该条通话记录来触发拨号事件。
在一些示例中,电子设备200的通话记录列表中也可以只显示电子设备200当前连接的电子设备(例如手机)产生的通话记录,这样,用户在触发拨号事件之后,可以避免后续由于电子设备300无法成功连 接上述电子设备(例如手机)而导致出现拨号失败的情况。
S1002、电子设备200向电子设备300发送拨号事件的信息1。
其中,拨号事件的信息1中可以包括但不限于:拨打的电话号码(例如通话记录1121对应的电话号码)、拨号设备的设备信息(例如产生通话记录1121的电子设备的设备信息)。
在执行上述步骤S1002之前,电子设备200可以触发电子设备300由休眠状态切换到唤醒状态,从而使得电子设备300可以接收电子设备200发送的消息。
S1003、电子设备300检测到出盒事件。
在一些示例中,如果电子设备200向电子设备300发送拨号事件的信息之后,未检测到电子设备300出盒事件,电子设备300则会处于未连接状态(即电子设备300与电子设备200未建立无线通信连接的状态),那么,电子设备200可以显示图11C示例性所示的用户界面,该用户界面中可以包括提示信息,以提示用户电子设备300处于未连接状态,拨号失败,成功连接电子设备300之后可以再尝试发起拨号。
在检测到电子设备300出盒事件后,电子设备300可以触发执行后续步骤S1004-步骤S1005、步骤S1006-步骤S1007,从而可以与电子设备100、电子设备200建立蓝牙通信连接。
S1004、电子设备300发送蓝牙回连广播消息1。
S1005、电子设备100与电子设备300建立蓝牙通信连接1。
S1006、电子设备300发送蓝牙回连广播消息2。
S1007、电子设备200与电子设备300建立蓝牙通信连接2。
其中,步骤S1004-步骤S1005、步骤S1006-步骤S1007的具体执行过程与前述图8中的步骤S806-步骤S807、步骤S809-步骤S810类似,在此不再赘述。
在实际应用中,电子设备300出盒后,通常回连的是最近一次与电子设备300配对过的设备,因此,电子设备300在与电子设备100建立蓝牙通信连接1之后,电子设备300可以将拨号设备的设备信息与当前连接的电子设备100的设备信息进行比对,若相同,则表示拨号设备是当前连接的电子设备100,可以继续执行后续步骤;若不同,则表示拨号设备不是当前连接的电子设备100,那么,电子设备300需要回连拨号设备,回连成功之后才可以继续执行后续步骤。在本申请实施例的一些示例中,电子设备300出盒后,也可以不回连的最近一次与电子设备300配对过的设备,而是基于电子设备200发送的拨号设备的设备信息来回连该拨号设备,回连成功之后可以直接执行后续步骤,这样,无需电子设备300再判断当前连接设备是否为拨号设备。
S1008、电子设备300检测到用户佩戴耳机的事件。
其中,上述步骤S1008可以作为触发执行下述步骤S1009的条件。
在一些示例中,触发执行下述步骤S1009的条件也可以是电子设备300检测到用户佩戴耳机的事件(例如图9B所示的佩戴耳机的事件),和/或,用户按下物理按键(例如电子设备300上用于拨打电话的按键)或触发某个手势操作(例如双击电子设备300)的事件。
S1009、电子设备300基于蓝牙通信连接1向电子设备100发送拨号事件的信息2。
其中,拨号事件的信息2中可以包括但不限于:拨打的电话号码(例如通话记录1121对应的电话号码)。
在一些示例中,触发执行上述步骤S1009的条件也可以是电子设备300与电子设备100成功建立蓝牙通信连接1,在这种情况下,上述步骤S1008可以不执行。
S1010、电子设备100基于拨号事件的信息2执行拨号操作。
拨号操作完成之后,电子设备100可以显示图11D示例性所示的用户界面,电子设备300也可以显示图11E示例性所示的用户界面,以提示用户电子设备100已完成拨号操作,正在发起呼叫。
在一些示例中,如果用户未佩戴耳机,电子设备300可以基于蓝牙通信连接2来向电子设备200发送用户未佩戴耳机的消息,进一步地,电子设备200可以基于该消息来显示图11F示例性所示的用户界面,以提示用户佩戴耳机(例如佩戴耳机后可以自动拨号)。在用户佩戴完耳机,且电子设备100完成拨号操作之后,电子设备200可以再显示图11E示例性所示的用户界面。可选地,图11E示例性所示的用户界面中也可以显示拨号设备的设备信息(例如拨号设备的设备名称)。
S1011、电子设备100接通电话。
S1012、电子设备100基于蓝牙通信连接1向电子设备300发送接通电话的消息1。
其中,上述接通电话的消息1可以包括电话的通话声音(即通话音频)的信号。
S1013、电子设备300基于蓝牙通信连接2向电子设备200发送接通电话的消息2。
其中,上述接通电话的消息2中可以包括用于指示电子设备100接通电话的信息。
S1014、电子设备200基于接通电话的消息2显示接通界面。
S1015、电子设备300基于接通电话的消息1播放通话声音。
在一些示例中,电子设备100接通电话之后,也可以向电子设备200发送接通电话的消息2,以使得电子设备200基于该消息来显示接通界面(例如图9C示例性所示的用户界面920),在这种情况下,上述步骤S1013可以不执行。
上述各个步骤是以电子设备300在盒内为例来说明的,容易理解,如果电子设备300在盒外,且电子设备100、电子设备200、电子设备300两两之间均保持着蓝牙通信连接,那么,在接收到电子设备200发送的拨号事件的信息1之后,上述步骤S1004-步骤S1007则无需执行,电子设备300只需确认当前连接的电子设备100是否是拨号设备,若是,再触发执行后续步骤。
容易理解,在上述去电场景下,耳机入盒后的通话策略(即“入盒转移”或“入盒挂断”)与前述图8来电场景类似,具体执行过程可以参照前述图8,在此不再赘述。
在上述图3所示实施例中介绍的是手表和耳机配对同一个手机,可支持形成前述图2G所示的“连接方式1”,即手表和耳机都连接到同一个手机,手表和耳机之间的连接、耳机和手机之间的连接可以是耳机在出盒时基于配对信息建立的。
在本申请实施例中,耳机还可以单独配对到另一个手机,可支持表耳和手机的连接方式从前述图2G所示的“连接方式1”变换到前述图2H所示的“连接方式2”。耳机单独配对到另一个手机的过程可以如下:
首先,手表可以接收到用户的某个操作,该操作可以用于控制耳机进入待配对状态。
进一步地,在上述操作之后,手表可以接收到耳机发送的通知消息,以获知耳机处于待配对状态。其中,该通知消息可以是通过手表和耳机之间的通信连接来传输的,该通信连接可以是耳机和手表之间建立的无线通信连接(例如蓝牙通信连接),也可以是通信电极接触所形成的电连接。
进一步地,在耳机进入待配对状态之后,上述另一个手机可以通过蓝牙等无线通信技术发现处于待配对状态的耳机,上述另一个手机检测到用户连接耳机的操作之后,可以与耳机配对并建立无线通信连接(例如蓝牙通信连接)。
下面介绍在电子设备100(例如手机A)、电子设备200(例如手表)、电子设备300(例如耳机)、电子设备400(例如手机B)之间的连接方式为前述图2H所示的连接方式2的情况下,本申请实施例提供的通信方法在来电场景、去电场景下的具体执行过程。
其中,下述各个实施例均是在电子设备100与电子设备200建立有蓝牙通信连接1、电子设备200与电子设备300建立有蓝牙通信连接2、电子设备300与电子设备400建立有蓝牙通信连接3的情况下执行的。
来电场景1(电子设备400来电)
图12示例性示出了电子设备400来电的场景下的具体流程。下面展开介绍详细步骤:
S1201、电子设备400接收到来电。
S1202、电子设备400基于蓝牙通信连接3向电子设备300发送来电消息1。
其中,上述来电消息1中可以包括但不限于:电子设备400的设备信息(例如MAC地址等)、来电的电话号码。
S1203、电子设备300基于蓝牙通信连接2向电子设备200发送来电消息2。
其中,上述来电消息2中可以包括但不限于:电子设备400的设备信息(例如MAC地址等)、来电的电话号码。
S1204、电子设备200基于来电消息2显示来电界面。
S1205、电子设备300检测到用户佩戴耳机的事件。
其中,上述步骤S1205可以作为触发执行下述步骤S1206的条件。
在一些示例中,触发执行下述步骤S1206的条件也可以是电子设备300检测到用户佩戴耳机的事件(例如图9B所示的佩戴耳机的事件),和/或,用户按下物理按键(例如电子设备300上用于接听来电的按键) 或触发某个手势操作(例如双击电子设备300)的事件。
在一些示例中,用户也可以通过在电子设备200显示的来电界面上来触发接通事件(例如点击来电界面上显示的接听选项),在这种情况下,电子设备200可以基于蓝牙通信连接2向电子设备300发送指示消息,以指示电子设备300执行下述步骤S1206。
S1206、电子设备300基于蓝牙通信连接3向电子设备400发送接通事件的信息。
其中,上述接通事件的信息中可以包括电话接通指令,例如ATA(AttentionAdapter)指令。
S1207、电子设备400基于接通事件的信息接通来电。
S1208、电子设备300基于蓝牙通信连接2向电子设备200发送接通来电的消息1。
其中,上述接通来电的消息1中可以包括用于指示电子设备400接通来电的信息。
S1209、电子设备200基于接通来电的消息1将来电界面切换显示为接通界面。
S1210、电子设备400基于蓝牙通信连接3向电子设备300发送接通来电的消息2。
其中,上述接通来电的消息2中可以包括来电的通话声音(即通话音频)的信号。
S1211、电子设备300基于接通来电的消息2播放通话声音。
容易理解,在上述来电场景1下,耳机入盒后的通话策略(即“入盒转移”或“入盒挂断”)与前述图8来电场景类似,具体执行过程可以参照前述图8,在此不再赘述。
来电场景2(电子设备100和电子设备400均来电)
图13示例性示出了电子设备100和电子设备400均来电的场景下的具体流程。下面展开介绍详细步骤:
S1301、电子设备100接收到来电1。
S1302、电子设备100基于蓝牙通信连接1向电子设备200发送来电消息1。
其中,上述来电消息1中可以包括但不限于:电子设备100的设备信息(例如MAC地址等)、来电1的电话号码。
S1303、电子设备400接收到来电1’。
S1304、电子设备400基于蓝牙通信连接3向电子设备300发送来电消息1’。
其中,上述来电消息1’中可以包括但不限于:电子设备400的设备信息(例如MAC地址等)、来电1’的电话号码。
S1305、电子设备300基于蓝牙通信连接2向电子设备200发送来电消息1”。
其中,上述来电消息1”中可以包括但不限于:电子设备400的设备信息(例如MAC地址等)、来电1’的电话号码。
S1306、电子设备200基于来电消息1显示来电1对应的来电界面。
在本申请实施例中,由于电子设备100和电子设备300都可能会向电子设备200发送来电消息,且电子设备200只能显示一路通话的界面,因此,在电子设备100和电子设备400均有来电的情况下,电子设备200先接收到哪个电子设备的来电消息,就可以显示哪个电子设备对应的来电界面。
在图13所示的实施例中,以电子设备200先接收到上述来电消息1为例。
容易理解,如果电子设备200先接收到上述来电消息1”,那么,电子设备200可以基于该来电消息1”来显示来电1’对应的来电界面。
在一些示例中,上述步骤S1303-步骤S1305也可以是在上述步骤S1306之后执行,即电子设备200正在显示来电1对应的来电界面时,电子设备400来电。
电子设备200在显示来电1对应的来电界面之后,接听来电可能会有两种情况:一种情况是,接听来电1;另一种情况是,来电1超时未接听(即电子设备100振铃结束未接听),且来电1’未超时(即电子设备400仍在振铃),接听来电1’。下面详细介绍上述两种情况:
需要说明的是,电子设备100在来电1超时的情况下,电子设备100可以通过蓝牙通信连接1来向电子设备200发送来电1的超时通知消息,电子设备200可以基于该来电1的超时通知消息取消显示来电1对应的来电界面。同理,电子设备400在来电1’超时的情况下,电子设备400可以通过电子设备300来向电子设备200发送来电1’的超时通知消息,如果电子设备200正在显示来电1’对应的来电界面,那么,电子设备200也可以基于该来电1’的超时通知消息取消显示来电1’对应的来电界面。
情况一:接听来电1
S1307、电子设备200检测到用户接听来电1的操作。
其中,上述用户接听来电1的操作可以是用户针对来电1对应的来电界面上的接听选项的操作(例如点击操作)。
S1308、电子设备200基于蓝牙通信连接2向电子设备300发送接听消息1,该消息中包括用户接听来电1的消息、电子设备100的设备信息。
其中,上述接听消息1中的电子设备100的设备信息可以包括电子设备100的MAC地址。
S1309、电子设备300断开蓝牙通信连接3。
电子设备300可以基于上述接听消息1中的电子设备100的设备信息确定需要回连电子设备100,在回连电子设备100之前,断开与电子设备400的蓝牙通信连接(即蓝牙通信连接3)。
S1310、电子设备300发送蓝牙回连广播消息1。
S1311、电子设备300与电子设备100建立蓝牙通信连接4。
在实际应用中,电子设备300回连电子设备100时,可能出现回连失败的情况,在这种情况下,电子设备300可以基于蓝牙通信连接2向电子设备200发送回连失败的消息,电子设备200可以基于该消息来显示提示信息(例如“耳机连接失败,请在手机接听”),以提示用户在电子设备100上接听来电1。
S1312、电子设备300基于蓝牙通信连接4向电子设备100发送接通来电1事件的信息。
其中,上述接通来电1事件的信息中可以包括电话接通指令,例如ATA(AttentionAdapter)指令。
S1313、电子设备100基于接通来电1事件的信息接通来电1。
S1314、电子设备300基于蓝牙通信连接2向电子设备200发送接通来电1的消息1。
其中,上述接通来电1的消息1中可以包括用于指示电子设备100接通来电1的信息。
S1315、电子设备200基于接通来电1的消息1显示来电1对应的接通界面。
S1316、电子设备100基于蓝牙通信连接4向电子设备300发送接通来电1的消息2。
其中,上述接通来电1的消息2中可以包括来电1的通话声音(即通话音频)的信号。
S1317、电子设备300基于接通来电1的消息2播放来电1的通话声音。
在一些示例中,电子设备100接通来电1之后,可以基于蓝牙通信连接1向电子设备200发送接通来电1的消息1,以使得电子设备200基于该消息来显示接通界面,在这种情况下,电子设备300无需执行上述步骤S1314。
容易理解,在上述电子设备300正在接听电子设备100的来电时,如果电子设备400有来电,由于电子设备300已与电子设备400断开蓝牙通信连接,因此,在这种情况下,电子设备300不会接收到电子设备400的来电消息。
情况二:来电1超时未接听,且来电1’未超时,接听来电1’
S1307’、电子设备200取消显示来电1对应的来电界面,基于来电消息1”显示来电1’对应的来电界面。
在一些示例中,“电子设备200取消显示来电1对应的来电界面,显示来电1’对应的来电界面”的触发条件也可以是用户挂断来电1,且来电1’未超时。
S1308’、电子设备200检测到用户接听来电1’的操作。
其中,上述用户接听来电1’的操作可以是用户针对来电1’对应的来电界面上的接听选项的操作(例如点击操作)。
S1309’、电子设备200基于蓝牙通信连接2向电子设备300发送接听消息1’,该消息中包括用户接听来电1’的消息。
S1310’、电子设备300基于蓝牙通信连接3向电子设备400发送接通来电1’事件的信息。
其中,上述接通来电1’事件的信息中可以包括电话接通指令,例如ATA(AttentionAdapter)指令。
S1311’、电子设备400基于接通来电1’事件的信息接通来电1’。
S1312’、电子设备300基于蓝牙通信连接2向电子设备200发送接通来电1’的消息1。
其中,上述接通来电1’的消息1中可以包括用于指示电子设备400接通来电1’的信息。
S1313’、电子设备200基于接通来电1’的消息1显示来电1’对应的接通界面。
S1314’、电子设备400基于蓝牙通信连接3向电子设备300发送接通来电1’的消息2。
其中,上述接通来电1’的消息2中可以包括来电1’的通话声音(即通话音频)的信号。
S1315’、电子设备300接通来电1’的消息2播放来电1’的通话声音。
容易理解,在上述来电场景2下,耳机入盒后的通话策略(即“入盒转移”或“入盒挂断”)与前述 图8来电场景类似,具体执行过程可以参照前述图8,在此不再赘述。
在一些示例中,在电子设备300正在接听电子设备400的来电,且电子设备200正在显示电子设备400来电对应的接通界面的情况下,如果电子设备100有来电,那么,电子设备100可以基于蓝牙通信连接1向电子设备200发送来电消息,电子设备200可以基于该来电消息显示对应的来电界面,后续接听该来电的过程与前述图13的情况一中的步骤类似,在此不再赘述。容易理解,在上述情况下,电子设备300在开始接听电子设备100的来电之后,电子设备400的来电的通话声音可以自动转移到电子设备400上。
去电场景
在本申请实施例中,电子设备200上可以保存并显示多条通话记录,这多条通话记录可以是不同电子设备(例如电子设备100、电子设备400)产生的通话记录,用户可以通过针对某一条通话记录进行操作(例如点击某一条通话记录)来触发拨号事件,使得拨号设备来执行拨号操作,其中,该拨号设备为产生该条通话记录的电子设备。其中,关于电子设备200上保存并显示通话记录的相关介绍可以参照前述相关文字描述,在此不再赘述。
图14示例性示出了去电场景的具体流程。下面展开介绍详细步骤:
下面以拨号设备分别为电子设备400、电子设备100为例来进行说明:
情况一:拨号设备为电子设备400
S1401、电子设备200检测到用户触发拨号事件1。
S1402、电子设备200基于蓝牙通信连接2向电子设备300发送拨号事件1的信息1。
其中,拨号事件1的信息1中可以包括但不限于:拨打的电话号码、拨号设备的设备信息。
S1403、电子设备300基于蓝牙通信连接3向电子设备400发送拨号事件1的信息2。
其中,拨号事件1的信息2中可以包括但不限于:拨打的电话号码。
S1404、电子设备400基于拨号事件1的信息2执行拨号操作。
S1405、电子设备400接通电话1。
S1406、电子设备400基于蓝牙通信连接3向电子设备300发送接通电话1的消息1。
其中,上述接通电话1的消息1可以包括电话1的通话声音(即通话音频)的信号。
S1407、电子设备300基于蓝牙通信连接2向电子设备200发送接通电话1的消息2。
其中,上述接通电话1的消息2中可以包括用于指示电子设备400接通电话1的信息。
S1408、电子设备200基于接通电话1的消息2显示电话1对应的接通界面。
S1409、电子设备300基于接通电话1的消息1播放电话1的通话声音。
情况二:拨号设备为电子设备100
S1401’、电子设备200检测到用户触发拨号事件1’。
S1402’、电子设备200基于蓝牙通信连接2向电子设备300发送拨号事件1’的信息1。
其中,拨号事件1’的信息1中可以包括但不限于:拨打的电话号码、拨号设备的设备信息。
S1403’、电子设备300断开蓝牙通信连接3。
电子设备300可以基于上述拨号事件1’的信息1中的拨号设备的设备信息确定需要回连电子设备100,在回连电子设备100之前,断开与电子设备400的蓝牙通信连接(即蓝牙通信连接3)。
S1404’、电子设备300发送蓝牙回连广播消息1。
S1405’、电子设备300与电子设备100建立蓝牙通信连接4。
在实际应用中,电子设备300回连电子设备100时,可能出现回连失败的情况,在这种情况下,电子设备300可以基于蓝牙通信连接2向电子设备200发送回连失败的消息,电子设备200可以基于该消息来显示相关提示信息(例如“耳机与电子设备100连接失败,是否继续使用电子设备400来拨打电话”),以提示用户在电子设备400上执行拨号操作。在检测到用户同意继续使用电子设备400来拨打电话的情况下,电子设备200可以基于蓝牙通信连接2向电子设备300发送用于指示用户同意继续使用电子设备400来拨打电话的消息,电子设备300接收到该消息之后可以与电子设备400重新建立蓝牙通信连接,并基于该蓝牙通信连接向电子设备400发送拨号事件1’的信息2,该信息中可以包括拨打的电话号码,以触发电子设备400基于该信息来执行拨号操作。
S1406’、电子设备300基于蓝牙通信连接4向电子设备100发送拨号事件1’的信息2。
其中,拨号事件1’的信息2中可以包括但不限于:拨打的电话号码。
S1407’、电子设备100基于拨号事件1’的信息2执行拨号操作。
S1408’、电子设备100接通电话1’。
S1409’、电子设备100基于蓝牙通信连接4向电子设备300发送接通电话1’的消息1。
其中,上述接通电话1’的消息1可以包括电话1’的通话声音(即通话音频)的信号。
S1410’、电子设备300基于蓝牙通信连接2向电子设备200发送接通电话1’的消息2。
其中,上述接通电话1’的消息2中可以包括用于指示电子设备100接通电话1’的信息。
S1411’、电子设备200基于接通电话1’的消息2显示电话1’对应的接通界面。
S1412’、电子设备300基于接通电话1’的消息1播放电话1’的通话声音。
在一些示例中,电子设备100接通电话1’之后,也可以基于蓝牙通信连接1向电子设备200发送上述接通电话1’的消息2,以使得电子设备200基于该消息来显示接通界面,在这种情况下,上述步骤S1410’可以不执行。
在一些示例中,电子设备200的通话记录列表中也可以只显示电子设备200当前连接的电子设备(例如手机)产生的通话记录,这样,用户在触发拨号事件之后,可以避免出现拨号失败的情况。
容易理解,在上述去电场景下,耳机入盒后的通话策略(即“入盒转移”或“入盒挂断”)与前述图8来电场景类似,具体执行过程可以参照前述图8,在此不再赘述。
音乐播放场景
图15示例性示出了本申请实施例提供的通信方法在音乐播放场景下的具体流程。
如图15所示,该方法可以应用于包括电子设备200(例如手表)、电子设备300(例如耳机)的通信***,其中,电子设备200和电子设备300是进行形态融合后组成的一个电子设备,电子设备200可以包括音乐应用模块、音频服务模块、音频编解码模块、蓝牙模块。下面详细介绍该方法的具体步骤:
S1501、电子设备200的音乐应用模块检测到用户播放歌曲1的操作。
S1502、响应于用户播放歌曲1的操作,电子设备200的音乐应用模块向电子设备200的音频服务模块发送音频文件1,其中,音频文件1为歌曲1对应的音频文件。
S1503、电子设备200的音频服务模块获取电子设备300的连接状态信息,并基于该信息确定电子设备300与电子设备200是否建立有无线通信连接。若否,则执行下述步骤S1504;若是,则执行下述步骤S1506。
其中,电子设备200的音频服务模块可以向电子设备200的蓝牙模块获取电子设备300的连接状态信息,电子设备300的连接状态信息中可以包括电子设备200是否与电子设备300建立有无线通信连接(例如蓝牙通信连接)的指示消息。
S1504、电子设备200的音频服务模块向电子设备200的音乐应用模块发送电子设备300未连接的消息。
其中,“电子设备300未连接”可以是指电子设备300未与电子设备200建立有无线通信连接。例如,电子设备300在盒内,或,电子设备300与电子设备200未处于能够建立无线通信连接的通信距离范围内。
S1505、电子设备200的音乐应用模块基于上述电子设备300未连接的消息提示用户连接电子设备300。
在确定电子设备300与电子设备200建立有无线通信连接之后,电子设备200可以向电子设备300发送歌曲1的音频数据来使得电子设备300播放歌曲1,一种可能的实现方式可以如下述步骤S1506-步骤S1510:
S1506、电子设备200的音频服务模块向电子设备200的音频编解码模块发送音频文件1的数据流。
S1507、电子设备200的音频编解码模块对音频文件1的数据流进行编解码得到音频流。
其中,电子设备200的音频编解码模块可以先将音频文件1的数据流进行解码得到脉冲编码调制(PulseCodeModulation,PCM)格式的音频流,进一步地,可以将PCM格式的音频流进行编码得到蓝牙支持的音频编码格式的音频流,例如,子带编码(Sub-band Coding,SBC)格式的音频流,或,高级音频编码(Advanced Audio Coding,AAC)格式的音频流,等等,本申请实施例对此不作限定。
S1508、电子设备200的音频解码模块向电子设备200的蓝牙模块发送该音频流。
S1509、电子设备200的蓝牙模块向电子设备300发送该音频流。
其中,电子设备200的蓝牙模块可以是基于蓝牙高质量音频传输协议(Advanced Audio Distribution  Profile,A2DP)来向电子设备300发送音频流的。
S1510、电子设备300基于该音频流播放歌曲1。
升级场景
图16示例性示出了本申请实施例提供的通信方法在升级场景下的具体流程。
如图16所示,该方法可以应用于包括电子设备200(例如手表)、电子设备300(例如耳机)、电子设备100(例如手机)、升级服务器的通信***,其中,电子设备200和电子设备300是进行形态融合后组成的一个电子设备,下面详细介绍该方法的具体步骤:
通常,为了弥补耳机/手表当前版本的固件存在的一些漏洞、不兼容等问题,开发工作人员会开发出新版本的固件,从而可以利用新版本的固件对耳机/手表中的旧版本的固件进行升级。在本申请实施例中,耳机/手表采用空中升级(OverTheAir,OTA)技术来进行固件升级,用于固件升级的数据包可以称为升级包,升级包可以是一个,也可以是多个。
S1601、电子设备200在电子设备100上读取最新版本号信息。
电子设备100可以从升级服务器处读取到最新版本号信息。然后,电子设备200可以周期性地在电子设备100上(例如在电子设备100上安装的运动健康应用程序上)读取版本号信息,或,电子设备200可以在用户触发下在电子设备100上读取版本号信息,或,电子设备100也可以在有固件更新时主动向电子设备200发送最新版本号信息,以便在有固件更新时可以及时提示用户触发升级操作。
S1602、升级服务器通过电子设备100将升级包发送给电子设备200。
其中,电子设备100可以周期性地检测升级服务器对电子设备200/电子设备300是否有固件更新,如果有,电子设备100可以预先在升级服务器下载升级包并基于无线通信连接(例如蓝牙通信连接)发送给电子设备200;或者,也可以预先在升级服务器下载升级包,在检测到用户触发升级的操作之后再基于无线通信连接(例如蓝牙通信连接)将升级包发送给电子设备200;或者,也可以只先下载最新版本号信息,在检测到用户触发升级的操作之后再在升级服务器上下载升级包并基于无线通信连接(例如蓝牙通信连接)发送给电子设备200。
S1603、电子设备200检测到用户触发升级的操作。
电子设备200在检测到用户触发升级的操作之后,可以执行下述步骤S1604。
在一些示例中,上述用户触发升级的操作也可以是在电子设备100上执行的,在这种情况下,电子设备100可以基于无线通信连接(例如蓝牙通信连接)来通知电子设备200执行下述步骤S1604。
S1604、电子设备200判断耳机是否允许升级,若是,则执行下述步骤S1605,若否,则显示提示信息。
电子设备200可以判断电子设备300是否允许升级(例如电子设备300是否在盒内、电子设备300的电量是否超过预设阈值等)。若是(例如满足电子设备300在盒内且电子设备300的电量超过预设阈值等条件),则电子设备200可以执行下述步骤S1605。若否,则电子设备200可以显示电子设备300当前不允许升级的提示信息,以便通过用户操作(例如将电子设备300放入盒内、给电子设备300充电至电子设备300的电量超过预设阈值等)来让电子设备300处于允许升级的状态。
在一些示例中,只有电子设备300的两只耳机均允许升级的情况下,才可以升级,单只耳机不能单独升级;在另一些示例中,单只耳机允许升级的情况下也可以单独升级,另一只耳机后续在允许升级的情况下再单独升级。
S1605、电子设备200向电子设备300发送升级包。
S1606、电子设备300基于升级包启动升级。
电子设备200可以获取电子设备300的升级进度信息,并基于该升级进度信息来显示升级进度界面。
在电子设备300升级成功之后,可以执行下述步骤S1607。在电子设备300升级失败之后,电子设备300可以向电子设备200发送升级失败的通知消息,电子设备200可以基于该消息来显示提示信息,提示用户电子设备300升级失败。
电子设备300升级失败之后,用户可以重新触发升级。
S1607、电子设备300向电子设备200发送升级完成的通知消息。
S1608、电子设备200启动升级。
电子设备200在升级过程中,可以基于自身的升级进度信息,显示升级进度界面。
电子设备200在升级失败的情况下,可以显示提示信息,提示用户电子设备300升级失败。
电子设备200升级失败之后,用户可以重新触发升级。
在一些示例中,电子设备200和电子设备300均升级成功之后,电子设备200可以显示提示信息,提示用户电子设备200和电子设备300均升级成功,整个升级过程结束。
在一些示例中,也可以是先启动电子设备200升级,电子设备200升级之后再启动电子设备300升级。在另一些示例中,电子设备200和电子设备300也可以同时启动升级。
在上述升级过程中,电子设备300在盒内,因此,电子设备200和电子设备300可以通过接触电极所形成的电连接来进行通信(例如升级包的传输)。在一些示例中,电子设备300升级时也可以不在盒内,在这种情况下,电子设备200与电子设备300之间可以通过无线通信连接(例如蓝牙通信连接)来进行通信(例如升级包的传输)。
至此,电子设备200和电子设备300完成了一站式升级的过程,用户一次升级操作即可完成电子设备200和电子设备300的整个升级过程,简单便捷,提高用户体验。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (24)

  1. 一种配对连接方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述第一子设备中设置有容纳所述耳机的耳机槽,所述方法包括:
    所述第一子设备与第二设备配对并建立通信连接;
    所述第一子设备基于所述通信连接向所述第二设备发送所述耳机的设备信息,所述耳机的设备信息用于所述第二设备与所述耳机配对。
  2. 根据权利要求1所述的方法,其特征在于,所述耳机的设备信息是所述第一子设备通过所述耳机的通信电极与所述耳机槽内的通信电极接触所形成的电连接从所述耳机获取的。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:所述第一子设备基于所述耳机的设备信息与所述耳机配对。
  4. 根据权利要求3所述的方法,其特征在于,所述第一子设备与所述耳机配对是在所述耳机位于所述耳机槽时进行的。
  5. 根据权利要求3或4所述的方法,其特征在于,所述第一子设备基于所述耳机的设备信息与所述耳机配对,具体包括:
    若仅单耳位于所述耳机槽,则所述第一子设备基于所述耳机的设备信息与位于所述耳机槽的单耳配对;
    若双耳位于所述耳机槽,则述第一子设备基于所述耳机的设备信息与位于所述耳机槽的双耳配对。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,在所述耳机与所述第二设备配对成功的情况下,所述方法还包括:
    所述第一子设备检测到用户的第一操作;
    响应于所述第一操作,所述第一子设备控制所述耳机进入待配对状态;
    所述耳机与第三设备配对。
  7. 一种通话控制方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述第一子设备与第二设备建立有第一通信连接,所述第一子设备与所述耳机建立有第二通信连接,所述耳机与第三设备建立有第三通信连接,所述方法包括:
    所述第一子设备基于所述第一通信连接接收所述第二设备发送的第一消息,所述第一消息用于指示所述第二设备接收到第一来电;
    所述第一子设备基于所述第二通信连接接收所述耳机发送的第二消息,所述第二消息用于指示所述第三设备接收到第二来电,所述第二消息是所述第三设备基于所述第三通信连接向所述耳机发送的;
    所述第一子设备基于所述第一消息显示第一来电界面,或,基于所述第二消息显示第二来电界面。
  8. 根据权利要求7所述的方法,其特征在于,所述第一来电界面为所述第一来电对应的来电界面,在所述第一子设备基于所述第一消息显示第一来电界面之后,所述方法还包括:
    所述第一子设备检测到用户的第一操作,所述第一操作用于接听所述第一来电;
    响应于所述第一操作,所述第一子设备基于所述第二通信连接向所述耳机发送第三消息,所述第三消息中包括所述第二设备的设备信息;
    所述耳机基于所述第二设备的设备信息断开所述第三通信连接,并与所述第二设备建立第四通信连接;
    所述第一子设备基于所述第一通信连接向所述第二设备发送第四消息,或,所述耳机基于所述第四通信连接向所述第二设备发送所述第四消息,所述第四消息用于指示所述第二设备接通所述第一来电;
    所述耳机基于所述第四通信连接接收并播放来自所述第二设备的所述第一来电的通话音频。
  9. 根据权利要求7所述的方法,其特征在于,所述第二来电界面为所述第二来电对应的来电界面,在所述第一子设备基于所述第二消息显示第二来电界面之后,所述方法还包括:
    所述第一子设备检测到用户的第二操作,所述第二操作用于接听所述第二来电;
    响应于所述第二操作,所述第一子设备基于所述第二通信连接向所述耳机发送第五消息;
    所述耳机基于所述第五消息向所述第三设备发送第六消息,所述第六消息用于指示所述第三设备接通所述第二来电;
    所述耳机基于所述第三通信连接接收并播放来自所述第三设备的所述第二来电的通话音频。
  10. 一种通话控制方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述第一子设备与第二设备建立有第一通信连接,所述第一子设备与所述耳机建立有第二通信连接,所述耳机与第三设备建立有第三通信连接,所述方法包括:
    所述耳机基于所述第三通信连接接收并播放来自所述第三设备的第一来电的通话音频;
    所述耳机基于所述第二通信连接向所述第一子设备发送第一消息,所述第一消息用于指示所述第三设备已接通所述第一来电;
    所述第一子设备基于所述第一消息显示第一接通界面;
    所述第一子设备基于所述第一通信连接接收所述第二设备发送的第二消息,所述第二消息用于指示所述第二设备接收到第二来电;
    所述第一子设备基于所述第二消息将所述第一接通界面切换显示为第一来电界面,并检测到用户的第一操作,所述第一操作用于接听所述第二来电;
    响应于所述第一操作,所述第一子设备基于所述第二通信连接向所述耳机发送第三消息,所述第三消息中包括所述第二设备的设备信息;
    所述耳机基于所述第二设备的设备信息与所述第二设备断开所述第三通信连接,并建立第四通信连接;
    所述第一子设备基于所述第一通信连接向所述第二设备发送第四消息,或,所述耳机基于所述第四通信连接向所述第二设备发送所述第四消息,所述第四消息用于指示所述第二设备接通所述第二来电;
    所述耳机基于所述第四通信连接接收并播放来自所述第二设备的所述第二来电的通话音频。
  11. 根据权利要求10所述的方法,其特征在于,在所述耳机基于所述第三通信连接接收并播放来自所述第三设备的第一来电的通话音频之前,所述方法还包括:
    所述耳机基于所述第二通信连接向所述第一子设备发送所述第五消息,所述第五消息用于指示所述第三设备接收到所述第一来电;
    所述第一子设备基于所述第五消息显示第二来电界面,并检测到用户的第二操作,所述第二操作用于接听所述第一来电;
    响应于所述第二操作,所述第一子设备基于所述第二通信连接向所述耳机发送第六消息;
    所述耳机基于所述第六消息向所述第三设备发送第七消息,所述第七消息用于指示所述第三设备接通所述第一来电。
  12. 一种通话控制方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述第一子设备中设置有容纳所述耳机的耳机槽,所述耳机在所述耳机槽内,所述第一子设备与第二设备建立有第一通信连接,所述第一子设备与所述耳机建立有第二通信连接,所述方法包括:
    所述第一子设备基于所述第一通信连接接收所述第二设备发送的第一消息,所述第一消息用于指示所述第二设备接收到来电;
    所述第一子设备基于所述第一消息显示来电界面,并基于所述第二通信连接向所述耳机发送第二消息,所述第二消息中包括所述第二设备的设备信息;
    所述耳机检测到所述耳机被拿出耳机槽,所述耳机基于所述第二设备的设备信息与所述第二设备建立第三通信连接;
    所述耳机检测到用户的第一操作;
    响应于所述第一操作,所述耳机基于所述第三通信连接向所述第二设备发送第三消息,所述第三消息用于指示所述第二设备接通所述来电;
    所述耳机基于所述第三通信连接接收并播放来自所述第二设备的所述来电的通话音频。
  13. 根据权利要求12所述的方法,其特征在于,在所述耳机检测到所述耳机被拿出耳机槽之后,所述方法还包括:
    所述耳机与所述第一子设备建立第四通信连接;
    所述耳机基于所述第四通信连接向所述第一子设备发送第四消息,所述第四消息用于指示所述第二设备已接通所述来电;
    所述第一子设备基于所述第四消息显示接通界面。
  14. 根据权利要求13所述的方法,其特征在于,在所述第一设备基于所述第四消息显示接通界面之后,所述方法还包括:
    所述第一子设备检测到所述耳机被放入所述耳机槽中;
    所述第一子设备向所述耳机发送第五消息,所述耳机基于所述第五消息向所述第二设备发送第六消息,所述第六消息用于指示所述第二设备挂断所述来电;或,所述第一子设备向所述耳机发送第七消息,所述耳机基于所述第七消息与所述第二设备断开所述第二通信连接,所述第二设备播放所述来电的通话音频。
  15. 根据权利要求13或14所述的方法,其特征在于,在所述第一设备基于所述第四消息显示接通界面之后,所述方法还包括:
    所述第一子设备检测到用户的第二操作;
    响应于所述第二操作,所述第一子设备显示第一设置界面,所述第一设置界面用于设置所述耳机的音量;
    或,
    所述第一设备检测到用户的第三操作;
    响应于所述第三操作,所述第一子设备显示第二设置界面,所述第二设置界面用于设置所述耳机的降噪模式。
  16. 一种通话控制方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述第一子设备与所述耳机建立有第一通信连接,所述耳机与第二设备建立有第二通信连接,所述第一子设备上存储有第一通话记录,所述第一通话记录是所述第二设备的通话记录,所述方法包括:
    所述第一子设备检测到用户针对所述第一通话记录的第一操作,所述第一操作用于向所述第一通话记录对应的第一号码去电;
    响应于所述第一操作,所述第一子设备基于所述第一通信连接向所述耳机发送第一消息,所述第一消息用于指示所述第二设备向所述第一号码去电;
    所述耳机基于所述第二通信连接向所述第二设备发送第二消息,所述第二消息用于指示所述第二设备向所述第一号码去电;
    所述耳机基于所述第二通信连接接收并播放来自所述第二设备向所述第一号码去电的通话音频。
  17. 一种通话控制方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述第一子设备与所述耳机建立有第一通信连接,所述第一子设备与第二设备建立有第二通信连接,所述第一子设备上存储有第一通话记录,所述第一通话记录是所述第二设备的通话记录,所述方法包括:
    所述第一子设备检测到用户针对所述第一通话记录的第一操作,所述第一操作用于向所述第一通话记录对应的第一号码去电;
    响应于所述第一操作,所述第一子设备基于所述第一通信连接向所述耳机发送第一消息,所述第一消息中包括所述第二设备的设备信息;
    所述耳机基于所述第二设备的设备信息与所述第二设备建立第三通信连接;
    所述第一子设备基于所述第二通信连接向所述第二设备发送第二消息,或,所述耳机基于所述第三通信连接向所述第二设备发送所述第二消息,所述第二消息用于指示所述第二设备向所述第一号码去电;
    所述耳机基于所述第三通信连接接收并播放来自所述第二设备向所述第一号码去电的通话音频。
  18. 一种通话控制方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述 第一子设备中设置有容纳所述耳机的耳机槽,所述耳机在所述耳机槽内,所述第一子设备与第二设备建立有第一通信连接,所述第一子设备与所述耳机建立有第二通信连接,所述第一子设备上存储有第一通话记录,所述第一通话记录是所述第二设备的通话记录,所述方法包括:
    所述第一子设备检测到用户针对所述第一通话记录的第一操作,所述第一操作用于向所述第一通话记录对应的第一号码去电;
    响应于所述第一操作,所述第一设备基于所述第二通信连接向所述耳机发送第一消息,所述第一消息中包括所述第二设备的设备信息;
    所述耳机检测到所述耳机被拿出耳机槽,所述耳机基于所述第二设备的设备信息与所述第二设备建立第三通信连接;
    所述耳机检测到用户的第二操作;
    响应于所述第二操作,所述耳机基于所述第三通信连接向所述第二设备发送第二消息,所述第二消息用于指示所述第二设备向所述第一号码去电;
    所述耳机基于所述第三通信连接接收并播放来自所述第二设备向所述第一号码去电的通话音频。
  19. 一种升级方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述第一子设备与所述耳机建立有通信连接,所述方法包括:
    所述第一子设备检测到用户触发升级的操作;
    响应于所述操作,所述第一子设备判断所述耳机是否满足升级条件,若是,则所述第一子设备基于所述通信连接向所述耳机发送第一消息,所述第一消息中包括升级包;
    所述耳机基于所述升级包启动升级。
  20. 根据权利要求19所述的方法,其特征在于,所述第一子设备中设置有容纳所述耳机的耳机槽,所述第一子设备判断所述耳机是否满足升级条件,具体包括:
    所述第一子设备判断所述耳机是否在所述耳机槽内,和/或,所述耳机的电量是否超过预设阈值。
  21. 根据权利要求19或20所述的方法,其特征在于,在所述耳机基于所述升级包启动升级之后,所述方法还包括:
    所述第一子设备启动升级。
  22. 一种音乐播放方法,应用于第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述方法包括:
    所述第一子设备检测到用户播放第一歌曲的操作;
    响应于所述操作,所述第一子设备判断所述第一子设备是否与所述耳机建立第一通信连接,
    若是,则所述第一子设备向所述耳机发送第一音频数据,所述第一音频数据用于所述耳机播放所述第一歌曲;
    若否,则所述第一子设备显示第一提示信息,所述第一提示信息用于提示用户将所述耳机与所述第一子设备建立所述第一通信连接。
  23. 一种电子设备,所述电子设备为第一设备,其特征在于,所述第一设备包括第一子设备和耳机,所述第一子设备中设置有容纳耳机的耳机槽,所述电子设备包括一个或多个处理器和一个或多个存储器;其中,所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行如权利要求1-6或7-9或10-11或12-15或16或17或18或19-21或22中任一项所述的方法。
  24. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令在电子设备上运行时,使得所述电子设备执行如权利要求1-6或7-9或10-11或12-15或16或17或18或19-21或22中任一项所述的方法。
PCT/CN2023/127416 2022-11-30 2023-10-28 通信方法及相关设备 WO2024114202A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202211526428.0 2022-11-30
CN202211526428 2022-11-30
CN202211743755.1 2022-12-30
CN202211743755.1A CN118118588A (zh) 2022-11-30 2022-12-30 通信方法及相关设备

Publications (1)

Publication Number Publication Date
WO2024114202A1 true WO2024114202A1 (zh) 2024-06-06

Family

ID=91207490

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/127416 WO2024114202A1 (zh) 2022-11-30 2023-10-28 通信方法及相关设备

Country Status (2)

Country Link
CN (1) CN118118588A (zh)
WO (1) WO2024114202A1 (zh)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304449A (zh) * 2007-05-11 2008-11-12 林碧芬 整合式通讯装置
CN108901006A (zh) * 2018-06-15 2018-11-27 Oppo广东移动通信有限公司 一种无线耳机配对的方法和电子设备
CN110996405A (zh) * 2019-12-16 2020-04-10 上海传英信息技术有限公司 耳机连接方法、终端、耳机盒子与计算机可读存储介质
CN111193978A (zh) * 2019-12-31 2020-05-22 歌尔科技有限公司 充电盒控制方法,耳机充电盒及计算机可读存储介质
CN111601199A (zh) * 2020-02-17 2020-08-28 华为技术有限公司 无线耳机盒及***
CN111935689A (zh) * 2020-07-29 2020-11-13 歌尔科技有限公司 耳机装置、移动设备的消息提醒方法及存储介质
CN111971985A (zh) * 2020-05-25 2020-11-20 深圳市易优斯科技有限公司 耳机配对、耳机控制方法、蓝牙耳机收纳装置及介质
CN112188449A (zh) * 2020-09-21 2021-01-05 上海闻泰信息技术有限公司 Tws耳机盒及tws耳机的配对方法
CN113840200A (zh) * 2020-06-23 2021-12-24 深圳市万普拉斯科技有限公司 播放设备确定方法、装置、耳机收纳***及电子设备

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304449A (zh) * 2007-05-11 2008-11-12 林碧芬 整合式通讯装置
CN108901006A (zh) * 2018-06-15 2018-11-27 Oppo广东移动通信有限公司 一种无线耳机配对的方法和电子设备
CN110996405A (zh) * 2019-12-16 2020-04-10 上海传英信息技术有限公司 耳机连接方法、终端、耳机盒子与计算机可读存储介质
CN111193978A (zh) * 2019-12-31 2020-05-22 歌尔科技有限公司 充电盒控制方法,耳机充电盒及计算机可读存储介质
CN111601199A (zh) * 2020-02-17 2020-08-28 华为技术有限公司 无线耳机盒及***
CN111971985A (zh) * 2020-05-25 2020-11-20 深圳市易优斯科技有限公司 耳机配对、耳机控制方法、蓝牙耳机收纳装置及介质
CN113840200A (zh) * 2020-06-23 2021-12-24 深圳市万普拉斯科技有限公司 播放设备确定方法、装置、耳机收纳***及电子设备
CN111935689A (zh) * 2020-07-29 2020-11-13 歌尔科技有限公司 耳机装置、移动设备的消息提醒方法及存储介质
CN112188449A (zh) * 2020-09-21 2021-01-05 上海闻泰信息技术有限公司 Tws耳机盒及tws耳机的配对方法

Also Published As

Publication number Publication date
CN118118588A (zh) 2024-05-31

Similar Documents

Publication Publication Date Title
JP4902730B2 (ja) ブルートゥース装置におけるリモートユーザインタフェース
EP2327198B1 (en) Remote user interface in multiphone environment
WO2021027666A1 (zh) 一种蓝牙回连的方法及相关装置
US8577340B2 (en) Remote messaging for mobile communication device and accessory
WO2018032455A1 (zh) 一种蓝牙通信的方法及终端
WO2020132818A1 (zh) 无线短距离音频共享方法及电子设备
WO2024016832A1 (zh) 应用接续方法和装置
WO2020077512A1 (zh) 语音通话方法、电子设备及***
WO2022033296A1 (zh) 蓝牙通信方法、可穿戴设备及***
WO2020078330A1 (zh) 一种基于语音通话的翻译方法及电子设备
CN105516897A (zh) 一种蓝牙设备间一键建立通信连接的方法及装置
WO2023130991A1 (zh) 协同通话方法、装置、设备、存储介质和程序产品
CN112789934B (zh) 一种蓝牙服务的查询方法及电子设备
WO2021244429A1 (zh) 一种控制应用程序安装的方法及装置
WO2018040043A1 (zh) 发现蓝牙设备的方法和蓝牙设备
WO2021031865A1 (zh) 通话方法及装置
CN115190197B (zh) 基于蓝牙耳机的通话方法、装置及存储介质
WO2020078332A1 (zh) 一种基于语音通话翻译能力的协商方法及电子设备
CN113918110A (zh) 投屏交互方法、设备、***、存储介质和产品
WO2011116572A1 (zh) 语音业务的控制方法和语音业务***
CN113727289A (zh) 电子设备及通话方法
CN117062256A (zh) 跨设备业务转移的方法、电子设备和***
WO2024114202A1 (zh) 通信方法及相关设备
CN115396408B (zh) 一种无线音频/视频装置和无线通信方法
WO2021218544A1 (zh) 一种提供无线上网的***、方法及电子设备

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2023896357

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023896357

Country of ref document: EP

Effective date: 20240617

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

Ref document number: 23896357

Country of ref document: EP

Kind code of ref document: A1