CN114827687B - Communication method, mobile device, electronic device, and computer-readable storage medium - Google Patents

Communication method, mobile device, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN114827687B
CN114827687B CN202110124316.1A CN202110124316A CN114827687B CN 114827687 B CN114827687 B CN 114827687B CN 202110124316 A CN202110124316 A CN 202110124316A CN 114827687 B CN114827687 B CN 114827687B
Authority
CN
China
Prior art keywords
electronic device
message
point
mobile device
audio data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110124316.1A
Other languages
Chinese (zh)
Other versions
CN114827687A (en
Inventor
赵朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110124316.1A priority Critical patent/CN114827687B/en
Priority to PCT/CN2021/137058 priority patent/WO2022160967A1/en
Publication of CN114827687A publication Critical patent/CN114827687A/en
Application granted granted Critical
Publication of CN114827687B publication Critical patent/CN114827687B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

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

Abstract

The application relates to a communication method, a mobile device, an electronic device and a computer readable storage medium. In the application, the first electronic device establishes point-to-point direct connection with the mobile device, and the first electronic device plays the audio data through the mobile device. After detecting that the first electronic device and the mobile device are disconnected from the point-to-point direct connection, the first electronic device receives a first message, wherein the first message is used for indicating that the mobile device and the second electronic device establish the point-to-point direct connection. The first electronic device sends all or part of the unplayed content of the audio data to the second electronic device in response to the first message. After the connection between the two electronic devices based on the point-to-point direct connection technology is disconnected, the indirect connection is established through the third electronic device, so that the service connection is realized.

Description

Communication method, mobile device, electronic device, and computer-readable storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a communication method, a mobile device, an electronic device, and a computer-readable storage medium.
Background
With the continuous development of mobile internet applications, the point-to-point direct connection technology is greatly popularized, such as Bluetooth (BT), wireless high-fidelity (wireless fidelity, wi-Fi) peer-to-peer (P2P), and the like, which brings great convenience to users. For example, the wireless Bluetooth headset can be connected with other communication equipment based on the Bluetooth technology, so that the trouble of connecting wires is eliminated, and the wireless Bluetooth headset is widely appreciated.
However, in practical applications, the point-to-point direct connection technology is limited by distance and shielding in a specific environment, so that the problem of connection interruption can occur. For example, a direct connection between a bluetooth headset and a smart phone from a point to point is established through bluetooth, when a user wears the headset to a position far away from the smart phone, or a wall barrier or the like exists between the smart phone and the bluetooth headset (for example, the smart phone is placed in a second floor, and the user wears the bluetooth headset to first floor), the bluetooth connection between the wireless bluetooth headset and the smart phone is disconnected, so that a service (for example, audio data transmission) is interrupted. Therefore, when two electronic devices based on the point-to-point direct connection technology are disconnected, how to implement service connection becomes a problem to be solved.
Disclosure of Invention
In order to solve the technical problems described above, the present application provides a communication method, a mobile device, an electronic device, and a computer-readable storage medium. According to the technical scheme, after the two electronic devices based on the point-to-point direct connection technology are disconnected, indirect connection can be established through the third electronic device, and when the two electronic devices are transmitting the service, connection of the service can be achieved through the newly established connection.
In a first aspect, 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. In the method, the first electronic equipment establishes point-to-point direct connection with the mobile equipment, and the first electronic equipment plays audio data through the mobile equipment. After detecting that the first electronic equipment is disconnected from the mobile equipment from the point to the point, the first electronic equipment pauses playing the audio data, and records a first pause mark; or after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device. After detecting that the first electronic device is disconnected from the mobile device in a point-to-point direct mode, the first electronic device receives a first message, wherein the first message is used for indicating that the mobile device and the second electronic device are connected in a point-to-point direct mode. The first electronic device responds to the first message, and the first electronic device sends all or part of audio data subsequent to a first pause mark to the second electronic device; alternatively, the first electronic device responds to the first message, and the first electronic device does not continue playing through the loudspeaker any more, but sends all or part of the unplayed content of the audio data to the second electronic device. Because the second electronic device and the mobile device can be determined to establish connection based on the first message, and the mobile device is a device with a pairing relationship with the first electronic device, the first electronic device can send audio data to the second electronic device, so that the second electronic device can send the audio data to the mobile device, and after the first electronic device and the mobile device are disconnected, the first electronic device can establish indirect connection with the mobile device through the second electronic device.
In a further possible implementation manner of the first aspect, before the first electronic device sends all or part of the audio data subsequent to the first pause flag to the second electronic device, the first electronic device establishes a network connection with the second electronic device. In this manner, the first electronic device may transmit audio data over the connection established with the second electronic device.
In a further possible implementation manner of the first aspect, the first electronic device establishes a network connection with the second electronic device before the first electronic device no longer continues playing through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device. In this manner, the first electronic device may transmit audio data over the connection established with the second electronic device.
In a further possible implementation manner of the first aspect, the first electronic device establishes a network connection with the second electronic device; comprising the following steps: and the first electronic equipment and the second electronic equipment establish local area network connection. Therefore, the first electronic equipment and the second electronic equipment are located in the same local area network, and the second electronic equipment can send the information to the first electronic equipment in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
In a further possible implementation manner of the first aspect, the receiving the first message includes: a message is received from the second electronic device or the third electronic device. And in response to the message, after acquiring the identification of the mobile device from the message, determining the message as the first message. In a further possible implementation manner of the first aspect, the determining, after obtaining the identifier of the mobile device from the message, the message is the first message; comprising the following steps: and after the identification of the mobile device and the identification of the second electronic device are obtained from the message, determining the message as the first message. In a further possible implementation manner of the first aspect, after the identifier of the mobile device, the identifier of the second electronic device, and the indication information that the mobile device establishes a point-to-point direct connection with the second electronic device are obtained from the message, the message is determined to be the first message. In this way, the manner of determining the first message may be increased, and thus the flexibility of the scheme may be improved.
In a further possible implementation manner of the first aspect, after detecting that the first electronic device is disconnected from the second electronic device, the first electronic device pauses playing the audio data and records a second pause mark. Thus, after the connection between the mobile device and the first electronic device is established again, the service connection can be realized.
In a further possible implementation manner of the first aspect, after detecting that the first electronic device is disconnected from the second electronic device. The first electronic device continues to play the audio data through the loudspeaker. In this way, the flexibility of the scheme can be increased.
In a further possible implementation manner of the first aspect, 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 a 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. Therefore, the third electronic equipment can be used as central equipment to timely know the connection condition between the equipment.
In a further possible implementation manner of the first aspect, after the first electronic device disconnects from the mobile device from the point-to-point direct connection, the first electronic device sends a second notification message to a third electronic device; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device. Therefore, the third electronic equipment can be used as central equipment to timely know the connection condition between the equipment.
In a further possible implementation manner of the first aspect, the first electronic device and the second electronic device access the same local area network. Therefore, the first electronic equipment and the second electronic equipment are located in the same local area network, and the second electronic equipment can send the information to the first electronic equipment in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
In a further possible implementation manner according to the first aspect, 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.
In a further possible implementation manner of the first aspect, the first electronic device is a smart phone.
In a second aspect, a communication method is provided. The communication method is applied to the mobile device. The mobile device includes a processor and a memory. In the method, after detecting that the mobile device is disconnected from the first electronic device point-to-point directly, the mobile device broadcasts a first request message; the first request message includes an identification of the mobile device and a point-to-point direct connection request. After receiving a first response message from a 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 is from the second electronic device. Because the mobile device broadcasts the first request message after being disconnected from the first electronic device, the second electronic device can be connected with the first request message, and a foundation is laid for establishing indirect connection between the second electronic device and the first electronic device.
In a further possible implementation manner according to the second aspect, after detecting that the mobile device is disconnected from the second electronic device by a point-to-point direct connection, the mobile device broadcasts a second request message; the second request message includes an identification of the mobile device and a point-to-point direct connection request. Therefore, a foundation can be laid for establishing connection with other equipment after the second electronic equipment is disconnected.
In a further possible implementation manner of the second aspect, the mobile device is a bluetooth headset.
In a third aspect, 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. And the second electronic equipment, the first electronic equipment and the third electronic equipment are connected into the same local area network. In the method, a first request message from a mobile device is received by a second electronic device; the first request message includes an identification 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, wherein the first notification message comprises an identifier of the second electronic device, an identifier of the mobile device and first notification information that the second electronic device establishes point-to-point direct connection with the mobile device. All or part of the unplayed content of the audio data from the first electronic device is received. The second electronic device sends all or part of the unplayed content of the audio data to the mobile device. The second electronic device informs other devices after the connection with the mobile device is established, so that a foundation is laid for the first electronic device to establish indirect connection with the mobile device through the second electronic device.
In accordance with a third aspect, in yet another possible implementation manner, after detecting that the second electronic device is disconnected from the mobile device from the point-to-point direct connection, the second electronic device sends a second notification message to the third electronic device or the first electronic device; the second notification message includes an identification of the second electronic device, an identification of the mobile device, and second notification information of a point-to-point direct connection of the second electronic device with the mobile device. In this way, the connection state between the other devices and the mobile device can be informed, so that the first electronic device can not send audio data to the first electronic device.
In accordance with a third aspect, in yet another possible implementation manner, the second electronic device establishes a local area network connection with the first electronic device before receiving all or part of the unplayed content of the audio data from the first electronic device. Therefore, the first electronic equipment and the second electronic equipment are located in the same local area network, and the second electronic equipment can send the information to the first electronic equipment in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
In a further possible implementation manner according to the third aspect, after receiving a second reply message from the third electronic device or the first electronic device, the second electronic device disconnects the local area network from the first electronic device; the second reply message is associated with the second notification message. As such, the connection may be disconnected from the first electronic device based on the second reply message.
In a further possible implementation manner of the third aspect, the second electronic device is a smart speaker.
In a fourth aspect, 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. And the third electronic equipment, the first electronic equipment and the second electronic equipment are connected into the same local area network. In the method, the third electronic equipment receives a first notification message from the first electronic equipment; 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 receives a second notification message from the first electronic device; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device. The third electronic device receives a first notification message from the second electronic device, wherein the first notification message comprises an identification of the second electronic device, an identification of the mobile device and first notification information that the second electronic device establishes a point-to-point direct connection with the mobile 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. Because the first message is sent to the device with the pairing relation with the identifier of the mobile device through the third electronic device, the device with the pairing relation with the identifier of the mobile device can be indirectly connected with the mobile device through the second electronic device.
In a further possible implementation manner according to the fourth aspect, receiving a second notification message from the second electronic device; the second notification message includes an identification of the second electronic device, an identification of the mobile device, and second notification information of a point-to-point direct connection of the second electronic device with the mobile device. Thus, the third electronic device can know the connection condition between the second electronic device and the mobile device.
In a further possible implementation manner of the fourth aspect, the third electronic device sends the second notification message to the second electronic device. Receiving a second reply message from the first electronic device; the second reply message is associated with the second notification message. And sending the second reply message to the second electronic equipment. In this way, the first electronic device can know the connection condition between the second electronic device and the mobile device, so that the transmission of the audio data can be stopped under the condition that the second electronic device is disconnected from the mobile device.
In a further possible implementation manner of the fourth aspect, the second electronic device is a smart television.
In a fifth aspect, 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. In the method, after detecting that the first electronic equipment is disconnected from the mobile equipment from a point to a point, the first electronic equipment pauses playing the audio data and records a first pause mark; or after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device. And after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device receives a first message, wherein the first message is used for indicating that the second electronic device discovers the mobile device. The first electronic device responds to the first message, and the first electronic device sends all or part of audio data subsequent to a first pause mark to the second electronic device; alternatively, the first electronic device responds to the first message, and the first electronic device does not continue playing through the loudspeaker any more, but sends all or part of the unplayed content of the audio data to the second electronic device. Because the second electronic device can be determined to have the capability of establishing connection with the mobile device based on the first message, and the mobile device is a device with a pairing relationship with the mobile device, the first electronic device can send audio data to the second electronic device so that the second electronic device can send the audio data to the mobile device, and therefore, after the first electronic device is disconnected from the mobile device, the first electronic device can establish indirect connection with the mobile device through the second electronic device.
In a further possible implementation manner of the fifth aspect, before the first electronic device sends all or part of the audio data subsequent to the first pause flag to the second electronic device, the first electronic device establishes a network connection with the second electronic device. In this manner, the first electronic device may transmit audio data over the connection established with the second electronic device.
In a further possible implementation manner according to the fifth aspect, the first electronic device establishes a network connection with the second electronic device before the first electronic device no longer continues playing through the speaker, but sends all or part of the unplayed content of the audio data to the second electronic device. In this manner, the first electronic device may transmit audio data over the connection established with the second electronic device.
In a further possible implementation manner according to the fifth aspect, the first electronic device establishes a network connection with the second electronic device; comprising the following steps: and the first electronic equipment and the second electronic equipment establish local area network connection. Therefore, the first electronic equipment and the second electronic equipment are located in the same local area network, and the second electronic equipment can send the information to the first electronic equipment in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
In a further possible implementation manner according to the fifth aspect, the receiving the first message includes: a message is received from the second electronic device or the third electronic device. And in response to the message, after acquiring the identification of the mobile device from the message, determining the message as the first message. In a further possible implementation manner of the fifth aspect, after the identifier of the mobile device is obtained from the message, the message is determined to be the first message; comprising the following steps: and after the identification of the mobile device and the identification of the second electronic device are obtained from the message, determining the message as the first message. In a further possible implementation manner of the fifth aspect, after the identifier of the mobile device is obtained from the message, the identifier of the second electronic device, and the indication information of the mobile device is found by the second electronic device, the message is determined to be the first message. In this way, the manner of determining the first message may be increased, and thus the flexibility of the scheme may be improved.
In a further possible implementation manner of the fifth aspect, after detecting that the first electronic device is disconnected from the second electronic device, the first electronic device pauses playing the audio data and records a second pause mark. Thus, after the connection between the mobile device and the first electronic device is established again, the service connection can be realized.
In a further possible implementation manner according to the fifth aspect, after detecting that the first electronic device is disconnected from the second electronic device. The first electronic device continues to play the audio data through the loudspeaker. In this way, the flexibility of the scheme can be increased.
In a further possible implementation manner according to the fifth aspect, 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 a 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. Therefore, the third electronic equipment can be used as central equipment to timely know the connection condition between the equipment.
In a further possible implementation manner according to the fifth aspect, after the first electronic device disconnects from the mobile device from the point-to-point direct connection, the first electronic device sends a second notification message to a third electronic device; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device. Therefore, the third electronic equipment can be used as central equipment to timely know the connection condition between the equipment.
In a further possible implementation manner of the fifth aspect, the first electronic device and the second electronic device access the same local area network. Therefore, the first electronic equipment and the second electronic equipment are located in the same local area network, and the second electronic equipment can send the information to the first electronic equipment in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
In a further possible implementation manner according to the fifth aspect, 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.
In a further possible implementation manner of the fifth aspect, the first electronic device is a smart phone.
In a sixth aspect, 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. And the second electronic equipment, the first electronic equipment and the third electronic equipment are connected into the same local area network. In the method, a first request message from a mobile device is received; the first request message includes an identification 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, wherein the first notification message comprises an identifier of the second electronic device, an identifier of the mobile device and information for indicating that the second electronic device discovers the mobile 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 from the first electronic device is received. The second electronic device sends all or part of the unplayed content of the audio data to the mobile device. The second electronic device informs other devices after the mobile device is found, so that a foundation is laid for the first electronic device to establish indirect connection with the mobile device through the second electronic device.
In a further possible implementation manner according to the sixth aspect, after detecting that the second electronic device is disconnected from the mobile device by a point-to-point direct connection, the second electronic device sends a second notification message to the third electronic device or the first electronic device; the second notification message includes an identification of the second electronic device, an identification of the mobile device, and second notification information of a point-to-point direct connection of the second electronic device with the mobile device. In this way, the connection state between the other devices and the mobile device can be informed, so that the first electronic device can not send audio data to the first electronic device.
In a further possible implementation manner according to the sixth aspect, the second electronic device establishes a local area network connection with the first electronic device before receiving all or part of the unplayed content of the audio data from the first electronic device. Therefore, the first electronic equipment and the second electronic equipment are located in the same local area network, and the second electronic equipment can send the information to the first electronic equipment in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
In a further possible implementation manner according to the sixth aspect, after receiving a second reply message from the third electronic device or the first electronic device, the second electronic device disconnects the local area network from the first electronic device; the second reply message is associated with the second notification message. As such, the connection may be disconnected from the first electronic device based on the second reply message.
In a further possible implementation manner of the sixth aspect, the second electronic device is a smart speaker.
In a seventh aspect, 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. And the third electronic equipment, the first electronic equipment and the second electronic equipment are connected into the same local area network. In the method, the third electronic equipment receives a first notification message from the first electronic equipment; 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 receives a second notification message from the first electronic device; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device. The third electronic device receives a first notification message from the second electronic device, wherein the first notification message comprises an identifier of the second electronic device, an identifier of the mobile device, and indication information of the second electronic device and the indication information for indicating that the second electronic device discovers 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 discovers indication information of the mobile device. Because the first message is sent to the device with the pairing relation with the identifier of the mobile device through the third electronic device, the device with the pairing relation with the identifier of the mobile device can be indirectly connected with the mobile device through the second electronic device.
In a further possible implementation manner according to the seventh aspect, receiving a second notification message from the second electronic device; the second notification message includes an identification of the second electronic device, an identification of the mobile device, and second notification information of a point-to-point direct connection of the second electronic device with the mobile device. Thus, the third electronic device can know the connection condition between the second electronic device and the mobile device.
In a further possible implementation manner of the seventh aspect, the third electronic device sends the second notification message to the second electronic device. Receiving a second reply message from the first electronic device; the second reply message is associated with the second notification message. And sending the second reply message to the second electronic equipment. In this way, the first electronic device can know the connection condition between the second electronic device and the mobile device, so that the transmission of the audio data can be stopped under the condition that the second electronic device is disconnected from the mobile device.
In a further possible implementation manner of the seventh aspect, the second electronic device is a smart tv.
In an eighth aspect, 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. In the method, a first electronic device establishes a point-to-point direct connection with a 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 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 receives the first notification message from the first electronic device.
After detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device sends a second notification message to the third electronic device; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device. The third electronic device receives a second notification message from the first electronic device.
After detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device pauses playing the audio data, and records a first pause mark. Or after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device.
The mobile device broadcasts a first request message after detecting that the mobile device is disconnected from the first electronic device from point to point; the first request message includes an identification of the mobile device and a point-to-point direct connection request. The second electronic device receives a first request message from a 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 a first response message from a 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, wherein the first notification message comprises an identifier of the second electronic device, an identifier of the mobile device and first notification information that the second electronic device establishes point-to-point direct connection with the mobile device. The third electronic device receives a 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 a first message. The first electronic device responds to the first message, and the first electronic device sends all or part of audio data subsequent to a first pause mark to the second electronic device. Alternatively, the first electronic device may not continue playing through the speaker in response to the first message, but instead send 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 sends all or part of the unplayed content of the audio data to 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 is from the second electronic device.
Technical effects corresponding to the eighth aspect and related descriptions can be referred to any one of the first aspect, the second aspect, the third aspect and the fourth aspect or any one of the implementation manners of any one of the first aspect, the second aspect, the third aspect and the fourth aspect, and the technical effects corresponding to any one of the implementation manners of any one of the first aspect, the second aspect, the third aspect and the fourth aspect are not repeated here.
In a ninth aspect, 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. In the method, a first electronic device establishes a point-to-point direct connection with a 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 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 receives the first notification message from the first electronic device.
After detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device sends a second notification message to the third electronic device; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device. The third electronic device receives a second notification message from the first electronic device.
After detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device pauses playing the audio data, and records a first pause mark. Or after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device.
The mobile device broadcasts a first request message after detecting that the mobile device is disconnected from the first electronic device from point to point; the first request message includes an identification of the mobile device and a point-to-point direct connection request. The second electronic device receives a first request message from a mobile device.
The second electronic device sends a first notification message to the third electronic device, wherein the first notification message comprises an identifier of the second electronic device, an identifier of the mobile device and information for indicating that the second electronic device discovers the mobile device. The third electronic device receives a 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 a first message.
And establishing connection between the first electronic equipment and the second electronic equipment.
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 a first response message from a second electronic device. The second electronic device establishes a point-to-point direct connection with the mobile device.
The first electronic device receives a first message. The first electronic device responds to the first message, and the first electronic device sends all or part of audio data subsequent to a first pause mark to the second electronic device. Alternatively, the first electronic device may not continue playing through the speaker in response to the first message, but instead send 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 sends all or part of the unplayed content of the audio data to 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 is from the second electronic device.
Technical effects corresponding to the ninth aspect and related descriptions can be found in any one of the second aspect, the fifth aspect, the sixth aspect and the seventh aspect or any one of the implementation manners of any one of the second aspect, the fifth aspect, the sixth aspect and the seventh aspect, and the technical effects corresponding to any one of the implementation manners of any one of the second aspect, the fifth aspect, the sixth aspect and the seventh aspect are not repeated here.
In a tenth aspect, a communication method is provided. The communication method is applied to the first electronic device, the second electronic device and the mobile device. And the second electronic equipment and the first electronic equipment are connected into the same local area network. In the method, a first electronic device establishes a point-to-point direct connection with a mobile device. The first electronic device plays audio data through the mobile device.
After detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device pauses playing the audio data, and records a first pause mark. Or after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device.
The mobile device broadcasts a first request message after detecting that the mobile device is disconnected from the first electronic device from point to point; the first request message includes an identification of the mobile device and a point-to-point direct connection request. The second electronic device receives a first request message from a 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 a first response message from a 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 indicate that the mobile device establishes a point-to-point direct connection with a second electronic device.
The first electronic device responds to the first message, and the first electronic device sends all or part of audio data subsequent to a first pause mark to the second electronic device. Alternatively, the first electronic device responds to the first message, and 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 sends all or part of the unplayed content of the audio data to 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 is from the second electronic device.
Technical effects corresponding to the tenth aspect and related descriptions may be referred to any one of the first aspect, the second aspect, the third aspect and the fourth aspect or any one of the implementation manners of any one of the first aspect, the second aspect, the third aspect and the fourth aspect, and are not repeated here.
In an eleventh aspect, a communication method is provided. The communication method is applied to the first electronic device, the second electronic device and the mobile device. And the second electronic equipment and the first electronic equipment are connected into the same local area network. In the method, a first electronic device establishes a point-to-point direct connection with a mobile device. The first electronic device plays audio data through the mobile device.
After detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device pauses playing the audio data, and records a first pause mark. Or after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device.
The mobile device broadcasts a first request message after detecting that the mobile device is disconnected from the first electronic device from point to point; the first request message includes an identification of the mobile device and a point-to-point direct connection request. The second electronic device receives a first request message from a 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 a first message. And establishing connection between the first electronic equipment and the second electronic equipment. 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 a first response message from a second electronic device. The second electronic device establishes a point-to-point direct connection with the mobile device.
The first electronic device responds to the first message, and the first electronic device sends all or part of audio data subsequent to a first pause mark to the second electronic device. Alternatively, the first electronic device responds to the first message, and 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 sends all or part of the unplayed content of the audio data to 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 is from the second electronic device.
Technical effects corresponding to the eleventh aspect and related descriptions may be referred to any one of the second aspect, the fifth aspect, the sixth aspect and the seventh aspect or any one of the implementation manners of any one of the second aspect, the fifth aspect, the sixth aspect and the seventh aspect, and the technical effects corresponding to any one of the implementation manners of any one of the second aspect, the fifth aspect, the sixth aspect and the seventh aspect are not repeated here.
The present application also provides a communication device corresponding to any one of the first to seventh aspects. The communication device may be any of a transmitting-side device and a receiving-side device that wirelessly transmits data. During communication, the device at the transmitting end and the device at the receiving end are opposite. In some communication processes, the communication device may be used as the mobile device or a communication chip for the mobile device; in some communication processes, the communication device may be used as the first electronic device or a communication chip that may be used for the first electronic device; in some communication processes, the communication device may be used as the second electronic device or a communication chip that may be used for the second electronic device; in some communication processes, the communication apparatus may be used as the third electronic device or a communication chip that may be used for the third electronic device.
In a twelfth aspect, a communication device is provided, comprising a communication unit and a processing unit, for performing any implementation of the communication method of any of the first to eleventh aspects. The communication unit is configured to perform functions related to transmission and reception. Optionally, the communication unit includes a receiving unit and a transmitting unit. In one design, the communication device is a communication chip, and the communication unit may be an input/output circuit or a port of the communication chip.
In another design, the communication unit may be a transmitter and a receiver, or the communication unit may be a transmitter and a receiver.
Optionally, the communication device further comprises respective modules operable to perform any implementation manner of any one of the communication methods of the first aspect to the seventh aspect.
A thirteenth aspect provides a communication apparatus, which is the above mobile device, first electronic device, second electronic device, or third electronic device. The communication device includes a processor and a memory. Optionally, the communication device further comprises a transceiver for storing a computer program or instructions, the processor being adapted to invoke and run the computer program or instructions from the memory, which when executed by the processor, causes the communication device to perform any implementation of any of the communication methods of the first to seventh aspects described above.
In the alternative, the processor is one or more, and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
Alternatively, a transmitter (transmitter) and a receiver (receiver) may be included in the transceiver.
In a fourteenth aspect, a communication apparatus is provided, which is the above mobile device, the first electronic device, the second electronic device, or the third electronic device. The communication device includes a processor. The processor is coupled to the memory and 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. Optionally, the communication device further comprises a communication interface, and the processor is coupled to the communication interface.
In one implementation, the communication apparatus is a mobile device. When the communication apparatus is a mobile device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transceiver circuit. Alternatively, the input/output interface may be an input/output circuit.
In another implementation, the communication device is a first electronic device. When the communication apparatus is a first electronic device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transceiver circuit. Alternatively, the input/output interface may be an input/output circuit.
In another implementation, the communication device is a second electronic device. When the communication means is a second electronic device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transceiver circuit. Alternatively, the input/output interface may be an input/output circuit.
In another implementation, the communication device is a third electronic device. When the communication means is a third electronic device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transceiver circuit. Alternatively, the input/output interface may be an input/output circuit.
In yet another implementation, the communication device is a chip or a system-on-chip. When the communication device is a chip or a chip system, the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin, or related circuits on the chip or the chip system. The processor may also be embodied as processing circuitry or logic circuitry.
In a fifteenth aspect, a system is provided, the system comprising the mobile device, a first electronic device, a second electronic device, and a third electronic device.
The first electronic device comprises a processor, a memory, and a computer program stored on the memory, which when executed by the processor, causes the first electronic device to perform the steps of: the first electronic device establishes 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 mobile device from point to point, the first electronic device pauses playing the audio data and records a first pause mark; or after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device. After detecting that the first electronic device is disconnected from the mobile device in a point-to-point direct mode, the first electronic device receives a first message, wherein the first message is used for indicating that the mobile device and the second electronic device are connected in a point-to-point direct mode. The first electronic device responds to the first message, and the first electronic device sends all or part of audio data subsequent to a first pause mark to the second electronic device; alternatively, the first electronic device responds to the first message, and the first electronic device does not continue playing through the loudspeaker any more, but sends all or part of the unplayed content of the audio data to the second electronic device.
The mobile device comprises a processor, a memory, and a computer program stored on the memory, which when executed by the processor, causes the mobile device to perform the steps of: after detecting that the mobile device is disconnected from the first electronic device point-to-point directly, the mobile device broadcasts a first request message; the first request message includes an identification of the mobile device and a point-to-point direct connection request. After receiving a first response message from a 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 is from the second electronic device.
The second electronic device comprises a processor, a memory, and a computer program stored on the memory, which when executed by the processor, causes the second electronic device to perform the steps of: the second electronic device receives a first request message from the mobile device; the first request message includes an identification 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, wherein the first notification message comprises an identifier of the second electronic device, an identifier of the mobile device and first notification information that the second electronic device establishes point-to-point direct connection with the mobile device. All or part of the unplayed content of the audio data from the first electronic device is received. The second electronic device sends all or part of the unplayed content of the audio data to the mobile device.
The third electronic device comprises a processor, a memory, and a computer program stored on the memory, which when executed by the processor, causes the third electronic device to perform the steps of: the third electronic device receives a first notification message from the first 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 receives a second notification message from the first electronic device; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device. The third electronic device receives a first notification message from the second electronic device, wherein the first notification message comprises an identification of the second electronic device, an identification of the mobile device and first notification information that the second electronic device establishes a point-to-point direct connection with the mobile 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.
In a sixteenth aspect, a system is provided, the system comprising the mobile device, a first electronic device, a second electronic device, and a third electronic device.
The first electronic device comprises a processor, a memory, and a computer program stored on the memory, which when executed by the processor, causes the first electronic device to perform the steps of: the first electronic device establishes 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 equipment is disconnected from the mobile equipment from the point to the point, the first electronic equipment pauses playing the audio data, and records a first pause mark; or after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device. And after detecting that the first electronic device is disconnected from the mobile device from the point to the point, the first electronic device receives a first message, wherein the first message is used for indicating that the second electronic device discovers the mobile device. The first electronic device responds to the first message, and the first electronic device sends all or part of audio data subsequent to a first pause mark to the second electronic device; alternatively, the first electronic device responds to the first message, and the first electronic device does not continue playing through the loudspeaker any more, but sends all or part of the unplayed content of the audio data to the second electronic device.
The mobile device comprises a processor, a memory, and a computer program stored on the memory, which when executed by the processor, causes the mobile device to perform the steps of: after detecting that the mobile device is disconnected from the first electronic device point-to-point directly, the mobile device broadcasts a first request message; the first request message includes an identification of the mobile device and a point-to-point direct connection request. After receiving a first response message from a 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 is from the second electronic device.
The second electronic device comprises a processor, a memory, and a computer program stored on the memory, which when executed by the processor, causes the second electronic device to perform the steps of: receiving a first request message from a mobile device; the first request message includes an identification 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, wherein the first notification message comprises an identifier of the second electronic device, an identifier of the mobile device and information for indicating that the second electronic device discovers the mobile 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 from the first electronic device is received. The second electronic device sends all or part of the unplayed content of the audio data to the mobile device.
The third electronic device comprises a processor, a memory, and a computer program stored on the memory, which when executed by the processor, causes the third electronic device to perform the steps of: the third electronic device receives a first notification message from the first 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 receives a second notification message from the first electronic device; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device. The third electronic device receives a first notification message from the second electronic device, wherein the first notification message comprises an identifier of the second electronic device, an identifier of the mobile device, and indication information of the second electronic device and the indication information for indicating that the second electronic device discovers 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 discovers indication information of the mobile device.
In a seventeenth aspect, there is provided a computer readable storage medium storing a computer program (which may also be referred to as code, or instructions) which, when run on a computer, causes the computer to perform the method of any one of the first to third aspects described above, or causes the computer to perform the method of any one of the implementations of the first to seventh aspects described above.
The seventeenth aspect and the technical effects corresponding to any implementation manner of the seventeenth aspect may refer to the first aspect to the seventh aspect and the technical effects corresponding to any implementation manner of the first aspect to the seventh aspect, which are not described herein again.
In an eighteenth aspect, there is provided a computer program product comprising: a computer program (which may also be referred to as code, or instructions), which when executed, causes a computer to perform the method of any one of the above-described first to seventh aspects, or to perform the method of any one of the implementation manners of the above-described first to seventh aspects.
The technical effects corresponding to any implementation manner of the eighteenth aspect may be referred to in the first aspect to the seventh aspect, and the technical effects corresponding to any implementation manner of the first aspect to the seventh aspect, which are not described herein.
Drawings
Fig. 1a is a schematic diagram of an application scenario applicable to the embodiment of the present application;
fig. 1b is a schematic diagram of an application scenario applicable to the embodiment of the present application;
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;
fig. 3a is a schematic flow chart of a communication method according to an embodiment of the present application;
fig. 3b is a schematic flow chart of another communication method according to an embodiment of the present application;
fig. 4a is a schematic flow chart of another communication method according to an embodiment of the present application;
fig. 4b is a flow chart of another communication method according to an embodiment of the present application;
fig. 5 is a flow chart of a method for establishing a point-to-point direct connection between a mobile phone and an earphone in the communication method provided in the embodiment of the present application;
fig. 6 is a schematic flow chart of disconnecting bluetooth between a mobile phone and an earphone in the communication method provided in the embodiment of the present application;
fig. 7 is a schematic flow chart of establishing connection between a mobile phone and an intelligent sound box in the communication method provided by the embodiment of the application;
fig. 8 is a schematic flow chart of disconnection between a mobile phone and an intelligent sound box in the communication method provided by the embodiment of the application;
Fig. 9 is a schematic architecture diagram of a cross-physical network end-to-end communication model according to 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.
Detailed Description
The technical solutions in the embodiments of the present application are described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terminology used in the embodiments below is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in the various embodiments herein below, "at least one", "one or more" means one or more than two (including two). The term "and/or" is used to describe an association relationship of associated objects, meaning that there may be three relationships; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise. The term "coupled" includes both direct and indirect connections, unless stated otherwise. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Fig. 1a and fig. 1b are schematic diagrams of an application scenario applicable to the embodiments of the present application.
As shown in fig. 1a, both the mobile device 100 and the electronic device 200 are located in a bedroom 01, and in fig. 1a, the mobile device 100 (in the drawing, the mobile device 100 is shown as a bluetooth headset for example) is connected with the electronic device 200 (in the drawing, the electronic device 200 is shown as a mobile phone for example), and audio data of the electronic device 200 are played, so that a user can hear a sound from the electronic device 200 through the mobile device 100; for example, it may be music or voice call content, etc.
The mobile device 100 may move with the user, as shown in fig. 1b, and the mobile device 100 moves to the living room 02, the bluetooth connection between the mobile device 100 and the electronic device 200 may be disconnected due to wall blocking or increased distance, etc. On the other hand, the mobile device 100 moves to a position closer to the electronic device 300, and bluetooth of the mobile device 100 is connected to the electronic device 300 (the electronic device 300 is shown as an example of a smart speaker). The electronic device 300 and the electronic device 200 may be connected through a local area network.
As can be seen from fig. 1a and 1b above, as the mobile device 100 moves with the user, the bluetooth connection may be broken with the electronic device 200, thereby making it impossible for the user to continue listening to sound from the electronic device 200 through the mobile device 100.
In order to solve the above technical problems, two schemes, scheme a and scheme B, are provided in the embodiment of the present application. Which are described below, respectively.
(1) Scheme A
As shown in fig. 1a, the scheme a further relates to an electronic device 400 (the electronic device 400 is shown as an example of smart electricity). The electronic device 400 may be understood as a central device, where the electronic device 200 and the electronic device 300 report respective information (such as identification, connection status with other devices, and related status of running service) to the electronic device 400.
In the scenario shown in fig. 1a, the electronic device 200 may report, to the electronic device 400, an identifier of the mobile device 100 connected to the electronic device 200, and after receiving the information, the electronic device 400 may determine that the electronic device 200 is in a connected state with the mobile device 100. In the scenario shown in fig. 1b, when the electronic device 200 is disconnected from the mobile device 100, the electronic device 200 reports the identifier of the mobile device 100 disconnected from the electronic device 200 to the electronic device 400, and the electronic device 400 may determine that the electronic device 200 is disconnected from the mobile device 100 after receiving the information.
On the other hand, in the scenario shown in fig. 1b, after the electronic device 300 establishes a connection with the mobile device 200, the identifier of the mobile device 100 connected with the electronic device 300 is reported to the electronic device 400, and after receiving the information, the electronic device 400 can determine that the electronic device 300 is in a connected state with the mobile device 100. Further, the electronic device 400 may send the identification of the mobile device 100 and the identification of the electronic device 300 in bluetooth connection with the mobile device 100 to the electronic device 200. Further, the electronic device 200 transmits 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 and the electronic device 200 are disconnected from each other, the mobile device 100 can be continuously enabled to play the audio data from the electronic device 200 through the scheme, and the user can continuously listen to the sound from the electronic device 200 through the mobile device 100.
(2) Scheme B
Scheme B does not involve the electronic device 400, i.e. does not involve a central device. In this case, after the mobile device 100 establishes a bluetooth connection with the electronic device 300, the electronic device 300 may notify the electronic device 200 by broadcasting or multicasting. In turn, the electronic device 200 sends the audio data to the electronic device 300, which electronic device 300 forwards to the mobile device 100. In this way, it is possible to continue to cause the mobile device 100 to play audio data from the electronic device 200 through the scheme after the mobile device 100 is disconnected from the electronic device 200, thereby causing the user to continue to listen to sound from the electronic device 200 through the mobile device 100.
Based on the above examples of the scheme a and the scheme B provided in the embodiments of the present application:
the service performed by the electronic device 200 is music playing, and a user can listen to music from the electronic device 200 through the mobile device 100 when the mobile device 100 is connected with the electronic device 200 through bluetooth. After the disconnection between the mobile device 100 and the electronic device 200, the mobile device 100 stops the current music playing service. When the bluetooth connection between the mobile device 100 and the electronic device 300 is established, the electronic device 200 may continue to perform the music playing service after the connection between the electronic device 300 and the electronic device 200 is established, and send the audio data of the music to the electronic device 300, and the electronic device 300 forwards the audio data to the mobile device 100, so that the user continues to listen to the music from the electronic device 200 through the mobile device 100.
As can be seen from this example, in the case where the mobile device 100 and the electronic device 200 are disconnected by bluetooth, the solution provided in the embodiment of the present application may implement indirect connection between the mobile device 100 and the electronic device 200 through the electronic device 300, so that service connection may be implemented.
Fig. 2a schematically illustrates a hardware structure of a mobile device 100 according to an embodiment of the present application. As shown in fig. 2a, the mobile device 100 may include a processor 110, an internal memory 121, keys 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 141, a battery 142, a wireless communication module 150, an antenna 160, and the like.
The processor 110 may include one or more processing units, such as: 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), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a Neural network processor (Neural-network Processing Unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
Wherein the controller may be a neural hub and command center of the mobile device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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 receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the mobile device 100 and data processing by executing instructions stored in the internal memory 121.
The mobile device 100 may implement audio functionality through an audio module 125, a speaker 125A, a microphone 125B, an application processor, and the like. Such as music playing, recording, etc.
The keys 122 include a power on key, a volume key, etc. The keys may be mechanical keys. Or may be a touch key. The mobile device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the mobile device 100.
The indicator 124 may be an indicator light, which may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The mobile device 100 also includes a charge management module 140 for receiving charge input from the charger. The charging management module 140 may also provide power to the mobile device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the external memory, the wireless communication module 150, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed 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 the mobile device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the cellular network antennas may be multiplexed into wireless local area network diversity antennas. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The wireless communication module 150 may provide solutions for wireless communication including Bluetooth (BT), near field communication technology (near field communication, NFC), infrared (IR), wi-Fi, zigBee, etc. applied on the mobile device 100. The wireless communication module 150 may be one or more devices that integrate at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via the antenna 160, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 150 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 160. In this embodiment of the present application, the wireless communication module 150 is configured to send the voice of the first user and the machine voice of the target language after translation, or send the voice of the target language by the opposite user and the machine voice of the first language after translation.
In some embodiments, the antenna 160 and the wireless communication module 150 are coupled such that the mobile device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication technology may include BT, NFC, zigBee, wi-Fi, and/or IR technologies, among others.
It will be appreciated that the structure illustrated in fig. 2a does not constitute a particular limitation of the mobile device 100. In other embodiments of the present application, mobile device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Fig. 2b schematically illustrates a hardware structure of an electronic device 200 according to an embodiment of the present application. As shown in fig. 2B, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a usb interface 230, a charge management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, keys 290, a motor 291, an indicator 292, a camera 293, a display 294, a SIM card interface 295, and the like. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, and the like.
Processor 210 may include one or more processing units such as, 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), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a Neural network processor (Neural-network Processing Unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 200, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 210 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interfaces 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 receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
A charge management module 240 is also included for receiving charge input from the charger. The charging management module 240 may also power the electronic device 200 through the power management module 241 while charging the battery 242.
The power management module 241 is used for connecting the battery 242, and the charge management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charge management module 240 and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, the wireless communication module 260, and the like. The power management module 241 may also be configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance), and other parameters. In other embodiments, the power management module 241 may also be disposed in the processor 210. In other embodiments, the power management module 241 and the charge management module 240 may be disposed in the same device.
The wireless communication function of the electronic device 200 can 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.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the cellular network antennas may be multiplexed into wireless local area network diversity antennas. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution for wireless communication 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 (low noise amplifier, LNA), etc. The mobile communication module 250 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 250 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be provided in the same device as at least some of the modules of the processor 210.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.), or displays images or video through display screen 294. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 250 or other functional module, independent of the processor 210.
The wireless communication module 260 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), wi-Fi P2P, zigBee, etc., applied on the electronic device 200. The wireless communication module 260 may be one or more devices that integrate at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2. In this embodiment of the present application, the wireless communication module 260 is configured to send the voice of the first user and the machine voice of the target language after translation, or send the voice of the target language by the opposite user and the machine voice of the first language after translation.
In some embodiments, antenna 1 and mobile communication module 250 of electronic device 200 are coupled, and antenna 2 and wireless communication module 260 are coupled, such that electronic device 200 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (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), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS)) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 200 implements display functions 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 change display information.
The display 294 is used to display images, videos, and the like. The display 294 includes a display panel. The display panel may employ an LCD (liquid crystal display ), an OLED (organic light-emitting diode), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 200 may include 1 or N displays, N being a positive integer greater than 1. In the embodiment of the present application, 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 may implement a photographing function through an ISP, a camera 293, a video codec, a GPU, a display 294, an application processor, and the like.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 200. The external memory card communicates with the processor 210 through an external memory interface 220 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
Internal memory 221 may be used to store computer executable program code that includes instructions. The processor 210 executes various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 221. The memory 221 may include a stored program area and a stored data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 200 (e.g., audio data, phonebook, etc.), and so on. Further, the memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (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 ear-headphone interface 270D, an application processor, and the like. Such as music playing, recording, etc.
The electronic device 200 also includes sensors such as a pressure sensor 280A, a gyroscope sensor 280B, a barometric 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, a touch sensor 280K, a bone conduction sensor 280M, and the like.
The pressure sensor 280A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 280A may be disposed on display 294. The pressure sensor 280A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device 200 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display panel 294, the electronic apparatus 200 detects the touch operation intensity from the pressure sensor 280A. The electronic device 200 may also calculate the location of the touch based on the detection signal of the pressure sensor 280A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The touch sensor 280K, also referred to as a "touch panel". May be provided on the display 294. For detecting a touch operation acting on or near it. The detected touch operation may be communicated to an application processor to determine the touch event type and provide a corresponding visual output through the display 294. In other embodiments, the touch sensor 280K may also be disposed on the surface of the electronic device 200 at a different location than the display 294. In this embodiment of the present application, the touch panel is configured to receive a first operation, a confirmation operation of a language setting control, a closing operation, an exiting operation, and other touch operations.
Keys 290 include a power on key, a volume key, etc. The keys may be mechanical keys. Or may be a touch key. The electronic device 200 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 200.
The motor 291 may generate a vibration alert. The indicator 292 may be an indicator light, which may be used to indicate a state of charge, a change in power, a message indicating a missed call, a notification, etc. The SIM card interface 295 is used to connect to a subscriber identity module (subscriber identity module, SIM).
Although not shown in fig. 2b, the electronic device 200 may further include a positioning device, a flash, a micro-projection device, etc., which are not described herein.
The structural form of any one of the electronic device 300 and the electronic device 400 may refer to the structural form of the foregoing electronic device 200, and will not be described again. The hardware structure of electronic device 300 may include more or fewer components than electronic device 200 shown in fig. 2b, or may combine certain components, or split certain components, or a different arrangement of components.
In the embodiment of the present application, the mobile device 100 includes, but is not limited to, a bluetooth headset, a wearable electronic device (such as a smart watch, a smart bracelet, a smart ring, a smart glasses) with a wireless communication function, and the like. The electronic device 200 may include, but is not limited to, a smart phone, a smart television (smart large screen), a tablet computer, and the like. Any of the electronic device 300 or electronic device 400 may include, but is not limited to: smart phones, smart televisions (smart televisions), routers, smart speakers, smart air conditioners, tablet computers, and the like.
The software operating system of any 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 system.
It will be appreciated that the structure illustrated in fig. 2b does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, electronic device 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Based on the foregoing descriptions shown in fig. 1a to fig. 2b, fig. 3a exemplarily illustrates a flow of a communication method provided in an embodiment of the present application. In order to more clearly describe the solution provided in the embodiments of the present application, the following description uses the mobile device 100 as an earphone, the electronic device 200 as a mobile phone, the electronic device 300 as an intelligent sound box, and the electronic device 400 as an intelligent television. It should be noted that, in the embodiment of the present application, the electronic device 200 may be a first electronic device in the foregoing content, the electronic device 300 may be a second electronic device in the foregoing content, the electronic device 400 may be a third electronic device in the foregoing content, and the mobile device 100 may be a mobile device in the foregoing content.
As shown in fig. 3a, the method comprises:
S301, establishing point-to-point direct connection between the mobile phone and the earphone.
In the embodiment of the application, the connection between the earphone and the mobile phone is a point-to-point direct connection. The earphone and the mobile phone can be connected point to point based on Bluetooth (BT), wireless fidelity (wireless fidelity, wi-Fi) P2P, zigBee and other technologies.
S302, 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), a headset ID, and first notification information that the mobile phone establishes a point-to-point direct connection with the headset.
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 handset 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.
In still another possible implementation manner, the first notification message may further include a protocol used to instruct that a point-to-point direct connection is established between the mobile phone and the earphone, for example, a bluetooth connection is established between the mobile phone and the earphone, and the first notification message may further include indication information used to instruct that the point-to-point direct connection between the mobile phone and the earphone is based on the bluetooth protocol. The first notification message may further include indication information for indicating that a bluetooth pairing relationship exists between the mobile phone and the headset.
Optionally, the first notification message may further include information about the ongoing service of the mobile phone, such as a service identifier (e.g. playing music), a service status (e.g. currently ongoing), etc.
In the embodiment of the application, the smart television can be used as a central device. In a possible implementation manner, devices in the same local area network as the central device may register on the central device and report some information of the devices to the central device (such as ID, ID of the device having a pairing relationship with the device itself, connection relationship with other devices currently, service executed by the device itself, etc.). For example, the mobile phone, the smart television and the smart sound box are in the same local area network, the mobile phone and the smart sound box report own information to the smart television respectively, and the mobile phone can report the identification (such as the identification of the earphone) of the equipment with the pairing relationship with the mobile phone to the smart television. The intelligent sound box can also report the identification of the equipment with the pairing relation with the intelligent sound box to the intelligent television.
S303, the mobile phone sends audio data to the earphone.
The user may operate on the handset to turn on a service (such as playing music) on the handset. When the mobile phone receives an input from the user, the service of playing music can be started in response to the input, and audio data corresponding to the music is sent to the mobile phone, so that the user can hear the music played on the mobile phone through the earphone.
It should be noted that the user may have already performed an operation before S301, such as touching a touch screen or a button of the mobile phone to turn on the service of playing music. In this case, after a connection is established between the headset and the handset through S301, there are two possible implementations: one is to play music by default with headphones; another is a pop-up cue such as "do audio play through headphones? And operating the mobile phone by the user, and clicking yes by the user, and confirming that the audio data of the music are played through the earphone by the mobile phone based on the input.
It should be noted that, the above S302 and S303 are not in absolute sequence, for example, S303 may be executed first and S302 may be executed next.
S304, the earphone plays according to the received audio data.
Through S304, the user can listen to the music played on the mobile phone through the earphone.
In a possible implementation, as the headset moves, the distance between the headset and the mobile phone increases gradually, so that the connection between the headset and the mobile phone port in S305 may occur.
S305, disconnecting the earphone from the mobile phone.
S306, the mobile phone sends a second notification message to the smart television, wherein the second notification message comprises a mobile phone ID, an earphone ID and indication information for indicating that the mobile phone is disconnected with the earphone.
In a possible implementation manner, after detecting that the mobile phone is disconnected from the earphone from the point to point, the mobile phone pauses playing the audio data, and records a first pause mark. In yet another possible implementation manner, the mobile phone continues to play the audio data through a speaker of the mobile phone.
S307, the headset broadcasts the first request message. The first request message may include an ID of the headset.
As the earphone moves, the earphone may move to the vicinity of the smart speaker, thereby causing the smart speaker to perform S308.
S308, the intelligent sound box receives a first request message from the earphone.
Because the intelligent sound box can receive the signal of the earphone in S308, it can be reflected that the earphone is in the position area range where the connection with the intelligent sound box can be established, and the intelligent sound box has the capability of establishing connection with the earphone.
For S307 and S308 described above, in one possible implementation, the headset may periodically broadcast the first request message. The first request message may include an ID of the earpiece, and the smart speaker may determine that the earpiece has moved within a location area where a connection may be established with the smart speaker upon receipt of the information.
In a further possible implementation manner, with respect to S307 and S308 described above, the smart speaker may discover the headphones through a bluetooth discovery process. For example, the headset periodically transmits a bluetooth identity message of the headset (the bluetooth identity message of the headset may include an ID of the headset). The intelligent sound box can periodically send a bluetooth identity message of the intelligent sound box (the bluetooth identity message of the intelligent sound box can comprise an ID of the intelligent sound box, and the ID of the intelligent sound box can be, for example, an MAC address, a device name, etc. of the intelligent sound box). And when the Bluetooth identity information message of the intelligent sound box is received by the earphone, response information (the response information can be FHS message and the response information can be the first request message) is sent to the intelligent sound box, and when the response information is received by the intelligent sound box, bluetooth is determined to find the earphone.
S309, the intelligent sound box and the earphone are directly connected point to point.
In the embodiment of the application, the connection between the earphone and the intelligent sound box is a point-to-point direct connection. The earphone and the intelligent sound box can be connected point to point based on technologies such as BT, wi-Fi P2P, zigBee and the like.
In one possible implementation, after receiving the first response message from the smart speaker, the headset may establish a point-to-point direct connection with the smart speaker; the first response message is associated with the first request message.
S310, the smart speaker may send a first notification message to the smart tv, where the first notification message may include a smart speaker Identification (ID), a headset ID, and first notification information that the smart speaker establishes a point-to-point direct connection with the headset.
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.
In still another possible implementation manner, the first notification message may further include a protocol used to indicate that a point-to-point direct connection is established between the smart speaker and the earphone, for example, a bluetooth connection is established between the smart speaker and the earphone, and the first notification message may further include indication information used to indicate that the point-to-point direct connection between the smart speaker and the earphone is based on the bluetooth protocol. The first notification message may further include indication information for indicating that the intelligent sound box and the earphone have a bluetooth pairing relationship.
In still another possible implementation manner, the first notification message may further include a value of a received signal strength indicator (received signal strength indicator, RSSI) of a signal (such as an FHS message) of the earphone received by the smart speaker, where the proximity between the smart speaker and the earphone may be reflected by the value of the RSSI, or may be described as reflecting the distance between the smart speaker and the earphone by the value of the RSSI. When the RSSI value is smaller, the distance between the intelligent sound box and the earphone is larger, and when the RSSI value is larger, the distance between the intelligent sound box and the earphone is smaller.
And S311, after the intelligent television receives the first notification message, the ID of the equipment which is disconnected with the earphone in the first notification message recently can be determined, so that the ID of the mobile phone is obtained.
In S311, there may be another possible implementation manner, after the smart tv receives the first notification message, it may determine the IDs of one or more devices having a pairing relationship with the ID of the earphone in the first notification message (including the ID of the mobile phone). The smart television may send the first message only to the device (mobile phone) that has been disconnected from the headset recently, or may send the first message to at least one of the one or more devices that have a pairing relationship with the ID of the headset in the first notification message, so that one or more of the devices may share the headset through the smart speaker. After the smart tv sends the first message to the plurality of devices, the subsequent process executed by each device is similar to the process executed by the mobile phone, and the related content of the subsequent steps S312 to S320 may be referred to.
S312, the smart television sends a first message to the mobile phone according to the determined ID of the mobile phone, wherein the first message can comprise an intelligent sound box Identification (ID), a headset ID and indication information for indicating that the intelligent sound box and the headset are in point-to-point direct connection.
In still another possible implementation manner, the first message may further include a protocol used to indicate that a point-to-point direct connection is established between the smart speaker and the earphone, for example, a bluetooth connection is established between the smart speaker and the earphone, and then the first message may further include indication information used to indicate that the point-to-point direct connection between the smart speaker and the earphone is based on the bluetooth protocol. The first message may further include indication information for indicating that the intelligent sound box and the earphone have a bluetooth pairing relationship.
S313, the mobile phone receives the first message from the smart television.
S314, the mobile phone judges whether the ID of the earphone in the first message is: one of the IDs of one or more headphones having a pairing relationship with the handset.
If yes, then either S315 or S316 is performed. If not, the process may end.
Specifically, if the mobile phone and the intelligent sound box are connected to the local area network and the TCP/IP protocol is used, S315 is executed; if the mobile phone and the intelligent sound box are connected with the local area network and the UDP protocol is used, S316 is executed.
In one possible implementation, the mobile phone has stored thereon an ID of a device that has a pairing relationship with the mobile phone. A handset may have a pairing relationship with one or more devices.
It should be noted that, in the embodiment of the present application, two devices have a pairing relationship, which may mean that the two devices have an authentication relationship, and it may be understood that the two devices have a relationship of mutually successful authentication, and the pairing relationship may be, for example, a bluetooth pairing relationship based on bluetooth technology.
In yet another possible implementation manner, the mobile phone in S314 may determine whether the audio playing service (such as the music playing service) is currently paused (such as playing the music on the mobile phone through the earphone in S303, and after the earphone is disconnected from the mobile phone, the music playing service is paused); and whether the ID of the device for playing the audio data of the audio playing service is identical to the ID of the earphone in the first message is determined, if it is determined that the audio playing service (such as the music playing service) is paused and the ID of the device for playing the audio data of the audio playing service is identical to the ID of the earphone in the first message, S315 or S316 is executed. Otherwise, the flow is ended.
In yet another possible implementation manner, the mobile phone in S314 may determine whether the audio playing service is currently being executed (e.g. playing the music on the mobile phone through the earphone in S303, where after the earphone is disconnected from the mobile phone, the music playing service is not paused, but the music is played through the speaker of the mobile phone itself); and whether the ID of the device for playing the audio data of the audio playing service is identical to the ID of the earphone in the first message is determined, if it is determined that the audio playing service is currently being executed, and the ID of the device for playing the audio data of the audio playing service is identical to the ID of the earphone in the first message, S315 or S316 is executed. Otherwise, the process is ended.
In yet another possible implementation manner, there may be one step in S314 and S311, for example, when S311 is present, the smart tv may not need to perform S314 since it only sends the first message to the device having the pairing relationship with the headset. In yet another possible implementation manner, S311 may be omitted, in which case, after receiving the first notification message, the smart tv may broadcast or multicast the first message in the lan, so that the mobile phone receives the first message.
In yet another possible embodiment, S314 may be replaced by an embodiment in which the mobile phone receives a message from the smart speaker or the smart tv. Whether the message is a first message (i.e. whether the preset requirement of the first message is met) is determined in the following manner, and if so, the mobile phone sends audio data to the intelligent sound box. In one possible implementation manner, the mobile phone may determine that the message is the first message after acquiring the identifier of the earphone from the message. In yet 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. In yet another possible implementation manner, the mobile phone may determine that the message is the first message after obtaining the identifier of the earphone, the identifier of the smart speaker, and the indication information that the earphone establishes a point-to-point direct connection with the smart speaker from the message.
S315, connection is established between the mobile phone and the intelligent sound box.
In this embodiment, 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 (wireless local area networks, WLAN), wireless fidelity (wireless fidelity, wi-Fi), global system for mobile communications (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 systems and global navigation satellite systems (global navigation satellite system, GNSS), long term evolution (long term evolution, LTE), fourth generation mobile networks (the 4th generation,4G), fifth generation mobile networks (the 5th generation,5G), and future sixth generation mobile networks (the 6th generation,6G), and the like. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS)) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
For example, the mobile phone and the intelligent sound box can be connected to the same local area network through the same router.
After S315, in one possible implementation, the mobile phone may send a request message to the smart speaker. The request message is for requesting sharing of the headset. In one possible implementation, the smart speaker may send an acceptance message directly to the handset, the acceptance message indicating that the handset and the smart speaker are allowed to share the headset. In yet another possible implementation, the smart speaker may present a hint at an interface of the smart speaker, for example, at the interface of the smart speaker: "do it wish to share headphones with a cell phone? ". The user can operate on the interface of the intelligent sound box so as to input information, and if the input information is used for indicating that the mobile phone and the intelligent sound box are allowed to share the earphone, the intelligent sound box sends an acceptance message to the mobile phone, and the acceptance message is used for indicating that the intelligent sound box is allowed to share the earphone with the earphone.
After S315, in yet another possible implementation, the mobile phone may send a notification message to the smart speaker, which may be used to notify the smart speaker to forward the received data from the mobile phone to the headset. In yet another possible embodiment, the notification message is used to notify the smart speaker of the correspondence between two connections (i.e., the connection between the smart speaker and the headset, and the connection between the smart speaker and the handset) (which may also be understood as binding the two channels), so that after the subsequent smart speaker receives the data from the handset, the data is forwarded to the headset.
In one possible implementation, after S315, the mobile phone may further 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 to which the handset is connected.
In yet another possible implementation, the notification message may further include: at least one of indication information for indicating the connection between the mobile phone and the intelligent sound box or ID of the mobile phone.
In yet another possible implementation, the notification message may further include means for indicating that a connection is established between the handset and the smart box, such as a Wi-Fi-based connection. Optionally, the notification message may also include information about the ongoing service of the mobile phone, such as a service identifier (e.g., playing music), a service status (e.g., currently in progress), etc.
S316, the mobile phone sends audio data to the intelligent sound box.
In a possible implementation manner, after the mobile phone is disconnected from the earphone in S305, after detecting that the mobile phone is disconnected from the earphone from the point to the point, the mobile phone pauses playing the audio data, and records a first pause mark. Correspondingly, in response to the first message, the mobile phone sends all or part of the audio data subsequent to the first pause mark to the intelligent sound box.
In still another possible implementation manner, after the mobile phone is disconnected from the earphone in S305, the mobile phone continues to play the audio data through the speaker of the mobile phone. Correspondingly, in response to the first message, the mobile phone does not continue playing through the loudspeaker any more, and sends all or part of the unplayed content of the audio data to the smart speaker.
In one possible implementation, 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 intelligent sound box, and when the intelligent sound box receives the audio data, the audio data is forwarded to the earphone.
In yet another possible implementation manner, the audio data sent by the mobile phone to the smart speaker may include two destination addresses, where one destination address is an address of the smart speaker and the other destination address is an address of the earphone. The position of the address of the earphone in the data needs to be negotiated by the mobile phone and the intelligent sound box, so that the intelligent sound box can analyze the address of the earphone at a preset position.
After the mobile phone is connected with the intelligent sound box, the application layer of the mobile phone displays that the connection between the mobile phone and the earphone is established after the intelligent sound box is connected with the earphone, namely, the mobile phone knows that the connection between the mobile phone and the earphone is established for the application layer. In this case, audio may be output by default through headphones. And the application layer is not concerned about whether the bottom layer is the connection between the earphone and the mobile phone directly or indirectly through the intelligent sound box.
S317, the intelligent sound box forwards the audio data from the mobile phone to the earphone.
In one possible implementation, when the smart speaker is connected to the headphones, the received audio data may be played through the headphones by default. In yet another possible implementation manner, a correspondence between two connections (i.e., a connection between the smart speaker and the earphone, and a connection between the smart speaker and the mobile phone) may be established based on a notification message of the mobile phone, and audio data received from the mobile phone may be forwarded to the earphone according to the correspondence.
And S318, the earphone plays according to the received audio data.
In a possible implementation manner, after receiving all or part of the unplayed content of the audio data from the smart speaker, the earphone plays all or part of the unplayed content of the audio data.
After S318, the mobile phone may be disconnected from the smart speaker, and an example of disconnection of the mobile phone from the smart speaker is exemplarily shown in fig. 3a through S319 to S321.
As the earphone moves, the distance between the smart speaker and the earphone increases, and the situation shown in S319 may occur.
S319, the intelligent sound box and the earphone are possibly disconnected.
After S319, the headset may continue to broadcast a second request message to connect other devices with the headset. The second request message includes an identification of the headset and a point-to-point direct connection request.
In one possible implementation, after S319, the smart speaker may further send a notification message to the smart tv to notify the smart tv: the intelligent sound box is disconnected with the earphone currently. The notification message may include the ID of the headset disconnected from the smart speaker.
In yet another possible implementation manner, the notification message may further include: at least one of indication information for indicating disconnection between the smart speaker and the earphone and an ID of the smart speaker.
In yet another possible implementation manner, the notification message may further include a means for indicating disconnection between the smart speaker and the earphone; for example, a bluetooth-based disconnection.
S320, the intelligent sound box sends a second notification message to the mobile phone, wherein the second notification message comprises indication information for indicating disconnection between the intelligent sound box and the earphone.
In yet another possible implementation manner, after receiving the indication information, which is reported by the smart sound box and is used for indicating that the smart sound box is disconnected from the earphone, the smart television informs the mobile phone that the smart sound box is disconnected from the earphone.
S321, the mobile phone is disconnected with the intelligent sound box.
In one possible implementation, after S321, the mobile phone may further send a notification message to the smart tv to notify the smart tv that the mobile phone is disconnected from the smart speaker. The notification message may include the ID of the smart speaker disconnected from the handset.
In yet another possible implementation, the notification message may further include: at least one of indication information for indicating disconnection between the mobile phone and the intelligent sound box and ID of the mobile phone.
In yet another possible implementation, the notification message may further include means for indicating a disconnection between the handset and the smart box, such as a Wi-Fi disconnection-based connection. Optionally, the notification message may also include information about the ongoing service of the mobile phone, such as a service identifier (e.g., playing music), a service status (e.g., currently in progress), etc.
It should be noted that in the embodiment of the present application, in one possible implementation manner, the mobile phone and the smart speaker are located 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. For example, when the connection between the mobile phone and the smart speaker is established through S315 described above, the connection between the mobile phone and the smart speaker is also disconnected through S321, when the connection is based on the transmission control protocol (transmission control protocol, TCP)/network protocol (internet protocol, IP). For another example, when the connection is not required to be established through S315 based on the user data packet protocol (user datagram protocol, UDP) protocol, when the mobile phone needs to send audio data to the smart speaker, the mobile phone can send audio data to the smart speaker through the router; correspondingly, when the mobile phone does not need to send audio data to the smart speaker, the connection is not required to be disconnected through S321.
In addition to the ways shown in S319 to S321, there may be other ways to disconnect the mobile phone from the smart box. For example, the handset receives an input indicating to stop playing audio data through the headset. The user can operate on the handset to disconnect the handset from the smart box. For example, in one possible implementation, a user inputs an operation on a mobile phone: the audio output mode of the mobile phone is selected to be audio data played through the mobile phone, and based on the input mobile phone, the mobile phone can determine that the audio data does not need to be played through the earphone, and then the mobile phone is disconnected from the intelligent sound box.
In yet another possible implementation, when the connection between the mobile phone and the smart speaker is disconnected, the mobile phone may pause playing the audio data and record a second pause flag. Or the mobile phone can continue playing the audio data through the loudspeaker.
In the solution shown in fig. 3a, in a possible implementation manner, when a connection is established between the smart speaker and the earphone, the connection may also be reported to the smart tv. When the intelligent sound box and the mobile phone are connected, the intelligent sound box and the mobile phone can report to the intelligent television. When the intelligent sound box is disconnected with the earphone, the intelligent sound box can also report to the intelligent television. When the intelligent sound box is disconnected with the mobile phone, the intelligent sound box can also report to the intelligent television. The specific reporting manner may be referred to the foregoing, and will not be described herein.
According to the scheme, as the central node of the intelligent television is arranged, after the earphone ID reported by the intelligent sound box is received, the mobile phone which is disconnected with the earphone recently can be found, so that the ID of the earphone and the ID of the intelligent sound box are sent to the mobile phone, indirect connection is established between the mobile phone and the earphone through the intelligent sound box, and audio data can be played through the earphone continuously.
Fig. 3b is a flow diagram of another possible communication method based on fig. 3 a. As shown in fig. 3b, in the method, S301 to S308 can be referred to as content shown in fig. 3a, S309 is performed after S308 in fig. 3a to implement point-to-point direct connection between the smart speaker and the earphone, and S309 is not performed after S308 in fig. 3b, but S3101 is performed.
S3101, the smart speaker sends a first notification message to the smart tv, where the first notification message may include an Identification (ID) of the smart speaker, an ID of the earphone, and indication information for indicating that the smart speaker has found the earphone.
Note that, in S3101, unlike S310, the indication information for indicating that the smart speaker has found the earphone is carried in the first notification message in S3101.
In another possible implementation manner, the first notification message may further include indication information for indicating that the smart speaker and the earphone have a bluetooth pairing relationship.
In another possible implementation manner, the first notification message may further include indication information for indicating that the smart speaker bluetooth discovers the headset.
In still another possible implementation manner, the first notification message may further include a value of a received signal strength indicator (received signal strength indicator, RSSI) of a signal (such as an FHS message) of the earphone received by the smart speaker, where the proximity between the smart speaker and the earphone may be reflected by the value of the RSSI, or may be described as reflecting the distance between the smart speaker and the earphone by the value of the RSSI. When the RSSI value is smaller, the distance between the intelligent sound box and the earphone is larger, and when the RSSI value is larger, the distance between the intelligent sound box and the earphone is smaller.
And S311, the intelligent television determines the ID of the mobile phone which is disconnected with the earphone in the first notification message recently.
And S3121, the intelligent television sends a first message to the mobile phone according to the determined ID of the mobile phone, wherein the first message can comprise an intelligent sound box Identification (ID), an earphone ID and indication information for indicating that the intelligent sound box discovers the earphone.
Note that, unlike in S3121 and S312, the indication information for indicating that the smart speaker has found the earphone is carried in the first message in S3121.
S3121 may refer to the content of S312 described above, and will not be described here.
S313, the mobile phone receives the first message from the smart television.
S314, the mobile phone judges whether the ID of the earphone in the first message is: one of the IDs of one or more headphones having a pairing relationship with the handset.
If yes, then S315 is performed.
If not, the process may end.
After S315 or S316 the smart speaker performs S309 to establish a point-to-point direct connection with the headphones. The figure shows an example in which S309 is executed after S315.
As can be seen from the scheme shown in fig. 3b, in the embodiment of the present application, after the earphone is found, the intelligent sound box does not establish connection with the earphone, and after the connection is established with the mobile phone through S315, the intelligent sound box establishes connection with the earphone only when it is determined that there is a need to establish with the earphone (i.e. the mobile phone needs to send audio data to the earphone through the intelligent sound box), and does not establish connection with the earphone when there is no need to establish with the earphone, so that the number of times of establishing connection between the intelligent sound box and the earphone can be reduced, and power consumption is reduced.
Unless otherwise specified, the steps in fig. 3b are the same as those in fig. 3a, and are not described in detail herein.
Based on the above, fig. 4a and 4b show flow diagrams of two further communication methods, respectively, which are not provided as a central device (electronic device 400) in fig. 4a and 4 b. As shown in fig. 4a, the method comprises:
s401, a peer-to-peer (P2P) connection is established between the mobile phone and the earphone.
This step may be referred to as S301, and will not be described herein.
Unlike fig. 3a, since the central node is not set, after S401, the mobile phone does not need to report information, i.e. S302 in fig. 3a is not needed.
S402, the mobile phone sends audio data to the earphone.
This step can be referred to the aforementioned S303, and will not be described herein.
S403, the earphone plays according to the received audio data.
This step may be referred to as S304, and will not be described herein.
S404, disconnecting the earphone from the mobile phone.
This step may be referred to as S305, and will not be described herein.
S405, the headset broadcasts a first request message, the first request message including the headset ID.
This step may be referred to as S307, and will not be described here.
S406, the intelligent sound box receives the first request message from the earphone.
This step can be referred to as S308, and will not be described here.
S407, establishing point-to-point direct connection between the intelligent sound box and the earphone.
This step may be referred to as S309, and will not be described herein.
Unlike fig. 3a, since no central node is provided, after S407, the smart speaker does not need to report information, that is, S410, S411, S412 in fig. 3a are not needed to be executed, and the smart tv sends a first message to the mobile phone according to the determined ID of the mobile phone, where the first message includes the ID of the earphone connected to the smart speaker and the ID of the smart speaker.
S408, the intelligent sound box can send a first message in a broadcast or multicast mode, wherein the first message comprises the ID of the earphone connected with the intelligent sound box.
In one possible implementation manner, the first message may include an ID of the earphone, an ID of the smart speaker, and indication information for indicating that a connection between the smart speaker and the earphone is established.
In S408, the smart speaker may broadcast or multicast a first message within the local area network. The first message may include an Identification (ID) of the smart speaker, an ID of the headset, and indication information for indicating that the smart speaker establishes a point-to-point direct connection with the headset.
In still another possible implementation manner, the first message may further include a protocol used to indicate that a point-to-point direct connection is established between the smart speaker and the earphone, for example, a bluetooth connection is established between the smart speaker and the earphone, and then the first message may further include indication information used to indicate that the point-to-point direct connection between the smart speaker and the earphone is based on the bluetooth protocol. The first message may further include indication information for indicating that the intelligent sound box and the earphone have a bluetooth pairing relationship.
In still another possible implementation manner, the first message may further include a value of a received signal strength indicator (received signal strength indicator, RSSI) of a signal (such as an FHS message) of the earphone received by the smart speaker, where the proximity between the smart speaker and the earphone may be reflected by the value of the RSSI, or may be described as reflecting the distance between the smart speaker and the earphone by the value of the RSSI. When the RSSI value is smaller, the distance between the intelligent sound box and the earphone is larger, and when the RSSI value is larger, the distance between the intelligent sound box and the earphone is smaller.
In this case, when the mobile phone and the smart speaker are in a lan, the mobile phone may receive the first message.
In another possible implementation, the smart speaker may locate the identity of the devices that have an authentication relationship with the headphones and send a first message to one or more of these devices (including the cell phone) that have an authentication relationship with the headphones. The smart speaker may be preconfigured with an identifier of the electronic device having an authentication relationship with the headset, or the smart speaker may query an identifier of the electronic device having an authentication relationship with the headset from a central device (e.g., the electronic device 400).
S409, the mobile phone receives the first message from the smart television.
S410, the mobile phone judges whether the ID of the earphone in the first message is: one of the IDs of one or more headphones having a pairing relationship with the handset.
If yes, S411 is executed.
If not, the process may end.
This step can be referred to as S314, and will not be described here.
S411, connection is established between the mobile phone and the intelligent sound box.
This step can be referred to as S315, and will not be described here again.
S412, the mobile phone sends audio data to the intelligent sound box.
This step can be referred to as S316, and will not be described here.
S413, the intelligent sound box forwards the audio data from the mobile phone to the earphone.
This step may be referred to as S317, and will not be described herein.
And S414, the earphone plays according to the received audio data.
This step can be referred to as S318, and will not be described here.
S415, the intelligent sound box and the earphone are possibly disconnected.
This step may be referred to as S319, and will not be described here.
S416, the intelligent sound box sends a second notification message to the mobile phone, wherein the second notification message comprises indication information for indicating disconnection between the intelligent sound box and the earphone.
This step can be referred to as S320, and will not be described here.
S417, the mobile phone is disconnected with the intelligent sound box.
This step can be referred to as S321, and will not be described here.
In addition to the ways shown in S415 to S417, there may be other ways to disconnect the phone from the smart box. For example, the handset receives an input indicating to stop playing audio data through the headset. The user can operate on the handset to disconnect the handset from the smart box. For example, in one possible implementation, a user enters an operation on a cell phone: the audio output mode of the mobile phone is selected to be audio data played through the mobile phone, and based on the input mobile phone, the mobile phone can determine that the audio data does not need to be played through the earphone, and then the mobile phone is disconnected from the intelligent sound box.
It should be noted that in the embodiment of the present application, in one possible implementation manner, the mobile phone and the smart speaker are located in the same local area network, and the mobile phone and the smart speaker are connected through a router. The above-described S411 and S417 are not necessary, and S411 and S417 are shown as dotted lines in the drawing. The reason can be seen in the relevant content of S315 and S321, and will not be described here again.
According to the scheme, after the intelligent sound box receives the first request message of the earphone, the first message can be sent out in a broadcasting or multicasting mode, when the mobile phone receives the first message, the ID of the earphone in the first message is determined to be the ID of one earphone with a pairing relation with the mobile phone, and then the mobile phone establishes indirect connection with the earphone through the intelligent sound box and can continuously play audio data through the earphone.
Fig. 4b is a flow diagram of another possible communication method based on fig. 4 a. As shown in fig. 4b, in the method, S401 to S406 may refer to the content shown in fig. 4a, S407 is performed after S406 in fig. 4a to implement point-to-point direct connection between the smart speaker and the earphone, and S407 is not performed after S406 in fig. 4b, but S4081 is performed.
S4081, the smart speaker broadcasts or multicasts a first message, where the first message includes an ID of the earphone, an ID of the smart speaker, and indication information for indicating that the smart speaker has found the earphone.
Note that, unlike in S4081 and S408, the indication information for indicating that the smart speaker has found the earphone is carried in the first message in S4081.
In a possible implementation manner, the first message may carry indication information for indicating that the smart speaker receives the first request message of the earphone, an ID of the smart speaker, and the like. To inform other devices that the headphones are in a location area where connection can be established with the smart speakers.
S409, the mobile phone receives the first message from the intelligent sound box. The first message may include an Identification (ID) of the smart speaker, an ID of the earphone, and indication information for indicating that the smart speaker has found the earphone.
In another possible implementation manner, the first message may further include indication information for indicating that the smart speaker and the earphone have a bluetooth pairing relationship.
In still another possible implementation manner, the first message may further include a value of a received signal strength indicator (received signal strength indicator, RSSI) of a signal (such as an FHS message) of the earphone received by the smart speaker, where the proximity between the smart speaker and the earphone may be reflected by the value of the RSSI, or may be described as reflecting the distance between the smart speaker and the earphone by the value of the RSSI. When the RSSI value is smaller, the distance between the intelligent sound box and the earphone is larger, and when the RSSI value is larger, the distance between the intelligent sound box and the earphone is smaller.
S410, the mobile phone judges whether the ID of the earphone in the first message is: one of the IDs of one or more headphones having a pairing relationship with the handset.
If yes, S411 is executed.
If not, the process may end.
After S411 the smart speaker performs S407 to establish a point-to-point direct connection with the headphones.
As can be seen from the scheme shown in fig. 4b, in the embodiment of the present application, after the earphone is found, the intelligent sound box does not establish connection with the earphone, and after the connection is established with the mobile phone through S415, the intelligent sound box establishes connection with the earphone only when it is determined that there is a need to establish with the earphone (i.e. the mobile phone needs to send audio data to the earphone through the intelligent sound box), and under the condition that there is no need to establish with the earphone, the intelligent sound box does not establish connection with the earphone, so that the number of times of establishing connection between the intelligent sound box and the earphone can be reduced, and power consumption is reduced.
Unless otherwise specified, the relevant contents of each step in fig. 4b are the same as those of each step in fig. 4a, and are not described herein.
Based on the foregoing, taking the example of establishing a point-to-point direct connection between the mobile phone and the earphone based on the bluetooth technology, fig. 5 exemplarily shows a method flow of establishing a point-to-point direct connection between the mobile phone and the earphone in the communication method provided in the embodiment of the present application. As shown in fig. 5, the method includes:
S3011, the earphone sends a Bluetooth identity message of the earphone.
S3012, the mobile phone receives the Bluetooth identity message of the earphone, and sends the Bluetooth identity message of the mobile phone as a response.
S3013, the handset sends a bluetooth frequency hopping synchronization (frequency hop synchronization, FHS) message.
Through S3011 to S3013, the mobile phone and the headset can perform clock synchronization with the baseband based on the bluetooth identity packet and the FHS packet of each other to change the bluetooth communication state from the connectable state to the connected state.
In one possible implementation, bluetooth devices (devices with bluetooth modules, such as cell phones and headsets) quickly acquire time and frequency synchronization of the devices by selecting a frequency hopping frequency in a fixed frequency band or by the address of the device being queried, quickly exchanging handshaking information time and address, before establishing a connection. After connection is established, both sides of the equipment change the frequency according to the channel hopping sequence, so that the hopping frequency presents random characteristics.
The connection between two bluetooth devices may be initiated by sending a query message by a certain querying device (which may be, for example, a headset) for searching for other devices in the vicinity. Any other bluetooth device (e.g., a cell phone) listening by performing a inquiry scan recognizes the inquiry message and responds. The response to the inquiry message may be a Frequency Hopping Synchronization (FHS) packet containing all the information required by the inquiring device to address the responding device. This information includes the sender's (i.e., responding device) clock value, the sender's correct device access code, and the class of device (CoD) field. The FHS packet contains more information than mentioned here. The access code also contains a low-order address part (LAP) and a high-order address part (UAP) of the sender's bluetooth device address (bd_addr), wherein the bluetooth device address is a unique 48-bit IEEE address which is electronically engraved on each bluetooth device.
S3014, carrying out Bluetooth link manager protocol (link manager protocol, LMP) flow interaction between the mobile phone and the earphone.
The link manager in each bluetooth device may negotiate the available capabilities with the bluetooth air interface via a link manager protocol. These capabilities may include allocated bandwidth for the level of service required to support data traffic, and periodic reserved bandwidth obtained for supporting audio traffic. The LMP is responsible for the establishment of connections between bluetooth devices. When the Bluetooth device transmits data, the LMP will negotiate and control the size of the data packet. The LMP also manages the consumption of power and controls the state of the bluetooth device. The LMP also has a function of generating keys required for authentication and encryption.
S3015, the handset queries the services that the headset can support based on bluetooth service discovery protocol (service discovery protocol, SDP).
Services play a vital role in the bluetooth framework, which is the basis of all user modes. In a frequent bluetooth wireless communication network, any two or more devices may suddenly start communicating on the bluetooth link. If the devices are to be utilized to provide services to each other, a more flexible method is needed to find the location of the services. If a communication channel is established, the next step in communication for a device should be to find services that the device can use. SDP may define a standard method so that some bluetooth devices may discover and learn services provided by other devices. The bluetooth service discovery protocol is specifically designed for use in the context of bluetooth wireless communications and functions in an efficient and optimal manner.
In a possible implementation, the mobile phone sends the service data through the bluetooth connection according to the services supported by the headset. For example, headphones may support listening to music services, such as advanced audio distribution mode (advanced audio distribution profile, A2 DP) services. The user can listen to the music played on the mobile phone through the earphone. Alternatively, it can be described as: the earphone is connected with Bluetooth service according to the service supported by the earphone, for example, A2DP service can be connected, or Bluetooth connection is carried out based on the Bluetooth A2DP service, so that music service is provided for users.
The process of establishing bluetooth connection between the intelligent sound box and the earphone can be referred to as content shown in fig. 5, and will not be described again.
Based on the foregoing, taking as an example the disconnection of bluetooth between the handset and the headset. Fig. 6 exemplarily shows a flow of disconnecting bluetooth between a mobile phone and a headset in the communication method provided in the embodiment of the present application. As shown in fig. 6, the method includes:
and S3051, after Bluetooth connection is established between the mobile phone and the earphone, the mobile phone periodically transmits a Bluetooth PULL message through the Bluetooth connection.
The earphone responds to a NULL message through Bluetooth connection for each received PULL message. The mobile phone periodically sends a Bluetooth PULL message, and the earphone sends a Bluetooth NULL message as a response after receiving the Bluetooth PULL message. If the Bluetooth connection between the mobile phone and the earphone fails, the Bluetooth PULL message sent by the mobile phone is lost, the earphone cannot receive the Bluetooth PULL message, and the earphone cannot respond to the Bluetooth NULL message. The mobile phone can judge whether the bluetooth connection is disconnected or not through S3052. The earphone can judge whether the bluetooth connection is disconnected or not through S3054.
And S3052, the mobile phone judges whether the condition that the NULL message is not received within a first preset time period is met or not. If so, S3053 is performed. If not, the Bluetooth connection is not disconnected.
And S3053, the mobile phone determines that the Bluetooth connection is disconnected.
And S3054, the earphone judges whether the condition that the PULL message is not received within a second preset time period is met. If so, S3055 is performed. If not, the Bluetooth connection is not disconnected. The second preset duration may be equal to the first preset duration or may be different.
S3055, the headset determines that the bluetooth connection is broken.
The process of disconnecting bluetooth between the intelligent sound box and the earphone can be referred to as content shown in fig. 6, and will not be described again.
Based on the foregoing, fig. 7 illustrates a flow of establishing a connection between a mobile phone and a smart speaker in the communication method according to the embodiment of the present application. As shown in fig. 7, the flow includes:
s3151, the mobile phone sends a connection establishment request to the intelligent sound box.
S3152, the intelligent sound box sends connection establishment acceptance to the mobile phone.
S3153, the mobile phone sends connection establishment completion to the intelligent sound box.
In one possible implementation, the handset may establish a socket connection based on the IP address, port number, etc. of the smart box. And the intelligent sound box can monitor connection establishment requests from other devices through a server side of a socket. The above S3151 to S3153 may be implemented by three-way handshake of a transmission control protocol (transfer control protocol, TCP), for example, the above S3151 is a first packet of the three-way handshake of TCP (for example, the transmission sequence number may be 200, and the flag bit may be syn=1). S3152 may be a second packet of the TCP three-way handshake responded by the smart speaker (e.g., the sending sequence number may be 201, the flag bit may be syn=1, and ack=1). S3153 may be a third packet of the TCP three handshake responded by the mobile phone (for example, the sending sequence number may be 501, and the flag bit may be ack=1).
Fig. 8 schematically illustrates a flow of disconnection between a mobile phone and a smart speaker in the communication method provided in the embodiment of the present application. As shown in fig. 8, the method includes:
s3211, the mobile phone sends a first connection disconnection request to the intelligent sound box.
S3212, the intelligent sound box sends a first connection disconnection response to the mobile phone.
S3213, the intelligent sound box sends a second connection disconnection request to the mobile phone.
S3214, the mobile phone sends a second connection disconnection response to the intelligent sound box.
In one possible implementation, after determining to disconnect from the smart speaker, the mobile phone may disconnect from the smart speaker through a TCP four-swing procedure, for example, S3211 is the first packet of the TCP four-swing sent by the mobile phone (for example, the sending sequence number may be 200; the acknowledgement sequence number: 500; the flag bit may be ack=1, fin=1). S3212 may be a second packet of the TCP four waving of the smart speaker response (e.g., the sending sequence number may be 500, the acknowledgement sequence number 201, and the flag bit may be ack=1). S3213 may be a third packet of TCP four waving sent by the smart speaker (e.g., the sending sequence number may be 501, and the flag bit may be ack=1, ftn=1). S3214 may be a fourth packet of the TCP that the mobile phone responds to (e.g., the sending sequence number may be 201, the acknowledgement sequence number may be 502, and the flag bit may be ack=1).
Fig. 9 illustrates an architecture of an end-to-end communication model across a physical network. As shown in fig. 9, on the mobile phone side, the audio data of the mobile phone may sequentially pass through the application layer, the network layer, the link layer and the physical layer and then be sent to the router.
After receiving the audio data, the router 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 the port of the intelligent sound box, specifically, the router transmits the audio data to the physical layer according to the IP address and the port of the intelligent sound box, and then transmits the audio data to the intelligent sound box.
After receiving the audio data, the intelligent sound box has two implementation modes, in one mode, the intelligent sound box 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 the port of the earphone, specifically, the intelligent sound box transmits the audio data to the physical layer according to the IP address and the port of the earphone, and then sends the audio data to the earphone. In the second mode, the intelligent sound box transmits the audio data from the physical layer to the link layer, from the link layer to the network layer, and then transmits the audio data to the link layer after the network layer is analyzed, and then transmits the audio data to the physical layer from the link layer and then transmits the audio data to the earphone. That is, after the intelligent sound box receives the audio data, the intelligent sound box can complete data transmission at the link layer, and can complete data transmission at the network layer, and part of steps in the two modes are illustrated by dotted lines in the figure.
After receiving the audio data, the earphone sequentially passes through the physical layer, the link layer and the network layer and then reaches the application layer, and then the audio data is played.
In the embodiment of the application, the data between the mobile phone and the intelligent sound box can be transmitted in the WiFi subnet. The transmission between the intelligent sound box and the earphone can be transmitted in the BT subnet.
All or part of the above embodiments provided in the present application may be freely and arbitrarily combined with each other.
The communication method provided by the embodiment of the application is suitable for the following mobile equipment and electronic equipment.
Fig. 10 illustrates a mobile device 1000 provided herein. Illustratively, the mobile device 1000 includes at least one processor 1010, a memory 1020, and a communication interface 1030. The processor 1010 is coupled to the memory 1020 and the communication interface 1030, and the coupling in the embodiments of the present application may be a communication connection, electrical, or other forms. In particular, memory 1020 is used to store program instructions. The processor 1010 is configured to invoke program instructions stored in the memory 1020 to cause the mobile device 1000 to perform steps performed by the mobile device in the communication method provided in the embodiments of the present application. It should be understood that the mobile device 1000 may be used to implement the communication method provided in the embodiments of the present application, and relevant features may be referred to above, which is not described herein.
The present application provides a computer program product comprising instructions which, when run on a mobile device, cause the mobile device to perform steps performed by the mobile device in a communication method provided by embodiments of the present application.
The present application provides a computer readable storage medium comprising instructions which, when executed on a mobile device, cause the mobile device to perform steps performed by the mobile device in a communication method provided by embodiments of the present application.
It will be apparent to those skilled in the art that embodiments of the present application may be implemented in hardware, or in both hardware and software. When implemented in hardware and software, the functions described above may be stored on a computer-readable medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
Fig. 11 shows an electronic device 1100 provided by the present application. Illustratively, the electronic device 1100 includes at least one processor 1110, a memory 1120, and a communication interface 1130. The processor 1110 is coupled with the memory 1120 and the communication interface 1130, and the coupling in the embodiments of the present application may be a communication connection, electrical, or other forms. Specifically, the memory 1120 is used for storing program instructions. The processor 1110 is configured to invoke program instructions stored in the memory 1120, so that the electronic device 1100 performs steps performed by the electronic device in the communication method provided in the embodiment of the present application. It should be appreciated that the electronic device 1100 may be used to implement the communication method provided in the embodiments of the present application, and relevant features may be referred to above, which is not described herein.
The present application provides a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform steps performed by the electronic device 200, the electronic device 300 or the electronic device 400 in the communication method provided by the embodiments of the present application.
The present application provides a computer readable storage medium comprising instructions that, when executed on an electronic device, cause the electronic device to perform steps performed by the electronic device 200, the electronic device 300, or the electronic device 400 in a communication method provided by embodiments of the present application.
It will be apparent to those skilled in the art that embodiments of the present application may be implemented in hardware, or in both hardware and software. When implemented in hardware and software, the functions described above may be stored on a computer-readable medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (22)

