Call switching method and device and electronic equipment

By integrating multiple modems in electronic devices and real-time switching, the problem of modem switching difficulties in electronic devices when switching calls is solved, the continuity and quality of calls are improved, and the user's compatibility needs for multiple call protocols is met.

CN119449950APending Publication Date: 2025-02-14HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310961334.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When existing electronic devices switch calls, it is difficult to achieve rapid switching of modem devices, resulting in poor call effects.

Method used

By integrating multiple modems in electronic devices and developing a method that can switch physical and data paths of these modems in real time to meet the user's call switching needs.

Benefits of technology

It realizes no-perceptual switching when users switch calls, ensures the continuity and quality of calls, and meets users' compatibility needs for multiple call protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449950A_ABST
    Figure CN119449950A_ABST
Patent Text Reader

Abstract

The invention provides a call switching method and device and electronic equipment. The method can be applied to the electronic equipment, and the electronic equipment comprises a first modem used for processing first call data and a second modem used for processing second call data. The call protocols supported by the first modem and the second modem are different. And when the electronic equipment is in the first call state, acquiring a second call request, and switching the first call into the second call in response to an operation of the user on the second call request. According to the call switching method provided by the invention, a plurality of modems used for supporting different call protocols can be carried in the electronic equipment, and the call states of different call protocols can be flexibly switched, so that the call requirements of a user are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic devices, and more particularly to a method, device and electronic device for switching calls. Background Art

[0002] With the development of science and technology, users can make calls through mobile phones, tablet computers and other electronic devices. Generally speaking, it is difficult to achieve full compatibility of multiple call protocols through a modem device carried by an electronic device. In order to achieve compatibility of multiple call protocols on the same electronic device, multiple modem devices need to be carried. However, when users are actually talking through electronic devices, they may need to switch calls. Electronic devices carrying multiple modem devices also need to switch modem devices as the user switches calls to ensure the call quality when the user switches calls.

[0003] Therefore, how to implement the switching of modem devices and switch the physical path and the data path at the same time to ensure the call quality when the user switches calls is a problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a method, device and electronic device for switching calls. The method can switch the physical path and data path of a modem device in real time to ensure the call effect when the user switches calls.

[0005] In a first aspect, a method for switching calls is provided, characterized in that the method is applied to an electronic device, comprising: the electronic device comprises a first modem and a second modem, the first modem is used to process data of a first call, the second modem is used to process data of a second call, and the call protocol of the first call is different from the call protocol of the second call; when the electronic device is in a first call state, obtaining the second call request; and in response to a user's operation on the second call request, switching the first call to the second call.

[0006] Exemplarily, the first modem may be carried in a system-on-chip of an electronic device, and the second modem may be externally connected to the original chip; or the first modem may be externally connected to the original chip, and the second modem may be carried in a system-on-chip of an electronic device. The first modem is also used to receive and / or send data of the first call; the second modem is also used to receive and / or send data of the second call. The second call request may be displayed on the user interface in the form of information (e.g., incoming call information), options, or controls.

[0007] Based on the above solution, multiple modems for supporting different call protocols can be carried in the electronic device, and the electronic device can flexibly switch between the call states of multiple different call protocols to meet the different call needs of users. While ensuring the normal call function, the user is unaware of the switching function.

[0008] In combination with the first aspect, in certain implementations of the first aspect, when the electronic device is in a first call state, the audio physical path of the first call and the audio data path of the first call are connected; the response to the user's operation on the second call request, switching to the second call, includes: in response to the user's operation on the second call request, switching the audio physical path of the first call to the audio physical path of the second call; and switching the audio data call of the first call to the audio data path of the second call.

[0009] It should be noted that when the electronic device is in the first call state, the first modem is connected, and accordingly, the audio physical path of the first call and the audio data path of the first call are connected, so that the call function of the first call is normal. Therefore, in order to ensure the normal call function after the call is switched, the audio physical path and the audio data path also need to be switched accordingly.

[0010] Exemplarily, the connection of the audio physical path of the second call enables the second modem to connect with the uplink device (e.g., microphone) and the downlink device (e.g., speaker) of the electronic device. The connection of the audio data path of the second call can realize the selection of the audio data source and the consumption route, and configure the corresponding direct memory access (DMA) to realize the data transfer function.

[0011] Based on the above solution, during the call switching process, the corresponding audio physical path and audio data path are switched accordingly to ensure normal call function.

