Conversation method, electronic equipment and system
By answering the second channel call of the first terminal through the second terminal, the problem of the first channel being affected by answering the second channel call is solved, and the two channels are simultaneously conducted, improving the user experience.
Patent Information
- Application Number
- CN202311238918.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-03-25
AI Technical Summary
When the terminal device is in a one-way call, when receiving a call request for another call, the user hangs up or pauses the first call, resulting in the first call being unable to resume normally or is interrupted by a prompt tone, affecting the user experience.
The second terminal answers the second channel call of the first terminal, avoids affecting the first channel call of the first terminal, and realizes the simultaneous conduct of two channels of calls.
It effectively avoids the impact of first-channel calls due to answering second-channel calls, improves user experience, and allows users to make two-channel calls at the same time.
Smart Images

Figure CN119697797A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electronic technology, and in particular to a communication method, electronic equipment and system. Background Art
[0002] Currently, when a terminal device is in a call (referred to as a first call), if it receives a call request from another call (referred to as a second call), the user can choose to hang up or pause (also referred to as suspend) the first call.
[0003] If the user hangs up the first call, the user cannot return to the first call after hanging up, that is, the user needs to reconnect with the caller of the first call. In addition, in a conference call scenario, other users cannot add the user to the conference because the user is on another call. If the user pauses the first call, the first call will be interrupted by a prompt tone. For example, in a conference call scenario, other users will hear the prompt tone "The user you dialed is using the call hold service, please do not hang up...", which is a disturbance to others.
[0004] It can be seen that when the terminal device receives the call request for the second call, no matter the user hangs up or suspends the first call, the normal communication of the first call will be affected. Summary of the invention
[0005] The present application provides a call method, electronic device and system, which can answer a second call of a first terminal through a second terminal to avoid affecting the first call of the first terminal, thereby improving user experience.
[0006] In a first aspect, an embodiment of the present application provides a call method, the method comprising: when a first terminal is in a first call, receiving a call request to establish a second call; the first terminal sends the call request to a second terminal; when the first terminal responds to an answering command from the second terminal, the second call is established; the answering command is used to indicate agreement to the call request.
[0007] In the embodiment of the present application, when the first terminal is in the first call, if it receives a call request to establish a second call, the first terminal can send the call request to the second terminal, and the second terminal will answer the call. This method can avoid the first terminal's first call being affected by the first terminal answering the second call, can meet the user's needs to make two calls at the same time, and can effectively improve the user experience.
[0008] In combination with the first aspect, in a possible implementation manner, when the first terminal establishes the second call, the first call is in a call state.
[0009] In the embodiment of the present application, the user can answer the second call on the second terminal, so that the first terminal can establish the second call; at this time, the first terminal can keep the first call in the call state. The method can achieve that the first call and the second call are in the call state at the same time.
[0010] In combination with the first aspect, in a possible implementation, the method also includes: before receiving a call request, the first terminal displays a first call interface, the first call interface including call information of the first call; the communication information of the first call includes user information of the first call; in response to the call request of the second call, the first terminal displays an incoming call interface, the incoming call interface including the incoming call information of the second call; after establishing the second call, the first terminal displays a second call interface, the second call interface including the call information of the first call and the call identifier of the second call, the call identifier of the second call including the device identifier of the second terminal.
[0011] In the embodiment of the present application, the second terminal can display different display contents according to the current call status, so that the user can clearly see that one call or two calls are currently being made.
[0012] In combination with the first aspect, in a possible implementation manner, the first terminal is installed with a first subscriber identity module SIM card, and the first call and the second call are both implemented through the first SIM card.
[0013] The embodiment of the present application can be applicable to a single-card dual-call scenario, that is, the first call and the second call are both implemented through the first SIM card.
[0014] In combination with the first aspect, in a possible implementation, the first terminal is installed with a first SIM card and a second SIM card, the first call is implemented through the first SIM card, and the second call is implemented through the second SIM card.
[0015] The embodiment of the present application can be applicable to a dual-SIM dual-call scenario, that is, a first call is implemented through a first SIM card, and a second call is implemented through a second SIM card.
[0016] In combination with the first aspect, in a possible implementation manner, the first call is a basic call, and the second call is a voice transmission VoIP call.
[0017] The embodiments of the present application may be applicable to a scenario where a basic call and a VoIP call are made simultaneously, wherein the first call is a basic call and the second call is a voice transmission VoIP call.
[0018] In combination with the first aspect, in a possible implementation manner, the first terminal sends a call request to the second terminal, including:
[0019] The first terminal sends a call request to at least two third terminals, where the third terminals are devices that establish a communication connection with the first terminal; the second terminal is the first device among the at least one third terminal device to send a call answering command to the first terminal.
[0020] In the embodiment of the present application, the first terminal can send a call request to multiple third terminals, and determine the third terminal that first agrees to the call request as the second terminal. This method can display the call request through multiple terminal devices, which can improve user experience.
[0021] In combination with the first aspect, in a possible implementation manner, the first terminal includes a first real-time transport protocol RTP module and a first vocoder; and the method further includes:
[0022] The first terminal encodes the audio collected by the first terminal through the first vocoder;
[0023] The first terminal packages the data encoded by the first vocoder through the first RTP module to obtain the uplink audio of the first call;
[0024] The first terminal sends the uplink audio of the first call to the first communication network, and the first communication network is used to transmit the audio data of the first call, and the audio data of the first call includes the uplink audio of the first call.
[0025] In combination with the first aspect, in a possible implementation manner, the audio data of the first call further includes downlink audio of the first call, and the method further includes:
[0026] The first terminal receives the downlink audio of the first call;
[0027] The first terminal decompresses the downlink audio of the first call through the first RTP module;
[0028] The first terminal decodes the data decompressed by the first RTP module through the first vocoder;
[0029] The first terminal plays the audio decoded by the first vocoder.
[0030] In combination with the first aspect, in a possible implementation manner, the first terminal includes a second RTP module and a second vocoder; and the method further includes:
[0031] The first terminal receives first audio data sent by the second terminal;
[0032] The first terminal encodes the first audio data through a second vocoder;
[0033] The first terminal packages the data encoded by the second vocoder through the second RTP module to obtain the uplink audio of the second call;
[0034] The first terminal sends the uplink audio of the second call to the second communication network, and the second communication network is used to transmit the audio data of the second call, and the audio data of the second call includes the uplink audio of the second call.
[0035] In combination with the first aspect, in a possible implementation manner, the audio data of the second call further includes downlink audio of the second call, and the method further includes:
[0036] The first terminal receives the downlink audio of the second call;
[0037] The first terminal decompresses the downlink audio of the second call through the second RTP module;
[0038] The first terminal decodes the data decompressed by the second RTP module through the second vocoder to obtain second audio data;
[0039] The first terminal sends the second audio data to the second terminal, and the second terminal is used to play the second audio data.
[0040] In the embodiment of the present application, the audio of the first call and the second call are processed respectively by the first RTP module, the first vocoder, the second RTP module and the second vocoder, so as to realize the simultaneous conduct of the two calls.
[0041] In a second aspect, an embodiment of the present application provides a call method, the method comprising: a second terminal receives a call request sent by a first terminal; the call request is used to request to establish a second call; the first terminal is in a first call when sending the call request; the second terminal responds to a user operation indicating agreement to establish the second call, and sends an answer command to the first terminal, the answer command being used to indicate agreement to the call request.
[0042] In the embodiment of the present application, the second terminal can receive a call request sent from another device, and then, in response to a user operation indicating consent to establish a second call, send a call answering command to the first terminal, the call answering command being used to indicate consent to the call request. In this method, the user can answer a call from another device on the second device, which can meet the user's needs and improve the user experience.
[0043] In conjunction with the second aspect, in a possible implementation manner, the method further includes:
[0044] In response to the call request, the second terminal displays an incoming call interface, the incoming call interface including incoming call information of the second call and an answering control; the incoming call information of the second call is obtained based on the call request;
[0045] In response to the user operation on the answering control, the second terminal displays a call interface including call information of the second call.
[0046] In the embodiment of the present application, the second terminal can display an incoming call interface in response to the call request. Then, the user can determine whether to answer the call request from the content displayed on the incoming call interface, and the user can also answer the call by performing user operations on the incoming call interface.
[0047] In conjunction with the second aspect, in a possible implementation manner, the method further includes:
[0048] The second terminal collects audio through a microphone in response to a user operation on the answering control to obtain first audio data;
[0049] The second terminal sends first audio data to the first terminal, where the first audio data is used to determine the uplink audio of the second call.
[0050] In conjunction with the second aspect, in a possible implementation manner, after sending a call answering command to the first terminal, the method further includes:
[0051] The second terminal receives the downlink audio of the second call sent by the first terminal;
[0052] The second terminal plays the downlink audio of the second call.
[0053] In conjunction with the second aspect, in a possible implementation, the first terminal is installed with a first subscriber identity module SIM card, and the first call and the second call are both implemented through the first SIM card.
[0054] In conjunction with the second aspect, in a possible implementation, the first terminal is installed with a first SIM card and a second SIM card, the first call is implemented through the first SIM card, and the second call is implemented through the second SIM card.
[0055] In conjunction with the second aspect, in a possible implementation, the first call is a basic call, and the second call is a voice transmission VoIP call.
[0056] In a third aspect, an embodiment of the present application provides a call system, which includes a first terminal and a second terminal; the first terminal is used to: when in a first call, send a call request received to establish a second call to the second terminal; the second terminal is used to: in response to the above call request, display a first incoming call interface, the first incoming call interface including the incoming call information of the second call; in response to a user operation indicating agreement to establish the second call, send an answer command to the first terminal, the answer command is used to indicate agreement to the call request; the first terminal is also used to: establish a second call in response to the answer command; send the downlink audio of the second call to the second terminal; the second terminal is also used to: play the downlink audio of the second call.
[0057] In the embodiment of the present application, the second terminal can display the incoming call interface of the second call, and in response to the answering operation, instruct the first terminal to establish the second call and answer the call through the second terminal. The system answers the second call of the first terminal through the second terminal, which can ensure the normal call of the first call and realize the simultaneous conduct of the two calls. This method can meet the user's demand for conducting two calls at the same time and improve the user experience.
[0058] In combination with the third aspect, in a possible implementation, the second terminal is also used to: in response to a user operation indicating agreement to establish a second call, collect audio through a microphone to obtain first audio data; and send the first audio data to the first terminal, and the first audio data is used to determine the uplink audio of the second call.
[0059] In combination with the third aspect, in a possible implementation, the second terminal is further used to: in response to a user operation indicating consent to establish the second call, display a call interface including call information of the second call.
[0060] In combination with the third aspect, in a possible implementation, the first incoming call interface includes an answering control, and the user operation indicating consent to establish the second call is a user operation on the answering control.
[0061] In combination with the third aspect, in a possible implementation manner, when the first terminal establishes the second call, the first call is in a call state.
[0062] In conjunction with the third aspect, in a possible implementation manner, the first terminal is used to:
[0063] Before receiving a call request, displaying a first interface, the first interface including call information of a first call; the communication information of the first call includes user information of the first call;
[0064] In response to the call request, displaying a second incoming call interface, the second incoming call interface including incoming call information of the second call;
[0065] After the second call is established, a second interface is displayed, the second interface includes call information of the first call and a call identifier of the second call, and the call identifier of the second call includes a device identifier of the second terminal.
[0066] In combination with the third aspect, in a possible implementation, the first terminal is installed with a first subscriber identity module SIM card, and the first call and the second call are both implemented through the first SIM card.
[0067] In combination with the third aspect, in a possible implementation, the first terminal is installed with a first SIM card and a second SIM card, the first call is implemented through the first SIM card, and the second call is implemented through the second SIM card.
[0068] In combination with the third aspect, in a possible implementation, the first call is a basic call, and the second call is a voice transmission VoIP call.
[0069] In a fourth aspect, the present application provides an electronic device. The electronic device may include a memory and a processor. The memory may be used to store a computer program. The processor may be used to call the computer program so that the electronic device performs the first aspect or any possible implementation of the first aspect.
[0070] In a fifth aspect, the present application provides an electronic device. The electronic device may include a memory and a processor. The memory may be used to store a computer program. The processor may be used to call the computer program so that the electronic device executes the second aspect or any possible implementation of the second aspect.
[0071] In a sixth aspect, the present application provides a computer program product comprising instructions, characterized in that when the above-mentioned computer program product runs on an electronic device, the electronic device executes the first aspect or any possible implementation method of the first aspect.
[0072] In a seventh aspect, the present application provides a computer program product comprising instructions, characterized in that when the above-mentioned computer program product runs on an electronic device, the electronic device executes the second aspect or any possible implementation method of the second aspect.
[0073] In an eighth aspect, the present application provides a computer-readable storage medium, comprising instructions, characterized in that when the above instructions are executed on an electronic device, the electronic device executes the first aspect or any possible implementation method of the first aspect.
[0074] In a ninth aspect, the present application provides a computer-readable storage medium, comprising instructions, characterized in that when the above instructions are executed on an electronic device, the electronic device executes the second aspect or any possible implementation method of the second aspect.
[0075] It is understandable that the electronic devices provided in the fourth and fifth aspects, the computer program products provided in the sixth and seventh aspects, and the computer-readable storage media provided in the eighth and ninth aspects are all used to execute the methods provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 It is an architecture diagram of a call system provided in an embodiment of the present application;
[0077] Figure 2 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
[0078] Figure 3 is a software and hardware structure diagram of a first terminal and a second terminal provided in an embodiment of the present application;
[0079] Figure 4A This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0080] Figure 4B This is another application scenario schematic diagram provided by an embodiment of the present application;
[0081] Figure 4C This is another application scenario schematic diagram provided by an embodiment of the present application;
[0082] Figure 5A-5E , Figure 6A-6B as well as Figure 7A-7C Some user interfaces implemented on the first terminal and the second terminal in the above three scenarios are exemplarily shown;
[0083] Figure 8 It is a schematic diagram of a calling method process in a dual-SIM dual-communication scenario provided by an embodiment of the present application;
[0084] Fig. 9 It is a schematic diagram of a HiFi module provided in an embodiment of the present application processing audio data of two calls;
[0085] Fig.10 It is a flowchart of a calling method in a single-card dual-communication scenario provided by an embodiment of the present application;
[0086] Fig.11 This is a flowchart of a call method in a dual-channel scenario of a basic call and a VoIP call provided by an embodiment of the present application;
[0087] Fig.12 It is a flowchart of a calling method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0088] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0089] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0090] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0091] An embodiment of the present application provides a calling method. When a user makes a first call through a first terminal, if an incoming call signal of a second call is received, the incoming call signal can be answered through the second terminal and the second call can be made with the help of the second terminal. This method can improve the calling experience.
[0092] The call described in the embodiments of the present application may refer to a call transmitted through the traditional telephone network of a telecommunications operator (referred to as a basic call in the embodiments of the present application), or may be a voice transmission (Voice over Internet Protocol, VoIP) call based on IP (Internet Protocol) transmitted via the Internet. It should be noted that the basic call may also be referred to as a traditional call or a traditional phone call, etc., which is not limited in the embodiments of the present application.
[0093] Exemplarily, a VoIP call may be a voice call or a video call using an online chat tool. The online chat tool may be an application installed in an electronic device, such as a mobile phone. For ease of description, in the present application embodiment, an application that can provide a VoIP call function is referred to as a VoIP application, and an application that can provide a basic call function is referred to as a call application.
[0094] For example, a VoIP application can be an embedded application (i.e., a system application of the mobile phone) or a downloadable application. An embedded application is an application provided as part of the mobile phone implementation. A downloadable application is an application that can provide its own Internet protocol multimedia subsystem (IMS) connection. The downloadable application can be an application pre-installed in the mobile phone or can be a third-party application downloaded and installed in the mobile phone by the user. For example, a VoIP application can be Huawei's Changlian, which allows users to make voice calls or video calls with other users.
[0095] In the embodiment of the present application, the call request may be referred to as an incoming call signal.
[0096] In order to introduce the calling method provided by the embodiment of the present application more clearly and in detail, the calling system provided by the embodiment of the present application is first introduced below.
[0097] See also Figure 1 , Figure 1 This is an architecture diagram of a call system provided in an embodiment of the present application.
[0098] like Figure 1 As shown, the system includes a first terminal 101 and a second terminal 102. The first terminal 101 is a device installed with a subscriber identity module (SIM) card, wherein the SIM card includes but is not limited to a physical SIM card, an embedded SIM (e-SIM) card, a virtual SIM card, etc. The first terminal 101 interacts with the network through the SIM card to realize the call function; the second terminal 102 is a device that can establish a communication connection with the first terminal 101, and the second terminal 102 has an audio playback function.
[0099] In some embodiments, the first terminal 101 may send a call request for a second call to the second terminal 102 when the first call is in progress; if the user answers the second call at the second terminal 102, the first terminal 101 may be responsible for the audio data transmission between the second terminal 102 and the network-side device. In the embodiment of the present application, a call connected by a terminal device when it is not in a call state is referred to as a first call, and the first call may be initiated by the terminal device or answered by the terminal device; a call answered by the terminal device when it is in a call state is referred to as a second call.
[0100] The second terminal 102 may be one or more electronic devices. For example, if the first terminal 101 establishes a communication connection with multiple electronic devices, the first terminal 101 may select one electronic device from the multiple electronic devices as the second terminal 102 according to a user instruction or a preset rule. For another example, if there is only one electronic device that establishes a communication connection with the first terminal 101, the first terminal 101 may use the electronic device as the second terminal 102.
[0101] In the embodiment of the present application, the first terminal 101 and the second terminal 102 may both be user equipment (UE), such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, a wearable device (such as a smart watch), a vehicle-mounted device, a smart home device (such as a smart speaker), an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other electronic devices. Exemplary embodiments of the electronic device 100 include but are not limited to a device equipped with The electronic device 100 may be a portable electronic device running Linux or other operating systems. The electronic device 100 may also be other portable electronic devices, such as a laptop computer. It should also be understood that in some other embodiments, the electronic device 100 may not be a portable electronic device, but a desktop computer, etc.
[0102] Exemplarily, the first terminal 101 may be a mobile phone, and the second terminal 102 may include a watch, a bracelet, smart glasses, etc. connected to the first terminal.
[0103] exist Figure 1The system shown may also include a network device and at least two third terminals, the third terminal being a device for conducting a call with the first terminal 101 (such as the counterpart device of the first call and the counterpart device of the second call), and the network device being used to realize a call connection between the third terminal and the first terminal 101.
[0104] Among them, the network device may have a device capable of providing a random access function for an electronic device or a chip that can be set in the device, and the device includes but is not limited to: an evolved Node B (eNB), a radio network controller (RNC), a Node B (NB), a base station controller (BSC), a base transceiver station (BTS), a home base station (for example, a home evolved Node B, or a home Node B, HNB), a baseband unit (BBU), and can also be a 5G, such as a gNB in a NR system, or a transmission point (TRP or TP), one or a group (including multiple) of antenna panels of a base station in a 5G system, or a network node constituting a gNB or a transmission point, such as a baseband unit (BBU), or a distributed unit (DU, distributed unit), a network device in a future 5G network, or a network device in a future evolved PLMN network, etc., and the embodiments of the present application are not limited.
[0105] The technical solutions of the embodiments of the present application can be applied to various call systems, such as: long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) call system, fifth generation (5G) system or new radio (NR), global system for mobile communications (GSM), code division multiple access (CDMA) call system, time division-synchronous CDMA (TD-SCDMA) call system, etc.
[0106] The technical solution provided in the embodiments of the present application is applicable to calls such as circuit switching (CS), voice over long-term evolution (VoLTE), voice over new radio (VoNR), video over long-term evolution (ViLTE), video over new radio (ViNR), evolved packet system fallback (EPS fallback), CS fallback, voice calls based on wireless fidelity (WiFi) (voice over WiFi, VoWiFi) or video calls based on WiFi (video over WiFi, ViWiFi).
[0107] Understandably, Figure 1 The call system architecture in the embodiment of the present application is only an exemplary implementation. The call system architecture in the embodiment of the present application includes but is not limited to the above architecture.
[0108] Figure 2A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0109] It should be noted that Figure 1 The first terminal 101 and the second terminal 102 shown may both be electronic devices 100 .
[0110] The embodiment is described in detail below by taking the electronic device 100 as an example. It should be understood that the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0111] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194 and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0112] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0113] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0114] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0115] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0116] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0117] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0118] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0119] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0120] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0121] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0122] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0123] The SIM interface can be used to communicate with the SIM card interface 195 to implement the function of transmitting data to the SIM card or reading data in the SIM card.
[0124] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0125] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0126] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
[0127] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
[0128] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0129] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0130] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0131] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0132] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0133] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0134] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0135] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), 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 194, where N is a positive integer greater than 1.
[0136] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0137] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, etc. of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0138] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0139] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0140] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0141] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0142] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0143] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0144] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0145] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0146] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0147] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0148] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0149] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0150] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0151] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0152] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0153] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting the SIM card interface 195 or pulling the SIM card interface 195 out. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards.
[0154] In the embodiment of the present application, the electronic device 100 is installed with at least one SIM card, and the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. The electronic device 100 can execute the call method through the processor 110, the mobile communication module 150 and the installed SIM card.
[0155] The following Figure 3 The software and hardware structures of the first terminal and the second terminal are introduced exemplarily.
[0156] like Figure 3 As shown, the first terminal may include a call application located at the application layer, a call manager, a communication framework and an audio framework located at the application framework layer, a Rild process and an audio module (Audio-HAL) located at the hardware abstract layer (HAL), and a modem (Modem), a high-fidelity (HiFi) module and a speaker (speaker) and a microphone (Microphone, MIC) connected to the HiFi module located at the hardware layer.
[0157] The call application refers to an interface related to displaying calls, which can display information such as the device receiving the call. In the embodiment of the present application, the call application can also be InCallUI.
[0158] The call manager can be used to manage two-way calls concurrently. The main scenario is the call processing process of new incoming calls or new outgoing calls during a call. The call manager can also be called Telecom call management. The call manager is used to provide communication functions. For example, the management of call status (including connected, hung up, etc.).
[0159] The communication framework is used to report the call status to the call manager and send the call management control signaling to the rild / modem. The communication framework can also be called the Telephony communication framework.
[0160] The audio framework is used for audio channel management, including dual-talk audio management, etc. The audio framework can also be called the Audio framework.
[0161] Audio-HAL converts the instructions sent by the audio framework into AT commands that the modem can recognize. For the convenience of description below, the Audio framework and Audio-HAL are combined into the audio framework.
[0162] The rild process is used to convert the instructions sent by the communication framework into attention (AT) commands that can be recognized by the modem.
[0163] The High-Fidelity (HiFi) module is used to process call audio and transmit the audio to other devices via Bluetooth / WiFi, or transmit the audio of other devices to the Modem.
[0164] The HiFi module includes a real-time transport protocol (RTP), a vocoder and a sound effect algorithm module. RTP is used to process data based on the real-time transport protocol; the vocoder is used to encode and encrypt audio data; the sound effect algorithm module is used to process audio data for sound effects. For example, the sound effect algorithm includes frequency filters, sound image localization, reverberation, noise elimination, etc.
[0165] The modem can be a physical hardware on an electronic device, or a modem functional module instantiated by the physical hardware. When a modem physical hardware instantiates multiple modem functional modules, the multiple modem functional modules share the modem physical hardware resources in a time-division multiplexing manner. Exemplarily, the modem physical hardware resources may include some or all of the modules in the mobile communication module 150 and the wireless communication module 160.
[0166] like Figure 3 As shown, the second terminal may include a call application at the application layer, a call manager and an audio framework at the application framework layer, an audio module at the HAL, and a HiFi module at the hardware layer and a speaker and a microphone connected to the HiFi module.
[0167] The following is an exemplary description of the audio stream direction of the two-way call of the first terminal in the scenario of two-way call. The following is an exemplary description of the scenario where the connection time of the first call is earlier than the connection time of the second call, that is, the first terminal is in the state of the first call and connects the second call.
[0168] Figure 3 In the figure, the solid arrow represents the audio stream of the first call. The modem of the first terminal can send the downlink audio of the first call to the HiFi module of the first terminal, which is processed by the HiFi module and played by the speaker of the first terminal; and the microphone of the first terminal can send the collected audio to the HiFi module of the first terminal, which processes the audio and sends the processed audio to the modem of the first terminal; the modem sends the processed audio as the uplink audio of the first call to the communication network, and sends it to the object of the first call via the communication network.
[0169] Figure 3In the figure, the virtual arrow represents the audio stream of the second call. The modem of the first terminal can send the downlink audio of the second call to the HiFi module of the first terminal, which is processed by the HiFi module and then sent to the audio module of the second terminal through short-distance communication (such as Bluetooth or WiFi); the audio module of the second terminal sends the downlink audio of the second call to the HiFi module of the second terminal, which is processed by the HiFi module and then played through the speaker of the second terminal. Also, the microphone of the second terminal can send the collected audio to the HiFi module of the second terminal, which is processed by the HiFi module and then sent to the audio module of the first terminal through short-distance communication (such as Bluetooth or WiFi) through the audio module of the second terminal, and the audio module sends the processed audio to the HiFi module of the first terminal for processing, and the HiFi module sends the processed audio to the modem of the first terminal; the modem sends the processed audio as the uplink audio of the second call to the communication network, and then sends it to the object of the second call through the communication network.
[0170] It should be noted that the command interaction of each module in the first terminal and the second terminal can be seen in Figure 8 The embodiments of the present invention will not be expanded here.
[0171] In the embodiment of the present application, the audio data sent by the terminal device (such as the first terminal) to the network side device (such as the base station) is called uplink audio, and the audio data sent by the network side device to the terminal device is called downlink audio. It should be noted that the uplink audio can also be called an uplink audio stream or uplink data, and the downlink audio can also be called a downlink audio stream or downlink data, which is not limited in the embodiment of the present application.
[0172] It should be noted that Figure 3 Only some software and hardware modules in the first terminal and the second terminal are exemplarily shown.
[0173] The above introduction to the software architecture of the first terminal and the second terminal is only an example. It is understandable that the software architecture illustrated in the embodiment of the present application does not constitute a specific limitation on the present application. In other embodiments of the present application, the software architecture of the first terminal and the second terminal may include: Figure 3 More or fewer modules, or combining some modules, or splitting some modules, or different architectural arrangements. Figure 3 The components shown in the retracted form may be implemented in hardware, software or a combination of software and hardware.
[0174] In some other embodiments of the present application, the first terminal and the second terminal may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture, etc. Among them, the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. For example, the system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the runtime (Runtime) and the system library, and the kernel layer. Among them, the application layer may include a series of application packages, for example, the application layer may also include a VoIP application that implements VoIP calls, such as Changlian; it may also be a chat software that implements network communication, etc.
[0175] based on Figure 1 The system architecture and Figure 2 and Figure 3 The following describes several possible application scenarios provided by the embodiments of the present application.
[0176] Figure 4A The schematic diagram of the dual-SIM dual-pass scenario is shown as an example. Figure 4A As shown, the scenario includes a first terminal and a second terminal, and the first terminal is installed with two SIM cards. Figure 4A The example shows that the two SIM cards are SIM cards of different operators, namely, the SIM card of operator 1 (referred to as SIM1 or card 1) and the SIM card of operator 2 (referred to as SIM2 or card 2). Then, the first terminal can access the network of operator 1 (referred to as operator network 1) based on SIM1 to achieve communication with other terminal devices, and access the network of operator 2 (referred to as operator network 2) based on SIM2 to achieve communication with other terminal devices.
[0177] Assuming that the user of the first terminal is the first user, the first user can use the first terminal to receive or make calls through SIM1. For the convenience of description, the call made through SIM1 is referred to as SIM1 call in this embodiment of the application. When the first terminal is in the SIM1 call process, if the first terminal receives an incoming call signal from the operator network 2, the incoming call signal can be sent to the second terminal; the first user can answer or hang up the incoming call signal at the second terminal. Figure 4A The example shows that the first user answers the incoming call signal through the second terminal, and the first terminal can realize the second call through the second terminal, that is, the call made through SIM2 ( Figure 4A SIM2 call in the system).
[0178] It should be noted that Figure 4A This is only an example of a dual-SIM dual-channel scenario. In the dual-SIM dual-channel scenario, the two SIM cards installed in the first terminal may also be SIM cards of the same operator, which is not limited in the embodiments of the present application.
[0179] Figure 4B The schematic diagram of a single-card dual-pass scenario is shown as an example. Figure 4B As shown, the scenario includes a first terminal and a second terminal, the first terminal is installed with a SIM card, Figure 4B The example shows that the SIM card is a SIM card of operator 1 (referred to as SIM1). Then, the first terminal can access the network of operator 1 (referred to as operator network 1) based on SIM1 to achieve communication with other terminal devices.
[0180] Assuming that the user of the first terminal is the first user, when the first terminal is in a call of SIM1 (referred to as the first call of SIM1), if the first terminal receives an incoming call signal from operator network 1, the incoming call signal can be sent to the second terminal; the first user can answer or hang up the incoming call signal at the second terminal. Figure 4B The example shows that the first user answers the incoming call signal through the second terminal, and the first terminal can realize the second call through the second terminal, that is, the second call through SIM1 ( Figure 4B The first call is referred to as SIM1 in the example).
[0181] Figure 4C The schematic diagram of the scenario of dual-connection of basic call and VoIP call is shown as an example. Figure 4C As shown, the scenario includes a first terminal and a second terminal, the first terminal is installed with a SIM card, Figure 4C The example shows that the SIM card is a SIM card of operator 1 (referred to as SIM1). Then, the first terminal can access the operator network based on SIM1 to achieve communication with other terminal devices. The operator network can also provide VoIP calls for the first terminal.
[0182] Assuming that the user of the first terminal is the first user, when the first terminal is in a call of SIM1 (referred to as SIM1 call), if the first terminal receives an incoming call signal from the VoIP call, the incoming call signal can be sent to the second terminal; the first user can answer or hang up the incoming call signal at the second terminal. Figure 4C The example shows that the first user answers the incoming call signal through the second terminal, and the first terminal can realize a second call, ie, a VoIP call, through the second terminal.
[0183] Based on the above scenario, some user interfaces on the first terminal and the second terminal provided in the embodiments of the present application are introduced below. Figure 5A-5E , Figure 6A-6B as well as Figure 7A-7C Some user interfaces implemented on the first terminal and the second terminal in the above three scenarios are exemplarily shown.
[0184] It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this. It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this.
[0185] (I) Dual-SIM dual-pass scenario
[0186] Figure 5A-5E An exemplary embodiment of a dual-card dual-pass process of a first terminal and a second terminal (eg Figure 4A The user interface in the scenario shown in FIG. Figure 5A , Figure 5B and Figure 5E is a user interface implemented on the first terminal, Figure 5C and Figure 5D It is a user interface implemented on the second terminal.
[0187] Assuming that the first user is talking to Bob using the first terminal based on card 1 (this call can be called the first call), the electronic device can display the following information: Figure 5A The user interface 51 is shown. Card 1 is a SIM card installed in the first terminal. The first call can be initiated by the first terminal or by Bob using his terminal device, which is not limited in the embodiment of the present application.
[0188] The user interface 51 displays: a status bar 510, call object information 511, a related control area 512, a dial key 513, a hang-up control 514, and a speaker control 515. The status bar 510 may include: a time indicator 510A, one or more signal strength indicators 510B of a Wi-Fi signal, one or more signal strength indicators 510C and 510D of a mobile communication signal (also referred to as a cellular signal), a battery status indicator 510E, and may also include an operator name (e.g., "China Mobile"), etc., which is not shown.
[0189] The call object information 511 may include a call object name 511A, a call object address 511B, and a SIM card identifier 511C, wherein the SIM card identifier 511C is used to indicate information about the SIM card used for the first call. Figure 5AThe example shows that the call object name 511A is Bob, and Bob can be the name note of the number on the first terminal; the example shows that the address 511B of the call object is Shenzhen, Guangdong, and the SIM card identifier 511C is card 1.
[0190] It should be noted that the above-mentioned call object information 511 may also include the operator to which the SIM card of the call object belongs; the above-mentioned SIM card identification 511C may also be the icon of card 1 and the operator name of card 1. The embodiment of the present application does not limit the form of the SIM card identification in the user interface. For the convenience of description, the text "Card 1" or "Card 2" is used for illustrative purposes below.
[0191] The related control area 512 exemplarily shows a video call control, a mute control, and a contact control. The related control area 512 may also include a recording control, etc., which is not shown. The embodiment of the present application does not limit this. The dial key 513 is used to display the dial keyboard; the hang-up control 514 is used to hang up the current call, and the speaker control 515 is used to switch the microphone or speaker to play the downlink audio.
[0192] Assume that the first terminal receives a call request from Jane for card 2 when the first terminal is in a call with Bob based on card 1. The first terminal may display the following information: Figure 5B The user interface 52 shown in FIG. 1 and the second terminal is controlled to display the Figure 5C The user interface 53 shown. Wherein, card 2 is another SIM card installed in the first terminal except card 1, and the second terminal is a device that establishes a communication connection with the first terminal.
[0193] The user interface 52 displayed by the first terminal may include first call information 520 , second incoming call information 521 , a SIM card identifier 522 corresponding to the second call, a text message control 523 , a reminder control 524 , a hang-up control 525 , and an answer control 526 .
[0194] The first call information 520 may include a SIM card identifier 520A corresponding to the first call, a call object name 520B of the first call, a call duration 520C of the first call, a hang-up control 520D, and an expansion control 520E. The hang-up control 520D is used to hang up the first call, and the expansion control 520E is used to expand or collapse the first call information 520. For example, when the current first call information 520 is in an expanded state and the second incoming call information 521 is in a collapsed state, the SIM card identifier 521A, the call object name 521B, the call duration 521C, etc. may be invisible. Figure 5B The example shows that the call duration 520C of the first call is 01:06. It should be understood that the call duration 520C of the first call changes with time.
[0195] The second incoming call information 521 may include a call recipient name 521A, a call recipient address 521B, and a SIM card identifier 521C. Figure 5A The example shows that the call object name 521A is "Jane", and Jane can be the name note of the number on the first terminal; the example shows that the call object's address 521B is "Shenzhen, Guangdong", and the SIM card identifier 521C is "Card 2".
[0196] It should be noted that the second incoming call information 521 may also include the operator of the caller's SIM card; the SIM card identifier 521C may also be the icon of card 2 and the operator name of card 2, which is not limited in this embodiment of the present application. Figure 5B The example shows that the SIM card identifier 522 corresponding to the second call is Card 2. The SIM card identifier 522 may also be an icon of Card 2 and the operator name of Card 2, which is not limited in this embodiment of the present application.
[0197] Among them, the SMS control 523 is used to send a text message to the caller of the second call; the reminder control 524 is used to create a call back reminder; the hang-up control 525 is used to reject the incoming call of the second call; and the answer control 526 is used to answer the incoming call of the second call.
[0198] Assume that the first terminal receives a call request from Jane for card 2 when the first terminal is in a call with Bob based on card 1. The first terminal can send the call request to the second terminal and display the following information: Figure 5B The user interface 52 shown; further, the second terminal responds to the call request, and can synchronously display the following Figure 5C User interface 53 is shown.
[0199] The user interface 53 displayed by the second terminal may include the name 531A of the call object, the location 531B of the call object, a hang-up control 532 and an answer control 533. The hang-up control 532 is used to reject the call; the answer control 533 is used to connect the call. Figure 5B The example shows that the name 531A of the call object is "Jane" and the location 531B of the call object is "Shenzhen, Guangdong." The location 531B of the call object may be the location of the SIM card of the call object of the second call.
[0200] In some other embodiments of the present application, assuming that the user clicks the hang-up control 532, the second terminal may send a rejection command to the first terminal, and the first terminal, in response to the rejection command, refuses to establish the second call; the first terminal may display a prompt message, for example, the prompt message may be "The watch has rejected the call from Jane."
[0201] like Figure 5C As shown, when the second terminal detects the user operation on the answering control 533, it can respond to the user operation and display the following Figure 5D The user interface 54 shown in FIG. 5 includes the name of the caller 541A, the call time 541B, a mute control 542, a hang-up control 543, and a speaker control 544. The mute control 542 is used to turn off the microphone; the hang-up control 543 is used to end the current call; and the speaker control 544 is used to switch between the microphone and the speaker to play the downlink audio.
[0202] like Figure 5C As shown, when the second terminal detects a user operation on the answer control 533, it can also respond to the user operation and send an answer command to the first terminal. Correspondingly, the first terminal responds to the answer command and displays the following Figure 5E User interface 55 is shown.
[0203] The user interface 55 may include first call information 550, second call information 551, related control area 552, dial key 553, hang up control 554 and speaker control 555. The first call information 550 may refer to the related introduction of the first call information 520, and the related control area 552 may refer to the related introduction of the related control area 512.
[0204] The second call information 551 may include a SIM card identifier 551A corresponding to the second call, a call object name 551B of the second call, answering device information 551C, a hang-up control 551D, and an expansion control 551E. The hang-up control 551D is used to hang up the second call, and the expansion control 551E is used to expand or collapse the second call information 551. For example, the current second call information 551 is in an expanded state. When the second call information 551 is in a collapsed state, the SIM card identifier 551A and the call object name 551B of the second call may be invisible. Figure 5B The example shows that the SIM card identifier 551A corresponding to the second call is "Card 1", and the caller name 551B of the second call is "Jane"; the answering device information 551C is "Watch answering", and it should be understood that if the answering device is other devices, the answering device information 551C can be displayed as other information, such as "smart glasses answering".
[0205] The dial key 553 is used to display the dial keyboard; the hang-up control 554 is used to hang up the first call, and the speaker control 555 is used to switch the microphone or the loudspeaker to play the downlink audio of the first call.
[0206] (II) Single-SIM dual-pass scenario
[0207] Next, through Figure 5A , Figure 5C , Figure 5D as well as Fig. 6A , Figure 6B Introduce the single card dual pass process of the first terminal and the second terminal (such as Figure 4B The user interface in the scenario shown in FIG. Figure 5A , Fig. 6A , Figure 6B is a user interface implemented on the first terminal, Figure 5C and Figure 5D It is a user interface implemented on the second terminal.
[0208] Assuming that the first user is talking to Bob using the first terminal based on card 1, the electronic device may display the following information: Figure 5A Further, when the first terminal receives a call request for a basic call from Jane, the first terminal may display the following Fig. 6A The user interface 61 shown in FIG. 61 and sends the call request to the second terminal; further, the second terminal may respond to the call request by displaying Figure 5C User interface 53 is shown.
[0209] The user interface 61 displays first call information 610, second incoming call information 612, a SIM card identifier 611 corresponding to the second call, a text message control 613, a reminder control 614, a hang-up control 615, and an answer control 616. The second incoming call information 612 may include a call object name 612A, a call object address 612B, and a SIM card identifier 612C. Figure 5A The example shows that the call object name 612A is "Jane", and Jane can be the name note of the number on the first terminal; the example shows that the call object's address 612B is "Shenzhen, Guangdong", and the SIM card identifier 612C is "Card 1".
[0210] The difference between user interface 61 and user interface 52 may be that: the SIM card identifier 611 corresponding to the second call in user interface 61 is "Card 1", while the SIM card identifier 522 corresponding to the second call in user interface 52 is "Card 2"; and, the SIM card identifier 612C in user interface 61 is "Card 1", while the SIM card identifier 521C in user interface 52 is "Card 2".
[0211] It should be understood that, in order to facilitate the introduction of the difference between the dual-SIM dual-talk scenario and the dual-SIM dual-talk scenario, the above embodiment is exemplified by the user interface in which the first user answers a call from user Jane through a different card while talking with Bob based on card 1. In the dual-SIM dual-talk scenario, user "Jane" calls the first user's card 2, and in the single-SIM dual-talk scenario, user "Jane" calls the first user's card 1.
[0212] like Figure 5C As shown, when the second terminal detects the user operation on the answering control 533, it can respond to the user operation and display the following Figure 5D The user interface 54 shown in FIG. 54 may also respond to the user operation by sending a call-answering command to the first terminal. Accordingly, the first terminal responds to the call-answering command by displaying a Figure 6B User interface 62 is shown.
[0213] Exemplarily, the difference between the user interface 62 and the user interface 55 is that the specific content of the second call information is different, the specific content of the second call information displayed by the user interface 55 is the second call information 551, and the specific content of the second call information displayed by the user interface 62 is the second call information 620. Specifically, the difference between the second call information 620 and the second call information 551 at least includes that the SIM card identifiers corresponding to the second call are different, the SIM card identifier 551A corresponding to the second call is "card 2", and the SIM card identifier 620A corresponding to the second call is "card 1".
[0214] (III) Basic call and VoIP call dual-channel scenario
[0215] Next, through Figure 5A , Figure 5D as well as Figure 7A-7C Describes the dual-communication scenarios of the first terminal and the second terminal in basic calls and VoIP calls (such as Figure 4C The user interface in the scenario shown in FIG. Figure 5A , Figure 7B , Figure 7C is a user interface implemented on the first terminal, Fig. 7A and Figure 5D It is a user interface implemented on the second terminal.
[0216] Assuming that the first user is talking to Bob using the first terminal based on card 1, the electronic device may display the following information: Figure 5A The user interface 51 shown in FIG. 5 is shown in FIG. 5. Further, the first terminal receives a VoIP call from Jane via a VoIP application (such as Changlian), and the first terminal may display the following information: Fig. 7AThe user interface 71 shown in FIG. 1 and the call request is sent to the second terminal; further, the second terminal may respond to the call request by displaying a Figure 7B User interface 72 is shown.
[0217] The user interface 71 displays a call mark 710, second incoming call information 711, a hang-up control 712, and an answer control 713. The second incoming call information 711 may include a call object avatar 711A, a call object name 711B, and an application call mark 711C. Figure 5A The example shows that the call object name 711B is "Jane" and the application call identifier 711C is "Changlian Voice". Jane can be the name of the call object in the Changlian application on the first terminal. The hang-up control 712 is used to reject the call; the answer control 713 is used to connect the call.
[0218] The user interface 72 displayed by the second terminal may include a name 721A of the call object, an application call identifier 721B, a hang-up control 722, and an answer control 723. The hang-up control 722 is used to reject the call; and the answer control 723 is used to connect the call. Figure 5B The example shows that the name 721A of the call object is "Jane" and the application call identifier 721B is "Changlian Voice".
[0219] like Figure 7B As shown, when the second terminal detects a user operation on the answering control 723, it can respond to the user operation and display the following Figure 5D User interface 54 is shown.
[0220] like Figure 7B As shown, when the second terminal detects a user operation on the answer control 723, it can also respond to the user operation and send an answer command to the first terminal. Correspondingly, the first terminal responds to the answer command and displays the following Figure 7C User interface 73 is shown.
[0221] The status bar of the user interface 73 includes a call indicator 730. For example, the call indicator 730 is "watch answering the call".
[0222] Exemplarily, the difference between the user interface 73 and the user interface 51 may include that the status bar of the user interface 73 is newly added with the call indicator 730 .
[0223] It should be understood that the above embodiment is illustratively described by taking the example of user "Jane" calling the first user's card 1 and card 2 and making a VoIP call to the first user through Changlian. In other embodiments of the present application, the users of the basic call and the VoIP call can be different users.
[0224] The following is based on Figure 1 The schematic diagram of the communication system shown in FIG. Figure 2 and Figure 3 The hardware and software structure diagram of the electronic device shown is combined with the above-mentioned scenarios and related interfaces to describe in detail the calling method provided in the embodiment of the present application.
[0225] Figure 8 The present invention exemplarily illustrates a call method process in a dual-SIM dual-communication scenario provided by an embodiment of the present application.
[0226] In the embodiment of the present application, the first terminal includes a first call application, a first communication framework, a first audio framework, a Modem and a HiFi module, and Figure 8 The first communication framework may include a microphone, a speaker, and a receiver, etc., which are not shown in the figure. Figure 3 The second terminal may include a second call application, a second communication framework, and a second audio framework, and Figure 8 Microphone, speaker, earpiece, etc. not shown.
[0227] It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this. It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this.
[0228] The calling method may include some or all of the following steps:
[0229] S101: A first call application of a first terminal receives a user operation instructing to call a second user through card 1.
[0230] The user operation may be one or more user operations.
[0231] For example, the first user can click on the application icon of the first call application on the first terminal. Accordingly, the first terminal can display the contact interface of the first call application in response to the user operation, and the contact interface includes the user name of the second user; further, the first terminal can display a pop-up window in response to the user operation acting on the user name of the above-mentioned second user, and the pop-up window includes the call control corresponding to card 1 and the call control corresponding to card 2; further, the first terminal can receive the call control corresponding to card 1, and execute the following step S102 in response to the user operation.
[0232] For another example, the first terminal can display a dialing interface, which includes number keys from 1 to 9 and a call control corresponding to card 1; then, the first terminal can display the mobile phone number of the second user in response to the user operation of entering the mobile phone number of the second user; then, the user can click on the call control, and accordingly, the first call application of the first terminal receives the user operation instructing to call the second user through card 1.
[0233] It should be noted that the embodiment of the present application is described by taking the first user using the first terminal to call the second user as an example, and the call between the first user and the second user is referred to as the first call. In other embodiments of the present application, the first call may also be the second user calling the first user, and the first user answering the call through the first terminal, and the present application does not limit this.
[0234] S102: The first call application sends a dial command to the first communication framework, where the dial command carries the mobile phone number of the second user.
[0235] In some embodiments, the first call application of the first terminal sends a dial command to the first communication framework in response to a user operation indicating to call the second user through card 1, and the dial command carries the mobile phone number of the second user.
[0236] Optionally, the dial command may also include information such as the identification of the card 1.
[0237] In one implementation, the first call application can also respond to a user operation indicating to call the second user through card 1 and display a calling interface, which includes user information of the calling party (i.e., the second user), such as the second user's mobile phone number or the second user's name.
[0238] S103: The first communication framework sends a dial command to the Modem.
[0239] In some embodiments, the rild process may convert the dial command issued by the first communication framework into an AT command recognizable by the modem and send it to the modem.
[0240] S104: The modem sends a first call request to the base station based on card 1.
[0241] The first call request is obtained based on the dial command, and the first call request may include the mobile phone number of the second user and information of the first terminal, such as the mobile phone number of the first user.
[0242] S105: When receiving the response message from the base station, the modem reports to the first communication framework that the first call is in an active state.
[0243] The above-mentioned response message may be a response message sent by the base station to the first terminal after receiving the first call request, and the response message is used to indicate that the base station has received the first call request.
[0244] S106: The first communication framework requests the first call application to display a first call interface.
[0245] Furthermore, when the first communication framework determines that the first call is in an active state, the first communication framework requests the first call application to display the first call interface.
[0246] S107: The first call application displays a first call interface, which includes user information of the second user.
[0247] Among them, the first call interface can be an interface in the first call; the user information of the second user can be the mobile phone number of the second user or the user name of the second user, etc.
[0248] For example, the first call interface can be found in Figure 5A 1 and 10. The user information of the second user may be shown in the call object information 511. The call object information 511 may include the call object name 511A, the call object address 511B and the SIM card identifier 511C, wherein the SIM card identifier 511C is used to indicate the information of the SIM card used for the first call. Figure 5A The example shows that the call object name 511A is Bob, and Bob can be the name note of the number on the first terminal; the example shows that the address 511B of the call object is Shenzhen, Guangdong, and the SIM card identifier 511C is card 1.
[0249] S108: When determining that the first call is active, the first communication framework requests the first audio framework to set the audio mode to the call mode.
[0250] For example, when the audio mode is call mode, the volume control key is used to control the playback volume of the call; when a call comes in again in call mode, the device can vibrate and emit a beep sound instead of the default ringtone to avoid the ringtone interfering with the ongoing call; when music is played during a call, the audio channel of the music can be consistent with the audio channel of the call, rather than the default external speaker to avoid the music interfering with the ongoing call.
[0251] S109: The first audio framework requests the HiFi module to play the audio of the first call through the receiver or speaker of the first terminal.
[0252] In some embodiments, the first audio framework requests the HiFi module to play the audio of the first call through the earpiece of the first terminal by default; when the user requests to play the audio of the first call through the speaker, the first audio framework can request the HiFi module to play the audio of the first call through the speaker of the first terminal.
[0253] It should be noted that S108 and S109 may be performed simultaneously or successively, and this is not limited in the embodiment of the present application.
[0254] S201: When the modem receives a second call request for card 2, it sends the second call request to the first communication framework, where the second call request includes user information of a third user.
[0255] The user information of the third user may include the mobile phone number of the third user and the SIM card information used by the third user, and the SIM card information may include the operator information of the SIM card.
[0256] S202: After receiving the second call request, the first communication framework sends user information of the third user to the first call application.
[0257] In one implementation, after receiving the second call request, the first communication framework may parse the second call request to obtain the user information of the third user, and then send the user information of the third user to the first call application. The user information of the third user may include the mobile phone number of the third user and the SIM card information used by the third user, and the SIM card information may include the operator information and location information of the SIM card.
[0258] Optionally, the first communication framework may also send the location of the third user's SIM card and the SIM card information of the third user making the call to the first call application.
[0259] S203: The first call application displays a first incoming call interface, where the first incoming call interface includes user information of the third user.
[0260] The first incoming call interface is used to display the call request of the third user. Figure 5B As shown in the user interface 52, the user information of the third user may be shown as the second incoming call information 521. Figure 5A The example shows that the name of the third user is "Jane", and Jane can be the name annotation of the second user on the first terminal; the example shows that the location of the SIM card of the third user is "Shenzhen, Guangdong", and the identification of the SIM card dialed by the third user is "Card 2".
[0261] In some other embodiments of the present application, when the third user has a contact name in the contacts of the first call application, the first incoming call interface can display the contact name of the third user, and the contact name can be obtained based on the user information of the third user. For example, the user information of the third user can be the mobile phone number of the third user, and the first call application can search for the contact name corresponding to the mobile phone number in the contact information based on the mobile phone number of the third user, and display the contact name on the first incoming call interface.
[0262] S204: After receiving the second call request, the first communication framework sends the second call request to the second terminal via Bluetooth.
[0263] In one implementation, when receiving the second call request, the first communication framework queries whether there are other calls in an active state; when it is found that the first call is active, the second call request is sent to the second terminal via Bluetooth.
[0264] The second terminal may be all electronic devices with which the first terminal establishes short-range communication, or may be an electronic device determined by the first terminal from electronic devices with which the first terminal establishes short-range communication. For example, the first terminal establishes communication connections with multiple electronic devices, and the first terminal may use the electronic device closest to it as the second terminal.
[0265] It should be noted that Figure 8 Exemplarily, the first terminal and the second terminal communicate via Bluetooth transmission as an example. In other embodiments of the present application, the first terminal and the second terminal may communicate via other short-range communication methods, such as WiFi connection.
[0266] S205: After receiving the second call request, the second communication framework of the second terminal sends the user information of the third user to the second call application.
[0267] S206: The second call application displays a second incoming call interface, where the second incoming call interface includes user information of the third user.
[0268] Exemplarily, the second incoming call interface may be shown as user interface 53, and the user information of the third user may be such as the name of the call object 531A and the location of the call object 531B.
[0269] S207: The second call application receives a user operation instructing to answer the call.
[0270] In some embodiments, upon receiving a user operation indicating an answer, the second calling device executes the following steps S208 and S209.
[0271] For example, the second incoming call interface is shown in the user interface 53, and the user operation indicating the answering of the call may be to touch Figure 5C User operation of the answer control 533 in .
[0272] S208: The second call application sends an answer command to the second communication framework in response to the user operation instructing to answer the call, where the answer command is used to instruct to answer the second call request.
[0273] S209: The second communication framework sends a listening command to the first terminal via Bluetooth.
[0274] S210: After receiving the answering command, the first communication framework sends an answering command to the Modem.
[0275] In some embodiments, the rild process may convert the answer command sent by the first communication framework into an AT command recognizable by the modem and send it to the modem.
[0276] S211: The modem sends a connection request to the base station based on card 2.
[0277] The connection request is obtained by answering the command, and the connection request is used to request to establish a second call connection.
[0278] S212: When the modem receives the response message from the base station, it reports to the first communication framework that the second call is in an active state.
[0279] S213: The first communication framework requests the first call application to display the second call interface.
[0280] In some embodiments, when the first communication framework determines that the second call is active, it requests the first call application to display a second call interface, where the second call interface includes call information of the second call. The call information of the second call may include user information of a third user and duration of the second call, etc.
[0281] S214: The first call application displays a second call interface, which includes user information of the second user and user information of the third user.
[0282] Optionally, the second call interface may include information about the first call and information about the second call. Figure 5E As shown in the user interface 55 shown, the user interface 55 includes first call information 550 and second call information 551. The user information of the second user can be the contact name "Bob" in the first call information 550 and the call object name 551B (i.e. "Jane") of the second call in the second call information 551.
[0283] S215: The first communication framework sends the device identification of the second terminal to the first audio framework.
[0284] The device identifier of the second terminal may be a MAC address of the second terminal.
[0285] It should be understood that the device identification may be related to the communication mode between the first terminal and the second terminal. For example, when the first terminal communicates with the second terminal via a WiFi connection, the device identification of the second terminal may be the IP address of the second terminal.
[0286] S216: The first audio framework requests the HiFi module to play the downlink audio of the second call through the second terminal.
[0287] S217: The HiFi module sends the downlink audio of the second call to the second terminal via Bluetooth.
[0288] In some embodiments, upon receiving a request from the first audio framework to play the audio of the second call through the second terminal, the HiFi module sends the downlink audio of the second call to the second terminal.
[0289] The downlink audio of the second call may be the audio data obtained after the downlink audio received by the Modem from the base station is processed by the HiFi module. The processing process of the downlink audio by the HiFi module can be referred to in Fig. 9 The relevant description is not expanded here.
[0290] S218: When receiving the downlink audio of the second call, the second audio framework plays the downlink audio of the second call through the speaker of the second terminal.
[0291] S219: The second audio framework obtains the uplink audio of the second call through the microphone of the second terminal.
[0292] In some embodiments, when the second call device receives a user operation instructing to answer the call, it collects audio through the microphone of the second terminal to obtain the uplink audio of the second call.
[0293] S220: The second audio framework sends the uplink audio of the second call to the first terminal via Bluetooth.
[0294] S221: When receiving the uplink audio of the second call, the first audio framework of the first terminal sends the uplink audio to the HiFi module.
[0295] S222: The HiFi module sends the uplink audio of the second call to the Modem.
[0296] In some embodiments, the HiFi module may process the uplink audio and send the processed data to a modem, which then sends the data to a base station, so that the base station sends the data to a third terminal corresponding to the second call.
[0297] The following Fig. 9 The processing of the audio data of two-way calls by the HiFi module is introduced as an example.
[0298] The HiFi module includes RTP2, RTP1, vocoder 2, vocoder 1, and sound effect algorithm module.
[0299] S1: The microphone of the first terminal sends the uplink audio of the first call to the sound effect algorithm module, where the uplink audio is collected by the microphone.
[0300] It should be noted that a microphone can also be called a codec.
[0301] S2: The sound effect algorithm module performs sound effect processing on the uplink audio.
[0302] The embodiment of the present application does not limit the sound effect algorithm adopted by the sound effect algorithm module.
[0303] S3: The sound effect algorithm module sends the data obtained by sound effect processing to the vocoder 1.
[0304] S4: Vocoder 1 encodes the data obtained by the sound effect processing to obtain first encoded data.
[0305] S5: Vocoder 1 sends the first encoded data to RTP1.
[0306] S6: RTP1 packages the first encoded data to obtain a first uplink audio.
[0307] S7: RTP1 sends the first upstream audio to the Modem.
[0308] S8: The modem sends the downlink audio of the first call to RTP1.
[0309] S9: RTP1 decompresses the downlink audio of the first call to obtain first data.
[0310] S10: RTP1 sends first data to vocoder 1.
[0311] S11: Vocoder 1 decodes the first data.
[0312] S12: Vocoder 1 sends the decoded first data to the sound effect algorithm module.
[0313] S13: The sound effect algorithm module performs sound effect processing on the decoded first data.
[0314] S14: The sound effect algorithm module sends the first data after the sound effect processing, and the data is played by the microphone of the first terminal.
[0315] The above steps S1 to S14 are a flow chart of a HiFi module processing audio data of a first call provided by an exemplary embodiment of the present application.
[0316] S15: The first audio framework sends the uplink audio of the second call to the vocoder 2, where the uplink audio is sent by the second terminal.
[0317] The vocoder 1 and the vocoder 2 may be two modules, and the types of the two vocoders may be different.
[0318] The uplink audio of the second call may be audio that has been processed by sound effects on the audio collected by the second terminal.
[0319] S16: Vocoder 2 encodes the uplink audio of the second call to obtain second encoded data.
[0320] RTP1 and RTP2 may be two modules, and the processing flow of the two data paths may be the same.
[0321] S17: Vocoder 2 sends the second encoded data to RTP2.
[0322] S18: RTP2 packages the second encoded data to obtain a second uplink audio.
[0323] S19: RTP2 sends the second upstream audio to the Modem.
[0324] S20: Send the downlink audio of the second call.
[0325] S21: The modem decompresses the downlink audio of the second call to RTP2 to obtain second data.
[0326] S22: RTP2 sends second data to vocoder 2.
[0327] S23: Vocoder 2 decodes the second data to obtain decoded second data.
[0328] S24: Vocoder 2 sends the decoded second data to the first audio framework, and the decoded second data is used to be sent to the second terminal.
[0329] Fig.10 The flow of a calling method in a single-card dual-communication scenario provided by an embodiment of the present application is exemplified.
[0330] In the embodiment of the present application, the first terminal includes a first call application, a first communication framework, a first audio framework, a Modem and a HiFi module, and Fig.10 The first communication framework may include a microphone, a speaker, and a receiver, etc., which are not shown in the figure. Fig.10 The second terminal may include a second call application, a second communication framework, and a second audio framework, and Fig.10 Microphone, speaker, earpiece, etc. not shown.
[0331] It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this. It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this.
[0332] The calling method may include some or all of the following steps:
[0333] S301: A first call application of a first terminal receives a user operation instructing to call a second user through card 1.
[0334] The user operation may be one or more user operations.
[0335] For example, the first user can click on the application icon of the first call application on the first terminal. Accordingly, the first terminal can display the contact interface of the first call application in response to the user operation, and the contact interface includes the user name of the second user; further, the first terminal can display a pop-up window in response to the user operation acting on the user name of the above-mentioned second user, and the pop-up window includes the call control corresponding to card 1 and the call control corresponding to card 2; further, the first terminal can receive the call control corresponding to card 1, and in response to the user operation, execute the following step S302.
[0336] For another example, the first terminal can display a dialing interface, which includes number keys from 1 to 9 and a call control corresponding to card 1; then, the first terminal can display the mobile phone number of the second user in response to the user operation of entering the mobile phone number of the second user; then, the user can click on the call control, and accordingly, the first call application of the first terminal receives the user operation instructing to call the second user through card 1.
[0337] It should be noted that the embodiment of the present application is described by taking the first user using the first terminal to call the second user as an example, and the call between the first user and the second user is referred to as the first call. In other embodiments of the present application, the first call may also be the second user calling the first user, and the first user answering the call through the first terminal, and the present application does not limit this.
[0338] S302: The first call application sends a dial command to the first communication framework, where the dial command carries the mobile phone number of the second user.
[0339] In some embodiments, the first call application of the first terminal sends a dial command to the first communication framework in response to a user operation indicating to call the second user through card 1, and the dial command carries the mobile phone number of the second user.
[0340] Optionally, the dial command may also include information such as the identification of the card 1.
[0341] In one implementation, the first call application can also respond to a user operation indicating to call the second user through card 1 and display a calling interface, which includes user information of the calling party (i.e., the second user), such as the second user's mobile phone number or the second user's name.
[0342] S303: The first communication framework sends a dial command to the Modem.
[0343] In some embodiments, the rild process may convert the dial command issued by the first communication framework into an AT command recognizable by the modem and send it to the modem.
[0344] S304: The modem sends a first call request to the base station based on card 1.
[0345] The first call request is obtained based on the dial command, and the first call request may include the mobile phone number of the second user and information of the first terminal, such as the mobile phone number of the first user.
[0346] S305: When receiving the response message from the base station, the modem reports to the first communication framework that the first call is in an active state.
[0347] The above-mentioned response message may be a response message sent by the base station to the first terminal after receiving the first call request, and the response message is used to indicate that the base station has received the first call request.
[0348] S306: The first communication framework requests the first call application to display a first call interface.
[0349] Furthermore, when the first communication framework determines that the first call is in an active state, the first communication framework requests the first call application to display the first call interface.
[0350] S307: The first call application displays a first call interface, which includes user information of the second user.
[0351] The first call interface may be an interface during a first call.
[0352] For example, the first call interface can be found in Figure 5A A related description of the user interface 51 is shown.
[0353] S308: When determining that the first call is active, the first communication framework requests the first audio framework to set the audio mode to the call mode.
[0354] For example, when the audio mode is call mode, the volume control key is used to control the playback volume of the call; when a call comes in again in call mode, the device can vibrate and emit a beep sound instead of the default ringtone to avoid the ringtone interfering with the ongoing call; when music is played during a call, the audio channel of the music can be consistent with the audio channel of the call, rather than the default external speaker to avoid the music interfering with the ongoing call.
[0355] S309: The first audio framework requests the HiFi module to play the audio of the first call through the receiver or speaker of the first terminal.
[0356] In some embodiments, the first audio framework requests the HiFi module to play the audio of the first call through the earpiece of the first terminal by default; when the user requests to play the audio of the first call through the speaker, the first audio framework can request the HiFi module to play the audio of the first call through the speaker of the first terminal.
[0357] It should be noted that S308 and S309 may be performed simultaneously or successively, and this embodiment of the present application does not limit this.
[0358] S401: When the modem receives a second call request for card 1, it sends the second call request to the first communication framework, where the second call request includes user information of a third user.
[0359] The user information of the third user may include the mobile phone number of the third user and the SIM card information used by the third user, and the SIM card information may include the operator information of the SIM card.
[0360] S402: After receiving the second call request, the first communication framework sends user information of the third user to the first call application.
[0361] In one implementation, after receiving the second call request, the first communication framework may parse the second call request to obtain the user information of the third user, and then send the user information of the third user to the first call application. The user information of the third user may include the mobile phone number of the third user and the SIM card information used by the third user, and the SIM card information may include the operator information and location information of the SIM card.
[0362] Optionally, the first communication framework may also send the location of the third user's SIM card and the SIM card information of the third user making the call to the first call application.
[0363] S403: The first call application displays a first incoming call interface, where the first incoming call interface includes user information of the third user.
[0364] The first incoming call interface is used to display the call request of the third user. Figure 5B As shown in the user interface 52, the user information of the third user may be shown as the second incoming call information 521. Figure 5A The example shows that the name of the third user is "Jane", and Jane can be the name annotation of the second user on the first terminal; the example shows that the location of the SIM card of the third user is "Shenzhen, Guangdong", and the identification of the SIM card dialed by the third user is "Card 2".
[0365] In some other embodiments of the present application, when the third user has a contact name in the contacts of the first call application, the first incoming call interface can display the contact name of the third user, and the contact name can be obtained based on the user information of the third user. For example, the user information of the third user can be the mobile phone number of the third user, and the first call application can search for the contact name corresponding to the mobile phone number in the contact information based on the mobile phone number of the third user, and display the contact name on the first incoming call interface.
[0366] S404: After receiving the second call request, the first communication framework sends the second call request to the second terminal via Bluetooth.
[0367] In one implementation, when receiving the second call request, the first communication framework queries whether there are other calls in an active state; when it is found that the first call is active, the second call request is sent to the second terminal via Bluetooth.
[0368] The second terminal may be all electronic devices with which the first terminal establishes short-range communication, or may be an electronic device determined by the first terminal from electronic devices with which the first terminal establishes short-range communication. For example, the first terminal establishes communication connections with multiple electronic devices, and the first terminal may use the electronic device closest to it as the second terminal.
[0369] It should be noted that Fig.10 Exemplarily, the first terminal and the second terminal communicate via Bluetooth transmission as an example. In other embodiments of the present application, the first terminal and the second terminal may communicate via other short-range communication methods, such as WiFi connection.
[0370] S405: After receiving the second call request, the second communication framework of the second terminal sends the user information of the third user to the second call application.
[0371] S406: The second call application displays a second incoming call interface, where the second incoming call interface includes user information of the third user.
[0372] Exemplarily, the second incoming call interface may be shown as user interface 53, and the user information of the third user may be such as the name of the call object 531A and the location of the call object 531B.
[0373] S407: The second call application receives a user operation instructing to answer the call.
[0374] In some embodiments, upon receiving a user operation indicating an answer, the second calling device executes the following steps S408 and S39.
[0375] For example, the second incoming call interface is shown in the user interface 53, and the user operation indicating the answering of the call may be to touch Figure 5C User operation of the answer control 533 in .
[0376] S408: The second call application sends an answering command to the second communication framework in response to the user operation instructing to answer the call, where the answering command is used to instruct to answer the second call request.
[0377] S409: The second communication framework sends a listening command to the first terminal via Bluetooth.
[0378] S410: After receiving the answering command, the first communication framework sends an answering command to the Modem.
[0379] In some embodiments, the rild process may convert the answer command sent by the first communication framework into an AT command recognizable by the modem and send it to the modem.
[0380] S411: The modem sends a connection request to the base station based on card 1.
[0381] The connection request is obtained by answering the command, and the connection request is used to request to establish a second call connection.
[0382] S412: When the modem receives the response message from the base station, it reports to the first communication framework that the second call is in an active state.
[0383] S413: The first communication framework requests the first call application to display the second call interface.
[0384] In some embodiments, when the first communication framework determines that the second call is active, it requests the first call application to display a second call interface, where the second call interface includes call information of the second call. The call information of the second call may include user information of a third user and duration of the second call, etc.
[0385] S414: The first call application displays a second call interface, which includes user information of the second user and user information of the third user.
[0386] Optionally, the second call interface may include information about the first call and information about the second call. Figure 5E As shown in the user interface 55 shown, the user interface 55 includes first call information 550 and second call information 551. The user information of the second user can be the contact name "Bob" in the first call information 550 and the call object name 551B (i.e. "Jane") of the second call in the second call information 551.
[0387] S415: The first call application sends the device identifier of the second terminal to the first audio framework.
[0388] The device identifier of the second terminal may be a MAC address of the second terminal.
[0389] It should be understood that the device identification may be related to the communication mode between the first terminal and the second terminal. For example, when the first terminal communicates with the second terminal via a WiFi connection, the device identification of the second terminal may be the IP address of the second terminal.
[0390] S416: The first audio framework requests the HiFi module to play the downlink audio of the second call through the second terminal.
[0391] S417: The HiFi module sends the downlink audio of the second call to the second terminal via Bluetooth.
[0392] In some embodiments, upon receiving a request from the first audio framework to play the audio of the second call through the second terminal, the HiFi module sends the downlink audio of the second call to the second terminal.
[0393] The downlink audio of the second call may be audio data obtained after the downlink audio received by the Modem from the base station is processed by the HiFi module. The processing process of the downlink audio by the HiFi module can be referred to in Fig. 9 The relevant description is not expanded here.
[0394] S418: When receiving the downlink audio of the second call, the second audio framework plays the downlink audio of the second call through the speaker of the second terminal.
[0395] S419: The second audio framework obtains the uplink audio of the second call through the microphone of the second terminal.
[0396] In some embodiments, when the second call device receives a user operation instructing to answer the call, it collects audio through the microphone of the second terminal to obtain the uplink audio of the second call.
[0397] S420: The second audio framework sends the uplink audio of the second call to the first terminal via Bluetooth.
[0398] S421: When receiving the uplink audio of the second call, the first audio framework of the first terminal sends the uplink audio to the HiFi module.
[0399] S422: The HiFi module sends the uplink audio of the second call to the modem.
[0400] In some embodiments, the HiFi module may process the uplink audio and send the processed data to a modem, which then sends the data to a base station, so that the base station sends the data to a third terminal corresponding to the second call.
[0401] Fig.11 The present invention exemplarily illustrates a call method process in a dual-channel scenario of a basic call and a VoIP call provided in an embodiment of the present application.
[0402] In the embodiment of the present application, the first terminal includes a VoIP application, a first call application, a first communication framework, a first audio framework, a Modem and a HiFi module, and Fig.11 The first communication framework may include a microphone, a speaker, and a receiver, etc., which are not shown in the figure. Fig.11 The second terminal may include a second call application, a second communication framework, and a second audio framework, and Fig.11 Microphone, speaker, earpiece, etc. not shown.
[0403] It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this. It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this.
[0404] The calling method may include some or all of the following steps:
[0405] S501: A first call application of a first terminal receives a user operation instructing to call a second user through card 1.
[0406] The user operation may be one or more user operations.
[0407] For example, the first user can click on the application icon of the first call application on the first terminal. Accordingly, the first terminal can display the contact interface of the first call application in response to the user operation, and the contact interface includes the user name of the second user; further, the first terminal can respond to the user operation acting on the user name of the above-mentioned second user and display a pop-up window, which includes the call control corresponding to card 1 and the call control corresponding to card 2; further, the first terminal can receive the call control corresponding to card 1, and in response to the user operation, execute the following step S502.
[0408] For another example, the first terminal can display a dialing interface, which includes number keys from 1 to 9 and a call control corresponding to card 1; then, the first terminal can display the mobile phone number of the second user in response to the user operation of entering the mobile phone number of the second user; then, the user can click on the call control, and accordingly, the first call application of the first terminal receives the user operation instructing to call the second user through card 1.
[0409] It should be noted that the embodiment of the present application is described by taking the first user using the first terminal to call the second user as an example, and the call between the first user and the second user (when the call is established, the first terminal is not in other calls) is called a basic call. In other embodiments of the present application, the basic call may also be the second user calling the first user, and the first user answering the call through the first terminal, which is not limited in the present application.
[0410] S502: The first call application sends a dial command to the first communication framework, where the dial command carries the mobile phone number of the second user.
[0411] In some embodiments, the first call application of the first terminal sends a dial command to the first communication framework in response to a user operation indicating to call the second user through card 1, and the dial command carries the mobile phone number of the second user.
[0412] Optionally, the dial command may also include information such as the identification of the card 1.
[0413] In one implementation, the first call application can also respond to a user operation indicating to call the second user through card 1 and display a calling interface, which includes user information of the calling party (i.e., the second user), such as the second user's mobile phone number or the second user's name.
[0414] S503: The first communication framework sends a dial command to the Modem.
[0415] In some embodiments, after receiving the dial command, the first communication framework converts the dial command issued by the first communication framework into an AT command recognizable by the modem through the rild process, and then sends the AT command to the modem.
[0416] S504: The modem sends a first call request to the base station based on card 1.
[0417] The first call request is obtained based on the dial command, and the first call request may include the mobile phone number of the second user and the information of the first terminal, such as the mobile phone number of the first user and the identification of card 1.
[0418] S505: When the modem receives the response message from the base station, it reports to the first communication framework that the basic call is in an active state.
[0419] Exemplarily, the above-mentioned response message may be a response message sent by the base station to the first terminal after receiving the first call request, and the response message is used to indicate that the base station has received the first call request.
[0420] S506: The first communication framework requests the first call application to display a first call interface.
[0421] Furthermore, when the first communication framework determines that the basic call is in an active state, the first communication framework requests the first call application to display the first call interface.
[0422] S507: The first call application displays a first call interface, which includes user information of the second user.
[0423] Among them, the first call interface can be an interface in a basic call.
[0424] For example, the first call interface can be found in Figure 5AA related description of the user interface 51 is shown.
[0425] S508: When the first communication framework determines that the basic call is in an active state, the first communication framework requests the first audio framework to set the audio mode to the call mode.
[0426] For example, when the audio mode is call mode, the volume control key is used to control the playback volume of the call; when a call comes in again in call mode, the device can vibrate and emit a beep sound instead of the default ringtone to avoid the ringtone interfering with the ongoing call; when music is played during a call, the audio channel of the music can be consistent with the audio channel of the call, rather than the default external speaker to avoid the music interfering with the ongoing call.
[0427] S509: The first audio framework requests the HiFi module to play the audio of the basic call through the receiver or speaker of the first terminal.
[0428] In some embodiments, the first audio framework requests the HiFi module to play the audio of the basic call through the earpiece of the first terminal by default; when the user requests to play the audio of the basic call through the speaker, the first audio framework can request the HiFi module to play the audio of the basic call through the speaker of the first terminal.
[0429] It should be noted that S508 and S509 may be performed simultaneously or successively, and this embodiment of the present application does not limit this.
[0430] S601: When the modem receives a second call request for a VoIP application, it sends the second call request to the first communication framework, where the second call request includes user information of a third user.
[0431] The user information of the third user may include the mobile phone number of the third user.
[0432] The second call request may further include an application identifier of the VoIP application.
[0433] S602: After receiving the second call request, the first communication framework sends user information of the third user to the VoIP application.
[0434] In one implementation, after receiving the second call request, the first communication framework may parse the second call request to obtain user information of the third user, and then send the user information of the third user to the VoIP application. The user information of the third user may include the mobile phone number of the third user.
[0435] S603: The VoIP application displays a first incoming call interface, where the first incoming call interface includes user information of the third user.
[0436] The first incoming call interface is used to display the call request from the third user.
[0437] Exemplarily, the first incoming call interface may be as follows: Fig. 7A As shown in the user interface 71, the user information of the third user may be shown as the second incoming call information 711. Fig. 7A The example shows that the name of the third user is "Jane", and Jane can be the name annotation of the second user on the first terminal; the example shows that the VoIP application is Changlian Voice.
[0438] S604: After receiving the second call request, the first communication framework sends the second call request to the second terminal via Bluetooth.
[0439] In one implementation, when receiving the second call request, the first communication framework queries whether there are other calls in an active state; when it is found that the basic call is active, the second call request is sent to the second terminal via Bluetooth.
[0440] The second terminal may be all electronic devices with which the first terminal establishes short-range communication, or may be an electronic device determined by the first terminal from electronic devices with which the first terminal establishes short-range communication. For example, the first terminal establishes communication connections with multiple electronic devices, and the first terminal may use the electronic device closest to it as the second terminal.
[0441] It should be noted that Fig.11 Exemplarily, the first terminal and the second terminal communicate via Bluetooth transmission as an example. In other embodiments of the present application, the first terminal and the second terminal may communicate via other short-range communication methods, such as WiFi connection.
[0442] S605: After receiving the second call request, the second communication framework of the second terminal sends the user information of the third user to the second call application.
[0443] S606: The second call application displays a second incoming call interface, where the second incoming call interface includes user information of the third user.
[0444] Exemplarily, the second incoming call interface may be shown as user interface 72, and the user information of the third user may be the name of the call object 721A.
[0445] S607: The second call application receives a user operation instructing to answer the call.
[0446] In some embodiments, when the second calling device receives a user operation indicating answering the call, it executes the following steps S608 and S59.
[0447] For example, the second incoming call interface is shown in the user interface 72, and the user operation indicating the answering of the call may be to touch Figure 7B User operation of the answer control 723 in .
[0448] S608: The second call application sends an answer command to the second communication framework in response to the user operation instructing to answer the call, where the answer command is used to instruct to answer the second call request.
[0449] S609: The second communication framework sends a listening command to the first terminal via Bluetooth.
[0450] S610: After receiving the answering command, the first communication framework sends an answering command to the Modem.
[0451] In some embodiments, the rild process may convert the answer command sent by the first communication framework into an AT command recognizable by the modem and send it to the modem.
[0452] S611: The modem sends a connection request to the application server of the VoIP application.
[0453] The connection request is obtained by answering the command, and the connection request is used to request to establish a second call connection.
[0454] S612: When receiving the response message from the application server, the modem reports to the first communication framework that the VoIP call is in an active state.
[0455] S613: The first communication framework requests the VoIP application to display the second call interface.
[0456] In some embodiments, when the first communication framework determines that the VoIP call is active, it requests the VoIP application to display a second call interface, where the second call interface includes call information of the VoIP call. The call information of the VoIP call may include user information of the third user and the duration of the VoIP call, etc.
[0457] S614: The VoIP application displays a second call interface, which includes user information of the second user and user information of the third user.
[0458] Optionally, the second call interface may include basic call information and VoIP call information. Figure 5E As shown in the user interface 55 shown, the user interface 55 includes first call information 550 and second call information 551. The user information of the second user can be the contact name "Bob" in the first call information 550 and the call object name 551B (i.e. "Jane") of the second call in the second call information 551.
[0459] S615: The first communication framework sends the device identification of the second terminal to the first audio framework.
[0460] The device identifier of the second terminal may be a MAC address of the second terminal.
[0461] It should be understood that the device identification may be related to the communication mode between the first terminal and the second terminal. For example, when the first terminal communicates with the second terminal via a WiFi connection, the device identification of the second terminal may be the IP address of the second terminal.
[0462] S616: The first audio framework requests the HiFi module to play the downlink audio of the VoIP call through the second terminal.
[0463] S617: The HiFi module sends the downlink audio of the VoIP call to the second terminal via Bluetooth.
[0464] In some embodiments, when the HiFi module receives a request from the first audio framework to play the audio of the VoIP call through the second terminal, it sends the downlink audio of the VoIP call to the second terminal. Specifically, it can be sent through the first communication framework, which will not be elaborated here.
[0465] The downlink audio of the VoIP call can be the audio data obtained after the downlink audio received by the Modem from the base station is processed by the HiFi module. The processing process of the downlink audio by the HiFi module can be found in Fig. 9 The relevant description is not expanded here.
[0466] S618: When receiving the downlink audio of the VoIP call, the second audio framework plays the downlink audio of the VoIP call through the speaker of the second terminal.
[0467] S619: The second audio framework obtains the uplink audio of the VoIP call through the microphone of the second terminal.
[0468] In some embodiments, when the second calling device receives a user operation indicating an answer, it collects audio through the microphone of the second terminal to obtain the uplink audio of the VoIP call.
[0469] S620: The second audio framework sends the uplink audio of the VoIP call to the first terminal via Bluetooth.
[0470] S621: When receiving the uplink audio of the VoIP call, the first audio framework of the first terminal sends the uplink audio to the HiFi module.
[0471] S622: The HiFi module sends the uplink audio of the VoIP call to the Modem.
[0472] In some embodiments, the HiFi module may process the uplink audio and send the processed data to a modem, which then sends the data to a base station, so that the base station sends the data to a third terminal corresponding to the VoIP call.
[0473] Fig.12 A calling method process provided in an embodiment of the present application is exemplified.
[0474] It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this. It should be noted that, in the embodiments of the present application, the user operation can be a touch operation of the user (such as a click operation, a long press operation, a swipe up operation, a swipe down operation, or a side swipe operation), or a contactless operation (such as an air gesture), or a voice command of the user, and the embodiments of the present application do not impose specific restrictions on this.
[0475] The calling method may include some or all of the following steps:
[0476] S1201: When a first terminal is in a first call, a call request for establishing a second call is received.
[0477] Optionally, the first terminal is installed with a first subscriber identity module SIM card, and the first call and the second call are both realized through the first SIM card.
[0478] Optionally, the first terminal is installed with a first SIM card and a second SIM card, the first call is implemented through the first SIM card, and the second call is implemented through the second SIM card.
[0479] Optionally, the first call is a basic call, and the second call is a voice transmission VoIP call.
[0480] In some embodiments, before receiving a call request, the first terminal may display a first call interface, the first call interface including call information of the first call; the communication information of the first call includes user information of the first call; the first terminal responds to the call request of the second call by displaying an incoming call interface, the incoming call interface including the incoming call information of the second call.
[0481] For the specific implementation of the first terminal establishing the first call, please refer to the relevant descriptions in steps S101 to S109, steps S301 to S309, and steps S501 to S509 in the above embodiments; for the specific implementation of step S1201, please refer to the relevant descriptions in the above steps S201, S401 and S601, which will not be repeated here.
[0482] S1202: The first terminal sends a call request for the second call to the second terminal.
[0483] In some embodiments, the first terminal sends a call request to at least two third terminals, where the third terminals are devices that establish a communication connection with the first terminal; the second terminal is the first device among at least one third terminal device to send a call answering command to the first terminal.
[0484] The specific implementation of step S1202 can refer to the relevant descriptions of steps S202 to S204, steps S402 to S404, and steps S602 to S604, which will not be repeated here.
[0485] S1203: The second terminal displays an incoming call interface in response to the call request.
[0486] In some embodiments, the second terminal may display a first incoming call interface in response to a call request, wherein the first incoming call interface includes incoming call information and an answering control for the second call; the incoming call information for the second call is obtained based on the call request; and the second terminal may display a call interface in response to a user operation on the answering control, wherein the call interface includes call information for the second call.
[0487] The specific implementation of step S1203 can refer to the relevant descriptions of steps S205 to S206, steps S405 to S406, and steps S605 to S606, which will not be repeated here.
[0488] S1204: In response to the user operation indicating approval for establishing the second call, the second terminal sends a receiving command to the first terminal, where the receiving command is used to indicate approval for the call request.
[0489] In some embodiments, the second terminal may display a first incoming call interface in response to a call request, wherein the first incoming call interface includes incoming call information and an answering control for the second call; the incoming call information for the second call is obtained based on the call request; and the second terminal may display a call interface in response to a user operation on the answering control, wherein the call interface includes call information for the second call.
[0490] In one possible implementation, the second terminal can collect audio through a microphone to obtain first audio data in response to a user operation on an answering control; the second terminal sends the first audio data to the first terminal; then, the first terminal sends the uplink audio of the second call to a second communication network, and the second communication network is used to transmit the audio data of the second call, and the audio data of the second call includes the uplink audio of the second call.
[0491] For the specific operations of the second terminal after receiving the above-mentioned call request, please refer to the relevant descriptions in steps S207 to S208, steps S407 to S408, and steps S607 to S608 in the above-mentioned embodiments; the specific implementation of step S1204 can refer to the relevant descriptions of the above-mentioned steps S209, S409 and S609, which will not be repeated here.
[0492] S1205: The first terminal establishes a second call in response to the answering command.
[0493] In some embodiments, the first call is in a call state when the first terminal establishes the second call.
[0494] In some embodiments, after establishing the second call, the first terminal may display a second call interface, where the second call interface includes call information of the first call and a call identifier of the second call, where the call identifier of the second call includes a device identifier of the second terminal.
[0495] In a possible implementation, after establishing the second call, the first terminal may send the downlink audio of the second call to the second terminal; and the second terminal plays the downlink audio of the second call.
[0496] For the specific implementation of step S1205, please refer to the relevant descriptions in steps S210 to S211, steps S410 to S411, and steps S610 to S611 in the above embodiments; for the specific process of the first terminal and the second terminal cooperating to realize the second call being in a call state, please refer to the relevant descriptions in steps S212 to S222, steps S412 to S422, and steps S612 to S622 in the above embodiments, which will not be repeated here.
[0497] An embodiment of the present application also provides an electronic device, which includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in the above embodiment.
[0498] The embodiments of the present application also provide a computer program product including instructions. When the computer program product is executed on an electronic device, the electronic device executes the method described in the above embodiments.
[0499] An embodiment of the present application also provides a computer-readable storage medium, including instructions, which, when executed on an electronic device, enable the electronic device to execute the method described in the above embodiment.
[0500] It can be understood that the various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
[0501] 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 this 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 device. 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 to another 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. 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 includes 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 Solid State Disk), etc.
[0502] 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.
[0503] In short, the above is only an embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.
Claims
1. A method for making a call, characterized in that: The method comprises: When the first terminal is in a first call, a call request for establishing a second call is received; The first terminal sends the call request to the second terminal; The first terminal establishes the second call in response to a call answering command from the second terminal; the call answering command is used to indicate approval of the call request.
2. The method according to claim 1, characterized in that: When the first terminal establishes the second call, the first call is in a call state.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Before receiving the call request, the first terminal displays a first call interface, where the first call interface includes call information of the first call; the communication information of the first call includes user information of the first call; The first terminal displays an incoming call interface in response to the call request of the second call, wherein the incoming call interface includes incoming call information of the second call; After establishing the second call, the first terminal displays a second call interface, where the second call interface includes call information of the first call and a call identifier of the second call, where the call identifier of the second call includes a device identifier of the second terminal.
4. The method according to any one of claims 1 to 3, characterized in that: The first terminal is installed with a first subscriber identification module SIM card, and the first call and the second call are both realized through the first SIM card.
5. The method according to any one of claims 1 to 3, characterized in that: The first terminal is installed with the first SIM card and the second SIM card, the first call is implemented through the first SIM card, and the second call is implemented through the second SIM card.
6. The method according to any one of claims 1 to 3, characterized in that: The first call is a basic call, and the second call is a voice transmission VoIP call.
7. The method according to any one of claims 1 to 6, characterized in that: The first terminal sending the call request to the second terminal includes: The first terminal sends the call request to at least two third terminals, and the third terminals are devices that establish a communication connection with the first terminal; the second terminal is the first device among the at least one third terminal device to send the answer command to the first terminal.
8. The method according to any one of claims 1 to 7, characterized in that: The first terminal includes a first real-time transport protocol RTP module and a first vocoder; the method further includes: The first terminal encodes the audio collected by the first terminal through the first vocoder; The first terminal packages the data encoded by the first vocoder through the first RTP module to obtain the uplink audio of the first call; The first terminal sends the uplink audio of the first call to a first communication network, where the first communication network is used to transmit audio data of the first call, where the audio data of the first call includes the uplink audio of the first call.
9. The method according to claim 8, characterized in that The audio data of the first call also includes downlink audio of the first call, and the method further includes: The first terminal receives the downlink audio of the first call; The first terminal decompresses the downlink audio of the first call through the first RTP module; The first terminal decodes the data decompressed by the first RTP module through the first vocoder; The first terminal plays the audio decoded by the first vocoder.
10. The method according to any one of claims 1 to 9, characterized in that: The first terminal includes a second RTP module and a second vocoder; the method also includes: The first terminal receives first audio data sent by the second terminal; The first terminal encodes the first audio data by using the second vocoder; The first terminal packages the data encoded by the second vocoder through the second RTP module to obtain the uplink audio of the second call; The first terminal sends the uplink audio of the second call to a second communication network, where the second communication network is used to transmit audio data of the second call, where the audio data of the second call includes the uplink audio of the second call.
11. The method according to claim 10, characterized in that The audio data of the second call also includes downlink audio of the second call, and the method further includes: The first terminal receives the downlink audio of the second call; The first terminal decompresses the downlink audio of the second call through the second RTP module; The first terminal decodes the data decompressed by the second RTP module through the second vocoder to obtain second audio data; The first terminal sends the second audio data to the second terminal, and the second terminal is used to play the second audio data.
12. A method for making a call, characterized in that: The method comprises: The second terminal receives a call request sent by the first terminal; the call request is used to request to establish a second call; the first terminal is in the first call when sending the call request; In response to the user operation indicating approval for establishing the second call, the second terminal sends a listening command to the first terminal, where the listening command is used to indicate approval for the call request.
13. The method according to claim 12, characterized in that The method further comprises: In response to the call request, the second terminal displays an incoming call interface, wherein the incoming call interface includes incoming call information and an answering control for the second call; the incoming call information of the second call is obtained based on the call request; The second terminal displays a call interface in response to a user operation on the answering control, where the call interface includes call information of the second call.
14. The method according to claim 13, characterized in that The method further comprises: The second terminal collects audio through a microphone in response to a user operation on the answering control to obtain first audio data; The second terminal sends the first audio data to the first terminal, where the first audio data is used to determine the uplink audio of the second call.
15. The method according to any one of claims 12 to 14, characterized in that: After sending the answer command to the first terminal, the method further includes: The second terminal receives the downlink audio of the second call sent by the first terminal; The second terminal plays the downlink audio of the second call.
16. The method according to any one of claims 12 to 15, characterized in that: The first terminal is installed with a first subscriber identification module SIM card, and the first call and the second call are both realized through the first SIM card.
17. The method according to any one of claims 12 to 15, characterized in that: The first terminal is installed with the first SIM card and the second SIM card, the first call is implemented through the first SIM card, and the second call is implemented through the second SIM card.
18. The method according to any one of claims 12 to 15, characterized in that: The first call is a basic call, and the second call is a voice transmission VoIP call.
19. A communication system, characterized in that: The system includes a first terminal and a second terminal; The first terminal is used to: when in the first call, send a received call request for establishing a second call to the second terminal; The second terminal is used to: in response to the call request of the second call, display a first incoming call interface, wherein the first incoming call interface includes incoming call information of the second call; In response to a user operation indicating approval of establishing the second call, sending a call answering command to the first terminal, the call answering command being used to indicate approval of the call request; The first terminal is further configured to: establish the second call in response to the answer command; and send the downlink audio of the second call to the second terminal; The second terminal is further used to play the downlink audio of the second call.
20. The method according to claim 19, characterized in that The second terminal is also used to: in response to a user operation indicating agreement to establish the second call, collect audio through a microphone to obtain first audio data; and send the first audio data to the first terminal, where the first audio data is used to determine the uplink audio of the second call.
21. The method according to claim 19 or 20, characterized in that The second terminal is further configured to: in response to a user operation indicating consent to establish the second call, display a call interface, wherein the call interface includes call information of the second call.
22. The method according to any one of claims 19 to 21, characterized in that: The first incoming call interface also includes an answering control, and the user operation indicating consent to establish the second call is a user operation on the answering control.
23. The method according to any one of claims 19 to 22, characterized in that: When the first terminal establishes the second call, the first call is in a call state.
24. The method according to any one of claims 19 to 23, characterized in that: The first terminal is used for: Before receiving the call request, displaying a first interface, wherein the first interface includes call information of the first call; the communication information of the first call includes user information of the first call; In response to the call request, displaying a second incoming call interface, wherein the second incoming call interface includes incoming call information of the second call; After the second call is established, a second interface is displayed, wherein the second interface includes call information of the first call and a call identifier of the second call, wherein the call identifier of the second call includes a device identifier of the second terminal.
25. The method according to any one of claims 19 to 24, characterized in that: The first terminal is installed with a first subscriber identification module SIM card, and the first call and the second call are both realized through the first SIM card.
26. The method according to any one of claims 19 to 24, characterized in that: The first terminal is installed with the first SIM card and the second SIM card, the first call is implemented through the first SIM card, and the second call is implemented through the second SIM card.
27. The method according to any one of claims 19 to 24, characterized in that: The first call is a basic call, and the second call is a voice transmission VoIP call.
28. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1-18.
29. A computer program product comprising instructions, characterized in that When the computer program product is run on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 18.
30. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 18.