1. A first electronic device that establishes a point-to-point direct connection with a mobile device, the first electronic device playing audio data through the mobile device; the first electronic device is characterized by comprising:
a processor;
a memory;
and a computer program, wherein the computer program is stored on the memory, which when executed by the processor, causes the first electronic device to perform the steps of:
upon detecting that the first electronic device is disconnected from the mobile device point-to-point direct connection,
the first electronic equipment pauses playing the audio data and records a first pause mark; or,
the first electronic device continues to play the audio data through a loudspeaker of the first electronic device;
receiving a first message, wherein the first message is used for indicating that the mobile device and a second electronic device establish point-to-point direct connection;
in response to the first message in question,
the first electronic device sends a message to the second electronic device, the message being used for instructing the second electronic device to forward the received audio data from the first electronic device to the mobile device;
The first electronic device sends all or part of the audio data subsequent to the first pause mark to the second electronic device; alternatively, the first electronic device may not continue playing through the speaker, but instead send all or part of the unplayed content of the audio data to the second electronic device.
2. The first electronic device of claim 1, wherein all or part of the audio data subsequent to the first pause flag is transmitted at the first electronic device to the second electronic device; alternatively, the first electronic device may not continue playing through the speaker, but the first electronic device may further perform:
and the first electronic equipment and the second electronic equipment establish network connection.
3. The first electronic device of claim 2, wherein the first electronic device establishes a network connection with the second electronic device; comprising the following steps: and the first electronic equipment and the second electronic equipment establish local area network connection.
4. A first electronic device according to any of claims 1-3, wherein the first message is received; comprising the following steps:
Receiving a message from the second electronic device or the third electronic device;
and in response to the message, after acquiring the identification of the mobile device from the message, determining the message as the first message.
5. The first electronic device of claim 4, wherein the message is determined to be the first message after the identification of the mobile device is obtained from the message; comprising the following steps:
after only the identification of the mobile device is obtained from the message, determining the message as the first message; or,
after the identification of the mobile device and the identification of the second electronic device are obtained from the message, determining the message as the first message; or,
and after the identifier of the mobile device is obtained from the message, the identifier of the second electronic device and the indication information that the mobile device establishes the point-to-point direct connection with the second electronic device, determining the message as the first message.
6. A first electronic device according to any of claims 2-3, characterized in that the first electronic device further performs:
Upon detecting that the first electronic device is disconnected from the second electronic device,
the first electronic equipment pauses playing the audio data and records a second pause mark; or,
the first electronic device continues to play the audio data through the loudspeaker.
7. A first electronic device according to any of claims 1-3, characterized in that the first electronic device further performs:
after the first electronic device establishes point-to-point direct connection with the mobile device, the first electronic device sends a first notification message to a third electronic device; the first notification message comprises an identifier of the mobile device, an identifier of the first electronic device, and first notification information that the mobile device and the first electronic device establish a point-to-point direct connection;
after the first electronic equipment is disconnected from the mobile equipment from point to point, the first electronic equipment sends a second notification message to the third electronic equipment; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device.
8. A first electronic device according to any of claims 1-3, characterized in that the first electronic device is connected to the same local area network as the second electronic device.
9. A first electronic device according to any of claims 1-3, characterized in that the point-to-point direct connection comprises one of a bluetooth connection, a wireless high fidelity peer-to-peer network Wi-FiP2P connection and a ZigBee connection.
10. A first electronic device according to any of claims 1-3, characterized in that the first electronic device is a smart phone.
11. A mobile device that establishes a point-to-point direct connection with a first electronic device through which audio data is played by the first electronic device; characterized in that the mobile device comprises:
a processor;
a memory;
and a computer program, wherein the computer program is stored on the memory, which when executed by the processor, causes the mobile device to perform the steps of:
after detecting that the mobile device is disconnected from the first electronic device point-to-point directly, the mobile device broadcasts a first request message; the first request message includes an identification of the mobile device and a point-to-point direct connection request;
After receiving a first response message from a 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;
receiving all or part of the unplayed content of the audio data from the second electronic device, the all or part of the unplayed content of the audio data being acquired by the second electronic device from the first electronic 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 is from the second electronic device.
12. The mobile device of claim 11, wherein the mobile device further performs:
after detecting that the mobile device is disconnected from the second electronic device point-to-point directly, the mobile device broadcasts a second request message; the second request message includes an identification of the mobile device and a point-to-point direct connection request.
13. The mobile device of claim 11 or 12, wherein the mobile device is a bluetooth headset.
14. The communication method is applied to first electronic equipment, the first electronic equipment establishes point-to-point direct connection with mobile equipment, and the first electronic equipment plays audio data through the mobile equipment; characterized in that the method comprises:
upon detecting that the first electronic device is disconnected from the mobile device point-to-point direct connection,
the first electronic equipment pauses playing the audio data and records a first pause mark; or,
the first electronic device continues to play the audio data through a loudspeaker of the first electronic device;
receiving a first message, wherein the first message is used for indicating that the mobile device and a second electronic device establish point-to-point direct connection;
in response to the first message in question,
the first electronic device sends a message to the second electronic device, the message being used for instructing the second electronic device to forward the received audio data from the first electronic device to the mobile device;
the first electronic device sends all or part of the audio data subsequent to the first pause mark to the second electronic device; alternatively, the first electronic device may not continue playing through the speaker, but instead send all or part of the unplayed content of the audio data to the second electronic device.
15. The method of claim 14, wherein the receiving the first message; comprising the following steps:
receiving a message from the second electronic device or the third electronic device;
and in response to the message, after acquiring the identification of the mobile device from the message, determining the message as the first message.
16. The method of claim 15, wherein the determining the message is the first message after the identification of the mobile device is obtained from the message; comprising the following steps:
after only the identification of the mobile device is obtained from the message, determining the message as the first message; or,
after the identification of the mobile device and the identification of the second electronic device are obtained from the message, determining the message as the first message; or,
and after the identifier of the mobile device is obtained from the message, the identifier of the second electronic device and the indication information that the mobile device establishes the point-to-point direct connection with the second electronic device, determining the message as the first message.
17. The method according to claim 15 or 16, characterized in that the method further comprises:
Upon detecting that the first electronic device is disconnected from the second electronic device,
the first electronic equipment pauses playing the audio data and records a second pause mark; or,
the first electronic device continues to play the audio data through the loudspeaker.
18. The method according to any one of claims 14-16, further comprising:
after the first electronic device establishes point-to-point direct connection with the mobile device, the first electronic device sends a first notification message to a third electronic device; the first notification message comprises an identifier of the mobile device, an identifier of the first electronic device, and first notification information that the mobile device and the first electronic device establish a point-to-point direct connection;
after the first electronic equipment is disconnected from the mobile equipment from point to point, the first electronic equipment sends a second notification message to the third electronic equipment; the second notification message includes an identification of the mobile device, an identification of the first electronic device, and second notification information that the mobile device has disconnected a point-to-point direct connection with the first electronic device.
19. The communication method is applied to mobile equipment, the mobile equipment establishes point-to-point direct connection with first electronic equipment, and the first electronic equipment plays audio data through the mobile equipment; characterized in that the method comprises:
after detecting that the mobile device is disconnected from the first electronic device point-to-point directly, the mobile device broadcasts a first request message; the first request message includes an identification of the mobile device and a point-to-point direct connection request;
after receiving a first response message from a 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;
receiving all or part of the unplayed content of the audio data from the second electronic device, the all or part of the unplayed content of the audio data being acquired by the second electronic device from the first electronic 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 is from the second electronic device.
20. The method of claim 19, wherein the method further comprises:
after detecting that the mobile device is disconnected from the second electronic device point-to-point directly, the mobile device broadcasts a second request message; the second request message includes an identification of the mobile device and a point-to-point direct connection request.
21. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run on a first electronic device, causes the first electronic device to perform the method of any of claims 14-18.
22. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run on a mobile device, causes the mobile device to perform the method of claim 19 or 20.
CN202110124316.1A 2021-01-29 2021-01-29 Communication method, mobile device, electronic device, and computer-readable storage medium Active CN114827687B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110124316.1A CN114827687B (en) 2021-01-29 2021-01-29 Communication method, mobile device, electronic device, and computer-readable storage medium
PCT/CN2021/137058 WO2022160967A1 (en) 2021-01-29 2021-12-10 Communication method, mobile device, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110124316.1A CN114827687B (en) 2021-01-29 2021-01-29 Communication method, mobile device, electronic device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN114827687A CN114827687A (en) 2022-07-29
CN114827687B true CN114827687B (en) 2024-04-09