[0012] In combination with the first aspect, in certain implementations of the first aspect, before the electronic device is in the first call state, the method also includes: the electronic device displays a first modem control and a second modem control; in response to a user's operation on the first modem control, obtaining first control information, the first control information being used to control the electronic device to make a call through the first modem; and triggering the first call according to the first control information.

[0013] Exemplarily, the first control information can be understood as the use status of the first modem, and the use status of the first modem can be understood as using the first modem to make a call. That is, the electronic device can implement call switching according to the use status of the modem.

[0014] Based on the above solution, before a call, the electronic device can trigger a corresponding call according to the user's operation on the user interface. In other words, the user can flexibly trigger different calls on the electronic device according to actual needs.

[0015] In combination with the first aspect, in some implementations of the first aspect, before switching the first call to the second call, the method further includes: acquiring second control information, where the second control information is used to control the electronic device to make a call through the second modem.

[0016] Exemplarily, the second control information may be understood as a usage status of the second modem, and the usage status of the second modem may be understood as using the second modem for a call.

[0017] Based on the above solution, when the electronic device is in a call state, it receives a call request of another call protocol. When the electronic device receives the call request, the call request can be displayed on the interface of the electronic device. For example, the call request can be displayed on the interface of the electronic device in the form of an incoming call message. The user can trigger the electronic device to obtain the second control information by operating on the user interface.

[0018] In combination with the first aspect, in some implementations of the first aspect, the method further includes: storing the second control information.

[0019] Based on the above scheme, after the electronic device obtains the second control information, it can synchronously save the second control information to a partition (e.g., a non-volatile storage (NV) partition), that is, the partition in the electronic device can update the usage status of the modem in real time. So that when the electronic device cannot implement call switching according to the usage status of the modem, the usage status of the modem in the partition is called during the next call switching attempt, saving power consumption for the next call switching.

[0020] In combination with the first aspect, in some implementations of the first aspect, the call protocol of the first call is the Session Description Protocol, and the call protocol of the second call is the Satellite Call Protocol; or the call protocol of the first call is the Satellite Call Protocol, and the call protocol of the second call is the Session Description Protocol.

[0021] That is, the first modem supports the SDP call protocol, and the second modem supports the satellite call protocol; or the first modem supports the satellite call protocol, and the second modem supports the SDP call protocol.

[0022] Based on the above solution, the electronic device can support the call function of the satellite call protocol, and further, can realize dynamic switching between the SDP call protocol and the satellite call protocol to meet the different call needs of users.

[0023] For example, when the electronic device is making a call via the satellite call protocol, the electronic device may also receive another call request, which may be a call request supporting the satellite call protocol or a call request supporting the SDP call protocol. When the electronic device responds to the user's operation of switching the call, the audio physical path and the audio data path of the electronic device may also be switched accordingly.

[0024] In a second aspect, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, cause the electronic device to perform the following steps: the electronic device comprises a first modem and a second modem, the first modem being used to process data of a first call, the second modem being used to process data of a second call, the call protocol of the first call being different from the call protocol of the second call; when the electronic device is in a first call state, obtaining a second call request; and in response to a user's operation on the second call request, switching the first call to the second call.

[0025] In combination with the second aspect, in certain implementations of the second aspect, when the electronic device is in a first call state, the audio physical path of the first call and the audio data path of the first call are connected; in response to the user's operation on the second call request, the first call is switched to the second call. When the instruction is executed by the one or more processors, the electronic device performs the following steps: in response to the user's operation on the second call request, the audio physical path of the first call is switched to the audio physical path of the second call; and the audio data call of the first call is switched to the audio data path of the second call.

[0026] In combination with the second aspect, in certain implementations of the second aspect, when the instruction is executed by the one or more processors, the electronic device performs the following steps: before the electronic device is in the first call state, the electronic device displays a first modem control and a second modem control; the electronic device obtains first control information in response to the user's operation on the first modem control, and the first control information is used to control the electronic device to make a call through the first modem; and the first call is triggered according to the first control information.

[0027] In combination with the second aspect, in certain implementations of the second aspect, when the instruction is executed by the one or more processors, the electronic device performs the following steps: obtaining second control information, where the second control information is used to control the electronic device to make a call through the second modem.

[0028] In combination with the second aspect, in certain implementations of the second aspect, when the instruction is executed by the one or more processors, the electronic device performs the following steps: storing the second control information.

[0029] In combination with the second aspect, in some implementations of the second aspect, the call protocol of the first call is the Session Description Protocol, and the call protocol of the second call is the Satellite Call Protocol; or the call protocol of the first call is the Satellite Call Protocol, and the call protocol of the second call is the Session Description Protocol.

