Bluetooth third-party application call management method, electronic equipment and system
The Bluetooth-based method allows seamless call management of third-party applications through wearable devices by exchanging call scenario and contact information, enabling efficient and convenient call control.
Patent Information
- Application Number
- CN202411000573.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-25
- Publication Date
- 2024-12-03
AI Technical Summary
Existing call management methods for third-party applications on electronic devices are cumbersome and inefficient, requiring users to manage call tasks directly on the device rather than through wearable devices.
A Bluetooth-based method that enables communication between a first electronic device and a second wearable device, allowing the exchange of call scenario and contact information, and enabling the wearable device to execute call management functions such as answering, rejecting, or hanging up calls through simple operations.
Facilitates efficient and convenient management of call tasks initiated by third-party applications using wearable devices, enhancing user experience by simplifying operations and improving efficiency.
Smart Images

Figure CN119071766A_ABST
Abstract
Description
[0001] This application is a divisional application filed on February 25, 2023, with application number 202310216092.6 and invention name “Bluetooth third-party application call management method, electronic device and system”. Technical Field
[0002] The present application relates to the field of terminals, and in particular to a method, electronic device and system for managing calls of third-party Bluetooth applications. Background Art
[0003] With the development of terminal technology, wearable devices are increasingly widely used in users' daily lives. When making a call, the wearable device can establish a Bluetooth communication connection with the electronic device. The user can operate on the wearable device to manage the call task based on the electronic device through the Bluetooth communication connection. For example, the user can touch the wearable device to answer / hang up the call based on the electronic device.
[0004] However, the above-mentioned call management method based on wearable devices can only be applied to system call tasks of electronic devices. In non-system call tasks, for example, call tasks performed by third-party applications in electronic devices, users cannot manage the call tasks based on wearable devices. Therefore, users need to manage the call tasks based on electronic devices, which leads to extremely cumbersome operations and the problem that users cannot manage call tasks efficiently. Summary of the invention
[0005] The present application provides a Bluetooth third-party application call management method, electronic device and system, which implements the Bluetooth third-party application call management method, allowing users to more conveniently manage call tasks initiated by third-party applications, with simple operation and higher efficiency.
[0006] In the first aspect, the present application provides a Bluetooth third-party application call management method, which is applied to a first electronic device, and is characterized in that the method includes: the first electronic device and the second electronic device establish a Bluetooth communication connection. The first application in the first electronic device receives a call request. The first electronic device sends call scenario information to the second electronic device. Among them, the first application is a third-party application that supports instant messaging, and the call scenario information is used to indicate an incoming call scenario or an outgoing call scenario. In this way, a Bluetooth third-party application call management method is implemented, which can enable users to more conveniently manage call tasks initiated by third-party applications, with simple operation and higher efficiency.
[0007] In a possible implementation, the method further includes: the first electronic device receives a first instruction sent by the second electronic device, the first instruction indicating a first function. The first electronic device executes the first function based on the first instruction through the first application. The first function is: answering a call, rejecting a call, or hanging up a call.
[0008] In one possible implementation, after the first application in the first electronic device receives a call request, the method further includes: the first electronic device sends contact information to the second electronic device, the contact information including a contact name and / or an identifier of the first application, wherein the contact name is the name of the contact displayed in the first application.
[0009] In one possible implementation, after the first electronic device sends the call scenario information to the second electronic device, the method further includes: the first electronic device establishes a Bluetooth audio channel with the second electronic device. The first electronic device synthesizes the first audio based on the incoming call alert ringtone and the acquired contact information. The first electronic device sends the first audio to the second electronic device based on the Bluetooth audio channel. The content of the first audio includes the incoming call alert ringtone, the contact name and / or the name of the first application, so that the second electronic device plays the first audio to the user. In this way, it can be used to prompt the user of a new incoming call and prompt the user with contact-related information, which is beneficial to the user's operation and makes the call more convenient.
[0010] In a possible implementation, after the first electronic device sends the call scenario information to the second electronic device, the method further includes: the first electronic device establishes a Bluetooth audio channel with the second electronic device. The first electronic device sends an incoming call reminder ringtone to the second electronic device based on the Bluetooth audio channel. The incoming call reminder ringtone is used by the second electronic device to remind the user of a new incoming call. In this way, it can be used to remind the user of a new incoming call, which is beneficial to the user's operation and makes the call more convenient.
[0011] In a possible implementation, after the first electronic device sends the call scene information to the second electronic device, the method further includes: the first electronic device establishes a Bluetooth audio channel with the second electronic device. The first electronic device synthesizes a third audio based on the acquired contact information. The first electronic device sends the third audio to the second electronic device based on the Bluetooth audio channel. The content of the third audio is the name of the contact and / or the name of the first application, so that the second electronic device plays the third audio to the user. In this way, it can be used to prompt the user with contact information, facilitate the user's operation, and make calls more convenient.
[0012] In a possible implementation, the call scenario information includes an identifier of the call scenario.
[0013] In a possible implementation, the call scenario information is included in an AT command and sent.
[0014] In a possible implementation, AT+CIEV:(callsetup=1) is used to indicate that the current call scenario is an incoming call scenario, and AT+CIEV:(callsetup=2) is used to indicate that the current call scenario is an outgoing call scenario.
[0015] In a possible implementation manner, the first instruction is an AT instruction.
[0016] In a possible implementation, AT+ATA is used to indicate a function of answering a call, and AT+CHUP is used to indicate a function of rejecting a call or hanging up a call.
[0017] In a possible implementation manner, the contact information is included in an AT command and sent.
[0018] In a possible implementation, the AT command includes an AT+CLCC command, the number field in the AT+CLCC command represents the contact name, and the contact name field in the AT+CLCC command represents the identifier of the first application. Alternatively, the contact name field in the AT+CLCC command represents the contact name, and the number field in the AT+CLCC command represents the identifier of the first application. Alternatively, the number field in the AT+CLCC command represents the contact name and the identifier of the first application. Alternatively, the contact name field in the AT+CLCC command represents the contact name and the identifier of the first application. In this way, the electronic device 100 can send contact information more efficiently.
[0019] In the second aspect, an embodiment of the present application provides a Bluetooth third-party application call management method, which is applied to a second electronic device, and the method includes: the second electronic device and the first electronic device establish a Bluetooth communication connection. The second electronic device receives the call scene information sent by the first electronic device. The second electronic device plays the contact name and / or the name of the first application. Among them, the first application is a third-party application that supports instant messaging, the call scene information is used to indicate the incoming call scene or the outgoing call scene, and the contact name is the name of the contact displayed in the first application. In this way, users can more conveniently manage call tasks initiated by third-party applications, which is simple to operate and more efficient.
[0020] In a possible implementation, after the second electronic device receives the call scenario information sent by the first electronic device, the method further includes: the second electronic device receives a first operation. The second electronic device sends a first instruction corresponding to the first operation to the first electronic device. The first instruction indicates a first function, and the first function is: answering a call, rejecting a call, or hanging up a call.
[0021] In a possible implementation, after the second electronic device establishes a Bluetooth communication connection with the first electronic device, the method further includes: the second electronic device receives contact information sent by the first electronic device, where the contact information includes a contact name and / or an identifier of the first application.
[0022] In a possible implementation, the second electronic device plays the contact name and the name of the first application, specifically including: the second electronic device receives the first audio sent by the first electronic device. The second electronic device plays the incoming call reminder ringtone, the contact name and / or the name of the first application based on the first audio. In this way, it can be used to remind the user of new incoming calls and contact-related information, which is beneficial to the user's operation and makes the call more convenient.
[0023] In a possible implementation, the second electronic device plays the contact name and the name of the first application, specifically including: the second electronic device synthesizes a second audio based on the acquired contact information. The second electronic device plays the contact name and / or the name of the first application based on the second audio.
[0024] In a possible implementation, before the second electronic device synthesizes the second audio based on the acquired contact information, the method further includes: the second electronic device receives the incoming call alert ringtone sent by the first electronic device. Before the second electronic device plays the contact name and / or the name of the first application based on the second audio, the method further includes: the second electronic device plays the incoming call alert ringtone.
[0025] In a possible implementation, the first operation is: tapping the earphone once, long pressing the earphone, or tapping the earphone twice.
[0026] In a possible implementation manner, the first instruction is: an instruction to answer an incoming call, an instruction to reject an incoming call, or an instruction to hang up the call.
[0027] In a possible implementation manner, the first instruction is an AT instruction.
[0028] In a possible implementation, AT+ATA is used to indicate a function of answering an incoming call, and AT+CHUP is used to indicate a function of rejecting an incoming call, hanging up a call, or canceling a call.
[0029] In a third aspect, an embodiment of the present application provides a Bluetooth third-party application call management method, which is applied to a second electronic device, and the method includes: the second electronic device and the first electronic device establish a Bluetooth communication connection. The second electronic device receives the call status information and contact information sent by the first electronic device. The second electronic device displays the call management control, contact name / or the name of the first application corresponding to the call scenario information. Among them, the first application is a third-party application that supports instant messaging, and the call status information includes call scenario information and contact information. The call scenario information is used to indicate the incoming call scenario or the outgoing call scenario. The contact information includes the contact name and / or the identifier of the first application, wherein the contact name is the name of the contact displayed in the first application. In this way, users can more conveniently manage call tasks initiated by third-party applications, which is simple to operate and more efficient.
[0030] In a possible implementation, after the second electronic device receives the call scenario information and contact information sent by the first electronic device, the method further includes: the second electronic device receives a first operation. The second electronic device sends a first instruction corresponding to the first operation to the first electronic device. The first instruction indicates a first function, and the first function is: answering a call function, rejecting a call function, canceling a call function, or hanging up a call function.
[0031] In a possible implementation, the call management control includes: an answer call control, and / or a cancel call control, and / or a reject call control, and / or a hang up call control.
[0032] In a possible implementation, the first operation is: a touch operation on an answer call control, a touch operation on a reject call control, a touch operation on a cancel call control, or a touch operation on a hang up call control.
[0033] In a possible implementation manner, the first instruction is: an instruction to answer an incoming call, an instruction to reject an incoming call, an instruction to cancel a call, or an instruction to hang up a call.
[0034] In a possible implementation manner, the first instruction is an AT instruction.
[0035] In a possible implementation, AT+ATA is used to indicate a function of answering an incoming call, and AT+CHUP is used to indicate a function of rejecting an incoming call, hanging up a call, or canceling a call.
[0036] In a possible implementation, the method further includes: the second electronic device receives a first audio signal sent by the first electronic device, and the second electronic device plays a call reminder ring tone, the contact name, and / or the name of the first application based on the first audio signal.
[0037] In a possible implementation, the method further includes: the second electronic device synthesizing a second audio based on the contact information. The second electronic device plays the contact name and / or the name of the first application based on the second audio.
[0038] In a possible implementation, the method further includes: the second electronic device receives an incoming call alert ring tone sent by the first electronic device, and the second electronic device plays the incoming call alert ring tone.
[0039] In a possible implementation, before the second electronic device plays the incoming call alert ringtone, the method further includes: the second electronic device synthesizes a second audio based on the contact information. After the second electronic device plays the incoming call alert ringtone, the method further includes: the second electronic device plays the contact name and / or the name of the first application based on the second audio.
[0040] In a fourth aspect, an embodiment of the present application provides a Bluetooth third-party application call management method, which is applied to a communication system including a first electronic device and a second electronic device, and the method includes: the first electronic device and the second electronic device establish a Bluetooth communication connection. The first application in the first electronic device receives a call request. The first electronic device sends call scene information to the second electronic device. The second electronic device plays an incoming call reminder ringtone, and / or a contact name and / or the name of the first application. Among them, the first application is a third-party application that supports instant messaging, and the call status information includes call scene information, and the call scene information is used to indicate an incoming call scene or an outgoing call scene. In this way, users can more conveniently manage call tasks initiated by third-party applications, which is simple to operate and more efficient.
[0041] In a possible implementation, the method further includes: the second electronic device receives a first operation. The second electronic device sends a first instruction corresponding to the first operation to the first electronic device. The first instruction indicates a first function, and the first function is: answering a call function, rejecting a call function, or hanging up a call function. The first electronic device executes the first function based on the first instruction through the first application.
[0042] In a possible implementation, after the first application in the first electronic device receives the call request, the method further includes: the first electronic device sending contact information to the second electronic device. The contact information includes a contact name and / or an identifier of the first application, wherein the contact name is a name displayed by the contact in the first application.
[0043] In a possible implementation, after the first electronic device sends the call scenario information to the second electronic device, the method further includes: the first electronic device establishes a Bluetooth audio channel with the second electronic device. The first electronic device synthesizes the first audio based on the incoming call alert ringtone and the acquired contact information. The first electronic device sends the first audio to the second electronic device based on the Bluetooth audio channel. The second electronic device plays the incoming call alert ringtone, and / or the contact name, and / or the name of the first application, specifically including: the second electronic device plays the incoming call alert ringtone, the contact name and / or the name of the first application based on the first audio.
[0044] In a possible implementation, the second electronic device plays a call reminder ringtone, and / or a contact name, and the name of the first application, specifically including: the second electronic device synthesizes a second audio based on the contact information. The second electronic device plays the contact name and / or the name of the first application based on the second audio.
[0045] In a possible implementation, after the first electronic device sends the call scenario information to the second electronic device, the method further includes: the first electronic device establishes a Bluetooth audio channel with the second electronic device. The first electronic device synthesizes a third audio based on the acquired contact information. The second electronic device plays a call reminder ringtone, and / or a contact name, and the name of the first application, specifically including: the second electronic device plays the contact name and / or the name of the first application based on the third audio.
[0046] In a possible implementation, the call scenario information is included in an AT command and sent.
[0047] In a possible implementation, AT+CIEV:(callsetup=1) is used to indicate that the current call scenario is an incoming call scenario, and AT+CIEV:(callsetup=2) is used to indicate that the current call scenario is an outgoing call scenario.
[0048] In a possible implementation, the first operation is: tapping the headset once, long pressing the headset, or tapping the headset twice. The first instruction is an AT instruction.
[0049] In a possible implementation, AT+ATA is used to indicate a function of answering a call, and AT+CHUP is used to indicate a function of rejecting a call or hanging up a call.
[0050] In a possible implementation manner, the contact information is included in an AT command and sent.
[0051] In a possible implementation, the AT command includes an AT+CLCC command, the number field in the AT+CLCC command represents the contact name, and the contact name field in the AT+CLCC command represents the identifier of the first application. Alternatively, the contact name field in the AT+CLCC command represents the contact name, and the number field in the AT+CLCC command represents the identifier of the first application. Alternatively, the number field in the AT+CLCC command represents the contact name and the identifier of the first application. Alternatively, the contact name field in the AT+CLCC command represents the contact name and the identifier of the first application.
[0052] In a fifth aspect, an embodiment of the present application provides a Bluetooth third-party application call management method, which is applied to a communication system including a first electronic device and a second electronic device, and the method includes: the first electronic device and the second electronic device establish a Bluetooth communication connection. The first application in the first electronic device receives a call request. The first electronic device sends the call scene information and the contact information to the second electronic device. The second electronic device displays the call management control, the contact name and / or the name of the first application corresponding to the call scene information. Among them, the first application is a third-party application that supports instant messaging, the call scene information is used to indicate the incoming call scene or the outgoing call scene, and the contact information includes the contact name and / or the identifier of the first application, and the contact name is the name of the contact displayed in the first application. In this way, users can more conveniently manage call tasks initiated by third-party applications, which is simple to operate and more efficient.
[0053] In a possible implementation, after the second electronic device displays the call management control, the contact name and / or the name of the first application corresponding to the call scenario information, the method further includes: the second electronic device receives a first operation. The second electronic device sends a first instruction corresponding to the first operation to the first electronic device. The first instruction indicates a first function, which is: answering a call, rejecting a call, canceling a call or hanging up a call. The first electronic device executes the first function through the first application based on the first instruction.
[0054] In a possible implementation, the call management control includes: an answer call control, and / or a cancel call control, and / or a reject call control, and / or a hang up call control.
[0055] In a possible implementation, the first operation is: a touch operation on an answer call control, a touch operation on a reject call control, a touch operation on a cancel call control, or a touch operation on a hang up call control.
[0056] In a possible implementation manner, the first instruction is: an instruction to answer an incoming call, an instruction to reject an incoming call, an instruction to cancel a call, or an instruction to hang up a call.
[0057] In a possible implementation manner, the first instruction is an AT instruction.
[0058] In a possible implementation, AT+ATA is used to indicate a function of answering an incoming call, and AT+CHUP is used to indicate a function of rejecting an incoming call, hanging up a call, or canceling a call.
[0059] In a possible implementation, the method further includes: the second electronic device further receives a first audio sent by the first electronic device, and the second electronic device plays a call reminder ringtone, the contact name and / or the name of the first application based on the first audio.
[0060] In a possible implementation manner, the first instruction is: an instruction to answer an incoming call, an instruction to reject an incoming call, an instruction to cancel a call, or an instruction to hang up a call.
[0061] In a possible implementation manner, the first instruction is an AT instruction.
[0062] In a possible implementation, AT+ATA is used to indicate a function of answering an incoming call, and AT+CHUP is used to indicate a function of rejecting an incoming call, hanging up a call, or canceling a call.
[0063] In a possible implementation, the method further includes: the second electronic device further receives a first audio sent by the first electronic device, and the second electronic device plays a call reminder ringtone, the contact name and / or the name of the first application based on the first audio.
[0064] In a possible implementation, the method further includes: the second electronic device synthesizing a second audio based on the contact information. The second electronic device plays the contact name and / or the name of the first application based on the second audio.
[0065] In a possible implementation, the method further includes: the second electronic device receives an incoming call alert ring tone sent by the first electronic device, and the second electronic device plays the incoming call alert ring tone.
[0066] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, including computer instructions, which, when executed on an electronic device, causes the electronic device to execute a method in any possible implementation of any of the above aspects. In this way, users can more conveniently manage call tasks initiated by third-party applications, with simple operation and higher efficiency.
[0067] In the seventh aspect, the embodiment of the present application provides a chip system, including a processing circuit and an interface circuit, the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to run the code instructions to execute the method in any possible implementation of any of the above aspects. In this way, users can more conveniently manage call tasks initiated by third-party applications, with simple operation and higher efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1A A schematic diagram of the architecture of a communication system 10 provided in an embodiment of the present application;
[0069] Figure 1B A schematic diagram of a software architecture of a communication system 10 provided in an embodiment of the present application;
[0070] Figure 1C A schematic diagram of module interaction of a Bluetooth third-party application call management method provided in an embodiment of the present application;
[0071] Figure 1D A schematic diagram of a specific process of a Bluetooth third-party application call management method provided in an embodiment of the present application;
[0072] Figure 2A A schematic diagram of the architecture of a communication system 20 provided in an embodiment of the present application;
[0073] Figure 2B A schematic diagram of the software architecture of a communication system 20 provided in an embodiment of the present application;
[0074] Figure 2C A schematic diagram of module interaction of another Bluetooth third-party application call management method provided in an embodiment of the present application;
[0075] Figure 3A-3C A set of user interface schematic diagrams provided for embodiments of the present application;
[0076] Figure 4 A schematic diagram of a specific process of another method for managing a Bluetooth third-party application call provided in an embodiment of the present application;
[0077] Figure 5 A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
[0078] Figure 6 A schematic diagram of the hardware structure of an electronic device 200 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0079] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the attached claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear contrary indication in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations including one or more of the listed striking ones. In the embodiments of the present application, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can expressly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" is two or more.
[0080] First, an embodiment of the present application provides a Bluetooth third-party application call management method.
[0081] The Bluetooth third-party application call management method can be applied to a communication system composed of a wearable device (also referred to as an electronic device 200) and an electronic device (also referred to as an electronic device 100). The third-party application refers to an application that can be used to support instant messaging, and the instant messaging is an instant messaging triggered by a non-system call. It can be understood that a system call is a call based on a subscriber identity module (SIM).
[0082] In some embodiments, third-party applications can conduct voice over internet protocol (VoIP) calls based on IP. VoIP calls refer to a voice call technology that uses the IP protocol to achieve voice calls and multimedia conferences, that is, communication via the Internet. Other informal names include IP phone, Internet phone, broadband phone, and broadband phone service. In other words, VoIP technology is a technology that converts voice into IP data packets and transmits partly or completely over an IP network. In other embodiments, third-party applications can also conduct calls based on other voice transmission technologies, which is not limited by this application. The subsequent embodiments are explained using VoIP calls as an example.
[0083] Specifically, when the electronic device obtains a third-party application (also referred to as a first application, for example, When there is a call task to be processed in the wearable device (such as a Bluetooth connection, etc.), the electronic device can send the call scene information to the wearable device through the first application based on the Bluetooth connection (that is, the Bluetooth communication connection) so that the wearable device can determine the current call scene. When the wearable device receives a first operation acting on it (for example, a single click, double click or long press, etc., or a touch operation acting on the display interface of the wearable device), the wearable device can send the first instruction corresponding to the first operation to the first application in the electronic device through the Bluetooth connection, so that the first application can execute the first function corresponding to the first instruction (for example, answering a call, hanging up a call, rejecting a call, etc.). The specific implementation method will be described in detail in the subsequent embodiments.
[0084] Among them, the electronic device can be a mobile phone, a tablet computer, a PC, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA) and other electronic devices, and this application does not impose any restrictions on the specific type of the electronic device. Wearable devices can be electronic devices such as smart watches, smart bracelets, and headphones. Wearable devices support the Hands-Free Profile (HFP). This application also does not impose any restrictions on the specific type of the wearable device.
[0085] It can be seen from the above method that implementing the Bluetooth third-party application call management method provided in this application can enable users to more conveniently manage call tasks initiated by third-party applications, with simple operation and higher efficiency.
[0086] Next, a communication system 10 provided in an embodiment of the present application is introduced.
[0087] Please refer to Figure 1A , Figure 1A A schematic diagram of the architecture of a communication system 10 provided in an embodiment of the present application is shown.
[0088] like Figure 1AAs shown, here the electronic device 100 takes a mobile phone as an example, and the electronic device 200 takes a headset as an example. The electronic device 100 can establish a Bluetooth connection with the electronic device 200, and transmit data information to each other through the Bluetooth connection. For example, the electronic device 100 can send call scene information (for example, incoming call scene information or outgoing call scene information, etc.) to the electronic device 200 through the Bluetooth connection. When the electronic device 200 receives a first operation (for example, a single click, a double click, or a long press, etc.) acting on it, the electronic device 200 can send a first instruction corresponding to the first operation to the electronic device 100 through the Bluetooth connection (for example, an answer call instruction, a reject call instruction, or a hang up call instruction, etc.), so that the electronic device 100 can execute the first function corresponding to the above-mentioned first instruction (for example, answer a call, reject a call, or hang up the phone, etc.).
[0089] In some embodiments, the electronic device 100 may be a mobile phone, a tablet computer, a PC, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or other electronic devices. The present application does not impose any restrictions on the specific type of the electronic device 100. The electronic device 200 may be an electronic device such as a smart watch, a smart bracelet, a wearable device, an augmented reality (AR) / virtual reality (VR) device, or other electronic device. The present application does not impose any restrictions on the specific type of the electronic device 200.
[0090] It is understandable that the exemplary communication system structure shown in the embodiment of the present application does not constitute a specific limitation on the communication system 10. In other embodiments of the present application, the communication system 10 may include more or fewer electronic devices than shown in the figure, and may also include electronic devices of different types than those shown in the figure. For example, the communication system 10 may also include multiple electronic devices 200 that establish communication connections with the electronic device 100, such as smart watches, or multiple different types of electronic devices, such as displays, tablet computers, PCs, etc. with communication functions. This application does not limit this.
[0091] Next, a software architecture of a communication system 10 provided in an embodiment of the present application is introduced.
[0092] Please refer to Figure 1B , Figure 1B A schematic diagram of the software architecture of a communication system 10 provided in an embodiment of the present application is shown.
[0093] like Figure 1BAs shown, the communication system 10 includes an electronic device 100 and an electronic device 200. The electronic device 100 may include: a first application, a Bluetooth framework layer (Bluetooth framework, i.e., Bluetooth FWK) 1001A, a Bluetooth management module (Bluetooth android application package, i.e., Bluetooth APK) 1001B, a Bluetooth module (bluetooth chip, BTC) 1001C and an audio framework 1002.
[0094] The first application can send the call scene information to the electronic device 200 through the Bluetooth framework layer 1001A, the Bluetooth management module 1001B and the Bluetooth module 1001C, so as to notify the electronic device 200 of the current call scene.
[0095] In a possible implementation, the first application may also transmit the contact information (eg, the name of the contact and / or the identifier of the first application) to the Bluetooth framework layer 1001A, the Bluetooth management module 1001B and the Bluetooth module 1001C. Figure 1B The second audio may be used to announce to the user: the name of the contact and / or the name of the first application, etc.
[0096] In a possible implementation, the first application can also trigger the audio framework 1002, and establish a Bluetooth audio path with the electronic device 200 through the Bluetooth management module 1001B and the Bluetooth module 1001C. The first application can synthesize the first audio based on the incoming call reminder ringtone and / or the contact information, and then send the first audio to the electronic device 200 through the Bluetooth module 1001C based on the Bluetooth audio path, wherein the first audio is used to broadcast to the user the name of the contact, and / or the name of the first application, and / or the incoming call reminder ringtone. The specific implementation method can refer to the subsequent embodiments and will not be repeated here.
[0097] When receiving the first operation acting on the device, the electronic device 200 can send the first instruction corresponding to the first operation to the Bluetooth module 1001C in the electronic device 100. Then, the Bluetooth module 1001C in the electronic device 100 can send the first instruction to the Bluetooth management module 1001B. The Bluetooth management module 1001B can determine the identifier of the first function corresponding to the first instruction (for example, the identifier of answering the call, the identifier of rejecting the call, or the identifier of hanging up the call, etc.), and then send the identifier of the first function to the Bluetooth framework layer 1001A, so that the Bluetooth framework layer 1001A can send the broadcast information corresponding to the identifier of the first function to the first application, so that the first application can execute the first function. The specific implementation method can refer to the subsequent embodiments and will not be repeated here.
[0098] It should be noted that the Bluetooth audio path here is a synchronous connection oriented (SCO) link, which is a communication link between the electronic device 100 and the electronic device 200, and supports the transmission of information that is sensitive to delay, such as voice. Exemplarily, after the electronic device 100 and the electronic device 200 establish a SCO link, the electronic device 100 can send voice audio to the electronic device 200 through the SCO link; the electronic device 200 can collect the user's voice audio and return the voice audio to the electronic device 100 based on the SCO link.
[0099] It should be noted that Figure 1B The software architecture of the communication system 10 shown is only used to exemplify the present application and does not constitute any limitation to the present application.
[0100] Next, in combination with the communication system 10, a module interaction method of a Bluetooth third-party application call management method provided in an embodiment of the present application is introduced.
[0101] Please refer to Figure 1C , Figure 1C A schematic diagram of module interaction of the Bluetooth third-party application call management method is shown.
[0102] like Figure 1C As shown, the module interaction may specifically include:
[0103] Phase 1: The electronic device 100 indicates the call scenario to the electronic device 200.
[0104] S101: The electronic device 100 establishes a Bluetooth communication connection with the electronic device 200 via a Bluetooth module.
[0105] Specifically, the electronic device 100 can detect or scan the electronic device 200 by transmitting a signal through the Bluetooth module in the electronic device 100, establish a Bluetooth communication connection with the electronic device 200, and transmit data. The Bluetooth module can provide one or more Bluetooth communication solutions in classic Bluetooth (basic rate / enhanced data rate, BR / EDR) or Bluetooth low energy (bluetooth low energy, BLE).
[0106] S102: When the first application receives a call request, the Bluetooth framework layer (Bluetooth FWK) in the electronic device 100 obtains the current VoIP call status information through the first application. The VoIP call status information includes call scenario information and / or contact information.
[0107] The call request may be an incoming call request or an outgoing call request. The incoming call request may refer to a request from another user to call the user of the electronic device 100 for a call, and the outgoing call request may refer to a request from the user of the electronic device 100 to call another user for a call.
[0108] Specifically, the VoIP call status information may include one or more of the following VoIP call contents: call scenario information and / or contact information (eg, the identifier of the first application and / or the contact name, etc.), etc.
[0109] Among them, the VoIP call status information can be used for the first application to conduct a VoIP call. The call scenario can be: an incoming call scenario or an outgoing call scenario, etc. The call scenario information can be used to indicate that the current call scenario is a call scenario such as an incoming call scenario or an outgoing call scenario. The call scenario information may include an identifier of the call scenario (for example, an identifier of the incoming call scenario and an identifier of the outgoing call scenario, etc.). The incoming call scenario refers to a scenario in which the electronic device 100 receives an incoming call from other users through the first application, and the outgoing call scenario refers to a scenario in which the user makes a call through the first application in the electronic device 100. The contact information can be sent by the electronic device 100 to the electronic device 200 based on the Bluetooth instruction, so as to inform the electronic device 200 of the information of the contacts related to the current call scenario.
[0110] S103: The Bluetooth framework layer (which may be referred to as Bluetooth FWK) in the electronic device 100 sends the call scenario information to the Bluetooth management module (which may be referred to as Bluetooth APK).
[0111] Specifically, the Bluetooth FWK in the electronic device 100 can determine whether the software attributes and hardware capabilities of the device support the Bluetooth APK to obtain the VoIP call content. Taking the system as an example, the Bluetooth FWK in the electronic device 100 can determine whether the software attributes and hardware capabilities of the device support the Bluetooth APK to obtain the VoIP call content based on the function voipCallStateChange(Calling). If the electronic device 100 determines that the software attributes and hardware capabilities of the device can support the Bluetooth APK to obtain the VoIP call content, the Bluetooth FWK in the electronic device 100 sends the call scenario information to the Bluetooth APK. In some implementations, the electronic device 100 can also determine whether the software attributes and hardware capabilities of the device support the Bluetooth APK to obtain the VoIP call content by other means.
[0112] Optionally, in addition to the call scenario information, the Bluetooth FWK in the electronic device 100 can also send contact information to the Bluetooth APK, which is not limited in this application.
[0113] S104: The Bluetooth APK in the electronic device 100 sends the call scene information to the electronic device 200 through the Bluetooth module (which may be referred to as BTC). The call scene information may be used to notify the electronic device 200 of the current call scene.
[0114] Specifically, when the Bluetooth APK in the electronic device 100 receives the call scene information, the Bluetooth APK can send the call scene information to the electronic device 200 through the Bluetooth module (BTC) based on the aforementioned established Bluetooth communication connection, so as to notify the electronic device 200 of the current call scene.
[0115] For example, Taking the system as an example, BTC can send an AT command to the electronic device 200 through the Bluetooth communication connection to notify the electronic device 200 of the current call scene. It should be noted that the call scene information can be included in the AT command and sent. The electronic device 100 includes the call scene information in the AT command through the Bluetooth APK. Similarly, the contact information can be included in the AT command and sent. The electronic device 100 includes the contact information in the AT command through the Bluetooth APK.
[0116] For example, if the AT command is AT+CIEV:(callsetup=1), it indicates that the current call scenario is an incoming call scenario; if the AT command is AT+CIEV:(callsetup=2), it indicates that the current call scenario is an outgoing call scenario.
[0117] S105: The first application in the electronic device 100 triggers the audio framework and establishes a Bluetooth audio channel with the electronic device 200 through the Bluetooth APK and BTC.
[0118] For example, Taking the system as an example, the first application in the electronic device 100 can trigger the audio framework based on command codes such as startBluetoothSco and startScoUsingVirtualVoiceCall, and establish a Bluetooth audio channel between the electronic device 200 through Bluetooth APK and BTC. The Bluetooth audio channel can be used for: (1) The electronic device 100 and the electronic device 200 transmit voice information to each other, so that the user can make a call based on the electronic device 200. (2) The electronic device 200 receives the audio sent by the first application (for example, the ringtone of the incoming call reminder, the audio for broadcasting contact information), etc., and plays the audio.
[0119] It should be noted that, in other implementations, the electronic device 100 may also establish a Bluetooth audio path based on other command codes or other methods, and this application does not impose any restrictions on this.
[0120] It should be noted that the present application does not impose any restrictions on the implementation time of this step, that is, the electronic device 100 may execute this step after any step from step S102 to step S104.
[0121] S106: After the electronic device 100 establishes the Bluetooth audio channel, the electronic device 100 can 1). Send the first audio to the electronic device 200 based on the Bluetooth audio channel so that the electronic device 200 plays the incoming call reminder ringtone, and / or the contact name, and / or the name of the first application. 2). Alternatively, send the incoming call reminder ringtone based on the Bluetooth audio channel so that the electronic device 200 plays the incoming call ringtone. 3). Alternatively, send contact information based on the Bluetooth FWK, Bluetooth APK and BTC so that the electronic device 200 synthesizes the second audio and plays the contact name and / or the name of the first application based on the second audio. 4). Alternatively, send contact information based on the Bluetooth FWK, Bluetooth APK and BTC, and send the incoming call reminder ringtone based on the Bluetooth audio channel so that the electronic device 200 plays the incoming call reminder ringtone, and / or the contact name, and / or the name of the first application.
[0122] In a possible implementation, the first application in the electronic device 100 can synthesize the first audio based on the incoming call reminder ringtone and / or the contact information, and then send the first audio to the electronic device 200 through the BTC based on the Bluetooth audio path, so that the electronic device 200 plays the first audio to remind the user of the incoming call contact in the current call scenario. The first audio can be used to broadcast to the user: the incoming call reminder ringtone, the name of the contact and / or the name of the first application, etc.
[0123] In another possible implementation, the electronic device 100 may send the incoming call reminder ringtone to the electronic device 200 via the BTC based on the Bluetooth audio channel, so that the electronic device 200 plays the incoming call reminder ringtone to remind the user of a new incoming call.
[0124] In another possible implementation, the first application in the electronic device 100 can send the contact information to the electronic device 200 based on the Bluetooth FWK, Bluetooth APK and BTC. After receiving the contact information, the electronic device 200 can synthesize it into a second audio and play the second audio to prompt the user of the incoming contact in the current call scenario. The second audio can be used to announce to the user: the name of the contact and / or the name of the first application, etc.
[0125] In another possible implementation, the electronic device 100 can send the incoming call reminder ringtone to the electronic device 200 through the Bluetooth audio channel, so that the electronic device 200 plays the incoming call reminder ringtone to remind the user of a new incoming call. In addition, the first application in the electronic device 100 can send the contact information to the electronic device 200 based on the Bluetooth FWK, Bluetooth APK and BTC. After receiving the contact information, the electronic device 200 can synthesize it into a second audio and play the second audio to remind the user of the incoming call contact in the current call scenario. Among them, the second audio can be used to broadcast to the user: the name of the contact and / or the name of the first application, etc.
[0126] Exemplarily, the contact name in the contact information can be obtained through the number field in AT+CLCC (e.g., <number>field), the identifier of the first application in the contact information can be represented by the contact name field in AT+CLCC (for example, <alpha>When the electronic device 200 receives the number field in AT+CLCC, it can identify the contact name, thereby announcing and / or displaying the contact name; when the electronic device 200 receives the contact name field in AT+CLCC, it can identify the identifier of the first application, thereby announcing and / or displaying the name of the first application.
[0127] As another example, the contact name in the contact information can be obtained through the contact name field in AT+CLCC (e.g., <alpha>field), the identifier of the first application in the contact information can be represented by the number field in AT+CLCC (for example, <number>field).
[0128] For example, the contact name field in AT+CLCC (eg, <alpha>The contact name and the first application identifier in the contact information can be obtained through the number field in AT+CLCC (for example, <number>field).
[0129] As another example, the number field in AT+CLCC (eg, <number>The contact name field in the contact information and the identifier of the first application can be empty, and the contact name field in the AT+CLCC can be empty. <alpha>field).
[0130] It should be noted that the contact name and the identifier of the first application may also be multiplexed with other fields in the AT instruction, and this application does not impose any limitation on this.
[0131] Phase 2: The electronic device 200 instructs the electronic device 100 to execute a specified function.
[0132] S107: The electronic device 200 receives a first operation acting on the electronic device 200.
[0133] In which, taking the electronic device 200 as an earphone as an example, the first operation may be: tapping the earphone once, tapping the earphone twice, long pressing the earphone, etc. Taking the electronic device 200 as a smart watch as an example, the first operation may be: tapping the crown once, tapping the crown twice, long pressing the crown, etc. In other implementations, if the electronic device 200 is another device type (for example, a smart bracelet, AR, etc.), the first operation may be other operations, which is not limited in this application.
[0134] S108 : The electronic device 200 sends the first instruction corresponding to the first operation to the Bluetooth module in the electronic device 100 .
[0135] Specifically, the electronic device 200 may store a mapping relationship between the first operation and the first instruction. When the electronic device 200 receives the first operation acting on the electronic device 200, the electronic device 200 may determine the first instruction corresponding to the first operation based on the above mapping relationship, and send the corresponding first instruction to the Bluetooth module in the electronic device 100 via the Bluetooth communication connection.
[0136] For example, the electronic device 200 is a headset. Taking the system as an example, the mapping relationship can be shown in Table 1:
[0137] Table 1
[0138] First Operation First Directive Tap the earphones AT+ATA Long press the earphone AT+CHUP Double-tap the headset AT+CHUP …… ……
[0139] As shown in Table 1, when the electronic device 200 determines that the first operation is to tap the earphone once, the electronic device 200 determines that the first instruction corresponding to the first operation is AT+ATA, and the function represented by the first instruction is the answering function; when the electronic device 200 determines that the first operation is to long-press the earphone, the electronic device 200 determines that the first instruction corresponding to the first operation is AT+CHUP, and the function represented by the first instruction under this operation is the rejecting function; when the electronic device 200 determines that the first operation is to tap the earphone twice, the electronic device 200 determines that the first instruction corresponding to the first operation is AT+CHUP, and the function represented by the first instruction under this operation is the hanging up function. Then, after the electronic device 200 determines the first instruction corresponding to the first operation, the electronic device 200 can send the first instruction to the BTC in the electronic device 100 through the Bluetooth communication connection.
[0140] It should be noted that Table 1 is only used to exemplify the present application and does not constitute a limitation to the present application.
[0141] It should be noted that, in other implementations, the electronic device 200 may also determine the first instruction corresponding to the first operation in other ways, and this application does not impose any limitation on this.
[0142] For example, the electronic device 200 is a smart watch. Taking the system as an example, the mapping relationship can be shown in Table 2:
[0143] Table 2
[0144] First Operation First Directive Touch the crown AT+ATA Long press the crown AT+CHUP Double-click the crown AT+CHUP …… ……
[0145] As shown in Table 2, when the electronic device 200 determines that the first operation is to tap the crown once, the electronic device 200 determines that the first instruction corresponding to the first operation is AT+ATA, and the function represented by the first instruction is the answering function; when the electronic device 200 determines that the first operation is to long-press the crown, the electronic device 200 determines that the first instruction corresponding to the first operation is AT+CHUP, and the function represented by the first instruction under this operation is the rejecting function; when the electronic device 200 determines that the first operation is to tap the crown twice, the electronic device 200 determines that the first instruction corresponding to the first operation is AT+CHUP, and the function represented by the first instruction under this operation is the hanging up function. Then, after the electronic device 200 determines the first instruction corresponding to the first operation, the electronic device 200 can send the first instruction to the BTC in the electronic device 100 through the Bluetooth communication connection.
[0146] It should be noted that Table 2 is only used to illustrate the present application and does not constitute a limitation to the present application.
[0147] S109: The Bluetooth module in the electronic device 100 sends the first instruction to the Bluetooth APK.
[0148] S110: The Bluetooth APK in the electronic device 100 determines an identifier of a first function corresponding to the first instruction.
[0149] For example, if the electronic device 200 is a headset or a smart watch, Take the system as an example. The Bluetooth APK in the electronic device 100 obtains the first instruction sent by the BTC. If the first instruction is AT+ATA, the Bluetooth APK can determine that the identifier of the first function corresponding to the first instruction is the identifier of answering the call; if the first instruction is AT+CHUP, the Bluetooth APK can determine that the identifier of the first function corresponding to the first instruction is the identifier of hanging up the call / rejecting the call.
[0150] Among them, answering a call may mean that the electronic device 200 can receive and play voice information based on the Bluetooth audio path, and the electronic device 200 can send the voice information to the electronic device 100. Hanging up the call / rejecting a call may mean that the electronic device 100 disconnects the Bluetooth audio path, so that the electronic device 200 no longer receives and plays voice information, and the electronic device 200 cannot send voice information to the electronic device 100 based on the Bluetooth audio path.
[0151] It should be noted that, in other implementations, in addition to answering a call, hanging up a call, and rejecting a call, the first function described above may also be other functions, and this application does not limit this.
[0152] S111: The Bluetooth APK in the electronic device 100 sends the identifier of the first function to the Bluetooth FWK.
[0153] S112: The Bluetooth FWK in the electronic device 100 triggers the first application to execute the first function.
[0154] For example, Taking the system as an example, the Bluetooth APK in the electronic device 100 can send the identifier of the first function (for example, the identifier of answering a call, the identifier of hanging up a call / rejecting a call, etc.) to the Bluetooth FWK, and then the Bluetooth FWK can send the broadcast information corresponding to the identifier of the first function to the first application. After the first application receives the broadcast information corresponding to the identifier of the first function, it can execute the corresponding first function (for example, the function of answering a call, the function of rejecting a call, or the function of hanging up a call, etc.).
[0155] For example, if the identifier of the first function is an identifier for answering an incoming call, the Bluetooth FWK can send a broadcast message corresponding to the identifier for answering an incoming call to the first application, so that the first application can execute the function of answering an incoming call, that is, the electronic device 200 can receive and play the voice information sent by the first application on the electronic device 100 based on the Bluetooth audio channel, and the electronic device 200 can also send the voice information to the first application of the electronic device 100.
[0156] If the identifier of the first function is the hang up call / reject call identifier, the Bluetooth FWK can send a broadcast message corresponding to the hang up call / reject call identifier to the first application, so that the first application can execute the hang up call / reject call function, that is, the first application in the electronic device 100 disconnects the Bluetooth audio path, so that the electronic device 200 no longer receives and plays voice information, and the electronic device 200 cannot send voice information to the first application on the electronic device 100 based on the Bluetooth audio path.
[0157] It should be noted that in the above process, the call scene information can be sent together with the contact information, or the call scene information can be sent separately from the contact information, and this application does not impose any restrictions on this.
[0158] The following describes a specific process of a Bluetooth third-party application call management method provided by the present application.
[0159] Please refer to Figure 1D , Figure 1D The specific flow chart of a Bluetooth third-party application call management method provided in an embodiment of the present application is exemplified.
[0160] like Figure 1D As shown, the method may specifically include:
[0161] S101A: The electronic device 100 and the electronic device 200 establish a Bluetooth communication connection.
[0162] Specifically, for the description of this step, please refer to the aforementioned step S101.
[0163] S102A: When the first application in the electronic device 100 receives a call request, the electronic device 100 obtains VoIP call status information related to the first application, wherein the VoIP call status information includes call scenario information and / or contact information, etc.
[0164] Specifically, for the description of this step, please refer to the aforementioned step S102.
[0165] S103A: The electronic device 100 sends the call scene information to the electronic device 200. The call scene information can be used to notify the electronic device 200 of the current call scene.
[0166] Specifically, for the description of this step, please refer to the aforementioned steps S103 to S104.
[0167] S104A: The electronic device 100 establishes a Bluetooth audio channel with the electronic device 200 .
[0168] Specifically, for the description of this step, please refer to the aforementioned step S105.
[0169] It should be noted that the present application does not impose any restrictions on the implementation time of this step, that is, the electronic device 100 may execute this step after either step S102A or step S103A.
[0170] S105A: After the electronic device 100 establishes a Bluetooth audio channel with the electronic device 200, the electronic device 100 can 1) send a first audio to the electronic device 200 based on the Bluetooth audio channel so that the electronic device 200 plays an incoming call alert ringtone, and / or a contact name, and / or a name of a first application. 2). Alternatively, send an incoming call alert ringtone based on the Bluetooth audio channel so that the electronic device 200 plays an incoming call ringtone. 3). Alternatively, send contact information based on the Bluetooth communication connection so that the electronic device 200 synthesizes a second audio and plays the contact name and / or the name of the first application based on the second audio. 4). Alternatively, send contact information based on the Bluetooth communication connection and send an incoming call alert ringtone based on the Bluetooth audio channel so that the electronic device 200 plays an incoming call alert ringtone, and / or a contact name, and / or the name of the first application.
[0171] Specifically, for the description of this step, please refer to the aforementioned step S106.
[0172] S106A: The electronic device 200 receives a first operation acting on the electronic device 200 .
[0173] Specifically, for the description of this step, please refer to the aforementioned step S107.
[0174] S107A: The electronic device 200 sends the first instruction corresponding to the first operation to the electronic device 100.
[0175] Specifically, for the description of this step, please refer to the aforementioned step S108.
[0176] S108A: The electronic device 100 executes the first function corresponding to the first operation.
[0177] Specifically, the first instruction indicates the first function, and the electronic device 100 executes the first function through the first application based on the first instruction. Because the first operation corresponds to the first instruction, and the first instruction indicates the first function, the first function also corresponds to the first operation. For the description of this step, please refer to the aforementioned steps S109 to S112.
[0178] Next, a communication system 20 provided in an embodiment of the present application is introduced.
[0179] Please refer to Figure 2A , Figure 2A A schematic diagram of the architecture of a communication system 20 provided in an embodiment of the present application is shown.
[0180] like Figure 2A As shown, here the electronic device 100 takes a mobile phone as an example, and the electronic device 200 takes a smart watch as an example. The electronic device 100 can establish a Bluetooth connection with the electronic device 200, and transmit data information to each other through the Bluetooth connection. For example, the electronic device 100 can send call scene information (for example, incoming call scene information or outgoing call scene information, etc.) to the electronic device 200 through the Bluetooth connection. The electronic device 200 can display a call management control (for example, an answering call control, a hang-up call control, a rejection call control, etc.) based on the call scene information. When the electronic device 200 receives a touch operation (that is, a first operation) acting on the call management control, the electronic device 200 can send a first instruction corresponding to the identifier of the call management control to the electronic device 100 through the Bluetooth connection, such as an answering call instruction, a rejection call instruction, or a hang-up call instruction, so that the electronic device 100 can execute the first function corresponding to the above instruction (for example, answering a call, rejecting a call, hanging up a call, etc.).
[0181] In some embodiments, the electronic device 100 may be a mobile phone, a tablet computer, a PC, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other electronic devices. The present application does not impose any restrictions on the specific type of the electronic device 100. The electronic device 200 may be an electronic device such as a smart watch, a smart bracelet, a wearable device, an augmented reality (AR) / virtual reality (VR) device, and the like. It should be noted that the electronic device 200 is an electronic device with a display screen. The present application does not impose any restrictions on the specific type of the electronic device 200.
[0182] It is understandable that the exemplary communication system structure shown in the embodiment of the present application does not constitute a specific limitation on the communication system 20. In other embodiments of the present application, the communication system 20 may include more or fewer electronic devices than shown in the figure, and may also include electronic devices of different types than those shown in the figure. For example, the communication system 20 may also include multiple electronic devices 200 that establish communication connections with the electronic device 100, such as smart watches, or multiple different types of electronic devices, such as displays, tablet computers, PCs, etc. with communication functions. This application does not limit this.
[0183] Next, a software architecture of a communication system 20 provided in an embodiment of the present application is introduced.
[0184] Please refer to Figure 2B , Figure 2B A schematic diagram of the software architecture of a communication system 20 provided in an embodiment of the present application is shown.
[0185] like Figure 2B As shown, the communication system 20 includes an electronic device 100 and an electronic device 200. The electronic device 100 includes: a first application, a Bluetooth framework layer (i.e., Bluetooth FWK) 2001A, a Bluetooth management module (i.e., Bluetooth APK) 2001B, a Bluetooth module (i.e., BTC) 2001C, an audio framework 2002, and a notification center 2003. The electronic device 200 may include a Bluetooth module 2004, an information processing module 2005, and a UI module 2006. The information processing module 2005 may be a microcontroller unit (MCU).
[0186] The first application can send the call scene information to the Bluetooth module 2004 in the electronic device 200 through the Bluetooth framework layer 2001A, the Bluetooth management module 2001B and the Bluetooth module 2001C, so as to notify the electronic device 200 of the current call scene.
[0187] In one possible implementation, the first application may also send contact information (for example, contact name, and / or contact avatar, and / or identifier of the first application, etc.) to the Bluetooth module 2004 in the electronic device 200 through the notification center 2003, the second application, the Bluetooth framework layer 2001A, the Bluetooth management module 2001B and the Bluetooth module 2001C in the electronic device 100, so that the electronic device 200 can display the contact information through the UI module 2006, and / or the electronic device 200 can synthesize and play a second audio based on the contact information, wherein the second audio can be used to broadcast the contact name and / or the name of the first application, etc. to the user.
[0188] In one possible implementation, the first application can also trigger the audio framework 2002 to establish a Bluetooth audio path between the first application and the electronic device 200 through the Bluetooth management module 2001B and the Bluetooth module 2001C. The first application synthesizes the first audio based on the incoming call reminder ringtone and / or contact information, and then sends the first audio to the electronic device 200 based on the Bluetooth audio path, wherein the first audio can be used to broadcast the incoming call reminder ringtone, and / or the contact name, and / or the name of the first application to the user. Among them, the second application can be a health and exercise software (for example, a sports and health application, etc.), or it can be a peripheral collaborative application (for example, a Synergy module, etc.). Specifically, the operations performed by the first application can refer to the description in the aforementioned embodiment, which will not be repeated here.
[0189] In another possible implementation, the first application may also send the contact information to the Bluetooth module 2004 in the electronic device 200 through the Bluetooth framework layer 2001A, the Bluetooth management module 2001B and the Bluetooth module 2001C.
[0190] The call scene information and / or contact information can be sent to the UI module 2006 through the Bluetooth module 2004 and the information processing module 2005 in the electronic device 200. The UI module 2006 in the electronic device 200 can display the corresponding call management control (for example, answering call control, rejecting call control, hanging up call control, etc.) and / or contact information (for example, contact name, and / or contact avatar, and / or the name of the first application, etc.) based on the call scene information and / or contact information. When the electronic device 200 receives a touch operation acting on the call management control, the UI module 2006 can send the identifier of the call management control to the information processing module 2005, and the information processing module 2005 determines the first instruction corresponding to the identifier of the call management control and sends the first instruction to the Bluetooth module 2004 in the electronic device 200. Then, the Bluetooth module 2004 in the electronic device 200 can send the first instruction to the Bluetooth module 2001C in the electronic device 100. Then, the Bluetooth module 2001C in the electronic device 100 can send the first instruction to the Bluetooth management module 2001B. The Bluetooth management module 2001B can determine the identifier of the first function corresponding to the first instruction (for example, the identifier of answering a call, the identifier of rejecting a call, or the identifier of hanging up a call, etc.), and send the identifier of the first function to the Bluetooth framework layer 2001A, so that the Bluetooth framework layer 2001A can send the broadcast information corresponding to the identifier of the first function to the first application. The specific implementation method can refer to the above description, which will not be repeated here.
[0191] It should be noted that Figure 2B The software architecture of the communication system 20 shown is only used to exemplify the present application and does not constitute any limitation to the present application.
[0192] Next, in conjunction with the communication system 20, a specific implementation method of another Bluetooth third-party application call management method provided in an embodiment of the present application is introduced.
[0193] Please refer to Figure 2C , Figure 2C A schematic diagram of module interaction of the Bluetooth third-party application call management method is shown.
[0194] like Figure 2C As shown, the method may specifically include:
[0195] Phase 1: The electronic device 100 indicates the call scenario to the electronic device 200.
[0196] S201: The electronic device 100 and the electronic device 200 establish a Bluetooth communication connection via their respective Bluetooth modules.
[0197] Specifically, for the description of this step, please refer to the description in step S101.
[0198] S202: When the first application receives a call request, the Bluetooth framework layer (Bluetooth FWK) in the electronic device 100 obtains the current VoIP call status information through the first application. The VoIP call status information includes call scenario information and contact information.
[0199] Specifically, for the description of this step, please refer to the description in step S102.
[0200] S203: The Bluetooth framework layer (which may be referred to as Bluetooth FWK) in the electronic device 100 sends the call scenario information and the contact information to the Bluetooth management module (which may be referred to as Bluetooth APK).
[0201] Specifically, for the description of this step, please refer to the description in step S103.
[0202] It should be noted that the first application in the electronic device 100 can send contact information to the Bluetooth FWK through the second application, and then the Bluetooth FWK sends the contact information to the Bluetooth APK. Among them, the contact information may include: contact name, and / or contact avatar, and / or the logo of the first application, etc. The contact name may include an emoticon package. Among them, the second application can be a health and exercise software (for example, a sports health application, etc.), or it can be a peripheral collaborative application (for example, a Synergy module, etc.). In this way, the second application can better manage the contact information, so that the electronic device 200 can obtain and display richer contact display effects, such as displaying emoticons in the contact name.
[0203] In a possible implementation, the first application may not send the contact information to the Bluetooth FWK through the second application, but may directly send the contact information to the Bluetooth APK through the Bluetooth FWK.
[0204] S204: The Bluetooth APK in the electronic device 100 sends the call scenario information and the contact information to the Bluetooth module in the electronic device 200 via the Bluetooth module (which may be referred to as BTC).
[0205] Specifically, when the Bluetooth APK in the electronic device 100 receives the call scene information and the contact information, the Bluetooth APK can send the call scene information and the contact information to the electronic device 200 through the Bluetooth module (BTC) to notify the electronic device 200 of the current call scene and contact.
[0206] For example, Taking the system as an example, BTC can send an AT command to the electronic device 200 to notify the electronic device 200 of the current call scene. It should be noted that the call scene information can be included in the AT command and sent. The electronic device 100 includes the call scene information in the AT command through the Bluetooth APK. Similarly, the contact information can be included in the AT command and sent. The electronic device 100 includes the contact information in the AT command through the Bluetooth APK.
[0207] For example, if the AT command is AT+CIEV:(callsetup=1), it indicates that the current call scenario is an incoming call scenario; if the AT command is AT+CIEV:(callsetup=2), it indicates that the current call scenario is an outgoing call scenario.
[0208] Exemplarily, the contact name in the contact information can be obtained through the number field in AT+CLCC (e.g.,
[0209] <number>field), the identifier of the first application in the contact information can be represented by the contact name field in AT+CLCC (for example, <alpha>When the electronic device 200 receives the number field in AT+CLCC, it can identify the contact name, thereby announcing and / or displaying the contact name; when the electronic device 200 receives the contact name field in AT+CLCC, it can identify the identifier of the first application, thereby announcing and / or displaying the name of the first application.
[0210] As another example, the contact name in the contact information can be obtained through the contact name field in AT+CLCC (e.g., <alpha>field), the identifier of the first application in the contact information can be represented by the number field in AT+CLCC (for example, <number>field).
[0211] For example, the contact name field in AT+CLCC (eg, <alpha>The contact name and the first application identifier in the contact information can be obtained through the number field in AT+CLCC (for example, <number>field).
[0212] As another example, the number field in AT+CLCC (eg, <number>The contact name field in the contact information and the identifier of the first application can be empty, and the contact name field in the AT+CLCC can be empty.
[0213] <alpha>field).
[0214] It should be noted that the contact name and the identifier of the first application may also be multiplexed with other fields in the AT instruction, and this application does not impose any limitation on this.
[0215] S205: The Bluetooth module in the electronic device 200 sends the received call scenario information and contact information to the UI module through the information processing module.
[0216] S206: The first application in the electronic device 100 triggers the audio framework and establishes a Bluetooth audio channel with the electronic device 200 through the Bluetooth APK and BTC.
[0217] Specifically, for the description of this step, please refer to the description in step S105.
[0218] It should be noted that the present application does not impose any restrictions on the implementation time of step S206, that is, the electronic device 100 may execute this step after any step among steps S202 to S205 and step S207.
[0219] S207: After the UI module in the electronic device 200 obtains the call scene information and contact information (for example, contact name, and / or contact avatar, and / or the identifier of the first application, etc.), the call management controls and contact information (for example, contact name, and / or contact avatar, and / or the name of the first application, etc.) corresponding to the call scene information can be displayed on the display screen.
[0220] It should be noted that the contact name described in the embodiment of the present application is the name displayed by the contact in the first application. For example, if the first application is WeChat, the contact name is the name displayed in WeChat, that is, the WeChat name.
[0221] For example, the electronic device 200 is a smart watch.
[0222] (1) Figure 3A As shown, if the call scene information is the incoming call scene information, the electronic device 200 can display the call interface 300. Among them, the call interface 300 may include an "answer" control 301 (that is, an answer call control) and a "reject" control 302 (that is, a reject call control). The "answer" control 301 and the "reject" control 302 can be used to receive touch operations acting thereon, so that the electronic device 200 can send corresponding instructions to the electronic device 100. The call interface 300 can also display the text message "incoming call" to prompt the user that the current call scene is an incoming call scene. The call interface 300 can also display contact information, including a contact avatar 303, a contact name "Lucy" and the name of the first application "WeChat".
[0223] (2) Figure 3B As shown, if the call scene is an outgoing call scene, the electronic device 200 can display a call interface 310. The call interface 300 may include a "cancel" control 311. The control may be used to receive a touch operation on it, so that the electronic device 200 can send a corresponding instruction to the electronic device 100. The call interface 310 may also display a text message "waiting for the other party to answer..." to prompt the user that the current call scene is an outgoing call scene. The call interface 310 may also display contact information, including a contact avatar 312, a contact name "LiLy" and the name of the first application "WeChat".
[0224] (3) Figure 3C As shown, if the electronic device 200 receives a touch operation on the answering call control, the electronic device 200 can display a call interface 320. Among them, the call interface 320 can include a "hang up" control 321 (that is, a hang up call control). The control can be used to receive a touch operation acting on it, so that the electronic device 200 can send a corresponding instruction to the electronic device 100. The call interface 320 can also display a text message "in call" to prompt the user that the current call scene is a call scene. The call interface 320 can also display contact information, including a contact avatar 303, a contact name "Lucy" and the name of the first application "WeChat".
[0225] It should be noted that the above-mentioned "Answer" control 301 (answer call control), "Reject" control 302 (reject call control), "Cancel" control 311 (cancel call control) and "Hang up" control 321 (hang up call control) can be called call management controls.
[0226] It should be noted that the above user interface is only used to exemplify the present application and does not constitute a limitation to the present application.
[0227] S208: After the electronic device 100 establishes a Bluetooth audio channel with the electronic device 200, 1). The electronic device 100 can send a first audio to the electronic device 200 based on the Bluetooth audio channel, so that the electronic device 200 plays an incoming call alert ringtone, and / or a contact name, and / or the name of the first application. 2). Alternatively, the electronic device 100 sends an incoming call alert ringtone to the electronic device 200 based on the Bluetooth audio channel, so that the electronic device 200 synthesizes a second audio based on the aforementioned received contact information, and plays the incoming call alert ringtone, and / or the contact name, and / or the name of the first application based on the second audio and the incoming call alert ringtone. 3). Alternatively, the electronic device 200 synthesizes a second audio based on the aforementioned received contact information, so that the electronic device 200 plays the contact name and / or the name of the first application based on the second audio ( Figure 2C 4). Alternatively, the electronic device 100 sends an incoming call reminder ring tone to the electronic device 200 based on the Bluetooth audio channel, so that the electronic device 200 plays the incoming call reminder audio.
[0228] In a possible implementation, the first application in the electronic device 100 can synthesize the first audio based on the incoming call reminder ringtone and / or contact information (for example, the contact name and / or the identifier of the first application, etc.), and then send the first audio to the electronic device 200 through the BTC in the electronic device 100 based on the Bluetooth audio path. After receiving the first audio, the electronic device 200 can play the first audio to prompt the user of the incoming call contact in the current call scenario. Among them, the first audio can be used to broadcast to the user: the incoming call reminder ringtone, the name of the contact and / or the name of the first application, etc.
[0229] In another possible implementation, the electronic device 100 can send the incoming call reminder ringtone to the electronic device 200 through the Bluetooth audio channel, so that the electronic device 200 plays the incoming call reminder ringtone to remind the user of a new incoming call. In another possible implementation, the first application in the electronic device 100 has sent the contact information (for example, the contact name and / or the identifier of the first application, etc.) to the electronic device 200 through the second application, Bluetooth FWK, Bluetooth APK and BTC; or, the first application in the electronic device 200 has sent the contact information to the electronic device 200 through Bluetooth FWK, Bluetooth APK and Bluetooth module. After receiving the contact information, the electronic device 200 can synthesize it into a second audio and play the second audio to remind the user of the incoming call contact in the current call scenario. Among them, the second audio can be used to broadcast to the user: the name of the contact and / or the name of the first application, etc.
[0230] In another possible implementation, the electronic device 100 can send the incoming call reminder ringtone to the electronic device 200 through the Bluetooth audio channel, so that the electronic device 200 plays the incoming call reminder ringtone to remind the user of a new incoming call. In addition, in the aforementioned steps, the first application in the electronic device 100 has sent the contact information (for example, the contact name and / or the identifier of the first application, etc.) to the electronic device 200 through the second application, Bluetooth FWK, Bluetooth APK and BTC; or, the first application in the electronic device 200 has sent the contact information to the electronic device 200 through Bluetooth FWK, Bluetooth APK and Bluetooth module. After receiving the contact information, the electronic device 200 can synthesize it into a second audio and play the second audio to remind the user of the incoming call contact in the current call scenario. Among them, the second audio can be used to broadcast to the user: the name of the contact and / or the name of the first application, etc.
[0231] Among them, the second application can be health and sports software (for example, sports and health applications, etc.), or it can be a peripheral collaborative application (for example, Synergy module, etc.).
[0232] Phase 2: The electronic device 200 instructs the electronic device 100 to execute a specified function.
[0233] S209: The UI module in the electronic device 200 receives a touch operation on the call management control.
[0234] Exemplarily, the touch operation on the call management control (that is, the first operation) can be: a touch operation on the answer call control, a touch operation on the reject call control, a touch operation on the cancel call control, or a touch operation on the hang up call control.
[0235] S210: The UI module in the electronic device 200 obtains the identifier of the call management control.
[0236] S211: The UI module in the electronic device 200 may send the identifier of the call management control to the information processing module.
[0237] S212: The information processing module in the electronic device 200 determines a first instruction corresponding to the identifier of the call management control, and sends the first instruction to the Bluetooth module in the electronic device 200.
[0238] Specifically, the electronic device 200 may store a mapping relationship between the identifier of the call management control and the first instruction. When the information processing module in the electronic device 200 receives the identifier of the call management control, it may determine the first instruction corresponding to the identifier of the call management control based on the above mapping relationship, and send the first instruction to the Bluetooth module in the electronic device 200.
[0239] It should be noted that, because the first operation corresponds to the identifier of the call management control, the first instruction corresponding to the identifier of the call management control can also be regarded as the first instruction corresponding to the first operation.
[0240] For example, the electronic device 200 is a smart watch. Taking the system as an example, the mapping relationship can be shown in Table 3:
[0241] Table 3
[0242]
[0243]
[0244] As shown in Table 3, the identifier of the "answer" control 301 is 1, the first instruction corresponding to the identifier is AT+ATA, and the function represented by the first instruction is the answering function (which can be simply referred to as answering the call); the identifier of the "reject" control 302 is 2, the first instruction corresponding to the identifier is AT+CHUP, and the function represented by the first instruction is the rejecting function (which can be simply referred to as rejecting the call); the identifier of the "cancel" control 311 is 3, the first instruction corresponding to the identifier is AT+CHUP, and the function represented by the first instruction is the cancel call function (which can be simply referred to as cancel call); the identifier of the "hang up" control 321 is 4, the first instruction corresponding to the identifier is AT+CHUP, and the function represented by the first instruction is the hang up function (which can be simply referred to as hang up).
[0245] It should be noted that Table 3 is only used to illustrate the present application and does not constitute a limitation to the present application.
[0246] It should be noted that, in other implementations, the Bluetooth module in the electronic device 200 may also determine the first instruction corresponding to the identifier of the call management control in other ways, and this application does not impose any restrictions on this.
[0247] S213: The Bluetooth module in the electronic device 200 sends a first instruction corresponding to the identifier of the call management control to the Bluetooth module in the electronic device 100.
[0248] S214: The Bluetooth module in the electronic device 100 sends the first instruction to the Bluetooth APK in the electronic device 100.
[0249] S215: The Bluetooth APK in the electronic device 100 determines the identifier of the first function corresponding to the first instruction.
[0250] For example, if the electronic device 200 is a smart watch, Take the system as an example. The Bluetooth APK in the electronic device 100 obtains the first instruction sent by the BTC. If the first instruction is AT+ATA, the Bluetooth APK can determine that the identifier of the first function corresponding to the first instruction is the identifier of answering the call; if the first instruction is AT+CHUP, the Bluetooth APK can determine that the identifier of the first function corresponding to the first instruction is the identifier of hanging up the call / rejecting the call / cancelling the call.
[0251] Among them, answering a call may mean that the electronic device 200 can receive and play voice information based on the Bluetooth audio channel, and the electronic device 200 can send the voice information to the electronic device 100. Hanging up the call / rejecting the call / cancelling the call may mean that the electronic device 100 disconnects the Bluetooth audio channel, so that the electronic device 200 no longer receives and plays voice information, and the electronic device 200 cannot send voice information to the electronic device 100 based on the Bluetooth audio channel.
[0252] It should be noted that, in other implementations, in addition to answering a call, hanging up a call, rejecting a call, and canceling a call, the first function described above may also be other functions, and this application does not limit this.
[0253] S216: The Bluetooth APK in the electronic device 100 sends the identifier of the first function to the Bluetooth FWK.
[0254] S217: The electronic device 100 triggers the first application to execute the first function through the Bluetooth FWK.
[0255] Specifically, for the description of this step, please refer to the description in step S112.
[0256] It should be noted that when the first function is to cancel a call, the corresponding broadcast information sent by the Bluetooth APK to the first application can refer to hanging up the call / rejecting an incoming call.
[0257] It should be noted that in the above process, the call scene information can be sent together with the contact information, or the call scene information can be sent separately from the contact information, and this application does not impose any restrictions on this.
[0258] Next, the specific process of another Bluetooth third-party application call management method provided by the present application is introduced.
[0259] Please refer to Figure 4 , Figure 4 The specific flow chart of a Bluetooth third-party application call management method provided in an embodiment of the present application is exemplified.
[0260] like Figure 4 As shown, the method may specifically include:
[0261] S201A: The electronic device 100 and the electronic device 200 establish a Bluetooth communication connection.
[0262] Specifically, for the description of this step, please refer to the aforementioned step S201.
[0263] S202A: When the first application in the electronic device 100 receives a call request, the electronic device 100 obtains VoIP call status information related to the first application, wherein the VoIP call status information includes call scenario information and contact information.
[0264] Specifically, for the description of this step, please refer to the aforementioned step S202.
[0265] S203A: The electronic device 100 sends the call scene information and the contact information to the electronic device 200. The call scene information can be used to notify the electronic device 200 of the current call scene.
[0266] Specifically, for the description of this step, please refer to the aforementioned steps S203 to S205.
[0267] S204A: The electronic device 100 establishes a Bluetooth audio channel with the electronic device 200.
[0268] Specifically, for the description of this step, please refer to the aforementioned step S206.
[0269] It should be noted that the present application does not limit the implementation time of step S204A, that is, the electronic device 100 may execute this step after any step among steps S202A to S203A and S205A.
[0270] S205A: After the electronic device 200 obtains the call scene information and contact information (for example, contact name, and / or contact avatar, and / or the identifier of the first application, etc.), it displays the call management controls and contact information (for example, contact name, and / or contact avatar, and / or the name of the first application, etc.) corresponding to the call scene information.
[0271] Specifically, for the description of this step, please refer to the aforementioned step S207.
[0272] S206A: After the electronic device 100 establishes a Bluetooth audio channel with the electronic device 200, 1). The electronic device 100 can send a first audio to the electronic device 200 based on the Bluetooth audio channel, so that the electronic device 200 plays an incoming call reminder ringtone, and / or a contact name, and / or a name of a first application. 2). Alternatively, the electronic device 100 sends an incoming call reminder ringtone to the electronic device 200 based on the Bluetooth audio channel, so that the electronic device 200 synthesizes a second audio based on the aforementioned received contact information, and plays the incoming call reminder ringtone, and / or a contact name, and / or a name of the first application based on the second audio and the incoming call reminder ringtone. 3). Alternatively, the electronic device 200 synthesizes a second audio based on the aforementioned received contact information, so that the electronic device 200 plays the contact name and / or the name of the first application based on the second audio. 4). Alternatively, the electronic device 100 sends an incoming call reminder ringtone to the electronic device 200 based on the Bluetooth audio channel, so that the electronic device 200 plays the incoming call reminder audio.
[0273] Specifically, for the description of this step, please refer to the aforementioned step S208.
[0274] S207A: The electronic device 200 receives the first operation.
[0275] Specifically, the first operation is a touch operation on the call management control. For the description of this step, please refer to the aforementioned step S209.
[0276] S208A: The electronic device 200 sends the first instruction corresponding to the first operation to the electronic device 100.
[0277] Specifically, for the description of this step, reference may be made to the aforementioned steps S210 to S213.
[0278] S209A: The electronic device 100 executes the first function corresponding to the first operation.
[0279] Specifically, the first instruction indicates the first function, and the electronic device 100 executes the first function through the first application based on the first instruction. Because the first operation corresponds to the first instruction, and the first instruction indicates the first function, the first function also corresponds to the first operation. For the description of this step, please refer to the aforementioned steps S214 to S217.
[0280] It should be noted that the electronic device 100 may be referred to as a first electronic device, and the electronic device 200 may be referred to as a second electronic device; the VoIP call state information may be referred to as call state information; and the call scenario information is used to indicate an incoming call scenario or an outgoing call scenario;
[0281] The contact name is the contact name displayed by the contact in the first application; the content of the first audio includes the incoming call reminder ringtone, the contact name and / or the name of the first application, so that the second electronic device plays the first audio to the user;
[0282] The first audio synthesized only based on the contact information can be called the third audio, and the content of the third audio is the name of the contact and / or the name of the first application, so that the second electronic device plays the third audio to the user; the first instruction can be an instruction to answer the incoming call, an instruction to reject the incoming call, or an instruction to hang up the call; or, the first instruction can be an instruction to answer the incoming call, an instruction to reject the incoming call, an instruction to cancel the call, or an instruction to hang up the call. The first instruction can be an AT instruction; AT+ATA is used to indicate the function of answering the incoming call, and AT+CHUP is used to indicate the function of rejecting the incoming call, hanging up the call, or canceling the call; or, AT+CHUP is used to indicate the function of rejecting the incoming call, hanging up the call, or canceling the call;
[0283] The first operation is: a touch operation on a control for answering a call, a touch operation on a control for rejecting a call, a touch operation on a control for canceling a call, or a touch operation on a control for hanging up a call; or the first operation is: a light touch on the headset, a long press on the headset, or a double touch on the headset;
[0284] The first function is: answering a call, rejecting a call, or hanging up a call; or, the first function is: answering a call, rejecting a call, canceling a call, or hanging up a call.
[0285] The call management controls may include: an answer call control, and / or a cancel call control, and / or a reject call control, and / or a hang up call control.
[0286] The following introduces the hardware structure of an electronic device 100 provided in an embodiment of the present application.
[0287] Please refer to Figure 5 , Figure 5 The hardware structure diagram of an electronic device 100 provided in an embodiment of the present application is exemplarily shown.
[0288] like Figure 5 As shown, the electronic device 100 may include a processor 501, a memory 502, a wireless communication module 503, a display screen 504, etc. The above modules may be connected via a bus or other means, and the embodiment of the present application takes the connection via a bus as an example.
[0289] 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 100. In other embodiments of the present application, the electronic device 100 may also 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.
[0290] The processor 501 may include one or more processor units, for example, the processor 501 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0291] The processor 501 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 501 is a cache memory. The memory may store instructions or data that the processor 501 has just used or circulated. If the processor 501 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 501, and thus improves the efficiency of the system.
[0292] In some embodiments, the processor 501 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 USB interface, etc.
[0293] The memory 502 is coupled to the processor 501 and is used to store various software programs and / or multiple groups of instructions. In a specific implementation, the memory 502 may include a volatile memory, such as a random access memory (RAM); it may also include a non-volatile memory, such as a ROM, a flash memory, a hard disk drive (HDD) or a solid state drive (SSD); the memory 502 may also include a combination of the above-mentioned types of memories. The memory 502 may store some program codes so that the processor 501 calls the program codes stored in the memory 502 to implement the implementation method of the embodiment of the present application in the electronic device 100. The memory 502 may store an operating system, such as an embedded operating system such as uCOS, VxWorks, RTLinux, etc.
[0294] The wireless communication module 503 may include a Bluetooth communication module 503A. The electronic device 100 and the electronic device 200 may transmit data information to each other based on one or more wireless communication technologies in the Bluetooth communication module 503A. Among them, the Bluetooth communication module 503A may provide a solution including one or more Bluetooth communications in classic Bluetooth (basic rate / enhanced data rate, BR / EDR) or Bluetooth low energy (bluetooth low energy, BLE). The wireless communication module 503 may be connected via an antenna ( Figure 5 The wireless communication module 503 receives electromagnetic waves, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 501. The wireless communication module 503 can also receive the signals to be sent from the processor 501, modulate the frequencies of the signals, amplify the signals, and convert them into electromagnetic waves for radiation through the antenna.
[0295] In some embodiments, the wireless communication module 503 can also provide wireless communication solutions for application on the electronic device 100, including global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.
[0296] The display screen 504 can be used to display images, videos, etc. The display screen 504 may include a display panel. The display panel may 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), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 504, where N is a positive integer greater than 1.
[0297] Optionally, the electronic device 100 may further include an audio module 505 for converting digital audio information into analog audio signal output, and may also be used to convert analog audio input into digital audio signals. The audio module 505 may also be used to encode and decode audio signals. In some embodiments, the audio module 505 may also be arranged in the processor 501, or some functional modules of the audio module 505 may be arranged in the processor 501.
[0298] Optionally, the electronic device 100 may further include a speaker 506, which may also be referred to as a "speaker", for converting an audio electrical signal into a sound signal. The electronic device 100 may listen to music or a hands-free phone call through the speaker 506.
[0299] Optionally, the electronic device 100 may further include a mobile communication module ( Figure 5 (not shown). The mobile communication module can provide solutions for wireless communications including 2G / 3G / 4G / 5G etc. applied to the electronic device 100.
[0300] Optionally, the electronic device 100 may further include a touch sensor ( Figure 5 (not shown). The touch sensor may also be referred to as a "touch control device". The touch sensor may be provided on the display screen 504, and the touch sensor and the display screen 504 form a touch screen, also referred to as a "touch control screen". The touch sensor may be used to detect a touch operation applied thereto or thereabout.
[0301] It should be noted that, in some embodiments, before the electronic device 100 executes the Bluetooth third-party application call management method provided in the present application, the electronic device 100 may set whether it can execute the Bluetooth third-party application call management method, for example, it may set Settings.Global.getInt(mContext.getContentResolver(),"blueto oth_voip_state",0)==1, so that the electronic device 100 can execute the Bluetooth third-party application call management method.
[0302] In some embodiments, when the electronic device 100 establishes a Bluetooth audio channel with the electronic device 200 , the electronic device 100 can set isScoAvailableOffCall, and the Muses device synchronously adapts the HFP protocol so that the audio framework can be routed to the electronic device 200 .
[0303] In some embodiments, the electronic device 100 can determine whether the electronic device 100 supports the inbandring interface (METADATA_HW_INBANDRING). For the inbandring device, the audio framework can stop the incoming call reminder ringtone set by the electronic device 200, thereby playing the audio sent by the electronic device 100.
[0304] The following introduces the hardware structure of an electronic device 200 provided in an embodiment of the present application.
[0305] Please refer to Figure 6 , Figure 6 The hardware structure diagram of an electronic device 200 provided in an embodiment of the present application is exemplarily shown.
[0306] like Figure 6 As shown in the example, the electronic device 200 may include a processor 601, a memory 602, a wireless communication module 603, a power switch 604, a display screen 605, etc. The above modules may be connected via a bus or other means, and the embodiment of the present application takes the bus connection as an example.
[0307] The processor 601 can be used to read and execute computer-readable instructions. In a specific implementation, the processor 601 can mainly include a controller, an arithmetic unit and a register. Among them, the controller is mainly responsible for decoding instructions and sending control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for saving register operands and intermediate operation results temporarily stored during the execution of instructions. In a specific implementation, the hardware architecture of the processor 601 can be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture or an NP architecture, etc.
[0308] In some embodiments, the processor 601 can be used to parse the data information received by the wireless communication module 603. The processor 601 can respond according to the data information and perform corresponding operations. The processor 601 can also be used to generate a signal sent out by the wireless communication module 603, such as a Bluetooth signal.
[0309] The memory 602 is coupled to the processor 601 and is used to store various software programs and / or multiple sets of instructions. In a specific implementation, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 602 may also store a communication program, which may be used to communicate with the electronic device 100 or other electronic devices.
[0310] The wireless communication module 603 may include a Bluetooth communication module 603A or others. The electronic device 200 may receive or transmit wireless signals through one or more of the Bluetooth communication modules 603A to establish a wireless communication connection with the electronic device 100. The electronic device 200 may transmit data information to and from the electronic device 100 through the above-mentioned wireless communication connection. Among them, the Bluetooth communication module 603A may provide a solution including one or more Bluetooth communications in classic Bluetooth (basic rate / enhanceddatarate, BR / EDR) or Bluetooth low energy (bluetooth low energy, BLE).
[0311] The power switch 604 may be used to control the supply of power to the electronic device 200 .
[0312] Optionally, the electronic device 200 may include a display screen 605. The display screen 605 may be used to display images, videos, controls, text information, etc. The display screen 605 may include a display panel. The display panel may 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), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 605, where N is a positive integer greater than 1.
[0313] Optionally, the electronic device 200 may include a touch sensor ( Figure 6 The touch sensor may also be referred to as a "touch control device". The touch sensor may be provided on the display screen 605. The touch sensor and the display screen 605 form a touch screen, which may also be referred to as a "touch control screen". The touch sensor may be used to detect a touch operation applied thereto or thereabout.
[0314] Optionally, the electronic device 200 may include one or more physical buttons. The one or more physical buttons may receive an input operation (e.g., pressing the physical button) from a user. In response to the input operation, the electronic device 200 may perform an operation corresponding to the control displayed on the display screen corresponding to the physical button.
[0315] Understandably, Figure 6 The electronic device 200 shown is only one implementation of the embodiment of the present application and does not constitute a specific limitation on the electronic device 200. For example, the electronic device 200 may be a smart watch, and the electronic device 200 may also include a strap and a dial. The dial may include a display screen 605 for displaying images, videos, controls, text information, and the like. The strap may be used to fix the electronic device 200 to the limbs of the human body for easy wearing. In practical applications, the electronic device 200 may also include more or fewer components than shown in the figure, which is not limited here.
[0316] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0317] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0318] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.< / alpha> < / number> < / number> < / alpha> < / number> < / alpha> < / alpha> < / number> < / alpha> < / number> < / number> < / alpha> < / number> < / alpha> < / alpha> < / number>
Claims
1. A method applied to a mobile phone, wherein the mobile phone establishes a Bluetooth communication connection with a headset, characterized in that: The method comprises: When the mobile phone receives an incoming call request based on the user identity module SIM, The mobile phone notifies the headset of the call status associated with the incoming call request through an AT command; The mobile phone receives an AT command from the headset for instructing the mobile phone to perform an answering or hanging up operation; The mobile phone executes an answering or hanging up operation for the incoming call request according to the received AT command; When the third-party instant messaging application running on the mobile phone receives an incoming call request, The mobile phone obtains current IP-based voice transmission VoIP call scenario information through the third-party instant messaging application, where the VoIP call scenario information is used to indicate the incoming call scenario; The mobile phone notifies the headset of the incoming call scenario through an AT command; The mobile phone receives an AT command from the headset for instructing the mobile phone to perform an answering or hanging up operation; The mobile phone executes an answering or hanging up operation for the incoming call request according to the received AT command.
2. The method according to claim 1, before the mobile phone receives an AT command from the headset for instructing the mobile phone to perform an answering or hanging up operation, the method further comprises: The mobile phone establishes a Bluetooth audio channel between the mobile phone and the headset; The mobile phone sends an incoming call reminder ringtone to the headset based on the Bluetooth audio channel; wherein the incoming call reminder ringtone is used to remind the user of a new incoming call.
3. The method according to claim 1, characterized in that The VoIP call scenario information includes an identifier of the call scenario.
4. The method according to claim 1, characterized in that: The AT command includes AT+ATA and AT+CHUP, wherein AT+ATA is used to indicate answering, and AT+CHUP is used to indicate rejecting or hanging up.
5. The method according to any one of claims 1 to 4, characterized in that: The mobile phone comprises a Bluetooth framework layer, a Bluetooth management module and a Bluetooth module.
6. The method according to claim 5, characterized in that The mobile phone obtains the VoIP call scenario information through the third-party instant messaging application including: The Bluetooth framework layer of the mobile phone obtains the VoIP call scenario information through the third-party instant messaging application.
7. The method according to claim 6, characterized in that The scenario where the mobile phone notifies the headset of an incoming call through an AT command includes: The Bluetooth framework layer determines whether the software attributes and hardware capabilities of the mobile phone support the Bluetooth management module to obtain the current VoIP call content; In the case where the software attributes and hardware capabilities of the mobile phone support the Bluetooth management module to obtain the current VoIP call content, the Bluetooth framework layer sends the VoIP call scenario information to the Bluetooth management module; The Bluetooth management module sends the VoIP call scenario information to the headset through the Bluetooth module.
8. The method according to claim 6, characterized in that The Bluetooth framework layer determines whether the software attributes and hardware capabilities of the mobile phone support the Bluetooth management module to obtain the current VoIP call content, including: The Bluetooth framework layer determines whether the software attributes and hardware capabilities of the mobile phone support the Bluetooth management module to obtain the current VoIP call content based on the function voipCallStateChange(Calling).
9. The method according to claim 5, characterized in that When the third-party instant messaging application running on the mobile phone receives an incoming call request, The AT command received by the mobile phone from the headset for instructing the mobile phone to perform an answering or hanging up operation includes: The Bluetooth module receives an AT command from the headset for instructing the mobile phone to perform an answering or hanging up operation; The mobile phone performs an answering or hanging up operation on the incoming call request according to the received AT command, including: The Bluetooth module sends the AT command to the Bluetooth management module; The Bluetooth management module determines an answer or hang up operation identifier corresponding to the AT command, and sends the answer or hang up operation identifier to the Bluetooth framework layer; The Bluetooth framework layer sends a broadcast message corresponding to the answer or hang up operation identifier to the third-party instant messaging application; The third-party instant messaging application performs an answering or hanging up operation according to the broadcast information.
10. A method applied to a first electronic device, wherein the first electronic device establishes a Bluetooth communication connection with a second electronic device, characterized in that: The method comprises: When the first electronic device receives a system call request, The first electronic device notifies the second electronic device of a call status associated with the system call incoming request through an AT command; The first electronic device receives an AT instruction from the second electronic device for instructing the first electronic device to perform an answering or hanging up operation; The first electronic device executes an answering or hanging up operation for the system incoming call request according to the received AT command; When the third-party instant messaging application running on the first electronic device receives an incoming call request, The first electronic device obtains current IP-based voice transmission VoIP call scenario information through the third-party instant messaging application, where the VoIP call scenario information is used to indicate an incoming call scenario; The first electronic device notifies the second electronic device of the incoming call scenario through an AT command; The first electronic device receives an AT instruction from the second electronic device for instructing the first electronic device to perform an answering or hanging up operation; The first electronic device executes an answering or hanging up operation for the incoming call request according to the received AT command.
11. The method according to claim 10, before the first electronic device receives an AT command from the second electronic device for instructing the first electronic device to perform an answering or hanging up operation, the method further comprises: The first electronic device establishes a Bluetooth audio channel between the first electronic device and the second electronic device; The first electronic device sends an incoming call reminder ringtone to the second electronic device based on the Bluetooth audio path; wherein the incoming call reminder ringtone is used to remind the user of a new incoming call.
12. The method according to claim 10, characterized in that The VoIP call scenario information includes an identifier of the call scenario.
13. The method according to claim 10, characterized in that The AT command includes AT+ATA and AT+CHUP, wherein AT+ATA is used to indicate answering, and AT+CHUP is used to indicate rejecting or hanging up.
14. The method according to any one of claims 10 to 13, characterized in that The first electronic device includes a Bluetooth framework layer, a Bluetooth management module and a Bluetooth module.
15. The method according to claim 14, characterized in that The first electronic device obtaining the VoIP call scenario information through the third-party instant messaging application includes: The Bluetooth framework layer of the first electronic device obtains the VoIP call scenario information through the third-party instant messaging application.
16. The method according to claim 15, characterized in that The first electronic device notifying the second electronic device of an incoming call scenario through an AT command includes: The Bluetooth framework layer determines whether the software attributes and hardware capabilities of the first electronic device support the Bluetooth management module to obtain the current VoIP call content; In the case where the software attributes and hardware capabilities of the first electronic device support the Bluetooth management module to obtain the current VoIP call content, the Bluetooth framework layer sends the VoIP call scenario information to the Bluetooth management module; The Bluetooth management module sends the VoIP call scenario information to the second electronic device through the Bluetooth module.
17. The method according to claim 15, characterized in that The Bluetooth framework layer determines whether the software attributes and hardware capabilities of the first electronic device support the Bluetooth management module to obtain the current VoIP call content, including: The Bluetooth framework layer determines whether the software attributes and hardware capabilities of the first electronic device support the Bluetooth management module to obtain the current VoIP call content based on the function voipCallStateChange(Calling).
18. The method according to claim 14, characterized in that When the third-party instant messaging application running on the first electronic device receives an incoming call request, The first electronic device receiving, from the second electronic device, an AT instruction for instructing the first electronic device to perform an answering or hanging up operation includes: The Bluetooth module receives an AT instruction from the second electronic device for instructing the first electronic device to perform an answering or hanging up operation; The first electronic device performing an answering or hanging up operation on the incoming call request according to the received AT command includes: The Bluetooth module sends the AT command to the Bluetooth management module; The Bluetooth management module determines an answer or hang up operation identifier corresponding to the AT command, and sends the answer or hang up operation identifier to the Bluetooth framework layer; The Bluetooth framework layer sends a broadcast message corresponding to the answer or hang up operation identifier to the third-party instant messaging application; The third-party instant messaging application performs an answering or hanging up operation according to the broadcast information.
19. A computer storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 18.
20. A chip system, characterized in that: The method comprises a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit the code instructions to the processing circuit, and the processing circuit is used to run the code instructions to execute the method according to any one of claims 1 to 18.
21. An electronic device, characterized in that: The electronic device comprises a processor and a computer storage medium, wherein the computer storage medium is used to store computer instructions, and when the computer instructions are executed on the electronic device, the electronic device executes the method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Call processing method and device
CN105635482A
Telephone notification method, device and system, equipment and medium
CN112399358A
Electronic equipment and call method
CN113727289A
Method and device for controlling call software through Bluetooth, earphone, equipment and medium
CN114051073A
Bluetooth communication method and system and wearable equipment
CN114079892A