Family

ID=82526547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110124316.1A Active CN114827687B (en) 2021-01-29 2021-01-29 Communication method, mobile device, electronic device, and computer-readable storage medium

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117062256B (en) * 2023-10-08 2023-12-26 荣耀终端有限公司 Cross-equipment service transfer method, electronic equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767550A (en) * 2014-01-06 2015-07-08 光宝科技股份有限公司 Mobile audio stream playing method and system
CN108769431A (en) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 Audio play control method, device, storage medium and mobile terminal
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system
CN110856152A (en) * 2019-10-28 2020-02-28 宇龙计算机通信科技(深圳)有限公司 Method, device, electronic equipment and medium for playing audio data
CN111345010A (en) * 2018-08-17 2020-06-26 华为技术有限公司 Multimedia content synchronization method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488316A (en) * 2016-10-20 2017-03-08 北京小米移动软件有限公司 Media playing method and device, electronic equipment
US10560654B2 (en) * 2017-09-20 2020-02-11 Lg Electronics Inc. Display device
US10623844B2 (en) * 2018-03-29 2020-04-14 Sonos, Inc. Headphone interaction with media playback system
CN108541080B (en) * 2018-04-23 2020-09-22 Oppo广东移动通信有限公司 Method for realizing loop connection between first electronic equipment and second electronic equipment and related product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767550A (en) * 2014-01-06 2015-07-08 光宝科技股份有限公司 Mobile audio stream playing method and system
CN108769431A (en) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 Audio play control method, device, storage medium and mobile terminal
CN111345010A (en) * 2018-08-17 2020-06-26 华为技术有限公司 Multimedia content synchronization method and electronic equipment
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system
CN110856152A (en) * 2019-10-28 2020-02-28 宇龙计算机通信科技(深圳)有限公司 Method, device, electronic equipment and medium for playing audio data

