Method and apparatus for call switching, and electronic device

By switching the physical path and data path of the modem in electronic devices, the compatibility problems of multiple call protocols and the modem switching problems when users switch calls are solved, and efficient call switching and compatibility are achieved.

WO2025026076A1PCT designated stage expired Publication Date: 2025-02-06HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/106161
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-31
Filing Date
2024-07-18
Publication Date
2025-02-06

AI Technical Summary

Technical Problem

It is difficult for existing electronic devices to achieve compatibility with multiple call protocols, and when users switch calls, it is necessary to switch modem devices, including physical paths and data paths, to ensure call effect.

Method used

A method of switching calls is provided, by switching physical paths and data paths of the first modem and the second modem in an electronic device in real time, and ensuring compatibility and switching smoothness of the call protocol in response to a user's call switching request.

Benefits of technology

It realizes compatibility with multiple call protocols on the same electronic device, and switches the modem without perception when the user switches calls, ensuring the continuity and quality of call effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024106161_06022025_PF_FP_ABST
    Figure CN2024106161_06022025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a method and apparatus for call switching, and an electronic device. The method can be applied to an electronic device, and the electronic device comprises a first modem used for processing first call data and a second modem used for processing second call data, wherein the first modem and the second modem support different call protocols. The method comprises: when an electronic device is in a first call state, acquiring a second call request; and in response to an operation of a user for the second call request, switching a first call to a second call. By means of the method for call switching in the present application, a plurality of modems used for supporting different call protocols can be carried in an electronic device, and flexible switching can be enabled in call states for different call protocols, so as to meet the call requirements of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and electronic device for switching calls

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on July 31, 2023, with application number 202310961334.4, and invention name “Method, device and electronic device for switching calls”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] 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

[0003] With the advancement of science and technology, users can now make calls through electronic devices such as mobile phones and tablets. Generally speaking, it's difficult to fully integrate multiple call protocols using a single modem device. To achieve compatibility with multiple call protocols on the same electronic device, multiple modem devices are required. However, during a call, a user may need to switch between calls. Electronic devices equipped with multiple modem devices must also switch modem devices as the user switches calls to ensure consistent call quality.

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

[0005] Summary of the Invention

[0006] 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 quality when the user switches calls.

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

[0008] For example, the first modem can be hosted within a system-on-chip (SoC) of an electronic device, and the second modem can be externally connected to the original chip; or the first modem can be externally connected to the original chip, and the second modem can be hosted within the SoC of an electronic device. The first modem is further configured to receive and / or transmit data for a first call; the second modem is further configured to receive and / or transmit data for a second call. The second call request can be displayed on the user interface via information (e.g., incoming call information), options, or controls.

[0009] Based on the above solution, multiple modems supporting different call protocols can be hosted within an electronic device, and the electronic device can flexibly switch between call states of multiple different call protocols to meet the user's different call needs. While ensuring normal call functions, the user is unaware of the switching function.

[0010] 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 requesting the second call, switching to the second call, includes: responding to the user's operation requesting the second call, 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.

[0011] 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 and the audio data path of the first call are connected, so that the call function of the first call is normal. Therefore, to ensure normal call function after the call is switched, the audio physical path and the audio data path also need to be switched accordingly.

[0012] For example, the physical audio path for the second call connects the second modem to an uplink device (e.g., a microphone) and a downlink device (e.g., a speaker) of the electronic device. Connecting the audio data path for the second call enables selection of an audio data source and consumption route, and configures corresponding direct memory access (DMA) for data transfer.

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

[0014] 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 based on the first control information.

[0015] For example, the first control information can be understood as the usage status of the first modem, and the usage status of the first modem can be understood as using the first modem for a call. That is, the electronic device can implement call switching according to the usage status of the modem.

[0016] Based on the above solution, before a call, the electronic device can trigger a corresponding call based on 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.

[0017] 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: obtaining second control information, where the second control information is used to control the electronic device to make a call through the second modem.

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

[0019] Based on the above solution, while the electronic device is in a call state, it receives a call request using another call protocol. When the electronic device receives the call request, it can display the call request on the electronic device's interface. For example, the call request can be displayed on the electronic device's interface as an incoming call message. The user can trigger the electronic device to obtain the second control information by operating on the user interface.

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