[0030] In a third aspect, a device for switching calls is provided, comprising: a processor coupled to a memory, the memory being used to store a computer program, the processor being used to run the computer program, so that the device for switching calls executes the method in the first aspect and any possible implementation thereof.

[0031] In combination with the third aspect, in some implementations of the third aspect, one or more of the memory and the transceiver are also included, and the transceiver is used to receive signals and / or send signals.

[0032] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a computer, the computer implements the method in the first aspect and any possible implementation thereof.

[0033] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method in the first aspect and any possible implementation thereof.

[0034] In a sixth aspect, a chip is provided, which includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface to execute the method in the first aspect and any possible implementation thereof.

[0035] In combination with the sixth aspect, in a possible implementation manner, the processor is coupled to the memory through an interface.

[0036] In combination with the sixth aspect, in a possible implementation, the chip system also includes a memory, in which a computer program or computer instructions are stored. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a structural diagram of an electronic device.

[0038] Figure 2 It is a software structure diagram of an electronic device.

[0039] Figure 3 It is a schematic diagram of a system architecture provided in an embodiment of the present application.

[0040] Figure 4 It is a set of GUIs provided by the embodiments of the present application.

[0041] Figure 5 The present invention provides a schematic flowchart of a method for switching calls.

[0042] Figure 6 The present invention provides a schematic flowchart of a method for switching calls.

[0043] Figure 7 The present invention provides a schematic flowchart of a method for switching calls.

[0044] Figure 8 It is a schematic block diagram of a call switching device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0046] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0047] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0048] The following describes an electronic device, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device 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 may not be a portable electronic device, but a desktop computer. In some other embodiments, the electronic device may be an instrument for measurement, such as an oscilloscope.

[0049] For example, Figure 11 shows a schematic diagram of the structure of the electronic device 100. 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.

[0050] 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.

[0051] 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.

[0052] 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.

[0053] 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.

[0054] 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.

[0055] 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.

[0056] 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] 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).

[0061] 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.

[0062] 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), a sub-millimeter light-emitting diode (Mini LED), a micro light-emitting diode display (Micro Led), 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.

[0063] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0064] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0065] 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.

[0066] 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.

[0067] 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.

[0068] 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.

[0069] 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.

[0070] 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, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0071] 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.

[0072] 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.

[0073] 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.

[0074] 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.

[0075] 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.

[0076] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the alarm application icon, an instruction to create a new alarm is executed.

[0077] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. For example, when the mobile phone detects a user's touch operation on the lock screen interface, the mobile phone can collect the user's fingerprint information through the fingerprint sensor 180H, and match the collected fingerprint information with the fingerprint information preset in the mobile phone. If the match is successful, the mobile phone can enter the non-lock screen interface from the lock screen interface.

[0078] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0079] Figure 2 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.

[0080] like Figure 2 As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0081] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions.

[0082] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0083] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0084] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. The display interface can be composed of one or more views.

[0085] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0086] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0087] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0088] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0089] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0090] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0091] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0092] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0093] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0094] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0095] A 2D graphics engine is a drawing engine for 2D drawings.

[0096] In addition, the system library may also include status monitoring service modules, such as a physical status recognition module for analyzing and identifying user gestures; a sensor service module for monitoring sensor data uploaded by various sensors at the hardware layer to determine the physical status of the electronic device 100.

[0097] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0098] The hardware layer can include various types of sensors, such as Figure 1 Various types of sensors introduced in.

[0099] Combined with the above Figure 1 and Figure 2 The electronic device introduced in the embodiment of the present application can be a mobile phone terminal, a tablet computer and other devices that can realize the call function. The physical devices involved in the electronic device 100 mainly include hardware components such as sensors, decision support systems (DSS) display chips, touch screens, fingerprint recognition modules, etc.; as well as kernel software layers such as screen management modules, display drivers, fingerprint drivers, and anti-mistouch; application framework layer functions such as anti-mistouch input, screen control, always on display (AOD) services, power management, etc.; and application layer services such as special adaptation applications (camera), third-party applications, system sleep, and AOD.

[0100] With the development of science and technology, electronic devices can support calls with different protocols. The modems currently carried on electronic devices are compatible with call protocols such as session description protocol (SDP) and session announcement protocol (SAP). However, if services such as satellite calls can be provided on electronic devices, the modems currently carried on electronic devices are not compatible. Therefore, in order for users to make calls with different protocols on electronic devices, it is necessary to carry modems that support different call protocols on electronic devices. When users switch between different calls, multiple modem devices carried in the electronic device also need to switch with the switching of the calls. When switching between different modem devices, it is necessary to consider the switching of the audio physical path and the audio data path corresponding to the modem device.

