Bluetooth communication method, wearable device and system
By automatically disconnecting and rebuilding the HFP connection in Bluetooth calls, the user's poor user experience when dealing with instant messaging applications is solved, and fast and delay-free call processing is achieved.
Patent Information
- Application Number
- CN202510380514.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-12
- Publication Date
- 2025-07-18
AI Technical Summary
In Bluetooth calls, the prior art when handling services such as short message voice chat or video calls of instant messaging applications, users need to operate electronic devices and wearable devices at the same time, resulting in poor user experience and unnecessary delays.
The electronic device automatically disconnects the HFP connection when the preset conditions are met, and rebuilds the connection after receiving an incoming call, using a wearable device to answer the phone, avoiding unnecessary delays and multi-device operations.
Improve user experience, ensure that electronic devices can quickly handle call services, and avoid delays and unnecessary connection disconnection and reconstruction processes caused by multi-device operation.
Smart Images

Figure CN120343529A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202010808831.7, and the filing date of the original application is August 12, 2020. The entire content of the original application is incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technologies, and in particular, to a Bluetooth communication method, a wearable device, and a system. Background Art
[0003] With the development of wireless technologies, Bluetooth technology is widely used in wearable devices such as earphones and watches to enable Bluetooth calls using the wearable devices, thereby improving the convenience of calls. To implement the Bluetooth call function, a hands-free protocol (HFP) connection needs to be established in advance between the wearable device and the electronic device. Subsequently, when the electronic device receives a call service, based on the HFP connection, an extended synchronous connection oriented link (eSco) is established between the electronic device and the wearable device as an audio data transmission channel, so as to implement processing of the call service using the wearable device. After the call service ends, the electronic device disconnects the eSco with the wearable device, but maintains the HFP connection for processing the next call service.
[0004] When an HFP connection is established between the electronic device and the wearable device, if the electronic device needs to process a call service, it will default to invoking the wearable device that has established the HFP connection with it to process the audio data of the call service, such as receiving audio data or playing audio data. However, in some scenarios, when the call service is a short message voice chat or a video call in an instant messaging application, etc., it is not convenient for the user to operate using the wearable device (such as a smart watch, a smart bracelet, etc.). This is because, on the one hand, the user needs to manually operate the electronic device, such as selecting a contact, clicking on the unread "voice", or viewing the image of the other party, etc., and on the other hand, the user needs to use the wearable device to listen to the sound. Operating two devices simultaneously results in a poor user experience.
[0005] Based on the above scenario, a solution is proposed in the prior art. If an electronic device needs to handle a call service, it sends an eSco establishment request to the wearable device. The wearable device first establishes an eSco with the electronic device. After that, if the wearable device confirms that the current call service is a call service in an instant messaging application, it then disconnects the eSco. This enables the electronic device to use its own audio module to handle the call service, that is, to ensure that the user can complete the call service by operating one device. However, in this solution, there will be a certain delay during the process from establishing the eSco to disconnecting the eSco. For example, when the user needs to record a short voice message, after clicking to start recording, they need to wait until the electronic device can use the microphone to receive sound before they can start recording, resulting in a poor user experience. Summary of the Invention
[0006] The Bluetooth communication method, wearable device and system provided by this application can automatically disconnect the HFP connection when the electronic device meets the preset conditions. Furthermore, after the electronic device detects an operation of playing a voice message, it will not use the wearable device to play the voice message, causing unnecessary delay. And, after the electronic device receives an incoming call, it can re-establish the HFP connection to ensure that the electronic device can use the wearable device to answer the incoming call.
[0007] To achieve the above object, this application adopts the following technical solutions:
[0008] In a first aspect, this application provides a Bluetooth communication system. The Bluetooth communication system includes an electronic device and a wearable device, and a hands-free protocol HFP connection is established between the electronic device and the wearable device. Among them, the electronic device is used to automatically disconnect the HFP connection when the electronic device meets the preset conditions. The electronic device is also used to send a first notification to the wearable device after receiving an incoming call. The wearable device is used to establish an HFP connection with the electronic device according to the first notification. The electronic device is also used to send the first audio data of the incoming call to the wearable device and / or receive the second audio data of the incoming call sent by the wearable device after detecting the user's operation of answering the incoming call.
[0009] Optionally, the preset conditions include that the electronic device has not received an incoming call or has not detected an outgoing call operation. Among them, when the electronic device and the wearable device maintain the HFP connection, when the electronic device receives an incoming call or detects an outgoing call operation, it will send the corresponding call status to the wearable device. Then, the wearable device can determine whether the current electronic device needs to handle a call based on the HFP connection, and if not, it can disconnect the HFP connection.
[0010] In this way, by determining whether the electronic device meets the preset conditions, the automatic disconnection of the HFP connection can be achieved, which can effectively avoid the delay caused by the establishment and disconnection of the eSco link between the electronic device and the wearable device when the electronic device receives services such as voice messages, video calls, and audio calls while maintaining the HFP connection.
[0011] Moreover, when the electronic device receives an incoming call, it can notify the wearable device to achieve the reconstruction of the HFP connection. On the basis of ensuring that no unnecessary delay is caused, it can also ensure that the electronic device can use the wearable device to answer the call, improving the user experience.
[0012] Optionally, an application program for managing the wearable device, such as Application A, can be installed in the electronic device. Application A can be a third-party application program. Application A can monitor whether the electronic device receives an incoming call and send a first notification to the wearable device when an incoming call is received, so as to achieve the reconstruction of the HFP connection.
[0013] In a possible implementation manner, the electronic device is further configured to send a second notification to the wearable device after detecting the user's outgoing call operation. The wearable device is further configured to establish an HFP connection with the electronic device according to the second notification. After the call connection is established, the electronic device is further configured to send the third audio data of the outgoing call and / or receive the fourth audio data of the outgoing call sent by the wearable device.
[0014] That is to say, when the electronic device needs to process the first call service of an incoming call or an outgoing call, it can send a notification to the wearable device to reconstruct the HFP connection, ensuring that the wearable device can be used to play the audio of the call and collect the user's audio during the call.
[0015] In a possible implementation manner, the wearable device is further configured to disconnect the HFP connection with the electronic device after detecting an operation to end the call or receiving an instruction to end the call sent by the electronic device.
[0016] Among them, the user can hang up the phone by operating the wearable device after the call. Generally, after the phone is hung up, the electronic device no longer needs to process the first call service of an incoming call or an outgoing call at present. Then, if the wearable device determines that the current electronic device meets the preset conditions, the HFP connection is disconnected, thus avoiding unnecessary delay when the electronic device receives the second call service such as a voice message later. Or, the user can hang up the phone by operating the electronic device after the call. Then, after the electronic device detects the hang-up operation, it will send an instruction to the wearable device or the wearable device detects that the call has been disconnected, and then the HFP connection is disconnected.
[0017] In a possible implementation, the electronic device is further configured to play the first audio or record the second audio when detecting an operation of playing the first audio of the first application or recording the second audio using the first application.
[0018] Among them, the first application can be a third-party instant messaging application (for example, "WeChat" application, "QQ" application, video conferencing application, etc.). The voice message chat, audio call, video call, phone call voice, etc. in the first application can be described as the second call service. That is to say, generally, the call service can include the first call service and the second call service. The first call service includes services such as answering a call and making a call in a call application. The second call service includes call services in the first application.
[0019] Generally, the first application is installed in the electronic device. Correspondingly, a watch version of the first application is installed in a wearable device such as a smart watch. Of course, the first application may not be installed in the wearable device.
[0020] Then, when the electronic device detects an operation of playing the audio of the first application or recording audio, it will not detect a disconnected HFP connection and can directly use its own audio module, such as a speaker, a microphone, etc. to process the audio. For example, directly play a voice message or start recording a message based on the corresponding operation. Thus, it avoids the delay caused by the electronic device calling the wearable device to process the corresponding service after detecting the HFP connection.
[0021] In a possible implementation, the operation of playing the first audio includes any one of the following: an operation of playing the first voice message, an operation of answering a video call, and an operation of answering an audio call.
[0022] In a possible implementation, the operation of recording the second audio using the first application includes an operation of recording the second voice message using the first application or an operation of recording using the first application.
[0023] In a possible implementation, the electronic device is further configured to collect a third audio after a video call or an audio call connection is established.
[0024] Among them, in video call and audio call scenarios, the electronic device can use its own audio module to collect audio. There is no need to call the wearable device as an audio collection module.
[0025] In a second aspect, the present application provides a Bluetooth communication method, which is applied to a system including an electronic device and a wearable device, and a hands-free protocol (HFP) connection is established between the electronic device and the wearable device. The method includes: when the electronic device meets a preset condition, automatically disconnecting the HFP connection. After the electronic device receives an incoming call, sending a first notification to the wearable device; so that the wearable device can establish an HFP connection with the electronic device according to the first notification. After the electronic device detects an operation of the user answering the incoming call, sending the first audio data of the incoming call to the wearable device and / or receiving the second audio data of the incoming call sent by the wearable device.
[0026] In a possible implementation manner, before the electronic device and the wearable device establish an HFP connection, the method further includes: after the electronic device detects an operation of the user making an outgoing call, sending a second notification to the wearable device; so that the wearable device can establish an HFP connection with the electronic device according to the second notification. After the call connection is established, the electronic device sends the third audio data of the outgoing call to the wearable device and / or receives the fourth audio data of the outgoing call sent by the wearable device.
[0027] In a possible implementation manner, the method further includes: after the call ends, the electronic device disconnects the HFP connection with the wearable device.
[0028] In a possible implementation manner, the method further includes: when the electronic device detects an operation of playing the first audio of the first application or recording the second audio using the first application, playing the first audio or recording the second audio.
[0029] In a possible implementation manner, the operation of playing the first audio includes any one of the following: the operation of playing the first voice message, the operation of answering a video call, and the operation of answering an audio call.
[0030] In a possible implementation manner, the operation of recording the second audio using the first application includes the operation of recording the second voice message using the first application or the operation of recording using the first application.
[0031] In a possible implementation manner, the method further includes: after the video call or audio call connection is established, the electronic device collects the third audio.
[0032] In a possible implementation manner, the preset condition includes that the electronic device has not received an incoming call or has not detected an operation of making an outgoing call.
[0033] In addition, the technical effects of the Bluetooth communication method described in the second aspect can refer to the technical effects of the Bluetooth communication system described in the first aspect, which will not be elaborated here.
[0034] In a third aspect, the present application provides a Bluetooth communication method, which is applied to a system including an electronic device and a wearable device, and a Hands-Free Profile (HFP) connection is established between the electronic device and the wearable device. The method includes: when the wearable device determines that the electronic device meets a preset condition, it automatically disconnects the HFP connection. The wearable device receives a first notification and establishes an HFP connection with the electronic device according to the first notification; wherein, the first notification is a notification sent by the electronic device to the wearable device after receiving an incoming call. The wearable device receives the first audio data of the incoming call sent by the electronic device and / or sends the second audio data of the incoming call to the electronic device.
[0035] In a possible implementation manner, the method further includes: the wearable device receives a second notification and establishes an HFP connection with the electronic device according to the second notification; wherein, the second notification is a notification sent by the electronic device to the wearable device after detecting a user's outgoing call operation. After the call connection is established, the wearable device receives the third audio data of the outgoing call sent by the electronic device and / or sends the fourth audio data of the outgoing call to the electronic device.
[0036] In a possible implementation manner, the method further includes: after the wearable device detects an operation to end the call or receives an indication to end the call sent by the electronic device, it disconnects the HFP connection with the electronic device.
[0037] In a possible implementation manner, the preset condition includes that the electronic device has not received an incoming call or has not detected an outgoing call operation.
[0038] In addition, the technical effects of the Bluetooth communication method described in the third aspect can refer to the technical effects of the Bluetooth communication system described in the first aspect, which will not be elaborated here.
[0039] In a fourth aspect, the present application provides an electronic device, including: a processor, a memory, and an audio module; the memory and the audio module are coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device performs the following operations: when a preset condition is met, it automatically disconnects the Hands-Free Profile (HFP) connection with the wearable device. After receiving an incoming call, it sends a first notification to the wearable device; so that the wearable device can establish an HFP connection according to the first notification. After detecting a user's operation of answering the incoming call, it sends the first audio data of the incoming call to the wearable device and / or receives the second audio data of the incoming call sent by the wearable device.
[0040] In a possible implementation, when the processor reads computer instructions from the memory, it also causes the electronic device to perform the following operations: after detecting the operation of the user making an outgoing call, send a second notification to the wearable device; so that the wearable device can establish an HFP connection according to the second notification. After the call connection is established, send the third audio data of the outgoing call to the wearable device and / or receive the fourth audio data of the outgoing call sent by the wearable device.
[0041] In a possible implementation, when the processor reads computer instructions from the memory, it also causes the electronic device to perform the following operation: after the call ends, disconnect the HFP connection with the wearable device.
[0042] In a possible implementation, when the processor reads computer instructions from the memory, it also causes the electronic device to perform the following operations: when detecting the operation of playing the first audio of the first application or recording the second audio using the first application, play the first audio or record the second audio.
[0043] In a possible implementation, the operation of playing the first audio includes any one of the following: the operation of playing the first voice message, the operation of answering a video call, and the operation of answering an audio call.
[0044] In a possible implementation, the operation of recording the second audio using the first application includes the operation of recording the second voice message using the first application or the operation of recording using the first application.
[0045] In a possible implementation, when the processor reads computer instructions from the memory, it also causes the electronic device to perform the following operation: after the video call or audio call connection is established, collect the third audio.
[0046] In a possible implementation, the preset condition includes that the electronic device has not received an incoming call or has not detected the operation of making an outgoing call.
[0047] In addition, the technical effects of the electronic device described in the fourth aspect can refer to the technical effects of the Bluetooth communication system described in the first aspect, which will not be elaborated here.
[0048] Fifth aspect, the present application provides a wearable device, including: a processor, a memory, and an audio module. The memory and the audio module are coupled to the processor. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the wearable device performs the following operations: when it is determined that the electronic device meets a preset condition, automatically disconnect the hands-free profile (HFP) connection with the electronic device. Receive a first notification and establish an HFP connection with the electronic device according to the first notification; wherein, the first notification is a notification sent by the electronic device after receiving an incoming call. Receive first audio data of the incoming call sent by the electronic device and / or send second audio data of the incoming call to the electronic device.
[0049] In a possible implementation manner, when the processor reads the computer instructions from the memory, it also causes the wearable device to perform the following operations: receive a second notification and establish an HFP connection with the electronic device according to the second notification; wherein, the second notification is a notification sent by the electronic device after detecting the user's outgoing call operation. After the call connection is established, receive third audio data of the outgoing call sent by the electronic device and / or send fourth audio data of the outgoing call to the electronic device.
[0050] In a possible implementation manner, when the processor reads the computer instructions from the memory, it also causes the wearable device to perform the following operations: after detecting an operation to end the call or receiving an indication to end the call sent by the electronic device, disconnect the HFP connection with the electronic device.
[0051] In a possible implementation manner, the preset condition includes that the electronic device has not received an incoming call or has not detected an outgoing call operation.
[0052] In addition, the technical effects of the wearable device described in the fifth aspect can refer to the technical effects of the Bluetooth communication system described in the first aspect, which will not be elaborated here.
[0053] Sixth aspect, the present application provides an electronic device, and this electronic device has the function of implementing the Bluetooth communication method described in the second aspect and any one of its possible implementation manners. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0054] Seventh aspect, the present application provides a wearable device, and this wearable device has the function of implementing the Bluetooth communication method described in the third aspect and any one of its possible implementation manners. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0055] In an eighth aspect, the present application provides a computer-readable storage medium, including computer instructions, which, when running on an electronic device, cause the electronic device to execute the Bluetooth communication method as described in any one of the second aspect and any possible implementation manner thereof.
[0056] In a ninth aspect, the present application provides a computer-readable storage medium, including computer instructions, which, when running on a wearable device, cause the wearable device to execute the Bluetooth communication method as described in any one of the third aspect and any possible implementation manner thereof.
[0057] In a tenth aspect, the present application provides a computer program product, which, when running on an electronic device, causes the electronic device to execute the Bluetooth communication method as described in any one of the second aspect and any possible implementation manner thereof.
[0058] In an eleventh aspect, the present application provides a computer program product, which, when running on an electronic device, causes the wearable device to execute the Bluetooth communication method as described in any one of the third aspect and any possible implementation manner thereof.
[0059] In a twelfth aspect, a circuit system is provided. The circuit system includes a processing circuit, and the processing circuit is configured to execute the Bluetooth communication method as described in the second aspect and any possible implementation manner thereof above. Alternatively, the processing circuit is configured to execute the Bluetooth communication method as described in the third aspect and any possible implementation manner thereof above.
[0060] In a thirteenth aspect, an embodiment of the present application provides a chip system, including at least one processor and at least one interface circuit. The at least one interface circuit is used to perform a transceiver function and send instructions to the at least one processor. When the at least one processor executes the instructions, the at least one processor executes the Bluetooth communication method as described in the second aspect and any possible implementation manner thereof above; or, the at least one processor executes the Bluetooth communication method as described in the third aspect and any possible implementation manner thereof above. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 is a schematic diagram of a system provided by an embodiment of the present application;
[0062] Figure 2 is a schematic structural diagram of a wearable device provided by an embodiment of the present application;
[0063] Figure 3A is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0064] Figure 3B is a schematic diagram of a software structure block diagram of an electronic device provided by an embodiment of the present application;
[0065] Figure 4 Flowchart of the Bluetooth communication method provided by the embodiment of the present application Figure 1 ;
[0066] Figure 5 Interface diagram of the electronic device provided by the embodiment of the present application Figure 1 ;
[0067] Figure 6 Interface diagram of the electronic device provided by the embodiment of the present application Figure 2 ;
[0068] Figure 7 Schematic diagram III of the interface of the electronic device provided by the embodiment of the present application;
[0069] Figure 8 Schematic diagram of the process of establishing an HFP connection provided by the embodiment of the present application;
[0070] Figure 9 Schematic diagram of the application scenario of the Bluetooth communication method provided by the embodiment of the present application Figure 1 ;
[0071] Figure 10 Interface diagram of the electronic device provided by the embodiment of the present application Figure 4 ;
[0072] Figure 11 Interface diagram of the electronic device provided by the embodiment of the present application Figure 5 ;
[0073] Figure 12 Schematic diagram of the application scenario of the Bluetooth communication method in the prior art provided by the embodiment of the present application Figure 1 ;
[0074] Figure 13 Schematic diagram of the application scenario of the Bluetooth communication method in the prior art provided by the embodiment of the present application Figure 2 ;
[0075] Figure 14 Schematic diagram of the application scenario of the Bluetooth communication method provided by the embodiment of the present application Figure 2 ;
[0076] Figure 15 Schematic diagram of the structure of the electronic device provided by the embodiment of the present application Figure 2 ;
[0077] Figure 16 Schematic diagram of the structure of the wearable device provided by the embodiment of the present application Figure 2 。 Detailed implementation manner
[0078] The Bluetooth communication method, wearable device, and system provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0079] As used in the description of the present application, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include other steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products, or devices.
[0080] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0081] In the description of the present application, unless otherwise specified, "a plurality of" means two or more. The "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone.
[0082] As Figure 1 shown, it is a schematic diagram of an application scenario of a Bluetooth communication method provided by an embodiment of the present application. The system to which the Bluetooth communication method is applied includes a wearable device 100 and an electronic device 200.
[0083] Exemplarily, the wearable device 100 may be a smart watch, smart bracelet, wireless earphone, smart glasses, or smart helmet, etc. The electronic device 200 may be a mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), personal digital assistant (PDA), vehicle-mounted terminal, or other devices. The specific forms of the wearable device 100 and the electronic device 200 in the embodiments of the present application are not limited in any way.
[0084] The wearable device 100 can establish a wireless connection with the electronic device 200 through wireless communication technology. Among them, the wireless communication technology may include Bluetooth (BT), which can be traditional Bluetooth or low-power BLE Bluetooth, wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Zigbee, frequency modulation (FM), near field communication (NFC), infrared technology (IR), or general 2.4G / 5G band wireless communication technology, etc.
[0085] In the embodiments of this application, the wireless communication technology is described by taking Bluetooth as an example. When the wearable device 100 and the electronic device 200 establish a Bluetooth connection, if the wearable device 100 supports the HFP service, an HFP connection can be established between the wearable device 100 and the electronic device 200. Subsequently, based on the HFP connection, the wearable device 100 serves as the Bluetooth device of the electronic device 200 to process the call services received by the electronic device 200. Among them, the call services include the first call service and the second call service. The first call service includes services such as answering calls and making calls in the call application. The second call service includes services such as short voice message chatting, audio calls, and video calls in third-party instant messaging applications (such as the "WeChat" application, the "QQ" application, video conferencing applications, etc.).
[0086] Generally, for users, if the call service is the first call service, the user only needs to use the wearable device 100 to process the first call service. If the call service is the second call service, the user needs to operate both the wearable device 100 and the electronic device 200 to complete the second call service. However, after the electronic device 200 receives a call service, it does not distinguish the call service type, that is, it does not distinguish whether the current call service is the first call service or the second call service. Instead, it will default to calling the wearable device 100 that has established an HFP connection with it to process the call service. Then, if the call service is the second call service, it will result in a poor user experience.
[0087] Based on this, two solutions have been proposed in the prior art.
[0088] Solution 1: In the case of an HFP connection, after the electronic device 200 receives a call service, it sends an eSco establishment request to the wearable device 100. The wearable device 100 agrees to the eSco establishment request and establishes an eSco with the electronic device 200. After that, the wearable device 100 determines whether the call service currently being processed by the electronic device 200 is the first call service. If not, it actively disconnects the eSco, enabling the electronic device 200 to switch back to its own speaker or microphone to process the second call service. However, after the eSco is established, the electronic device 200 will send audio data to the wearable device 100 based on the eSco or wait to receive audio data sent by the wearable device 200 until the eSco is disconnected. Then, during this process, if the user does not pay attention to the wearable device 100, the audio data sent by the electronic device 200 to the wearable device 100 will be lost; or, keep waiting until the eSco is disconnected and then the electronic device 200 receives the user's voice.
[0089] Solution 2: In the case of an HFP connection, after the electronic device 200 receives a call service, it sends an eSco establishment request to the wearable device 100. The wearable device 100 determines whether the call service currently being processed by the electronic device 200 is the first call service based on the eSco establishment request. If not, it refuses to establish the eSco, enabling the electronic device 200 to use its own speaker or microphone to process the second call service. However, the process of the wearable device 100 determining the current call service type takes time.
[0090] Therefore, in some embodiments of the present application, if the wearable device 100 determines that the electronic device 200 does not need to process the first call service, it actively disconnects the HFP connection with the electronic device 200. Then, when the electronic device 200 receives the second call service, it will not detect the disconnected HFP connection and will directly use the audio modules such as the speaker and microphone of the electronic device 200 to process the second call service. When the electronic device 200 receives the first call service, it notifies the wearable device 100 to re - establish the HFP connection. After that, based on the HFP connection, the wearable device 100 processes the first call service. In this way, it is ensured that the user can process the first call service and the second call service relatively simply. Moreover, during the process of the electronic device 200 processing the second call service, no unnecessary delay or call error will occur.
[0091] Figure 2 The structural schematic diagram of a wearable device 100 is shown. The wearable device 100 may include at least one processor 101, at least one memory 102, a wireless communication module 103, an audio module 104, at least one speaker 105, at least one microphone 106, and a power module 107, etc.
[0092] Among them, the memory 102 can be used to store application code, such as the application code for the wireless pairing connection between the wearable device 100 and the electronic device 200, so as to establish a wireless connection between the wearable device 100 and the electronic device 200; process the call service of the electronic device 200; and be used for charging the wearable device 100, etc.
[0093] The processor 101 can be used to execute the above application code and call relevant modules to implement the functions of the wearable device 100 in the embodiments of the present application. For example, implement functions such as wireless Bluetooth connection, audio playback, answering / making calls, etc. between the wearable device 100 and the electronic device 200. For another example, implement the wearable device 100 receiving a message sent by the electronic device 200 to determine whether the call service is a first call service, etc.
[0094] The processor 101 can include one or more processing units. Different processing units can be independent devices or integrated in one or more processors 101. Specifically, the processor 101 can be an integrated control chip or can be composed of a circuit including various active and / or passive components, and the circuit is configured to execute the functions belonging to the processor 101 described in the embodiments of the present application.
[0095] The wireless communication module 103 can be used to support data exchange of wireless communication between the wearable device 100 and its electronic device 200, including BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G / 5G wireless communication technologies, etc.
[0096] In some embodiments, the wireless communication module 103 can be a Bluetooth chip. The wearable device 100 can pair with the Bluetooth chip of the electronic device 200 through this Bluetooth chip and establish a wireless connection to implement wireless communication and service processing between the wearable device 100 and the electronic device 200 through this wireless connection. Generally, the Bluetooth chip can support basic rate (BR) / enhanced data rate (EDR) Bluetooth and Bluetooth low energy (BLE). For example, it can receive / transmit paging information, receive / transmit BLE broadcast messages, etc. The Bluetooth 103 can also be a Bluetooth transceiver. The wearable device 100 can establish a wireless connection with the electronic device 200 through this Bluetooth transceiver to achieve short-distance data exchange between the two. For example, exchange audio data, exchange control data, etc.
[0097] In addition, the wireless communication module 103 may further include an antenna, which receives an electromagnetic wave signal via the antenna, performs frequency modulation and filtering processing on the electromagnetic wave signal, and sends the processed signal to the processor 101. The wireless communication module 103 may also receive a signal to be sent from the processor 101, perform frequency modulation and amplification on it, and convert it into an electromagnetic wave through the antenna for radiation. For example, the wireless communication module 103 is used to receive a notification message sent by the electronic device 200, and based on the notification message, determine the type of call service that the electronic device 200 is processing, such as whether the call service being processed by the electronic device is the first call service or the second call service.
[0098] The audio module 104 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into digital audio signals. The audio module 104 may further include an encoder and a decoder for encoding and decoding audio signals. In some embodiments, the audio module 104 may be disposed in the processor 101, or some functional modules of the audio module 104 may be disposed in the processor 101.
[0099] At least one speaker 105, which may also be referred to as a "receiver" or "earpiece", can be used to convert an audio electrical signal into a sound signal for playback. For example, when the wearable device 100 serves as an audio output device of the electronic device 200, the speaker 105 can convert the received audio electrical signal into a sound signal for playback.
[0100] At least one microphone (Mic) 106, which may also be referred to as a "microphone" or "transmitter", is used to convert a sound signal into an audio electrical signal. For example, when the wearable device 100 serves as an audio input device of the electronic device 200, during the process of a user speaking (such as during a call or sending a voice message), the microphone 106 can collect the user's sound signal and convert it into an audio electrical signal.
[0101] Among them, the above-mentioned audio electrical signal may also be described as audio data.
[0102] In some embodiments, the speaker 105 and the microphone 106 may also be integrated into the audio module 104. For example, the audio module 104 may include a speaker component for outputting audio signals, and a microphone sound collection circuit that cooperates with the speaker for receiving audio signals, etc. The embodiments of the present application do not make specific limitations on the specific implementation manners of the audio module 104, the speaker 105, and the microphone 106.
[0103] The power supply module 107 can be used to provide the system power supply for the wearable device 100, supply power to each module of the wearable device 100; support the wearable device 100 to receive charging input, etc. The power supply module 107 may include a power management unit (PMU) and a battery. Among them, the power management unit can receive an external charging input; convert the electrical signal of the charging circuit input and provide it to the battery for charging, and can also convert the electrical signal provided by the battery and provide it to other modules such as the wireless communication module 103 and the audio module 104; and prevent the battery from overcharging, over-discharging, short-circuiting or over-current, etc. In some embodiments, the power supply module 108 may further include a wireless charging coil for wirelessly charging the wearable device 100. In addition, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance).
[0104] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the wearable device 100. It may have more or fewer components than those shown in Figure 2 It may combine two or more components, or may have different component configurations. For example, the wearable device 100 may further include components such as sensors, a display screen (which can prompt users with relevant information), and a motor. Figure 2 The various components shown in
[0105] Figure 3A Schematic structural diagram of an electronic device 200 provided by an embodiment of the present application.
[0106] The electronic device 200 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0107] It can be understood that the structure schematically shown in the embodiments of the present invention does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0108] The processor 110 may include one or more processing units. For example, 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 video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0109] The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0110] A memory can also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0111] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (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.
[0112] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193, etc. through different I2C bus interfaces. For example: The processor 110 can be coupled to the touch sensor 180K through the I2C interface, enabling the processor 110 to communicate with the touch sensor 180K through the I2C bus interface to implement the touch function of the electronic device 200.
[0113] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple groups of I2S buses. The processor 110 can be coupled to the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the I2S interface to implement the function of answering a call through the wearable device 100.
[0114] The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through the wearable device 100. Both the I2S interface and the PCM interface can be used for audio communication.
[0115] The UART interface is a general-purpose serial data bus for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through the wearable device 100.
[0116] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 200. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 200.
[0117] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0118] The USB interface 130 is an interface that conforms to the USB standard specification. Specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 200, and can also be used to transfer data between the electronic device 200 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices, etc.
[0119] It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present invention is only for illustrative purposes and does not constitute a structural limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 can also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0120] The charging management module 140 is used to receive a charging input from a charger. Among them, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive the wireless charging input through the wireless charging coil of the electronic device 200. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.
[0121] 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 the inputs from the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be provided in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.
[0122] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.
[0123] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0124] The mobile communication module 150 may provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 200. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be disposed in the same device.
[0125] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, receiver 170B, etc.), or displays images or videos through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
[0126] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 200, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.
[0127] In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, such that electronic device 200 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0128] Electronic device 200 implements a display function through a GPU, display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, and is connected to display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0129] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include one or N display screens 194, where N is a positive integer greater than 1.
[0130] The electronic device 200 can implement the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.
[0131] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light passes through the lens and is transmitted to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also optimize the noise, brightness, and skin color of the image through algorithms. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0132] The camera 193 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in standard RGB, YUV, etc. formats. In some embodiments, the electronic device 200 may include one or N cameras 193, where N is a positive integer greater than 1.
[0133] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 200 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0134] The video codec is used to compress or decompress digital videos. The electronic device 200 can support one or more video codecs. In this way, the electronic device 200 can play or record videos in multiple encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0135] The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission pattern between human brain neurons, it can quickly process input information and can also continuously learn on its own. Through the NPU, applications such as intelligent cognition of the electronic device 200 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, etc.
[0136] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, files such as music and videos are saved in the external memory card.
[0137] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, image playback function, etc.). The data storage area can store data created during the use of the electronic device 200 (such as audio data, phone book, etc.). In addition, the internal memory 121 can include high-speed random access memory and can also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 121 and / or the instructions stored in the memory provided in the processor.
[0138] The electronic device 200 can implement audio functions through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and the application processor, etc. For example, music playback, recording, etc.
[0139] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110.
[0140] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The electronic device 200 can listen to music or hands-free calls through the speaker 170A.
[0141] The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the electronic device 200 answers a call or a voice message, the voice can be listened to by holding the receiver 170B close to the ear.
[0142] The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak by bringing the mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 200 can be provided with at least one microphone 170C. In some other embodiments, the electronic device 200 can be provided with two microphones 170C, which can not only collect sound signals but also implement a noise reduction function. In some other embodiments, the electronic device 200 can also be provided with three, four or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and implement functions such as directional recording.
[0143] The headphone jack 170D is used to connect a wired headphone. The headphone jack 170D can be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0144] The keys 190 include a power-on key, volume keys, etc. The keys 190 can be mechanical keys or touch keys. The electronic device 200 can receive key inputs to generate key signal inputs related to the user settings and function controls of the electronic device 200.
[0145] The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playing, etc.) can correspond to different vibration feedback effects. For touch operations on different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminder, receiving messages, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0146] The indicator 192 can be an indicator light, which can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.
[0147] The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation from the electronic device 200. The electronic device 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 200 interacts with the network through the SIM card to implement functions such as calls and data communication. In some embodiments, the electronic device 200 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.
[0148] The software system of the electronic device 200 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present invention, the Android system with a layered architecture is taken as an example to exemplarily illustrate the software structure of the electronic device 200.
[0149] Figure 3B It is the software structure block diagram of the electronic device 200 in the embodiments of the present invention.
[0150] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely the application layer, the application framework layer, the Android runtime and the system libraries, and the kernel layer.
[0151] The application layer can include a series of application packages.
[0152] Such asFigure 3B As shown, the application package may include applications such as camera, calendar, map, navigation, WLAN, music, short message, Bluetooth, call, video, etc.
[0153] In some embodiments, the application may further include Application A (such as applications for smart watches, sports health applications, etc.). The user can edit and manage one or more wearable devices 100 connected to the electronic device 200 through Application A. Application A can also support a message notification service to send notification messages to the wearable device 100. The notification message may include, for example, the call service type of the electronic device 200. Further, the wearable device 100 can learn about the call service type of the electronic device 200 based on the received notification message.
[0154] Optionally, the wearable device 100 can disconnect the HFP connection by receiving the notification message sent by Application A to avoid the delay of the second call service.
[0155] Optionally, the user can use Application A to set the wearable device 100, such as operations like switching modes and adding new devices. Among them, the signaling for this setting is usually a private Bluetooth protocol.
[0156] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0157] As Figure 3B shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an application manager, etc.
[0158] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0159] The content provider is used to store and obtain data, and make this data accessible to applications. The data may include videos, images, audio, dialed and answered calls, browsing history and bookmarks, phone book, etc.
[0160] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon may include a view for displaying text and a view for displaying pictures.
[0161] The phone manager is used to provide the communication function of the electronic device 200. For example, the management of call states (including connection, disconnection, etc.).
[0162] In some embodiments, after the electronic device 200 receives the first call service, the phone manager will notify Application A by means of broadcast messages or the like.
[0163] The resource manager provides various resources for application programs, such as localized strings, icons, pictures, layout files, video files, and so on.
[0164] The notification manager enables application programs to display notification information in the status bar. It can be used to convey messages of the notification type, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform that the download is completed, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or a scroll bar text, such as the notification of a background running application program, and can also be a notification that appears on the screen in the form of a dialog window. For example, prompt text information in the status bar, emit a prompt tone, the electronic device vibrates, the indicator light flashes, etc.
[0165] The application manager can manage the life cycle of at least one application program, for example.
[0166] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
[0167] The core libraries include two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core libraries of Android.
[0168] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0169] The system libraries can include multiple functional modules. For example: surface manager, Media Libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), etc.
[0170] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple application programs.
[0171] The media library supports the playback and recording of various common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0172] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0173] The 2D graphics engine is a graphics engine for 2D drawing.
[0174] The kernel layer is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0175] In the following embodiments, a smartwatch is used as the wearable device 100 and a mobile phone is used as the electronic device 200 for illustration.
[0176] As Figure 4 shown, it is a schematic flowchart of a Bluetooth communication method provided by an embodiment of the present application. The method may include S401 - S409.
[0177] S401. The mobile phone receives a first operation.
[0178] Among them, the first operation is used to instruct the mobile phone to establish a Bluetooth connection with the smartwatch. After the mobile phone detects the first operation, it starts the Bluetooth pairing process with the smartwatch. The first operation is, for example, an operation to trigger the start of Bluetooth pairing. For example, the first operation may include a series of operations such as turning on Bluetooth and selecting the wearable device detected during the process of the mobile phone establishing a connection with the smartwatch using Application A. Another example is that the first operation may include the operation of selecting the wearable device during the Bluetooth connection process. Another example is that when the smartwatch and the mobile phone have been paired before, the mobile phone can accept the operation on the smartwatch in the "My Devices" list in the Bluetooth "Settings" interface by the user for pairing.
[0179] Exemplarily, as Figure 5 shown in (a) therein, it is the main interface 501 displayed on the mobile phone. In response to the operation of the user clicking on the icon 51 of Application A (such as a sports and health APP), the mobile phone opens the sports and health APP and displays an interface 502 as shown in Figure 5 shown in (b) therein. In response to the operation of the user clicking on the device icon 52, a device management interface 503 as shown in Figure 5 shown in (c) therein is displayed. The user adds or deletes devices through the device management interface 503. In response to the operation of the user clicking on the add device control 53, the mobile phone displays as shown in Figure 5The interface 504 shown in (d) in []. The mobile phone detects an operation in response to a user clicking on the icon 54, determines the device type of the wearable device to be connected, and displays an interface as shown in Figure 5 (e) in []. The mobile phone displays an interface 505 as shown in Figure 5 (f) shown in [] in response to the user clicking on the icon 55. The mobile phone starts the pairing process with the smartwatch in response to the user clicking on the icon 56.
[0180] When the mobile phone starts the pairing process with the smartwatch and the Bluetooth of the mobile phone is not turned on, the mobile phone displays an interface 601 as shown in Figure 6 (a) in [] for receiving a first operation. In response to the user clicking on the OK icon 61, the mobile phone turns on the Bluetooth, searches for smartwatches that can be connected, and displays an interface 602 as shown in Figure 6 (b) in []. The icon 62 shown in the interface 602 is used to indicate that the Bluetooth of the mobile phone has been turned on. In response to the user clicking on the media access control (MAC) address of a certain smartwatch in the list 63, the mobile phone can establish a Bluetooth connection with the smartwatch selected by the user. That is to say, in the current scenario, the first operation includes the operation of clicking on the icon 61 and the operation of clicking on the MAC address of a certain smartwatch in the list 63.
[0181] When the mobile phone starts the pairing process with the smartwatch and the Bluetooth of the mobile phone is already turned on, the mobile phone directly displays an interface 602 as shown in Figure 6 (b) in []. Then, the first operation is the operation of clicking on the MAC address of a certain smartwatch in the list 63.
[0182] In some embodiments, in addition to the first operation received during the process of the mobile phone establishing a connection with the smartwatch using Application A as described above, the mobile phone can also turn on the Bluetooth and establish a Bluetooth connection with the smartwatch in various ways. For example, turn on the Bluetooth through a shortcut key method or through the Bluetooth settings method.
[0183] Exemplarily, the mobile phone displays a main interface 701 as shown in Figure 7 (a) in [], and displays an interface 702 as shown in Figure 7 (b) in [] in response to the user clicking on the settings icon 71. The mobile phone displays a Bluetooth settings interface 703 as shown in Figure 7 (c) in [] in response to the user clicking on the icon 72. Currently, the Bluetooth of the mobile phone is in the off state. The mobile phone turns on the Bluetooth and displays an interface as shown in Figure 7Interface 704 shown in (d) in FIG. 704. Icons 74 and 75 in interface 704 are used to indicate that Bluetooth is turned on. Afterwards, in response to the user clicking on the device name in list 76, the mobile phone directly establishes a Bluetooth connection with the corresponding device. Then, in the current scenario, the first operation is the operation of clicking on the device name in list 76.
[0184] In some embodiments, the mobile phone can also scan the pairing QR code on the smart watch to obtain a connection. Then the first operation may include an operation of scanning the pairing QR code, and the mobile phone reads the information contained in the pairing QR code to start the pairing process with the smart watch.
[0185] S402: The mobile phone establishes a Bluetooth connection and an HFP connection with the smart watch.
[0186] Optionally, after detecting the first operation, the mobile phone confirms the smart watch to be connected selected by the user, and sends a Bluetooth connection establishment request to the smart watch. After the mobile phone receives the response from the smart watch confirming the connection, it can establish a Bluetooth connection with the smart watch. In the above step S401, the mobile phone starts the Bluetooth pairing process with the smart watch through application A. After the mobile phone and the smart watch establish a Bluetooth connection, it indicates that the mobile phone has added the smart watch to the connected devices of application A. Then, the mobile phone can subsequently edit the smart watch through application A and send notification messages to the smart watch.
[0187] Among them, the HFP connection in the embodiment of the present application can be used to establish an eSco link to transmit voice data streams, and can also be used to establish an HFP service. The establishment of a Bluetooth connection in the embodiment of the present application can be a physical connection, such as an asynchronous connectionless (ACL) link.
[0188] For example, the mobile phone application A starts the pairing process and displays the following Figure 6 The interface 603 shown in (c) in FIG. 1 is used to prompt the user to confirm on the smart watch side. After the mobile phone receives the response sent by the smart watch to confirm the connection, it displays the following Figure 6 The device management interface 604 shown in (d) in FIG. 8 shows the smart watches that have been added.
[0189] Optionally, after detecting the operation of turning on Bluetooth, the mobile phone starts the hands-free protocol (HFP) connection establishment process with the smart watch based on the established Bluetooth connection. Figure 8 As shown, the process of establishing an HFP connection may include the following steps 1 to 8.
[0190] Step 1: The mobile phone sends an HFP service query request to the smart watch.
[0191] Step 2: The smartwatch sends the HFP service query result to the mobile phone.
[0192] Optionally, in the above Step 1 and Step 2, if the mobile phone needs to establish an HFP connection with the smartwatch, the mobile phone needs to send an HFP service query request to the smartwatch to confirm whether the smartwatch supports the HFP service. Herein, the HFP service means that the smartwatch can support the Bluetooth hands-free function and control mobile phone calls, such as answering, hanging up, rejecting, etc. After receiving the HFP service query request sent by the mobile phone, the smartwatch confirms whether it supports the HFP service.
[0193] If the smartwatch supports the HFP service, it sends the basic information (profile information) of the HFP service to the mobile phone. The profile information includes, for example, the protocol version number, the RFCOMM protocol channel number, etc.
[0194] If the smartwatch does not support the HFP service, the query result replied to the mobile phone is empty. After receiving this query result, the mobile phone confirms that the smartwatch does not support the HFP service and stops establishing the HFP connection.
[0195] In some embodiments, the mobile phone sends a query capability request to the smartwatch to query the services supported by the smartwatch. For example, a capability query request can be sent to the smartwatch through the service discover protocol (SDP). In response to this request, the smartwatch sends the capabilities it supports to the mobile phone, including but not limited to services such as HFP and the advanced audio distribution profile (A2DP).
[0196] Step 3: The mobile phone sends a communication link establishment request to the smartwatch.
[0197] Step 4: The smartwatch sends a communication link establishment response to the mobile phone.
[0198] Optionally, in the above Step 3 and Step 4, after receiving the profile information, the mobile phone confirms that the smartwatch supports the HFP service and then establishes a communication link with the smartwatch based on the profile information, such as a communication link based on the RFCOMM protocol.
[0199] The above steps 1 to 4 can also be described as the pairing process between the mobile phone and the smart watch. After the mobile phone and the smart watch are successfully paired, the smart watch completes the initialization of the service level connection (SLC) through the following steps 5 to 8 to complete the HFP connection establishment process. Among them, the mobile phone and the smart watch transmit and interact commands through the established communication link to complete the SLC initialization process.
[0200] Step 5: The mobile phone and the smart watch confirm the functions supported based on the HFP connection with each other.
[0201] Optionally, the smart watch sends the AT+BRSF command to the mobile phone to inform the mobile phone of the functions supported by the smart watch in the case of the establishment of the HFP connection. After the mobile phone confirms, it sends the +BRSF command to the smart watch, that is, it sends a confirmation response. Through the AT command interaction, the mobile phone and the smart watch confirm the functions that can be realized by both sides based on the HFP connection. For example, it can include the notification of the status of the call service, the three-way call function, the incoming call ringing notification, the volume control, etc.
[0202] Step 6: The mobile phone obtains the codec capabilities of the smart watch and selects the corresponding codec at the start of the call service.
[0203] Optionally, the smart watch sends the AT+BAC=<u1,u2,…> command to the mobile phone to inform the mobile phone of its codec capabilities, such as broadband codec capabilities, narrowband codec capabilities, etc. Based on the codec capabilities of the smart watch, the mobile phone selects the corresponding codec at the start of the call service to realize the subsequent information interaction process with the smart watch.
[0204] Step 7: Confirm the notification metrics supported by the mobile phone.
[0205] Optionally, the smart watch sends the AT+CIND=? command to the mobile phone to query the notification metrics supported by the mobile phone. That is, it queries the notification functions supported by the mobile phone and the corresponding metrics. The mobile phone sends the +CIND command to the smart watch to inform the smart watch of the current list of indicators actually supported by the mobile phone.
[0206] For example, if the mobile phone supports sending the status corresponding to the call service to the smart watch after receiving the call service, the indicator list includes the status corresponding to the call service that can be notified. Another example is the message notification service between the mobile phone and the smart watch. The mobile phone supports sending notification messages to the smart watch. Correspondingly, the smart watch supports the message notification service and can receive and parse the notification messages sent by the mobile phone.
[0207] Step 8: Confirm the current notification metric status of the mobile phone.
[0208] Optionally, the smartwatch sends the AT+CIND? command to the mobile phone to query the status of the current notification metrics of the mobile phone. The mobile phone replies to the smartwatch with the +CIND command, which contains the status of the current notification metrics of the mobile phone.
[0209] For example, based on the +CIND command, the smartwatch confirms that the mobile phone is processing a call service, and the status corresponding to the call service is the dialing state.
[0210] The above steps 1 to 8 are the HFP connection establishment process initiated by the mobile phone. Correspondingly, the HFP connection establishment process can also be initiated by the smartwatch.
[0211] For example, when the smartwatch detects an operation to turn on Bluetooth, it actively sends profile information to the mobile phone to establish a communication link. Then, the HFP connection establishment process is completed through the above steps 5 to 8. Among them, the specific HFP connection establishment process can refer to the prior art and will not be elaborated here.
[0212] It should be noted that when the smartphone is powered on, the smartwatch initializes the HFP service and the message notification service. That is, the identifier of the HFP service and the identifier of the message notification service are added to the service list supported by the smartwatch. Subsequently, by querying the service list, it can be known that the smartwatch supports the HFP service and the message notification service.
[0213] Optionally, after establishing a Bluetooth connection between the mobile phone and the smartwatch, the mobile phone can send notification messages to the smartwatch via Bluetooth wireless transmission.
[0214] For example, Application A in the mobile phone that is used to connect to the wearable device supports the message notification service, and the mobile phone can send notification messages to the smartwatch through Application A. Among them, Application A can be Figure 5 the shown sports health APP.
[0215] Exemplarily, as Figure 9 shown, the mobile phone and the smartwatch establish a wireless connection through Bluetooth connection. Among them, an HFP connection is established between the mobile phone and the smartwatch. Application A of the mobile phone sends notification messages to the smartwatch via Bluetooth transmission. After being processed by the processor of the smartwatch, the content of the notification message is confirmed and corresponding actions are executed.
[0216] It can be understood that Figure 9 the structure shown in Figure 9 does not constitute a specific limitation on the mobile phone and the smartwatch. The mobile phone and the smartwatch may have more or fewer components than those shown in
[0217] S403. The smartwatch determines whether the current mobile phone needs to handle the first call service. If not, it disconnects the HFP connection.
[0218] Optionally, based on the HFP connection, the smartwatch determines whether the current mobile phone needs to handle the first call service. If the current mobile phone does not need to handle the first call service, the smartwatch sends a request to disconnect the HFP connection to the mobile phone. After receiving the disconnection HFP request, the mobile phone disconnects the HFP connection and sends a response to the smartwatch. If the current mobile phone needs to handle the first call service, after the first call service is completed, the smartwatch sends a request to disconnect the HFP connection to the mobile phone to disconnect the HFP connection with the mobile phone.
[0219] Exemplarily, as Figure 9 shown, the smartwatch sends a request to disconnect the HFP connection to the Bluetooth module of the mobile phone through its Bluetooth module. After the mobile phone disconnects the HFP connection, it sends a response to disconnect the HFP connection to the smartwatch. Also, the Bluetooth module of the mobile phone notifies the audio management module that the audio channel between the current mobile phone and the smartwatch has been disconnected. Subsequently, based on the state of the disconnected HFP connection, the audio management module determines that the audio channel between the Bluetooth module of the mobile phone and the Bluetooth module of the smartwatch has been disconnected, and thus will not send the call task to the Bluetooth module of the mobile phone. That is, the smartwatch will not be used to handle call services.
[0220] In a possible implementation, the smartwatch can use the method of querying the status corresponding to the call service to confirm whether the current mobile phone needs to handle the first call service. For example, if the mobile phone receives a call service, it will send the call status parameter to the smartwatch that has established an HFP connection with it based on the HFP connection, so that the smartwatch can determine the type of the call service. Subsequently, the smartwatch calls the AT command to query the status parameter corresponding to the current mobile phone call service, and then it can confirm the type of the current mobile phone call service. For example, the AT command is the AT+CLCC command, which is used to list the current calls.
[0221] As shown in Table 1 below, it is the query result of the AT+CLCC command and the meaning of the query result. Among them, the first call service corresponds to multiple states, that is, if the call service is the first call service, the query result is one or more of the results from 1 to 6. Since the status of the second call service is updated relatively fast, it is configured to correspond to a single query result of 0. That is, if the call service is the second call service, the query result is 0. The smartwatch can determine whether the current mobile phone needs to handle the first call service according to the query result. It can be understood that if there is no corresponding query result for the AT+CLCC command, it means that there is no call service on the current mobile phone. Then, the smartwatch can directly send a request to disconnect the HFP connection to the mobile phone.
[0222] Table 1
[0223] Query Result Corresponding Status 0 Active State 1 Held 2 Dialing 3 Alerting 4 Incoming Call 5 Waiting 6 Call Held by Response and Hold
[0224] It should be noted that the call service provided in general third-party instant messaging applications is the second call service. When the mobile phone receives a call service triggered by a third-party instant messaging application, the Active state in Table 1 above will be correspondingly generated. However, if the mobile phone generates multiple states during the process of processing the call service triggered by some third-party instant messaging applications, then the call service provided by such third-party instant messaging applications also belongs to the first call service.
[0225] It should be noted that wearable devices capable of processing the second call service can be pre-configured, such as Bluetooth headsets and other devices that facilitate user calls. Such wearable devices do not need to send a request to disconnect the HFP connection to the mobile phone, that is, they do not need to actively disconnect the HFP connection.
[0226] Exemplarily, the user can wear the Bluetooth headset on the ear. During the process of processing the second call service, the user only needs to operate the mobile phone to process the second call service. Then, the Bluetooth headset can be pre-configured as a wearable device capable of processing the second call service and does not need to actively disconnect the HFP connection with the mobile phone.
[0227] S404. After disconnecting the HFP connection, when the mobile phone receives a call service, determine the current call service type. If it is the second call service, execute step S405; if it is the first call service, execute step S406.
[0228] Among them, the call service type includes the first call service and the second call service. The first call service includes services such as answering calls and making calls in the call application. The second call service includes services such as short voice message chats, audio calls, and video calls in third-party instant messaging applications (such as the "WeChat" application, the "QQ" application, video conferencing applications, etc.).
[0229] Optionally, after the mobile phone receives the first call service, it will send a system broadcast message to notify each registered application module that the mobile phone has received the first call service. Among them, application A of the mobile phone needs to register to listen for this broadcast message to determine the current call service type of the mobile phone. If application A receives the broadcast message, it determines that the call service currently received by the mobile phone is the first call service.
[0230] Optionally, the mobile phone can also determine the call service type by detecting a second operation. The second operation is used to indicate the execution of the call service. For example, if the second operation is an operation of making a call or answering a call, and the mobile phone detects the second operation, it confirms that the mobile phone has received the first call service. Another example is that if the second operation is an operation of playing a short voice or recording a short voice, and the mobile phone detects the second operation, it confirms that the mobile phone has received the second call service.
[0231] In some embodiments, the mobile phone can also determine the call service type in other ways. For example, by monitoring the hardware status of the mobile phone to obtain the call service type received by the mobile phone. For example, by monitoring changes in the user interface (UI) of the mobile phone, changes in the speaker status, changes in the microphone status, etc., to determine whether the current call service is the first call service or the second call service. For example, the UI interface of the first call service of the mobile phone is the interface of the call function, such as the answering call page. When it is monitored that the UI interface of the mobile phone switches to display the answering call page, it is determined that the call service type currently received by the mobile phone is the first call service.
[0232] S405. The call service is the second call service, and the mobile phone processes the second call service.
[0233] Optionally, as described in step S403 above, the smartwatch has already disconnected the HFP connection with the mobile phone. Then, as Figure 9 shown, when the mobile phone receives the second call service generated by the first application, the audio management module detects the currently available module for playing sound or the recording module. The audio management module determines that there is no currently paired Bluetooth device, and then does not call the Bluetooth module to process the second call service. Instead, the audio management module will call the audio module of the mobile phone itself to process the call service. For example, the audio management module calls the speaker to play sound. Or, it calls the microphone to record. Among them, the first application is, for example, a third-party instant messaging application, and the second call service, for example, includes playing the audio of the first application or recording audio, or video calls, audio calls, etc.
[0234] Exemplarily, as Figure 10 shown in (a) of the main interface 1001, a third-party instant messaging application in the mobile phone, such as a social APP, receives a message. In response to the user's operation of clicking on the social APP icon 101, the mobile phone opens the social APP and displays the interface 1002 as shown in Figure 10 (b). In response to the user's operation of clicking on the unread message icon 102, the interface 1003 as shown in Figure 10 (c) is displayed. On the chat interface 1003, when the mobile phone detects the user's operation of clicking on the short voice message icon 103, it means that the mobile phone has received the second call service of playing the unread short voice message, and the audio management module needs to select the module for playing sound. At this time, as Figure 9 shown, based on the already disconnected HFP connection, the audio management module determines that there is no currently paired Bluetooth device. As shown in Figure 10 (d) of the interface 1004, the audio management module directly calls the mobile phone speaker to play the current short voice message. During this process, the mobile phone can process the second call service relatively quickly without the user noticing.
[0235] Alternatively, as shown in the main interface 1101 in (a) of Figure 11 , after the mobile phone detects the operation of the user clicking on the social APP icon 111, the interface 1102 as shown in (b) of Figure 11 is displayed. In response to the operation of the user clicking on the icon 112, the interface 1103 as shown in (c) of Figure 11 is displayed. On the interface 1103, when the mobile phone detects the operation of the user clicking on the icon 113, it means that the user needs to send a short voice message. That is, when the mobile phone receives the second call service for recording a short voice message, the audio management module needs to select the module for receiving sound. At this time, as shown in Figure 9 , based on the disconnected HFP connection, the audio management module determines that there is no currently paired Bluetooth device. As shown in the interface 1104 in (d) of Figure 11 , the audio management module directly calls the mobile phone microphone to record a short voice message. As shown by the icon 114 in the interface 1104, it is used to prompt the user that a short voice message is being recorded. During this process, the mobile phone can process the second call service relatively quickly, and the user does not have to wait, so as to improve efficiency.
[0236] It should be noted that if the HFP connection between the mobile phone and the smart watch is not disconnected in the above step S403. In one scenario, as shown in Figure 12 , if the HFP connection between the mobile phone and the smart watch is not disconnected. Then, in the case of the HFP connection, after the mobile phone receives the second call service, the mobile phone Bluetooth module will send an eSco establishment request to the smart watch Bluetooth module. In response to the eSco establishment request, the smart watch establishes an eSco with the mobile phone. After the eSco is established, the mobile phone Bluetooth module will notify the audio management module that the audio channel between the mobile phone and the smart watch has been established. After that, if the smart watch confirms that the current call service type processed by the mobile phone is the second call service, it will disconnect the eSco with the mobile phone. Correspondingly, the mobile phone Bluetooth module will notify the audio management module that the audio channel between the mobile phone and the smart watch has been disconnected. Only then can the mobile phone process the second call service through its own speaker or microphone and other audio modules.
[0237] Exemplarily, in the short voice playback scenario as shown in (c) of Figure 10 , in response to the operation of the user clicking on the short voice message icon 103. After the smart watch establishes an eSco with the mobile phone, the audio management module will send the audio data to the smart watch through the link 121 as shown in Figure 12 , that is, the established audio channel, and the speaker of the smart watch will play it until the eSco is disconnected. During this process, if the user does not pay attention to the smart watch, it may cause the loss of audio data. And, during the process of the mobile phone switching the audio data to the mobile phone speaker for playback, an abnormality may occur. As shown in Figure 12As shown, if the switch is normal, the audio management module will send audio data to the mobile phone speaker through link 122. If the switch is abnormal, the audio management module will send audio data to the mobile phone earpiece through link 123. As Figure 10 shown in interface 1005 in (e) of Figure 10 , it is the interface displayed on the mobile phone when the switch is abnormal. The mobile phone displays a prompt box 104 on interface 1005 to prompt the user that the mobile phone is currently playing voice in earpiece mode. At this time, the sound is relatively small and the user experience is poor. Also, as Figure 11 shown in the short voice recording scenario in (c) of Figure 11 , since there is a time-consuming process for the above mobile phone to establish eSco with the smartwatch until it disconnects eSco. Then, on interface 1103, in response to the user's operation of clicking icon 113, the mobile phone displays interface 1105 as Figure 11 shown in (e) of Figure 11 . An icon 115 is displayed on interface 1105 to prompt the user to wait for recording. The mobile phone cannot start recording voice until eSco is disconnected, and the user experience is poor.
[0238] In another scenario, as Figure 13 shown, if the HFP connection between the mobile phone and the smartwatch is not disconnected. Then, after the mobile phone receives the second call service, the mobile phone Bluetooth module will send an eSco establishment request to the smartwatch Bluetooth module. After receiving the request, the smartwatch will not establish eSco with the mobile phone temporarily. Instead, it will first confirm the type of call service being processed by the current mobile phone. If it is the second call service, it will send a response rejecting the establishment of eSco to the mobile phone. After the mobile phone confirms that the smartwatch rejects the establishment of eSco, it will send at least one eSco establishment request according to the type of eSco data packet. Until all the establishment requests corresponding to the eSco data packet types are rejected by the smartwatch, the mobile phone confirms that the eSco establishment fails. The mobile phone Bluetooth module notifies the audio management module that the audio channel between the mobile phone and the smartwatch fails to be established. After that, the mobile phone can process the second call service through its own audio modules such as the speaker or microphone.
[0239] Exemplarily, in the short voice playback scenario shown in (c) of Figure 10 , or in the short voice recording scenario shown in (c) of Figure 11 , during the process of the above smartwatch confirming the type of mobile phone call service and the mobile phone and the smartwatch repeatedly requesting to establish eSco, the mobile phone needs to wait continuously until the mobile phone confirms that the eSco establishment fails. That is to say, during the above process, the user needs to wait for short voice playback or wait for short voice recording, which affects the user experience.
[0240] It can be seen that, compared with the above two example scenarios, through the above step S403, the smart watch actively disconnects the HFP connection with the mobile phone, ensuring that the mobile phone will not detect the smart watch when receiving the second call service. Then, the mobile phone can directly select to use its own audio module to process the second call service, reducing the time consumption and avoiding audio data loss. Moreover, the user can operate only one mobile phone to process the second call service, reducing the user operation difficulty.
[0241] S406. The call service is the first call service, and the mobile phone sends a first notification to the smart watch.
[0242] Among them, the first notification is used to instruct the smart watch to process the first call service. The first notification may, for example, include an incoming call notification message or an outgoing call notification message.
[0243] Optionally, as described in the above step S404, after the application A in the mobile phone receives the system broadcast message and determines that the current call service is the first call service, it sends a first notification to the smart watch. After receiving the first notification, the smart watch can learn that the current mobile phone has received the first call service. Or, the application A learns the first call service received by the mobile phone through other pre-configured methods, such as monitoring the hardware status of the mobile phone, and sends a first notification to the smart watch.
[0244] Optionally, the first notification is a notification message in a pre-configured format between the mobile phone and the smart watch. For example, the first notification is a message in a fixed format. After receiving the first notification, the smart watch can directly parse the message or learn that the mobile phone has received the first call service according to the message identifier.
[0245] Exemplarily, as Figure 14 shown, the application A confirms that the mobile phone has received the first call service, such as the call service of answering a call. The application A uses the link 141 to send the first notification to the smart watch through Bluetooth transmission. The processor of the smart watch receives and parses the first notification, and learns that the mobile phone has received the first call service.
[0246] It should be noted that after the mobile phone receives the first call service and the second call service, it can send a notification message to the smart watch. For example, after the mobile phone receives the second call service, it sends a second notification to the smart watch. According to the second notification, the smart watch confirms that the current mobile phone has received the second call service, and then does not process the current call service.
[0247] S407. The smart watch and the mobile phone establish an HFP connection.
[0248] Optionally, after receiving the first notification, the smartwatch determines that the current mobile phone has received the first call service, and then sends a request to establish an HFP connection to the mobile phone. In response to the request to establish an HFP connection, the mobile phone sends a response to establish an HFP connection to the smartwatch and establishes an HFP connection with the smartwatch through the steps of establishing an HFP connection in step S402 above.
[0249] Exemplarily, as Figure 14 shown, the smartwatch calls the Bluetooth module to send an HFP connection establishment request to the mobile phone Bluetooth module. After receiving the HFP connection establishment request, the mobile phone agrees to establish an HFP connection and sends a response to establish an HFP connection to the smartwatch. Based on the re-established HFP connection, the mobile phone Bluetooth module notifies the audio management module that the Bluetooth audio channel between the current mobile phone and the smartwatch has been established.
[0250] S408. Based on the HFP connection, the mobile phone processes the first call service.
[0251] Optionally, the mobile phone determines that an HFP connection has been established with the smartwatch. Based on the HFP connection, the mobile phone sends an eSco establishment request to the smartwatch. After the smartwatch agrees, the mobile phone sends audio data to the smartwatch and / or receives audio data sent by the smartwatch to complete the processing of the first call service. In this way, after receiving the first call service, the mobile phone notifies the smartwatch, causing the smartwatch to actively establish an HFP connection with the mobile phone. Thus, it is possible to conveniently and quickly process the first call service using the smartwatch.
[0252] Exemplarily, as Figure 14 shown, after the HFP connection between the mobile phone and the smartwatch is successfully established, the audio management module determines that the modules available for processing audio currently include audio modules such as the Bluetooth module, the speaker, and the microphone. The audio management module selects the Bluetooth audio module with a high priority as the input / output module for audio data. That is, the mobile phone selects the device connected through the HFP connection to process the first call service, and uses the smartwatch to answer or make a call. As Figure 14 shown, the mobile phone plays the audio data using the speaker of the smartwatch and collects the audio data using the microphone of the smartwatch. That is, the mobile phone sends the audio data to the smartwatch and receives the audio data sent by the smartwatch, thereby completing the call. Among them, the priority of the input / output module of the audio data is pre-configured in the mobile phone. Generally, the priority of the mobile phone Bluetooth module is higher than that of the mobile phone speaker and microphone modules.
[0253] It should be noted that during the process of the smartwatch and the mobile phone re - establishing the HFP connection, the audio management module of the mobile phone may have queried once whether there is an established audio channel. After that, after the HFP connection is re - established, the audio management module detects the audio channel again. Among them, the HFP re - establishment process takes an extremely short time, which can ensure that the HFP connection is re - established without the user's awareness. Then, the mobile phone receives the operation of the user starting to execute the first call service, such as clicking the answer - call button. At this time, the audio channel has been established, and the audio management module directly processes the audio data using Bluetooth based on this audio channel, without causing audio data loss.
[0254] S409. After the first call service ends, the smartwatch disconnects the HFP connection.
[0255] Optionally, after the smartwatch finishes processing the first call service, it will actively release the HFP connection with the mobile phone. In this way, it not only ensures that the mobile phone can use the smartwatch to process the first call service, but also ensures that when the mobile phone receives the second call service next time, it will not send an eSco establishment request to the smartwatch based on the HFP connection, avoiding abnormal call situations. That is to say, after the smartwatch actively releases the HFP connection, the above - mentioned steps S404 - S409 are executed cyclically.
[0256] It can be seen that in the Bluetooth communication method provided by this application, when the mobile phone has no first call service, the wearable device can actively release the HFP connection with the mobile phone. In this way, subsequent problems such as audio data stream loss, abnormal voice switching, and waiting delay will not occur when the mobile phone receives the second call service. And when the mobile phone receives the first call service, it can enable the wearable device to know that the current mobile phone is processing the first call service. The wearable device actively establishes an HFP connection with the mobile phone, and then based on the HFP connection, the mobile phone can use the wearable device to process the first call service. In this way, the efficiency of the mobile phone in processing the first call service and the second call service is improved, which is convenient for user operation and enhances the user experience.
[0257] The above - mentioned method is not only applicable to the scenario of telephone voice messages, but also applicable to the scenario of voice messages for third - party applications. Usually, a first application program is installed on the mobile phone. Correspondingly, a watch version of the first application program is installed on the smartwatch, or the first application program may not be installed on the smartwatch. The mobile phone and the smartwatch have established an HFP service, and when the mobile phone does not need to process a call, it can automatically disconnect the HFP service. Then, when the mobile phone detects the operation of the user clicking to play the voice message in the first application program, it can directly play the voice message because the HFP service is disconnected at this time, thus avoiding the delay caused by the mobile phone detecting the HFP service.
[0258] In the embodiments of the present application, an APP corresponding to a smart watch is usually installed in a mobile phone, which is usually developed by a mobile phone manufacturer and a smart watch manufacturer. A user can set the smart watch in the APP, such as operations like switching the watch face and adding a new device. Among them, the signaling for the settings is usually a proprietary Bluetooth protocol. In the embodiments of the present application, the HFP service can be disconnected through the APP to avoid latency.
[0259] As Figure 15 shown, an electronic device is disclosed in the embodiments of the present application. The electronic device 1500 can be used to implement the methods described in the above method embodiments. Exemplarily, the electronic device 1500 may specifically include: a processing unit 1501, a sending unit 1502, and a receiving unit 1503. Among them, the processing unit 1501 is used to support the electronic device 1500 to execute Figure 4 steps S404 and S405 in Figure 4 ; the sending unit 1502 is used to support the electronic device 1500 to execute Figure 4 steps S406, S407, and S408 in
[0260] ; the receiving unit 1503 is used to support the electronic device 1500 to execute Figure 15 steps S407 and S408 in Figure 15 . Among them, all the relevant contents of the steps involved in the above method embodiments can be cited in the function descriptions of the corresponding functional modules, and will not be elaborated here. Figure 15 shown, the electronic device 1500 can execute Figure 4 the Bluetooth communication method shown in
[0261] Figure 15 when the processing unit executes the program or instruction. Figure 4 The technical effects of the electronic device 1500 shown in
[0262] Figure 15 can refer to the technical effects of the Bluetooth communication method shown in
[0263] As Figure 16As shown in the figure, an embodiment of the present application discloses a wearable device, and the wearable device 1600 can be used to implement the methods described in the above various method embodiments. Exemplarily, the wearable device 1600 may specifically include: a processing unit 1601, a receiving unit 1602, and a transmitting unit 1603. Among them, the processing unit 1601 is used to support the wearable device 1600 to execute Figure 4 Steps S403 and S409 in; the receiving unit 1602 is used to support the wearable device 1600 to execute Figure 4 Steps S406, S407, and S408 in; the transmitting unit 1603 is used to support the wearable device 1600 to execute Figure 4 Steps S407 and S408 in. Among them, all relevant contents of each step involved in the above method embodiments can be cited in the function descriptions of the corresponding functional modules, and will not be elaborated here.
[0264] Optionally, Figure 16 The wearable device 1600 shown may further include a storage unit ( Figure 16 Not shown in), and the storage unit stores programs or instructions. When the processing unit executes the program or instruction, it causes Figure 16 The wearable device 1600 shown can execute Figure 4 The Bluetooth communication method shown.
[0265] Figure 16 The technical effects of the wearable device 1600 shown can refer to Figure 4 The technical effects of the Bluetooth communication method shown, and will not be elaborated here.
[0266] Figure 16 The processing unit involved in the wearable device 1600 shown can be implemented by a processor or processor-related circuit components, and can be a processor or a processing module. The receiving unit 1602 and the transmitting unit 1603 can be combined into a transceiver unit, and the transceiver unit can be implemented by a transceiver or transceiver-related circuit components, and can be a transceiver or a transceiver module.
[0267] An embodiment of the present application provides a Bluetooth communication system, and the Bluetooth communication system includes an electronic device as shown in Figure 15 And a wearable device as shown in Figure 16 . Among them, an HFP connection is established between the electronic device and the wearable device.
[0268] The electronic device is used to automatically disconnect the HFP connection when the electronic device meets a preset condition.
[0269] The electronic device is further used to send a first notification to the wearable device after receiving an incoming call.
[0270] A wearable device for establishing an HFP connection with an electronic device according to a first notification.
[0271] The electronic device is further configured to, after detecting an operation of the user answering an incoming call, send first audio data of the incoming call to the wearable device and / or receive second audio data of the incoming call sent by the wearable device.
[0272] In a possible implementation, the electronic device is further configured to, after detecting an operation of the user making an outgoing call, send a second notification to the wearable device.
[0273] The wearable device is further configured to establish an HFP connection with the electronic device according to the second notification.
[0274] After the call connection is established, the electronic device is further configured to send third audio data of the outgoing call to the wearable device and / or receive fourth audio data of the outgoing call sent by the wearable device.
[0275] In a possible implementation, the wearable device is further configured to disconnect the HFP connection with the electronic device after detecting an operation of ending the call or receiving an indication of ending the call sent by the electronic device.
[0276] In a possible implementation, the electronic device is further configured to play the first audio or record the second audio when detecting an operation of playing the first audio of the first application or recording the second audio using the first application.
[0277] In a possible implementation, the operation of playing the first audio includes any one of the following: an operation of playing the first voice message, an operation of answering a video call, and an operation of answering an audio call.
[0278] In a possible implementation, the operation of recording the second audio using the first application includes an operation of recording the second voice message using the first application or an operation of recording using the first application.
[0279] In a possible implementation, the electronic device is further configured to collect third audio after the video call or audio call connection is established.
[0280] In a possible implementation, the preset condition includes that the electronic device does not receive an incoming call or does not detect an operation of making an outgoing call.
[0281] Wherein, the technical effects of the Bluetooth communication system can refer to the technical effects of the above Bluetooth communication method, which will not be elaborated here.
[0282] The embodiments of the present application also provide a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through a line. For example, the interface circuit can be used to receive signals from other devices. For another example, the interface circuit can be used to send signals to other devices. Exemplarily, the interface circuit can read the instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can be made to execute each step performed by the mobile phone in the above embodiments. Or, the wearable device can be made to execute each step performed by the mobile phone in the above embodiments. Of course, the chip system may also include other discrete devices, and the embodiments of the present application do not make specific limitations thereto.
[0283] The embodiments of the present application also provide a computer-readable storage medium, in which computer instructions are stored. When the computer instructions run on an electronic device, the electronic device is made to execute the above-related method steps to implement the Bluetooth communication method in the above embodiments.
[0284] The embodiments of the present application also provide a computer-readable storage medium, in which computer instructions are stored. When the computer instructions run on a wearable device, the wearable device is made to execute the above-related method steps to implement the Bluetooth communication method in the above embodiments.
[0285] The embodiments of the present application also provide a computer program product. When the computer program product runs on a computer, the computer is made to execute the above-related steps to implement the Bluetooth communication method in the above embodiments.
[0286] In addition, the embodiments of the present application also provide a device, which may specifically be a component or a module. The device may include a processor and a memory connected thereto; wherein, the memory is used to store computer execution instructions. When the device runs, the processor can execute the computer execution instructions stored in the memory so that the device executes the Bluetooth communication method in each of the above method embodiments.
[0287] Among them, the electronic device, the wearable device, the computer-readable storage medium, the computer program product or the chip provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved by them can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated herein.
[0288] From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above function modules is used as an example. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. The specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.
[0289] In several embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. For example, the terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces, and the indirect coupling or communication connection of the modules or units can be in electrical, mechanical or other forms.
[0290] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0291] In addition, the function units in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software function unit.
[0292] If the above integrated unit is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other various media that can store program instructions.
[0293] As described above, it is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims described above.
Claims
1. A communication system, characterized in that, The communication system includes an electronic device and a wearable device; The wearable device is configured to establish an HFP connection with the electronic device when the electronic device needs to process a first call service, where the first call service includes answering a call and making a call in the call application of the electronic device; The wearable device is further configured to disconnect the HFP connection after detecting an operation to end the first call service or receiving an indication from the electronic device to end the first call service.
2. The system according to claim 1, wherein The electronic device is further configured to establish a Bluetooth connection with the wearable device; The wearable device is further configured to maintain the Bluetooth connection when disconnecting the HFP connection.
3. The system according to claim 1 or 2, wherein The electronic device is configured to send a first notification to the wearable device after receiving the first call service; The wearable device is configured to determine that the electronic device needs to process the first call service according to the first notification.
4. The system according to any one of claims 1-3, wherein The wearable device is configured to automatically disconnect the HFP connection when the electronic device does not need to process the first call service before establishing an HFP connection with the electronic device when the electronic device needs to process the first call service.
5. The system according to claim 4, wherein The wearable device is configured to send a query request to the electronic device, where the query request is used to query a status parameter corresponding to the call service of the electronic device; The electronic device is configured to send a query result to the wearable device, where the query result includes an indication of whether the electronic device currently needs to process the first call service; The wearable device is configured to determine that the electronic device does not need to process the first call service according to the query result.
6. The system according to claim 5, wherein The query request is an AT command.
7. The system according to any one of claims 1-6, wherein The electronic device is further configured to play the first audio or record the second audio when detecting an operation of playing the first audio of the first application or recording the second audio using the first application, where the first application includes an instant messaging application.
8. The system according to claim 7, wherein The operation of playing the first audio includes any one of the following: an operation of playing a first voice message, an operation of answering a video call, and an operation of answering an audio call.
9. The system according to claim 7, wherein The operation of recording the second audio using the first application includes an operation of recording a second voice message using the first application or an operation of recording using the first application.
10. The system according to claim 7, wherein The electronic device is further configured to collect a third audio after the video call or audio call connection of the first application is established.
11. A communication method, characterized in that, Applied to a system including an electronic device and a wearable device, the method includes: When the electronic device needs to process a first call service, the wearable device and the electronic device establish an HFP connection, and the first call service includes answering a call and making a call in the call application of the electronic device; After the wearable device detects an operation to end the first call service or receives an indication from the electronic device to end the first call service, the wearable device disconnects the HFP connection.
12. The method according to claim 11, wherein The method further includes: The electronic device and the wearable device establish a Bluetooth connection; When disconnecting the HFP connection, the wearable device maintains the Bluetooth connection.
13. The method according to claim 11 or 12, characterized in that, That the electronic device needs to process a first call service includes: After receiving the first call service, the electronic device sends a first notification to the wearable device; The wearable device determines that the electronic device needs to process the first call service according to the first notification.
14. The method according to any one of claims 11-13, characterized in that Before the wearable device and the electronic device establish an HFP connection, the method further includes: When the electronic device does not need to process the first call service, the HFP connection is automatically disconnected.
15. The method according to claim 14, wherein That the electronic device does not need to process the first call service includes: The wearable device sends a query request to the electronic device, and the query request is used to query the status parameter corresponding to the call service of the electronic device; The electronic device sends a query result to the wearable device, and the query result includes an indication of whether the electronic device currently needs to process the first call service; The wearable device determines that the electronic device does not need to process the first call service according to the query result.
16. The method according to claim 15, wherein The query request is an AT command.
17. The method according to any one of claims 11-16, characterized in that, The method further includes: When the electronic device detects an operation of playing a first audio of a first application or recording a second audio using the first application, the electronic device plays the first audio or records the second audio, where the first application includes an instant messaging application.
18. The method according to claim 17, wherein The operation of playing the first audio includes any one of the following: an operation of playing a first voice message, an operation of answering a video call, and an operation of answering an audio call.
19. The method according to claim 17, wherein The operation of recording a second audio using the first application includes an operation of recording a second voice message using the first application or an operation of recording using the first application.
20. The method according to claim 17, wherein The method further includes: After a video call or an audio call connection of the first application is established, the electronic device collects a third audio.
21. A communication method, characterized in that, Applied to a wearable device, the method includes: When the electronic device needs to process a first call service, the wearable device and the electronic device establish an HFP connection, and the first call service includes answering a call and making a call in the call application of the electronic device; After the wearable device detects an operation to end the first call service or receives an indication from the electronic device to end the first call service, the wearable device disconnects the HFP connection.
22. The method according to claim 21, wherein The method further includes: The wearable device and the electronic device establish a Bluetooth connection; When disconnecting the HFP connection, the wearable device maintains the Bluetooth connection.
23. The method according to claim 21 or 22, characterized in that, The electronic device needs to process the first call service, including: The wearable device receives a first notification, which is sent by the electronic device to the wearable device after receiving the first call service. The wearable device determines that the electronic device needs to process the first call service according to the first notification.
24. The method according to any one of claims 21-23, characterized in that Before the wearable device and the electronic device establish an HFP connection, the method further includes: When the electronic device does not need to process the first call service, the HFP connection is automatically disconnected.
25. The method according to claim 24, wherein The situation where the electronic device does not need to process the first call service includes: The wearable device sends a query request to the electronic device, and the query request is used to query the status parameters corresponding to the call service of the electronic device. The wearable device receives the query result sent by the electronic device, and the query result includes an indication of whether the electronic device currently needs to process the first call service. The wearable device determines that the electronic device does not need to process the first call service according to the query result.
26. The method according to claim 24, characterized in that The query request is an AT command.
27. A communication method, characterized in that, Applied to an electronic device, the method includes: When the electronic device needs to process the first call service, the electronic device and the wearable device establish an HFP connection. The first call service includes answering a call and making a call in the call application of the electronic device. After the first call service ends, the electronic device disconnects the HFP connection.
28. The method according to claim 27, wherein The method further includes: The electronic device and the wearable device establish a Bluetooth connection. When the electronic device disconnects the HFP connection, the Bluetooth connection is maintained.
29. The method according to claim 27 or 28, characterized in that, The step of when the electronic device needs to process the first call service and the electronic device and the wearable device establish an HFP connection includes: After receiving the call answering service, send a first notification to the wearable device, so that the wearable device can establish the HFP connection according to the first notification. The electronic device and the wearable device establish the HFP connection.
30. The method according to claim 27 or 28, characterized in that, The step of when the electronic device needs to process the first call service and the electronic device and the wearable device establish the HFP connection includes: After detecting the operation of the user's call-making service, send a second notification to the wearable device, so that the wearable device can establish the HFP connection according to the second notification. The electronic device and the wearable device establish the HFP connection.
31. The method according to any one of claims 27-30, characterized in that, The method further includes: After the call connection is established, send the third audio data of the first call service to the wearable device and / or receive the fourth audio data of the first call service sent by the wearable device.
32. The method according to any one of claims 27-31, characterized in that, Before the wearable device and the electronic device establish an HFP connection, the method further includes: When the electronic device does not need to process the first call service, the electronic device automatically disconnects the HFP connection.
33. The method according to any one of claims 27 - 32, characterized in that, The method further includes: When the electronic device detects an operation of playing a first audio of a first application or recording a second audio by using the first application, the first audio is played or the second audio is recorded, where the first application includes an instant messaging application.
34. The method according to claim 33, wherein, The operation of playing the first audio includes any one of the following: an operation of playing a first voice message, an operation of answering a video call, and an operation of answering an audio call.
35. The method according to claim 33, characterized in that, The operation of recording a second audio by using the first application includes an operation of recording a second voice message by using the first application or an operation of recording by using the first application.
36. The method according to claim 33, wherein The method further includes: After a video call or an audio call connection of the first application is established, the electronic device collects a third audio.
37. A wearable device, characterized in that, including: a processor, a memory, and an audio module, where the memory and the audio module are coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the wearable device executes the communication method according to any one of claims 21-26.
38. An electronic device, characterized in that, including: a processor, a memory, and an audio module, where the memory and the audio module are coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes the communication method according to any one of claims 27-36.
39. A computer-readable storage medium storing instructions therein, characterized in that, When the instruction runs on the wearable device, the wearable device executes the communication method according to any one of claims 21-26.
40. A computer-readable storage medium storing instructions, characterized in that, When the instruction runs on the electronic device, the electronic device executes the communication method according to any one of claims 27-36.