[0021] Based on the above solution, after the electronic device obtains the second control information, it can simultaneously save the second control information to a partition (e.g., a non-volatile (NV) storage partition). In other words, the partition within the electronic device can update the modem usage status in real time. Therefore, if the electronic device cannot switch a call based on the modem usage status, the modem usage status within the partition can be used during the next call switching attempt, saving power during the next call switching attempt.

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

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

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

[0025] For example, while an electronic device is conducting a call via the satellite calling protocol, it may also receive another call request. This other call request may be a call request supporting the satellite calling protocol or a call request supporting the SDP calling protocol. When the electronic device responds to the user's call switching operation, the electronic device's audio physical path and audio data path may also be switched accordingly.

[0026] 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 switching the first call to the second call in response to a user's operation on the second call request.

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

[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: 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.

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

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

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

[0032] 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 as described in the first aspect and any possible implementation thereof.

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

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

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

[0036] In a sixth aspect, a chip is provided, which includes a processor and a data interface. 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.

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

[0038] 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

[0039] FIG1 is a schematic structural diagram of an electronic device.

[0040] FIG2 is a software structure block diagram of an electronic device.

[0041] FIG3 is a schematic diagram of a system architecture provided in an embodiment of the present application.

[0042] FIG4 is a set of GUIs provided in an embodiment of the present application.

[0043] FIG5 is a schematic flowchart of a method for switching calls provided in an embodiment of the present application.

[0044] FIG6 is a schematic flowchart of a method for switching calls provided in an embodiment of the present application.

[0045] FIG7 is a schematic flowchart of a method for switching calls provided in an embodiment of the present application.

[0046] FIG8 is a schematic block diagram of a call switching device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0048] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification of this application and the appended claims, the singular expressions "a", "an", "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 can exist; for example, A and / or B can mean: 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 previous and subsequent associated objects are in an "or" relationship.

[0049] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0050] 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, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication functions (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.

[0051] 1 shows a schematic structural diagram of an 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 194, and a subscriber identification module (SIM) card interface 195. 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.

[0052] It should be understood that the structures illustrated in the embodiments of the present application do 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, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0053] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

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

[0055] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0056] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

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

[0058] 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 antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0059] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G 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.

[0060] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the 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.

[0061] 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 that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0062] 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 a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR 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).

[0063] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0064] Display screen 194 is used to display images, videos, etc. 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), a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0065] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0066] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0067] 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 light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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.

[0068] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0069] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0070] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0071] 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

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

[0073] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0074] 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 provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0075] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0076] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0077] Microphone 170C, also known as "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 the microphone 170C to input the sound signal into the 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 source of sound, realize directional recording function, etc.

[0078] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. 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. A capacitive pressure sensor can be a device comprising at least two parallel plates with 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 intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch 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, the instruction to create a new alarm is executed.

[0079] Fingerprint sensor 180H is used to collect fingerprints. Electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, and so on. For example, when the phone detects a user's touch operation on the lock screen, the phone can collect the user's fingerprint information through fingerprint sensor 180H and match the collected fingerprint information with the fingerprint information pre-set in the phone. If the match is successful, the phone can enter the non-lock screen interface from the lock screen interface.

[0080] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. 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 applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

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

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

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

[0084] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0085] The window manager manages windowed applications. It can determine the display size, determine whether a status bar is present, lock the screen, and take screenshots. Content providers store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and phone books.

[0086] The view system includes visual controls, such as controls for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views.

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

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

[0089] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0090] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

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

[0092] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

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

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

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

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

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

[0098] In addition, the system library can 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.

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

[0100] The hardware layer may include various sensors, such as the various sensors described in FIG1 .

[0101] In conjunction with the electronic devices described in Figures 1 and 2 above, in the embodiments of the present application, the electronic device can be a mobile phone terminal, tablet computer, or other device 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, and power management; and application layer services such as special adaptation applications (camera), third-party applications, system hibernation, and AOD.

[0102] With the advancement of science and technology, electronic devices can now support calls using different protocols. Currently, the modems carried by electronic devices are compatible with call protocols such as the Session Description Protocol (SDP) and the Session Announcement Protocol (SAP). However, if services such as satellite calls can be provided on electronic devices, the modems currently carried by electronic devices are not compatible. Therefore, in order for users to conduct calls using different protocols on electronic devices, it is necessary to carry modems that support different call protocols on the electronic devices. When a user switches between different calls, the multiple modem devices carried by the electronic device also need to switch with the call switching. When switching between different modem devices, it is necessary to consider the switching of the audio physical path and audio data path corresponding to the modem device.

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

[0104] As shown in Figure 3, a system architecture applicable to the embodiment of the present application is shown. The system architecture can be carried on an electronic device that supports call functions, such as a mobile phone terminal. The system architecture is described in detail below.

[0105] 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. The application management module is used to control modem switching. The modem1 module and the modem2 module may each support two different call protocols. 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 into a system on a chip (SoC). The modem2 module may be a module external to the original chip, and may be connected to the audio data path management module via the audio physical path module.

[0106] In some embodiments, the application management module can host multiple specific modules, such as the Android application package (APK), framework (FWK), and hardware abstraction layer (HAL). For example, the call function can be initiated by the APK, and the modem usage status can be distributed sequentially through the FWK and HAL. The application management module can send control information based on the modem usage status to the audio physical path management module and the audio data path management module. The audio data path management module selects the audio data source and consumption route based on the control information and configures the corresponding direct memory access (DMA) for data transfer. Based on the control information, the audio physical path management module opens the audio uplink path and the corresponding modem connection path, switching the physical path connection between the modem module and the mobile phone's uplink device (e.g., microphone) and downlink device (e.g., speaker). For example, the audio data path management module can process the control information from the application management module, and the audio physical path management module can directly receive the processed information from the application management module and connect the corresponding physical path.

[0107] It should be noted that the various modules in the system architecture shown in FIG3 may correspond to the layered architecture of the electronic device shown in FIG2 . For example, 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, which may be located above the kernel layer and below the framework layer.

[0108] For ease of understanding, Figure 4 illustrates a graphical user interface (GUI) that illustrates scenarios in which the call switching method provided herein may be used. Users can select a modem to initiate a call or switch modems. Below, using a mobile phone as an example, describes scenarios in which the call switching method provided herein may be used.

[0109] Figure 4 (a) shows the address book interface of a user's mobile phone terminal. The address book interface displays a selection prompt 401, prompting the user to select a call modem. Prompt 401 includes multiple controls, including a modem1 control 402 and a modem2 control 403. A control is a visual graphical interface element presented to the user. It is a software component included in an application that controls the data processed by the application and the interactive operations related to this data. Users can interact with the control through touch, swipe, and other operations to read and edit relevant information about the application. Generally speaking, controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, and status bars. In response to user operations on different controls (e.g., touch, click, or swipe), the electronic device screen can display different interfaces or perform corresponding processing. In response to a user clicking on modem1 control 402, the user can make a call through modem1. Alternatively, if the user clicks on modem2 control 403, the call can be made through modem2. In other words, users can actively select the modem to use before making a call.

[0110] Figure 4(b) shows the call interface on a user's mobile phone. The call interface displays call information 404 and incoming call information 405. Call information 404 indicates that the user is currently on a call through modem1. Incoming call information 405 indicates that while the user is on a call through modem1, they have also received an incoming call from modem2. The call interface displays a selection control 406 and multiple icons, including a reject icon 407 and an accept icon 408. If the user slides selection control 406 toward accept icon 408, the call from modem2 is connected, switching from modem1 to modem2.

[0111] Based on the above solution, the electronic device can support users selecting a call modem through the user interface, as shown in Figure 4 (a); it can also support users switching calls, as shown in Figure 4 (b). 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 remains normal and the user is unaware of the switching process.

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

[0113] As shown in FIG5 , a specific method of switching the audio physical path and the audio data path of the electronic device in the scenario where the user selects a modem call is shown.

[0114] S501, sending modem usage status.

[0115] S502: Transmit modem usage status.

[0116] S503, obtain modem usage status

[0117] S504: Change the modem usage status.

[0118] It should be noted that the above steps S501 to S504 can be executed by the application management module as shown in FIG3 .

[0119] For example, 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 by the application management module.

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

[0121] It should be noted that when the user selects a call modem through the interactive method shown in FIG4 (a), 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.

[0122] For example, when the user selects modem1 through the user interface, the APK sends the modem usage status as "Using modem1 for calls." In the application management module, the modem usage status is then sent to the HAL. The HAL changes the modem usage status to "Using modem1 for calls." The HAL changing the modem usage status can also be understood as the HAL setting the modem usage status.

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

[0124] In some embodiments, while the HAL is updating the modem usage status, it can also simultaneously write the modem status to a partition of the electronic device. For example, a non-volatile (NV) storage partition. That is, after the HAL obtains the modem usage status, a partition of the electronic device will obtain the updated modem usage status in real time. This ensures that, in the event that the application management module is unable to send control information, a partition within the electronic device has the latest modem usage status. The next time a user attempts to make a call through the modem, the modem usage status in that partition can be retrieved.

[0125] Furthermore, to achieve dynamic switching of calls, the electronic device may continue to execute the steps shown in FIG. 6 .

[0126] S601, determining whether the state is a call.

[0127] S602: Query the modem usage status.

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

[0129] S604: Switch the audio data path.

[0130] S605: Generate audio physical path configuration.

[0131] S606: Switch the audio physical path.

[0132] For example, the above steps S601 to S603, and steps S605 to S606 may be performed by the application management module, and step S604 may be performed by the audio data path management module.

[0133] 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 the steps shown in Figure 5 to enable the HAL to obtain the latest modem usage status.

[0134] The mode interface and the path interface are common Android interfaces. The mode interface can be used to set the audio mode, allowing electronic devices to determine the flow state based on the audio mode; the path interface can be understood as setting the path. These two interfaces are called during standard Android flow startup, and modem usage can be switched based on these calls.

[0135] Exemplarily, the FWK's mode interface sends control information, triggering the HAL to determine whether the device is currently in a call state. The HAL can determine whether the device is currently in a call state when the audio data changes, which can be triggered by user interaction in the user interface. If the HAL determines that the device is not currently in a call state, the electronic device will not proceed with subsequent steps. If the HAL determines that the device is currently in a call state, the electronic device can further query the modem usage status, which can also be understood as determining which modem the user is using for the call. When the HAL queries the modem usage status and a switch occurs (for example, the user switches from modem 1 to modem 2), the driver group (DRV) can generate an audio data path synchronization command and send it to the audio data path management module. The audio data path management module can then execute the audio data path switch (for example, switching to the data path for modem 2). Simultaneously, the HAL can also generate audio physical path configuration information, and the DRV can switch the audio physical path (for example, switching to the physical path for modem 2) based on the audio physical path configuration information. The DRV can also be hosted in the application management module as shown in Figure 3.

[0136] For ease of understanding, the above steps are described using the example of a user-triggered modem call handoff, as shown in Figure 4 (b). While the user is on a call through modem1, they receive a call request from modem2. When the user answers the call from modem2, the electronic device's application management module determines that the user is currently in a call state and that the modem usage status is set to switch to modem2. Based on the latest modem usage status, control information is generated and sent to the audio data path management module. The audio data path management module connects the data path corresponding to modem2. Simultaneously, the audio physical path management module connects the physical path corresponding to modem2. This ensures that the user is unaware of the call handoff while answering the call from modem2, ensuring a normal call.

[0137] Based on the above solution, when a user triggers a modem call switch in the user interface, the electronic device can dynamically switch between multiple modems within the device. Specifically, when the call status changes, the application management module updates the modem usage status and generates corresponding control information based on the modem usage status. This information is then sent to the audio data path management module, which then connects the corresponding data path, and the audio physical path management module connects the corresponding physical path, resulting in a real-time call switching effect.

[0138] As shown in FIG7 , 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 the system architecture shown in FIG3 . The method is described in detail below.

[0139] S701: When the electronic device is in a first call state, obtain a second call request.

[0140] Exemplarily, an electronic device includes a first modem and a second modem. The first modem is used to process data for a first call, and the second modem is used to process data for a second call. The call protocol for the first call is different from the call protocol for the second call. For example, the call protocol for the first call may be the SDP call protocol, and the call protocol for the second call may be the satellite call protocol; or the call protocol for the first call may be the satellite call protocol, and the call protocol for the second call may be the SDP call protocol. In other words, 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 the modem1 module shown in FIG. 3 , and the second modem may be the modem2 module shown in FIG. 3 ; or the first modem may be the modem2 module shown in FIG. 3 , and the second modem may be the modem1 module shown in FIG. 3 . The modem that supports the satellite call protocol may be externally connected to the original chip.

[0141] It should be noted that when the electronic device is in the first call state, the first modem is connected, and accordingly, the physical audio path 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.

[0142] In some embodiments, before a call is made, a user operation on a user interface may trigger the corresponding call. For example, the electronic device may display a first modem control. When the electronic device detects the user operation on the first modem control, the electronic device may initiate a call via the first modem in response to the user operation on the first modem control, thereby entering a first call state.

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

[0144] For example, as shown in FIG4 , the first modem control may be the modem1 control 402 shown in FIG4 (a). In response to a user touching (e.g., clicking, double-clicking, long pressing, etc.) the modem1 control 402, the electronic device may enable the user to make a call via modem1. In other words, the electronic device may trigger a first call. In other words, before the user actively dials, the modem to be used for the call may also be selected on the user interface.

[0145] It should be noted that the first control information can be understood as the usage status of the first modem, and the usage status of the first modem can be understood as using the first modem for calls.

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

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

[0148] It should be noted that the user's operation on the second call request can be understood as the user's operation of triggering call switching. When the user triggers the call switching, 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.

[0149] For example, 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.

[0150] For example, the electronic device may display a second modem control. As shown in FIG4 , the second modem control may be modem2 control 403 shown in FIG4 (a). In response to a user touching (e.g., clicking, double-clicking, long-pressing, etc.) modem2 control 403, the electronic device may trigger a second call. In other words, before the user actively dials, the user can select the modem to use for the call on the user interface.

[0151] For example, the electronic device can make a call through the second modem through user operations on the user interface.

[0152] 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 a 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 a call through the second modem.

[0153] For example, as shown in FIG4 , when the electronic device is in the first call state, the electronic device may display the interface shown in FIG4 (b). Call information 404 indicates that the user is currently making a call through modem 1, that is, call information 404 indicates that the electronic device is in the first call state. When the electronic device receives a second call request, the electronic device displays incoming call information 405. Incoming call information 405 indicates that while the user is currently making a call through modem 1, an incoming call is also received from modem 2. 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 the call from modem 1 to modem 2. For example, the user's operation on the second call request may be sliding selection control 406 in the direction of icon 408 to switch the call from modem 1 to modem 2.

[0154] 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 be aware of the new incoming call information.

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

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

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

[0158] That is, when the electronic device obtains the modem usage status, it can simultaneously write the modem usage status to a partition of the electronic device (e.g., an NV partition). The partition of the electronic device can then update the modem usage status in real time. This allows the electronic device to retrieve the modem usage status in the partition during the next call handover attempt if the electronic device is unable to switch calls based on the modem usage status, thereby saving power during the next call handover attempt.

[0159] Based on the above solution, when a user triggers a call switch in the user interface, the electronic device can dynamically switch between modems supporting different call protocols, switching the corresponding audio physical path and audio data path, making the switching process unaware to the user and ensuring the user's normal call. 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, ensuring that the electronic device's call function is normal when switching to the second call.

[0160] Figure 8 is a schematic block diagram of a call switching device according to an embodiment of the present application. The call switching device 800 shown in Figure 8 may include a processor 810, a transceiver 820, and a memory 830. The processor 810, transceiver 820, and memory 830 are interconnected via an internal connection path. The memory 830 is configured to store instructions, and the processor 810 is configured to execute the instructions stored in the memory 830, thereby receiving and transmitting certain parameters via the transceiver 830. Optionally, the memory 830 may be coupled to the processor 810 via an interface or may be integrated with the processor 810.

[0161] 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 communication device 800 and other devices or communication networks.

[0162] During implementation, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor 810 or by instructions in the form of software. The method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. 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 combination with its hardware. To avoid repetition, it will not be described in detail here.

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

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

[0165] The present embodiment provides a readable storage medium containing instructions that, when executed on a device, cause the device to execute the technical solution of the above embodiment. The implementation principles and technical effects are similar and will not be further described here.

[0166] The present application provides a chip for executing 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 described in detail here.

[0167] Those skilled 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 this application.

[0168] Those skilled in the art will 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.

[0169] In the several embodiments provided in this 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 merely schematic. For example, the division of the unit is merely a logical function division. In actual implementation, there may be other division methods, 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.

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

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

[0172] 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, 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, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0173] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection 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

Patent Citations

  • Call switching method and device and electronic equipment

    CN119449950A

  • Dual-mode phone, and conversation control system and method thereof

    CN104253882A

  • Public mobile communication device in passenger airplane

    CN1352493A

  • Internetwork switching device and method according to network indication

    CN1937807A

  • Apparatus and method for sharing antenna

    US20140135061A1