[0101] In response to the above-mentioned user's needs to conduct calls with different protocols on an electronic device, the present application provides a method, device and electronic device for switching calls, which support the user's call needs with different protocols, and while implementing modem device switching, switch the corresponding audio physical path and audio data path to ensure the call effect when the user switches calls.

[0102] like Figure 3 As shown, a system architecture applicable to the embodiment of the present application is shown. The system architecture can be carried on an electronic device supporting a call function, such as a mobile phone terminal. The system architecture is specifically introduced below.

[0103] Specifically, the system architecture of the electronic device may include an audio physical path management module, an audio data path management module, an application management module, a modem1 module and a modem2 module. Among them, the application management module is used to control the switching of the modem. The modem1 module and the modem2 module may be devices that support two different call protocols respectively, for example, the modem1 module supports the SDP call protocol, and the modem2 module supports the satellite call protocol. The audio physical path management module, the audio data path management module, the application management module and the modem1 module may be integrated on a system on a chip (Soc). The modem2 module may be a module external to the original chip, and the connection with the audio data path management module may be realized through the audio physical path module.

[0104] In some embodiments, the application management module may carry multiple specific modules, such as an Android application package (APK), a framework layer (FWK), and a hardware abstraction layer (HAL). Exemplarily, the call function may be initiated by the APK, and the modem usage status may be issued in turn through the FWK and the HAL. The application management module may send control information to the audio physical path management module and the audio data path management module according to the modem usage status. The audio data path management module implements the selection of the audio data source and the consumption route according to the control information, and configures the corresponding direct memory access (DMA) to perform the data transfer function. The audio physical path management module implements the opening of the audio uplink path and the corresponding modem connection path according to the control information, and switches the physical path connection between the modem module and the mobile phone uplink device (e.g., microphone) and the downlink device (e.g., speaker). Exemplarily, the audio data path management module may process and process the control information from the application management module, and the audio physical path management module may directly receive the information processed from the application management module and connect the corresponding physical path.

[0105] It should be noted that Figure 3 The various modules in the system architecture shown may correspond to Figure 2 The hierarchical architecture of the electronic device shown. Exemplarily, the modem1 module and the modem2 module belong to the hardware layer; the audio physical path management module and the audio physical path management module belong to the kernel layer. The application management module may belong to the HAL layer, and the HAL layer may be located above the kernel layer and below the framework layer.

[0106] For ease of understanding, Figure 4 A set of graphical user interfaces (GUIs) are shown, providing scenarios in which the call switching method provided by the present application can be used. A user can select a modem to make a call, or switch modems to make a call. Below, taking a mobile phone terminal as an example, the scenarios in which the call switching method provided by the present application is applicable are introduced.

[0107] like Figure 4(a) in FIG. 4 shows the address book interface of the user's mobile phone terminal. The address book interface displays a selection prompt message 401, and the prompt message 401 is used to prompt the user to select a call modem. The prompt message 401 includes multiple controls, including a modem1 control 402 and a modem2 control 403. The control is a visual graphical interface element presented to the user. It is a software component included in the application program, which controls the data processed by the application program and the interactive operations on the data. The user can interact with the control through touch, slide and other operations to read and edit the relevant information of the application program. Generally speaking, the control can include visual interface elements such as icons, buttons, menus, tabs, text boxes, status bars, etc. In response to the user's operation on different controls (for example, touch operation, click operation or slide operation), different interfaces can be displayed on the screen of the electronic device, or corresponding processing can be performed. In response to the user clicking the modem1 control 402, the user can make a call through modem1. Of course, if the user clicks the modem2 control 403, the call can be made through modem2. In other words, the user can actively select the modem to be used before making a call.

[0108] like Figure 4 (b) in the figure shows a call interface of a user's mobile phone terminal. The call interface displays call information 404 and incoming call information 405. Call information 404 indicates that the user is currently making a call through modem1. Incoming call information 405 indicates that while the user is making a call through modem1, an incoming call from modem2 is also received. The call interface displays a selection control 406 and a plurality of icons, including a rejection icon 407 and an acceptance icon 408. In response to the user sliding the selection control 406 in the direction of the acceptance icon 408, the call from modem2 can be connected, thereby switching the call from modem1 to modem2.