Also Published As

Publication number Publication date
CN114827687A (en) 2022-07-29
WO2022160967A1 (en) 2022-08-04

Similar Documents

Publication Publication Date Title
US11653398B2 (en) Bluetooth connection method and device
CN110320811B (en) Access method of intelligent household equipment and electronic equipment
CN113630297B (en) Method and terminal for controlling first equipment
WO2021036835A1 (en) Bluetooth search method and system, and related apparatus
CN112868244B (en) Point-to-multipoint data transmission method and device
CN113366439B (en) Method and device for connecting Bluetooth device
CN114915880B (en) Point-to-multipoint data transmission method and electronic equipment
WO2021082829A1 (en) Bluetooth connection method and related apparatus
CN113360108B (en) Screen projection connection control method and electronic equipment
CN114499587B (en) Audio synchronization communication method, system, wireless earphone, terminal and storage medium
US11844119B2 (en) Bluetooth pairing method and related apparatus
WO2022143071A1 (en) Connection establishment method and electronic device
JP2022512019A (en) Extended connection method and extended connection system used for Bluetooth devices
WO2021027623A1 (en) Device capability discovery method and p2p device
CN114679708A (en) Communication method, system and electronic equipment
CN113038627B (en) File sharing method, mobile device and computer storage medium
CN114827687B (en) Communication method, mobile device, electronic device, and computer-readable storage medium
CN112469014A (en) Method and electronic equipment for configuring Bluetooth connection parameters
CN115175159B (en) Bluetooth headset playing method and equipment
WO2022057521A1 (en) Method and devices for configuring device
WO2023029938A1 (en) Tws earphone decoupling and sharing method and apparatus, and device and storage medium
CN116744275A (en) Communication method, electronic equipment and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant