Bluetooth communication method, wearable device and system
By automatically disconnecting the HFP connection when the electronic device meets the preset conditions, the delay problem caused by the HFP connection when processing the call service is solved, and the HFP connection is reconstructed when an incoming call is received so as to answer the phone with the wearable device, improving the user experience.
Patent Information
- Application Number
- CN202010808831.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-12
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2040-08-12
AI Technical Summary
In the case of HFP connection between the electronic device and the wearable device, if the electronic device needs to process the call service, the wearable device that establishes an HFP connection will be called by default to process the audio data of the call service, resulting in inconvenient operation when the user performs short message voice chat or video call services in an instant communication application, and there is unnecessary delay.
When the electronic device meets the preset conditions, the HFP connection will be automatically disconnected to avoid delays caused by establishing and disconnecting the eSco link with the wearable device when receiving services such as voice messages, video calls, etc. After receiving the incoming call, the electronic device sends a first notification to the wearable device and rebuilds the HFP connection so as to answer the incoming call using the wearable device.
By automatically disconnecting the HFP connection, the delay caused by maintaining the HFP connection is reduced, and the user's operational convenience and experience when handling call services is improved, ensuring that electronic devices can effectively use wearable devices to answer calls.
Smart Images

Figure CN114079892B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a Bluetooth communication method, wearable device and system. Background Art
[0002] With the development of wireless technology, Bluetooth technology is widely used in wearable devices such as headphones and watches, which enables Bluetooth calls using wearable devices and improves the convenience of calls. The implementation of the Bluetooth call function requires the establishment of a hands-free protocol (HFP) connection between the wearable device and the electronic device in advance. Subsequently, when the electronic device receives a call service, based on the HFP connection, an enhanced synchronous connection oriented link (eSco) is established with the wearable device as an audio data transmission channel, thereby realizing the use of the wearable device to process the call service. After the call service ends, the electronic device disconnects the eSco between the wearable device, but maintains the HFP connection for processing the next call service.
[0003] When an electronic device establishes an HFP connection with a wearable device, if the electronic device needs to process a call service, the wearable device with which the HFP connection is established will be called by default to process the audio data of the call service, such as receiving audio data or playing audio data. However, in some scenarios, if the call service is a short message voice chat or video call in an instant messaging application, it is not convenient for users to operate it using wearable devices (such as smart watches, smart bracelets, etc.). This is because, on the one hand, users need to manually operate the electronic device, such as selecting a contact, clicking on an unread "voice", or viewing the other party's image, etc., and on the other hand, they need to use a wearable device to listen to the sound. Operating two devices at the same time results in a poor user experience.
[0004] Based on the above scenario, a solution is proposed in the prior art. If the electronic device needs to process call services, it sends an eSco establishment request to the wearable device, and the wearable device first establishes an eSco with the electronic device. Afterwards, if the wearable device confirms that the current call service is a call service in an instant messaging application, the eSco is disconnected. This allows the electronic device to use its own audio module to process call services, which ensures that the user can complete the call service by operating one device. However, in this solution, a certain delay will be caused in the process of establishing eSco until the eSco is disconnected. For example, if a user needs to record a short voice message, after clicking to start recording, he needs to wait until the electronic device can use the microphone to receive the sound before he can start recording, which results in a poor user experience. Summary of the invention
[0005] The Bluetooth communication method, wearable device and system provided by the present application can automatically disconnect the HFP connection when the electronic device meets the preset conditions. Then, after the electronic device detects the operation of playing a voice message, the wearable device will not be used to play the voice message, causing unnecessary delays. Moreover, after receiving an incoming call, the electronic device can reestablish the HFP connection to ensure that the electronic device can answer the call using the wearable device.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, the present application provides a Bluetooth communication system, which 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. The electronic device is used to automatically disconnect the HFP connection when the electronic device meets a preset condition. 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.
[0008] Optionally, the preset condition includes that the electronic device does not receive an incoming call or does not detect an outgoing call. When the electronic device and the wearable device maintain an HFP connection, the electronic device will send the corresponding call status to the wearable device when it receives an incoming call or detects an outgoing call. Then, the wearable device can determine whether the current electronic device needs to process the call based on the HFP connection, and if not, the HFP connection can be disconnected.
[0009] In this way, the HFP connection can be automatically disconnected by judging whether the electronic device meets the preset conditions. This can effectively avoid the delay caused by the electronic device establishing and disconnecting the eSco link with the wearable device when receiving voice messages, video calls, audio calls and other services while maintaining the HFP connection.
[0010] Furthermore, when the electronic device receives an incoming call, it can notify the wearable device, thereby reestablishing 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, thereby improving the user experience.
[0011] Optionally, an application for managing the wearable device may be installed in the electronic device, such as application A. Application A may be a third-party application, which may monitor whether the electronic device receives an incoming call and send a first notification to the wearable device when receiving an incoming call, thereby reestablishing the HFP connection.
[0012] In a possible implementation, the electronic device is further configured to send a second notification to the wearable device after detecting a 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 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.
[0013] That is, when the electronic device needs to process the first call service of an incoming or outgoing call, it can send a notification to the wearable device to reestablish 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.
[0014] In a possible implementation, the wearable device is further configured to disconnect the HFP connection with the electronic device after detecting an operation to end a call or receiving an instruction to end a call sent by the electronic device.
[0015] Among them, the user can hang up the call by operating the wearable device after the call is over. Generally, after the call is hung up, the electronic device no longer needs to process the first call service of the incoming or outgoing call. Then, the wearable device determines that the current electronic device meets the preset conditions and disconnects the HFP connection. Thereby avoiding unnecessary delays when the electronic device receives the second call service such as voice messages in the future. Alternatively, the user can hang up the call by operating the electronic device after the call is over. Then, after detecting the hang-up operation, the electronic device will send an indication to the wearable device or the wearable device will detect that the call has been disconnected, and then disconnect the HFP connection.
[0016] In a possible implementation, the electronic device is further configured to play the first audio or record the second audio when an operation of playing the first audio of the first application or recording the second audio using the first application is detected.
[0017] The first application may be a third-party instant messaging application (e.g., "WeChat" application, "QQ" application, video conferencing application, etc.), and the voice message chat, audio call, video call, telephone voice and other services in the first application may be described as the second call service. In other words, in general, the call service may include the first call service and the second call service, and the first call service includes services such as answering calls and making calls in the call application. The second call service includes the call service in the first application.
[0018] Generally, the electronic device has the first application installed, and correspondingly, the wearable device such as a smart watch has the watch version of the first application installed. Of course, the wearable device may not have the first application installed.
[0019] Then, when the electronic device detects the operation of playing the audio of the first application or recording the audio, it will not detect the disconnected HFP connection, and can directly use its own audio module, such as speakers, microphones, etc. to process the audio. For example, it can directly play a voice message or start recording a message based on the corresponding operation. This avoids the electronic device from calling the wearable device to process the corresponding business after detecting the HFP connection, causing delays.
[0020] In a possible implementation, 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.
[0021] In a possible implementation, the operation of recording the second audio by using the first application includes the operation of recording the second voice message by using the first application or the operation of recording the audio by using the first application.
[0022] In a possible implementation, the electronic device is further configured to collect a third audio after the video call or audio call connection is established.
[0023] In the video call and audio call scenarios, the electronic device can use its own audio module to collect audio, without having to call the wearable device as an audio collection module.
[0024] 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, the HFP connection is automatically disconnected. After receiving an incoming call, the electronic device sends a first notification to the wearable device; so that the wearable device establishes an HFP connection with the electronic device according to the first notification. After detecting the user's operation of answering the incoming call, the electronic device 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.
[0025] In a possible implementation, before the electronic device establishes an HFP connection with the wearable device, the method further includes: after the electronic device detects the user's outgoing call operation, the electronic device sends a second notification to the wearable device, so that the wearable device establishes 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.
[0026] In a possible implementation, the method further includes: after the call is ended, the electronic device disconnects the HFP connection with the wearable device.
[0027] In a possible implementation, 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, the electronic device plays the first audio or records the second audio.
[0028] In a possible implementation, 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.
[0029] In a possible implementation, the operation of recording the second audio by using the first application includes the operation of recording the second voice message by using the first application or the operation of recording the audio by using the first application.
[0030] In a possible implementation, the method further includes: the electronic device collecting a third audio after the video call or audio call connection is established.
[0031] In a possible implementation, the preset condition includes the electronic device not receiving an incoming call or not detecting an outgoing call.
[0032] 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, and will not be repeated here.
[0033] 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 protocol 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, the HFP connection is automatically disconnected. 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 the second audio data of the incoming call sent to the electronic device.
[0034] In a possible implementation, 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 to the wearable device after the electronic device detects an outgoing call operation by the user. 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.
[0035] In a possible implementation, the method further includes: after the wearable device detects an operation to end the call, or receives an instruction to end the call sent by the electronic device, disconnecting the HFP connection with the electronic device.
[0036] In a possible implementation, the preset condition includes the electronic device not receiving an incoming call or not detecting an outgoing call.
[0037] 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, and will not be repeated here.
[0038] In a fourth aspect, the present application provides an electronic device, comprising: 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, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device performs the following operations: when a preset condition is met, the hands-free protocol HFP connection with the wearable device is automatically disconnected. After receiving an incoming call, a first notification is sent to the wearable device; so that the wearable device establishes an HFP connection according to the first notification. After detecting the user's operation of answering the incoming call, the first audio data of the incoming call is sent to the wearable device and / or the second audio data of the incoming call sent by the wearable device is received.
[0039] In a possible implementation, when the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: after detecting the user's outgoing call operation, a second notification is sent to the wearable device, so that the wearable device establishes an HFP connection according to the second notification. After the call connection is established, the third audio data of the outgoing call is sent to the wearable device and / or the fourth audio data of the outgoing call sent by the wearable device is received.
[0040] In a possible implementation, when the processor reads the computer instruction from the memory, it also causes the electronic device to perform the following operation: after the call is ended, disconnect the HFP connection with the wearable device.
[0041] In one possible implementation, when the processor reads computer instructions from the memory, it also causes the electronic device to perform the following operation: when an operation of playing the first audio of the first application or recording the second audio using the first application is detected, the first audio is played or the second audio is recorded.
[0042] In a possible implementation, 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.
[0043] In a possible implementation, the operation of recording the second audio by using the first application includes the operation of recording the second voice message by using the first application or the operation of recording the audio by using the first application.
[0044] In a possible implementation, when the processor reads the computer instruction 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.
[0045] In a possible implementation, the preset condition includes an operation in which the electronic device does not receive an incoming call or does not detect an outgoing call.
[0046] 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, and will not be repeated here.
[0047] In a fifth aspect, the present application provides a wearable device, comprising: a processor, a memory and an audio module, wherein 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 performs the following operations: when it is determined that the electronic device meets the preset conditions, the hands-free protocol HFP connection between the wearable device and the electronic device is automatically disconnected. A first notification is received, and an HFP connection is established 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. The first audio data of the incoming call sent by the electronic device and / or the second audio data of the incoming call sent to the electronic device are received.
[0048] In a possible implementation, when the processor reads the computer instructions from the memory, the wearable device is also caused to perform the following operations: receiving a second notification, and establishing 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 an outgoing call by the user. After the call connection is established, receiving the third audio data of the outgoing call sent by the electronic device and / or sending the fourth audio data of the outgoing call to the electronic device.
[0049] In a possible implementation, when the processor reads the computer instructions from the memory, it also causes the wearable device to perform the following operation: after detecting an operation to end a call or receiving an instruction to end a call sent by the electronic device, disconnect the HFP connection with the electronic device.
[0050] In a possible implementation, the preset condition includes the electronic device not receiving an incoming call or not detecting an outgoing call.
[0051] 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, and will not be repeated here.
[0052] In a sixth aspect, the present application provides an electronic device having the function of implementing the Bluetooth communication method described in the second aspect and any possible implementation thereof. The 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.
[0053] In a seventh aspect, the present application provides a wearable device having the function of implementing the Bluetooth communication method described in the third aspect and any possible implementation thereof. The 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] In an eighth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute a Bluetooth communication method as described in the second aspect and any possible implementation thereof.
[0055] In a ninth aspect, the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on a wearable device, the wearable device executes a Bluetooth communication method as described in the third aspect and any possible implementation thereof.
[0056] In a tenth aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the Bluetooth communication method as described in the second aspect and any possible implementation thereof.
[0057] In an eleventh aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the wearable device to execute a Bluetooth communication method as described in the third aspect and any possible implementation thereof.
[0058] In a twelfth aspect, a circuit system is provided, the circuit system comprising a processing circuit, the processing circuit being configured to execute the Bluetooth communication method as described in the second aspect and any possible implementation thereof. Alternatively, the processing circuit is configured to execute the Bluetooth communication method as described in the third aspect and any possible implementation thereof.
[0059] In the thirteenth aspect, an embodiment of the present application provides a chip system, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the Bluetooth communication method as described in the above-mentioned second aspect and any possible implementation thereof; or, the at least one processor executes the Bluetooth communication method as described in the above-mentioned third aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 A system schematic diagram provided for an embodiment of the present application;
[0061] Figure 2 A schematic diagram of the structure of a wearable device provided in an embodiment of the present application;
[0062] Figure 3A A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0063] Figure 3B A schematic diagram of a software structure block diagram of an electronic device provided in an embodiment of the present application;
[0064] Figure 4 Schematic diagram of a Bluetooth communication method provided in an embodiment of the present application Figure 1 ;
[0065] Figure 5 Interface diagram of an electronic device provided in an embodiment of the present application Figure 1 ;
[0066] Figure 6 Interface diagram of an electronic device provided in an embodiment of the present application Figure 2 ;
[0067] Figure 7 Schematic diagram 3 of the interface of the electronic device provided in the embodiment of the present application;
[0068] Figure 8 A schematic diagram of a process for establishing an HFP connection provided in an embodiment of the present application;
[0069] Fig. 9 Schematic diagram of the application scenario of the Bluetooth communication method provided in the embodiment of the present application Figure 1 ;
[0070] Fig.10 Interface diagram of an electronic device provided in an embodiment of the present application Figure 4 ;
[0071] Fig.11 Interface diagram of an electronic device provided in an embodiment of the present application Figure 5 ;
[0072] Fig.12 Schematic diagram of application scenarios of the Bluetooth communication method in the prior art provided in the embodiment of the present application Figure 1 ;
[0073] Fig.13 Schematic diagram of application scenarios of the Bluetooth communication method in the prior art provided in the embodiment of the present application Figure 2 ;
[0074] Fig.14 Schematic diagram of the application scenario of the Bluetooth communication method provided in the embodiment of the present application Figure 2 ;
[0075] Fig.15 A schematic diagram of the structure of the electronic device provided in the embodiment of the present application Figure 2 ;
[0076] Fig.16 A schematic diagram of the structure of a wearable device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0077] The Bluetooth communication method, wearable device and system provided in the embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0078] The terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0079] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0080] In the description of this application, unless otherwise specified, the meaning of "plurality" refers to two or more. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0081] like Figure 1, which is a schematic diagram of an application scenario of a Bluetooth communication method provided in 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.
[0082] For example, the wearable device 100 may be a smart watch, a smart bracelet, a wireless headset, smart glasses, or a smart helmet, etc. The electronic device 200 may be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a personal digital assistant (PDA), a vehicle terminal, etc. The specific forms of the wearable device 100 and the electronic device 200 in the embodiment of the present application are not limited in any way.
[0083] The wearable device 100 can establish a wireless connection with the electronic device 200 through wireless communication technology. The wireless communication technology may include Bluetooth (BT), which may 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 technology (NFC), infrared technology (IR), or general 2.4G / 5G frequency band wireless communication technology, etc.
[0084] The embodiment of the present application is described with the wireless communication technology being Bluetooth. After 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 between the wearable device 100 and the electronic device 200 can be established. Subsequently, based on the HFP connection, the wearable device 100 acts as a Bluetooth device of the electronic device 200 to process the call service received by the electronic device 200. Among them, the call service includes a first call service and a second call service. The first call service includes services such as answering calls and making calls in call applications. The second call service includes services such as short voice message chats, audio calls, video calls, etc. in third-party instant messaging applications (for example, "WeChat" applications, "QQ" applications, video conferencing applications, etc.).
[0085] Generally, for the user, if the call service is the first call service, the user only needs to use the wearable device 100 to handle the first call service. If the call service is the second call service, the user needs to operate the wearable device 100 and the electronic device 200 at the same time to complete the second call service. However, after receiving the call service, the electronic device 200 does not distinguish the type of call service, 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 with which the HFP connection is established to handle the call service. Then, if the call service is the second call service, it will cause a poor user experience.
[0086] Based on this, two solutions are proposed in the prior art.
[0087] Solution 1: In the case of HFP connection, after the electronic device 200 receives the 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 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, the eSco is actively disconnected so that the electronic device 200 can switch back to its own speaker or microphone to process the second call service. However, after establishing eSco, the electronic device 200 will send audio data to the wearable device 100 based on eSco, or wait to receive audio data sent by the wearable device 200 until the eSco is disconnected. Then in 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, continue to wait until the eSco is disconnected, and the electronic device 200 receives the user's voice.
[0088] Solution 2: In the case of HFP connection, after the electronic device 200 receives the call service, it sends an eSco establishment request to the wearable device 100. Based on the eSco establishment request, the wearable device 100 determines whether the call service currently being processed by the electronic device 200 is the first call service. If not, the eSco establishment is rejected, so that the electronic device 200 can use its own speaker or microphone to process the second call service. However, the process of the wearable device 100 determining the type of the current call service is time-consuming.
[0089] 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 will actively disconnect 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 speaker, microphone and other audio modules 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 handle the first call service and the second call service more simply. In addition, the electronic device 200 will not cause unnecessary delays or call errors in the process of processing the second call service.
[0090] Figure 2 1 shows a schematic diagram of the structure of a wearable device 100. 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.
[0091] Among them, the memory 102 can be used to store application codes, such as application codes for wireless pairing and connection between the wearable device 100 and the electronic device 200, so that a wireless connection is established between the wearable device 100 and the electronic device 200; processing call services of the electronic device 200; and charging the wearable device 100, etc.
[0092] The processor 101 can be used to execute the above application code and call related modules to implement the functions of the wearable device 100 in the embodiment of the present application. For example, the wearable device 100 can be connected to the electronic device 200 through wireless Bluetooth, play audio, answer / make calls, and other functions. For another example, the wearable device 100 can receive a message sent by the electronic device 200 to determine whether the call service is the first call service.
[0093] The processor 101 may include one or more processing units, and different processing units may be independent devices or integrated into one or more processors 101. The processor 101 may specifically be an integrated control chip, or may be composed of a circuit including various active and / or passive components, and the circuit is configured to perform the functions of the processor 101 described in the embodiments of the present application.
[0094] The wireless communication module 103 can be used to support data exchange between the wearable device 100 and its electronic device 200 using wireless communications such as BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G / 5G wireless communication technologies.
[0095] In some embodiments, the wireless communication module 103 may be a Bluetooth chip. The wearable device 100 may be paired with the Bluetooth chip of the electronic device 200 through the Bluetooth chip and establish a wireless connection to realize wireless communication and business processing between the wearable device 100 and the electronic device 200 through the wireless connection. Generally, the Bluetooth chip may support basic rate (BR) / enhanced data rate (EDR) Bluetooth and Bluetooth low energy (BLE), for example, it may receive / send paging information, receive / send BLE broadcast messages, etc. Bluetooth may also be a Bluetooth transceiver. The wearable device 100 may establish a wireless connection with the electronic device 200 through the Bluetooth transceiver to realize short-range data exchange between the two. For example, exchange audio data, exchange control data, etc.
[0096] In addition, the wireless communication module 103 may also include an antenna, which receives electromagnetic wave signals via the antenna, modulates the electromagnetic wave signals and performs filtering processing, and sends the processed signals to the processor 101. The wireless communication module 103 may also receive a signal to be sent from the processor 101, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna. For example, the wireless communication module 103 is used to receive a notification message sent by the electronic device 200, and the type of call service being processed by the electronic device 200 is determined based on the notification message, such as whether the call service being processed by the electronic device is the first call service or the second call service.
[0097] The audio module 104 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 104 can also include an encoder and a decoder for encoding and decoding audio signals. In some embodiments, the audio module 104 can be arranged in the processor 101, or some functional modules of the audio module 104 can be arranged in the processor 101.
[0098] At least one speaker 105, which may also be referred to as a "receiver", may be used to convert an audio signal into a sound signal and play it. For example, when the wearable device 100 is used as an audio output device of the electronic device 200, the speaker 105 may convert the received audio signal into a sound signal and play it.
[0099] At least one microphone (Mic) 106, which may also be referred to as a "microphone" or "microphone", is used to convert a sound signal into an audio electrical signal. For example, when the wearable device 100 is used as an audio input device of the electronic device 200, when the user is speaking (such as talking on the phone or sending a voice message), the microphone 106 can collect the user's voice signal and convert it into an audio electrical signal.
[0100] The above-mentioned audio electrical signal can also be described as audio data.
[0101] 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 receiver circuit for receiving audio signals in conjunction with the speaker. The specific implementation of the audio module 104, the speaker 105, and the microphone 106 is not specifically limited in the present embodiment.
[0102] The power module 107 can be used to provide system power for the wearable device 100, power each module of the wearable device 100, and support the wearable device 100 to receive charging input, etc. The power module 107 may include a power management unit (PMU) and a battery. Among them, the power management unit can receive external charging input; transform the electrical signal input by the charging circuit and provide it to the battery for charging, and can also transform 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 being overcharged, over-discharged, short-circuited or overcurrent, etc. In some embodiments, the power module 108 may also 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 number, battery health status (leakage, impedance), etc.
[0103] It is understandable that the structure shown in the embodiment of the present application does not constitute a specific limitation on the wearable device 100. Figure 2 More or fewer components shown in the figure may be combined with two or more components, or may have different component configurations. For example, the wearable device 100 may also include: a sensor, a display screen (which can prompt the user with relevant information), a motor, and other components. Figure 2 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.
[0104] Figure 3A A schematic diagram of the structure of an electronic device 200 provided in an embodiment of the present application.
[0105] 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, an earphone 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. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air 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.
[0106] It is to be understood that the structure illustrated in the embodiment 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 shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0107] 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 processor (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. Different processing units may be independent devices or integrated into one or more processors.
[0108] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0109] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0110] In some embodiments, the processor 110 may include one or more interfaces. The interface 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.
[0111] 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 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, and the touch function of the electronic device 200 is realized.
[0112] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve 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 via the I2S interface to achieve the function of answering a call through the wearable device 100.
[0113] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via 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.
[0114] The UART interface is a universal serial data bus for asynchronous communication. The 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 generally 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 an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through the wearable device 100.
[0115] The MIPI interface can be used to connect the processor 110 with 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 via the CSI interface to realize the shooting function of the electronic device 200. The processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the electronic device 200.
[0116] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 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.
[0117] The USB interface 130 is an interface that complies with the USB standard specification, and specifically 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 a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0118] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0119] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 200. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0120] 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 input 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, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0121] 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 modem processor and the baseband processor.
[0122] Antenna 1 and 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 reused to improve the utilization of the antennas. For example, antenna 1 can be reused 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.
[0123] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 200. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0124] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0125] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to the electronic device 200. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0126] In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), 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 technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite-based augmentation system (SBAS).
[0127] The electronic device 200 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0128] 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini LED, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0129] The electronic device 200 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0130] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0131] The camera 193 is used to capture still 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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 a standard RGB, YUV or other format. In some embodiments, the electronic device 200 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0132] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 200 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0133] Video codecs are used to compress or decompress digital videos. The electronic device 200 may support one or more video codecs. Thus, the electronic device 200 may play or record videos in a variety of coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0134] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through 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.
[0135] 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 a data storage function, such as storing music, video and other files in the external memory card.
[0136] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 200 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0137] The electronic device 200 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0138] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0139] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 200 can listen to music or listen to a hands-free call through the speaker 170A.
[0140] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 200 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0141] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 200 can be provided with at least one microphone 170C. In other embodiments, the electronic device 200 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 200 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0142] The earphone interface 170D is used to connect a wired earphone and 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.
[0143] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 200 may receive key input and generate key signal input related to user settings and function control of the electronic device 200.
[0144] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0145] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0146] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 200 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. 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, and the like. 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 communications. In some embodiments, the electronic device 200 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.
[0147] The software system of the electronic device 200 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 200.
[0148] Figure 3B It is a software structure block diagram of the electronic device 200 according to an embodiment of the present invention.
[0149] The layered architecture divides the software into several layers, each with clear roles 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: the application layer, the application framework layer, the Android runtime (Android runtime) and system library, and the kernel layer.
[0150] The application layer can include a series of application packages.
[0151] like Figure 3B As shown, the application package may include applications such as camera, calendar, map, navigation, WLAN, music, short message, Bluetooth, call, video, etc.
[0152] In some embodiments, the application may further include application A (e.g., an application for a smart watch, a sports and health application, etc.). The user may edit and manage one or more wearable devices 100 connected to the electronic device 200 through application A. Application A may also support a message notification service to send a notification message to the wearable device 100. The notification message may include, for example, the call service type of the electronic device 200. Then, the wearable device 100 may learn the call service type of the electronic device 200 according to the received notification message.
[0153] Optionally, the wearable device 100 can disconnect the HFP connection by receiving a notification message sent by application A, thereby avoiding delay in the second call service.
[0154] Optionally, the user can use application A to set the wearable device 100, such as switching modes, adding new devices, etc. The signaling of the settings is usually a private Bluetooth protocol.
[0155] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0156] like Figure 3B As 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, and the like.
[0157] 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.
[0158] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0159] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0160] The phone manager is used to provide communication functions of the electronic device 200, such as management of call status (including connecting, hanging up, etc.).
[0161] In some embodiments, after the electronic device 200 receives the first call service, the phone manager notifies application A by broadcasting a message or the like.
[0162] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0163] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0164] The application manager may manage, for example, a life cycle of at least one application program.
[0165] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0166] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0167] The application layer and the application framework layer run in a 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 object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0168] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0169] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0170] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0171] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0172] A 2D graphics engine is a drawing engine for 2D drawings.
[0173] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0174] In the following embodiments, a smart watch is used as the wearable device 100 and a mobile phone is used as the electronic device 200.
[0175] like Figure 4 As shown, it is a flowchart of a Bluetooth communication method provided in an embodiment of the present application, and the method may include S401-S409.
[0176] S401. The mobile phone receives a first operation.
[0177] Among them, the first operation is used to instruct the mobile phone to establish a Bluetooth connection with the smart watch. After the mobile phone detects the first operation, it starts the Bluetooth pairing process with the smart watch. The first operation is, for example, an operation that triggers the start of Bluetooth pairing. For example, the first operation may include a series of operations of turning on Bluetooth and selecting a wearable device detected during the process of the mobile phone using application A to establish a connection with the smart watch. For another example, the first operation may include an operation of selecting a wearable device during the Bluetooth connection process. For another example, when the smart watch has been paired with a mobile phone before, the mobile phone can accept the user's operation on the smart watch in the "My Devices" list in the Bluetooth "Settings" interface for pairing.
[0178] For example, Figure 5 As shown in (a) of FIG. 5 , the main interface 501 displayed on the mobile phone is shown. In response to the user clicking the icon 51 of application A (eg, sports health APP), the mobile phone opens the sports health APP and displays the following: Figure 5 In response to the user clicking the device icon 52, the following is displayed: Figure 5 The device management interface 503 shown in (c) is shown in FIG. The user can add or delete devices through the device management interface 503. In response to the user clicking the add device control 53, the mobile phone displays the following Figure 5The mobile phone detects the operation of the user clicking the icon 54, determines the device type of the wearable device to be connected, and displays the following information: Figure 5 In response to the user clicking on icon 55, the mobile phone displays the following interface 505: Figure 5 The interface 506 of (f) shown in FIG. In response to the user clicking the icon 56, the mobile phone starts the pairing process with the smart watch.
[0179] If the mobile phone does not have Bluetooth turned on when it starts the pairing process with the smart watch, the mobile phone will display the following Figure 6 The interface 601 shown in (a) of FIG. 1 is used to receive the first operation. In response to the user clicking the confirmation icon 61, the mobile phone turns on Bluetooth, searches for a smart watch that can be connected, and displays the following information: Figure 6 The interface 602 shown in (b) of FIG. 602. The icon 62 shown in the interface 602 is used to indicate that the mobile phone has turned on Bluetooth. In response to the user clicking on a smart watch media access control (MAC) address in the list 63, the mobile phone can establish a Bluetooth connection with the smart watch selected by the user. That is, in the current scenario, the first operation includes the operation of clicking on the icon 61 and the operation of clicking on a smart watch MAC address in the list 63.
[0180] If the mobile phone has Bluetooth turned on when it starts the pairing process with the smart watch, the mobile phone will directly display the following Figure 6 Then, the first operation is to click on a MAC address of a smart watch in the list 63.
[0181] In some embodiments, in addition to the first operation received during the process of the mobile phone using application A to establish a connection with the smart watch, the mobile phone can also turn on Bluetooth to establish a Bluetooth connection with the smart watch in a variety of ways, such as turning on Bluetooth through a shortcut key or through Bluetooth settings.
[0182] For example, the mobile phone displays Figure 7 In the main interface 701 shown in (a), in response to the user clicking the setting icon 71, the following is displayed: Figure 7 In response to the user clicking on icon 72, the mobile phone displays the following interface 702: Figure 7 The Bluetooth setting interface 703 shown in (c) of FIG. 7 is shown in FIG. 7 . The Bluetooth of the mobile phone is currently turned off. In response to the user clicking the icon 73, the mobile phone turns on the Bluetooth and displays the following 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.
[0183] 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.
[0184] S402: The mobile phone establishes a Bluetooth connection and an HFP connection with the smart watch.
[0185] 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.
[0186] 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 connection (Asynchronous Connectionless, ACL) link.
[0187] 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.
[0188] 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.
[0189] Step 1: The mobile phone sends an HFP service query request to the smart watch.
[0190] Step 2: The smart watch sends the HFP service query result to the mobile phone.
[0191] Optionally, in the above steps 1 and 2, if the mobile phone needs to establish an HFP connection with the smart watch, the mobile phone needs to send an HFP service query request to the smart watch to confirm whether the smart watch supports the HFP service. Among them, the HFP service means that the smart watch can support the Bluetooth hands-free function and control mobile phone calls, such as answering, hanging up, and rejecting. After receiving the HFP service query request sent by the mobile phone, the smart watch confirms whether it supports the HFP service.
[0192] If the smart watch supports HFP service, the basic information (profile information) of the HFP service is sent to the mobile phone, wherein the profile information includes, for example, the protocol version number, the RFCOMM protocol channel number, etc.
[0193] If the smart watch does not support the HFP service, the query result returned to the mobile phone is empty. After receiving the query result, the mobile phone confirms that the smart watch does not support the HFP service and stops establishing the HFP connection.
[0194] In some embodiments, the mobile phone sends a query capability request to the smart watch to query the services supported by the smart watch. For example, a capability query request can be sent to the smart watch through the service discovery protocol (SDP). In response to the request, the smart watch sends the capabilities it supports to the mobile phone, including but not limited to HFP, Bluetooth audio transmission model protocol (advanced audio distribution profile, A2DP) and other services.
[0195] Step 3: The mobile phone sends a communication link establishment request to the smart watch.
[0196] Step 4: The smart watch sends a communication link establishment response to the mobile phone.
[0197] Optionally, in the above steps 3 and 4, after the mobile phone receives the profile information and confirms that the smart watch supports the HFP service, a communication link is established with the smart watch based on the profile information, such as a communication link based on the RFCOMM protocol.
[0198] The above steps 1 to 4 can also be described as the pairing process of the mobile phone and the smart watch. When the mobile phone and the smart watch are successfully paired, the smart watch completes the service level connection (SLC) initialization through the following steps 5 to 8 to complete the HFP connection establishment process. Among them, the mobile phone and the smart watch transmit interactive commands through the established communication link to complete the SLC initialization process.
[0199] Step 5. The mobile phone and smart watch confirm each other's functions based on HFP connection support.
[0200] Optionally, the smartwatch sends an AT+BRSF command to the mobile phone to inform the mobile phone which functions the smartwatch supports when the HFP connection is established. After the mobile phone confirms, it replies with a +BRSF command to the smartwatch, i.e., replies with a confirmation response. Through the AT command interaction, the mobile phone and the smartwatch confirm the functions that can be implemented by both parties based on the HFP connection. For example, it may include notifications of the status of call services, three-way calling functions, incoming call ringing notifications, volume control, etc.
[0201] Step 6: The mobile phone obtains the smart watch's codec capability and selects the corresponding codec when the call service starts.
[0202] Optionally, the smartwatch sends AT+BAC= to the phone.<u1,u2,…> The command is used to inform the mobile phone of its coding and decoding capabilities, such as broadband coding and decoding capabilities, narrowband coding and decoding capabilities, etc. Based on the coding and decoding capabilities of the smart watch, the mobile phone selects the corresponding codec at the beginning of the call service to implement the subsequent information interaction process with the smart watch.
[0203] Step 7. Confirm the notification indicators supported by your phone.
[0204] Optionally, the smartwatch sends the AT+CIND=? command to the mobile phone to query the notification indicators supported by the mobile phone. That is, to query the notification functions supported by the mobile phone and the corresponding indicators. The mobile phone sends the +CIND command to the smartwatch to inform the smartwatch of the indicator list actually supported by the current mobile phone.
[0205] For example, if the mobile phone supports sending the status of the call service to the smart watch after receiving the call service, the indicator list contains the status of the call service that can be notified. For another example, in 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.
[0206] Step 8. Confirm the current notification indicator status of the phone.
[0207] Optionally, the smartwatch sends the AT+CIND command to the mobile phone to query the current status of the mobile phone's notification indicators. The mobile phone replies with the smartwatch +CIND command, which contains the current status of the mobile phone's notification indicators.
[0208] For example, the smart watch confirms, based on the +CIND command, that the mobile phone is processing a call service, and the state corresponding to the call service is the dialing state.
[0209] 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 smart watch.
[0210] For example, the smart watch detects the operation of turning on Bluetooth and actively sends profile information to the mobile phone to establish a communication link. After that, 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 existing technology and will not be repeated here.
[0211] It should be noted that when the smartphone is turned on, the smartwatch initializes the HFP service and the message notification service. That is, the HFP service identifier and the message notification service identifier are added to the service list supported by the smartwatch. Then, by querying the service list, it can be learned that the smartwatch supports the HFP service and the message notification service.
[0212] Optionally, after a Bluetooth connection is established between the mobile phone and the smart watch, the mobile phone can send a notification message to the smart watch via Bluetooth wireless transmission.
[0213] For example, if application A used to connect to the wearable device in the mobile phone supports the message notification service, the mobile phone can send notification messages to the smart watch through application A. Figure 5 The sports health APP shown.
[0214] For example, Fig. 9 As shown, the mobile phone and the smart watch establish a wireless connection via Bluetooth connection. Among them, an HFP connection is established between the mobile phone and the smart watch. Application A of the mobile phone sends a notification message to the smart watch via Bluetooth transmission. After being processed by the processor of the smart watch, the content of the notification message is confirmed and the corresponding action is performed.
[0215] Understandably, Fig. 9 The structure shown in the figure does not constitute a specific limitation on mobile phones and smart watches. Mobile phones and smart watches can have more Fig. 9 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components.
[0216] S403: The smart watch determines whether the current mobile phone needs to process the first call service. If not, the HFP connection is disconnected.
[0217] Optionally, the smart watch determines whether the current mobile phone needs to process the first call service based on the HFP connection. If the current mobile phone does not need to process the first call service, the smart watch sends a disconnect HFP connection request to the mobile phone. After receiving the disconnect HFP request, the mobile phone disconnects the HFP connection and sends a response to the smart watch. If the current mobile phone needs to process the first call service, the smart watch sends a disconnect HFP connection request to the mobile phone after the first call service is processed to disconnect the HFP connection with the mobile phone.
[0218] For example, Fig. 9 As shown, the smart watch sends a disconnect HFP connection request to the mobile phone's Bluetooth module through the Bluetooth module. After the mobile phone disconnects the HFP connection, it sends a disconnect HFP connection response to the smart watch. In addition, the mobile phone's Bluetooth module notifies the audio management module that the audio channel between the current mobile phone and the smart watch has been disconnected. Subsequently, based on the state of the HFP connection disconnection, the audio management module determines that the audio channel between the mobile phone's Bluetooth module and the smart watch's Bluetooth module has been disconnected, and will not send the call task to the mobile phone's Bluetooth module. That is, the smart watch will not be used to process call services.
[0219] In one possible implementation, the smart watch can use the method of querying the status corresponding to the call service to confirm whether the current mobile phone needs to process the first call service. For example, if the mobile phone receives a call service, it will send the call status parameters to the smart watch that has established an HFP connection with it based on the HFP connection, so that the smart watch can determine the type of call service. Subsequently, the smart watch calls the AT command to query the status parameters corresponding to the current mobile phone call service to confirm the call service type of the current mobile phone. For example, the AT command is the AT+CLCC command, which is used to list the current calls.
[0220] As shown in Table 1 below, the query results of the AT+CLCC command and the meaning of the query results. 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 results from 1-6. Since the second call service has a faster status update, the configuration corresponds to a query result of 0. That is, if the call service is the second call service, the query result is 0. Based on the query results, the smart watch can determine whether the mobile phone currently needs to process the first call service. It can be understood that if the AT+CLCC command has no corresponding query results, it means that the current mobile phone has no call service. Then, the smart watch can directly send a request to disconnect the HFP connection to the mobile phone.
[0221] Table 1
[0222]
[0223] It should be noted that the call service provided by a general third-party instant messaging application is a second call service, and when the mobile phone receives a call service triggered by a third-party instant messaging application, it will generate the Active state in the above Table 1. However, if the mobile phone generates multiple states in the process of processing the call service triggered by some third-party instant messaging applications, the call service provided by such third-party instant messaging applications also belongs to the first call service.
[0224] It should be noted that a wearable device capable of processing the second call service may be preconfigured, such as a Bluetooth headset or other device that facilitates user calls. Such a wearable device does not need to send a disconnect HFP connection request to the mobile phone, that is, it does not need to actively disconnect the HFP connection.
[0225] For example, the user can wear the Bluetooth headset on the ear. In 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 preconfigured as a wearable device capable of processing the second call service, and there is no need to actively disconnect the HFP connection with the mobile phone.
[0226] S404: After disconnecting the HFP connection, the mobile phone receives a call service and determines the type of the current call service. If it is the second call service, execute step S405; if it is the first call service, execute step S406.
[0227] 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 chat, audio call, video call, etc. in third-party instant messaging applications (for example, "WeChat" application, "QQ" application, video conferencing application, etc.).
[0228] Optionally, after receiving the first call service, the mobile phone will send a system broadcast message to notify each registered application module that the current mobile phone has received the first call service. Among them, application A of the mobile phone needs to register and listen to the broadcast message to determine the current call service type of the mobile phone. If application A receives the broadcast message, it is determined that the call service currently received by the mobile phone is the first call service.
[0229] Optionally, the mobile phone can also determine the type of call service 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 is confirmed that the mobile phone has received the first call service. For another example, 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 is confirmed that the mobile phone has received the second call service.
[0230] In some embodiments, the mobile phone can also determine the type of call service by other means. For example, monitoring the hardware status of the mobile phone to learn the type of call service received by the mobile phone. For example, monitoring the changes in the user interface (UI) of the mobile phone, the speaker status changes, the microphone status changes, 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. If the mobile phone UI interface is monitored to switch to the answering call page, it is determined that the type of call service currently received by the mobile phone is the first call service.
[0231] S405: The call service is a second call service, and the mobile phone processes the second call service.
[0232] Optionally, as described in step S403 above, the smart watch has disconnected the HFP connection with the mobile phone. Fig. 9 As shown, when the mobile phone receives the second call service generated by the first application, the audio management module detects the module that can be used to play sound or record sound. If the audio management module determines that there is no Bluetooth-connected device at present, the Bluetooth module will not be called to process the second call service. The audio management module will call the mobile phone's own audio module to process the call service. For example, the audio management module calls the speaker to play sound. Or, calls the microphone to record. Among them, the first application is, for example, a third-party instant messaging application, then the second call service includes, for example, playing the audio of the first application or recording audio, or video calls, audio calls, etc.
[0233] For example, Fig.10 In the main interface 1001 shown in (a), a third-party instant messaging application in the mobile phone, such as a social APP, receives the message. In response to the user clicking the social APP icon 201, the mobile phone opens the social APP and displays the following information: Fig.10 In response to the user clicking the unread message icon 202, the following is displayed: Fig.10 In the chat interface 1003 shown in (c), if the mobile phone detects that the user clicks the short voice message icon 203 on the chat interface 1003, it means that the mobile phone has received the second call service for playing unread short voice messages, and the audio management module needs to select a module for playing sound. Fig. 9 As shown, based on the disconnected HFP connection, the audio management module determines that there is no Bluetooth-connected device currently. Fig.10 In the interface 1004 shown in (d), the audio management module directly calls the mobile phone speaker to play the current short voice message. In this process, the mobile phone can process the second call service relatively quickly without the user's perception.
[0234] Or, if Fig.11 In the main interface 1101 shown in (a), after the mobile phone detects that the user clicks the social APP icon 111, the following is displayed: Fig.11 In response to the user clicking the icon 112, the following is displayed: Fig.11 In the interface 1103 shown in (c) of FIG. 1103, the mobile phone detects that the user clicks the icon 113, which means that the user needs to send a short voice message. That is, the mobile phone receives the second call service of recording a short voice message, and the audio management module needs to select a module for receiving sound. At this time, Fig. 9 As shown, based on the disconnected HFP connection, the audio management module determines that there is no Bluetooth-connected device currently. Fig.11 In the interface 1104 shown in (d), the audio management module directly calls the mobile phone microphone to record a short voice message. The icon 114 displayed on the interface 1104 is used to remind the user that a short voice message is being recorded. In this process, the mobile phone can process the second call service relatively quickly, and the user does not have to wait, thereby improving efficiency.
[0235] 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. Fig.12 As shown, if the HFP connection between the mobile phone and the smart watch is not disconnected. Then, in the case of 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 eSco with the mobile phone. After 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. Afterwards, if the smart watch confirms that the type of call service currently processed by the mobile phone is the second call service, the eSco between the mobile phone and the smart watch will be disconnected. 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. The mobile phone can then process the second call service through its own audio modules such as speakers or microphones.
[0236] For example, Fig.10 In the short voice playback scene shown in (c) of FIG. 1 , in response to the user clicking the short voice message icon 203. After the smart watch and the mobile phone establish eSco, the audio management module will Fig.12 The link 124 shown, i.e. the established audio channel, sends the audio data to the smartwatch, which is played by the smartwatch speaker until the eSco is disconnected. During this process, if the user does not pay attention to the smartwatch, the audio data will be lost. In addition, anomalies may occur during the process of the phone switching the audio data to the phone speaker for playback. Fig.12As shown, if the switching is normal, the audio management module will send the audio data to the mobile phone speaker through link 122. If the switching is abnormal, the audio management module will send the audio data to the mobile phone receiver through link 123. Fig.10 The interface 1005 shown in (e) is the interface displayed by the mobile phone when the switching is abnormal. The mobile phone displays a prompt box 204 on the interface 1005, prompting the user that the current mobile phone is playing voice in the handset mode. At this time, the sound is small and the user experience is poor. And, if Fig.11 In the short voice recording scenario shown in (c) of FIG. 1 , the process of establishing eSco between the mobile phone and the smart watch and disconnecting eSco takes time. Then, on the interface 1103, the mobile phone responds to the user clicking the icon 113 and displays the following Fig.11 Interface 1105 is shown in (e) in the figure. Icon 115 is displayed on interface 1105, and the user is prompted to wait for recording. Voice recording can only be started until eSco is disconnected from the mobile phone, which results in a poor user experience.
[0237] In another scenario, Fig.13 As shown, if the HFP connection between the mobile phone and the smart watch 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 smart watch Bluetooth module. After receiving the request, the smart watch will not establish eSco with the mobile phone temporarily. Instead, it first confirms the type of call service currently handled by the mobile phone. If it is a second call service, a response refusing to establish eSco is sent to the mobile phone. After the mobile phone confirms that the smart watch refuses to establish eSco, it will send at least one eSco establishment request according to the eSco packet type. Until all establishment requests corresponding to the eSco packet type are rejected by the smart watch, the mobile phone confirms that the eSco establishment has failed. The mobile phone Bluetooth module notifies the audio management module that the audio channel between the mobile phone and the smart watch has failed to be established. After that, the mobile phone can handle the second call service through its own audio modules such as speakers or microphones.
[0238] For example, in Fig.10 The short voice playback scenario shown in (c) of FIG. Fig.11 In the short voice recording scenario shown in (c), the smart watch confirms the type of mobile phone call service, and during the process of multiple requests for eSco establishment between the mobile phone and the smart watch, the mobile phone needs to wait until the mobile phone confirms that the eSco establishment fails. In other words, in the above process, the user needs to wait for the short voice to be played or wait for the short voice to be recorded, which affects the user experience.
[0239] It can be seen that, relative to 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 choose to use its own audio module to process the second call service, reducing time consumption and avoiding audio data loss. In addition, the user can handle the second call service by operating a mobile phone, reducing the difficulty of user operation.
[0240] S406: The call service is a first call service, and the mobile phone sends a first notification to the smart watch.
[0241] The first notification is used to instruct the smartwatch to process the first call service. The first notification may include, for example, an incoming call notification message or an outgoing call notification message.
[0242] Optionally, as described in step S404 above, after receiving the system broadcast message, application A in the mobile phone determines that the current call service is the first call service, and then sends a first notification to the smart watch. After the smart watch receives the first notification, it can be known that the current mobile phone has received the first call service. Alternatively, application A learns the first call service received by the mobile phone through other preconfigured methods, such as monitoring the hardware status of the mobile phone, and sends the first notification to the smart watch.
[0243] Optionally, the first notification is a notification message in a preconfigured format between the mobile phone and the smart watch. If 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 from the message identifier that the mobile phone has received the first call service.
[0244] For example, Fig.14 As shown, application A confirms that the mobile phone receives the first call service, such as the first call service is a call service for answering a call. Application A sends the first notification to the smart watch by using link 143 through Bluetooth transmission. The processor of the smart watch receives and parses the first notification and learns that the mobile phone receives the first call service.
[0245] 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. The smart watch confirms that the current mobile phone has received the second call service based on the second notification, and does not process the current call service.
[0246] S407: The smart watch and the mobile phone establish an HFP connection.
[0247] Optionally, after receiving the first notification, the smart watch determines according to the first notification 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 smart watch, and establishes an HFP connection with the smart watch through the step of establishing an HFP connection in the above step S402.
[0248] For example, Fig.14 As shown, the smart watch 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 the HFP connection and sends an HFP connection establishment response to the smart watch. Based on the rebuilt HFP connection, the mobile phone Bluetooth module notifies the audio management module that the Bluetooth audio channel between the current mobile phone and the smart watch has been established.
[0249] S408: Based on the HFP connection, the mobile phone processes the first call service.
[0250] Optionally, the mobile phone determines that an HFP connection has been established with the smart watch. Based on the HFP connection, the mobile phone sends an eSco establishment request to the smart watch. After the smart watch agrees, the mobile phone sends audio data to the smart watch and / or receives audio data sent by the smart watch to complete the processing of the first call service. In this way, after the mobile phone receives the first call service, it notifies the smart watch, so that the smart watch actively establishes an HFP connection with the mobile phone. Thereby, the first call service can be processed conveniently and quickly using the smart watch.
[0251] For example, Fig.14 As shown in the figure, after the HFP connection between the mobile phone and the smart watch is successfully established, the audio management module determines that the modules currently available for processing audio are Bluetooth modules, speakers, microphones and other audio modules. The audio management module selects the high-priority Bluetooth audio module as the input and output module for audio data. That is, the mobile phone selects the device connected via HFP to process the first call service, and uses the smart watch to answer or make calls. Fig.14 As shown, the mobile phone uses the speaker of the smart watch to play audio data and uses the microphone of the smart watch to collect audio data. That is, the mobile phone sends audio data to the smart watch and receives audio data sent by the smart watch, thereby completing the call. Among them, the priority of the input and output modules of the audio data is preconfigured 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.
[0252] It should be noted that in the process of re-establishing the HFP connection between the smart watch and the mobile phone, the audio management module of the mobile phone may have queried once whether there is an established audio channel. Afterwards, after the HFP connection is reestablished, the audio management module detects the audio channel again. Among them, the HFP reconstruction process takes a very short time, which can ensure that the HFP connection is rebuilt without the user's perception. Then, the mobile phone receives the user's operation to start executing the first call service, such as clicking the button to answer the call. At this point, the audio channel has been established, and the audio management module directly uses Bluetooth to process the audio data based on the audio channel, and will not cause the loss of audio data.
[0253] S409: After the first call service ends, the smart watch disconnects the HFP connection.
[0254] Optionally, after the smartwatch completes processing the first call service, it will actively release the HFP connection with the mobile phone. In this way, it is ensured that the mobile phone can use the smartwatch to process the first call service. It is also ensured that the next time the mobile phone receives the second call service, it will not send an eSco establishment request to the smartwatch based on the HFP connection to avoid abnormal calls. In other words, after the smartwatch actively releases the HFP connection, the above steps S404-S409 are executed in a loop.
[0255] It can be seen that in the Bluetooth communication method provided by the present application, the wearable device can actively release the HFP connection with the mobile phone when the mobile phone does not have the first call service. In this way, after the mobile phone receives the second call service, there will be no problems such as loss of audio data stream, abnormal sound switching and waiting delay. In addition, after the mobile phone receives the first call service, it can make the wearable device aware 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 the mobile phone can use the wearable device to process the first call service based on the HFP connection. 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 improves the user experience.
[0256] The above method is not only applicable to the scenario of telephone voice messages, but also to the scenario of voice messages for third-party applications. Usually, a first application is installed in the mobile phone, and correspondingly, a watch version of the first application is installed in the smart watch, or the first application may not be installed in the smart watch. The mobile phone and the smart watch have established an HFP service, and when the mobile phone does not need to handle the call, the HFP service can be automatically disconnected. Then, when the mobile phone detects that the user clicks to play the voice message in the first application, the voice message can be played directly, because the HFP service is disconnected at this time, thereby avoiding the delay caused by the mobile phone detecting the HFP service.
[0257] In the embodiment of the present application, the mobile phone is usually installed with an APP corresponding to the smart watch, which is usually developed by the mobile phone manufacturer and the smart watch manufacturer. The user can set up the smart watch in the APP, such as switching the dial, adding new devices, etc. Among them, the set signaling is usually a private Bluetooth protocol. In the embodiment of the present application, the HFP service can be disconnected through the APP to avoid delays.
[0258] like Fig.15 As shown, the embodiment of the present application discloses an electronic device, and the electronic device 1500 can be used to implement the methods described in the above method embodiments. Exemplarily, the electronic device 1500 may include: a processing unit 1501, a sending unit 1502, and a receiving unit 1503. The processing unit 1501 is used to support the electronic device 1500 to execute Figure 4 Step S404 and step S405 in the above; the sending unit 1502 is used to support the electronic device 1500 to execute Figure 4 Step S406, step S407 and step S408 in the above; the receiving unit 1503 is used to support the electronic device 1500 to perform Figure 4 Step S407 and step S408 in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0259] Optional, Fig.15 The electronic device 1500 shown may also include a storage unit ( Fig.15 (not shown), the storage unit stores a program or instruction. When the processing unit executes the program or instruction, Fig.15 The electronic device 1500 shown may perform Figure 4 The Bluetooth communication method shown.
[0260] Fig.15 The technical effect of the electronic device 1500 shown can be referred to Figure 4 The technical effects of the Bluetooth communication method shown will not be repeated here.
[0261] Fig.15 The processing unit involved in the electronic device 1500 shown can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing module. The sending unit 1502 and the receiving unit 1503 can be combined into a transceiver unit, which can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver module.
[0262] like Fig.16As shown, the 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 method embodiments. Exemplarily, the wearable device 1600 may include: a processing unit 1601, a receiving unit 1602, and a sending unit 1603. The processing unit 1601 is used to support the wearable device 1600 to execute Figure 4 Step S403 and step S409 in the embodiment; the receiving unit 1602 is used to support the wearable device 1600 to execute Figure 4 Step S406, step S407 and step S408 in the embodiment; the sending unit 1603 is used to support the wearable device 1600 to execute Figure 4 Step S407 and step S408 in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0263] Optional, Fig.16 The wearable device 1600 shown may also include a storage unit ( Fig.16 (not shown), the storage unit stores a program or instruction. When the processing unit executes the program or instruction, Fig.16 The wearable device 1600 shown may perform Figure 4 The Bluetooth communication method shown.
[0264] Fig.16 The technical effect of the wearable device 1600 shown can be referred to Figure 4 The technical effects of the Bluetooth communication method shown will not be repeated here.
[0265] Fig.16 The processing unit involved in the wearable device 1600 shown can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing module. The receiving unit 1602 and the sending unit 1603 can be combined into a transceiver unit, which can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver module.
[0266] The present application embodiment provides a Bluetooth communication system, which includes: Fig.15 The electronic equipment shown and Fig.16 The wearable device shown in FIG. 1 , wherein an HFP connection is established between the electronic device and the wearable device.
[0267] An electronic device is used to automatically disconnect the HFP connection when the electronic device meets a preset condition.
[0268] The electronic device is also used to send a first notification to the wearable device after receiving an incoming call.
[0269] The wearable device is configured to establish an HFP connection with the electronic device according to the first notification.
[0270] 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.
[0271] In a possible implementation, the electronic device is further configured to send a second notification to the wearable device after detecting an outgoing call by the user.
[0272] The wearable device is further configured to establish an HFP connection with the electronic device according to the second notification.
[0273] After the call connection is established, the electronic device is further used to 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.
[0274] In a possible implementation, the wearable device is further configured to disconnect the HFP connection with the electronic device after detecting an operation to end a call or receiving an instruction to end a call sent by the electronic device.
[0275] In a possible implementation, the electronic device is further configured to play the first audio or record the second audio when an operation of playing the first audio of the first application or recording the second audio using the first application is detected.
[0276] In a possible implementation, 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.
[0277] In a possible implementation, the operation of recording the second audio by using the first application includes the operation of recording the second voice message by using the first application or the operation of recording the audio by using the first application.
[0278] In a possible implementation, the electronic device is further configured to collect a third audio after the video call or audio call connection is established.
[0279] In a possible implementation, the preset condition includes the electronic device not receiving an incoming call or not detecting an outgoing call.
[0280] Among them, the technical effects of the Bluetooth communication system can refer to the technical effects of the above-mentioned Bluetooth communication method, which will not be repeated here.
[0281] The embodiment of the present application also provides 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 lines. 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 instructions stored in a memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can execute the various steps executed by the mobile phone in the above embodiment. Alternatively, the wearable device can execute the various steps executed by the mobile phone in the above embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
[0282] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the Bluetooth communication method in the above-mentioned embodiment.
[0283] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a wearable device, the wearable device executes the above-mentioned related method steps to implement the Bluetooth communication method in the above-mentioned embodiment.
[0284] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the Bluetooth communication method in the above-mentioned embodiment.
[0285] In addition, an embodiment of the present application also provides a device, which may specifically be a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the device executes the Bluetooth communication method in the above-mentioned method embodiments.
[0286] Among them, the electronic device, wearable device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0287] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0288] In the 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 schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.
[0289] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0290] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0291] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program instructions.
[0292] The above is only a specific implementation 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 included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A Bluetooth communication system, characterized in that: The Bluetooth communication system includes an electronic device and a wearable device; The electronic device is used to establish a hands-free protocol HFP connection with the wearable device; The wearable device is used to send a query request to the electronic device, where the query request is used to query a state parameter corresponding to a call service of the electronic device; The electronic device is used to send a query result to the wearable device, wherein the query result includes an indication of whether the electronic device currently needs to process a first call service; The wearable device is used to automatically disconnect the HFP connection according to the query result; The electronic device is further configured to send a first notification to the wearable device after receiving an incoming call; The wearable device is configured to establish an HFP connection with the electronic device according to the first notification; The electronic device is further 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.
2. The system according to claim 1, characterized in that The electronic device is further used to establish a Bluetooth connection with the wearable device; The wearable device is further configured to maintain the Bluetooth connection when automatically disconnecting the HFP connection.
3. The system according to claim 1, characterized in that The query request is an AT command.
4. The system according to claim 1, characterized in that The electronic device is further configured to send a second notification to the wearable device after detecting an outgoing call by the user; The wearable device is further configured to establish the HFP connection with the electronic device according to the second notification; After the call connection is established, the electronic device is further used to 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.
5. The system according to claim 1, characterized in that The wearable device is further configured to disconnect the HFP connection with the electronic device after detecting an operation of ending a call or receiving an instruction of ending a call sent by the electronic device.
6. The system according to any one of claims 1 to 3, characterized in that: The electronic device is further configured to play the first audio or record the second audio when an operation of playing the first audio of the first application or recording the second audio using the first application is detected.
7. The system according to claim 6, characterized in that 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.
8. The system according to claim 6, characterized in that 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 a sound using the first application.
9. The system according to claim 6, characterized in that The electronic device is further used to collect a third audio after the video call or audio call connection is established.
10. The system according to any one of claims 1 to 5, characterized in that: The query result is used to indicate that the electronic device has not received an incoming call or has not detected an outgoing call.
11. A Bluetooth communication method, characterized in that: Applied to electronic equipment; the method comprises: The electronic device and the wearable device establish a hands-free protocol HFP connection; The electronic device receives a query request sent by the wearable device, where the query request is used to query a state parameter corresponding to a call service of the electronic device; The electronic device sends a query result to the wearable device, where the query result includes an indication of whether the electronic device needs to process a first call service; The electronic device receives a first request sent by the wearable device; In response to the first request, the electronic device disconnects the HFP connection; After receiving an incoming call, the electronic device sends a first notification to the wearable device, so that the wearable device establishes the HFP connection with the electronic device according to the first notification; The electronic device 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.
12. The method according to claim 11, characterized in that Before the electronic device and the wearable device establish a hands-free protocol HFP connection, the method further includes: The electronic device and the wearable device establish a Bluetooth connection; In response to the first request, the electronic device disconnects the HFP connection, comprising: In response to the first request, the electronic device disconnects the HFP connection and maintains the Bluetooth connection.
13. The method according to claim 11, characterized in that The query request is an AT command.
14. The method according to claim 12, characterized in that Before the electronic device establishes the HFP connection with the wearable device, the method further includes: After detecting the user's outgoing call operation, the electronic device sends a second notification to the wearable device, so that the wearable device establishes the 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.
15. The method according to any one of claims 11 to 14, characterized in that The method further comprises: After the call is ended, the electronic device disconnects the HFP connection with the wearable device.
16. The method according to any one of claims 11 to 14, characterized in that: The method further comprises: 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, the electronic device plays the first audio or records the second audio.
17. The method according to claim 16, characterized in that 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.
18. The method according to claim 16, characterized in that 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 a sound using the first application.
19. The method according to claim 17 or 18, characterized in that The method further comprises: The electronic device collects the third audio after the video call or audio call connection is established.
20. The method according to any one of claims 11 to 14, characterized in that: The query result is used to indicate that the electronic device has not received an incoming call or has not detected an outgoing call.
21. A Bluetooth communication method, characterized in that: A system applied to a wearable device; the method comprising: Establish a hands-free protocol HFP connection with the electronic device; Sending a query request to the electronic device, the query request being used to query a state parameter corresponding to a call service of the electronic device; receiving a query result sent by the electronic device, wherein the query result includes an indication of whether the electronic device needs to process a first call service; Automatically disconnecting the HFP connection according to the query result; receiving a first notification, and establishing the 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 first audio data of the incoming call sent by the electronic device and / or the second audio data of the incoming call sent to the electronic device are received.
22. The method according to claim 21, characterized in that Before the wearable device and the electronic device establish a hands-free protocol HFP connection, the method further includes: Establishing a Bluetooth connection with the electronic device; The Bluetooth connection is maintained while the HFP connection is automatically disconnected.
23. The method according to claim 21, characterized in that The query request is an AT command.
24. The method according to claim 22, characterized in that The method further comprises: The wearable device receives the second notification, and establishes the 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 an outgoing call by the user; 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.
25. The method according to any one of claims 22 to 24, characterized in that The method further comprises: The wearable device disconnects the HFP connection with the electronic device after detecting an operation of ending a call or receiving an instruction of ending a call sent by the electronic device.
26. The method according to any one of claims 21 to 24, characterized in that: The query result is used to indicate that the electronic device has not received an incoming call or has not detected an outgoing call.
27. An electronic device, characterized in that: include: A processor, a memory and an audio module, wherein the memory and the audio module are coupled to the processor, the memory is used to store computer program codes, and the computer program codes include computer instructions. When the processor reads the computer instructions from the memory, the electronic device performs the following operations: Establish a hands-free protocol HFP connection with the wearable device; Receiving a query request sent by the wearable device, where the query request is used to query a state parameter corresponding to a call service of the electronic device; Sending a query result to the wearable device, the query result including an indication of whether the electronic device needs to process a first call service; receiving a first request sent by the wearable device, where the first request is used to request to disconnect the HFP connection; In response to the first request, disconnecting the HFP connection; After receiving an incoming call, sending a first notification to the wearable device, wherein the first notification is used to notify the wearable device to establish the HFP connection according to the first notification; The first audio data of the incoming call is sent to the wearable device and / or the second audio data of the incoming call sent by the wearable device is received.
28. The electronic device according to claim 27, characterized in that: When the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: Establish a Bluetooth connection with the wearable device; The step of disconnecting the HFP connection in response to the first request includes: In response to the first request, the HFP connection is disconnected and the Bluetooth connection is maintained.
29. The electronic device according to claim 27, characterized in that: The query request is an AT command.
30. The electronic device according to any one of claims 27 to 29, characterized in that: When the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: After detecting an outgoing call operation by the user, sending a second notification to the wearable device, so that the wearable device establishes the HFP connection according to the second notification; After the call connection is established, the third audio data of the outgoing call is sent to the wearable device and / or the fourth audio data of the outgoing call sent by the wearable device is received.
31. The electronic device according to any one of claims 27 to 29, characterized in that: When the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: After the call is ended, the HFP connection with the wearable device is disconnected.
32. The electronic device according to any one of claims 27 to 29, characterized in that: When the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: When an operation of playing a first audio of a first application or recording a second audio using the first application is detected, the first audio is played or the second audio is recorded.
33. The electronic device according to claim 32, characterized in that: 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.
34. The electronic device according to claim 32, characterized in that: 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 a sound using the first application.
35. The electronic device according to claim 33 or 34, characterized in that: When the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: After the video call or audio call connection is established, the third audio is collected.
36. The electronic device according to claim 33 or 34, characterized in that: The query result is used to indicate that the electronic device has not received an incoming call or has not detected an outgoing call.
37. A wearable device, characterized in that: include: A processor, a memory and an audio module, wherein the memory and the audio module are coupled to the processor, the memory is used to store computer program codes, and the computer program codes include computer instructions. When the processor reads the computer instructions from the memory, the wearable device performs the following operations: Establish a hands-free protocol HFP connection with the electronic device; Sending a query request to the electronic device, the query request being used to query a state parameter corresponding to a call service of the electronic device; receiving a query result sent by the electronic device, wherein the query result includes an indication of whether the electronic device needs to process a first call service; Automatically disconnecting the HFP connection according to the query result; receiving a first notification, and establishing the 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; The first audio data of the incoming call sent by the electronic device and / or the second audio data of the incoming call sent to the electronic device are received.
38. The wearable device according to claim 37, characterized in that: When the processor reads the computer instruction from the memory, the wearable device is also caused to perform the following operations: Establish Bluetooth connection with electronic devices; The Bluetooth connection is maintained while the HFP connection is automatically disconnected.
39. The wearable device according to claim 37, characterized in that The query request is an AT command.
40. The wearable device according to claim 37, characterized in that When the processor reads the computer instructions from the memory, the wearable device is further caused to perform the following operations: receiving a second notification, and establishing the 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 an outgoing call by the user; After the call connection is established, the third audio data of the outgoing call sent by the electronic device is received and / or the fourth audio data of the outgoing call is sent to the electronic device.
41. The wearable device according to any one of claims 37-40, characterized in that: When the processor reads the computer instruction from the memory, the wearable device is also caused to perform the following operations: After detecting an operation of ending a call or receiving an instruction of ending a call sent by the electronic device, the HFP connection with the electronic device is disconnected.
42. The wearable device according to any one of claims 37-40, characterized in that: The query result is used to indicate that the electronic device has not received an incoming call or has not detected an outgoing call.
43. A computer-readable storage medium having instructions stored therein, characterized in that: When the instruction is executed on an electronic device, the electronic device executes the Bluetooth communication method as described in any one of claims 11 to 20.
44. A computer-readable storage medium having instructions stored therein, characterized in that: When the instruction is executed on the wearable device, the wearable device executes the Bluetooth communication method as described in any one of claims 21-26.
Citation Information
Patent Citations
Bluetooth connection method of wearable device, and device
CN106658678A