[0109] Based on the above solution, the electronic device can support the user to select a modem for a call in the user interface, for example Figure 4 (a) in the figure; it can also support users switching calls, for example Figure 4 When the user triggers a call switch through the user interface, the electronic device can dynamically select the corresponding modem and switch the corresponding audio physical path and audio data path, so that the call function is normal while the user is unaware of the switching process.

[0110] Below, the specific implementation methods of the call switching method provided by the present application in the above two scenarios are introduced respectively.

[0111] like Figure 5As shown, the specific way in which the electronic device switches the audio physical path and the audio data path when the user selects a modem call scenario is shown.

[0112] S501, sending modem usage status.

[0113] S502, transmitting the modem usage status.

[0114] S503, obtain modem usage status

[0115] S504, changing the modem usage status.

[0116] It should be noted that the above steps S501 to S504 can be performed as follows: Figure 3 The application management module shown in is executed.

[0117] Exemplarily, the application management module may include an APK layer, a FWK layer, and a HAL layer. The above steps S501 to S504 may be respectively executed by specific virtual modules carried in the application management module.

[0118] For example, APK can send the modem usage status according to the user's operation in the user interface, and FWK passes the modem usage status to HAL. HAL obtains the modem usage status from FWK and changes the modem usage status.

[0119] It should be noted that when the user passes Figure 4 The call modem is selected by the interactive method shown in (a) in the figure. The application management module of the electronic device generates a modem usage status and changes the modem usage status due to the user's triggering operation.

[0120] For example, when the user selects modem1 through the user interface, the modem usage status sent by the APK is to use modem1 for calls. In the application management module, the modem usage status is sent to the HAL in sequence. The HAL changes the modem usage status to use modem1 for calls. Among them, HAL changes the modem usage status, which can also be understood as HAL setting the modem usage status.

[0121] In some embodiments, the application management module generates control information based on the user's operation in the user interface, and sends the control information to the audio data path management module and the audio physical path management module. The audio data path management module and the audio physical path management module can realize the connectivity or switching of the audio data path and the physical path based on the control information.

[0122] In some embodiments, while the HAL changes the modem usage status, the modem status can also be synchronously written into a partition of the electronic device. For example, a non-volatile storage (NV) partition. That is, after the HAL obtains the modem usage status, a partition of the electronic device will obtain the real-time updated modem usage status. In case the application management module cannot send control information, it is ensured that a partition in the electronic device has the latest modem usage status, and the next time the user still tries to make a call through the modem, the modem usage status in the partition can be called.

[0123] Furthermore, to achieve dynamic switching of calls, the electronic device may continue to execute the following steps: Figure 6 Follow the steps shown in .

[0124] S601, determine whether it is in a call state.

[0125] S602, query the modem usage status.

[0126] S603: Generate an audio data path synchronization command.

[0127] S604, switching the audio data path.

[0128] S605: Generate audio physical path configuration.

[0129] S606: Switch the audio physical path.

[0130] Exemplarily, the above steps S601 to S603, and steps S605 to S606 may be performed by an application management module. Step S604 may be performed by an audio data path management module.

[0131] It should be noted that the FWK layer carries two interfaces, including the mode (Setmode) interface and the path interface (Create Audio Patch). Whenever the user triggers a call switch in the user interface, the electronic device can first execute Figure 5 The steps shown in the figure enable HAL to obtain the latest modem usage status.

[0132] Among them, the mode interface and the channel interface are common interfaces of Android. The mode interface can be used to set the audio mode, and the electronic device can determine the state of the setting flow according to the audio mode; the channel interface can be understood as setting the channel. These two interfaces are called when the standard Android flow is started, and the switching of the modem usage state can be attached to the calling of these two interfaces.

[0133] Exemplarily, the mode interface of FWK sends control information to trigger HAL to determine whether the current state is a call. Among them, HAL can determine whether it is a call state when the audio data changes, and the change of audio data can be triggered by the user's interactive operation in the user interface. When HAL determines that it is not a call state, the electronic device will not execute subsequent steps. When HAL determines that it is a call state, the electronic device can further query the modem usage status, which can also be understood as determining which modem the user uses for the call. When HAL queries the modem usage status and switches (for example, the user switches from modem1 to modem2), the driver group (DRV) can generate an audio data path synchronization command and send the command to the audio data path management module, and the audio data path management module can execute the switching of the audio data path (for example, switching to the data path of modem2). At the same time, HAL can also generate audio physical path configuration information, and DRV can switch the audio physical path according to the audio physical path configuration information (for example, switching to the physical path of modem2). Among them, DRV can also be carried on such as Figure 3 In the application management module shown.

[0134] For ease of understanding, Figure 4 The above steps are introduced by taking the user-triggered modem call switching shown in (b) as an example. When the user is talking through modem1, a call request from modem2 is received. When the user answers the call from modem2, the application management module of the electronic device determines that the current state is a call, and determines that the modem usage state is to switch to modem2 for the call. Control information is generated according to the latest modem usage state, and sent to the audio data path management module. The audio data path management module connects to the data path corresponding to modem2; at the same time, the audio physical path management module connects to the physical path corresponding to modem2. This ensures that when the user answers a call from modem2, the call switching process is not perceived, ensuring the user's normal call.

[0135] Based on the above solution, when the user triggers modem call switching in the user interface, the electronic device can realize dynamic switching of multiple internal modems. That is, when the call status changes, the application management module will update the modem usage status, and generate corresponding control information according to the modem usage status, and send it to the audio data path management module. The audio data management module connects to the corresponding data path, and the audio physical path management module connects to the corresponding physical path, so as to produce the effect of real-time call switching.

[0136] like Figure 7As shown, a schematic flow chart of a method for switching calls provided in an embodiment of the present application is shown. The method can be applied to Figure 3 In the system architecture shown, the method is described in detail below.

[0137] S701, when the electronic device is in a first call state, obtaining a second call request.

[0138] Exemplarily, the electronic device includes a first modem and a second modem. The first modem is used to process data of a first call, and the second modem is used to process data of a second call. The call protocol of the first call is different from the call protocol of the second call. For example, the call protocol of the first call may be an SDP call protocol, and the call protocol of the second call may be a satellite call protocol; or the call protocol of the first call may be a satellite call protocol, and the call protocol of the second call may be an SDP call protocol. That is, the first modem may support the SDP call protocol, and the second modem may support the satellite call protocol; or the first modem may support the satellite call protocol, and the second modem may support the SDP call protocol. The first modem may be such as Figure 3 The modem1 module shown, the second modem can be as Figure 3 The modem2 module shown; or the first modem can be as Figure 3 The modem2 module shown in FIG. 1 may be a second modem such as Figure 3 The modem1 module shown in the figure. Among them, the modem supporting the satellite call protocol can be connected to the original chip.

[0139] It should be noted that when the electronic device is in the first call state, the first modem is connected, and accordingly, the audio physical path of the first call and the audio data path of the first call are connected, so that the call function of the first call is normal. The electronic device being in the first call state can be understood as the electronic device is in the first call.

[0140] In some embodiments, before a call, a corresponding call can be triggered by a user operation on a user interface. Exemplarily, the electronic device can display a first modem control. When the electronic device detects the user's operation on the first modem control, in response to the user's operation on the first modem control, the electronic device can make a call through the first modem, which is the first call state.

[0141] In some embodiments, when the electronic device detects a user's operation on a first modem control, in response to the user's operation on the first modem control, the electronic device can obtain first control information, where the first control information is used to control the electronic device to make a call through the first modem; the electronic device can make a first call through the first modem based on the first control information.

[0142] For example, Figure 4 As shown, the first modem control may be as follows Figure 4 In the modem1 control 402 shown in (a), the electronic device responds to the user touching (e.g., clicking, double-clicking, long pressing, etc.) the modem1 control 402, and the user can make a call through modem1, that is, the electronic device can trigger the first call. That is, before the user actively dials, the modem used for the call can also be selected on the user interface.

[0143] It should be noted that the first control information can be understood as the use status of the first modem, and the use status of the first modem can be understood as using the first modem for a call.

[0144] S702: In response to the user's operation on the second call request, switch the first call to the second call.

[0145] Exemplarily, in response to the user's operation on the second call request, the electronic device may switch the audio physical path of the first call to the audio physical path of the second call; and may switch the audio data path of the first call to the audio data path of the second call.

[0146] It should be noted that the user's operation on the second call request can be understood as the user's operation of triggering a call switch. When the user triggers a call switch, the electronic device can generate an audio data synchronization command and an audio physical path configuration, and determine the audio data path of the second call according to the audio data synchronization command, and determine the audio physical path of the second call according to the audio physical path configuration. It can be understood that the audio physical path and audio data path of the second call can be obtained based on the adjustment of the audio physical path and audio data path of the first call. The process of the electronic device determining the audio physical path and audio data path of the second call, and the process of switching to the audio physical path and audio data path of the second call can be performed continuously.

