CN114827687A - 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
CN114827687A
CN114827687A CN202110124316.1A CN202110124316A CN114827687A CN 114827687 A CN114827687 A CN 114827687A CN 202110124316 A CN202110124316 A CN 202110124316A CN 114827687 A CN114827687 A CN 114827687A
Authority
CN
China
Prior art keywords
electronic device
message
point
mobile device
mobile
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.)
Granted
Application number
CN202110124316.1A
Other languages
Chinese (zh)
Other versions
CN114827687B (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

Images

Classifications

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

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 and the mobile device establish point-to-point direct connection, and the first electronic device plays audio data through the mobile device. The first electronic device receives a first message after detecting that the first electronic device and the mobile device are disconnected from point-to-point direct connection, wherein the first message is used for indicating that the mobile device and the second electronic device establish 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. According to the method and the device, after the two electronic devices based on the point-to-point direct connection technology are disconnected, the indirect connection is established through the third electronic device, and therefore the service connection is achieved.

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, point-to-point direct connection technologies are widely applied, such as Bluetooth (BT), wireless fidelity (Wi-Fi) peer-to-peer (P2P), and the like, which bring 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 popular.
However, in practical applications, the point-to-point direct connection technology is limited by distance and obstruction in specific environments, thereby causing a problem of connection interruption. For example, a point-to-point direct connection is established between a bluetooth headset and a smart phone through bluetooth, and when a user wears the bluetooth headset to move to a position far away from the smart phone, or a wall block exists between the smart phone and the bluetooth headset (for example, the smart phone is placed on the second floor, and the user wears the bluetooth headset to move to the first floor), the bluetooth connection between the wireless bluetooth headset and the smart phone is disconnected, thereby causing interruption of a service (for example, audio data transmission). Therefore, when two electronic devices based on the point-to-point direct connection technology are disconnected, how to implement service connection becomes an urgent problem to be solved.
Disclosure of Invention
In order to solve the above technical problem, 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, the indirect connection can be established through the third electronic device, and when the two electronic devices transmit services, the service connection can be achieved through the newly established connection.
In a first aspect, a method of communication is provided. The communication method is applied to the first electronic equipment. The first electronic device includes a processor and a memory. In the method, 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 the first electronic equipment detects that the first electronic equipment is disconnected from the mobile equipment in a point-to-point direct connection mode, the first electronic equipment pauses playing of the audio data and records a first pause mark; or after the first electronic device detects that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, 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 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 equipment responds to the first message, and the first electronic equipment sends all or part of audio data subsequent to the first pause mark to the second electronic equipment; or, the first electronic device responds to the first message, the first electronic device does not continue playing through the loudspeaker any more, and all or part of the unplayed content of the audio data is sent to the second electronic device. Since it can be determined that the second electronic device is connected with the mobile device based on the first message, and the mobile device is a device having 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 sends the audio data to the mobile device, and after the first electronic device is disconnected from the mobile device, the first electronic device can establish an indirect connection with the mobile device through the second electronic device.
According to the first aspect, in yet another possible implementation manner, before the first electronic device sends all or part of the audio data subsequent to the first pause tag 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.
According to the first aspect, in another possible implementation manner, before the first electronic device sends all or part of the unplayed content of the audio data to the second electronic device without continuing to play through the speaker, the first electronic device establishes a network connection with the second electronic device. In this manner, the first electronic device may transmit audio data through the connection established with the second electronic device.
According to the first aspect, in yet another possible implementation manner, the first electronic device establishes a network connection with the second electronic device; the method comprises the following steps: and the first electronic equipment and the second electronic equipment establish local area network connection. Therefore, the first electronic device and the second electronic device are both located in the same local area network, and the second electronic device can send messages to the first electronic device in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
According to the first aspect, in yet another possible implementation manner, the receiving the first message includes: a message is received from the second electronic device or the third electronic device. And responding to the message, and determining that the message is the first message after acquiring the identifier of the mobile equipment from the message. According to the first aspect, in yet another possible implementation manner, after the identifier of the mobile device is obtained from the message, the message is determined to be the first message; the method comprises the following steps: and after acquiring the identifier of the mobile equipment and the identifier of the second electronic equipment from the message, determining that the message is the first message. According to the first aspect, in yet another possible implementation manner, after acquiring 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 from the message, it is determined that the message is the first message. In this way, the manner of determining the first message can be increased, and thus the flexibility of the scheme can be improved.
According to the first aspect, in another possible implementation manner, after it is detected that the first electronic device is disconnected from the second electronic device through a network, the first electronic device suspends playing of the audio data, and records a second suspension flag. Therefore, the service connection can be realized after the mobile equipment is connected with the first electronic equipment again.
According to the first aspect, in yet another possible implementation manner, after it is detected that the first electronic device is disconnected from the second electronic device. And the first electronic equipment continues playing the audio data through the loudspeaker. In this way, the flexibility of the scheme can be increased.
According to the first aspect, in yet another possible implementation manner, after the first electronic device establishes a point-to-point direct connection with a mobile device, the first electronic device sends a first notification message to a third electronic device; the first notification message includes 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. Therefore, the third electronic equipment can be used as the central equipment to know the connection condition between the equipment in time.
According to the first aspect, in yet another possible implementation manner, after the first electronic device disconnects the point-to-point direct connection with the mobile device, the first electronic device sends a second notification message to a third electronic device; the second notification message includes an identifier of the mobile device, an identifier 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 the central equipment to know the connection condition between the equipment in time.
According to the first aspect, in yet another possible implementation manner, the first electronic device and the second electronic device access the same local area network. Therefore, the first electronic device and the second electronic device are both located in the same local area network, and the second electronic device can send messages to the first electronic device in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
In yet another possible implementation form of the first aspect, the point-to-point direct connection comprises one of a bluetooth connection, a Wi-Fi P2P connection and a ZigBee connection. In this way, the flexibility of the scheme may be increased.
According to the first aspect, in yet another possible implementation manner, the first electronic device is a smartphone.
In a second aspect, a method of communication is provided. The communication method is applied to the mobile equipment. The mobile device includes a processor and a memory. In the method, after detecting that the mobile device and the first electronic device are disconnected from point-to-point direct connection, 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 establishing a point-to-point direct connection with the second electronic device; the first response message is associated with the first request message. After receiving all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device. Because the mobile device broadcasts the first request message after disconnecting from the first electronic device, the second electronic device can be connected with the mobile device, and a foundation is laid for establishing indirect connection between the second electronic device and the first electronic device.
According to the second aspect, in yet another possible implementation manner, after detecting that the mobile device and the second electronic device are disconnected from the point-to-point direct connection, the mobile device broadcasts a second request message; the 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 form according to the second aspect, the mobile device is a bluetooth headset.
In a third aspect, a method of communication is provided. The communication method is applied to the second electronic equipment. The second electronic device includes a processor and a memory. The second electronic device, the first electronic device and the third electronic device are connected to the same local area network. In the method, a second electronic device receives 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 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 for establishing point-to-point direct connection between the second electronic device and the mobile device. Receiving 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. The second electronic device informs other devices after establishing connection with the mobile device, so that a foundation is laid for the first electronic device to establish indirect connection with the mobile device through the second electronic device.
According to the third aspect, in yet another possible implementation manner, 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 comprises the identification of the second electronic device, the identification of the mobile device and second notification information that the second electronic device and the mobile device are disconnected from point-to-point direct connection. In this way, the connection state between the other device and the mobile device can be informed, so that the first electronic device can no longer send audio data to itself.
According to the third aspect, in yet another possible implementation manner, before receiving all or part of the unplayed content of the audio data from the first electronic device, the second electronic device establishes a local area network connection with the first electronic device. Therefore, the first electronic device and the second electronic device are both located in the same local area network, and the second electronic device can send messages to the first electronic device in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
According to the third aspect, in yet another possible implementation manner, after receiving a second reply message from the third electronic device or the first electronic device, the second electronic device disconnects a 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.
According to the third aspect, in another possible implementation manner, the second electronic device is a smart sound box.
In a fourth aspect, a method of communication is provided. The communication method is applied to the 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 accessed to 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 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 point-to-point direct connection. The third electronic equipment receives a second notification message from the first electronic equipment; the second notification message includes an identifier of the mobile device, an identifier 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 the identifier of the second electronic device, the identifier of the mobile device and first notification information for establishing point-to-point direct connection between the second electronic device and the mobile device. The third electronic equipment sends a first message to the first electronic equipment; the first message is used for instructing the second electronic equipment to establish point-to-point direct connection with the mobile equipment. Since the first message is sent to the device having the pairing relationship with the identifier of the mobile device through the third electronic device, the device having the pairing relationship with the identifier of the mobile device can establish an indirect connection relationship with the mobile device through the second electronic device.
According to the fourth aspect, in yet another possible implementation manner, a second notification message sent from the second electronic device is received; the second notification message comprises the identification of the second electronic device, the identification of the mobile device and second notification information that the second electronic device and the mobile device are disconnected from point-to-point direct connection. Therefore, the third electronic equipment can know the connection condition between the second electronic equipment and the mobile equipment.
According to the fourth aspect, in another possible implementation manner, 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 be made aware of the connection between the second electronic device and the mobile device, and thus can stop sending audio data when the second electronic device is disconnected from the mobile device.
According to the fourth aspect, in another possible implementation manner, the second electronic device is a smart television.
In a fifth aspect, a method of communication is provided. The communication method is applied to the first electronic equipment. 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 in a point-to-point direct connection mode, the first electronic equipment pauses playing of the audio data and records a first pause mark; or after the first electronic device detects that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device. The first electronic device receives a first message after detecting that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, wherein the first message is used for indicating that the second electronic device discovers the mobile device. The first electronic equipment responds to the first message, and the first electronic equipment sends all or part of audio data subsequent to the first pause mark to the second electronic equipment; or, the first electronic device responds to the first message, the first electronic device does not continue playing through the loudspeaker any more, and all or part of the unplayed content of the audio data is sent to the second electronic device. Because it can be determined that the second electronic device has the capability of establishing connection with the mobile device based on the first message, and the mobile device is a device having a pairing relationship with itself, the first electronic device can send audio data to the second electronic device, so that the second electronic device sends the audio data to the mobile device, and thus, 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, before the first electronic device sends all or part of the audio data subsequent to the first pause marker 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.
According to the fifth aspect, in another possible implementation manner, before the first electronic device sends all or part of the unplayed content of the audio data to the second electronic device without continuing to play through the speaker, 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.
According to the fifth aspect, in yet another possible implementation manner, the first electronic device establishes a network connection with the second electronic device; the method comprises the following steps: and the first electronic equipment and the second electronic equipment establish local area network connection. Therefore, the first electronic device and the second electronic device are both located in the same local area network, and the second electronic device can send messages to the first electronic device in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
According to the fifth aspect, in yet another possible implementation manner, the receiving the first message includes: a message is received from the second electronic device or the third electronic device. And responding to the message, and determining that the message is the first message after acquiring the identifier of the mobile equipment from the message. According to the fifth aspect, in yet another possible implementation manner, after acquiring the identifier of the mobile device from the message, the message is determined to be the first message; the method comprises the following steps: and after acquiring the identifier of the mobile equipment and the identifier of the second electronic equipment from the message, determining that the message is the first message. According to the fifth aspect, in another possible implementation manner, after the identifier of the mobile device, the identifier of the second electronic device, and the indication information of the mobile device are acquired from the message, it is determined that the message is the first message. In this way, the manner of determining the first message can be increased, and thus the flexibility of the scheme can be improved.
In a further possible implementation manner, after detecting that the first electronic device is disconnected from the second electronic device through the network, the first electronic device suspends playing the audio data and records a second suspension mark. Therefore, the service connection can be realized after the mobile equipment is connected with the first electronic equipment again.
According to the fifth aspect, in another possible implementation manner, after it is detected that the first electronic device is disconnected from the second electronic device. And the first electronic equipment continues playing the audio data through the loudspeaker. In this way, the flexibility of the scheme can be increased.
According to the fifth aspect, in yet another possible implementation manner, after the first electronic device establishes a point-to-point direct connection with a mobile device, the first electronic device sends a first notification message to a third electronic device; the first notification message includes 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. Therefore, the third electronic equipment can be used as the central equipment to know the connection condition between the equipment in time.
According to the fifth aspect, in another possible implementation manner, after the first electronic device and the mobile device are disconnected from the point-to-point direct connection, the first electronic device sends a second notification message to a third electronic device; the second notification message includes an identifier of the mobile device, an identifier 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 the central equipment to know the connection condition between the equipment in time.
According to the fifth aspect, in another possible implementation manner, the first electronic device and the second electronic device access the same local area network. Therefore, the first electronic device and the second electronic device are both located in the same local area network, and the second electronic device can send messages to the first electronic device in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
According to the fifth aspect, in a further possible implementation, the point-to-point direct connection comprises 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.
According to the fifth aspect, in another possible implementation manner, the first electronic device is a smartphone.
In a sixth aspect, a method of communication is provided. The communication method is applied to the second electronic equipment. The second electronic device includes a processor and a memory. The second electronic device, the first electronic device and the third electronic device are connected to the same local area network. 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, where the first notification message includes an identifier of the second electronic device, an identifier of the mobile device, and information indicating that the second electronic device discovered the mobile device. The second electronic device establishes a point-to-point direct connection with the mobile device. Receiving 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. The second electronic device informs other devices after discovering the mobile device, so that a foundation is laid for the first electronic device to establish indirect connection with the mobile device through the second electronic device, and further, the second electronic device sends the received audio data from the first electronic device to the mobile device, so that the first electronic device can establish indirect connection with the mobile device through the second electronic device.
According to the sixth aspect, in yet another possible implementation manner, 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 comprises the identification of the second electronic device, the identification of the mobile device and second notification information that the second electronic device and the mobile device are disconnected from point-to-point direct connection. In this way, the connection state between the other device and the mobile device can be informed, so that the first electronic device can no longer send audio data to itself.
According to the sixth aspect, in a further possible implementation manner, before all or part of unplayed content of the audio data from the first electronic device is received, the second electronic device establishes a local area network connection with the first electronic device. Therefore, the first electronic device and the second electronic device are both located in the same local area network, and the second electronic device can send messages to the first electronic device in a broadcast or multicast mode, so that the flexibility of the scheme can be improved.
According to the sixth aspect, in yet another possible implementation manner, after receiving a second reply message from the third electronic device or the first electronic device, the second electronic device disconnects a 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.
According to the sixth aspect, in another possible implementation manner, the second electronic device is a smart sound box.
In a seventh aspect, a method of communication is provided. The communication method is applied to the 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 accessed to 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 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 point-to-point direct connection. The third electronic equipment receives a second notification message from the first electronic equipment; the second notification message includes an identifier of the mobile device, an identifier 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 the identification of the second electronic device, the identification of the mobile device, and the second electronic device and indication information for indicating that the second electronic device discovers the mobile device. The third electronic equipment sends a first message to the first electronic equipment; the first message is used for indicating the second electronic equipment to discover the indication information of the mobile equipment. Since the first message is sent to the device having the pairing relationship with the identifier of the mobile device through the third electronic device, the device having the pairing relationship with the identifier of the mobile device can establish an indirect connection relationship with the mobile device through the second electronic device.
According to the seventh aspect, in yet another possible implementation manner, a second notification message sent from the second electronic device is received; the second notification message comprises the identification of the second electronic device, the identification of the mobile device and second notification information that the second electronic device and the mobile device are disconnected from point-to-point direct connection. Therefore, the third electronic equipment can know the connection condition between the second electronic equipment and the mobile equipment.
According to the seventh aspect, in another possible implementation manner, 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 be made aware of the connection between the second electronic device and the mobile device, and thus can stop sending audio data when the second electronic device is disconnected from the mobile device.
According to the seventh aspect, in another possible implementation manner, the second electronic device is a smart television.
In an eighth aspect, a method of communication is provided. The communication method is applied to the first electronic equipment, the second electronic equipment, the third electronic equipment and the mobile equipment. 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. And the first electronic equipment plays audio data through the mobile equipment. The first electronic equipment sends a first notification message to the third electronic equipment; 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 point-to-point direct connection. The third electronic device receives the first notification message from the first electronic device.
After detecting that the first electronic equipment is disconnected from the mobile equipment in a point-to-point direct connection mode, the first electronic equipment sends a second notification message to the third electronic equipment; the second notification message includes an identifier of the mobile device, an identifier 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 the first electronic equipment detects that the first electronic equipment and the mobile equipment are disconnected from point-to-point direct connection, the first electronic equipment pauses playing the audio data and records a first pause mark. Or after the first electronic device detects that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device.
The mobile equipment broadcasts a first request message after detecting that the mobile equipment and the first electronic equipment are disconnected from point-to-point direct connection; 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 the mobile device. The second electronic device sends a first response message to the mobile device, the first response message being associated with the first request message. The mobile device is receiving 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 the identifier of the second electronic device, the identifier of the mobile device and first notification information for establishing point-to-point direct connection between the second electronic device and the mobile device. The third electronic device receives a first notification message from the second electronic device. The third electronic equipment sends a first message to the first electronic equipment; the first message is used for instructing the second electronic equipment to establish point-to-point direct connection with the mobile equipment.
The first electronic device receives a first message. The first electronic device, in response to the first message, sends all or part of the audio data subsequent to the first pause tag to the second electronic device. Or, 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 without continuing to play through the speaker.
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 the mobile equipment receives all or part of the unplayed content of the audio data, the mobile equipment plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
For technical effects and related descriptions corresponding to the eighth aspect, reference may be made to technical effects corresponding to any one of the first aspect, the second aspect, the third aspect, and the fourth aspect or any implementation manner of any one of the first aspect, and no further description is provided here.
In a ninth aspect, a method of communication is provided. The communication method is applied to the first electronic equipment, the second electronic equipment, the third electronic equipment and the mobile equipment. 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. And the first electronic equipment plays audio data through the mobile equipment. The first electronic equipment sends a first notification message to the third electronic equipment; 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 point-to-point direct connection. The third electronic device receives the first notification message from the first electronic device.
After detecting that the first electronic equipment is disconnected from the mobile equipment in a point-to-point direct connection mode, the first electronic equipment sends a second notification message to the third electronic equipment; the second notification message includes an identifier of the mobile device, an identifier 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 the first electronic equipment detects that the first electronic equipment and the mobile equipment are disconnected from point-to-point direct connection, the first electronic equipment pauses playing the audio data and records a first pause mark. Or after the first electronic device detects that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device.
The mobile equipment broadcasts a first request message after detecting that the mobile equipment and the first electronic equipment are disconnected from point-to-point direct connection; 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 the mobile device.
The second electronic device sends a first notification message to the third electronic device, the first notification message including an identification of the second electronic device, an identification of the mobile device, and information indicating that the second electronic device discovered the mobile device. The third electronic device receives a first notification message from the second electronic device.
The third electronic equipment sends a first message to the first electronic equipment; the first message is used to indicate that the second electronic device 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, in response to the first message, sends all or part of the audio data subsequent to the first pause tag to the second electronic device. Or, 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 without continuing to play through the speaker.
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 the mobile equipment receives all or part of the unplayed content of the audio data, the mobile equipment plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
For technical effects and related descriptions corresponding to the ninth aspect, reference may be made to any one of the second aspect, the fifth aspect, the sixth aspect, and the seventh aspect or any implementation manner of any one of the second aspect, and no further description is provided herein.
In a tenth aspect, a method of communication is provided. The communication method is applied to the first electronic equipment, the second electronic equipment and the mobile equipment. And the second electronic equipment and the first electronic equipment are accessed to the same local area network. In the method, a first electronic device establishes a point-to-point direct connection with a mobile device. And the first electronic equipment plays audio data through the mobile equipment.
And after the first electronic equipment detects that the first electronic equipment and the mobile equipment are disconnected from point-to-point direct connection, the first electronic equipment pauses playing the audio data and records a first pause mark. Or after the first electronic device detects that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device.
The mobile equipment broadcasts a first request message after detecting that the mobile equipment and the first electronic equipment are disconnected from point-to-point direct connection; 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 the mobile device. The second electronic device sends a first response message to the mobile device, the first response message being associated with the first request message. The mobile device is receiving 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 equipment sends a first message to the first electronic equipment; the first message is used for instructing the second electronic equipment to establish point-to-point direct connection with the mobile equipment. The first electronic device receives a first message, wherein the first message is used for indicating that the mobile device establishes a point-to-point direct connection with a second electronic device.
The first electronic device, in response to the first message, sends all or part of the audio data subsequent to the first pause tag to the second electronic device. Or, the first electronic device responds to the first message, the first electronic device does not continue playing through the loudspeaker any more, and all or part of the unplayed content of the audio data is sent 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 the mobile equipment receives all or part of the unplayed content of the audio data, the mobile equipment plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
For technical effects and related descriptions corresponding to the tenth aspect, reference may be made to technical effects corresponding to any one of the first aspect, the second aspect, the third aspect, and the fourth aspect or any implementation manner of any one of the first aspect, the second aspect, the third aspect, and the fourth aspect, and no further description is provided here.
In an eleventh aspect, a method of communication is provided. The communication method is applied to the first electronic equipment, the second electronic equipment and the mobile equipment. And the second electronic equipment and the first electronic equipment are accessed to the same local area network. In the method, a first electronic device establishes a point-to-point direct connection with a mobile device. And the first electronic equipment plays audio data through the mobile equipment.
And after the first electronic equipment detects that the first electronic equipment and the mobile equipment are disconnected from point-to-point direct connection, the first electronic equipment pauses playing the audio data and records a first pause mark. Or after the first electronic device detects that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device.
The mobile equipment broadcasts a first request message after detecting that the mobile equipment and the first electronic equipment are disconnected from point-to-point direct connection; 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 the mobile device. The second electronic equipment sends a first message to the first electronic equipment; the first message is used to indicate that the second electronic device 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, in response to the first message, sends all or part of the audio data subsequent to the first pause tag to the second electronic device. Or, the first electronic device responds to the first message, the first electronic device does not continue playing through the loudspeaker any more, and all or part of the unplayed content of the audio data is sent 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 the mobile equipment receives all or part of the unplayed content of the audio data, the mobile equipment plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
For a technical effect and related introduction corresponding to the eleventh aspect, reference may be made to a technical effect corresponding to any one of the second aspect, the fifth aspect, the sixth aspect, and the seventh aspect or any one implementation manner of any one of the second aspect, and details are not repeated here.
The present application also provides a communication apparatus corresponding to any one of the communication methods of the first aspect to the seventh aspect. The communication device may be any transmitting device or receiving device that performs data transmission in a wireless manner. During communication, the device on the transmitting side and the device on the receiving side 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 for the first electronic device; in some communication processes, the communication device may be used as the second electronic device or a communication chip for the second electronic device; in some communication processes, the communication device may be used as the third electronic device or a communication chip for the third electronic device.
In a twelfth aspect, a communication device is provided, which includes a communication unit and a processing unit to execute any implementation manner of any one of the communication methods of the first aspect to the eleventh aspect. The communication unit is used to perform functions related to transmission and reception. Optionally, the communication unit comprises 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 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 includes various modules operable to perform any one of the embodiments of any one of the communication methods of the first aspect to the seventh aspect.
In a thirteenth aspect, a communication apparatus is provided, where the communication apparatus is the mobile device, the first electronic device, the second electronic device, or the third electronic device. The communication device includes a processor and a memory. Optionally, the communication device further comprises a transceiver, wherein the memory is used for storing a computer program or instructions, and the processor is used for calling and executing the computer program or instructions from the memory, and when the processor executes the computer program or instructions in the memory, the communication device is enabled to execute any implementation mode of any communication method of the first aspect to the seventh aspect.
Optionally, the number of the processors is one or more, and the number of the memories is one or more.
Alternatively, the memory may be integrated with the processor, or may be provided separately from the processor.
Optionally, the transceiver may include a transmitter (transmitter) and a receiver (receiver).
In a fourteenth aspect, a communication apparatus is provided, where the communication apparatus 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, the processor being coupled to the communication interface.
In one implementation, the communications apparatus is a mobile device. When the communication device is a mobile device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transmit-receive 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 device is a first electronic device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transmit-receive 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 device is a second electronic device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transmit-receive 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 device is a third electronic device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transmit-receive 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 of chips. When the communication device is a chip or a system of chips, the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or related circuit, etc. on the chip or the system of chips. The processor may also be embodied as a processing circuit or a logic circuit.
In a fifteenth aspect, a system is provided, which includes the above-mentioned mobile device, first electronic device, second electronic device, and third electronic device.
The first electronic 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 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 and the mobile equipment are disconnected from point-to-point direct connection, the first electronic equipment pauses playing the audio data and records a first pause mark; or after the first electronic device detects that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, 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 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 equipment responds to the first message, and the first electronic equipment sends all or part of audio data subsequent to the first pause mark to the second electronic equipment; or, the first electronic device responds to the first message, the first electronic device does not continue playing through the loudspeaker any more, and all or part of the unplayed content of the audio data is sent to the second electronic device.
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 and the first electronic device are disconnected from point-to-point direct connection, 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 establishing a point-to-point direct connection with the second electronic device; the first response message is associated with the first request message. After receiving all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
The second electronic device 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 second electronic device to perform the steps of: the second electronic equipment receives a first request message from the mobile equipment; 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 for establishing point-to-point direct connection between the second electronic device and the mobile device. Receiving 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.
The third electronic 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 third electronic device to perform the steps of: the third electronic equipment receives a first notification message from the first electronic equipment; 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 point-to-point direct connection. The third electronic equipment receives a second notification message from the first electronic equipment; the second notification message includes an identifier of the mobile device, an identifier 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 the identifier of the second electronic device, the identifier of the mobile device and first notification information for establishing point-to-point direct connection between the second electronic device and the mobile device. The third electronic equipment sends a first message to the first electronic equipment; the first message is used for instructing the second electronic equipment to establish point-to-point direct connection with the mobile equipment.
In a sixteenth aspect, a system is provided, which includes the above mobile device, the first electronic device, the second electronic device, and the third electronic device.
The first electronic 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 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 the first electronic equipment detects that the first electronic equipment is disconnected from the mobile equipment in a point-to-point direct connection mode, the first electronic equipment pauses playing of the audio data and records a first pause mark; or after the first electronic device detects that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, the first electronic device continues to play the audio data through a loudspeaker of the first electronic device. The first electronic device receives a first message after detecting that the first electronic device is disconnected from the mobile device in a point-to-point direct connection manner, wherein the first message is used for indicating that the second electronic device discovers the mobile device. The first electronic equipment responds to the first message, and the first electronic equipment sends all or part of audio data subsequent to the first pause mark to the second electronic equipment; or, the first electronic device responds to the first message, the first electronic device does not continue playing through the loudspeaker any more, and all or part of the unplayed content of the audio data is sent to the second electronic device.
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 and the first electronic device are disconnected from point-to-point direct connection, 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 establishing a point-to-point direct connection with the second electronic device; the first response message is associated with the first request message. After receiving all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
The second electronic device 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 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, where the first notification message includes an identifier of the second electronic device, an identifier of the mobile device, and information indicating that the second electronic device discovered the mobile device. The second electronic device establishes a point-to-point direct connection with the mobile device. Receiving 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.
The third electronic 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 third electronic device to perform the steps of: the third electronic equipment receives a first notification message from the first electronic equipment; 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 point-to-point direct connection. The third electronic equipment receives a second notification message from the first electronic equipment; the second notification message includes an identifier of the mobile device, an identifier 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 the identification of the second electronic device, the identification of the mobile device, and the second electronic device and indication information for indicating that the second electronic device discovers the mobile device. The third electronic equipment sends a first message to the first electronic equipment; the first message is used for indicating the second electronic equipment to discover the indication information of the mobile equipment.
A seventeenth aspect provides 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 of the first to third aspects described above, or causes the computer to perform the method of any of the implementations of the first to seventh aspects described above.
For technical effects corresponding to any one implementation manner of the seventeenth aspect and the seventeenth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect to the seventh aspect, and details of the technical effects are not repeated here.
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 of the first to seventh aspects described above, or causes a computer to perform the method of any of the implementations of the first to seventh aspects described above.
For technical effects corresponding to any one implementation manner of the eighteenth aspect and the eighteenth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect to the seventh aspect, and details of the technical effects are not repeated here.
Drawings
Fig. 1a is a schematic view of an application scenario applicable to the embodiment of the present application;
fig. 1b is a schematic view 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 disclosure;
fig. 2b is a schematic structural diagram of an electronic device 200 according to an embodiment of the present disclosure;
fig. 3a is a schematic flowchart of a communication method according to an embodiment of the present application;
fig. 3b is a schematic flowchart of another communication method provided in the embodiment of the present application;
fig. 4a is a schematic flowchart of another communication method provided in the embodiment of the present application;
fig. 4b is a schematic flowchart of another communication method provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of a method for establishing a point-to-point direct connection between a mobile phone and an earphone in a communication method according to an embodiment of the present application;
fig. 6 is a schematic flowchart illustrating a bluetooth connection between a mobile phone and an earphone in a communication method according to an embodiment of the present application;
fig. 7 is a schematic flow chart illustrating connection establishment between a mobile phone and a smart speaker in a communication method according to an embodiment of the present application;
fig. 8 is a schematic flowchart illustrating a disconnection between the mobile phone and the smart speaker in the communication method according to the embodiment of the present application;
FIG. 9 is a block diagram illustrating an architecture of an end-to-end communication model across physical networks 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 solution in the embodiments of the present application is 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 following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of the present application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present application, "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 that associates objects, meaning that three relationships may exist; for example, a and/or B, may represent: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this 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 present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated 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 otherwise noted. "first" and "second" 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 "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Fig. 1a and fig. 1b are schematic diagrams of an application scenario applicable to the embodiment of the present application.
As shown in fig. 1a, the mobile device 100 and the electronic device 200 are both located in a bedroom 01, in fig. 1a, the mobile device 100 (shown in the figure by taking the mobile device 100 as a bluetooth headset) is connected with the electronic device 200 (shown in the figure by taking the electronic device 200 as a mobile phone) through bluetooth, and audio data of the electronic device 200 is played, so that a user can hear 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, and as shown in fig. 1b, the bluetooth connection between the mobile device 100 and the electronic device 200 may be disconnected due to wall blockage or increased distance as the mobile device 100 moves to the living room 02. On the other hand, the mobile device 100 moves to a position closer to the electronic device 300, and the mobile device 100 is bluetooth 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, since the mobile device 100 moves along with the user, the bluetooth connection may be disconnected from the electronic device 200, so that the user can no longer hear the sound from the electronic device 200 through the mobile device 100.
In order to solve the above technical problem, the embodiment of the present application proposes two schemes, namely scheme a and scheme B. Which will be described separately below.
(1) Scheme A
As shown in fig. 1a, the solution a further relates to an electronic device 400 (the electronic device 400 is shown as an example of an intelligent electronic device). The electronic device 400 may be understood as a central device, and the electronic device 200 and the electronic device 300 both report respective information (such as an identifier, a connection status with other devices, and a relevant status of a running service) to the electronic device 400.
In the scenario shown in fig. 1a, the electronic device 200 may report the identifier of the mobile device 100 connected to the electronic device 200 to the electronic device 400, and after receiving the information, the electronic device 400 may determine that the electronic device 200 and the mobile device 100 are in a connected state. 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 after receiving the information, the electronic device 400 may determine that the electronic device 200 is in a disconnected state with the mobile device 100.
On the other hand, in the scenario shown in fig. 1b, after the electronic device 300 establishes 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 may determine that the electronic device 300 is in a connection 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 with which the mobile device 100 is bluetooth connected to the electronic device 200. Furthermore, the electronic device 200 sends the audio data to the electronic device 300, and the electronic device 300 forwards the audio data to the mobile device 100, so that after the mobile device 100 is disconnected from the electronic device 200 by bluetooth, the mobile device 100 can continue to play the audio data from the electronic device 200 by the scheme, and the user can continue to listen to the sound from the electronic device 200 through the mobile device 100.
(2) Scheme B
Scenario 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 the bluetooth connection with the electronic device 300, the electronic device 300 may notify the electronic device 200 in a broadcast or multicast manner. The electronic device 200 then transmits the audio data to the electronic device 300, and the electronic device 300 forwards the audio data to the mobile device 100. In this way, after the mobile device 100 is disconnected from the electronic device 200 by bluetooth, the mobile device 100 can continue to play the audio data from the electronic device 200 by this scheme, so that the user continues to listen to the sound from the electronic device 200 through the mobile device 100.
The scheme a and the scheme B provided based on the above embodiment of the present application exemplify:
the service performed by the electronic device 200 is music playing, and when the mobile device 100 is connected to the electronic device 200 via bluetooth, the user can listen to music from the electronic device 200 via the mobile device 100. When the mobile device 100 is disconnected from the electronic device 200, the mobile device 100 stops the current music playing service. After the bluetooth connection between the mobile device 100 and the electronic device 300 and the connection between the electronic device 300 and the electronic device 200 are established, the electronic device 200 may continue to perform the music playing service and transmit 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, according to the scheme provided in the embodiment of the present application, when the mobile device 100 and the electronic device 200 are disconnected from each other by bluetooth, the electronic device 300 realizes indirect connection between the mobile device 100 and the electronic device 200, so that service connection can be realized.
Fig. 2a schematically illustrates a hardware structure of a mobile device 100 provided in 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 charging management module 140, a power management module 141, a battery 142, a wireless communication module 150, an antenna 160, and the like.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a Neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can be, among other things, a neural center and a command center of the mobile device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in 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 have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The internal memory 121 may be used to store computer-executable program code, which includes 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.
Mobile device 100 may implement audio functions through audio module 125, speaker 125A, microphone 125B, and application processor, among other things. Such as music playing, recording, etc.
The keys 122 include a power-on key, a volume key, and the like. The keys may be mechanical keys. Or may be touch keys. The mobile device 100 may receive a key input, and generate a key signal input related to user setting and function control of the mobile device 100.
The indicator 124 may be an indicator light, and may be used to indicate a charging status, a change in power, or a message, a missed call, a notification, etc.
The mobile device 100 also includes a charge management module 140 for receiving charging input from a 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 to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives an input of the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the wireless communication module 150, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging 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 for transmitting and receiving electromagnetic wave signals. Each antenna in mobile device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the cellular network antenna may be multiplexed into a wireless local area network diversity antenna. 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 applied to the mobile device 100, including Bluetooth (BT), Near Field Communication (NFC), Infrared (IR), Wi-Fi, ZigBee, and the like. The wireless communication module 150 may be one or more devices integrating at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via the antenna 160, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. Wireless communication module 150 may also receive signals to be transmitted from processor 110, frequency modulate them, amplify them, and convert them to electromagnetic radiation via antenna 160. In this embodiment, the wireless communication module 150 is configured to transmit the voice of the first user and the machine voice of the target language after the translation, or transmit the voice of the target language and the machine voice of the first language after the translation by the opposite user.
In some embodiments, the antenna 160 and the wireless communication module 150 are coupled such that the mobile device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include BT, NFC, ZigBee, Wi-Fi, and/or IR technology, among others.
It is to be understood that the structure illustrated in fig. 2a does not constitute a specific limitation of the mobile device 100. In other embodiments of the present application, the mobile device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Fig. 2b schematically shows a hardware structure of an electronic device 200 provided in 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 charging 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, a key 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, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, and the like.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a Neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 200. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in 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 have just been used or recycled by processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
Also included is a charge management module 240 for receiving charging input from the charger. The charging management module 240 may also supply power to the electronic device 200 through the power management module 241 while charging the battery 242.
The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260. The power management module 241 may also be used to monitor parameters such as battery capacity, battery cycle number, battery state of health (leakage, impedance), etc. In some 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 charging management module 240 may be disposed in the same device.
The wireless communication function of the electronic device 200 may be implemented by the antenna module 1, the antenna module 2, the mobile communication module 250, the wireless communication module 160, a modem processor, a baseband processor, and the like.
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 can also be multiplexed to improve the utilization of the antennas. For example: the cellular network antenna may be multiplexed into a wireless local area network diversity antenna. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution including 2G/3G/4G/5G wireless communication applied on the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 250 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. 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 disposed 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 a 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 passes the demodulated low frequency baseband signal to a 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 the speaker 270A, the receiver 270B, etc.) or displays images or video through the display screen 294. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 210, and may be disposed in the same device as the mobile communication module 250 or other functional modules.
The wireless communication module 260 may provide a solution for wireless communication applied to the electronic device 200, including Wireless Local Area Networks (WLANs), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), Wi-Fi P2P, and ZigBee. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on 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 and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves. In this embodiment, the wireless communication module 260 is configured to transmit the voice of the first user and the machine voice of the target language after the translation, or transmit the voice of the target language and the machine voice of the first language after the translation from the opposite user.
In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250 and antenna 2 is coupled to wireless communication module 260, such that electronic device 200 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 200 implements display functions via the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel. The display panel may be 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 (active-matrix organic light-emitting diode), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 200 may include 1 or N display screens, 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 shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, including 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 program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, a phone book, etc.) created during use of the electronic device 200, and the like. In addition, 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 (UFS), and the like.
Electronic device 200 may implement audio functions via audio module 270, speaker 270A, receiver 270B, microphone 270C, headset interface 270D, and an application processor, among other things. Such as music playing, recording, etc.
The electronic device 200 also includes sensors such as a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, an ambient light sensor 280L, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, a bone conduction sensor 280M, and the like.
The pressure sensor 280A is used to sense a pressure signal, which can be converted into an electrical signal. In some embodiments, the pressure sensor 280A may be disposed on the display screen 294. The pressure sensor 280A can be of a wide variety of 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 sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device 200 determines the intensity of the pressure from the change in capacitance. When a touch operation is applied to the display screen 294, the electronic apparatus 200 detects the intensity of the touch operation according to the pressure sensor 280A. The electronic apparatus 200 may also calculate the touched position from the detection signal of the pressure sensor 280A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The touch sensor 280K is also referred to as a "touch panel". May be provided on the display screen 294. For detecting a touch operation acting thereon or thereabout. The detected touch operation may be passed to the application processor to determine the type of touch event and provide a corresponding visual output via the display screen 294. In other embodiments, the touch sensor 280K can be disposed on a surface of the electronic device 200 at a different location than the display screen 294. In the embodiment of the application, the touch panel is used for receiving touch operations such as a first operation, a confirmation operation of the language setting control, a closing operation, and an exit operation.
The keys 290 include a power-on key, a volume key, etc. The keys may be mechanical keys. Or may be touch keys. The electronic apparatus 200 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 200.
The motor 291 may generate a vibration cue. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc. The SIM card interface 295 is used to connect a 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 in detail 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 electronic device 200, and details are not repeated. The hardware structure of electronic device 300 may include more or fewer components than electronic device 200 shown in fig. 2b, or some components may be combined, some components may be split, 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 with a wireless communication function (e.g., a smart watch, a smart bracelet, a smart ring, and smart glasses), 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 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 the mobile device 100, the electronic device 200, the electronic device 300, and the electronic device 400 may include, but is not limited to:
Figure BDA0002923404040000221
windows, Linux, or other operating systems.
It is to be understood that the structure illustrated in fig. 2b does not constitute a specific limitation of the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Based on the contents shown in fig. 1a to fig. 2b, fig. 3a exemplarily shows a flow of a communication method provided by an embodiment of the present application. In order to more clearly describe the solutions provided in the embodiments of the present application, the mobile device 100 is taken as an earphone, the electronic device 200 is taken as a mobile phone, the electronic device 300 is taken as a smart speaker, and the electronic device 400 is taken as a smart television. It should be noted that the electronic device 200 in the embodiment of the present application may be the first electronic device in the foregoing description, the electronic device 300 may be the second electronic device in the foregoing description, the electronic device 400 may be the third electronic device in the foregoing description, and the mobile device 100 may be the mobile device in the foregoing description.
As shown in fig. 3a, the method comprises:
s301, a point-to-point direct connection is established 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 establish point-to-point connection based on technologies such as Bluetooth (BT), wireless fidelity (Wi-Fi) P2P, ZigBee and the like.
S302, the mobile phone may send a first notification message to the smart television, where the first notification message may include a mobile phone Identifier (ID), an earphone ID, and first notification information that the mobile phone and the earphone establish a point-to-point direct connection.
The ID of the headset may include, for example, at least one of a Media 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 (MAC) address, a device name, a combination of an IP address and a port number, and the like.
In yet another possible implementation, the first notification message may further include a protocol used for indicating that a point-to-point direct connection is established between the handset and the headset, for example, a bluetooth connection is established between the handset and the headset, and then the first notification message may further include indication information used for indicating that the point-to-point direct connection between the handset and the headset is based on the bluetooth protocol. The first notification message may further include indication information for indicating that the mobile phone and the headset have a bluetooth pairing relationship.
Optionally, the first notification message may further include information related to the service being performed by the mobile phone, such as a service identifier (e.g., playing music), a service status (e.g., currently being performed), and so on.
In the embodiment of the application, the smart television can be used as a central device. In a possible implementation manner, all the 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 (for example, an ID of a device having a pairing relationship with the device itself, a connection relationship between the device and another device at present, a service executed by the device itself, and the like). For example, the mobile phone, the smart television and the smart speaker are in the same local area network, the mobile phone and the smart speaker report their own information to the smart television, and the mobile phone may also report an identifier of a device (e.g., an identifier of an earphone) that is in a pairing relationship with the mobile phone to the smart television. The smart sound box can also report the identification of the equipment which has the pairing relationship with the smart sound box to the smart television.
And S303, the mobile phone sends the audio data to the earphone.
The user can operate on the handset to open a service (such as playing music) on the handset. The mobile phone receives an input from a user, and can respond to the input to start a music playing service and send audio data corresponding to music 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 performed an operation before S301, such as touching a touch screen or a button of a mobile phone to start a service of playing music. In this case, after the connection is established between the headset and the handset through S301, there are two possible implementations: one is by default playing music with headphones; another is a pop-up cue, such as "is audio played through headphones? "the user operates the mobile phone, and when the user clicks" yes ", the mobile phone confirms that the audio data of the music is played through the earphone based on the input.
It should be noted that the above S302 and the above S303 have no absolute sequence, for example, S303 may be executed first, and then S302 may be executed.
S304, the earphone plays according to the received audio data.
Through S304, the user can listen to music played on the handset through the headset.
In one possible embodiment, as the earphone moves, the distance between the earphone and the mobile phone gradually increases, so that the earphone and the mobile phone port may be connected in S305.
S305, the earphone is disconnected with 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 disconnection between the mobile phone and the earphone.
In a possible embodiment, the handset pauses playing the audio data and records a first pause mark after detecting that the handset has disconnected a point-to-point direct connection with the headset. In yet another possible embodiment, the handset continues to play the audio data through a speaker of the handset.
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 smart sound box receives a first request message from the earphone.
Because the smart speaker can receive the signal of the earphone in S308, it can be reflected that the earphone is located within the range of the location area where the connection with the smart speaker can be established, and the smart speaker has the capability of establishing the connection with the earphone.
With respect to S307 and S308 above, in one possible implementation, the headset may periodically broadcast the first request message. The first request message may include an ID of the headset, and the smart speaker determines that the headset has moved into a location area range where a connection with the smart speaker can be established when receiving the information.
In another possible implementation, for the above S307 and S308, the smart speaker may discover the headset through a bluetooth discovery process. For example, the headset periodically sends a bluetooth identification message of the headset (the bluetooth identification message of the headset may include the ID of the headset). The smart speaker may periodically send a bluetooth identity packet of the smart speaker (the bluetooth identity packet of the smart speaker may include an ID of the smart speaker, and the ID of the smart speaker may be, for example, an MAC address, an equipment name, and the like of the smart speaker). When the earphone receives the bluetooth identity message of the smart speaker, a response message (the response message may be an FHS message, and the response message may be the first request message) is sent to the smart speaker, and when the smart speaker receives the response message, it is determined that the earphone is found by bluetooth.
And S309, establishing point-to-point direct connection between the intelligent sound box and the earphone.
In the embodiment of the application, the connection between the earphone and the intelligent sound box is a point-to-point direct connection. The point-to-point connection between the earphone and the intelligent sound box can be established based on the technologies of BT, Wi-Fi P2P, ZigBee and the like.
In one possible embodiment, the headset may establish a point-to-point direct connection with the smart speaker upon receiving a first response message from 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 television, where the first notification message may include an Identification (ID) of the smart speaker, an ID of the headset, and first notification information that the smart speaker and the headset establish a point-to-point direct connection.
The ID of the smart sound box may include, for example, at least one of a Media Access Control (MAC) address, a device name, a combination of an IP address and a port number, and the like.
In yet another possible implementation manner, the first notification message may further include a protocol used for indicating that the point-to-point direct connection between the smart speaker and the headset is established, for example, a bluetooth connection is used between the smart speaker and the headset, and then the first notification message may further include indication information used for indicating that the point-to-point direct connection between the smart speaker and the headset is based on the bluetooth protocol. The first notification message may further include indication information for indicating that the smart sound box and the headset have a bluetooth pairing relationship.
In yet another possible implementation manner, the first notification message may further include a Received Signal Strength Indicator (RSSI) value of a signal (e.g., an FHS message) of the earphone received by the smart speaker, where the RSSI value may reflect a proximity between the smart speaker and the earphone, or may be described as reflecting a distance between the smart speaker and the earphone according to the RSSI value. When the RSSI value is smaller, the distance between the intelligent sound box and the earphone is farther, and when the RSSI value is larger, the distance between the intelligent sound box and the earphone is closer.
S311, after receiving the first notification message, the smart television may determine the ID of the device that has been recently disconnected from the headset in the first notification message, so as to obtain the ID of the mobile phone.
In S311, in another possible implementation manner, after receiving the first notification message, the smart television may determine IDs of one or more devices (which may include IDs of mobile phones) that have a pairing relationship with the ID of the headset in the first notification message. The smart television may send the first message to only the device (cell phone) that has been recently disconnected from the headset, or may send the first message to at least one of the one or more devices that have been determined to 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 sound box. After the smart television sends the first message to the multiple devices, the subsequent process executed by each device is similar to the process executed by the mobile phone, which can be referred to as relevant content in subsequent S312 to S320.
S312, the smart television sends a first message to the mobile phone according to the determined ID of the mobile phone, where the first message may include an Identification (ID) of the smart speaker, an ID of the headset, and indication information used for indicating that the smart speaker and the headset establish a point-to-point direct connection.
In yet another possible implementation, the first message may further include a protocol used for indicating that the point-to-point direct connection between the smart speaker and the earphone is established, for example, a bluetooth connection is used between the smart speaker and the earphone, and then the first message may further include indication information used for indicating 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 smart sound box and the headset have a bluetooth pairing relationship.
S313, the mobile phone receives the first message from the smart television.
S314, the mobile phone determines whether the ID of the headset in the first message is: one of the IDs of one or more headsets having a pairing relationship with the handset.
If yes, go to S315 or S316. If not, the process may end.
Specifically, if the mobile phone is connected to the smart speaker through the lan and a TCP/IP protocol is used, S315 is executed; if the mobile phone and the smart sound box are connected to the local area network and the UDP protocol is used, S316 is executed.
In one possible embodiment, the handset stores an ID of a device having a pairing relationship with the handset. The handset may have a pairing relationship with one or more devices.
It should be noted that, the pairing relationship between two devices in the embodiment of the present application may refer to that the two devices have an authentication relationship, and may be understood as that the two devices have a relationship that mutual authentication succeeds, and the pairing relationship may be, for example, a bluetooth pairing relationship based on bluetooth technology.
In yet another possible implementation manner, the handset in S314 may determine whether an audio playing service (e.g., a music playing service) is currently paused (e.g., the music on the handset is played through the headset in S303, and the music playing service is paused after the headset is disconnected from the handset); and it is determined whether the ID of the device that is used to play the audio data of the audio playing service is the same as the ID of the headphone in the first message, if it is determined that an audio playing service (e.g., a music playing service) is currently suspended and the ID of the device that is used to play the audio data of the audio playing service is the same as the ID of the headphone in the first message, S315 or S316 is executed. Otherwise, the flow ends.
In yet another possible implementation, the handset in S314 may determine whether an audio playing service is currently being executed (for example, music on the handset is played through the headset in S303, and after the headset is disconnected from the handset, the music playing service is not paused, but music is played through the speaker of the handset itself); and it is determined whether the ID of the device that is used to play the audio data of the audio playing service is the same as the ID of the headphone in the first message, if it is determined that the audio playing service is currently being executed and the ID of the device that is used to play the audio data of the audio playing service is the same as the ID of the headphone in the first message, S315 or S316 is executed. Otherwise, the process is ended.
In yet another possible embodiment, there may be a step in S314 and the foregoing S311, for example, when there is the above S311, since the smart tv only sends the first message to the device having the pairing relationship with the headset, S314 may not need to be executed. In another possible embodiment, S311 may not be included, in which case, after receiving the first notification message, the smart tv may broadcast or multicast the first message in the local area network, so that the handset receives the first message.
In yet another possible embodiment, S314 may be replaced by an embodiment in which the handset receives a message from the smart speaker or the smart tv. And determining whether the message is the first message (namely whether the preset requirement of the first message is met) in the following way, and if the message is the first message, sending audio data to the smart sound box by the mobile phone. In one possible implementation manner, after obtaining the identifier of the headset from the message, the mobile phone may determine that the message is the first message. In another possible implementation manner, after obtaining the identifier of the earphone and the identifier of the smart speaker from the message, the mobile phone may determine that the message is the first message. In yet another possible implementation manner, after obtaining, from the message, the identifier of the headset, the identifier of the smart speaker, and the indication information that the headset and the smart speaker establish a point-to-point direct connection, the mobile phone may determine that the message is the first message.
And S315, establishing connection between the mobile phone and the intelligent sound box.
In the embodiment of the application, the connection between the mobile phone and the smart speaker can be established based on any one of the following technologies: wireless Local Area Networks (WLANs), wireless fidelity (Wi-Fi), global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time division multiple access (time-division code division multiple access, TD-SCDMA), global satellite navigation system and global navigation satellite system (global navigation satellite system, Long Term Evolution (LTE), fourth generation mobile networks (the 4G), fifth generation mobile networks (the 5G), sixth generation mobile networks (the 5G), and future mobile networks (the 6G), and so on. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
For example, the mobile phone and the smart speaker can be connected to the same local area network by connecting to the same router.
After S315, in one possible implementation, the handset may send a request message to the smart speaker. The request message is for requesting sharing of the headset. In a possible implementation manner, the smart speaker may directly send an acceptance message to the mobile phone, where the acceptance message is used to indicate that the mobile phone and the smart speaker are allowed to share the earphone. In another possible implementation, the smart sound box may display the prompt information on an interface of the smart sound box, for example, display on the interface of the smart sound box: "do you want to share the headset with the handset? ". The user can operate on the interface of the smart sound box so as to input information, if the input information is used for indicating that the mobile phone and the smart sound box are allowed to share the earphone, the smart sound box sends an acceptance message to the mobile phone, and the acceptance message is used for indicating that the smart sound box is allowed to share the earphone with the earphone.
After S315, in yet another possible implementation, the handset may send a notification message to the smart speaker, where the notification message may be used to notify the smart speaker to forward the received data from the handset to the headset. In yet another possible implementation, the notification message is used to notify the smart speaker to establish a correspondence (which may also be understood as binding two channels) between two connections (i.e., a connection between the smart speaker and the headset and a connection between the smart speaker and the mobile phone), so that after receiving data from the mobile phone, the subsequent smart speaker will forward the data to the headset.
In a possible implementation manner, after S315, the mobile phone may further send a notification message to the smart tv to notify that the smart tv mobile phone currently establishes a connection with the smart sound box. The notification message may include an ID of the smart speaker connected to the handset.
In yet another possible implementation, the notification message may further include: and at least one item of indication information or the ID of the mobile phone for indicating the connection between the mobile phone and the intelligent sound box.
In yet another possible implementation, the notification message may further include a means for instructing the handset to establish a connection with the smart speaker, such as a connection established based on Wi-Fi. Optionally, the notification message may also include information related to the service being performed by the mobile phone, such as a service identifier (e.g., playing music), a service status (e.g., currently being performed), and so on.
And S316, the mobile phone sends the audio data to the intelligent sound box.
In a possible embodiment, after the handset is disconnected from the headset in S305, after detecting that the handset is disconnected from the headset and the point-to-point direct connection is made, the handset suspends playing the audio data and records a first suspension flag. 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 smart sound box.
In another possible embodiment, after the handset is disconnected from the earphone in S305, the handset continues to play the audio data through the speaker of the handset. Correspondingly, in response to the first message, the mobile phone no longer continues to play through the speaker, and sends all or part of the unplayed content of the audio data to the smart sound box.
In one possible implementation, the audio data sent by the handset to the smart sound box may include a destination address. The destination address is the address of the intelligent sound box, and the audio data is forwarded to the earphone after the intelligent sound box receives the audio data.
In another possible implementation manner, the audio data sent by the mobile phone to the smart sound box may include two destination addresses, where one destination address is an address of the smart sound box, and the other destination address is an address of the earphone. The position of the address of the earphone in the data needs the mobile phone and the intelligent sound box to negotiate, 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 smart sound box and the smart sound box is connected with the earphone, the application layer of the mobile phone shows that the connection is established between the mobile phone and the earphone, namely for the application layer, the mobile phone knows that the connection is established between the mobile phone and the earphone. In this case, the audio may be output through the headphones by default. The application layer is not concerned about whether the connection between the earphone and the mobile phone is directly established at the bottom layer or the indirect connection between the earphone and the mobile phone is established through the intelligent sound box.
And S317, the intelligent sound box forwards the audio data from the mobile phone to the earphone.
In one possible implementation, when the smart sound box is connected to the earphone, the received audio data may be played through the earphone by default. In yet another possible implementation, a corresponding relationship between the two connections (i.e., the connection between the smart speaker and the earphone and the connection between the smart speaker and the mobile phone) may be established based on the notification message of the mobile phone, and the audio data received from the mobile phone may be further forwarded to the earphone according to the corresponding relationship.
And S318, the earphone plays according to the received audio data.
In one possible embodiment, the earphone plays all or part of the unplayed content of the audio data after receiving all or part of the unplayed content of the audio data from the smart sound box.
After S318, the mobile phone may be disconnected from the smart sound box, and an example of disconnecting the mobile phone from the smart sound box 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.
And S319, the smart sound box and the earphone are disconnected.
After S319, the headset may continue to broadcast the 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 a possible implementation manner, after S319, the smart sound box may further send a notification message to the smart tv to notify the smart tv to: the intelligent sound box is disconnected with the earphone currently. The notification message may include an ID of the headset that is disconnected from the smart speaker.
In another possible implementation manner, the notification message may further include: and at least one item of indication information for indicating disconnection between the smart speaker and the earphone and the ID of the smart speaker.
In yet another possible implementation, the notification message may further include a means for indicating disconnection between the smart sound box and the earphone; such as a bluetooth based disconnected connection.
S320, the intelligent sound box sends a second notification message to the mobile phone, wherein the second notification message comprises indication information used for indicating disconnection between the intelligent sound box and the earphone.
In another possible implementation manner, after receiving the indication information, which is reported by the smart sound box and used for indicating that the smart sound box is disconnected from the earphone, the smart television notifies the mobile phone that the smart sound box is disconnected from the earphone.
And S321, disconnecting the mobile phone and the intelligent sound box.
In a possible implementation manner, after S321, the mobile phone may further send a notification message to the smart tv to notify that the smart tv mobile phone is currently disconnected from the smart sound box. The notification message may include the ID of the smart speaker that was disconnected from the handset.
In yet another possible implementation, the notification message may further include: and at least one item of indication information used for indicating disconnection between the mobile phone and the intelligent sound box and the ID of the mobile phone.
In yet another possible implementation, the notification message may further include a means for indicating a disconnection between the handset and the smart speaker, such as a Wi-Fi based disconnection. Optionally, the notification message may also include information related to the service being performed by the mobile phone, such as a service identifier (e.g., playing music), a service status (e.g., currently being performed), and so on.
It should be noted that, in this embodiment of the present application, in a possible implementation manner, the mobile phone and the smart speaker are located in the same lan, and the mobile phone and the smart speaker are connected through a router. The above-mentioned S315 and S321 are not essential, and S315 and S321 are shown as dotted lines in the drawing. For example, when the mobile phone is based on a Transmission Control Protocol (TCP)/Internet Protocol (IP), the connection between the mobile phone and the smart speaker needs to be established through S315, and then the connection between the mobile phone and the smart speaker needs to be disconnected through S321. For another example, when the connection is established based on a User Datagram Protocol (UDP), the connection does not need to be established through S315, and when the mobile phone needs to send audio data to the smart speaker, the mobile phone can send the audio data to the smart speaker through the router; correspondingly, when the mobile phone does not need to send audio data to the smart sound box, the connection is not required to be disconnected through the S321.
In addition to the manners shown in S319 to S321, there may be other manners to disconnect the mobile phone from the smart speaker. For example, the handset receives an input indicating to stop playing audio data through the headphones. The user can operate on the mobile phone so as to disconnect the connection between the mobile phone and the smart sound box. For example, in one possible implementation, the user enters an action on the handset: the audio output mode of the mobile phone is selected to be the audio data played through the mobile phone, the mobile phone can determine that the audio data does not need to be played through the earphone based on the input, and then the mobile phone is disconnected with the intelligent sound box.
In another possible embodiment, when the connection between the handset and the smart speaker is disconnected, the handset may pause playing the audio data and record a second pause mark. Or the mobile phone can continue playing the audio data through the loudspeaker.
In the scheme shown in fig. 3a, in a possible implementation manner, when the connection is established between the smart speaker and the earphone, the connection may also be reported to the smart television. When the connection is established between the smart sound box and the mobile phone, the smart sound box and the mobile phone can also report to the smart television. When the connection between the intelligent sound box and the earphone is disconnected, the intelligent sound box can report to the intelligent television. When the connection between the intelligent sound box and the mobile phone is disconnected, the intelligent sound box can report to the intelligent television. For a specific reporting manner, reference may be made to the foregoing contents, which are not described herein again.
According to the scheme, the intelligent television is set as the central node, so that after receiving the earphone ID reported by the intelligent sound box, the mobile phone which is disconnected with the earphone recently can be found, the ID of the earphone and the ID of the intelligent sound box are sent to the mobile phone, the mobile phone is indirectly connected with the earphone through the intelligent sound box, and the audio data can be continuously played through the earphone.
Fig. 3b is a flow chart of another possible communication method based on fig. 3 a. As shown in fig. 3b, in the method, reference may be made to the content shown in fig. 3a from S301 to S308, in fig. 3a, S309 is executed after S308 to implement point-to-point direct connection between the smart speaker and the earphone, and in fig. 3b, S309 is not executed after S308, but S3101 is executed.
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 indicating that the smart speaker finds the earphone.
It should be noted that S3101 differs from S310 in that, in S3101, the first notification message carries indication information indicating that the smart speaker has found the headphones.
In yet another possible implementation manner, the first notification message may further include indication information for indicating that the smart speaker and the headset have a bluetooth pairing relationship.
In yet another possible implementation manner, the first notification message may further include indication information for indicating that the smart speaker bluetooth discovers the headset.
In yet another possible implementation manner, the first notification message may further include a Received Signal Strength Indicator (RSSI) value of a signal (e.g., an FHS message) of the earphone received by the smart speaker, where the RSSI value may reflect a proximity between the smart speaker and the earphone, or may be described as reflecting a distance between the smart speaker and the earphone according to the RSSI value. When the RSSI value is smaller, the distance between the intelligent sound box and the earphone is farther, and when the RSSI value is larger, the distance between the intelligent sound box and the earphone is closer.
S311, the intelligent television determines the ID of the mobile phone which is disconnected from the earphone in the first notification message recently.
S3121, the smart television sends a first message to the mobile phone according to the determined ID of the mobile phone, where the first message may include an Identification (ID) of the smart speaker, an ID of the earphone, and indication information used for indicating that the smart speaker finds the earphone.
It should be noted that, in S3121, different from S312, in S3121, the first message carries indication information for indicating that the smart sound box finds the earphone.
S3121 can refer to the content of S312, which is not described herein again.
S313, the mobile phone receives the first message from the smart television.
S314, the mobile phone determines whether the ID of the headset in the first message is: one of the IDs of one or more headsets having a pairing relationship with the handset.
If yes, go to S315.
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 headset. This is shown by way of example in which S309 is performed after S315.
As can be seen from the scheme shown in fig. 3b, in the embodiment of the present application, after finding the earphone, the smart speaker does not establish connection with the earphone first, and establishes connection with the earphone only after establishing connection with the mobile phone through S315, that is, the smart speaker establishes connection with the earphone only when determining that there is a need to establish connection with the earphone (that is, the mobile phone needs to send audio data to the earphone through the smart speaker), and does not establish connection with the earphone when there is no need to establish connection with the earphone, so that the number of times of establishing connection between the smart speaker and the earphone can be reduced, and power consumption can be reduced.
Unless otherwise specified, the steps in fig. 3b are the same as those in fig. 3a, and are not repeated here.
Based on the above, fig. 4a and 4b respectively illustrate the flow diagrams of two other communication methods, and the central device (electronic device 400) is not provided 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 headset.
This step can be referred to as S301, and is not described herein again.
Different from fig. 3a, since no central node is provided, after S401, the mobile phone is not required to report information, that is, S302 in fig. 3a is not required to be executed.
S402, the mobile phone sends audio data to the earphone.
This step can be referred to as S303, and is not described herein again.
And S403, the earphone plays according to the received audio data.
This step can be referred to as S304, and is not described herein.
S404, the earphone is disconnected with the mobile phone.
This step can be referred to as S305, and is not described herein again.
S405, the headset broadcasts a first request message, the first request message including a headset ID.
This step can be referred to as the aforementioned S307, and is not described herein again.
S406, the smart speaker receives the first request message from the earphone.
This step can be referred to as S308, and is not described herein.
And S407, establishing point-to-point direct connection between the intelligent sound box and the earphone.
This step can be referred to as S309, and is not described herein.
Different from fig. 3a, since a central node is not set, after S407, the smart speaker does not need to report information, that is, S410, S411, and S412 in fig. 3a do not need to be executed, and the smart television sends a first message to the mobile phone according to the determined ID of the mobile phone, where the first message includes an ID of an earphone connected to the smart speaker and an ID of the smart speaker.
S408, the smart sound box may send a first message in a broadcast or multicast manner, where the first message includes an ID of an earphone connected to the smart sound box.
In a 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 sound box may broadcast or multicast the first message within the lan. The first message may include a smart speaker Identification (ID), a headset ID, and indication information indicating that the smart speaker and the headset establish a point-to-point direct connection.
In yet another possible implementation, the first message may further include a protocol used for indicating that the point-to-point direct connection between the smart speaker and the earphone is established, for example, a bluetooth connection is used between the smart speaker and the earphone, and then the first message may further include indication information used for indicating 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 smart sound box and the headset have a bluetooth pairing relationship.
In yet another possible embodiment, the first message may further include a Received Signal Strength Indicator (RSSI) value of a signal (e.g., an FHS message) of the earphone received by the smart speaker, where the RSSI value may reflect a proximity between the smart speaker and the earphone, or may be described as reflecting a distance between the smart speaker and the earphone through the RSSI value. When the RSSI value is smaller, the distance between the intelligent sound box and the earphone is farther, and when the RSSI value is larger, the distance between the intelligent sound box and the earphone is closer.
In this case, when the handset and the smart speaker are both in a lan, the handset may receive the first message.
In another possible implementation, the smart sound box may find out the identities of the devices having an authentication relationship with the headset and send a first message to one or more of the devices (including a cell phone) having an authentication relationship with the headset. The smart speaker may be configured with an identifier of an electronic device having an authentication relationship with the headset in advance, or the smart speaker may query the central device (for example, the electronic device 400) for the identifier of the electronic device having the authentication relationship with the headset.
S409, the mobile phone receives a first message from the smart television.
S410, the mobile phone determines whether the ID of the headset in the first message is: one of the IDs of one or more headsets having a pairing relationship with the handset.
If yes, go to S411.
If not, the process may end.
This step can be referred to as S314, and is not described herein.
S411, connection is established between the mobile phone and the intelligent sound box.
This step can be referred to as S315, which is not described herein.
S412, the mobile phone sends the audio data to the intelligent sound box.
This step can be referred to as S316, and is not described herein.
And S413, the intelligent sound box forwards the audio data from the mobile phone to the earphone.
This step can be referred to as S317, and is not described herein again.
And S414, the earphone plays according to the received audio data.
This step can be referred to as the aforementioned step S318, and is not described herein again.
S415, the smart speaker and the earphone may be disconnected.
This step can be referred to as the aforementioned S319, and is not described herein again.
And S416, the intelligent sound box sends a second notification message to the mobile phone, wherein the second notification message comprises indication information used for indicating disconnection between the intelligent sound box and the earphone.
This step can be referred to as S320, which is not described herein.
And S417, disconnecting the mobile phone and the intelligent sound box.
This step can be referred to as S321, and is not described herein.
In addition to the manners shown in S415 to S417, there may be other manners to disconnect the handset from the smart speaker. For example, the handset receives an input indicating to stop playing audio data through the headset. The user can operate on the mobile phone so as to disconnect the connection between the mobile phone and the smart sound box. For example, in one possible implementation, the user enters an action on the handset: the audio output mode of the mobile phone is selected to be the audio data played through the mobile phone, the mobile phone can determine that the audio data does not need to be played through the earphone based on the input, and then the mobile phone is disconnected with the intelligent sound box.
It should be noted that, in this embodiment of the present application, in a possible implementation manner, the mobile phone and the smart speaker are located in the same lan, and the mobile phone and the smart speaker are connected through a router. The above-mentioned S411 and S417 are not essential, and S411 and S417 are shown as dotted lines in the drawing. For the reason, reference may be made to the related contents of S315 and S321, which are not described herein again.
According to the scheme, after the smart sound box receives the first request message of the earphone, the first message can be sent out in a broadcasting or multicasting mode, after 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 which has a pairing relation with the mobile phone, the mobile phone establishes indirect connection with the earphone through the smart sound box, and the audio data can be continuously played through the earphone.
Fig. 4b is a flowchart illustrating another possible communication method based on fig. 4 a. As shown in fig. 4b, in the method, reference may be made to the content shown in fig. 4a for S401 to S406, in fig. 4a, S407 is executed after S406 to implement point-to-point direct connection between the smart speaker and the earphone, and in fig. 4b, S407 is not executed after S406, but S4081 is executed.
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 used to indicate that the smart speaker finds the earphone.
It should be noted that S4081 differs from S408 in that, in S4081, the first message carries indication information for indicating that the smart speaker has found the earphone.
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, and an ID of the earphone, an ID of the smart speaker, and the like. To inform other devices that the headset is in a location area where a connection can be established with the smart speaker.
S409, the mobile phone receives a first message from the intelligent sound box. The first message may include a smart speaker Identification (ID), a headset ID, and indication information indicating that the smart speaker found a headset.
In yet another possible implementation manner, the first message may further include indication information for indicating that the smart speaker and the headset have a bluetooth pairing relationship.
In yet another possible embodiment, the first message may further include a Received Signal Strength Indicator (RSSI) value of a signal (e.g., an FHS message) of the earphone received by the smart speaker, where the RSSI value may reflect a proximity between the smart speaker and the earphone, or may be described as reflecting a distance between the smart speaker and the earphone through the RSSI value. When the RSSI value is smaller, the distance between the intelligent sound box and the earphone is farther, and when the RSSI value is larger, the distance between the intelligent sound box and the earphone is closer.
S410, the mobile phone determines whether the ID of the headset in the first message is: one of the IDs of one or more headsets having a pairing relationship with the handset.
If yes, go to S411.
If not, the process may end.
After S411 the smart speaker performs S407 to establish a point-to-point direct connection with the headset.
As can be seen from the scheme shown in fig. 4b, in the embodiment of the present application, after finding the earphone, the smart speaker does not establish connection with the earphone first, and establishes connection with the earphone only after establishing connection with the mobile phone through S415, that is, the smart speaker establishes connection with the earphone only when it is determined that there is a need to establish connection with the earphone (i.e., the mobile phone needs to send audio data to the earphone through the smart speaker), and does not establish connection with the earphone when there is no need to establish connection with the earphone, so that the number of times of establishing connection between the smart speaker and the earphone can be reduced, and power consumption can be reduced.
Without specific description, the related contents of each step in fig. 4b are the same as the related contents of each step in fig. 4a, and are not repeated herein.
Based on the foregoing, taking the bluetooth technology-based establishment of a point-to-point direct connection between a handset and a headset as an example, fig. 5 exemplarily shows a flow of a method for establishing a point-to-point direct connection between a handset and a headset in a communication method provided by an 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 mobile phone sends a bluetooth frequency synchronization (FHS) message.
Through S3011 to S3013, the handset and the headset may perform clock synchronization and baseband connection based on the bluetooth identity message and the FHS message of each other, so as to convert the bluetooth communication state from the connectable state to the connected state.
In one possible embodiment, 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 within a fixed frequency band or by being determined by the queried device address, exchanging handshaking information time and address quickly, before establishing a connection. After the connection is established, the two sides of the equipment change the frequency according to the channel hopping sequence, so that the frequency hopping frequency presents a random characteristic.
The connection between two bluetooth devices may be initiated by an inquiring device (which may be a headset, for example) sending an inquiry message to search for other devices in the vicinity. Any other bluetooth device (e.g., handset) listening by conducting an inquiry scan recognizes this inquiry message and responds. The response to the inquiry message may be a Frequency Hopping Synchronization (FHS) packet that contains all the information needed by the inquiring device to address the responding device. This information includes the clock value of the sender (i.e., the responding device), the correct device access code of the sender, and a device class (CoD) field. The FHS packet contains more information than mentioned here. In addition, the access code contains the Lower Address Part (LAP) and the Upper Address Part (UAP) of the sender's bluetooth device address (BD _ ADDR), which is a unique 48-bit IEEE address that is electronically engraved on each bluetooth device.
S3014, performing Bluetooth Link Manager Protocol (LMP) flow interaction between the mobile phone and the headset.
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 bandwidth allocated for the class of service required to support data traffic, and periodic reservation of bandwidth obtained to support audio traffic. The LMP is responsible for the establishment of connections between bluetooth devices. When the Bluetooth equipment transmits data, the LMP negotiates and controls the size of a data packet. The LMP also manages the consumption of power and controls the state of the bluetooth devices. The LMP also has the function of generating keys required for authentication and encryption.
S3015, the mobile phone queries a service that can be supported by the headset based on a bluetooth Service Discovery Protocol (SDP).
The service plays a crucial role in the bluetooth framework, which is the basis for all user modes. In a bluetooth wireless communication network that changes frequently, any two or more devices may suddenly begin communicating over the bluetooth link. If services are to be provided to each other using these devices, a more flexible method is needed to find the location of these services. If a communication channel is established, the next step in the communication of a device should be to find the services that the device can use. SDP may define a standard method so that certain bluetooth devices can discover and learn about the services offered by other devices. The bluetooth service discovery protocol is specifically designed for use in the context of bluetooth wireless communications, and can perform its functions in an efficient and optimal manner.
In one possible implementation, the handset transmits the traffic data over the bluetooth connection according to the services supported by the headset. For example, the headphones may support listening to music services, such as an advanced audio distribution profile (A2 DP) service. The user can listen to the music played on the mobile phone through the earphone. Alternatively, it can also be described as: the headset connects to the bluetooth service according to the service supported by the headset, for example, the A2DP service may be connected, or the bluetooth connection may be performed based on the bluetooth A2DP service, thereby providing the music service to the user.
The process of establishing the bluetooth connection between the smart speaker and the earphone can refer to the content shown in fig. 5, and is not described again.
Based on the above, the bluetooth connection between the mobile phone and the headset is taken as an example. Fig. 6 exemplarily shows a flow of disconnecting the bluetooth connection between the handset and the headset in the communication method provided by the embodiment of the present application. As shown in fig. 6, the method includes:
s3051, after the Bluetooth connection is established between the mobile phone and the earphone, the mobile phone periodically sends Bluetooth PULL messages through the Bluetooth connection.
The earphone responds a NULL message through the Bluetooth connection aiming at each received PULL message. The mobile phone periodically sends Bluetooth PULL messages, and the earphone sends Bluetooth NULL messages as responses after receiving the Bluetooth PULL messages. 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 headset may determine whether the bluetooth connection is disconnected through S3054.
S3052, the mobile phone judges whether the condition that the NULL message is not received within the first preset time length is met. If yes, go to S3053. If not, the Bluetooth connection is not disconnected.
S3053, the mobile phone determines that the Bluetooth connection is disconnected.
S3054, the earphone judges whether the condition that the PULL message is not received within the second preset time length is met. If yes, go to S3055. If not, the Bluetooth connection is not disconnected. The second preset time period may be equal to or different from the first preset time period.
S3055, the earphone determines that the Bluetooth connection is disconnected.
The process of disconnecting the bluetooth connection between the smart speaker and the earphone can be referred to the content shown in fig. 6, and is not described again.
Based on the foregoing, fig. 7 exemplarily shows a flow of establishing a connection between a mobile phone and a smart speaker in a communication method provided by an embodiment of the present application. As shown in fig. 7, the process includes:
s3151, the mobile phone sends a connection establishment request to the smart sound box.
S3152, the smart 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 according to the IP address, port number, etc. of the smart speaker. And the smart speaker can listen to a connection establishment request from other equipment through a server of a socket (socket). S3151 to S3153 may be implemented by a three-way handshake of a Transmission Control Protocol (TCP), for example, S3151 is a first packet of the TCP three-way handshake (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 (for example, the sending sequence number may be 201, and the flag bit may be SYN ═ 1, and ACK ═ 1). S3153 may be the third packet of the TCP three-way handshake responded by the handset (for example, the transmission sequence number may be 501, and the flag bit may be ACK ═ 1).
Fig. 8 exemplarily shows a flow of disconnection between the handset and the smart speaker in the communication method provided by the embodiment of the present application. As shown in fig. 8, the method includes:
and S3211, the mobile phone sends a first connection disconnection request to the smart sound box.
And S3212, the smart sound box sends a first connection disconnection response to the mobile phone.
And S3213, the smart sound box sends a second disconnection request to the mobile phone.
And S3214, the mobile phone sends a second disconnection response to the smart sound box.
In one possible embodiment, after determining to disconnect from the smart speaker, the mobile phone may disconnect from the smart speaker through a TCP four-waving procedure, for example, the above S3211 is the first packet of TCP four-waving 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, and FIN ═ 1). S3212 may be a second packet of TCP four-wave with smart speaker response (for example, the sending sequence number may be 500; the acknowledgement sequence number is 201; and the flag bit may be ACK ═ 1). S3213 may be the third packet of the TCP four-time waving transmitted by the smart speaker (for example, the transmission sequence number may be 501; the flag bit may be ACK-1, and the FTN-1). S3214 may be the fourth packet of TCP four-wave in response from the mobile phone (e.g., the transmission sequence number may be 201; the acknowledgement sequence number is 502; and the flag bit may be ACK ═ 1).
Fig. 9 illustrates an architecture of an end-to-end communication model across physical networks. As shown in fig. 9, at 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 to the link layer from the physical layer, and forwards the audio data at the link layer according to the IP address and the port of the intelligent sound box.
After the intelligent sound box receives the audio data, the two implementation modes are provided, in the first mode, the intelligent sound box transmits the audio data to a link layer from a physical layer, and the audio data is forwarded according to an IP address and a port of the earphone at the link layer. In the second mode, the smart sound box transmits the audio data from the physical layer to the link layer, transmits the audio data from the link layer to the network layer, analyzes the audio data in the network layer, transmits the audio data to the link layer, transmits the audio data to the physical layer from the link layer, and then transmits the audio data to the earphone. That is to say, after receiving the audio data, the smart speaker may complete data transmission at the link layer, or may complete data transmission at the network layer, and a part of the steps in the two manners is illustrated by a dotted line in the figure.
After receiving the audio data, the earphone sequentially passes through a physical layer, a link layer and a network layer and then reaches an application layer, and then the audio data is played.
In the embodiment of the application, data transmission between the mobile phone and the smart sound box can be transmitted in the WiFi subnet. The transmission between the smart speaker and the headset may be transmitted within 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 according to the present application. Illustratively, the mobile device 1000 includes at least one processor 1010, 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 embodiment of the present application may be a communication connection, an electrical connection, or another form. In particular, memory 1020 is used to store program instructions. The processor 1010 is configured to call program instructions stored in the memory 1020 to enable the mobile device 1000 to perform the steps performed by the mobile device in the communication method provided by the embodiment 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 reference may be made to the above for related features, which are not described herein again.
The present application provides a computer program product containing instructions, which when run on a mobile device, causes the mobile device to perform the steps performed by the mobile device in the communication method provided by the embodiments of the present application.
The present application provides a computer-readable storage medium comprising instructions that, when executed on a mobile device, cause the mobile device to perform the steps performed by the mobile device in the communication method provided by the embodiments of the present application.
Those skilled in the art will clearly understand that the embodiments of the present application can be implemented in hardware, or in hardware and software. When implemented using hardware and software, the functions described above may be stored on a computer-readable medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute 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 drive, read only memory, random access memory, magnetic or optical disk, and the like.
Fig. 11 illustrates an electronic device 1100 provided by the present application. Illustratively, the electronic device 1100 includes at least one processor 1110, memory 1120, and a communication interface 1130. The processor 1110 is coupled to the memory 1120 and the communication interface 1130, which in the embodiment of the present invention may be a communication connection, an electrical connection, or other forms. In particular, the memory 1120 is used to store program instructions. The processor 1110 is configured to call the program instructions stored in the memory 1120, so that the electronic device 1100 performs the steps performed by the electronic device in the communication method provided by the embodiment of the present application. It should be understood that the electronic device 1100 may be used to implement the communication method provided in the embodiments of the present application, and reference may be made to the above for related features, which are not described herein again.
The present application provides a computer program product comprising instructions, which, when run on an electronic device, causes the electronic device to perform the steps performed by the electronic device 200, the electronic device 300 or the electronic device 400 in the communication method provided in 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 the 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.
Those skilled in the art will clearly understand that the embodiments of the present application can be implemented in hardware, or in hardware and software. When implemented using hardware and software, the functions described above may be stored on a computer-readable medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute 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 drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present application, but the 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 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 (23)

1. A first electronic device, the first electronic device and a mobile device establish a point-to-point direct connection, the first electronic device plays audio data through the mobile device; wherein the first electronic 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 first electronic device to perform the steps of:
upon detecting that the first electronic device has disconnected a point-to-point direct connection with the mobile device,
the first electronic equipment pauses the playing of the audio data and records a first pause mark; alternatively, the first and second electrodes may be,
the first electronic equipment continues to play the audio data through a loudspeaker of the first electronic equipment;
receiving a first message, wherein the first message is used for indicating that the mobile equipment and a second electronic equipment establish point-to-point direct connection;
in response to the first message,
the first electronic device sends all or part of audio data subsequent to the first pause mark to the second electronic device; alternatively, the first and second electrodes may be,
and the first electronic equipment does not continue playing through the loudspeaker any more, and all or part of the unplayed content of the audio data is sent to the second electronic equipment.
2. The first electronic device of claim 1, wherein all or a portion of the audio data subsequent to the first pause tag is sent at the first electronic device to the second electronic device; or before the first electronic device sends all or part of the unplayed content of the audio data to the second electronic device without continuing to play through the speaker, the first electronic device further performs:
and the first electronic equipment establishes network connection with the second electronic equipment.
3. The first electronic device of claim 2, wherein the first electronic device establishes a network connection with the second electronic device; the method comprises the following steps: and the first electronic equipment and the second electronic equipment establish local area network connection.
4. The first electronic device of any of claims 1-3, wherein the receiving the first message; the method comprises the following steps:
receiving a message from the second electronic device or the third electronic device;
and responding to the message, and determining that the message is the first message after acquiring the identifier of the mobile equipment from the message.
5. The first electronic device of claim 4, wherein the message is determined to be the first message after the identifier of the mobile device is obtained from the message; the method comprises the following steps:
after only the identifier of the mobile device is acquired from the message, determining that the message is the first message; alternatively, the first and second electrodes may be,
after acquiring the identifier of the mobile device and the identifier of the second electronic device from the message, determining that the message is the first message; alternatively, the first and second electrodes may be,
and after acquiring the identifier of the mobile equipment, the identifier of the second electronic equipment and the indication information that the mobile equipment and the second electronic equipment establish point-to-point direct connection from the message, determining that the message is the first message.
6. The first electronic device of any of claims 2-5, wherein the first electronic device further performs:
after detecting that the first electronic device is disconnected from the second electronic device,
the first electronic equipment pauses the playing of the audio data and records a second pause mark; alternatively, the first and second electrodes may be,
and the first electronic equipment continues playing the audio data through the loudspeaker.
7. The first electronic device of any of claims 1-6, wherein the first electronic device further performs:
after the first electronic equipment establishes point-to-point direct connection with mobile equipment, the first electronic equipment sends a first notification message to third electronic equipment; 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 point-to-point direct connection;
after the first electronic equipment and the mobile equipment are disconnected from the point-to-point direct connection, the first electronic equipment sends a second notification message to third electronic equipment; the second notification message includes an identifier of the mobile device, an identifier 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. The first electronic device according to any of claims 1-7, wherein the first electronic device and the second electronic device access a same local area network.
9. The first electronic device of any of claims 1-7, wherein the point-to-point direct connection comprises one of a bluetooth connection, a wireless fidelity peer-to-peer network Wi-Fi P2P connection, and a ZigBee connection.
10. The first electronic device according to any of claims 1-9, wherein the first electronic device is a smartphone.
11. A mobile device, the mobile device establishing a point-to-point direct connection with a first electronic device, the first electronic device playing audio data through the mobile 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 and the first electronic device are disconnected from point-to-point direct connection, 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 establishing a point-to-point direct connection with the second electronic device; the first response message is associated with the first request message;
after receiving all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
12. The mobile device of claim 11, wherein the mobile device further performs:
after detecting that the mobile device and the second electronic device are disconnected from the point-to-point direct connection, the mobile device broadcasts a second request message; the 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. A 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 has disconnected a point-to-point direct connection with the mobile device,
the first electronic equipment pauses the playing of the audio data and records a first pause mark; alternatively, the first and second electrodes may be,
the first electronic equipment continues to play the audio data through a loudspeaker of the first electronic equipment;
receiving a first message, wherein the first message is used for indicating that the mobile equipment and a second electronic equipment establish point-to-point direct connection;
in response to the first message,
the first electronic device sends all or part of audio data subsequent to the first pause mark to the second electronic device; alternatively, the first and second electrodes may be,
and the first electronic equipment does not continue playing through the loudspeaker any more, and all or part of the unplayed content of the audio data is sent to the second electronic equipment.
15. The method of claim 14, wherein the receiving a first message; the method comprises the following steps:
receiving a message from the second electronic device or the third electronic device;
and responding to the message, and determining that the message is the first message after acquiring the identifier of the mobile equipment from the message.
16. The method of claim 15, wherein the message is determined to be the first message after the identifier of the mobile device is obtained from the message; the method comprises the following steps:
after only the identifier of the mobile device is acquired from the message, determining that the message is the first message; alternatively, the first and second electrodes may be,
after acquiring the identifier of the mobile device and the identifier of the second electronic device from the message, determining that the message is the first message; alternatively, the first and second liquid crystal display panels may be,
and after acquiring the identifier of the mobile equipment, the identifier of the second electronic equipment and the indication information that the mobile equipment and the second electronic equipment establish point-to-point direct connection from the message, determining that the message is the first message.
17. The method according to claim 15 or 16, characterized in that the method further comprises:
after detecting that the first electronic device is disconnected from the second electronic device,
the first electronic equipment pauses the playing of the audio data and records a second pause mark; alternatively, the first and second electrodes may be,
and the first electronic equipment continues playing the audio data through the loudspeaker.
18. The method according to any one of claims 14-17, further comprising:
after the first electronic equipment establishes point-to-point direct connection with mobile equipment, the first electronic equipment sends a first notification message to third electronic equipment; 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 point-to-point direct connection;
after the first electronic equipment and the mobile equipment are disconnected from the point-to-point direct connection, the first electronic equipment sends a second notification message to third electronic equipment; the second notification message includes an identifier of the mobile device, an identifier 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. A communication method is applied to a mobile device, the mobile device establishes a point-to-point direct connection with a first electronic device, and the first electronic device plays audio data through the mobile device; characterized in that the method comprises:
after detecting that the mobile device and the first electronic device are disconnected from point-to-point direct connection, 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 establishing a point-to-point direct connection with the second electronic device; the first response message is associated with the first request message;
after receiving all or part of the unplayed content of the audio data, the mobile device plays all or part of the unplayed content of the audio data; all or part of the unplayed content of the audio data comes from the second electronic device.
20. The method of claim 19, further comprising:
after detecting that the mobile device and the second electronic device are disconnected from the point-to-point direct connection, the mobile device broadcasts a second request message; the second request message includes an identification of the mobile device and a point-to-point direct connection request.
21. A computer-readable storage medium, comprising 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, comprising a computer program which, when run on a mobile device, causes the mobile device to perform the method of claim 19 or 20.
23. A computer program product, which, when run on a computer, causes the computer to perform the method of any one of claims 14 to 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 true CN114827687A (en) 2022-07-29
CN114827687B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117062256A (en) * 2023-10-08 2023-11-14 荣耀终端有限公司 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
CN112969096A (en) * 2016-10-20 2021-06-15 北京小米移动软件有限公司 Media playing method and device and 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

Cited By (2)

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

Also Published As

Publication number Publication date
WO2022160967A1 (en) 2022-08-04
CN114827687B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN112789867B (en) Bluetooth connection method and equipment
CN110320811B (en) Access method of intelligent household equipment and electronic equipment
CN112868244B (en) Point-to-multipoint data transmission method and device
CN113630297B (en) Method and terminal for controlling first equipment
WO2021036835A1 (en) Bluetooth search method and system, and related apparatus
CN113360108B (en) Screen projection connection control method and electronic equipment
WO2021082829A1 (en) Bluetooth connection method and related apparatus
CN114499587B (en) Audio synchronization communication method, system, wireless earphone, terminal and storage medium
WO2021043198A1 (en) Bluetooth pairing method, and related device
WO2021043219A1 (en) Bluetooth reconnection method and related apparatus
WO2022068513A1 (en) Wireless communication method and terminal device
CN115119194A (en) Bluetooth connection method and related device
CN114697929A (en) Connection establishing method and electronic equipment
CN114679708A (en) Communication method, system and electronic equipment
CN113873678A (en) Method and electronic equipment for transmitting data
CN113038627B (en) File sharing method, mobile device and computer storage medium
CN114827687B (en) Communication method, mobile device, electronic device, and computer-readable storage medium
WO2021027623A1 (en) Device capability discovery method and p2p device
CN115175159B (en) Bluetooth headset playing method and equipment
CN112469014A (en) Method and electronic equipment for configuring Bluetooth connection parameters
WO2022057521A1 (en) Method and devices for configuring device
CN114173317B (en) Method for transmitting data and electronic equipment
CN114980238B (en) Wi-Fi access method and related equipment
WO2023165513A1 (en) Communication method, electronic device, and apparatus
CN115733921A (en) TWS earphone decoupling sharing method, device, equipment and storage medium

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