WO2022160967A1 - Procédé de communication, dispositif mobile, dispositif électronique et support de stockage lisible par ordinateur - Google Patents

Procédé de communication, dispositif mobile, dispositif électronique et support de stockage lisible par ordinateur Download PDF

Info

Publication number
WO2022160967A1
WO2022160967A1 PCT/CN2021/137058 CN2021137058W WO2022160967A1 WO 2022160967 A1 WO2022160967 A1 WO 2022160967A1 CN 2021137058 W CN2021137058 W CN 2021137058W WO 2022160967 A1 WO2022160967 A1 WO 2022160967A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
message
point
mobile device
audio data
Prior art date
Application number
PCT/CN2021/137058
Other languages
English (en)
Chinese (zh)
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 WO2022160967A1 publication Critical patent/WO2022160967A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/04Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa
    • H04N1/10Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa using flat picture-bearing surfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams

Definitions

  • the present application relates to the field of communication, and in particular, to a communication method, a mobile device, an electronic device, and a computer-readable storage medium.
  • Bluetooth blue, BT
  • wireless fidelity wireless fidelity, Wi-Fi
  • peer-to-peer peer-to- -peer, P2P
  • wireless bluetooth headsets can establish connections with other communication devices based on bluetooth technology, get rid of the trouble of connecting wires, and are widely praised.
  • a point-to-point direct connection is established between a Bluetooth headset and a smartphone via Bluetooth, when the user moves with the headset to a location far away from the smartphone, or there is a wall blocking between the smartphone and the Bluetooth headset (such as , the smartphone is placed on the second floor, and the user himself wears a Bluetooth headset to move to the first floor), which will cause the Bluetooth connection between the wireless Bluetooth headset and the smartphone to be disconnected, resulting in interruption of services (such as audio data transmission). Therefore, when the two electronic devices based on the point-to-point direct connection technology are disconnected, how to realize service connection becomes an urgent problem to be solved.
  • the present application provides a communication method, a mobile device, an electronic device and a computer-readable storage medium.
  • an indirect connection can be established through a third electronic device, and when the transmission between the two electronic devices is ongoing During the service, the connection of the service can also be realized through the newly established connection.
  • a communication method is provided.
  • the communication method is applied to the first electronic device.
  • the first electronic device includes a processor and a memory.
  • the first electronic device establishes a point-to-point direct connection with a mobile device, and the first electronic device plays audio data through the mobile device.
  • the first electronic device pauses playing the audio data, and records a first pause mark; or, After the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device continues to play the audio data through the speaker of the first electronic device.
  • the first electronic device After detecting that the first electronic device disconnects the point-to-point direct connection with the mobile device, the first electronic device receives a first message, where the first message is used to instruct the mobile device and the second electronic device The device establishes a direct point-to-point connection. In response to the first message, the first electronic device sends all or part of the audio data following the first pause mark to the second electronic device; or, the first electronic device responds to the first electronic device. A message, the first electronic device does not continue to play through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device.
  • the first electronic device can send audio data to the second electronic device, so that the second electronic device can send audio data to the second electronic device.
  • the device sends audio data to the mobile device, so that after the first electronic device is disconnected from the mobile device, the first electronic device can establish an indirect connection with the mobile device through the second electronic device.
  • the first electronic device before the first electronic device sends all or part of the audio data following the first pause mark to the second electronic device, the first electronic device communicates with the second electronic device.
  • the second electronic device establishes a network connection. In this way, the first electronic device can transmit audio data through the connection established with the second electronic device.
  • the first electronic device no longer continues to play through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device Before, the first electronic device establishes a network connection with the second electronic device. In this way, the first electronic device can transmit audio data through the connection established with the second electronic device.
  • establishing a network connection between the first electronic device and the second electronic device includes: establishing a local area network connection between the first electronic device and the second electronic device.
  • the first electronic device and the second electronic device are both in the same local area network, and the second electronic device can send a message to the first electronic device through broadcast or multicast, thereby increasing the flexibility of the solution.
  • the receiving the first message includes: receiving a message from the second electronic device or the third electronic device. In response to the message, after the identification of the mobile device is acquired from the message, it is determined that the message is the first message. According to the first aspect, in another possible implementation manner, after the identification of the mobile device is acquired from the message, determining that the message is the first message; including: after obtaining the identifier of the mobile device from the message After the identification of the mobile device and the identification of the second electronic device are obtained in the device, it is determined that the message is the first message. According to the first aspect, in another possible implementation manner, the identification of the mobile device, the identification of the second electronic device, and the identification of the mobile device and the second electronic device are obtained from the message. After the indication information of the point-to-point direct connection is established, it is determined that the message is the first message. In this way, the ways of determining the first message can be increased, so that the flexibility of the scheme can be improved.
  • the first electronic device after detecting that the first electronic device is disconnected from the second electronic device, the first electronic device pauses playing the audio data, and A second pause mark is recorded. In this way, it is possible to wait for the connection between the mobile device and the first electronic device to be established again, and then realize the service connection.
  • the first electronic device in another possible implementation manner, after it is detected that the first electronic device and the second electronic device are disconnected from the network.
  • the first electronic device continues to play the audio data through the speaker. In this way, the flexibility of the scheme can be increased.
  • the first electronic device after the first electronic device establishes a point-to-point direct connection with the mobile device, the first electronic device sends a first notification message to the third electronic device;
  • the first notification message includes an identification of the mobile device, an identification of the first electronic device, and first notification information that the mobile device has established a point-to-point direct connection with the first electronic device.
  • the third electronic device can be used as the central device to know the connection situation between the devices in time.
  • the first electronic device after the first electronic device disconnects the point-to-point direct connection with the mobile device, the first electronic device sends a second notification message to the third electronic device ; the second notification message includes the identification of the mobile device, the identification of the first electronic device, and the second notification information that the mobile device and the first electronic device have disconnected the point-to-point direct connection .
  • the third electronic device can be used as the central device to know the connection situation between the devices in time.
  • the first electronic device and the second electronic device are connected to the same local area network.
  • the first electronic device and the second electronic device are both in the same local area network, and the second electronic device can send a message to the first electronic device through broadcast or multicast, thereby increasing the flexibility of the solution.
  • the point-to-point direct connection includes one of a Bluetooth connection, a Wi-Fi P2P connection, and a ZigBee connection. In this way, the flexibility of the scheme can be increased.
  • the first electronic device is a smart phone.
  • a communication method is provided.
  • the communication method is applied to a mobile device.
  • a mobile device includes a processor and memory.
  • the mobile device After detecting that the mobile device is disconnected from the point-to-point direct connection with the first electronic device, the mobile device broadcasts a first request message; the first request message includes the mobile device , and point-to-point direct connection requests.
  • the mobile device After receiving the first response message from the second electronic device, the mobile device establishes a point-to-point direct connection with the second electronic device; the first response message is associated with the first request message.
  • the mobile device After receiving all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device. Since the mobile device broadcasts the first request message after disconnecting from the first electronic device, the second electronic device can be connected to it, thereby establishing an indirect connection between the second electronic device and the first electronic device. foundation.
  • the mobile device after detecting that the mobile device and the second electronic device are disconnected from the point-to-point direct connection, the mobile device broadcasts a second request message; the The second request message includes the identification of the mobile device and a point-to-point direct connection request. In this way, a foundation can be laid for establishing connections with other devices after disconnecting from the second electronic device.
  • the mobile device is a Bluetooth headset.
  • a communication method is provided.
  • the communication method is applied to the second electronic device.
  • the second electronic device includes a processor and a memory.
  • the second electronic device, the first electronic device and the third electronic device are connected to the same local area network.
  • the second electronic device receives a first request message from a mobile device; the first request message includes an identifier of the mobile device and a point-to-point direct connection request.
  • the second electronic device establishes a point-to-point direct connection with the mobile device.
  • the second electronic device sends a first notification message to the third electronic device or the first electronic device, where the first notification message includes the identifier of the second electronic device, the identifier of the mobile device, and the and the first notification information for establishing a point-to-point direct connection between the second electronic device and the mobile device.
  • All or part of the unplayed content of audio data is received from the first electronic device.
  • the second electronic device transmits all or part of the unplayed content of the audio data to the mobile device. Since the second electronic device informs other devices after establishing the connection with the mobile device, it lays a foundation for the first electronic device to establish an indirect connection with the mobile device through the second electronic device. Further, since the second electronic device will receive the The audio data from the first electronic device is sent to the mobile device, so that the first electronic device can establish an indirect connection with the mobile device through the second electronic device.
  • the second electronic device after detecting that the second electronic device is disconnected from the point-to-point direct connection with the mobile device, the second electronic device sends the third electronic device to the third electronic device.
  • the device or the first electronic device sends a second notification message; the second notification message includes the identification of the second electronic device, the identification of the mobile device, and the disconnection of the second electronic device from the mobile device A second notification message for a point-to-point direct connection.
  • the second electronic device and the first electronic device before receiving all or part of the unplayed content of the audio data from the first electronic device, the second electronic device and the first electronic device Establish a LAN connection.
  • the first electronic device and the second electronic device are both in the same local area network, and the second electronic device can send a message to the first electronic device through broadcast or multicast, thereby increasing the flexibility of the solution.
  • the second electronic device and the first electronic device After receiving the second reply message from the third electronic device or the first electronic device, the second electronic device and the first electronic device The device disconnects the local area network; the second reply message is associated with the second notification message. In this way, the connection with the first electronic device may be disconnected based on the second reply message.
  • the second electronic device is a smart speaker.
  • a communication method is provided.
  • the communication method is applied to a third electronic device.
  • the third electronic device includes a processor and a memory.
  • the third electronic device, the first electronic device and the second electronic device are connected to the same local area network.
  • the third electronic device receives a first notification message from the first electronic device; the first notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the mobile device.
  • the first notification information of the point-to-point direct connection is established by the first electronic device.
  • the third electronic device receives a second notification message from the first electronic device; the second notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the mobile device.
  • the third electronic device receives a first notification message from the second electronic device, and the first notification message includes an identification of the second electronic device, an identification of the mobile device, and the second electronic device and the The first notification information that the mobile device establishes a point-to-point direct connection.
  • the third electronic device sends a first message to the first electronic device; the first message is used to instruct the second electronic device to establish a point-to-point direct connection with the mobile device.
  • the device having a pairing relationship with the identifier of the mobile device can be made to establish an indirect connection with the mobile device through the second electronic device connection relationship.
  • a second notification message is received from the second electronic device and sent; the second notification message includes the identifier of the second electronic device and the identifier of the mobile device and second notification information that the second electronic device disconnects the point-to-point direct connection from the mobile device.
  • the third electronic device can be made aware of the connection situation between the second electronic device and the mobile device.
  • the third electronic device sends the second notification message to the second electronic device.
  • a second reply message from the first electronic device is received; the second reply message is associated with the second notification message.
  • the second reply message is sent to the second electronic device.
  • the first electronic device can be made aware of the connection between the second electronic device and the mobile device, so that the audio data can be stopped when the second electronic device is disconnected from the mobile device.
  • the second electronic device is a smart TV.
  • a communication method is provided.
  • the communication method is applied to the first electronic device.
  • the first electronic device includes a processor and a memory.
  • the first electronic device pauses to play the audio data, and records the first pause or, after the first electronic device detects that the first electronic device is disconnected from the point-to-point direct connection with the mobile device, the first electronic device continues to play the the audio data.
  • the first electronic device receives a first message, where the first message is used to indicate that the second electronic device has discovered the Mobile devices.
  • the first electronic device In response to the first message, the first electronic device sends all or part of the audio data following the first pause mark to the second electronic device; or, the first electronic device responds to the first electronic device. A message, the first electronic device does not continue to play through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device.
  • the first electronic device can send audio data to the second electronic device, so that The second electronic device sends the audio data to the mobile device, so that after the first electronic device is disconnected from the mobile device, the first electronic device can establish an indirect connection between the second electronic device and the mobile device.
  • the first electronic device before the first electronic device sends all or part of the audio data following the first pause mark to the second electronic device, the first electronic device communicates with the second electronic device.
  • the second electronic device establishes a network connection. In this way, the first electronic device can transmit audio data through the connection established with the second electronic device.
  • the first electronic device no longer continues to play through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device Before, the first electronic device establishes a network connection with the second electronic device. In this way, the first electronic device can transmit audio data through the connection established with the second electronic device.
  • establishing a network connection between the first electronic device and the second electronic device includes: establishing a local area network connection between the first electronic device and the second electronic device.
  • the first electronic device and the second electronic device are both in the same local area network, and the second electronic device can send a message to the first electronic device through broadcast or multicast, thereby increasing the flexibility of the solution.
  • the receiving the first message includes: receiving a message from the second electronic device or the third electronic device. In response to the message, after the identification of the mobile device is acquired from the message, it is determined that the message is the first message. According to the fifth aspect, in another possible implementation manner, after the identification of the mobile device is acquired from the message, the determining that the message is the first message includes: after the message is obtained from the message After the identification of the mobile device and the identification of the second electronic device are obtained in the device, it is determined that the message is the first message.
  • the identifier of the mobile device, the identifier of the second electronic device are obtained from the message, and the second electronic device discovers the mobile device After receiving the indication information of the device, it is determined that the message is the first message. In this way, the ways of determining the first message can be increased, so that the flexibility of the scheme can be improved.
  • the first electronic device after detecting that the first electronic device is disconnected from the network connection with the second electronic device, the first electronic device pauses playing the audio data, and A second pause mark is recorded. In this way, it is possible to wait for the connection between the mobile device and the first electronic device to be established again, and then realize the service connection.
  • the fifth aspect in another possible implementation manner, after it is detected that the first electronic device and the second electronic device are disconnected from the network.
  • the first electronic device continues to play the audio data through the speaker. In this way, the flexibility of the scheme can be increased.
  • the first electronic device after the first electronic device establishes a point-to-point direct connection with the mobile device, the first electronic device sends a first notification message to the third electronic device;
  • the first notification message includes an identification of the mobile device, an identification of the first electronic device, and first notification information that the mobile device has established a point-to-point direct connection with the first electronic device.
  • the third electronic device can be used as the central device to know the connection situation between the devices in time.
  • the first electronic device after the first electronic device and the mobile device are disconnected from the point-to-point direct connection, the first electronic device sends a second notification message to the third electronic device ; the second notification message includes the identification of the mobile device, the identification of the first electronic device, and the second notification information that the mobile device and the first electronic device have disconnected the point-to-point direct connection .
  • the third electronic device can be used as the central device to know the connection situation between the devices in time.
  • the first electronic device and the second electronic device are connected to the same local area network.
  • the first electronic device and the second electronic device are both in the same local area network, and the second electronic device can send a message to the first electronic device through broadcast or multicast, thereby increasing the flexibility of the solution.
  • the point-to-point direct connection includes one of a Bluetooth connection, a Wi-Fi P2P connection, and a ZigBee connection. In this way, the flexibility of the scheme can be increased.
  • the first electronic device is a smart phone.
  • a communication method is provided.
  • the communication method is applied to the second electronic device.
  • the second electronic device includes a processor and a memory.
  • the second electronic device, the first electronic device and the third electronic device are connected to the same local area network.
  • a first request message from a mobile device is received; the first request message includes an identifier of the mobile device and a point-to-point direct connection request.
  • the second electronic device sends a first notification message to the third electronic device or the first electronic device, where the first notification message includes the identifier of the second electronic device, the identifier of the mobile device, and the user information indicating that the mobile device has been discovered by the second electronic device.
  • the second electronic device establishes a point-to-point direct connection with the mobile device.
  • All or part of the unplayed content of audio data is received from the first electronic device.
  • the second electronic device transmits all or part of the unplayed content of the audio data to the mobile device. Since the second electronic device informs other devices after discovering the mobile device, it lays a foundation for the first electronic device to establish an indirect connection with the mobile device through the second electronic device.
  • the audio data of an electronic device is sent to the mobile device, so that the first electronic device can establish an indirect connection with the mobile device through the second electronic device.
  • the second electronic device after detecting that the second electronic device is disconnected from the point-to-point direct connection with the mobile device, the second electronic device sends the third electronic device to the third electronic device.
  • the device or the first electronic device sends a second notification message; the second notification message includes the identification of the second electronic device, the identification of the mobile device, and the disconnection of the second electronic device from the mobile device A second notification message for a point-to-point direct connection.
  • the second electronic device and the first electronic device before receiving all or part of the unplayed content of the audio data from the first electronic device, the second electronic device and the first electronic device Establish a LAN connection.
  • the first electronic device and the second electronic device are both in the same local area network, and the second electronic device can send a message to the first electronic device through broadcast or multicast, thereby increasing the flexibility of the solution.
  • the second electronic device and the first electronic device After receiving the second reply message from the third electronic device or the first electronic device, the second electronic device and the first electronic device The device disconnects the local area network; the second reply message is associated with the second notification message. In this way, the connection with the first electronic device may be disconnected based on the second reply message.
  • the second electronic device is a smart speaker.
  • a communication method is provided.
  • the communication method is applied to a third electronic device.
  • the third electronic device includes a processor and a memory.
  • the third electronic device, the first electronic device and the second electronic device are connected to the same local area network.
  • the third electronic device receives a first notification message from the first electronic device; the first notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the mobile device.
  • the first notification information of the point-to-point direct connection is established by the first electronic device.
  • the third electronic device receives a second notification message from the first electronic device; the second notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the mobile device.
  • the second notification information that the first electronic device disconnects the point-to-point direct connection The third electronic device receives a first notification message from the second electronic device, and the first notification message includes an identification of the second electronic device, an identification of the mobile device, and the second electronic device and the Indication information for indicating that the second electronic device has discovered the mobile device.
  • the third electronic device sends a first message to the first electronic device; the first message is used for indicating that the second electronic device has discovered the mobile device. Since the first message is sent to the device having a pairing relationship with the identifier of the mobile device through the third electronic device, the device having a pairing relationship with the identifier of the mobile device can be made to establish an indirect connection with the mobile device through the second electronic device connection relationship.
  • a second notification message sent from the second electronic device is received; the second notification message includes an identifier of the second electronic device and an identifier of the mobile device and second notification information that the second electronic device disconnects the point-to-point direct connection from the mobile device.
  • the third electronic device can be made aware of the connection situation between the second electronic device and the mobile device.
  • the third electronic device sends the second notification message to the second electronic device.
  • a second reply message from the first electronic device is received; the second reply message is associated with the second notification message.
  • the second reply message is sent to the second electronic device.
  • the first electronic device can be made aware of the connection between the second electronic device and the mobile device, so that the audio data can be stopped when the second electronic device is disconnected from the mobile device.
  • the second electronic device is a smart TV.
  • a communication method is provided.
  • the communication method is applied to the first electronic device, the second electronic device, the third electronic device and the mobile device.
  • the first electronic device, the second electronic device and the third electronic device are connected to the same local area network.
  • the first electronic device establishes a point-to-point direct connection with the mobile device.
  • the first electronic device plays audio data through the mobile device.
  • the first electronic device sends a first notification message to the third electronic device; the first notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the first electronic device.
  • the third electronic device receives the first notification message from the first electronic device.
  • the first electronic device After detecting that the first electronic device is disconnected from the point-to-point direct connection with the mobile device, the first electronic device sends a second notification message to the third electronic device; the second notification message includes the The identification of the mobile device, the identification of the first electronic device, and the second notification information that the mobile device has disconnected the point-to-point direct connection with the first electronic device.
  • the third electronic device receives the second notification message from the first electronic device.
  • the first electronic device After the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device pauses playing the audio data, and records a first pause mark. Alternatively, after the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device continues to play the audio through the speaker of the first electronic device data.
  • the mobile device After detecting that the mobile device disconnects the point-to-point direct connection with the first electronic device, the mobile device broadcasts a first request message; the first request message includes the identification of the mobile device and the point-to-point connection. Direct connection request to peer.
  • the second electronic device receives the first request message from the mobile device.
  • the second electronic device sends a first response message to the mobile device, the first response message being associated with the first request message.
  • the mobile device is receiving the first response message from the second electronic device.
  • the second electronic device establishes a point-to-point direct connection with the mobile device.
  • the second electronic device sends a first notification message to the third electronic device, where the first notification message includes the identifier of the second electronic device, the identifier of the mobile device, and the connection between the second electronic device and the third electronic device.
  • the first notification information that the mobile device establishes a point-to-point direct connection.
  • the third electronic device receives the first notification message from the second electronic device.
  • the third electronic device sends a first message to the first electronic device; the first message is used to instruct the second electronic device to establish a point-to-point direct connection with the mobile device.
  • the first electronic device receives the first message. In response to the first message, the first electronic device transmits to the second electronic device all or part of the audio data following a first pause mark. Alternatively, in response to the first message, the first electronic device does not continue playing through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device.
  • the second electronic device receives all or part of the unplayed content of the audio data from the first electronic device.
  • the second electronic device transmits all or part of the unplayed content of the audio data to the mobile device.
  • the mobile device After the mobile device receives all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data in part from the second electronic device.
  • a communication method is provided.
  • the communication method is applied to the first electronic device, the second electronic device, the third electronic device and the mobile device.
  • the first electronic device, the second electronic device and the third electronic device are connected to the same local area network.
  • the first electronic device establishes a point-to-point direct connection with the mobile device.
  • the first electronic device plays audio data through the mobile device.
  • the first electronic device sends a first notification message to the third electronic device; the first notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the first electronic device.
  • the third electronic device receives the first notification message from the first electronic device.
  • the first electronic device After detecting that the first electronic device is disconnected from the point-to-point direct connection with the mobile device, the first electronic device sends a second notification message to the third electronic device; the second notification message includes the The identification of the mobile device, the identification of the first electronic device, and the second notification information that the mobile device has disconnected the point-to-point direct connection with the first electronic device.
  • the third electronic device receives the second notification message from the first electronic device.
  • the first electronic device After the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device pauses playing the audio data, and records a first pause mark. Alternatively, after the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device continues to play the audio through the speaker of the first electronic device data.
  • the mobile device After detecting that the mobile device disconnects the point-to-point direct connection with the first electronic device, the mobile device broadcasts a first request message; the first request message includes the identification of the mobile device and the point-to-point connection. Direct connection request to peer. The second electronic device receives the first request message from the mobile device.
  • the second electronic device sends a first notification message to the third electronic device, where the first notification message includes an identifier of the second electronic device, an identifier of the mobile device, and a message for indicating the second electronic device
  • the device discovered the information of the mobile device.
  • the third electronic device receives the first notification message from the second electronic device.
  • the third electronic device sends a first message to the first electronic device; the first message is used to indicate that the second electronic device has discovered the mobile device.
  • the first electronic device receives the first message.
  • a connection is established between the first electronic device and the second electronic device.
  • the second electronic device sends a first response message to the mobile device, the first response message being associated with the first request message.
  • the mobile device is receiving the first response message from the second electronic device.
  • the second electronic device establishes a point-to-point direct connection with the mobile device.
  • the first electronic device receives the first message. In response to the first message, the first electronic device transmits to the second electronic device all or part of the audio data following a first pause mark. Alternatively, in response to the first message, the first electronic device does not continue playing through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device.
  • the second electronic device receives all or part of the unplayed content of the audio data from the first electronic device.
  • the second electronic device transmits all or part of the unplayed content of the audio data to the mobile device.
  • the mobile device After the mobile device receives all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data in part from the second electronic device.
  • a tenth aspect provides a communication method.
  • the communication method is applied to the first electronic device, the second electronic device and the mobile device.
  • the second electronic device and the first electronic device are connected to the same local area network.
  • the first electronic device establishes a point-to-point direct connection with the mobile device.
  • the first electronic device plays audio data through the mobile device.
  • the first electronic device After the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device pauses to play the audio data, and records a first pause mark. Alternatively, after the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device continues to play the audio through the speaker of the first electronic device data.
  • the mobile device After detecting that the mobile device disconnects the point-to-point direct connection with the first electronic device, the mobile device broadcasts a first request message; the first request message includes the identification of the mobile device and the point-to-point connection. Direct connection request to peer.
  • the second electronic device receives the first request message from the mobile device.
  • the second electronic device sends a first response message to the mobile device, the first response message being associated with the first request message.
  • the mobile device is receiving the first response message from the second electronic device.
  • the second electronic device establishes a point-to-point direct connection with the mobile device.
  • the second electronic device sends a first message to the first electronic device; the first message is used to instruct the second electronic device to establish a point-to-point direct connection with the mobile device.
  • the first electronic device receives a first message, where the first message is used to instruct the mobile device to establish a point-to-point direct connection with the second electronic device.
  • the first electronic device transmits to the second electronic device all or part of the audio data following a first pause mark. Or, in response to the first message, the first electronic device does not continue to play through the speaker, but sends all the unplayed content of the audio data to the second electronic device or part.
  • the second electronic device receives all or part of the unplayed content of the audio data from the first electronic device.
  • the second electronic device transmits all or part of the unplayed content of the audio data to the mobile device.
  • the mobile device After the mobile device receives all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data in part from the second electronic device.
  • a communication method is provided.
  • the communication method is applied to the first electronic device, the second electronic device and the mobile device.
  • the second electronic device and the first electronic device are connected to the same local area network.
  • the first electronic device establishes a point-to-point direct connection with the mobile device.
  • the first electronic device plays audio data through the mobile device.
  • the first electronic device After the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device pauses to play the audio data, and records a first pause mark. Alternatively, after the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device continues to play the audio through the speaker of the first electronic device data.
  • the mobile device After detecting that the mobile device disconnects the point-to-point direct connection with the first electronic device, the mobile device broadcasts a first request message; the first request message includes the identification of the mobile device and the point-to-point connection. Direct connection request to peer.
  • the second electronic device receives the first request message from the mobile device.
  • the second electronic device sends a first message to the first electronic device; the first message is used to indicate that the second electronic device has discovered the mobile device.
  • the first electronic device receives the first message.
  • a connection is established between the first electronic device and the second electronic device.
  • the second electronic device sends a first response message to the mobile device, the first response message being associated with the first request message.
  • the mobile device is receiving the first response message from the second electronic device.
  • the second electronic device establishes a point-to-point direct connection with the mobile device.
  • the first electronic device transmits to the second electronic device all or part of the audio data following a first pause mark. Or, in response to the first message, the first electronic device does not continue to play through the speaker, but sends all the unplayed content of the audio data to the second electronic device or part.
  • the second electronic device receives all or part of the unplayed content of the audio data from the first electronic device.
  • the second electronic device transmits all or part of the unplayed content of the audio data to the mobile device.
  • the mobile device After the mobile device receives all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data in part from the second electronic device.
  • the present application further provides a communication device.
  • the communication apparatus may be any device on the sending end or device on the receiving end that performs data transmission in a wireless manner. During the communication process, the device on the sending end and the device on the receiving end are relative.
  • the communication device can be used as the above-mentioned mobile device or a communication chip that can be used in the mobile device; in some communication processes, the communication device can be used as the above-mentioned first electronic device or a communication chip that can be used for the first electronic device; In some communication processes, the communication device can be used as the above-mentioned second electronic device or a communication chip that can be used in the second electronic device; in some communication processes, the communication device can be used as the above-mentioned third electronic device or can be used in the third electronic device. communication chip.
  • a communication apparatus including a communication unit and a processing unit, so as to execute any one of the above-mentioned embodiments of the communication methods of the first to eleventh aspects.
  • the communication unit is used to perform functions related to transmission and reception.
  • the communication unit includes a receiving unit and a sending unit.
  • the communication device is a communication chip, and the communication unit may be an input/output circuit or port of the communication chip.
  • the communication unit may be a transmitter and receiver, or the communication unit may be a transmitter and receiver.
  • the communication apparatus further includes various modules that can be used to execute any one of the implementation manners of any one of the communication methods of the first aspect to the seventh aspect.
  • a thirteenth aspect provides a communication apparatus, where the communication apparatus is the above-mentioned mobile device, the first electronic device, the second electronic device or the third electronic device.
  • the communication device includes a processor and a memory.
  • the memory is used to store computer programs or instructions
  • the processor is used to call and run the computer programs or instructions from the memory, and when the processor executes the computer programs or instructions in the memory,
  • the communication apparatus is caused to perform any one of the implementations of any one of the communication methods of the first aspect to the seventh aspect.
  • processors there are one or more processors and one or more memories.
  • the memory may be integrated with the processor, or the memory may be provided separately from the processor.
  • the transceiver may include a transmitter (transmitter) and a receiver (receiver).
  • a fourteenth aspect provides a communication apparatus, where the communication apparatus is the above-mentioned mobile device, the first electronic device, the second electronic device or the third electronic device.
  • the communication device includes a processor.
  • the processor coupled to the memory, is operable to perform the method of any one of the first to seventh aspects, and any one of the possible implementations of the first to seventh aspects.
  • the communication device further includes a communication interface, and the processor is coupled to the communication interface.
  • the communication apparatus is a mobile device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • the communication apparatus is a first electronic device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • the communication apparatus is a second electronic device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • the communication apparatus is a third electronic device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • the communication device is a chip or a system of chips.
  • the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip or a chip system.
  • the processor may also be embodied as a processing circuit or a logic circuit.
  • a system including the above-mentioned mobile device, a first electronic device, a second electronic device, and a third electronic device.
  • the first electronic device includes a processor, a memory, and a computer program, wherein the computer program is stored on the memory, and when executed by the processor, causes the first electronic device to perform the following: Step: The first electronic device establishes a point-to-point direct connection with the mobile device, and the first electronic device plays audio data through the mobile device. After detecting that the first electronic device is disconnected from the point-to-point direct connection with the mobile device, the first electronic device pauses to play the audio data, and records a first pause mark; or, the first electronic device After detecting that the first electronic device is disconnected from the point-to-point direct connection with the mobile device, the first electronic device continues to play the audio data through the speaker of the first electronic device.
  • the first electronic device After detecting that the first electronic device disconnects the point-to-point direct connection with the mobile device, the first electronic device receives a first message, where the first message is used to instruct the mobile device and the second electronic device The device establishes a direct point-to-point connection. In response to the first message, the first electronic device sends all or part of the audio data following the first pause mark to the second electronic device; or, the first electronic device responds to the first electronic device. A message, the first electronic device does not continue to play through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device.
  • the mobile device includes a processor, a memory, and a computer program, wherein the computer program is stored on the memory and, when executed by the processor, causes the mobile device to perform the following steps: After the mobile device and the first electronic device are disconnected from the point-to-point direct connection, the mobile device broadcasts a first request message; the first request message includes the identification of the mobile device and the point-to-point direct connection request. After receiving the first response message from the second electronic device, the mobile device establishes a point-to-point direct connection with the second electronic device; the first response message is associated with the first request message. After receiving all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
  • the second electronic device includes a processor, a memory, and a computer program, wherein the computer program is stored on the memory, and when executed by the processor, causes the second electronic device to perform the following: Step: The second electronic device receives a first request message from a mobile device; the first request message includes an identifier of the mobile device and a point-to-point direct connection request. The second electronic device establishes a point-to-point direct connection with the mobile device. The second electronic device sends a first notification message to the third electronic device or the first electronic device, where the first notification message includes the identifier of the second electronic device, the identifier of the mobile device, and the and the first notification information for establishing a point-to-point direct connection between the second electronic device and the mobile device. All or part of the unplayed content of audio data is received from the first electronic device. The second electronic device transmits all or part of the unplayed content of the audio data to the mobile device.
  • the third electronic device includes a processor, a memory, and a computer program, wherein the computer program is stored on the memory, and when executed by the processor, causes the third electronic device to perform the following: Step: the third electronic device receives a first notification message from the first electronic device; the first notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the mobile device. The first notification information that the first electronic device has established a point-to-point direct connection. The third electronic device receives a second notification message from the first electronic device; the second notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the mobile device. The second notification information that the first electronic device disconnects the point-to-point direct connection.
  • the third electronic device receives a first notification message from the second electronic device, and the first notification message includes an identification of the second electronic device, an identification of the mobile device, and the second electronic device and the The first notification information that the mobile device establishes a point-to-point direct connection.
  • the third electronic device sends a first message to the first electronic device; the first message is used to instruct the second electronic device to establish a point-to-point direct connection with the mobile device.
  • a sixteenth aspect provides a system including the above mobile device, a first electronic device, a second electronic device and a third electronic device.
  • the first electronic device includes a processor, a memory, and a computer program, wherein the computer program is stored on the memory, and when executed by the processor, causes the first electronic device to perform the following: Step: The first electronic device establishes a point-to-point direct connection with the mobile device, and the first electronic device plays audio data through the mobile device. After the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device pauses playing the audio data, and records a first pause mark; or, After the first electronic device detects that the point-to-point direct connection between the first electronic device and the mobile device is disconnected, the first electronic device continues to play the audio data through the speaker of the first electronic device.
  • the first electronic device After detecting that the first electronic device disconnects the point-to-point direct connection with the mobile device, the first electronic device receives a first message, where the first message is used to indicate that the second electronic device has discovered the Mobile devices. In response to the first message, the first electronic device sends all or part of the audio data following the first pause mark to the second electronic device; or, the first electronic device responds to the first electronic device. A message, the first electronic device does not continue to play through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device.
  • the mobile device includes a processor, a memory, and a computer program, wherein the computer program is stored on the memory and, when executed by the processor, causes the mobile device to perform the following steps: After the mobile device and the first electronic device are disconnected from the point-to-point direct connection, the mobile device broadcasts a first request message; the first request message includes the identification of the mobile device and the point-to-point direct connection request. After receiving the first response message from the second electronic device, the mobile device establishes a point-to-point direct connection with the second electronic device; the first response message is associated with the first request message. After receiving all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
  • the second electronic device includes a processor, a memory, and a computer program, wherein the computer program is stored on the memory, and when executed by the processor, causes the second electronic device to perform the following: Step: Receive a first request message from a mobile device; the first request message includes an identifier of the mobile device and a point-to-point direct connection request.
  • the second electronic device sends a first notification message to the third electronic device or the first electronic device, where the first notification message includes the identifier of the second electronic device, the identifier of the mobile device, and the user information indicating that the mobile device has been discovered by the second electronic device.
  • the second electronic device establishes a point-to-point direct connection with the mobile device. All or part of the unplayed content of the audio data is received from the first electronic device.
  • the second electronic device transmits all or part of the unplayed content of the audio data to the mobile device.
  • the third electronic device includes a processor, a memory, and a computer program, wherein the computer program is stored on the memory, and when executed by the processor, causes the third electronic device to perform the following: Step: the third electronic device receives a first notification message from the first electronic device; the first notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the mobile device. The first notification information that the first electronic device has established a point-to-point direct connection. The third electronic device receives a second notification message from the first electronic device; the second notification message includes the identification of the mobile device, the identification of the first electronic device, and the relationship between the mobile device and the mobile device. The second notification information that the first electronic device disconnects the point-to-point direct connection.
  • the third electronic device receives a first notification message from the second electronic device, and the first notification message includes an identification of the second electronic device, an identification of the mobile device, and the second electronic device and the Indication information for indicating that the second electronic device has discovered the mobile device.
  • the third electronic device sends a first message to the first electronic device; the first message is used to indicate that the second electronic device has discovered the indication information of the mobile device.
  • a seventeenth aspect provides a computer-readable storage medium, where the computer-readable medium stores a computer program (also referred to as code, or instruction), when it is run on a computer, to cause the computer to execute the above-mentioned first to third aspects
  • a computer program also referred to as code, or instruction
  • An eighteenth aspect provides a computer program product, the computer program product comprising: a computer program (also referred to as code, or instructions), which, when the computer program is executed, causes the computer to execute any one of the first to seventh aspects above.
  • a computer program also referred to as code, or instructions
  • FIG. 1a is a schematic diagram of an application scenario to which an embodiment of the present application is applicable;
  • FIG. 1b is a schematic diagram of an application scenario to which an embodiment of the present application is applicable;
  • FIG. 2a is a schematic structural diagram of a mobile device 100 according to an embodiment of the present application.
  • FIG. 2b is a schematic structural diagram of an electronic device 200 according to an embodiment of the present application.
  • 3a is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • 3b is a schematic flowchart of another communication method provided by an embodiment of the present application.
  • FIG. 4a is a schematic flowchart of another communication method provided by an embodiment of the present application.
  • FIG. 4b is a schematic flowchart of another communication method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a method for establishing a point-to-point direct connection between a mobile phone and an earphone in the communication method provided by the embodiment of the present application;
  • FIG. 6 is a schematic flowchart of disconnecting a Bluetooth connection between a mobile phone and an earphone in a communication method provided by an embodiment of the present application;
  • FIG. 7 is a schematic flowchart of establishing a connection between a mobile phone and a smart speaker in a communication method provided by an embodiment of the present application
  • FIG. 8 is a schematic flowchart of disconnection between a mobile phone and a smart speaker in a communication method provided by an embodiment of the present application
  • FIG. 9 is a schematic diagram of the architecture of a cross-physical network end-to-end communication model provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a mobile device according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • the term “connected” includes both direct and indirect connections unless otherwise specified. "First” and “second” are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features.
  • words such as “exemplarily” or “for example” are used to represent examples, illustrations or illustrations. Any embodiment or design described in the embodiments of the present application as “exemplarily” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplarily” or “such as” is intended to present the related concepts in a specific manner.
  • FIG. 1a and FIG. 1b are schematic diagrams of an application scenario to which the embodiments of the present application are applied.
  • both the mobile device 100 and the electronic device 200 are located in the bedroom 01.
  • the mobile device 100 (in the figure, the mobile device 100 is shown as a Bluetooth headset as an example) is connected to the electronic device 200 (in the figure, the electronic device is shown as an example) via Bluetooth 200 is a mobile phone as an example), and play the audio data of the electronic device 200, so that the user can hear the sound from the electronic device 200 through the mobile device 100; for example, it can be music or voice call content.
  • the mobile device 100 may move with the user. As shown in FIG. 1b, the mobile device 100 may move to the living room 02 with the user.
  • the Bluetooth connection between the mobile device 100 and the electronic device 200 may be caused by the wall blocking or the increase of the distance. disconnect.
  • the mobile device 100 moves to a position closer to the electronic device 300, and the mobile device 100 is connected to the electronic device 300 via Bluetooth (in the figure, the electronic device 300 is an example of a smart speaker for illustration).
  • the electronic device 300 and the electronic device 200 may be connected through a local area network.
  • the Bluetooth connection may be disconnected from the electronic device 200 , so that the user can no longer hear the information from the electronic device 200 through the mobile device 100 . sound.
  • the solution A also involves an electronic device 400 (in the figure, the electronic device 400 is a smart TV as an example for illustration).
  • the electronic device 400 can be understood as a central device, and both the electronic device 200 and the electronic device 300 report their respective information (such as identification, connection with other devices, and running services) to the electronic device 400 .
  • the electronic device 200 can report the identification of the mobile device 100 connected to the electronic device 200 to the electronic device 400, and the electronic device 400 can determine that the electronic device 200 and the mobile device 100 are in a connected state after receiving the information .
  • the electronic device 200 when the electronic device 200 is disconnected from the mobile device 100 , the electronic device 200 will report the identification of the mobile device 100 disconnected from the electronic device 200 to the electronic device 400 , and the electronic device 400 will receive After obtaining the information, it can be determined that the electronic device 200 and the mobile device 100 are in a disconnected state.
  • the electronic device 300 after the electronic device 300 establishes a connection with the mobile device 200, it will report the identity of the mobile device 100 connected to the electronic device 300 to the electronic device 400. After the electronic device 400 receives the information It may be determined that the electronic device 300 and the mobile device 100 are in a connected state. Further, the electronic device 400 will send the identification of the mobile device 100 and the identification of the electronic device 300 connected with the mobile device 100 via Bluetooth to the electronic device 200 . Further, the electronic device 200 sends the audio data to the electronic device 300, and the electronic device 300 forwards the audio data to the mobile device 100, so that after the mobile device 100 disconnects the Bluetooth connection from the electronic device 200, the mobile device can continue to be connected to the mobile device through this solution. 100 plays the audio data from the electronic device 200 , so that the user continues to listen to the sound from the electronic device 200 through the mobile device 100 .
  • Scheme B does not involve the electronic device 400, that is, does not involve the central device.
  • the electronic device 300 can notify the electronic device 200 through broadcast or multicast. Further, the electronic device 200 sends the audio data to the electronic device 300 , and the electronic device 300 forwards the audio data to the mobile device 100 . In this way, after the mobile device 100 is disconnected from the electronic device 200 via Bluetooth, the mobile device 100 can continue to play audio data from the electronic device 200 through this solution, so that the user can continue to listen to the sound from the electronic device 200 through the mobile device 100 .
  • the service performed by the electronic device 200 is music playback.
  • the mobile device 100 and the electronic device 200 are connected via Bluetooth, the user can listen to music from the electronic device 200 through the mobile device 100 .
  • the mobile device 100 stops the current music playing service.
  • the Bluetooth connection between the mobile device 100 and the electronic device 300 is established, and the connection between the electronic device 300 and the electronic device 200 is established, the electronic device 200 can continue to perform the music playback service and send the audio data of the music to the electronic device 300.
  • the electronic device 300 forwards the audio data to the mobile device 100 so that the user continues to listen to music from the electronic device 200 through the mobile device 100 .
  • the solution provided by the embodiment of the present application can realize the indirect connection between the mobile device 100 and the electronic device 200 through the electronic device 300 when the mobile device 100 and the electronic device 200 are disconnected from the Bluetooth connection, so that the mobile device 100 and the electronic device 200 can be indirectly connected. To achieve business continuity.
  • FIG. 2a exemplarily shows a hardware structure of a mobile device 100 provided by an embodiment of the present application.
  • the mobile device 100 may include a processor 110, an internal memory 121, buttons 122, a motor 123, an indicator 124, an audio module 125, a speaker 125A, a microphone 125B, a USB interface 130, a charge management module 140, a power management module Module 141, battery 142, wireless communication module 150, antenna 160, etc.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or Neural-network Processing Unit (NPU) Wait.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU Neural-network Processing Unit
  • different processing units can be independent devices, or can be integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the mobile device 100 by executing the instructions stored in the internal memory 121 .
  • the mobile device 100 may implement audio functions through an audio module 125, a speaker 125A, a microphone 125B, an application processor, and the like. Such as music playback, recording, etc.
  • the keys 122 include a power-on key, a volume key, and the like.
  • the keys may be mechanical keys. It can also be a touch key.
  • the mobile device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the mobile device 100 .
  • the indicator 124 can be an indicator light, which can be used to indicate the charging state, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the mobile device 100 also includes a charging management module 140 for receiving charging input from the charger. While the charging management module 140 charges the battery 142 , the mobile device 100 can also be powered by the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the wireless communication module 150, and the like.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the mobile device 100 may be implemented by the antenna module 2, the wireless communication module 150, a modem processor, a baseband processor, and the like.
  • the antenna 160 is used to transmit and receive electromagnetic wave signals.
  • Each antenna in mobile device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the cellular network antenna can be multiplexed into a wireless local area network diversity antenna.
  • the antenna may be used in conjunction with a tuning switch.
  • the wireless communication module 150 can provide wireless communication including Bluetooth (bluetooth, BT), near field communication (NFC), infrared technology (infrared, IR), Wi-Fi, ZigBee, etc. applied on the mobile device 100 s solution.
  • the wireless communication module 150 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 150 receives electromagnetic waves via the antenna 160 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 150 can also receive the signal to be sent from the processor 110 , perform frequency modulation on the signal, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 160 .
  • the wireless communication module 150 is configured to send the voice of the first user and the translated machine voice of the target language, or the voice of the target language sent by the opposite user, and the translated machine voice of the first language.
  • the antenna 160 and the wireless communication module 150 are coupled such that the mobile device 100 can communicate with the network and other devices through wireless communication techniques.
  • the wireless communication technology may include BT, NFC, ZigBee, Wi-Fi, and/or IR technology, and the like.
  • the structure shown in FIG. 2 a does not constitute a specific limitation on the mobile device 100 .
  • the mobile device 100 may include more or less components than shown, or some components may be combined, or some components may be split, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • FIG. 2b exemplarily shows a hardware structure of an electronic device 200 provided by an embodiment of the present application.
  • the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, and a mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, sensor module 280, buttons 290, motor 291, indicator 292, camera 293, display screen 294, and SIM card interface 295 Wait.
  • the sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, and ambient light.
  • Sensor 280L Bone Conduction Sensor 280M, etc.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or Neural-network Processing Unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • GPU graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU Neural-network Processing Unit
  • the controller may be the nerve center and command center of the electronic device 200 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in processor 210 is cache memory.
  • the memory may hold instructions or data that have just been used or recycled by the processor 210 . If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • the processor 210 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • a charge management module 240 for receiving charging input from the charger. While the charging management module 240 charges the battery 242 , the electronic device 200 can also be powered by the power management module 241 .
  • the power management module 241 is used to connect the battery 242 , the charging management module 240 and the processor 210 .
  • the power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260.
  • the power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 241 may also be provided in the processor 210 .
  • the power management module 241 and the charging management module 240 may also be provided in the same device.
  • the wireless communication function of the electronic device 200 may be implemented by the antenna module 1, the antenna module 2, the mobile communication module 250, the wireless communication module 160, a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 200 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the cellular network antenna can be multiplexed into a wireless local area network diversity antenna.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 250 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 200 .
  • the mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the mobile communication module 250 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 250 may be provided in the processor 210 .
  • at least part of the functional modules of the mobile communication module 250 may be provided in the same device as at least part of the modules of the processor 210 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 270A, the receiver 270B, etc.), or displays images or videos through the display screen 294 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 210, and may be provided in the same device as the mobile communication module 250 or other functional modules.
  • the wireless communication module 260 can provide applications on the electronic device 200 including wireless local area networks (WLAN), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM), near field communication technology (NFC), infrared technology (infrared, IR), Wi-Fi P2P, ZigBee and other wireless communication solutions.
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 2 , modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the wireless communication module 260 can also receive the signal to be sent from the processor 210 , perform frequency modulation on the signal, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 2 .
  • the wireless communication module 260 is configured to send the voice of the first user and the translated machine voice of the target language, or the voice of the target language sent by the opposite user, and the translated machine voice of the first language.
  • the antenna 1 of the electronic device 200 is coupled with the mobile communication module 250, and the antenna 2 is coupled with the wireless communication module 260, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS)) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS)
  • SBAS satellite based augmentation systems
  • the electronic device 200 implements a display function through a GPU, a display screen 294, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 294 is used to display images, videos, and the like.
  • Display screen 294 includes a display panel.
  • the display panel can be LCD (liquid crystal display, liquid crystal display), OLED (organic light-emitting diode, organic light emitting diode), active matrix organic light emitting diode or active matrix organic light emitting diode (active-matrix organic light) emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 200 may include 1 or N display screens, where N is a positive integer greater than 1.
  • the display screen 294 may be used to display a call interface, a translation interface, a language setting interface, and the like.
  • the electronic device 200 can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the processor 210 executes various functional applications and data processing of the electronic device 200 by executing the instructions stored in the internal memory 221 .
  • the memory 221 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 200 and the like.
  • the memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 200 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, and an application processor. Such as music playback, recording, etc.
  • the electronic device 200 also includes sensors such as a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, an ambient light sensor 280L, a fingerprint sensor 280H, a temperature sensor 280J, touch sensor 280K, bone conduction sensor 280M, etc.
  • sensors such as a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, an ambient light sensor 280L, a fingerprint sensor 280H, a temperature sensor 280J, touch sensor 280K, bone conduction sensor 280M, etc.
  • the pressure sensor 280A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 280A may be provided on the display screen 294 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to pressure sensor 280A, the capacitance between the electrodes changes.
  • the electronic device 200 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 294, the electronic device 200 detects the intensity of the touch operation according to the pressure sensor 280A.
  • the electronic device 200 may also calculate the touched position according to the detection signal of the pressure sensor 280A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • Touch sensor 280K also called “touch panel”. It can be set on the display screen 294 . Used to detect touches on or near it. Detected touch operations can be passed to an application processor to determine the type of touch event and provide corresponding visual output via display screen 294 . In other embodiments, the touch sensor 280K may also be disposed on the surface of the electronic device 200 , which is different from the location where the display screen 294 is located. In the embodiment of the present application, the touch panel is used to receive touch operations such as a first operation, a confirmation operation of the language setting control, a closing operation, and an exit operation.
  • touch operations such as a first operation, a confirmation operation of the language setting control, a closing operation, and an exit operation.
  • the keys 290 include a power-on key, a volume key, and the like.
  • the keys may be mechanical keys. It can also be a touch key.
  • the electronic device 200 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 200 .
  • the indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 295 is used to connect a subscriber identity module (SIM).
  • the electronic device 200 may further include a positioning device, a flash, a micro-projection device, etc., which will not be repeated here.
  • the hardware structure of the electronic device 300 may include more or less components than the electronic device 200 shown in FIG. 2b, or some components may be combined, or some components may be split, or different component arrangements.
  • the mobile device 100 includes, but is not limited to, a Bluetooth headset, a wearable electronic device with a wireless communication function (such as a smart watch, a smart bracelet, a smart ring, and smart glasses).
  • the electronic device 200 may include, but is not limited to, a smart phone, a smart TV (smart large screen), a tablet computer, and the like.
  • Any one of the electronic device 300 or the electronic device 400 may include, but is not limited to, a smart phone, a smart TV (smart TV), a router, a smart speaker, a smart air conditioner, a tablet computer, and the like.
  • the software operating system of any one of mobile device 100, electronic device 200, electronic device 300, and electronic device 400 may include, but is not limited to: Windows, Linux or other operating systems.
  • the structure shown in FIG. 2 b does not constitute a specific limitation on the electronic device 200 .
  • the electronic device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • FIG. 3a exemplarily shows a flow of a communication method provided by an embodiment of the present application.
  • the mobile device 100 is an earphone
  • the electronic device 200 is a mobile phone
  • the electronic device 300 is a smart speaker
  • the electronic device 400 is a smart TV.
  • the electronic device 200 in this embodiment of the present application may be the first electronic device in the foregoing content
  • the electronic device 300 may be the second electronic device in the foregoing content
  • the electronic device 400 may be the third electronic device in the foregoing content.
  • the mobile device 100 may be a mobile device in the foregoing.
  • the method includes:
  • connection between the earphone and the mobile phone is a point-to-point direct connection.
  • a point-to-point connection can be established between the headset and the mobile phone based on technologies such as Bluetooth (bluetooth, BT), wireless fidelity (wireless fidelity, Wi-Fi) P2P, ZigBee, and the like.
  • the mobile phone may send a first notification message to the smart TV, where the first notification message may include a mobile phone identification (ID), an earphone ID, and first notification information for establishing a point-to-point direct connection between the mobile phone and the earphone.
  • ID mobile phone identification
  • earphone ID an earphone ID
  • first notification information for establishing a point-to-point direct connection between the mobile phone and the earphone.
  • the ID of the headset may include, for example, at least one of a media access control (Medium access control, MAC) address, a device name, a combination of an IP address and a port number, and the like.
  • the ID of the mobile phone may include, for example, at least one of a media access control (medium access control, MAC) address, a device name, a combination of an IP address and a port number, and the like.
  • the first notification message may further include a protocol used to indicate that a point-to-point direct connection is established between the mobile phone and the headset. For example, if the mobile phone and the headset are connected via Bluetooth, the first notification The message may also include indication information for indicating that the point-to-point direct connection between the mobile phone and the headset is based on the Bluetooth protocol. The first notification message may further include indication information for indicating that there is a Bluetooth pairing relationship between the mobile phone and the headset.
  • the first notification message may further include information about the ongoing service of the mobile phone, such as a service identifier (such as playing music), service status (such as currently in progress), and the like.
  • a service identifier such as playing music
  • service status such as currently in progress
  • the smart TV can be used as a central device.
  • all devices in the same local area network as the central device can register on the central device, and report some information about themselves to the central device (such as ID, the ID of the device that has a pairing relationship with the device itself, The current connection relationship with other devices, the business performed by the device itself, etc.).
  • ID the ID of the device that has a pairing relationship with the device itself
  • the current connection relationship with other devices the business performed by the device itself, etc.
  • a mobile phone, a smart TV and a smart speaker are in the same local area network.
  • the mobile phone and the smart speaker report their own information to the smart TV respectively.
  • the smart speaker can also report to the smart TV the identity of the device that has a pairing relationship with the smart speaker.
  • the mobile phone sends audio data to the headset.
  • Users can operate on the mobile phone to start a business (such as playing music) on the mobile phone.
  • a business such as playing music
  • the mobile phone receives an input from the user, in response to the input, the service of playing music can be started, and the audio data corresponding to the music can be sent to the mobile phone, so that the user can listen to the music played on the mobile phone through the earphone.
  • the user may have performed operations before S301, such as touching the touch screen or button of the mobile phone to start the service of playing music.
  • S301 headset when the connection is established between the S301 headset and the mobile phone, there are two possible implementations: one is to play music through the headset by default; the other is to pop up a prompt, such as "whether to play audio through the headset or not. ?", the user operates on the mobile phone, the user clicks "Yes", and the mobile phone confirms that the audio data of the music is played through the headset based on the input.
  • S302 and the above S303 do not have an absolute sequence, for example, S303 may be executed first, and then S302 may be executed.
  • the headset plays according to the received audio data.
  • the user can listen to the music played on the mobile phone through the earphone.
  • the distance between the earphone and the mobile phone gradually increases, so the situation in which the earphone and the mobile phone port are connected in S305 may occur.
  • the mobile phone sends a second notification message to the smart TV, where the second notification message includes the mobile phone ID, the headset ID, and indication information used to instruct the mobile phone to disconnect from the headset.
  • the mobile phone after detecting that the mobile phone and the headset are disconnected from the point-to-point direct connection, the mobile phone pauses to play the audio data, and records a first pause mark. In another possible implementation manner, the mobile phone continues to play the audio data through a speaker of the mobile phone.
  • the headset broadcasts the first request message.
  • the first request message may include the ID of the headset.
  • the headset may move near the smart speaker, causing the smart speaker to perform S308.
  • the smart speaker receives the first request message from the headset.
  • the smart speaker in S308 can receive the signal from the earphone, it can reflect that the earphone is within the range of the location where the connection can be established with the smart speaker, and the smart speaker has the ability to establish a connection with the earphone.
  • the headset may periodically broadcast the first request message.
  • the first request message may include the ID of the earphone, and when the smart speaker receives the information, it determines that the earphone has moved within the range of a location area where a connection can be established with the smart speaker.
  • the smart speaker can discover the headset through a Bluetooth discovery process.
  • the headset periodically sends a Bluetooth identification packet of the headset (the Bluetooth identification packet of the headset may include the ID of the headset).
  • the smart speaker can periodically send the Bluetooth identification message of the smart speaker (the Bluetooth identification message of the smart speaker can include the ID of the smart speaker, and the ID of the smart speaker can be, for example, the MAC address of the smart speaker, device name, etc.).
  • the headset When the headset receives the Bluetooth identification message of the smart speaker, it sends a response message to the smart speaker (the response message can be an FHS message, and the response message can be the first request message above), and when the smart speaker receives the response message , it is determined that the headset is discovered by Bluetooth.
  • the response message can be an FHS message, and the response message can be the first request message above
  • connection between the earphone and the smart speaker is a point-to-point direct connection.
  • a point-to-point connection can be established between the headset and the smart speaker based on BT, Wi-Fi P2P, ZigBee and other technologies.
  • the headset may establish a point-to-point direct connection with the smart speaker; the first response message and the first response message associated with a request message.
  • the smart speaker may send a first notification message to the smart TV, where the first notification message may include the smart speaker identification (ID), the earphone ID, and the first notification information for establishing a point-to-point direct connection between the smart speaker and the earphone.
  • the first notification message may include the smart speaker identification (ID), the earphone ID, and the first notification information for establishing a point-to-point direct connection between the smart speaker and the earphone.
  • the ID of the smart speaker may include, for example, at least one of a media access control (medium access control, MAC) address, a device name, a combination of an IP address and a port number, and the like.
  • media access control medium access control, MAC
  • the first notification message may also include a protocol used to indicate that a point-to-point direct connection is established between the smart speaker and the headset. For example, if the smart speaker and the headset are connected via Bluetooth, the first A notification message may also include indication information for indicating that the point-to-point direct connection between the smart speaker and the headset is based on the Bluetooth protocol. The first notification message may also include indication information for indicating that the smart speaker and the headset have a Bluetooth pairing relationship.
  • the first notification message may also include the value of the received signal strength indicator (RSSI) of the signal (such as the FHS message) of the earphone received by the smart speaker.
  • RSSI received signal strength indicator
  • the value of the RSSI reflects the proximity between the smart speaker and the headset, or can be described as reflecting the distance between the smart speaker and the headset through the RSSI value. When the value of RSSI is small, it means that the distance between the smart speaker and the headset is farther, and when the value of RSSI is large, it means that the distance between the smart speaker and the headset is short.
  • the smart TV after receiving the first notification message, the smart TV can determine the ID of the device recently disconnected from the headset in the first notification message, thereby obtaining the ID of the mobile phone.
  • the smart TV may determine the IDs of one or more devices that have a pairing relationship with the ID of the headset in the first notification message (which will include the ID of the phone).
  • the smart TV can only send the first message to the device (mobile phone) that has recently been disconnected from the headset, or can send the first message to at least one of the determined one or more devices that have a pairing relationship with the headset ID in the first notification message.
  • a first message is sent so that one or more of these devices can share the headset through the smart speaker.
  • the smart TV sends the first message to a plurality of devices, the subsequent process performed by each device is similar to the subsequent process performed by the mobile phone, and reference may be made to the subsequent related content of S312 to S320.
  • the smart TV sends a first message to the mobile phone according to the determined ID of the mobile phone, and the first message may include the identification (ID) of the smart speaker, the ID of the headset, and the direct connection between the smart speaker and the headset to establish a point-to-point connection. Connection instructions.
  • the first message may also include a protocol used to indicate that a point-to-point direct connection is established between the smart speaker and the headset. For example, if the smart speaker and the headset are connected via Bluetooth, the first message The message may also include indication information for indicating that the point-to-point direct connection between the smart speaker and the headset is based on the Bluetooth protocol. The first message may also include indication information for indicating that there is a Bluetooth pairing relationship between the smart speaker and the headset.
  • the mobile phone receives the first message from the smart TV.
  • the mobile phone determines whether the ID of the headset in the first message is one of the IDs of one or more headsets that have a pairing relationship with the mobile phone.
  • S315 is performed; if the mobile phone and the smart speaker are connected to the local area network and the UDP protocol is used, then the S316 is performed.
  • the mobile phone stores an ID of a device that has a pairing relationship with the mobile phone. Your phone may be paired with one or more devices.
  • the pairing relationship between the two devices in the embodiments of the present application may mean that the two devices have an authentication relationship. It can be understood that the two devices have a successful mutual authentication relationship.
  • the pairing relationship can be It is a Bluetooth pairing relationship based on Bluetooth technology.
  • the mobile phone can determine whether an audio playback service (such as a music playback service) is currently suspended (for example, in the aforementioned S303, the music on the mobile phone is played through the headset, and when the headset is disconnected from the mobile phone) After, this music playing service is suspended); And need to judge whether the ID of the equipment used to play the audio data of this audio playing service before is the same as the ID of the headset in the first message, if judged, there is currently audio playing The service (such as the music playing service) is suspended, and the ID of the device used to play the audio data of the audio playing service is the same as the ID of the earphone in the first message, then execute S315 or S316. Otherwise, end the process.
  • an audio playback service such as a music playback service
  • the mobile phone can determine whether the audio playback service is currently being performed (for example, the music on the mobile phone is played through the earphone in the aforementioned S303, and when the earphone is disconnected from the mobile phone, the music playback service is not performed. be suspended, but play music through the loudspeaker of the mobile phone itself); and need to judge whether the ID of the device used to play the audio data of this audio playback service before is the same as the ID of the headset in the first message, if it is judged, There is an audio playing service currently being performed, and the ID of the device used to play the audio data of the audio playing service before is the same as the ID of the headset in the first message, then execute S315 or S316. Otherwise, end the process.
  • the audio playback service for example, the music on the mobile phone is played through the earphone in the aforementioned S303, and when the earphone is disconnected from the mobile phone, the music playback service is not performed. be suspended, but play music through the loudspeaker of the mobile phone itself
  • S314 there may be a step in S314 and the aforementioned S311.
  • S311 may be omitted.
  • the smart TV may broadcast or multicast the first message in the local area network, so that the mobile phone receives the first message.
  • S314 may also be replaced with the following implementation manner, in which the mobile phone receives a message from a smart speaker or a smart TV. Whether the message is the first message (that is, whether it meets the preset requirements of the first message) is determined in the following manner, and if it is the first message, the mobile phone sends audio data to the smart speaker. In one possible implementation manner, the mobile phone may determine that the message is the first message after acquiring the identifier of the headset from the message. In another possible implementation manner, the mobile phone may determine that the message is the first message after acquiring the identifier of the earphone and the identifier of the smart speaker from the message.
  • the mobile phone can obtain the identifier of the earphone, the identifier of the smart speaker, and the point-to-point direct connection between the earphone and the smart speaker from the message. After indicating the information, it is determined that the message is the first message.
  • the connection between the mobile phone and the smart speaker may be established based on any one of the following technologies: wireless local area networks (WLAN), wireless fidelity (Wi-Fi), global mobile communication System (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access) , WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), global satellite navigation system and global navigation satellite system (global navigation satellite system, GNSS), long term evolution (long term evolution, LTE) , the fourth generation mobile network (the 4th generation, 4G), the fifth generation mobile network (the 5th generation, 5G), and the future sixth generation mobile network (the 6th generation, 6G) and so on.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • GSM global system for mobile communications
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS)) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS)
  • SBAS satellite based augmentation systems
  • mobile phones and smart speakers can be connected to the same local area network by connecting to the same router.
  • the mobile phone may send a request message to the smart speaker.
  • the request message is used to request to share the headset.
  • the smart speaker may directly send an acceptance message to the mobile phone, where the acceptance message is used to indicate that the mobile phone and the smart speaker are allowed to share the headset.
  • the smart speaker may display prompt information on the interface of the smart speaker, for example, displaying on the interface of the smart speaker: "Do you want to share the headset with your mobile phone?". The user can operate on the interface of the smart speaker to input information. If the input information is used to indicate that the mobile phone and the smart speaker are allowed to share the headset, the smart speaker sends an acceptance message to the mobile phone, which is used for Instructs the smart speaker to allow sharing of the headset with the headset.
  • the mobile phone may send a notification message to the smart speaker, and the notification message may be used to notify the smart speaker to forward the data received from the mobile phone to the headset.
  • the notification message is used to notify the smart speaker to establish a correspondence between two connections (that is, the connection between the smart speaker and the headset, and the connection between the smart speaker and the mobile phone) (it can also be understood that In order to bind the two channels), after the subsequent smart speaker receives the data from the mobile phone, it will forward the data to the headset.
  • the mobile phone may also send a notification message to the smart TV to notify the smart TV that a connection is currently established between the mobile phone and the smart speaker.
  • the notification message may include the ID of the smart speaker connected to the phone.
  • the notification message may further include: at least one of indication information used to instruct the mobile phone to establish a connection with the smart speaker or an ID of the mobile phone.
  • the notification message may further include a manner for instructing to establish a connection between the mobile phone and the smart speaker, such as a connection established based on Wi-Fi.
  • the notification message may also include relevant information about the ongoing service of the mobile phone, such as a service identifier (such as playing music), service status (such as currently in progress), and the like.
  • the mobile phone sends audio data to the smart speaker.
  • the mobile phone pauses to play the audio data, and The first pause mark is recorded.
  • the mobile phone sends all or part of the audio data following the first pause mark to the smart speaker.
  • the mobile phone after the mobile phone is disconnected from the headset in S305, the mobile phone continues to play the audio data through the speaker of the mobile phone.
  • the mobile phone in response to the first message, the mobile phone no longer continues to play through the speaker, but sends all or part of the unplayed content of the audio data to the smart speaker.
  • the audio data sent by the mobile phone to the smart speaker may include a destination address.
  • the destination address is the address of the smart speaker.
  • the smart speaker receives the audio data, it forwards it to the headset.
  • the audio data sent by the mobile phone to the smart speaker may include two destination addresses, one of which is the address of the smart speaker, and the other destination address is the address of the headset.
  • the location of the address of the headset in the data needs to be negotiated between the mobile phone and the smart speaker, so that the smart speaker can resolve the address of the headset at the preset location.
  • the application layer of the mobile phone shows that the connection is established between the mobile phone and the headset, that is, for the application layer, the mobile phone knows that it has established a connection with the headset. In this case, audio can be output through headphones by default.
  • the application layer does not care.
  • the smart speaker forwards the audio data from the mobile phone to the headset.
  • the received audio data can be played through the earphone by default.
  • a correspondence between two connections that is, the connection between the smart speaker and the headset, and the connection between the smart speaker and the mobile phone
  • a correspondence between two connections can be established based on the notification message of the mobile phone, and further according to the correspondence relationship, and forward the audio data received from the mobile phone to the headset.
  • the headset plays according to the received audio data.
  • the earphone plays all or part of the unplayed content of the audio data.
  • FIG. 3a exemplarily shows an example of disconnection between the mobile phone and the smart speaker through S319 to S321.
  • connection between the smart speaker and the headset may be disconnected.
  • the headset may continue to broadcast the second request message to connect other devices with the headset.
  • the second request message includes the identification of the headset and a point-to-point direct connection request.
  • the smart speaker may also send a notification message to the smart TV to notify the smart TV that the smart speaker is currently disconnected from the headset.
  • the notification message may include the ID of the headset disconnected from the smart speaker.
  • the notification message may further include: at least one of indication information for indicating disconnection between the smart speaker and the headset and an ID of the smart speaker.
  • the notification message may further include a method for indicating the disconnection between the smart speaker and the headset; for example, the connection may be disconnected based on Bluetooth.
  • the smart speaker sends a second notification message to the mobile phone, where the second notification message includes instruction information for indicating disconnection between the smart speaker and the earphone.
  • the smart TV after receiving the instruction information reported by the smart speaker for indicating that the smart speaker is disconnected from the earphone, the smart TV notifies the mobile phone of the disconnection between the smart speaker and the earphone.
  • the mobile phone may also send a notification message to the smart TV to notify the smart TV that the mobile phone is currently disconnected from the smart speaker.
  • the notification message may include the ID of the smart speaker disconnected from the phone.
  • the notification message may further include: at least one of indication information for indicating disconnection between the mobile phone and the smart speaker and an ID of the mobile phone.
  • the notification message may further include a method for instructing the disconnection between the mobile phone and the smart speaker, for example, the disconnection may be based on Wi-Fi.
  • the notification message may also include relevant information about the ongoing service of the mobile phone, such as a service identifier (such as playing music), service status (such as currently in progress), and the like.
  • the mobile phone and the smart speaker are in the same local area network, and the mobile phone and the smart speaker are connected through a router.
  • the above S315 and S321 are not necessary, and S315 and S321 are shown as dotted lines in the figure.
  • TCP transmission control protocol
  • IP Internet protocol
  • S315 and S321 are shown as dotted lines in the figure.
  • TCP transmission control protocol
  • IP Internet protocol
  • S315 and S321 are shown as dotted lines in the figure.
  • TCP transmission control protocol
  • IP Internet protocol
  • connection between the mobile phone and the smart speaker needs to be disconnected through S321.
  • connection between for another example, when based on the user datagram protocol (UDP) protocol, there is no need to establish a connection through S315.
  • UDP user datagram protocol
  • the mobile phone can send audio data to the smart speaker through the router;
  • the mobile phone does not need to send audio data to the smart speaker, it does not need to be disconnected through the above S321.
  • a cell phone receives an input that instructs to stop playing audio data through the headset. Users can operate on the phone to disconnect the connection between the phone and the smart speaker. For example, in a possible implementation, the user inputs an operation on the mobile phone: selecting the audio output mode of the mobile phone to play audio data through the mobile phone, based on the input, the mobile phone can determine that the audio data does not need to be played through the headset, and the mobile phone and the smart The speakers are disconnected.
  • the mobile phone when the connection between the mobile phone and the smart speaker is disconnected, the mobile phone may pause to play the audio data, and record a second pause mark. Alternatively, the mobile phone may continue to play the audio data through the speaker.
  • a connection when a connection is established between the smart speaker and the headset, it can also be reported to the smart TV.
  • the smart speaker and the mobile phone can also report to the smart TV.
  • the connection between the smart speaker and the headset is disconnected, it can also be reported to the smart TV.
  • the smart speaker is disconnected from the mobile phone, it can also report to the smart TV.
  • the mobile phone that has recently been disconnected from the headset can be found, and the ID of the headset can be sent to the mobile phone. and the ID of the smart speaker, so that the mobile phone can establish an indirect connection between the smart speaker and the headset, and can continue to play audio data through the headset.
  • Fig. 3b exemplarily shows the flow of another possible communication method on the basis of Fig. 3a.
  • S301 to S308 can refer to the content shown in Fig. 3a.
  • S309 is executed to realize the point-to-point direct connection between the smart speaker and the headset, while in Fig. 3b Then S309 is not executed after S308, but S3101 is executed.
  • the smart speaker sends a first notification message to the smart TV, where the first notification message may include a smart speaker identification (ID), an earphone ID, and indication information for indicating that the smart speaker has found the earphone.
  • ID smart speaker identification
  • earphone ID an earphone ID
  • indication information for indicating that the smart speaker has found the earphone.
  • S3101 the difference between S3101 and S310 is that the first notification message in S3101 carries the instruction information used to indicate that the smart speaker has discovered the headset.
  • the first notification message may further include indication information for indicating that there is a Bluetooth pairing relationship between the smart speaker and the headset.
  • the first notification message may further include indication information for indicating that the smart speaker Bluetooth has discovered the headset.
  • the first notification message may also include the value of the received signal strength indicator (RSSI) of the signal (such as the FHS message) of the earphone received by the smart speaker.
  • RSSI received signal strength indicator
  • the value of the RSSI reflects the proximity between the smart speaker and the headset, or can be described as reflecting the distance between the smart speaker and the headset through the RSSI value. When the value of RSSI is small, it means that the distance between the smart speaker and the headset is farther, and when the value of RSSI is large, it means that the distance between the smart speaker and the headset is short.
  • the smart TV determines the ID of the mobile phone recently disconnected from the headset in the first notification message.
  • the smart TV sends a first message to the mobile phone according to the determined ID of the mobile phone.
  • the first message may include a smart speaker identification (ID), an earphone ID, and indication information for indicating that the smart speaker has found the earphone.
  • ID smart speaker identification
  • earphone ID an earphone ID
  • indication information for indicating that the smart speaker has found the earphone.
  • S3121 the difference between S3121 and S312 is that the first message in S3121 carries the indication information used to indicate that the smart speaker has discovered the headset.
  • the mobile phone receives the first message from the smart TV.
  • the mobile phone determines whether the ID of the headset in the first message is one of the IDs of one or more headsets that have a pairing relationship with the mobile phone.
  • the smart speaker executes S309 after S315 or S316 to establish a point-to-point direct connection with the headset.
  • S309 after S315 is taken as an example for illustration.
  • the smart speaker after discovering the earphone, the smart speaker does not establish a connection with the earphone first, and establishes a connection with the earphone after establishing a connection with the mobile phone through S315, that is, the smart speaker determines that it exists
  • the connection with the headset is established only when there is a demand for establishing a headset (that is, the mobile phone needs to send audio data to the headset through the smart speaker), and a connection with the headset can not be established when there is no need to establish a headset.
  • the number of times a connection is established between the speaker and the headset reducing power consumption.
  • each step in FIG. 3b is the same as that of each step in FIG. 3a, and details are not repeated here.
  • Figures 4a and 4b exemplarily show flow charts of two other communication methods, respectively, and Figures 4a and 4b are no longer set as the central device (electronic device 400).
  • the method includes:
  • P2P peer-to-peer
  • FIG. 3a The difference from FIG. 3a is that since the central node is not set, after S401, the mobile phone is not required to report the information, that is, S302 in the above-mentioned FIG. 3a does not need to be performed.
  • the mobile phone sends audio data to the headset.
  • the headset plays the audio data according to the received audio data.
  • the headset broadcasts a first request message, where the first request message includes the headset ID.
  • the smart speaker receives the first request message from the headset.
  • the difference from Figure 3a is that since the central node is not set, after S407, the smart speaker does not need to report information, that is, it is not necessary to perform S410, S411, and S412 in the above Figure 3a.
  • the smart TV determines the ID of the mobile phone, Send a first message to the mobile phone, where the first message includes the ID of the headset connected to the smart speaker and the ID of the smart speaker.
  • the smart speaker may send a first message by broadcasting or multicasting, where the first message includes the ID of the earphone connected to the smart speaker.
  • the first message may include the ID of the earphone, the ID of the smart speaker, and indication information for instructing the connection between the smart speaker and the earphone.
  • the smart speaker can broadcast or multicast the first message in the local area network.
  • the first message may include a smart speaker identification (ID), an earphone ID, and instruction information for instructing the smart speaker to establish a point-to-point direct connection with the earphone.
  • ID smart speaker identification
  • earphone ID an earphone ID
  • instruction information for instructing the smart speaker to establish a point-to-point direct connection with the earphone.
  • the first message may also include a protocol used to indicate that a point-to-point direct connection is established between the smart speaker and the headset. For example, if the smart speaker and the headset are connected via Bluetooth, the first message The message may also include indication information for indicating that the point-to-point direct connection between the smart speaker and the headset is based on the Bluetooth protocol. The first message may also include indication information for indicating that there is a Bluetooth pairing relationship between the smart speaker and the headset.
  • the first message may also include a received signal strength indicator (received signal strength indicator, RSSI) value of the earphone signal (such as an FHS message) received by the smart speaker.
  • RSSI received signal strength indicator
  • the value of RSSI reflects the proximity between the smart speaker and the headset, or it can be described as reflecting the distance between the smart speaker and the headset through the value of RSSI. When the value of RSSI is small, it means that the distance between the smart speaker and the headset is farther, and when the value of RSSI is large, it means that the distance between the smart speaker and the headset is short.
  • the mobile phone when the mobile phone and the smart speaker are in the same local area network, the mobile phone can receive the first message.
  • the smart speaker can find out the identifiers of the devices that have an authentication relationship with the headset, and send the first message to one or more devices (including mobile phones) that have an authentication relationship with the headset.
  • the smart speaker may be preconfigured with an identifier of an electronic device that has an authentication relationship with the headset, or the smart speaker may query the identifier of an electronic device that has an authentication relationship with the headset from a central device (such as the electronic device 400 ).
  • the mobile phone receives the first message from the smart TV.
  • the mobile phone determines whether the ID of the headset in the first message is one of the IDs of one or more headsets that have a pairing relationship with the mobile phone.
  • the mobile phone sends audio data to the smart speaker.
  • the smart speaker forwards the audio data from the mobile phone to the earphone.
  • the headset plays the audio data according to the received audio data.
  • connection between the smart speaker and the headset may be disconnected.
  • the smart speaker sends a second notification message to the mobile phone, where the second notification message includes instruction information for indicating disconnection between the smart speaker and the earphone.
  • a cell phone receives an input that instructs to stop playing audio data through the headset. Users can operate on the phone to disconnect the connection between the phone and the smart speaker. For example, in a possible implementation, the user inputs an operation on the mobile phone: selecting the audio output mode of the mobile phone to play audio data through the mobile phone, based on the input, the mobile phone can determine that the audio data does not need to be played through the headset, and then the mobile phone and the Disconnect between smart speakers.
  • the mobile phone and the smart speaker are in the same local area network, and the mobile phone and the smart speaker are connected through a router.
  • the above S411 and S417 are not necessary, and S411 and S417 are shown as dotted lines in the figure. For the reason, reference may be made to the relevant contents of the aforementioned S315 and S321, which will not be repeated here.
  • the ID is the ID of a headset that has a pairing relationship with the mobile phone, and the mobile phone establishes an indirect connection between the smart speaker and the headset, and can continue to play audio data through the headset.
  • Fig. 4b exemplarily shows the flow of another possible communication method on the basis of Fig. 4a.
  • S401 to S406 can refer to the content shown in Fig. 4a.
  • S407 is executed to realize the point-to-point direct connection between the smart speaker and the headset.
  • the S407 is not executed after S406, but S4081 is executed.
  • the smart speaker broadcasts or multicasts a first message, where the first message includes the ID of the earphone, the ID of the smart speaker, and indication information for indicating that the smart speaker has discovered the earphone.
  • S4081 the difference between S4081 and S408 is that the first message in S4081 carries the instruction information for indicating that the smart speaker has discovered the headset.
  • the first message may carry indication information used to instruct the smart speaker to receive the first request message of the headset, the ID of the headset, the ID of the smart speaker, and the like. to notify other devices that the headset is in a location area where a connection to the smart speaker can be established.
  • the mobile phone receives the first message from the smart speaker.
  • the first message may include a smart speaker identification (ID), an earphone ID, and indication information for indicating that the smart speaker has discovered the earphone.
  • ID smart speaker identification
  • earphone ID an earphone ID
  • indication information for indicating that the smart speaker has discovered the earphone.
  • the first message may further include indication information for indicating that there is a Bluetooth pairing relationship between the smart speaker and the headset.
  • the first message may also include a received signal strength indicator (received signal strength indicator, RSSI) value of the earphone signal (such as an FHS message) received by the smart speaker.
  • RSSI received signal strength indicator
  • the value of RSSI reflects the proximity between the smart speaker and the headset, or it can be described as reflecting the distance between the smart speaker and the headset through the value of RSSI. When the value of RSSI is small, it means that the distance between the smart speaker and the headset is farther, and when the value of RSSI is large, it means that the distance between the smart speaker and the headset is short.
  • the mobile phone determines whether the ID of the headset in the first message is one of the IDs of one or more headsets that have a pairing relationship with the mobile phone.
  • the smart speaker executes S407 to establish a point-to-point direct connection with the headset.
  • the smart speaker after discovering the earphone, the smart speaker does not establish a connection with the earphone first, and establishes a connection with the earphone after establishing a connection with the mobile phone through S415, that is, the smart speaker determines that it exists
  • the connection with the headset can be established only when there is a demand for establishing a headset (that is, the mobile phone needs to send audio data to the headset through the smart speaker), and a connection with the headset can not be established when there is no demand for establishing a headset, thereby reducing smart The number of times a connection is established between the speaker and the headset, reducing power consumption.
  • FIG. 5 exemplarily shows the establishment of a point-to-point connection between the mobile phone and the headset in the communication method provided by the embodiment of the present application.
  • the method flow of the direct connection As shown in Figure 5, the method includes:
  • the earphone sends a Bluetooth identification packet of the earphone.
  • the mobile phone receives the Bluetooth identification packet of the headset, and sends the Bluetooth identification packet of the mobile phone as a response.
  • the mobile phone sends a Bluetooth frequency hop synchronization (frequency hop synchronization, FHS) message.
  • FHS frequency hop synchronization
  • the mobile phone and the headset can perform clock synchronization and baseband connection based on each other's Bluetooth identification message and FHS message, so as to change the Bluetooth communication state from the connectable state to the connected state.
  • a Bluetooth device (a device with a Bluetooth module, such as a mobile phone and a headset) establishes a connection, it quickly exchanges handshakes by selecting a frequency hopping frequency in a fixed frequency band or determined by the address of the device being queried. Information time and address, quickly obtain the time and frequency synchronization of the device. After the connection is established, both devices change the frequency according to the channel hopping sequence, so that the frequency hopping frequency presents random characteristics.
  • the connection between two Bluetooth devices may be initiated by a query message sent by a certain query device (which may be, for example, a headset) to search for other devices in the vicinity. Any other Bluetooth device (such as a mobile phone) that listens by performing an inquiry scan will recognize this inquiry message and respond.
  • the response to the query message may be a frequency hopping synchronization (FHS) packet, which contains all the information required by the query device to address the response device. This information includes the sender's (ie, responding device's) clock value, the sender's correct device access code, and a Class of Device (CoD) field.
  • FHS packets contain more information than mentioned here.
  • the access code contains the lower address part (LAP) and upper address part (UAP) of the sender's Bluetooth device address (BD_ADDR), wherein the Bluetooth device address is an electronically engraved on each Bluetooth device The unique 48-bit IEEE address.
  • a Bluetooth link manager protocol (link manager protocol, LMP) process interaction is performed between the mobile phone and the headset.
  • LMP Bluetooth link manager protocol
  • the link manager in each Bluetooth device can negotiate the available capabilities with the Bluetooth air interface through the link manager protocol. These capabilities may include bandwidth allocated to support the required class of service for data services, and periodic reserved bandwidth to support audio services.
  • the LMP is responsible for the establishment of connections between Bluetooth devices. When a Bluetooth device transmits data, LMP will negotiate and control the size of the data packet. The LMP also manages power consumption and controls the state of the Bluetooth device. LMP also has the function of generating keys required for authentication and encryption.
  • the mobile phone queries the services that the headset can support based on the Bluetooth service discovery protocol (Service Discovery Protocol, SDP).
  • SDP Service Discovery Protocol
  • Services play a vital role in the Bluetooth technology framework and are the basis for all user modes.
  • any two or more devices may suddenly start communicating on the Bluetooth link. If these devices are to be used to provide services to each other, a more flexible method of finding the location of these services is required. If a communication channel is established, the next step in a device's communication should be to find out the services that the device can use.
  • SDP can define a standard method so that certain Bluetooth devices can discover and learn the services provided by other devices.
  • the Bluetooth Service Discovery Protocol is specifically designed to be used in the context of Bluetooth wireless communication to achieve its functionality in an efficient and optimal manner.
  • the mobile phone sends service data through a Bluetooth connection according to the services supported by the headset.
  • the headset may support listening to music services, such as advanced audio distribution profile (A2DP) services. Users can listen to the music played on the phone through the headset.
  • A2DP advanced audio distribution profile
  • the headset connects to the Bluetooth service according to the services supported by the headset, for example, the A2DP service can be connected, or the Bluetooth connection is performed based on the Bluetooth A2DP service, so as to provide the user with a music service.
  • the process of establishing a Bluetooth connection between the smart speaker and the earphone can be referred to as shown in FIG.
  • FIG. 6 exemplarily shows the process of disconnecting the Bluetooth connection between the mobile phone and the headset in the communication method provided by the embodiment of the present application. As shown in Figure 6, the method includes:
  • the mobile phone after a Bluetooth connection is established between the mobile phone and the headset, the mobile phone periodically sends a Bluetooth PULL message through the Bluetooth connection.
  • the headset For each PULL message received, the headset responds with a NULL message through the Bluetooth connection.
  • the mobile phone periodically sends a Bluetooth PULL message, and the headset sends a Bluetooth NULL message as a response after receiving the Bluetooth PULL message. If the Bluetooth connection between the mobile phone and the headset fails, the Bluetooth PULL message sent by the mobile phone will be lost, the headset cannot receive the Bluetooth PULL message, and the headset will not respond to the Bluetooth NULL message.
  • the mobile phone can judge whether the Bluetooth connection is disconnected through S3052.
  • the headset can judge whether the Bluetooth connection is disconnected through S3054.
  • the mobile phone determines whether "the NULL message has not been received within the first preset time period". If satisfied, execute S3053. If not, it means that the Bluetooth connection is not disconnected.
  • the mobile phone determines that the Bluetooth connection is disconnected.
  • the earphone determines whether "the PULL message has not been received within the second preset time period". If satisfied, execute S3055. If not, it means that the Bluetooth connection is not disconnected.
  • the second preset duration may be equal to or unequal to the first preset duration.
  • the headset determines that the Bluetooth connection is disconnected.
  • the process of disconnecting the Bluetooth connection between the smart speaker and the headset can be referred to as shown in FIG. 6, and will not be repeated.
  • FIG. 7 exemplarily shows a process of establishing a connection between a mobile phone and a smart speaker in the communication method provided by the embodiment of the present application. As shown in Figure 7, the process includes:
  • the mobile phone sends a connection establishment request to the smart speaker.
  • the smart speaker sends a connection establishment acceptance to the mobile phone.
  • the mobile phone sends the connection establishment to the smart speaker.
  • the mobile phone may establish a socket connection according to the IP address, port number, etc. of the smart speaker.
  • the smart speaker can listen for connection establishment requests from other devices through the socket server.
  • the above-mentioned S3151 to S3153 can be implemented by the three-way handshake of the transfer control protocol (transfer control protocol, TCP).
  • TCP transfer control protocol
  • FIG. 8 exemplarily shows a process of disconnection between a mobile phone and a smart speaker in the communication method provided by the embodiment of the present application. As shown in Figure 8, the method includes:
  • the mobile phone sends a first connection disconnection request to the smart speaker.
  • the smart speaker sends a first connection disconnection response to the mobile phone.
  • the smart speaker sends a second connection disconnection request to the mobile phone.
  • the mobile phone sends a second connection disconnection response to the smart speaker.
  • the mobile phone after the mobile phone is determined to be disconnected from the smart speaker, it can be disconnected from the smart speaker through the TCP four-time wave process.
  • the above S3211 is the first packet of the TCP four-time wave sent by the mobile phone (
  • FIG. 9 exemplarily shows the architecture of an end-to-end communication model across physical networks.
  • the audio data of the mobile phone can be sent to the router after passing through the application layer, network layer, link layer and physical layer in sequence.
  • the router After the router receives the audio data, it is transmitted from the physical layer to the link layer, and forwarded at the link layer according to the IP address and port of the smart speaker. Specifically, the router transmits the audio data to the IP address and port of the smart speaker. The physical layer is then sent to the smart speaker.
  • the smart speaker After the smart speaker receives the audio data, there are two implementation methods.
  • the smart speaker transmits the audio data from the physical layer to the link layer, and forwards the audio data at the link layer according to the IP address and port of the headset. Specifically, The smart speaker transmits audio data to the physical layer based on the IP address and port of the headset, and then sends it to the headset.
  • the smart speaker transmits audio data from the physical layer to the link layer, from the link layer to the network layer, and then parses it at the network layer and then transmits it to the link layer, and then transmits it from the link layer to the physical layer. and then sent to the headset. That is to say, after the smart speaker receives the audio data, it can complete the data transmission at the link layer or at the network layer.
  • the dotted lines in the figure illustrate some of the steps in the two methods.
  • the headset After the headset receives the audio data, it goes through the physical layer, the link layer, and the network layer in turn to reach the application layer, and then plays the audio data.
  • the data transmission between the mobile phone and the smart speaker in the embodiment of the present application may be transmitted within the WiFi subnet.
  • the transmission between the smart speaker and the headset can be transmitted within the BT subnet.
  • the communication methods provided in the embodiments of the present application are applicable to the following mobile devices and electronic devices.
  • FIG. 10 shows a mobile device 1000 provided by the present application.
  • mobile device 1000 includes at least one processor 1010 , memory 1020 and communication interface 1030 .
  • the processor 1010 is coupled to the memory 1020 and the communication interface 1030, and the coupling in this embodiment of the present application may be a communication connection, an electrical connection, or other forms.
  • the memory 1020 is used to store program instructions.
  • the processor 1010 is configured to invoke the program instructions stored in the memory 1020, so that the mobile device 1000 executes the steps performed by the mobile device in the communication method provided in the embodiment of the present application. It should be understood that the mobile device 1000 can be used to implement the communication method provided by the embodiment of the present application, and the relevant features can be referred to above, and details are not repeated here.
  • the present application provides a computer program product containing instructions, when the computer program product runs on a mobile device, the mobile device causes the mobile device to perform the steps performed by the mobile device in the communication method provided by the embodiments of the present application.
  • the present application provides a computer-readable storage medium, including instructions that, when the instructions are executed on a mobile device, cause the mobile device to perform the steps performed by the mobile device in the communication method provided by the embodiments of the present application.
  • the embodiments of the present application may be implemented in hardware, or in a manner of hardware and software.
  • the above-described functions can be stored in a computer-readable medium.
  • the medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
  • FIG. 11 shows an electronic device 1100 provided by the present application.
  • electronic device 1100 includes at least one processor 1110 , memory 1120 and communication interface 1130 .
  • the processor 1110 is coupled with the memory 1120 and the communication interface 1130, and the coupling in this embodiment of the present application may be a communication connection, an electrical connection, or other forms.
  • the memory 1120 is used to store program instructions.
  • the processor 1110 is configured to invoke the program instructions stored in the memory 1120, so that the electronic device 1100 executes the steps performed by the electronic device in the communication method provided in the embodiment of the present application. It should be understood that the electronic device 1100 can be used to implement the communication method provided by the embodiments of the present application, and the relevant features can be referred to above, and details are not repeated here.
  • the present application provides a computer program product containing instructions, when the computer program product runs on an electronic device, the electronic device is made to execute the communication method provided by the embodiment of the present application by the electronic device 200, the electronic device 300 or the electronic device. Steps performed by device 400 .
  • the present application provides a computer-readable storage medium, including instructions, which, when the instructions are executed on an electronic device, cause the electronic device to execute the electronic device 200 , the electronic device 300 or the electronic device in the communication method provided by the embodiments of the present application. Steps performed by device 400 .
  • the embodiments of the present application may be implemented in hardware, or in a manner of hardware and software.
  • the above-described functions can be stored in a computer-readable medium.
  • the medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

La présente demande concerne un procédé de communication, un dispositif mobile, un dispositif électronique et un support de stockage lisible par ordinateur. Selon la présente demande, un premier dispositif électronique établit une connexion directe point à point avec un dispositif mobile et le premier dispositif électronique lit des données audio grâce au dispositif mobile. Après détection de la déconnexion de la connexion directe point à point entre le premier dispositif électronique et le dispositif mobile, le premier dispositif électronique reçoit un premier message servant à indiquer l'établissement, par le dispositif mobile, d'une connexion directe point à point avec un deuxième dispositif électronique. En réponse au premier message, le premier dispositif électronique envoie au deuxième dispositif électronique tout ou une partie du contenu non lu parmi les données audio. Selon la présente demande, après déconnexion d'une connexion entre deux dispositifs électroniques basée sur la technologie de connexion directe point à point, une connexion indirecte s'établit au moyen d'un troisième dispositif électronique, ce qui permet d'obtenir une continuité de service.
PCT/CN2021/137058 2021-01-29 2021-12-10 Procédé de communication, dispositif mobile, dispositif électronique et support de stockage lisible par ordinateur WO2022160967A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110124316.1A CN114827687B (zh) 2021-01-29 2021-01-29 通信方法、移动设备、电子设备和计算机可读存储介质
CN202110124316.1 2021-01-29

Publications (1)

Publication Number Publication Date
WO2022160967A1 true WO2022160967A1 (fr) 2022-08-04

Family

ID=82526547

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137058 WO2022160967A1 (fr) 2021-01-29 2021-12-10 Procédé de communication, dispositif mobile, dispositif électronique et support de stockage lisible par ordinateur

Country Status (2)

Country Link
CN (1) CN114827687B (fr)
WO (1) WO2022160967A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117062256B (zh) * 2023-10-08 2023-12-26 荣耀终端有限公司 跨设备业务转移的方法、电子设备和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767550A (zh) * 2014-01-06 2015-07-08 光宝科技股份有限公司 移动音讯串流播放方法及系统
CN106488316A (zh) * 2016-10-20 2017-03-08 北京小米移动软件有限公司 媒体播放方法及装置、电子设备
CN108541080A (zh) * 2018-04-23 2018-09-14 Oppo广东移动通信有限公司 第一电子设备与第二电子设备进行回连的方法及相关产品
US20190089925A1 (en) * 2017-09-20 2019-03-21 Lg Electronics Inc. Display device
CN112205004A (zh) * 2018-03-29 2021-01-08 搜诺思公司 与媒体回放系统的耳机交互

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769431A (zh) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 音频播放控制方法、装置、存储介质及移动终端
CN111345010B (zh) * 2018-08-17 2021-12-28 华为技术有限公司 一种多媒体内容同步方法、电子设备及存储介质
CN113225693B (zh) * 2019-04-18 2022-04-15 华为技术有限公司 一种蓝牙连接方法、设备及系统
CN110856152A (zh) * 2019-10-28 2020-02-28 宇龙计算机通信科技(深圳)有限公司 播放音频数据的方法、装置、电子设备及介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767550A (zh) * 2014-01-06 2015-07-08 光宝科技股份有限公司 移动音讯串流播放方法及系统
CN106488316A (zh) * 2016-10-20 2017-03-08 北京小米移动软件有限公司 媒体播放方法及装置、电子设备
US20190089925A1 (en) * 2017-09-20 2019-03-21 Lg Electronics Inc. Display device
CN112205004A (zh) * 2018-03-29 2021-01-08 搜诺思公司 与媒体回放系统的耳机交互
CN108541080A (zh) * 2018-04-23 2018-09-14 Oppo广东移动通信有限公司 第一电子设备与第二电子设备进行回连的方法及相关产品

Also Published As

Publication number Publication date
CN114827687A (zh) 2022-07-29
CN114827687B (zh) 2024-04-09

Similar Documents

Publication Publication Date Title
US11653398B2 (en) Bluetooth connection method and device
WO2021036835A1 (fr) Procédé et système de recherche bluetooth, et appareil associé
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
EP3979571A1 (fr) Procédé de commande de dispositif et de terminal
CN112868244B (zh) 一种点对多点的数据传输方法及设备
WO2021082829A1 (fr) Procédé de connexion bluetooth et appareil associé
WO2020133183A1 (fr) Dispositif et procédé de synchronisation de données audio
US20220039041A1 (en) Point-to-Multipoint Data Transmission Method and Electronic Device
WO2021175214A1 (fr) Procédé de commande de connexion d'écran de projection et dispositif électronique
WO2021043219A1 (fr) Procédé de reconnexion bluetooth et appareil associé
WO2022068513A1 (fr) Procédé de communication sans fil et dispositif terminal
WO2021043198A1 (fr) Procédé d'appariement bluetooth, et dispositif associé
CN114499587B (zh) 音频同步的通信方法、系统、无线耳机、终端及存储介质
WO2022143071A1 (fr) Procédé d'établissement de connexion et dispositif électronique
KR102335903B1 (ko) 전자 장치들 간에 통신 방법 및 장치
WO2021027623A1 (fr) Procédé de découverte de capacité de dispositif et dispositif p2p
CN113038627B (zh) 一种文件分享方法、移动设备、计算机存储介质
WO2022213689A1 (fr) Procédé et dispositif pour une communication vocale entre des dispositifs audio
WO2022160967A1 (fr) Procédé de communication, dispositif mobile, dispositif électronique et support de stockage lisible par ordinateur
CN117062256B (zh) 跨设备业务转移的方法、电子设备和系统
CN115175159B (zh) 一种蓝牙耳机播放方法及设备
WO2023029938A1 (fr) Procédé et appareil de découplage et de partage d'écouteurs tws, et dispositif et support de stockage
WO2023207138A1 (fr) Système de notification d'appel entrant et dispositif électronique
WO2023051204A1 (fr) Procédé d'interconnexion de dispositifs, dispositif électronique et support de stockage
WO2022057521A1 (fr) Procédé et dispositifs de configuration de dispositif

Legal Events

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

Ref document number: 21922557

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21922557

Country of ref document: EP

Kind code of ref document: A1