[0147] Exemplarily, during a call, the modem needs to write data to the memory, and different modems write data to different addresses in the memory. That is, the memory address corresponding to the audio data path of the first call (for example, memory address A) is different from the memory address corresponding to the audio data path of the second call (for example, memory address B). When the first call is switched to the second call, the audio data path of the first call is switched to the audio data path of the second call, and the memory address for writing data is switched from memory address A to memory address B. The DSP can call data from the corresponding memory for processing. The audio physical path of the first call is switched to the audio data path of the second call, so that the second modem is connected to the uplink device (for example, microphone) and the downlink device (for example, speaker) of the electronic device, ensuring that the electronic device can receive audio normally and output audio normally when the electronic device is in the second call state.

[0148] Exemplarily, the electronic device may display a second modem control. Figure 4 As shown, the second modem control may be as follows Figure 4 In response to the user touching (e.g., clicking, double-clicking, long pressing, etc.) the modem2 control 403, the electronic device can trigger the second call. That is, before the user actively dials, the user can select the modem used for the call on the user interface.

[0149] Exemplarily, the electronic device can make a call through the second modem through the user's operation on the user interface.

[0150] In some embodiments, before the electronic device switches the first call to the second call, in response to the user's operation on the second call request, the electronic device can make the call through the second modem. Exemplarily, the electronic device can obtain second control information, and the second control information can be used to control the electronic device to make the call through the second modem.

[0151] For example, Figure 4 As shown, when the electronic device is in the first call state, the electronic device can display Figure 4The interface shown in (b) in FIG. 4 is a diagram of an electronic device that is used to display the call information 404. The call information 404 indicates that the user is talking on the phone through modem1, that is, the call information 404 indicates that the electronic device is in the first call state. When the electronic device receives the second call request, the electronic device displays the incoming call information 405. The incoming call information 405 indicates that the user is talking on the phone through modem1 and also receives an incoming call from modem2. That is, the second call request is used to indicate a call request from the second modem corresponding to the call protocol. In response to the user's operation on the second call request, the electronic device switches from the modem1 call to the modem2 call. Exemplarily, the user's operation on the second call request may be to slide the selection control 406 in the direction of the icon 408, thereby switching from the modem1 call to the modem2 call.

[0152] It is understandable that the second call request can be displayed on the user interface through information (for example, incoming call information 405), options or controls, so that the user can know the new incoming call information.

[0153] Exemplarily, the second control information may be understood as a usage status of the second modem, and the usage status of the second modem may be understood as using the second modem for a call.

[0154] In some embodiments, the electronic device may obtain the second control information in response to the user's operation on the second call request, thereby switching the call from modem1 to modem2.

[0155] In some embodiments, when the electronic device obtains the second control information, the electronic device may switch to the second call according to the second control information and may also store the second control information.

[0156] That is, when the electronic device obtains the usage status of the regulator, the usage status of the modem can be synchronously written into a partition of the electronic device (e.g., NV partition), and the usage status of the modem can be updated in real time in a partition of the electronic device. In this way, when the electronic device cannot implement call switching according to the usage status of the modem, the usage status of the modem in the partition is called during the next call switching attempt, thereby saving power consumption for the next call switching.

[0157] Based on the above solution, when the user triggers a call switch in the user interface, the electronic device can dynamically switch between modems that support different call protocols, and switch the corresponding audio physical path and audio data path, so that the user is unaware of the switching process and the user's normal call is guaranteed. For example, the electronic device can switch the audio physical path and audio data path of the first call to the audio physical path and audio data path of the second call, respectively, to ensure that the call function of the electronic device is normal when it switches to the second call.

[0158] Figure 8 It is a schematic block diagram of a call switching device according to an embodiment of the present application. Figure 8 The switching call device 800 shown may include: a processor 810, a transceiver 820 and a memory 830. The processor 810, the transceiver 820 and the memory 830 are connected via an internal connection path, the memory 830 is used to store instructions, the processor 810 is used to execute the instructions stored in the memory 830, and the transceiver 830 receives / sends some parameters. Optionally, the memory 830 may be coupled to the processor 810 via an interface, or may be integrated with the processor 810.

[0159] It should be noted that the transceiver 820 may include but is not limited to a transceiver device such as an input / output interface to implement communication between the switching call device 800 and other devices or communication networks.

[0160] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 810 or an instruction in the form of software. The method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 830, and the processor 810 reads the information in the memory 830 and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0161] It should also be understood that in the embodiment of the present application, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the processor may also include a non-volatile random access memory. For example, the processor may also store information about the device type.

[0162] The embodiment of the present application provides a computer program product, which, when executed on a device, enables the device to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be described in detail here.

[0163] The embodiment of the present application provides a readable storage medium, which contains instructions. When the instructions are executed on a device, the device executes the technical solution of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0164] The embodiment of the present application provides a chip, which is used to execute instructions. When the chip is running, the technical solution in the above embodiment is executed. The implementation principle and technical effect are similar and will not be repeated here.

[0165] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0166] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units (modules) can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0167] In the several embodiments provided in the present application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0168] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0169] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0170] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0171] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for switching a call, characterized in that: The method is applied to an electronic device, comprising: The electronic device includes a first modem and a second modem, the first modem is used to process data of a first call, the second modem is used to process data of a second call, and a call protocol of the first call is different from a call protocol of the second call; When the electronic device is in a first call state, obtaining a second call request; In response to the user's operation on the second call request, the first call is switched to the second call.

2. The method according to claim 1, characterized in that When the electronic device is in a first call state, the audio physical path of the first call and the audio data path of the first call are connected; The step of switching the first call to the second call in response to the user's operation on the second call request includes: In response to the user's operation on the second call request, switching the audio physical path of the first call to the audio physical path of the second call; and The audio data call of the first call is switched to the audio data path of the second call.

3. The method according to claim 1 or 2, characterized in that: Before the electronic device is in the first call state, the method further includes: The electronic device displays a first modem control and a second modem control; In response to a user's operation on the first modem control, obtaining first control information, where the first control information is used to control the electronic device to make a call through the first modem; The first call is triggered according to the first control information.

4. The method according to any one of claims 1 to 3, characterized in that Before switching the first call to the second call, the method further includes: Acquire second control information, where the second control information is used to control the electronic device to make a call through the second modem.

5. The method according to claim 4, characterized in that The method further comprises: The second control information is stored.

6. The method according to any one of claims 1 to 5, characterized in that The call protocol of the first call is the Session Description Protocol, and the call protocol of the second call is the Satellite Call Protocol; or The call protocol of the first call is the satellite call protocol, and the call protocol of the second call is the session description protocol.

7. An electronic device, characterized in that: include: one or more processors; one or more memories; The one or more memories store one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by the one or more processors, the electronic device performs the following steps: The electronic device includes a first modem and a second modem, the first modem is used to process data of a first call, the second modem is used to process data of a second call, and a call protocol of the first call is different from a call protocol of the second call; When the electronic device is in a first call state, obtaining a second call request; In response to the user's operation on the second call request, the first call is switched to the second call.

8. The electronic device according to claim 7, characterized in that: When the electronic device is in a first call state, the audio physical path of the first call and the audio data path of the first call are connected; In response to the user's operation on the second call request, the first call is switched to the second call. When the instruction is executed by the one or more processors, the electronic device performs the following steps: In response to the user's operation on the second call request, switching the audio physical path of the first call to the audio physical path of the second call; and The audio data call of the first call is switched to the audio data path of the second call.

9. The electronic device according to claim 7 or 8, characterized in that: When the instructions are executed by the one or more processors, the electronic device performs the following steps: Before the electronic device is in the first call state, the electronic device displays a first modem control and a second modem control; In response to a user's operation on the first modem control, obtaining first control information, where the first control information is used to control the electronic device to make a call through the first modem; The first call is triggered according to the first control information.

10. The electronic device according to any one of claims 7 to 9, characterized in that: When the instructions are executed by the one or more processors, the electronic device performs the following steps: Acquire second control information, where the second control information is used to control the electronic device to make a call through the second modem.

11. The electronic device according to claim 10, characterized in that: When the instructions are executed by the one or more processors, the electronic device performs the following steps: The second control information is stored.

12. The electronic device according to any one of claims 7 to 11, characterized in that: The call protocol of the first call is the Session Description Protocol, and the call protocol of the second call is the Satellite Call Protocol; or The call protocol of the first call is the satellite call protocol, and the call protocol of the second call is the session description protocol.

13. A device for switching calls, characterized in that: include: A processor coupled to a memory, wherein the memory is used to store a computer program, and the processor is used to run the computer program so that the device for switching calls performs the method according to any one of claims 1 to 6.

14. The device for switching calls according to claim 13, characterized in that: Also included is one or more of the memory and the transceiver, wherein the transceiver is used to receive signals and / or send signals.

15. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the computer is caused to implement the method according to any one of claims 1 to 6.

16. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.

17. A chip, characterized in that: The chip includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface to execute the method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Method and apparatus for call switching, and electronic device

    EP4697858A1

  • Method and apparatus for call switching, and electronic device

    WO2025026076A1