WO2019227437A1 - 一种呼叫方法和终端设备 - Google Patents

一种呼叫方法和终端设备 Download PDF

Info

Publication number
WO2019227437A1
WO2019227437A1 PCT/CN2018/089370 CN2018089370W WO2019227437A1 WO 2019227437 A1 WO2019227437 A1 WO 2019227437A1 CN 2018089370 W CN2018089370 W CN 2018089370W WO 2019227437 A1 WO2019227437 A1 WO 2019227437A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
modem
terminal device
emergency call
radio frequency
Prior art date
Application number
PCT/CN2018/089370
Other languages
English (en)
French (fr)
Inventor
窦凤辉
丁明
袁锴
金辉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2018/089370 priority Critical patent/WO2019227437A1/zh
Publication of WO2019227437A1 publication Critical patent/WO2019227437A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/90Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]

Definitions

  • the present application relates to the technical field of terminal equipment, and in particular, to a calling method and terminal equipment.
  • the emergency call function in the mobile phone can provide users with convenient and quick help, and the user can dial the emergency call number on the mobile phone for help.
  • the emergency call function is also available when the phone is in airplane mode. When the mobile phone detects that the user initiates an emergency call, it turns off the airplane mode. When the mobile phone turns off the airplane mode and completes the registration process, the mobile phone initiates an emergency call.
  • a current mobile phone can be provided with a dual-user identification (SIM) card.
  • SIM dual-user identification
  • both SIM cards are in airplane mode.
  • the phone initiates the call through the main SIM card by default.
  • the network search and registration process of the main SIM card needs to be completed.
  • the mobile phone detects that the user triggers an emergency call, the flight mode of the two SIM cards is turned off at the same time, that is, the two SIM cards perform the search and registration process at the same time.
  • the primary SIM card and the secondary SIM card perform network search registration at the same time, there will be interference (for example, the uplink RF resources required by the primary SIM card's network search registration process may be occupied by the secondary SIM card), causing the primary SIM card to delay registration, which in turn will cause Emergency call delayed.
  • the application provides a calling method and a terminal device, which are used to reduce the delay in initiating an emergency call by the terminal device and improve the efficiency of the emergency call.
  • an embodiment of the present application provides a calling method, which is applied to a terminal device, where the terminal device includes a first modem and a second modem, the first modem is communicatively connected to a first card, and the second modem Communicating with a second card, the method includes: when the first card and the second card are both in an airplane mode, and the terminal device detects that the user initiates an emergency call, the terminal device passes the first card The modem turns off the flight mode of the first card so that the first modem starts searching and registering the network; and turns off the flight mode of the second card through the second modem so that the second modem starts Network search and network registration; if the first modem completes network registration earlier than the second modem, the terminal device initiates an emergency call through the first card.
  • the terminal device when both cards are in the flight mode, and the terminal device detects that the user initiates an emergency call, the terminal device can turn off the flight mode of the two cards, which of the two cards is the first After completing network registration, which card the terminal device uses to initiate an emergency call. In this way, the delay in initiating an emergency call by the terminal device is reduced, and the efficiency of the emergency call is improved.
  • the first card is a primary card and the second card is a secondary card.
  • the terminal device initiates an emergency call through the first card, when the first modem starts a network.
  • the terminal device When registering, if the uplink radio frequency resource is already occupied by the second modem, the terminal device suspends the use of the uplink radio frequency resource by the second modem, and allocates the uplink radio frequency resource to the first modem, So that the first modem uses the uplink radio frequency resource to complete network registration.
  • the terminal device may suspend the use of the uplink radio frequency resource by the second modem and allocate the uplink radio frequency resource to the first modem. In this way, the terminal device can avoid the influence of the second modem on the network registration of the first modem, and can complete the network registration process of the main card as soon as possible, and then initiate emergency calls through the main card as soon as possible, reducing the time when the terminal device initiates emergency calls. Delay to improve the efficiency of emergency calls.
  • the first card is a primary card
  • the second card is a secondary card
  • the terminal device reserves the uplink radio frequency resource to the first modem; when the first modem starts network registration, the terminal device allocates the uplink radio frequency resource to the first modem A modem, so that the first modem uses the uplink radio frequency resource to perform network registration.
  • the terminal device before the second modem starts network registration, the terminal device has reserved the uplink radio frequency resource to the first modem. In this way, the terminal device can prevent the second modem from affecting the network registration of the first modem, and can complete the network registration process of the main card as soon as possible, and then initiate an emergency call through the main card as soon as possible, reducing the delay of the terminal device initiating an emergency call. To improve the efficiency of emergency calls.
  • the terminal device After the terminal device turns off the flight mode of the first card through the first modem, so that the first modem starts searching and registering the network, the power is turned off through the second modem. Prior to the flight mode of the second card, the terminal device determines that a preset time has elapsed, or the terminal device determines that the first modem successfully searches the network; or the terminal device determines that the first modem network registration is successful.
  • the terminal device when the terminal device turns off the flight modes of the first card and the second card, a certain strategy may be adopted. For example, the terminal device first turns off the flight mode of the first card, and then turns off the flight mode of the second card after a preset period of time. For another example, the terminal device first turns off the flight mode of the first card, and after the first card successfully searches the network, then turns off the flight mode of the second card. For another example, the terminal device first turns off the flight mode of the first card, and after the network registration of the first card succeeds, then the flight mode of the second card is turned off.
  • the terminal device can turn off the flight mode of the first card first, and then turn off the flight mode of the second card later, so as to avoid the influence of the second modem on the network registration process of the first modem as much as possible, and the main card can be completed as soon as possible.
  • the network registration process and then make an emergency call through the main card as soon as possible, reducing the delay of initiating an emergency call by the terminal device, and improving the efficiency of the emergency call.
  • the terminal device if the terminal device fails to initiate an emergency call through the first card, the terminal device initiates an emergency call through the second card.
  • the terminal device may initiate the emergency call through the second card. In this way, the success rate of emergency calls is improved.
  • the terminal device when the first card is in a flight mode, the second card is in a normal working mode, and when the terminal device detects that the user initiates an emergency call, the terminal device passes the second card Make an emergency call.
  • the two cards in the terminal device may not be in the flight mode at the same time, for example, the first card is in the flight mode and the second card is in the normal working mode.
  • the terminal device may initiate an emergency call through the second card in the normal working mode. In this way, when the terminal device detects that the user initiates an emergency call, the terminal device uses the card in the normal working mode to initiate the emergency call, reduces the delay of the terminal device initiating the emergency call, and improves the efficiency of the emergency call.
  • the method before the terminal device detects that the user initiates an emergency call, the method further includes: the terminal device receives a first operation; and the terminal device displays a setting interface in response to the first operation, so that The setting interface includes a first identification of the first card, a second identification of the second card, a first switch control corresponding to the first identification, and a second switch corresponding to the second identification. Control; wherein when the first switch control is activated, the terminal device turns on the flight mode of the first card, and when the second switch control is not activated, the second card is in a normal working mode .
  • the user may choose to set which of the two cards is in the flight mode according to his own requirements, which is convenient for the user to operate and improves the user experience.
  • the terminal device if the terminal device fails to initiate an emergency call through the second card, the terminal device turns off the flight mode of the first card through the first modem, so that the first device The modem starts network searching and network registration; after the first modem completes network registration, the terminal device initiates an emergency call through the first card.
  • the two cards in the terminal device may not be in the flight mode at the same time.
  • the terminal device may initiate an emergency call through the card in the normal working mode. If an emergency call fails through this card, the terminal device can initiate an emergency call through another card.
  • the terminal device when the first card and the second card are both in an airplane mode, and the terminal device detects a selection operation that the user selects to initiate an emergency call through the first card; the The terminal device turns off the flight mode of the first card through the first modem, so that the first modem starts network searching and network registration; after the first modem completes network registration, the terminal device passes the The first card initiates an emergency call.
  • the terminal device when both cards in the terminal device are in the flight mode, the terminal device may initiate an emergency call according to the card selected by the user. In this way, it helps to improve the user experience.
  • the terminal device before the terminal device detects a selection operation in which the user selects to initiate an emergency call through the first card, the terminal device receives a second operation; the terminal device responds to the second operation Operation, displaying a dial keypad, the dial keypad includes the first dial control and the second dial control, wherein when the first dial control is selected and triggered, the terminal device initiates an emergency call through the first card When the second dial control is selected and triggered, the terminal device initiates an emergency call through the second card.
  • the terminal device can select which card to use to initiate an emergency call through two dialing controls, which is convenient for users to operate and improves the user experience.
  • the terminal device if the terminal device fails to initiate an emergency call through the first card, the terminal device turns off the flight mode of the second card through the second modem, so that the second card The modem performs network search and network registration; after the second modem completes network registration, the terminal device initiates an emergency call through the second card.
  • the terminal device may initiate an emergency call through another card. In this way, the success rate of emergency calls is improved.
  • an embodiment of the present application provides a terminal device having a first card slot and a second card slot for inserting a first card and a second card, respectively.
  • the terminal device includes a first modem and A second modem, where the first card slot and the second card slot are inserted into the first card and the second card, communicate with the first card and the second card, respectively, and the terminal device further includes: an input device and An application processor, wherein the input device is configured to receive input from a user;
  • An application processor configured to determine that the user's input is used to initiate an emergency call, and when both the first card and the second card are in flight mode, send a first instruction to the first modem, and The second modem sends a second instruction;
  • the first modem is used to turn off the flight mode of the first card according to the first instruction, and perform network search and network registration;
  • the second modem is used to turn off the flight mode of the second card according to the second instruction, and perform network search and network registration;
  • the application processor is further configured to initiate the emergency call through the first card if the first modem completes network registration before the second modem.
  • the terminal device when both cards are in the flight mode, and the terminal device detects that the user initiates an emergency call, the terminal device can turn off the flight mode of the two cards, which of the two cards is the first After completing network registration, which card the terminal device uses to initiate an emergency call. In this way, the delay in initiating an emergency call by the terminal device is reduced, and the efficiency of the emergency call is improved.
  • the first card slot is a primary card slot
  • the second card slot is a secondary card slot
  • the second modem is further configured to send a first request before performing network registration
  • the first request is used to request an uplink radio frequency resource required for network registration
  • the terminal device further includes: an uplink radio frequency resource allocation module configured to allocate the uplink radio frequency resource to the second according to the first request modem;
  • the second modem is further configured to perform network registration using the uplink radio frequency resource
  • the first modem is further configured to send a second request to the uplink radio frequency resource allocation module before performing network registration, where the second request carries priority level information;
  • the uplink radio frequency resource allocation module is further configured to suspend the use of the uplink radio frequency resource by the second modem according to the priority level information in the second request, and allocate the uplink radio frequency resource to the first modem. ;
  • the first modem is further configured to perform network registration on the uplink radio frequency resource.
  • the terminal device may suspend the use of the uplink radio frequency resource by the second modem and allocate the uplink radio frequency resource to the first modem. In this way, the terminal device can avoid the influence of the second modem on the network registration of the first modem, and can complete the network registration process of the main card as soon as possible, and then initiate an emergency call through the main card as soon as possible, reducing the time when the terminal device initiates an emergency call. Delay to improve the efficiency of emergency calls.
  • the first card slot is a primary card slot
  • the second card slot is a secondary card slot
  • the first modem is further configured to send a signal before the second modem performs network registration.
  • a third request the third request is used to request to reserve uplink radio frequency resources for the first modem;
  • the terminal device further includes: an uplink radio frequency resource allocation module, configured to receive the received radio frequency resources according to the third request;
  • a fourth request for applying for an uplink radio frequency resource sent by the second modem is suspended; the uplink radio frequency resource allocation module receives the fourth request before the first modem uses the uplink radio frequency resource;
  • the first modem is further configured to perform network registration using the uplink radio frequency resource.
  • the terminal device before the second modem starts network registration, the terminal device has reserved the uplink radio frequency resource to the first modem. During this period, the uplink radio frequency resource will not be occupied by the secondary modem. In this way, the terminal device can prevent the second modem from affecting the network registration of the first modem, and can complete the network registration process of the main card as soon as possible, and then initiate an emergency call through the main card as soon as possible, reducing the delay of the terminal device initiating an emergency call To improve the efficiency of emergency calls.
  • the application processor when the application processor is configured to send a first instruction to the first modem and a second instruction to the second modem, the application processor is specifically configured to: The first modem sends a first instruction; after the application processor has passed a preset time period, or after receiving response information from the first modem that indicates that the first modem has successfully searched the network, or After receiving response information from the first modem indicating that the second modem has successfully registered, a second instruction is sent to the second modem.
  • the terminal device when the terminal device turns off the flight modes of the first card and the second card, a certain strategy may be adopted. For example, the terminal device first turns off the flight mode of the first card, and then turns off the flight mode of the second card after a preset period of time. For another example, the terminal device first turns off the flight mode of the first card, and after the first card successfully searches the network, then turns off the flight mode of the second card. For another example, the terminal device first turns off the flight mode of the first card, and after the network registration of the first card succeeds, then the flight mode of the second card is turned off.
  • the terminal device can turn off the flight mode of the first card first, and then turn off the flight mode of the second card later, so as to avoid the influence of the second modem on the network registration process of the first modem as much as possible, and the main card can be completed as soon as possible.
  • the network registration process and then make an emergency call through the main card as soon as possible, reducing the delay of initiating an emergency call by the terminal device, and improving the efficiency of the emergency call.
  • the application processor is further configured to initiate an emergency call through the second card when an emergency call fails to be initiated through the first card.
  • the terminal device may initiate the emergency call through the second card. In this way, the success rate of emergency calls is improved.
  • the application processor is further configured to determine that the user's input is used to initiate an emergency call, and when the first card is in a flight mode and the second card is in a normal working mode, The second card initiates the emergency call.
  • the two cards in the terminal device may not be in the flight mode at the same time, for example, the first card is in the flight mode and the second card is in the normal working mode.
  • the terminal device may initiate an emergency call through the second card in the normal working mode. In this way, when the terminal device detects that the user initiates an emergency call, the terminal device uses the card in the normal working mode to initiate the emergency call, reduces the delay of the terminal device initiating the emergency call, and improves the efficiency of the emergency call.
  • the terminal device further includes a display screen for displaying a setting interface, where the setting interface includes a first identifier of the first card, a second identifier of the second card, and A first switch control corresponding to the first identifier, and a second switch control corresponding to the second identifier; wherein when the first switch control is activated, the terminal device turns on the first card In the flight mode, when the second switch control is not activated, the second card is in a normal working mode.
  • the display screen of the terminal device displays a setting interface, and the user can select which of the two cards is in the flight mode in the setting interface according to his own requirements, which is convenient for the user to operate and improves the user experience.
  • the application processor is further configured to send a third instruction to the first modem when an emergency call fails to be initiated through the second card, and the first modem is further configured to The third instruction closes the flight mode of the first card, and performs network search and network registration;
  • the application processor is further configured to initiate an emergency call through the first card when the first modem completes network registration.
  • the two cards in the terminal device may not be in the flight mode at the same time.
  • the terminal device may initiate an emergency call through the card in the normal working mode. If an emergency call fails through this card, the terminal device can initiate an emergency call through another card.
  • the input device is further configured to receive a selection operation input by a user
  • the application processor is further configured to determine that the selection operation is used to select to initiate an emergency call through the first card, and when both the first card and the second card are in an airplane mode, send a call to the first modem. Send a fourth instruction;
  • the first modem is further configured to turn off the flight mode of the first card according to the fourth instruction, and perform network search and network registration;
  • the application processor is further configured to initiate an emergency call through the first card after the first modem completes network registration.
  • the terminal device when both cards in the terminal device are in the flight mode, the terminal device may initiate an emergency call according to the card selected by the user. In this way, it helps to improve the user experience.
  • the terminal device further includes a display screen for displaying a dial keypad, and the dial keypad includes the first dial control and the second dial control, and when the first dial control When selected to trigger, the terminal device initiates an emergency call through the first card, and when the second dial control is selected to trigger, the terminal device initiates an emergency call through the second card.
  • the display screen of the terminal device shows dialing. After the user enters an emergency number on the dial pad, the user can select which card to use to initiate an emergency call through two dialing controls, which is convenient for the user and improves the user experience.
  • the application processor is further configured to send a fifth instruction to the second modem after an emergency call fails to be initiated through the first card;
  • the second modem is further configured to The fifth instruction closes the flight mode of the second card, and performs network search and network registration;
  • the application processor is further configured to initiate an emergency call through the second card after the second modem completes registration.
  • the terminal device may initiate an emergency call through another card. In this way, the success rate of emergency calls is improved.
  • an embodiment of the present application further provides a terminal device, where the terminal device includes a module / unit that executes the first aspect or any one of the possible design methods of the first aspect; these modules / units may be implemented by hardware To achieve, you can also implement the corresponding software by hardware.
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on a terminal device, the terminal device executes the first aspect or Any possible design method of the first aspect.
  • an embodiment of the present application further includes a computer program product.
  • the computer program product runs on a terminal device, the terminal device executes the first aspect or any one of the foregoing first aspects. Design method.
  • FIG. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a display state of a mobile phone display screen provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a display state of a mobile phone display screen according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal devices involved in the embodiments of the present application may also be referred to as user equipment (UE), such as smart phones, tablet computers, various types of wearable devices, and vehicle-mounted devices.
  • UE user equipment
  • Various application programs can be installed in the terminal device, such as WeChat, Alipay, Tencent Chat Software (QQ), Ding Nao, Photo Sharing (instagram), Kakao Talk, Line Me (Line) and so on.
  • the primary SIM card is referred to as the primary card
  • the secondary SIM card is referred to as the secondary card
  • the dual SIM card is referred to as the dual card.
  • a terminal device is provided with only one set of uplink radio frequency resources.
  • One of the reasons is that in order to save costs, only one set of uplink radio frequency resources is set up for use by two cards. When one card conducts business through this uplink radio frequency resource, the other card can only be in a standby state (in the standby state This uplink radio frequency resource is not used).
  • Another reason is that the configuration on the hardware of the terminal equipment cannot enable two cards to perform services through uplink radio frequency resources at the same time, so there is no need to set two sets of uplink radio frequency resources. For example, the terminal device has only one speaker. When Card 1 is engaged in a voice call (using uplink RF resources), Card 2 can only hold the call (without using uplink RF resources), so Card 1 and Card 2 share a set of uplink RF resources. .
  • the terminal device When the dual-card terminal device is in the flight mode, if the user initiates an emergency call, the terminal device initiates the call through the main card by default.
  • the terminal device detects that the user triggers an emergency call, the flight mode of the two cards is turned off at the same time, that is, the processes of searching the network and registering the network are performed at the same time by the two cards.
  • the primary card or the secondary card its network registration process requires the use of uplink radio frequency resources.
  • the primary and secondary cards can only share a set of uplink RF resources during the network registration process. Therefore, the secondary card may affect the network registration process of the primary card.
  • the primary card and the secondary card start network search and network registration at the same time, if the secondary card completes the network search earlier than the primary card and the network registration in advance, it will occupy the upstream RF resources in advance, then the primary card can only wait until the After the secondary card completes the network registration and releases the uplink radio frequency resource, it completes the network registration process through the uplink radio frequency resource. Therefore, the network registration process of the main card is delayed, which in turn causes the emergency call to be delayed.
  • the embodiments of the present application provide a calling method and a terminal device, and the method is applicable to the terminal device.
  • FIG. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 100 includes a radio frequency (RF) circuit 110, a memory 120, an application processor (AP) 130, an input unit 140, a display unit 150, a baseband processor (BP) 160, and an audio circuit. 180 and other components.
  • the baseband processor 160 includes a main modem 161, a sub-modem 162, and an uplink radio frequency resource allocation module 163.
  • RF radio frequency
  • AP application processor
  • BP baseband processor
  • the baseband processor 160 includes a main modem 161, a sub-modem 162, and an uplink radio frequency resource allocation module 163.
  • the terminal device provided in the embodiment of the present application may include more or fewer components than shown in the figure, or a combination of some These components, or different component arrangements.
  • the terminal device 100 may further include at least one sensor, a camera, a power source, and the like, and details are not described herein again.
  • Each component of the terminal device 100 is specifically described below with reference to FIG. 1:
  • the RF circuit 110 may be used for receiving and sending data during communication or conversation.
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 110 is connected to the main modem 161 and the sub-modem 162.
  • the RF circuit 110 may also be shared by the application processor 130 and the baseband processor 160, that is, the application processor 130 also It can be connected to the RF circuit 110 (not shown in FIG. 1), and the application processor 130 receives or sends data through the RF circuit 110.
  • the RF circuit 110 can also communicate with a network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including, but not limited to, Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (code) division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), e-mail, short message service (SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • code Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • SMS short message service
  • the way in which the terminal device 100 communicates with other devices is not limited to the RF circuit 110, and there may be other ways, such as short-range wireless transmission technologies including Bluetooth technology, WiFi technology, and the like.
  • the terminal device 100 may be connected to an access point (AP) through a WiFi module (not shown in FIG. 1), thereby implementing data network access.
  • the WiFi module can be used for receiving and sending data during communication.
  • the terminal device 100 may also implement a physical connection with other devices through a communication interface (not shown in FIG. 1), such as a USB interface.
  • the communication interface and the communication interface of the other device are connected through a cable to implement data transmission between the terminal device 100 and other devices.
  • the terminal device 100 can implement communication services and initiate calls to other contacts, the terminal device 100 needs to implement a data transmission function, that is, the terminal device 100 needs to include a communication module.
  • a communication module such as the RF circuit 110, the WiFi module, and the communication interface are mentioned, it can be understood that at least one of the above components or other devices for implementing communication exist in the terminal device 100.
  • Communication module for data transmission when the terminal device 100 is a mobile phone, the terminal device 100 may include the RF circuit 110 and may also include the WiFi module; when the terminal device 100 is a computer, the terminal device 100 may include The communication interface may further include the WiFi module. When the terminal device 100 is a tablet computer, the terminal device 100 may include the WiFi module.
  • the terminal device 100 further includes a memory 120.
  • the memory 120 may be used to store software programs and / or modules.
  • the application processor 130 executes various functions and data processing of the terminal device 100 by running software programs and / or modules stored in the memory 120.
  • the memory 120 may include a storage program area and a storage data area.
  • the storage data area may store multimedia files such as various pictures and video files.
  • the storage program area may store software programs and / or modules of various applications installed in the terminal device 100.
  • the application processor 130 is When a software program and / or module of an application program stored in the memory 120 is run, a corresponding function is implemented by the application program.
  • the memory 120 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • a non-volatile memory such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the terminal device 100 further includes an input unit 140.
  • the input unit 140 may be configured to receive numeric or character information input by a user, and generate key signal inputs related to user settings and function control of the terminal device 100.
  • the input unit 140 may include a touch panel 141 and other input devices 142.
  • the touch panel 141 can collect touch operations performed by the user on or near the touch panel (for example, the user uses a finger, a stylus or any suitable object or accessory on the touch panel 141 or Operation near the touch panel 141), and drive the corresponding connection device according to a preset program.
  • the touch panel 141 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller;
  • the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it To the application processor 130, and to receive and execute a command sent by the application processor 130.
  • the touch panel 141 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
  • the other input devices 142 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an joystick.
  • the terminal device 100 further includes a display unit 150.
  • the display unit 150 may be configured to display information input by the user or information provided to the user and various menus of the terminal device 100.
  • the display unit 150 is a display system of the terminal device 100, and is used to present an interface and implement human-computer interaction.
  • the display unit 150 may include a display panel 151.
  • the display panel 151 may be configured by using a liquid crystal display (Liquid Crystal Display, LCD), an organic light emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • LCD Liquid Crystal Display
  • OLED Organic Light-Emitting Diode
  • the touch panel 141 may cover the display panel 151, and when the touch panel 141 detects a touch operation on or near the touch panel 141, it is transmitted to the application processor 130 to determine the type of the touch event. Then, the application processor 130 provides a corresponding visual output on the display panel 151 according to the type of the touch event.
  • the touch panel 141 and the display panel 151 are implemented as two independent components to implement the input and input functions of the terminal device 100, in some embodiments, the The touch panel 141 is integrated with the display panel 151 to implement input and output functions of the terminal device 100.
  • the terminal device 100 further includes an audio circuit 180, a microphone 181, and a speaker 182, which can provide an audio interface between the user and the terminal device 100.
  • the audio circuit 180 can be used to convert audio data into a signal that can be recognized by the speaker 182, and transmit the signal to the speaker 182, which can be converted into a sound signal and output.
  • the microphone 181 is configured to collect an external sound signal (such as a person's voice or other sounds), convert the collected external sound signal into a signal that can be recognized by the audio circuit 180, and send the signal to the audio circuit 180.
  • the audio circuit 180 can also be used to convert the signal sent by the microphone 181 into audio data, and then output the audio data to the RF circuit 110 for sending to, for example, another terminal device, or output the audio data to the memory 120 for subsequent further processing.
  • the terminal device 100 further includes an application processor 130.
  • the application processor 130 is mainly responsible for running an operating system, an application program, a user interface, and the like. Therefore, the application processor 130 is connected to components such as the input unit 140 and the display unit 150.
  • the application processor 130 executes various functions of the terminal device 100 and processes data by running or executing software programs and / or modules of application programs stored in the memory 120 and calling data stored in the memory 120 Therefore, various services based on the terminal device are implemented.
  • the terminal device 100 further includes a baseband processor 160.
  • the baseband processor 160 is used for communication services of the terminal device 100, such as calling, texting, and other services of the terminal device 100.
  • the baseband processor 160 includes a main modem 161, a sub-modem 162, and an uplink radio frequency resource allocation module 163.
  • the main modem 161 is in communication connection with the main card, and is used to control the turning on or off of the flight mode of the main card, and is responsible for the process of searching the network and registering the network of the main card.
  • the secondary modem 162 is communicatively connected to the secondary card, and is used to control the flight mode of the secondary card on or off, and is responsible for the process of searching the network and registering the network of the secondary card.
  • the uplink radio frequency resource allocation module 163 is connected to the main modem 161 and the sub-modem 162, respectively, and is used for allocating uplink radio resources to the main modem 161 or the sub-modem 162.
  • the process of searching the network and registering the network may specifically include the process of searching the network and the process of registering the network.
  • the terminal device 100 performs a cell search and resides in the cell after a suitable cell is found.
  • a terminal device is provided with two sets of downlink radio frequency resources, so the network searching process of the primary card and the secondary card can be performed on the respective downlink radio frequency resources.
  • the main modem 161 receives the cell information broadcasted by the network-side device on the downlink radio frequency resources corresponding to the main card through the RF circuit 110, and resides in the cell after determining a suitable cell.
  • the process of searching the secondary card is similar.
  • the terminal device 100 sends the identity information of the main card to the network-side device through the RF circuit 110 to verify its legitimacy.
  • the terminal device 100 needs to send information to the network-side device. Therefore, during the network registration process, the terminal device 100 needs uplink radio frequency resources.
  • the uplink radio frequency resource allocation module 163 may allocate uplink radio frequency resources to the main modem 161 or the sub-modem 162.
  • the master modem 161 may send a first request to the upstream RF resource allocation module 163, where the first request is used to apply for uplink RF resources, and the uplink RF resource allocation module 163 receives the first After the request, the uplink modem 161 is allocated uplink radio frequency resources. Then the main modem 161 sends the identity information of the main card to the network-side device through the RF circuit 110 on the uplink radio frequency resource (the process is similar for the sub-modem 162). Specifically, the main modem 161 sends identity information to a digital signal processor (DSP) (not shown in FIG.
  • DSP digital signal processor
  • the DSP converts the identity information into a radio frequency signal in the form of a digital signal. Form, and sends the radio frequency signal to the network side device through the RF circuit 110.
  • the DSP may be integrated in the main modem 161, or may not be integrated in the main modem 161. If the DSP is integrated in the main modem 161, the main modem 161 itself converts the identity information in the form of a digital signal into a radio frequency signal form, and sends the radio frequency signal to the network-side device through the RF circuit 110.
  • the baseband processor 160 may include one DSP or two DSPs.
  • the baseband processor 160 includes two DSPs, the main modem 161 is connected to one of the DSPs (or one of the DSPs is integrated in the main modem 161) and the sub-modem is connected to the other DSP (or the other DSP is integrated in the sub-modem 162) . If the baseband processor 160 includes a DSP, the DSP may not be integrated in the main modem 161 or the sub-modem 162, and the DSP is connected to the main modem 161 and the sub-modem 162, respectively.
  • the emergency call can be made through the main card, that is, the terminal device 100 sends the emergency number to the network-side device through the RF circuit 110, and the network-side device sends the called number corresponding to the emergency number.
  • the device initiates a call.
  • the application processor 130 detects that the user inputs an emergency number through the input unit 140
  • the application processor 130 sends an instruction including the emergency number to the main modem 161
  • the main modem 161 converts the emergency number into a digital signal through the DSP Is a radio frequency signal
  • the emergency number in the form of the radio frequency signal is sent to the network-side device through the RF circuit 110.
  • the terminal device 100 can set which of the two modems is used as the main modem 161 and which is used as the sub-modem 162 at the factory.
  • the terminal device 100 is provided with a first card slot and a second card slot (not shown in FIG. 1).
  • the first card slot is a primary card slot by default
  • the second card slot is a sub card slot by default.
  • the modem connected to the card slot is the main modem 161
  • the modem connected to the second card slot is the sub-modem 162.
  • the first card is the master card by default.
  • the main card is connected by communication; when the second card slot is inserted into the second card, the second card is the default by default, and the secondary modem 162 can communicate with the secondary card).
  • the user can customize which is the primary modem 161 and which is the secondary modem 162 during the use of the terminal device 100. For example, if the terminal device 100 has a card 1 and a card 2, and the user sets the card 2 as the main card, the modem connected to the card 2 becomes the main modem 161, and the other modem becomes the sub-modem 162.
  • the terminal device detects that the user initiates an emergency call, Firstly turn off the flight mode of the main card and delay the flight mode of the secondary card, that is, delay the network registration process of the secondary card, so that the primary card can quickly complete the network registration, and then quickly initiate an emergency call through the primary card.
  • the process of the terminal device 100 initiating an emergency call by using the calling method provided in the embodiment of the present application is as follows:
  • the memory 120 stores software programs and / or modules of various application programs
  • the application program herein may be an application program capable of initiating an emergency call in the terminal device 100, such as the telephone application 121.
  • the application processor 130 runs the software program and / or module of the telephone application 121 stored in the memory 120
  • the application processor 130 may display the display interface of the telephone application 121 through the display unit 150, and the display interface includes a dial keypad.
  • the application processor 130 may detect, through the input unit 140, that a user initiates an emergency call in the dial keypad.
  • the application processor 130 may detect that the user inputs the emergency number 110 in the dial keypad through the input unit 140 and trigger the dial control.
  • the terminal device 100 may store a list containing emergency numbers.
  • the terminal device 100 detects that the user enters a phone number in the dial pad through the input unit 140, the terminal device 100 can compare the phone number with the emergency number in the list. If the phone number entered by the user exists in the list, it means that the phone number entered by the user is an emergency number, that is, the user initiated an emergency call.
  • the application processor 130 may first send a first instruction to the main modem 161, where the first instruction is used to instruct to close the flight mode of the main card. At this time, the application processor 130 has not yet sent an instruction to the secondary modem 162 for instructing to turn off the flight mode of the secondary card.
  • the main modem 161 turns off the flight mode of the main card, and starts the network search and network registration process of the main card.
  • the application processor 130 sends a second instruction to the secondary modem 162, where the second instruction is used to instruct an instruction to turn off the flight mode of the secondary card.
  • the secondary modem 162 turns off the flight mode of the secondary card, and starts the network search and network registration process of the secondary card.
  • the terminal device 100 delays turning off the flight mode of the secondary card, thereby delaying the network search and network registration process of the secondary card, so as to avoid the network registration process of the secondary card from affecting the network registration process of the primary card as much as possible. Minimize the delay of network registration of the main card, thereby improving the efficiency of emergency calls.
  • the following describes two implementation modes of the terminal device 100 for delaying the flight mode of the secondary card.
  • a possible implementation manner is that when the terminal device 100 detects that the user triggers an emergency call, the flight mode of the main card is turned off, and a timer is started, and the preset time is set by the timer. When the preset time period is reached, the terminal device 100 turns off the flight mode of the secondary card.
  • the specific value of the preset duration may be obtained by a manufacturer of the terminal device based on experience or experiments, which is not limited in the embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 2 can also be understood as a schematic diagram of information interaction between various components in the terminal device 100 shown in FIG. 1. As shown in FIG. 2, the process of the method includes:
  • S201 The application processor 130 detects that the user triggers an emergency call.
  • the application processor 130 sends a first instruction to the main modem 161, where the first instruction is used to instruct to close the flight mode of the main card.
  • S203 The application processor 130 starts a timer, and sets a preset duration through the timer.
  • the application processor 130 may immediately start the timer and set a preset duration while issuing the first instruction.
  • the application processor 130 may start a timer and set a preset duration.
  • the main modem 161 may send feedback information to the application processor 130 in various implementation manners. For example, after receiving the first instruction, the main modem 161 immediately sends feedback information to the application processor 130, and the feedback information is used to indicate that the main modem 161 has successfully received the first instruction.
  • the main modem 161 may send feedback information to the application processor 130, where the feedback information is used to indicate that the flight mode of the main card has been successfully closed.
  • the main modem 161 turns off the flight mode of the main card, and performs a process of searching and registering the network.
  • the application processor 130 sends a second instruction to the main modem 161, where the second instruction carries an emergency number.
  • S205 is executed after S204, but the order of S205 and S203 and S204 is not limited.
  • S205 can also be executed next to S202, that is, S205 is executed immediately after executing S202.
  • S205 and S202 can also be performed at the same time.
  • the first instruction and the second instruction may be different instructions.
  • the first instruction and the second instruction may be the same instruction, that is, the same instruction includes both the instruction information for instructing to close the flight mode of the main card and the emergency number. If the first instruction and the second instruction are the same, The instructions, S205 and S202 can be the same step.
  • the main modem 161 initiates an emergency call.
  • S207 The application processor 130 detects that the timer has expired, that is, the preset time period has been reached.
  • the application processor 130 sends a third instruction to the secondary modem 162, where the third instruction is used to instruct to close the flight mode of the secondary card.
  • the secondary modem 162 turns off the flight mode of the secondary card, and starts searching and registering the network.
  • the application processor 130 When the application processor 130 detects that the timer has expired, it sends a third command to the sub-modem 162. After receiving the third command, the sub-modem 162 turns off the flight mode of the sub-card and starts the network search process. At this time, if the terminal device 100 does not end the call through the card 1, the secondary modem 162 cannot register on the network (uplink radio frequency resources are occupied by the main modem 161). When the terminal device 100 ends the call, the secondary modem 162 starts network registration.
  • the terminal device 100 when the terminal device 100 detects that the user triggers an emergency call, it first turns off the flight mode of the main card, and sets a preset duration through a timer. When the preset time period is reached, the terminal device 100 turns off the flight mode of the secondary card to achieve the purpose of delaying the flight mode of the secondary card to be turned off.
  • Another possible implementation manner is that when the terminal device 100 detects that the user triggers an emergency call, it first turns off the flight mode of the main card, and the main card starts the network search and network registration process. When the terminal device 100 determines that the primary card has completed the network search or network registration process, it turns off the flight mode of the secondary card. In this way, the network registration process of the secondary card is prevented from affecting the network registration process of the primary card.
  • the flight mode of the main card is turned off by the main modem 161, and the main modem 161 may feedback the progress of the main card search or network registration process to the application processor 130.
  • the secondary card 162 then turns off the flight mode of the secondary card.
  • FIG. 3 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 3 can also be understood as a schematic diagram of information interaction between various components in the terminal device 100 shown in FIG. 1.
  • the process of the method includes:
  • S301 The application processor 130 detects that the user triggers an emergency call.
  • the application processor 130 sends a first instruction to the main modem 161, where the first instruction is used to instruct to close the flight mode of the main card.
  • the application processor 130 sends a second instruction to the main modem 161, where the second instruction carries an emergency number.
  • the terminal device 100 may execute S302 first and then S303, or may execute S302 and S303 at the same time.
  • the first instruction and the second instruction may use one instruction or two different instructions.
  • S302 and S303 are one step.
  • the main modem 161 turns off the flight mode of the main card, performs network search and network registration, and initiates an emergency call through the main card after the network registration.
  • S305 The application processor 130 receives response information fed back by the main modem 161.
  • the host modem 161 feeds back response information to the application processor 130.
  • the main modem 161 may feedback response information to the application processor 130, where the response information is used to indicate that the main modem 161 has completed the network search process.
  • the main modem 161 may feed back response information to the application processor 130, and the response information is used to indicate that the main modem 161 has completed the network registration process.
  • the main modem 161 can send a response message to the application processor 130 after completing the network search and network registration process and successfully dialing out the emergency number, and the response information is used to indicate that the emergency call has been successfully dialed out through the main card. number.
  • the application processor 130 sends a third instruction to the secondary modem 162, where the third instruction is used to instruct to close the flight mode of the secondary card.
  • the secondary modem 162 turns off the flight mode of the secondary card, and starts searching for the network and registering the network.
  • the response information is used to indicate that the main modem 161 has completed the network search process as an example.
  • the application processor 130 sends the response information to the assistant.
  • the modem 162 sends a third command. Since the main modem 161 has completed the network search process, and the secondary modem 162 has only introduced the third instruction, the possibility of the secondary modem 162 affecting the network search and network registration of the main modem 161 is small, thereby reducing the network registration of the main card Delay and improve emergency call efficiency.
  • the terminal device 100 when the terminal device 100 detects that the user triggers an emergency call, it can turn off the flight mode of the primary card and the secondary card at the same time, that is, the primary card and the secondary card can perform network search and network registration at the same time. process.
  • the terminal device 100 may suspend the process of the secondary card and preferentially allocate the uplink radio frequency resource to the primary modem 161 to complete the primary card as soon as possible.
  • the network registration process reduces the delay of emergency calls.
  • FIG. 4 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 4 can also be understood as a schematic diagram of information interaction between various components in the terminal device 100 shown in FIG. 1. As shown in FIG. 4, the process of the method includes:
  • S401 The application processor 130 detects that the user initiates an emergency call.
  • the application processor 130 sends a first instruction to the main modem 161, where the first instruction is used to instruct to close the flight mode of the main card;
  • S403 The application processor 130 sends a second instruction to the secondary modem 162, where the second instruction is used to instruct to close the flight mode of the secondary card.
  • the terminal device 100 may execute S402 first and then S403, or may execute S402 and S403 at the same time.
  • the main modem 161 turns off the flight mode of the main card and starts searching for a network.
  • the secondary adjustment demodulator 162 turns off the flight mode of the secondary card, and starts searching for the network and registering the network.
  • the main modem 161 When the main modem 161 starts network registration, the main modem 161 sends a first request including priority level information to the uplink radio frequency resource allocation module 163, and the first request is used to request an application for uplink radio frequency resources.
  • the uplink radio frequency resource allocation module 163 suspends the use of the uplink radio frequency by the sub-modem 162 and allocates the uplink radio frequency resource to the main modem 161.
  • the uplink radio frequency resource allocation module 163 may interrupt a task performed by the secondary modem 162 using the uplink radio frequency resource through an interrupt service process. The uplink radio frequency resource allocation module 163 then allocates the uplink radio frequency resource to the master modem 161.
  • the master modem 161 performs network registration by using the uplink radio frequency resource.
  • the main modem 161 When the main modem 161 finishes searching the network and starts network registration, it sends a first request to the upstream radio frequency resource allocation module 163. After receiving the first request, the uplink radio frequency resource allocation module 163 parses out that the first request includes priority information. At this time, if the sub-modem 162 has applied for uplink radio frequency resources to the upstream radio frequency resource allocation module 163, that is, the uplink radio frequency resources have been occupied by the sub-modem 162, the uplink radio frequency resource allocation module 163 may suspend the sub-modem 162 to the uplink radio frequency resources. And allocate uplink radio frequency resources to the main modem 161.
  • the uplink radio frequency resource allocation module 163 suspends the task performed by the secondary modem 162 using the uplink radio frequency resource, and allocates the uplink radio frequency resource to the main modem 161.
  • the master modem 161 sends the identity information of the master card to the network-side device on the uplink radio frequency resource through the RF circuit 110 to complete the network registration process of the master card.
  • the uplink radio frequency resource allocation module 163 receives the first request, if the sub-modem 162 has not yet started network registration, that is, the sub-modem 162 has not yet applied for uplink radio frequency resources to the upstream radio frequency resource allocation module 163, the uplink radio frequency resource allocation module 163
  • the uplink radio frequency resources may be directly allocated to the main modem 161.
  • S409 The application processor 130 sends a third instruction to the main modem 161, where the third instruction includes an emergency number.
  • the third instruction and the first instruction may be the same instruction or different instructions. If the first instruction and the third instruction are the same instruction, S408 and S402 are the same step. If the third instruction and the first instruction are different instructions, the execution order between S409 and S403, S404, S405, S406, S406, S407, and S408 is not limited.
  • S410 The main modem 161 initiates a call.
  • the terminal device may Suspend the use of uplink radio frequency resources by the sub-modem 162 and allocate the uplink radio frequency resources to the main modem for priority use, so as to complete the network registration process of the main card as soon as possible and reduce the delay of the emergency call.
  • the primary and secondary cards only apply for uplink radio frequency resources when needed (during network registration).
  • the terminal device can turn off the flight mode of the primary card and the secondary card at the same time.
  • the terminal device can reserve uplink radio frequency resources for the main card so that the main card can complete the network registration process as soon as possible.
  • the main modem 161 When the main modem 161 receives an instruction from the application processor 130 for instructing to close the flight mode, it may apply for uplink radio frequency resources in advance, that is, the main modem 161 starts network registration.
  • the uplink radio frequency resources were previously applied, and the sub-modem 162 can only apply for uplink radio frequency resources when the network registration is started when needed. In this way, the main modem 161 can apply for uplink radio resources earlier than the sub-modem 162.
  • the terminal device 100 reserves the uplink radio resources for the main card. For network registration, the uplink RF resources will not be occupied by the secondary card, so that the primary card completes the network registration process as soon as possible.
  • FIG. 5 is a schematic flowchart of a calling method according to an embodiment of the present application. This method can be applied to the terminal device 100 shown in FIG. 1. As shown in FIG. 5, the process of the method includes:
  • S501 The application processor 130 detects that the user initiates an emergency call.
  • the application processor 130 sends a first instruction to the main modem 161, where the first instruction is used to instruct to close the flight mode of the main card.
  • S503 The application processor 130 sends a second instruction to the secondary modem 162, where the second instruction is used to instruct to close the flight mode of the secondary card.
  • S504 The application processor 130 sends a third instruction to the main modem 161, where the third instruction includes an emergency number.
  • S502-S504 can be performed simultaneously.
  • the third instruction and the first instruction may be the same instruction or different instructions. If the first instruction and the third instruction are the same instruction, S504 and S502 are the same step.
  • the main modem 161 sends a first request to the upstream radio frequency resource allocation module 163 according to the first instruction or the third instruction, and the first request is used to request for an uplink radio frequency resource.
  • the uplink radio frequency resource allocation module 163 reserves the uplink radio frequency resources to the master modem 161.
  • the application processor 130 sends an instruction to the main modem 161 and the sub-modem 162 to instruct the flight mode to be turned off.
  • the master modem 161 sends a first request to the upstream radio frequency resource allocation module 163 according to the first instruction to apply for uplink radio frequency resources.
  • the sub-modem 162 since the sub-modem 162 can only apply for uplink radio frequency resources when it needs uplink radio resources (when performing network registration), the sub-modem 162 only receives the second instruction and starts network registration after the network search ends. Apply for uplink radio frequency resources from the uplink radio frequency resource allocation module 163. Therefore, before the secondary modem 162 applies for uplink radio frequency resources, the main modem 161 has already applied for uplink radio frequency resources.
  • the uplink radio frequency resource allocation module 163 has reserved the uplink radio frequency resources to the master modem 161.
  • the main modem 161 turns off the flight mode of the main card, starts network search and network registration, and initiates an emergency call through the main card after the network registration.
  • the secondary adjustment demodulator 162 turns off the flight mode of the secondary card, and starts searching for the network and registering the network.
  • the main modem 161 in the terminal device 100 there are multiple ways for the main modem 161 in the terminal device 100 to send the first request to the upstream RF resource allocation module 163 before the sub-modem 162. For example, after receiving the first instruction, the main modem 161 immediately sends a first request to the upstream RF resource allocation module 163. Alternatively, after receiving the third instruction, the main modem 161 immediately sends a first request to the upstream radio frequency resource allocation module 163. After receiving the first request, the uplink radio frequency resource allocation module 163 reserves the uplink radio frequency resources to the master modem 161.
  • the uplink RF resource allocation module 163 may suspend the second request, such as a second request Do not respond or discard the second request or inform the sub-modem 162 that the uplink radio frequency resources have been reserved by the main modem 161, please wait.
  • the primary modem in the terminal device may apply for uplink radio frequency resources in advance, that is, the primary modem applies for uplink radio frequency resources earlier than the secondary modem. In this way, even if the secondary card completes the network search and starts network registration first, the uplink radio frequency resources will not be occupied by the secondary card. In this way, the network registration delay of the primary card is avoided, which helps improve the efficiency of emergency calls.
  • the call is initiated by the main card by default.
  • the flight mode of the primary card and the secondary card can be turned off at the same time, that is, The primary card and the secondary card can perform the network search and network registration process at the same time. The terminal device determines which card completes the network search and network registration process in advance, and then uses which card to initiate an emergency call.
  • the mobile phone when a dual-card mobile phone is in the flight mode, if the user initiates an emergency call, the mobile phone initiates an emergency call through the main card by default, that is, after the mobile phone waits for the main card to close the flight mode and completes network search and network registration , Make an emergency call through the main card. In this process, even if the secondary card completes the network search and network registration process earlier than the primary card, the mobile phone will not use the secondary card to initiate an emergency call, but instead wait for the primary card to complete the network search and network registration, and then pass the primary card.
  • the card initiates an emergency call.
  • the terminal device may initiate an emergency call by using a card that searches for a network quickly or registers on the network to reduce the delay of the emergency call.
  • a possible implementation manner is to use the terminal device 100 shown in FIG. 1 as an example.
  • the application processor 130 in the terminal device 100 detects that the user initiates an emergency call
  • the flight mode of the main card is turned off through the main modem 161
  • the secondary modem 162 turns off the flight mode of the secondary card, that is, the primary card and the secondary card can simultaneously perform a network search and network registration process.
  • the main modem 161 can feed back the progress of network search and network registration of the main card to the application processor 130
  • the sub modem 162 can feed back the progress of network search and network registration of the sub card to the application processor 130.
  • the terminal device determines which card first completes the network search and network registration process, and then uses the card for emergency calls.
  • FIG. 6 is a schematic flowchart of a calling method according to an embodiment of the present application.
  • FIG. 6 can also be understood as a schematic diagram of information interaction between various devices in the terminal device 100 shown in FIG. 1. As shown in FIG. 6, the process of the method includes:
  • S601 The application processor 130 detects that the user initiates an emergency call.
  • the application processor 130 sends a first instruction to the main modem 161, where the first instruction is used to instruct to close the flight mode of the main card.
  • S603 The application processor 130 sends a second instruction to the secondary modem 162, where the second instruction is used to instruct to close the flight mode of the secondary card.
  • S604 The main modem 161 and the sub-modem 162 start to perform network search and network registration.
  • the application processor 130 receives response information sent by the secondary modem 162, where the response information is used to indicate that the secondary card has completed network search or network registration.
  • the response information may be information used to indicate that the secondary card has completed the network search process.
  • the response information may also be information used to indicate that the secondary card has completed network registration.
  • the application processor 130 sends a third instruction to the secondary modem 161, where the third instruction carries an emergency number.
  • S607 The secondary modem 162 initiates an emergency call.
  • the terminal device when both cards in the terminal device are in the flight mode, if the user initiates an emergency call, the terminal device can turn off the flight mode of the two cards at the same time, that is, the primary card and the secondary card can Search and register at the same time.
  • the terminal device initiates an emergency call by using a card that searches the network or the network is registered faster, so as to reduce the delay of the emergency call.
  • a terminal device may initiate an emergency call through a secondary card after the primary card fails to initiate an emergency call.
  • the terminal device when the terminal device is in the dual-card mode, when the terminal device detects that the user initiates an emergency call, the terminal device initiates an emergency call through the main card by default.
  • the dual cards in the terminal device are in the flight mode.
  • the emergency call is initiated through the main card first.
  • the secondary card can also be transmitted through the secondary card. The card initiates an emergency call to increase the success rate of the emergency call.
  • One possible implementation method is that the terminal device first turns off the flight mode of the main card, and after the main card completes the network search and network registration process, an emergency call is initiated through the main card.
  • the terminal device turns off the flight mode of the secondary card. After the secondary card completes the network search and network registration process, the emergency call is initiated through the secondary card.
  • FIG. 7 is a schematic flowchart of a calling method according to an embodiment of the present application. Taking the terminal device 100 shown in FIG. 1 as an example, FIG. 7 can also be understood as a schematic diagram of information interaction between various devices in the terminal device 100 shown in FIG. 1. As shown in FIG. 7, the process of the method includes:
  • S701 The application processor 130 detects that the user initiates an emergency call.
  • the application processor 130 sends a first instruction to the main modem 161, where the first instruction is used to instruct to close the flight mode of the main card.
  • S703 The application processor 130 sends a second instruction to the secondary modem 162, where the second instruction is used to instruct to close the flight mode of the secondary card.
  • S602 and S603 may occur one after another, or may occur simultaneously.
  • S704 The main modem 161 and the sub-modem 162 start network searching and network registration.
  • S705 The application processor 130 sends a third instruction to the main modem 161, where the third instruction includes an emergency number.
  • the third instruction and the first instruction may be the same instruction or different instructions. If the first instruction and the third instruction are the same instruction, S705 and S702 are the same step. If the third instruction and the first instruction are different instructions, the execution order between S705, S703, and S704 is not limited.
  • S706 The main modem 161 initiates a call.
  • the application processor 130 receives response information sent by the main modem 161, where the response information is used to indicate that the call fails.
  • the main modem 203 feeds back response information to the application processor 202, and the response information is used to indicate that the network search fails.
  • the main modem 203 feeds back response information to the application processor 202, and the response information is used to indicate that the network registration fails.
  • the main modem 203 fails to initiate an emergency call (for example, the main card owes a fee) after the network search and network registration are successful, it responds to the application processor 202 with response information, which is used to indicate that the emergency call fails.
  • an emergency call for example, the main card owes a fee
  • the application processor 202 sends a fourth instruction to the secondary modem 162, where the fourth instruction includes an emergency number.
  • S709 The secondary modem 162 initiates a call.
  • the terminal device may initiate an emergency call through another card after failing to initiate an emergency call through a certain card. In this way, the success rate of emergency calls can be improved.
  • two cards in the terminal device enter the flight mode at the same time, and then turn off the flight mode of the two cards at the same time, or turn off the flight mode of the main card first and then turn off the flight mode of the secondary card. Wait.
  • This embodiment of the present application also provides another embodiment.
  • the terminal device may initiate an emergency call through the card selected by the user. That is, the user can choose which card is used to initiate an emergency call. If the user selects card 1, the terminal device uses card 1 as the main card, and through any one of the foregoing embodiments or a combination of any of several implementation methods To make an emergency call.
  • FIG. 8 is a schematic diagram showing a display state of a display screen of a mobile phone.
  • both cards in the mobile phone 800 are in an airplane mode.
  • the user opens a phone application, displays a dial keypad, and enters an emergency number through the dial keypad.
  • the dial keypad of the mobile phone 800 also includes two dial controls, one of which is the dial control of card 1, and the other is the dial control of card 2.
  • the mobile phone 800 first sends a first instruction to the modem connected to the card 2, the first instruction is used to instruct to turn off the flight mode of the card 2, and the mobile phone 800 delays to turn off the flight of the card 1 Mode to prevent card 1 from affecting the network search and network registration process of card 2.
  • the mobile phone 800 displays a calling interface, as shown in FIG. 8 (b).
  • the display interface of the mobile phone 800 includes prompt information 802, which is used to indicate that a call is currently being initiated through the card 2.
  • the two cards in the terminal device may not be in the flight mode at the same time, for example, only one of the two cards is in the flight mode, and the other is in the normal working mode.
  • the terminal device detects that the user initiates an emergency call, which card is in the normal working mode, the card is used to initiate the emergency call.
  • the user may set one of the two cards in the terminal device to be in an airplane mode.
  • the user may open a setting option in the mobile phone, and set which card is in airplane mode in the setting option.
  • FIG. 9 shows a schematic diagram of an interface for setting options in a mobile phone.
  • a “flying mode” option 901 is displayed in a setting option in the mobile phone 900. After the user activates the "Flight Mode” option 801, the user enters the "Flight Mode” setting interface 902, see (b) in FIG. 11.
  • a switch control 903 of “Card 1: China Unicom” and a switch control 904 of “Card 2: China Mobile” are displayed in a setting interface 902 of “Airplane mode”.
  • the slider in the switch control 903 or the switch control 904 is on the left.
  • the slider in the switch control 804 moves to the right, and the left side of the switch control 904 displays a color, that is, the mobile phone 900 starts the flight mode of the card 2.
  • an icon 905 of the flight mode is displayed in the status bar of the mobile phone 900, which indicates that the card 2 has entered the flight mode.
  • the mobile phone 800 detects an emergency call initiated by the user and initiates an emergency call through the card 1.
  • the flight mode of the card 2 can also be turned off, and a network search and network registration can be performed, and then an emergency call is initiated through the card 2.
  • the embodiment of the present application uses a terminal device with two cards as an example, but the method ideas provided in the embodiment of the application can be applied to a terminal device with multiple cards that may be implemented in the future.
  • the calling method provided in the embodiments of the present application can be applied to various application scenarios.
  • a mobile phone is in an unlocked state, that is, the user initiates an emergency call through a phone application in the mobile phone.
  • the mobile phone is in the lock screen state, that is, the mobile phone can also initiate an emergency call when it is not unlocked.
  • the mobile phone has a shortcut icon for the phone application set in the lock screen interface. If the user triggers the shortcut icon, the dial pad is opened and the emergency number is dialed. In this case, the emergency number can be dialed without unlocking, which is convenient to operate.
  • the terminal device may include a hardware structure and / or a software module, and the functions are implemented in the form of a hardware structure, a software module, or a hardware structure and a software module. Whether one of the above functions is executed by a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and the design constraint conditions.
  • FIG. 10 shows a terminal device 1000 provided in an embodiment of the present application.
  • the terminal device 1000 may be a terminal device with a communication function.
  • the terminal device 1000 includes a first modem and a second modem.
  • the first modem is communicatively connected to the first card
  • the second modem is communicatively connected to the second card.
  • the terminal device 1000 can execute the methods in the embodiments shown in FIG. 2 to FIG. 9.
  • the terminal device 1000 includes a processing unit 1001 and a calling unit 1002. among them,
  • the processing unit 1001 is configured to turn off the flight mode of the first card through the first modem when the first card and the second card are both in the flight mode and it is detected that the user initiates an emergency call, so as to Enabling the first modem to start network searching and network registration; and turning off the flight mode of the second card through the second modem, so that the second modem starts network searching and network registration;
  • the calling unit 1002 is configured to: if the first modem completes network registration earlier than the second modem, initiate an emergency call through the first card.
  • the first card is a primary card and the second card is a secondary card.
  • the processing unit 1001 is further configured to: when the When the first modem starts network registration, if the uplink radio frequency resource is already occupied by the second modem, the use of the uplink radio frequency resource by the second modem is suspended, and the uplink radio frequency resource is allocated to the first modem. To enable the first modem to perform network registration using the uplink radio frequency resource.
  • the first card is a primary card and the second card is a secondary card.
  • the processing unit 1001 is further configured to: Before the second modem starts network registration, reserve the uplink radio frequency resource to the first modem; when the first modem starts network registration, allocate the uplink radio frequency resource to the first modem so that The first modem completes network registration through the uplink radio frequency resource.
  • the processing unit 1001 is further configured to: determine that a preset time period has passed, or determine that the first modem has successfully searched the network; or determine that the first modem has successfully registered.
  • the calling unit 1001 is further configured to: when an emergency call fails to be initiated through the first card, initiate an emergency call through the second card.
  • the processing unit 1001 is further configured to detect that the user initiates an emergency call when the first card is in a flight mode and the second card is in a normal working mode; the calling unit 1002 is further configured to When the processing unit 1001 detects that the user initiates an emergency call, the processing unit 1001 initiates an emergency call through the second card.
  • the processing unit 1001 is further configured to receive a first operation, and respond to the first operation through a display unit (not shown in FIG. 10) A setting interface is displayed, where the setting interface includes a first identifier of the first card, a second identifier of the second card, and a first switch control corresponding to the first identifier, and the second identifier A corresponding second switch control; wherein when the first switch control is activated, the terminal device turns on the flight mode of the first card, and when the second switch control is not activated, the second switch control The card is in normal working mode.
  • the processing unit 1001 turns off the flight mode of the first card through the first modem so that the first modem Start network search and network registration; after the first modem completes network registration, the calling unit 1002 initiates an emergency call through the first card.
  • the processing unit 1001 is further configured to: when the first card and the second card are both in a flight mode and a selection operation that the user chooses to initiate an emergency call through the first card is detected, The first modem turns off the flight mode of the first card, so that the first modem starts network searching and network registration; after the first modem completes network registration, the calling unit 1002 passes the first The card initiates an emergency call.
  • the processing unit 1001 is further configured to: receive a second operation, and respond to the second operation, A dial pad is displayed by a display unit (not shown in FIG. 10).
  • the dial pad includes the first dial control and the second dial control.
  • the first dial control is used to control the terminal device to pass the first dial control.
  • One card initiates an emergency call
  • the second dialing control is used to control the terminal device to initiate an emergency call through the second card.
  • the processing unit 1001 is further configured to: after the calling unit 1002 fails to initiate an emergency call through the first card, turn off the flight mode of the second card through the second modem so that all the The second modem starts network searching and network registration; after the second modem completes network registration, the calling unit 1002 initiates an emergency call through the second card.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a computer.
  • computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), read-only memory (CD-ROM), compact disc-read-only memory (CD-ROM) ROM) or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer. Also. Any connection is properly a computer-readable medium.
  • disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy discs, and Blu-ray discs, among which Discs usually reproduce data magnetically, while discs use lasers to reproduce data optically.
  • CDs compact discs
  • DVDs digital video discs
  • floppy discs floppy discs
  • Blu-ray discs among which Discs usually reproduce data magnetically, while discs use lasers to reproduce data optically. The above combination should also be included in the protection scope of the computer-readable medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Emergency Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Public Health (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

一种呼叫方法和终端设备。终端设备包括第一调制解调器和第二调制解调器,第一调制解调器与第一卡通信连接,第二调制解调器与第二卡通信连接,所述方法包括:在第一卡和第二卡均处于飞行模式,终端设备检测到用户发起紧急呼叫时,终端设备通过第一调制解调器关闭第一卡的飞行模式,以使第一调制解调器进行搜网及网络注册;并通过第二调制解调器关闭第二卡的飞行模式,以使第二调制解调器进行搜网及网络注册;若第一调制解调器早于第二调制解调器完成网络注册,终端设备通过第一卡发起紧急呼叫。通过这种方式,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。

Description

一种呼叫方法和终端设备 技术领域
本申请涉及终端设备技术领域,尤其涉及一种呼叫方法和终端设备。
背景技术
随着通信技术的发展,终端设备已经成为人们通信的最重要的工具。以手机为例,两个用户可以通过手机建立语音或视频通话等。而且,在某些紧急情况下,手机中的紧急呼叫功能可以为用户提供方便快捷的帮助,用户可以在手机上拨打紧急呼叫号码,寻求帮助。紧急呼叫功能在手机处于飞行模式时,也可以使用。手机检测到用户发起紧急呼叫时,关闭飞行模式,当手机关闭飞行模式,完成搜网注册过程后,手机发起紧急呼叫。
为了满足用户的需要,目前的手机可以设置有双用户身份识别卡(subscriber identification module,SIM)卡。该手机处于飞行模式时,两张SIM卡均处于飞行模式,若用户发起紧急呼叫,手机默认通过主SIM卡发起呼叫。在主SIM卡发起呼叫之前,需要完成主SIM卡的搜网注册过程。而现有技术中,手机检测到用户触发紧急呼叫时,同时关闭两张SIM卡的飞行模式,即两张SIM卡几乎同时进行搜网注册过程。主SIM卡和副SIM卡同时进行搜网注册的话,会存在干扰(比如主SIM卡的搜网注册过程需要的上行射频资源可能会被副SIM卡占用),导致主SIM卡延迟注册,进而导致紧急呼叫延迟。
发明内容
本申请提供一种呼叫方法和终端设备,用以减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
第一方面,本申请实施例提供一种呼叫方法,该方法应用于终端设备,所述终端设备包括第一调制解调器和第二调制解调器,所述第一调制解调器与第一卡通信连接,所述第二调制解调器与第二卡通信连接,所述方法包括:在所述第一卡和所述第二卡均处于飞行模式,所述终端设备检测到用户发起紧急呼叫时,所述终端设备通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;并通过所述第二调制解调器关闭所述第二卡的飞行模式,以使所述第二调制解调器开始搜网及网络注册;若所述第一调制解调器早于所述第二调制解调器完成网络注册,所述终端设备通过所述第一卡发起紧急呼叫。
在本申请实施例中,当两张卡均处于飞行模式时,而终端设备检测到用户发起紧急呼叫时,终端设备可以分别关闭两张卡的飞行模式,两种卡中哪一张卡最先完成网络注册,终端设备用哪张卡发起紧急呼叫。通过这种方式,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,所述第一卡为主卡,所述第二卡为副卡,在所述终端设备通过所述第一卡发起紧急呼叫之前,当所述第一调制解调器开始网络注册时,若上行射频资源已被所述第二调制解调器占用,所述终端设备暂停所述第二调制解调器对所述上行射频资源的使用,并将所述上行射频资源分配给所述第一调制解调器,以使所述第一调制解调器使用所述上行射频资源完成网络注册。
在本申请实施例中,在第一调制解调器开始网络注册时,如果上行射频资源被第二调 制解调器占用,终端设备可以暂停第二调制解调器对所述上行射频资源的使用,将上行射频资源分配给第一调制解调器。通过这种方式,终端设备可以避免第二调制解调器对第一调制解调器的网络注册产生的影响,可以尽快完成主卡的网络注册过程,进而尽快通过主卡发起紧急呼叫,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,所述第一卡为主卡,所述第二卡为副卡,在所述终端设备通过所述第一卡发起紧急呼叫之前,且在所述第二调制解调器开始网络注册之前,所述终端设备将所述上行射频资源预留给所述第一调制解调器;当所述第一调制解调器开始网络注册时,所述终端设备将所述上行射频资源分配给所述第一调制解调器,以使所述第一调制解调器使用所述上行射频资源进行网络注册。
在本申请实施例中,在第二调制解调器开始网络注册之前,所述终端设备已经将所述上行射频资源预留给所述第一调制解调器。通过这种方式,终端设备可以避免第二调制解调器对第一调制解调器的网络注册产生影响,可以尽快完成主卡的网络注册过程,进而尽快通过主卡发起紧急呼叫,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,在所述终端设备通过第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册之后,在通过第二调制解调器关闭所述第二卡的飞行模式之前,所述终端设备确定已过预设时长,或者所述终端设备确定所述第一调制解调器搜网成功;或者所述终端设备确定所述第一调制解调器网络注册成功。
在本申请实施例中,终端设备在关闭第一卡和第二卡的飞行模式时,可以采用一定的策略。比如,终端设备先关闭第一卡的飞行模式,在预设时长之后,再关闭第二卡的飞行模式。再比如,终端设备先关闭第一卡的飞行模式,当第一卡搜网成功后,再关闭第二卡的飞行模式。再比如,终端设备先关闭第一卡的飞行模式,当第一卡网络注册成功后,再关闭第二卡的飞行模式。通过这种方式,终端设备可以先关闭第一卡的飞行模式,延后关闭第二卡的飞行模式,尽可能的避免第二调制解调器对第一调制解调器的网络注册过程的影响,可以尽快完成主卡的网络注册过程,进而尽快通过主卡发起紧急呼叫,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,若所述终端设备通过所述第一卡发起紧急呼叫失败,所述终端设备通过所述第二卡发起紧急呼叫。
在本申请实施例中,终端设备通过第一卡发起紧急呼叫失败后,可以通过第二卡发起紧急呼叫。通过这种方式,提高紧急呼叫的成功率。
在一种可能的设计中,在所述第一卡处于飞行模式,所述第二卡处于正常工作模式,所述终端设备检测到用户发起紧急呼叫时,所述终端设备通过所述第二卡发起紧急呼叫。
在本申请实施例中,终端设备中的两张卡可以不同时处于飞行模式,比如第一卡处于飞行模式,第二卡处于正常工作模式。此时,如果终端设备检测到用户发起紧急呼叫,终端设备可以通过处于正常工作模式的第二卡发起紧急呼叫。通过这种方式,终端设备检测到用户发起紧急呼叫时,使用处于正常工作模式的卡发起紧急呼叫,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,在所述终端设备检测到用户发起紧急呼叫之前,还包括:所述终端设备接收第一操作;所述终端设备响应于所述第一操作,显示设置界面,所述设置界面中包括所述第一卡的第一标识、所述第二卡的第二标识,以及与所述第一标识对应的第一开关控件,与所述第二标识对应的第二开关控件;其中,当所述第一开关控件被激活时, 所述终端设备开启所述第一卡的飞行模式,当所述第二开关控件未被激活时,所述第二卡处于正常工作模式。
在本申请实施例中,用户可以自己的需求选择设置两张卡中哪一张卡处于飞行模式,方便用户操作,提高用户体验。
在一种可能的设计中,若所述终端设备通过所述第二卡发起紧急呼叫失败,所述终端设备通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;在所述第一调制解调器完成网络注册后,所述终端设备通过所述第一卡发起紧急呼叫。
在本申请实施例中,终端设备中的两张卡可以不同时处于飞行模式,此时,如果终端设备检测到用户发起紧急呼叫,终端设备可以通过处于正常工作模式的卡发起紧急呼叫。如果通过该卡发起紧急呼叫失败,终端设备可以通过另一张卡发起紧急呼叫。
在一种可能的设计中,在所述第一卡和所述第二卡均处于飞行模式,且所述终端设备检测到用户选择通过所述第一卡发起紧急呼叫的选择操作时;所述终端设备通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;在所述第一调制解调器完成网络注册后,所述终端设备通过所述第一卡发起紧急呼叫。
在本申请实施例中,终端设备中的两张卡均处于飞行模式时,终端设备可以根据用户所选择的卡发起紧急呼叫。通过这种方式,有助于提高用户体验。
在一种可能的设计中,在所述终端设备检测到用户选择通过所述第一卡发起紧急呼叫的选择操作之前,所述终端设备接收第二操作;所述终端设备响应于所述第二操作,显示拨号键盘,所述拨号键盘中包括所述第一拨号控件和第二拨号控件,其中,所述第一拨号控件被选择触发时,所述终端设备通过所述第一卡发起紧急呼叫,所述第二拨号控件被选择触发时,所述终端设备通过所述第二卡发起紧急呼叫。
在本申请实施例中,终端设备可以在拨号键盘输入紧急号码后,通过两个拨号控件选择用哪张卡发起紧急呼叫,方便用户操作,提高用户体验。
在一种可能的设计中,若所述终端设备通过所述第一卡发起紧急呼叫失败,所述终端设备通过所述第二调制解调器关闭所述第二卡的飞行模式,以使所述第二调制解调器进行搜网及网络注册;在所述第二调制解调器完成网络注册后,所述终端设备通过所述第二卡发起紧急呼叫。
在本申请实施例中,如果终端设备根据用户所选择的卡发起紧急呼叫失败,终端设备可以通过另一张卡发起紧急呼叫。通过这种方式,提高紧急呼叫的成功率。
第二方面,本申请实施例提供一种终端设备,所述终端设备具有第一卡槽和第二卡槽,分别用于插入第一卡和第二卡,所述终端设备包括第一调制解调器和第二调制解调器,在所述第一卡槽和第二卡槽插入第一卡和第二卡的情况下,分别与第一卡和第二卡通信连接,所述终端设备还包括:输入设备和应用处理器,其中,输入设备,用于接收用户的输入;
应用处理器,用于确定所述用户的输入用于发起紧急呼叫,且所述第一卡和所述第二卡均处于飞行模式时,向所述第一调制解调器发送第一指令,向所述第二调制解调器发送第二指令;
所述第一调制解调器,用于根据所述第一指令关闭所述第一卡的飞行模式,并进行搜网及网络注册;
所述第二调制解调器,用于根据所述第二指令关闭所述第二卡的飞行模式,并进行搜 网及网络注册;
所述应用处理器还用于在所述第一调制解调器早于所述第二调制解调器完成网络注册的情况下,通过所述第一卡发起所述紧急呼叫。
在本申请实施例中,当两张卡均处于飞行模式时,而终端设备检测到用户发起紧急呼叫时,终端设备可以分别关闭两张卡的飞行模式,两种卡中哪一张卡最先完成网络注册,终端设备用哪张卡发起紧急呼叫。通过这种方式,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,所述第一卡槽为主卡槽,所述第二卡槽为副卡槽;所述第二调制解调器还用于在进行网络注册前,发送第一请求;所述第一请求用于请求进行网络注册所需的上行射频资源;所述终端设备还包括:上行射频资源分配模块,用于根据所述第一请求将所述上行射频资源分配给所述第二调制解调器;
所述第二调制解调器还用于使用所述上行射频资源进行网络注册;
所述第一调制解调器还用于在进行网络注册前,向所述上行射频资源分配模块发送第二请求,所述第二请求中携带优先等级信息;
所述上行射频资源分配模块还用于根据所述第二请求中的优先等级信息暂停所述第二调制解调器对所述上行射频资源的使用,并将所述上行射频资源分配给所述第一调制解调器;
所述第一调制解调器还用于使用所述上行射频资源上进行网络注册。
在本申请实施例中,在第一调制解调器开始网络注册时,如果上行射频资源被第二调制解调器占用,终端设备可以暂停第二调制解调器对所述上行射频资源的使用,将上行射频资源分配给第一调制解调器。通过这种方式,终端设备可以避免第二调制解调器对第一调制解调器的网络注册产生的影响,可以尽快完成主卡的网络注册过程,进而尽快通过主卡发起紧急呼叫,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,所述第一卡槽为主卡槽,所述第二卡槽为副卡槽;所述第一调制解调器还用于在所述第二调制解调器进行网络注册之前,发送第三请求,所述第三请求用于请求给所述第一调制解调器预留上行射频资源;所述终端设备还包括:上行射频资源分配模块,用于根据所述第三请求,将收到的所述第二调制解调器发送的用于申请上行射频资源的第四请求挂起;所述上行射频资源分配模块在所述第一调制解调器使用所述上行射频资源前接收到所述第四请求;
所述第一调制解调器还用于使用所述上行射频资源进行网络注册。
在本申请实施例中,在第二调制解调器开始网络注册之前,所述终端设备已经将所述上行射频资源预留给所述第一调制解调器,在此期间,上行射频资源不会被副调制解调器占用。通过这种方式,终端设备可以避免第二调制解调器对第一调制解调器的网络注册产生影响,可以尽快完成主卡的网络注册过程,进而尽快通过主卡发起紧急呼叫,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,所述应用处理器在用于向所述第一调制解调器发送第一指令,向所述第二调制解调器发送第二指令时,具体用于:所述应用处理器向所述第一调制解调器发送第一指令;所述应用处理器在经过预设时长后,或者在接收到所述第一调制解调器反馈的用于指示所述第一调制解调器已搜网成功的响应信息后,或者在接收到所述第一调制解调器反馈的用于指示所述第二调制解调器已注册成功的响应信息后,向所述第二调制 解调器发送第二指令。
在本申请实施例中,终端设备在关闭第一卡和第二卡的飞行模式时,可以采用一定的策略。比如,终端设备先关闭第一卡的飞行模式,在预设时长之后,再关闭第二卡的飞行模式。再比如,终端设备先关闭第一卡的飞行模式,当第一卡搜网成功后,再关闭第二卡的飞行模式。再比如,终端设备先关闭第一卡的飞行模式,当第一卡网络注册成功后,再关闭第二卡的飞行模式。通过这种方式,终端设备可以先关闭第一卡的飞行模式,延后关闭第二卡的飞行模式,尽可能的避免第二调制解调器对第一调制解调器的网络注册过程的影响,可以尽快完成主卡的网络注册过程,进而尽快通过主卡发起紧急呼叫,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,所述应用处理器还用于在通过所述第一卡发起紧急呼叫失败时,通过所述第二卡发起紧急呼叫。
在本申请实施例中,终端设备通过第一卡发起紧急呼叫失败后,可以通过第二卡发起紧急呼叫。通过这种方式,提高紧急呼叫的成功率。
在一种可能的设计中,所述应用处理器还用于确定所述用户的输入用于发起紧急呼叫,且所述第一卡处于飞行模式,所述第二卡处于正常工作模式时,通过所述第二卡发起所述紧急呼叫。
在本申请实施例中,终端设备中的两张卡可以不同时处于飞行模式,比如第一卡处于飞行模式,第二卡处于正常工作模式。此时,如果终端设备检测到用户发起紧急呼叫,终端设备可以通过处于正常工作模式的第二卡发起紧急呼叫。通过这种方式,终端设备检测到用户发起紧急呼叫时,使用处于正常工作模式的卡发起紧急呼叫,减少终端设备发起紧急呼叫的时延,提高紧急呼叫的效率。
在一种可能的设计中,所述终端设备还包括显示屏,用于显示设置界面,所述设置界面中包括所述第一卡的第一标识、所述第二卡的第二标识,以及与所述第一标识对应的第一开关控件,与所述第二标识对应的第二开关控件;其中,当所述第一开关控件被激活时,所述终端设备开启所述第一卡的飞行模式,当所述第二开关控件未被激活时,所述第二卡处于正常工作模式。
在本申请实施例中,终端设备的显示屏显示设置界面,用户可以自己的需求在设置界面中选择设置两张卡中哪一张卡处于飞行模式,方便用户操作,提高用户体验。
在一种可能的设计中,所述应用处理器还用于在通过所述第二卡发起紧急呼叫失败时,向所述第一调制解调器发送第三指令,所述第一调制解调器还用于根据所述第三指令关闭所述第一卡的飞行模式,并进行搜网及网络注册;
所述应用处理器还用于在所述第一调制解调器完成网络注册的情况下,通过所述第一卡发起紧急呼叫。
在本申请实施例中,终端设备中的两张卡可以不同时处于飞行模式,此时,如果终端设备检测到用户发起紧急呼叫,终端设备可以通过处于正常工作模式的卡发起紧急呼叫。如果通过该卡发起紧急呼叫失败,终端设备可以通过另一张卡发起紧急呼叫。
在一种可能的设计中,所述输入设备还用于接收用户输入的选择操作;
所述应用处理器还用于确定所述选择操作用于选择通过所述第一卡发起紧急呼叫,且所述第一卡和所述第二卡均处于飞行模式时,向所述第一调制解调器发送第四指令;
所述第一调制解调器还用于根据所述第四指令关闭所述第一卡的飞行模式,并进行搜 网及网络注册;
所述应用处理器还用于在所述第一调制解调器完成网络注册后,通过所述第一卡发起紧急呼叫。
在本申请实施例中,终端设备中的两张卡均处于飞行模式时,终端设备可以根据用户所选择的卡发起紧急呼叫。通过这种方式,有助于提高用户体验。
在一种可能的设计中,所述终端设备还包括显示屏,用于显示拨号键盘,所述拨号键盘中包括所述第一拨号控件和第二拨号控件,其中,当所述第一拨号控件被选择触发时,所述终端设备通过所述第一卡发起紧急呼叫,当所述第二拨号控件被选择触发时,所述终端设备通过所述第二卡发起紧急呼叫。
在本申请实施例中,终端设备的显示屏显示拨号交,用户可以在拨号键盘输入紧急号码后,通过两个拨号控件选择用哪张卡发起紧急呼叫,方便用户操作,提高用户体验。
在一种可能的设计中,所述应用处理器还用于在通过所述第一卡发起紧急呼叫失败后,向所述第二调制解调器发送第五指令;所述第二调制解调器还用于根据所述第五指令关闭所述第二卡的飞行模式,并进行搜网及网络注册;
所述应用处理器还用于在所述第二调制解调器完成注册后,通过所述第二卡发起紧急呼叫。
在本申请实施例中,如果终端设备根据用户所选择的卡发起紧急呼叫失败,终端设备可以通过另一张卡发起紧急呼叫。通过这种方式,提高紧急呼叫的成功率。
第三方面,本申请实施例还提供了一种终端设备,所述终端设备包括执行第一方面或者第一方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第四方面,本申请实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在终端设备上运行时,使得所述终端设备执行第一方面或上述第一方面的任意一种可能的设计的方法。
第五方面,本申请实施例还提供一种包含计算机程序产品,当所述计算机程序产品在终端设备上运行时,使得所述终端设备执行第一方面或上述第一方面的任意一种可能的设计的方法。
附图说明
图1为本申请一实施例提供的一种终端设备的结构示意图;
图2为本申请一实施例提供的一种呼叫方法的流程示意图;
图3为本申请一实施例提供的一种呼叫方法的流程示意图;
图4为本申请一实施例提供的一种呼叫方法的流程示意图;
图5为本申请一实施例提供的一种呼叫方法的流程示意图;
图6为本申请一实施例提供的一种呼叫方法的流程示意图;
图7为本申请一实施例提供的一种呼叫方法的流程示意图;
图8为本申请一实施例提供的手机显示屏的显示状态的示意图;
图9为本申请一实施例提供的手机显示屏的显示状态的示意图;
图10为本申请一实施例提供的终端设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
以下,对本申请实施例中的部分用语进行说明,以便于本领域技术人员理解。
1)、本申请实施例涉及的终端设备,又可以称为用户设备(user equipment,UE),例如,智能手机、平板电脑、各类可穿戴设备、车载设备等。终端设备中可以安装各种应用程序(application,简称app),比如微信、支付宝、腾讯聊天软件(QQ)、钉钉、照片分享(instagram)、Kakao Talk、连我(Line)等。
2)、本申请实施例涉及的多个,是指大于或等于两个。
3)、为了简化描述,本申请实施例中将主SIM卡简称为主卡,将副SIM卡简称为副卡,双SIM卡简称为双卡。
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
下面介绍与本申请相关的背景技术。
目前,部分双卡终端设备在生产时,鉴于两个原因,一个终端设备只设置了一组上行射频资源。其中一个原因为,为了节省成本,只设置一组上行射频资源,以供两张卡使用,当一张卡通过该上行射频资源进行业务时,另一张卡只能处于待机状态(待机状态下不使用该上行射频资源)。另一个原因为,终端设备硬件上的配置无法实现两张卡同时通过上行射频资源进行业务,所以也就没有必要设置两组上行射频资源。比如终端设备只有一个扬声器,当卡1在进行语音通话(使用上行射频资源)时,卡2只能通话保持(无需使用上行射频资源),所以卡1和卡2共用一组上行射频资源即可。
当双卡终端设备处于飞行模式时,若用户发起紧急呼叫,终端设备默认通过主卡发起呼叫。而现有技术中,终端设备检测到用户触发紧急呼叫时,同时关闭两张卡的飞行模式,即两张卡几乎同时进行搜网及网络注册的过程。而无论是主卡还是副卡,其网络注册过程都是需要使用上行射频资源的。对于这些设置有一组上行射频资源的双卡终端设备来说,主卡和副卡在网络注册过程中也只能共用一组上行射频资源。因此,副卡可能会对主卡的网络注册过程造成影响。比如,主卡和副卡同时开始搜网及网络注册的话,若副卡相较于主卡提前完成搜网,并提前网络注册时,便会提前占用上行射频资源,那么主卡只能等到该副卡完成网络注册并释放该上行射频资源后,再通过该上行射频资源完成网络注册过程。因此,主卡的网络注册过程被延迟,进而导致紧急呼叫被延迟。
本申请实施例提供了一种呼叫方法和终端设备,该方法适用于终端设备中。请参见图1,为本申请实施例提供的一种终端设备的结构示意图。终端设备100包括:射频(radio frequency,RF)电路110、存储器120、应用处理器(application processor,AP)130、输入单元140、显示单元150、基带处理器(baseband processor,BP)160、音频电路180等部件。其中,基带处理器160包括主调制解调器(modem)161、副调制解调器162和上行射频资源分配模块163。本领域技术人员可以理解,图1中示出的终端设备的结构并不构成对终端设备的限定,本申请实施例提供的终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。尽管未示出,所述终端设备100还可以包括至少一种传感器、摄像头、电源等,在此不再赘述。
下面结合图1对所述终端设备100的各个构成部件进行具体的介绍:
所述RF电路110可用于通信或通话过程中,数据的接收和发送。通常,所述RF电路 110包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。在图1中,所述RF电路110与主调制解调器161和副调制解调器162连接,在实际应用中,所述RF电路110也可以被应用处理器130和基带处理器160共享,即应用处理器130也可以与所述RF电路110连接(图1中未示出),应用处理器130通过所述RF电路110接收或者发送数据。
此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。
当然,终端设备100与其它设备通信的方式不限于RF电路110,还可以有其它方式,比如短距离无线传输技术包括蓝牙技术、WiFi技术等。以wifi技术为例,所述终端设备100可以通过WiFi模块(图1中未示出)连接接入点(access point,AP),从而实现数据网络的访问。所述WiFi模块可用于通信过程中,数据的接收和发送。此外,所述终端设备100还可以通过通信接口(图1中未示出)比如USB接口与其他设备实现物理连接。可选的,所述通信接口与所述其他设备的通信接口通过电缆连接,实现所述终端设备100和其它设备之间的数据传输。
由于在本申请实施例中,所述终端设备100能够实现通信业务,向其他联系人发起呼叫,因此所述终端设备100需要实现数据传输功能,即终端设备100中需要包含通信模块。虽然前述提到了所述RF电路110、所述WiFi模块、和所述通信接口等通信模块,但是可以理解的是,所述终端设备100中存在上述部件中的至少一个或者其它用于实现通信的通信模块,以进行数据传输。例如,当所述终端设备100为手机时,所述终端设备100可以包含所述RF电路110,还可以包含所述WiFi模块;当所述终端设备100为计算机时,所述终端设备100可以包含所述通信接口,还可以包含所述WiFi模块;当所述终端设备100为平板电脑时,所述终端设备100可以包含所述WiFi模块。
如图1所示,终端设备100中还包括存储器120。所述存储器120可用于存储软件程序和/或模块。所述应用处理器130通过运行存储在所述存储器120的软件程序和/或模块,从而执行所述终端设备100的各种功能以及数据处理。
可选的,所述存储器120可以包括存储程序区和存储数据区。其中,存储数据区可存储比如各种图片、视频文件等多媒体文件等;存储程序区可存储有终端设备100中已安装的各个应用程序的软件程序和/或模块,所述应用处理器130在运行存储器120中存储的某个应用程序的软件程序和/或模块时,通过该应用程序实现相应的功能。
此外,所述存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其它易失性固态存储器件。
如图1所示,终端设备100中还包括输入单元140。所述输入单元140可用于接收用户输入的数字或字符信息,以及产生与所述终端设备100的用户设置以及功能控制有关的键信号输入。
可选的,输入单元140可包括触控面板141以及其它输入设备142。
其中,所述触控面板141,也称为触摸屏,可收集用户在其上或附近的触摸操作(比 如用户使用手指、触笔等任何适合的物体或附件在所述触控面板141上或在所述触控面板141附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,所述触控面板141可以包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给所述应用处理器130,并能接收所述应用处理器130发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触控面板141。
可选的,所述其它输入设备142可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
如图1所示,终端设备100中还包括显示单元150。所述显示单元150可用于显示由用户输入的信息或提供给用户的信息以及所述终端设备100的各种菜单。所述显示单元150即为所述终端设备100的显示系统,用于呈现界面,实现人机交互。
所述显示单元150可以包括显示面板151。可选的,所述显示面板151可以采用液晶显示屏(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置。
进一步的,所述触控面板141可覆盖所述显示面板151,当所述触控面板141检测到在其上或附近的触摸操作后,传送给所述应用处理器130以确定触摸事件的类型,随后所述应用处理器130根据触摸事件的类型在所述显示面板151上提供相应的视觉输出。
虽然在图1中,所述触控面板141与所述显示面板151是作为两个独立的部件来实现所述终端设备100的输入和输入功能,但是在某些实施例中,可以将所述触控面板141与所述显示面板151集成而实现所述终端设备100的输入和输出功能。
如图1所示,终端设备100还包括音频电路180、麦克风181和扬声器182,可提供用户与终端设备100之间的音频接口。音频电路180可用于将音频数据转换为扬声器182能够识别的信号,并将信号传输到扬声器182,由扬声器182转换为声音信号输出。麦克风181用于收集外部的声音信号(如人说话的声音、或者其它声音等),并将收集的外部的声音信号转换为音频电路180能够识别的信号,发送给音频电路180。音频电路180还可用于将麦克风181发送的信号转换为音频数据,再将音频数据输出至RF电路110以发送给比如另一终端设备,或者将音频数据输出至存储器120以便后续进一步处理。
如图1所示,终端设备100中还包括应用处理器130。所述应用处理器130主要负责运行操作系统、应用程序、用户界面等,所以应用处理器130与输入单元140、显示单元150等部件连接。应用处理器130通过运行或执行存储在所述存储器120内应用程序的软件程序和/或模块,以及调用存储在所述存储器120内的数据,执行所述终端设备100的各种功能和处理数据,从而实现基于所述终端设备的多种业务。
如图1所示,终端设备100中还包括基带处理器160。基带处理器160用于负责终端设备100的通信业务,比如终端设备100的打电话、发短信等业务。基带处理器160中包括主调制解调器161、副调制解调器162和上行射频资源分配模块163。其中,主调制解调器161与主卡通信连接,用于控制开启或关闭主卡的飞行模式,以及负责主卡的搜网及网络注册的过程。副调制解调器162与副卡通信连接,用于控制开启或关闭副卡的飞行模式,以及负责副卡的搜网及网络注册的过程。上行射频资源分配模块163与主调制解调器161和副调制解调器162分别连接,用于为主调制解调器161或副调制解调器162分配上 行射频资源。
其中,搜网及网络注册的过程,具体可以包括搜网过程和网络注册过程。在搜网过程中,终端设备100进行小区搜索,并在搜索到合适的小区后驻留在该小区。通常,一个终端设备设置有两套下行射频资源,所以主卡和副卡的搜网过程,可以在各自的下行射频资源上进行。比如,主卡搜网时,主调制解调器161通过RF电路110在与主卡对应的下行射频资源上接收网络侧设备广播的小区信息,在确定合适的小区后,驻留在该小区。副卡的搜网过程类似。
在网络注册过程中,终端设备100通过RF电路110向网络侧设备发送主卡的身份信息,以验证其合法性。由于在网络注册过程中,终端设备100需要向网络侧设备发送信息,所以在网络注册过程中,终端设备100需要上行射频资源。其中,上行射频资源分配模块163可以为主调制解调器161或者副调制解调器162分配上行射频资源。以主卡为例,在网络注册过程中,主调制解调器161可以向上行射频资源分配模块163发送第一请求,该第一请求用于申请上行射频资源,上行射频资源分配模块163接收到该第一请求后,为主调制解调器161分配上行射频资源。然后主调制解调器161通过RF电路110在该上行射频资源上向网络侧设备发送主卡的身份信息(对副调制解调器162来说也是类似的过程)。具体而言,主调制解调器161将身份信息发送给基带处理器160中的数字信号处理器(digital signal processor,DSP)(图1中未示出),DSP将身份信息以数字信号形式转换为射频信号形式,并将射频信号通过RF电路110发送给网络侧设备。可选的,DSP可以是集成于主调制解调器161中,也可以不集成于主调制解调器161中。如果DSP集成于主调制解调器161中,主调制解调器161自身将身份信息以数字信号形式转换为射频信号形式,并将射频信号通过RF电路110发送给网络侧设备。基带处理器160中可以包括一个DSP或者两个DSP。如果基带处理器160包括两个DSP,主调制解调器161与其中一个DSP连接(或者其中一个DSP集成于主调制解调器161中),副调制解调器与另一个DSP连接(或者另一个DSP集成于副调制解调器162中)。如果基带处理器160包括一个DSP,该DSP可以不集成于主调制解调器161或副调制解调器162中,而且该DSP分别与主调制解调器161和副调制解调器162连接。
当终端设备100完成主卡的网络注册之后,即可通过主卡进行紧急呼叫,即终端设备100通过RF电路110将紧急号码发送给网络侧设备,通过网络侧设备向与紧急号码对应的被呼叫设备发起呼叫。具体而言,应用处理器130通过输入单元140检测到用户输入紧急号码后,应用处理器130将包含所述紧急号码的指令发送给主调制解调器161,主调制解调器161通过DSP将紧急号码以数字信号转变为射频信号,并通过RF电路110将所述射频信号形式的紧急号码发送给网络侧设备。
可选的,终端设备100可以在出厂时设置好这两个调制解调器哪一个作为主调制解调器161,哪一个作为副调制解调器162。比如,终端设备100中具备第一卡槽和第二卡槽(图1中未示出),其中,第一卡槽默认为主卡槽,第二卡槽默认为副卡槽,与第一卡槽连接的调制解调器为主调制解调器161,与第二卡槽连接的调制解调器为副调制解调器162;其中,当第一卡槽被插入第一卡时,默认第一卡为主卡,主调制解调器161可以与主卡通信连接;当第二卡槽被插入第二卡时,默认第二卡为副卡,副调制解调器162可以与副卡通信连接)。或者,用户在使用终端设备100的过程中可以自定义哪个是主调制解调器161,哪一个是副调制解调器162。比如,终端设备100中具有卡1和卡2,用户设置卡2为主 卡时,与卡2通信连接的调制解调器便成为主调制解调器161,而另一个调制解调器便成为副调制解调器162。
在本申请实施例中,为了尽量避免副卡的网络注册过程对主卡的网络注册过程产生影响,当终端设备中的双卡均处于飞行模式时,若终端设备检测到用户发起紧急呼叫,可以先关闭主卡的飞行模式,并延迟关闭副卡的飞行模式,即延迟副卡的搜网网络注册过程,使得主卡可以快速的完成网络注册,进而快速的通过主卡发起紧急呼叫。
请继续参见图1所示,终端设备100通过本申请实施例提供的呼叫方法发起紧急呼叫的过程如下:
如前述内容,存储器120中存储有各个应用程序的软件程序和/或模块,这里的应用程序可以是终端设备100中能够发起紧急呼叫的应用程序,比如电话应用121。应用处理器130在运行存储器120中存储的电话应用121的软件程序和/模块时,可以通过显示单元150显示电话应用121的显示界面,该显示界面中包括拨号键盘。应用处理器130可以通过输入单元140检测用户在所述拨号键盘中发起紧急呼叫。比如,应用处理器130可以通过输入单元140检测到用户在拨号键盘中输入紧急号码110,并触发了拨号控件。
可选的,终端设备100中可以存储有包含紧急号码的清单。当终端设备100通过输入单元140检测到用户在拨号键盘中输入一电话号码时,终端设备100可以将该电话号码与该清单中的紧急号码进行比较。若用户输入的电话号码存在于该清单中,说明用户输入的电话号码是紧急号码,即用户发起的是紧急呼叫。
当应用处理器130通过输入单元140检测到用户发起紧急呼叫时,应用处理器130可以先向主调制解调器161发送第一指令,该第一指令用于指示关闭主卡的飞行模式。此时,应用处理器130还并未向副调制解调器162发送用于指示关闭副卡的飞行模式的指令。主调制解调器161接收到第一指令后,关闭主卡的飞行模式,并开始主卡的搜网及网络注册过程。一段时间后,应用处理器130向副调制解调器162发送第二指令,该第二指令用于指示关闭副卡的飞行模式的指令。副调制解调器162接收到第一指令后,关闭副卡的飞行模式,并开始副卡的搜网及网络注册过程。
在本申请实施例中,终端设备100延迟关闭副卡的飞行模式,进而延迟副卡的搜网及网络注册过程,尽可能的避免副卡的网络注册过程对主卡的网络注册过程产生影响,尽量减少主卡的网络注册的时延,从而提高紧急呼叫效率。
下面介绍终端设备100延迟关闭副卡的飞行模式的两种实现方式。
一种可能的实现方式为,终端设备100检测到用户触发紧急呼叫时,关闭主卡的飞行模式,并且开启定时器,通过该定时器设置预设时长。当达到预设时长后,终端设备100再关闭副卡的飞行模式。
可选的,预设时长的具体值,终端设备的生产商可以根据经验或者实验获得,本申请实施例不作限定。
请参见图2所示,为本申请实施例提供的呼叫方法的流程示意图。图2也可以理解为图1所示的终端设备100中各个部件之间的信息交互示意图。如图2所示,该方法的流程包括:
S201:应用处理器130检测到用户触发紧急呼叫。
S202:应用处理器130向主调制解调器161发送第一指令,所述第一指令用于指示关闭主卡的飞行模式。
S203:应用处理器130开启定时器,并通过定时器设置预设时长。
作为第一种示例,应用处理器130可以在发出第一指令的同时,立即开启定时器,并设置预设时长。
作为第二种示例,应用处理器130可以在接收到主调制解调器161发送的反馈信息后,开启定时器,并设置预设时长。示例性的,主调制解调器161接收到第一指令后,向应用处理器130发送反馈信息可以有多种实现方式。比如,主调制解调器161在接收到第一指令后,立即向应用处理器130发送反馈信息,该反馈信息用于指示主调制解调器161已成功接收到第一指令。或者,主调制解调器161可以在接收到第一指令,并关闭主卡的飞行模式后,再向应用处理器130发送反馈信息,该反馈信息用于指示已经成功关闭主卡的飞行模式。
S204:主调制解调器161关闭主卡的飞行模式,并进行搜网及网络注册的过程。
如前述内容可知,S203和S204之间没有严格的先后顺序。
S205:应用处理器130向主调制解调器161发送第二指令,该第二指令中携带紧急号码。
在图2中,S205在S204之后执行,但S205和S203、S204之前的先后顺序不限定。比如,S205还可以紧挨着S202执行,即执行完S202立即执行S205。当然,S205和S202也可以同时进行。S205和S202同时进行时,第一指令和第二指令可以是不同的指令。或者,第一指令和第二指令也可以是同一指令,即该同一指令中既包括用于指示关闭主卡的飞行模式的指示信息,也包括紧急号码,若第一指令和第二指令是同一指令,S205和S202可以是同一步骤。
S206;主调制解调器161发起紧急呼叫。
S207:应用处理器130检测到定时器超时,即已达到设置的预设时长。
S208:应用处理器130向副调制解调器162发送第三指令,该第三指令用于指示关闭副卡的飞行模式。
S209:副调制解调器162关闭副卡的飞行模式,并开始搜网及网络注册。
应用处理器130检测到定时器超时,便向副调制解调器162发送第三指令,副调制解调器162接收到第三指令后,关闭副卡的飞行模式,并开始搜网过程。此时,如果终端设备100通过卡1通话未结束,副调制解调器162无法网络注册(上行射频资源被主调制解调器161占用),当终端设备100通话结束后,副调制解调器162开始网络注册。
通过以上描述可知,终端设备100检测到用户触发紧急呼叫时,先关闭主卡的飞行模式,并通过定时器设置预设时长。当达到预设时长后,终端设备100再关闭副卡的飞行模式,以达到延迟关闭副卡的飞行模式的目的。
另一种可能的实现方式为,终端设备100检测到用户触发紧急呼叫时,先关闭主卡的飞行模式,主卡开始搜网及网络注册过程。当终端设备100确定主卡已完成搜网或网络注册过程,再关闭副卡的飞行模式。通过这种方式,避免了副卡的网络注册过程对主卡的网络注册过程产生影响。
作为一种示例,终端设备100检测到用户发起紧急呼叫时,通过主调制解调器161关闭主卡的飞行模式,主调制解调器161可以向应用处理器130反馈主卡搜网或网络注册过程的进度。当终端设备100确定主卡已完成搜网或网络注册过程时,再通过副调制解调器162关闭副卡的飞行模式。
请参见图3所示,为本申请实施例提供的呼叫方法的流程示意图。图3也可以理解为图1所示的终端设备100中各个部件之间的信息交互示意图。如图3所示,该方法的流程包括:
S301:应用处理器130检测到用户触发紧急呼叫。
S302:应用处理器130向主调制解调器161发送第一指令,所述第一指令用于指示关闭主卡的飞行模式。
S303:应用处理器130向主调制解调器161发送第二指令,该第二指令中携带紧急号码。
可选的,终端设备100可以先执行S302后执行S303,也可以同时执行S302和S303。其中,S302和S303同时进行时,第一指令和第二指令可以是用一个指令,也可以是不同的两个指令。当第一指令和第二指令是同一个指令(即该指令既用于指示关闭主卡的飞行模式,又携带紧急号码)时,S302和S303是一个步骤即可。
S304:主调制解调器161关闭主卡的飞行模式,进行搜网及网络注册,并在网络注册之后,通过所述主卡发起紧急呼叫。
S305:应用处理器130接收主调制解调器161反馈的响应信息。
主调制解调器161向应用处理器130反馈响应信息时可以有多种实现方式。比如,主调制解调器161可以在完成搜网过程之后,向应用处理器130反馈响应信息,该响应信息用于指示主调制解调器161已完成搜网过程。再比如,主调制解调器161也可以在完成网络注册之后,再向应用处理器130反馈响应信息,该响应信息用于指示主调制解调器161已完成网络注册过程。再比如,主调制解调161可以在完成搜网及网络注册过程、并成功拨出紧急号码之后,再向应用处理器130发送响应信息,该响应信息用于指示已成功通过主卡拨出紧急号码。
S306:应用处理器130向副调制解调器162发送第三指令,该第三指令用于指示关闭副卡的飞行模式。
S307:副调制解调器162关闭副卡的飞行模式,并开始搜网及网络注册。
如前述内容可知,应用处理器130接收到的响应信息可能有多种情况,以响应信息用于指示主调制解调器161已完成搜网过程为例,应用处理器130接收到该响应信息后,向副调制解调器162发送第三指令。由于主调制解调器161已经完成搜网过程,而副调制解调器162才介绍到第三指令,所以副调制解调器162对主调制解调器161的搜网及网络注册产生影响的可能性较小,从而减少主卡的网络注册时延、提高紧急呼叫效率。
下面介绍另一实施例,在该实施例中,终端设备100检测到用户触发紧急呼叫时,可以同时关闭主卡和副卡的飞行模式,即主卡和副卡可以同时进行搜网及网络注册过程。但当主卡开始网络注册时,如果所述上行射频资源被副卡占用,终端设备100可以暂停副卡的进程,并将所述上行射频资源优先分配给主调制解调器161使用,以尽快完成主卡的网络注册过程,减少紧急呼叫的时延。
请参见图4所示,为本申请实施例提供的呼叫方法的流程示意图。图4也可以理解为图1所示的终端设备100中各个部件之间的信息交互示意图。如图4所示,该方法的流程包括:
S401:应用处理器130检测用户发起紧急呼叫。
S402:应用处理器130向主调制解调器161发送第一指令,该第一指令用于指示关闭 主卡的飞行模式;
S403:应用处理器130向副调制解调器162发送第二指令,该第二指令用于指示关闭副卡的飞行模式。
可选的,终端设备100可以先执行S402后执行S403,也可以同时执行S402和S403。
S404:主调制解调器161关闭主卡的飞行模式,并开始搜网。
S405:副调整解调器162关闭副卡的飞行模式,并开始搜网及网络注册。
本申请实施例对S404和S405之间的先后顺序不限定。
S406:当主调制解调器161开始网络注册时,所述主调制解调器161向所述上行射频资源分配模块163发送包含优先等级信息的第一请求,所述第一请求用于请求申请上行射频资源。
S407:若上行射频资源已被副调制解调器162占用,所述上行射频资源分配模块163暂停副调制解调器162对所述上行射频资源的使用,将所述上行射频资源分配给主调制解调器161。
示例性的,上行射频资源分配模块163中可以通过中断服务进程中断副调制解调器162使用所述上行射频资源进行的任务。然后上行射频资源分配模块163将所述上行射频资源分配给所述主调制解调器161。
S408:主调制解调器161使用所述上行射频资源进行网络注册。
当主调制解调器161完成搜网,并开始网络注册时,向上行射频资源分配模块163发送第一请求。上行射频资源分配模块163接收到第一请求后,解析出第一请求中包括优先等级信息。此时,如果副调制解调器162已经向上行射频资源分配模块163申请了上行射频资源,即上行射频资源已经被副调制解调器162占用的话,上行射频资源分配模块163可以暂停副调制解调器162对所述上行射频资源的使用,并将上行射频资源分配给主调制解调器161。示例性的,上行射频资源分配模块163接收到第一请求后,暂停副调制解调器162使用所述上行射频资源进行的任务,将上行射频资源分配给主调制解调器161。主调制解调器161通过RF电路110在该上行射频资源上向网络侧设备发送主卡的身份信息,以完成主卡的网络注册过程。
当然,上行射频资源分配模块163接收到第一请求后,如果副调制解调器162还未开始网络注册,即副调制解调器162还未向上行射频资源分配模块163申请上行射频资源的话,上行射频资源分配模块163可以直接将上行射频资源分配给主调制解调器161。
S409:应用处理器130向主调制解调器161发送第三指令,所述第三指令中包括紧急号码。
可选的,第三指令和第一指令可以是同一个指令,也可以是不同的指令。如果第一指令和第三指令是同一个指令,S408和S402是同一步骤。如果第三指令和第一指令是不同的指令,S409和S403、S404、S405、S406、S406、S407、S408之间的执行顺序不作限定。
S410:主调制解调器161发起呼叫。
通过以上描述可知,在本申请实施例中,为了避免副卡对主卡的网络注册过程造成影响,当主调制解调器161需要上行射频资源时,如果所述上行射频资源被副调制解调器162占用,终端设备可以暂停副调制解调器162对上行射频资源的使用,并将所述上行射频资源优先分配给主调制解调器使用,以尽快完成主卡的网络注册过程,减少紧急呼叫的时延。
如前述内容可知,主卡和副卡是在需要的时候(进行网络注册时)才会申请上行射频 资源。下面介绍另一实施例,在该实施例中,终端设备可以同时关闭主卡和副卡的飞行模式。但终端设备可以为主卡预留上行射频资源,以使主卡尽快完成网络注册过程。
一种可能的实现方式为,以图1为例,当主调制解调器161接收到应用处理器130发送的用于指示关闭飞行模式的指令后,可以提前申请上行射频资源,即主调制解调器161在开始网络注册之前就申请上行射频资源,而副调制解调器162在需要的时候即开始网络注册时才能申请上行射频资源。通过这种方式,主调制解调器161可以早于副调制解调器162申请上行射频资源,一旦主调制解调器161申请了上行射频资源,终端设备100便为主卡预留上行射频资源,即便之后副卡完成搜网开始网络注册,上行射频资源也不会被副卡占用,使得主卡尽快完成网络注册过程。
请参见图5所示,为本申请实施例提供的呼叫方法的流程示意图。该方法可以适用于图1所示的终端设备100。如图5所示,该方法的流程包括:
S501:应用处理器130检测用户发起紧急呼叫。
S502:应用处理器130向主调制解调器161发送第一指令,该第一指令用于指示关闭主卡的飞行模式。
S503:应用处理器130向副调制解调器162发送第二指令,该第二指令用于指示关闭副卡的飞行模式。
S504:应用处理器130向主调制解调器161发送第三指令,该第三指令包括紧急号码。
可选的,S502-S504可以同时进行。其中,S502和S504同时进行时,第三指令和第一指令可以是同一个指令,也可以是不同的指令。如果第一指令和第三指令是同一个指令,S504和S502是同一步骤。
S505:主调制解调器161根据所述第一指令或所述第三指令向上行射频资源分配模块163发送第一请求,所述第一请求用于请求申请上行射频资源。
S506:上行射频资源分配模块163将上行射频资源预留给主调制解调器161。
在本申请实施例中,应用处理器130同时向主调制解调器161和副调制解调器162发送用于指示关闭飞行模式的指令。主调制解调器161根据第一指令,向上行射频资源分配模块163发送第一请求,以申请上行射频资源。但由于副调制解调器162只能在需要上行射频资源的时候(进行网络注册时)才能申请上行射频资源,所以副调制解调器162在接收到第二指令,且在搜网结束后,开始网络注册时,才向上行射频资源分配模块163申请上行射频资源。因此,在副调制解调器162申请上行射频资源之前,主调制解调器161已经申请了上行射频资源。上行射频资源分配模块163已将上行射频资源预留给主调制解调器161。
S507:主调制解调器161关闭主卡的飞行模式,开始搜网及网络注册,并在网络注册后,通过所述主卡发起紧急呼叫。
S508:副调整解调器162关闭副卡的飞行模式,并开始搜网及网络注册。
在本申请实施例中,终端设备100中的主调制解调器161早于副调制解调器162向上行射频资源分配模块163发送第一请求的方式有多种。比如,主调制解调器161在接收到第一指令后,立马向上行射频资源分配模块163发送第一请求。或者,主调制解调器161在接收到第三指令后,立马向上行射频资源分配模块163发送第一请求。上行射频资源分配模块163接收到第一请求后,将上行射频资源预留给主调制解调器161。在此过程中,如果副调制解调器162也向上行射频资源分配模块163发送了第二请求,用于请求上行射 频资源,那么上行射频资源分配模块163可以将第二请求挂起,比如对第二请求不作响应或者将第二请求丢弃,或者向告知副调制解调器162上行射频资源已被主调制解调器161预定,请等待。
在该实施例中,终端设备中的主调制解调器可以提前申请上行射频资源,即主调制解调器早于副调制解调器申请上行射频资源。通过这种方式,即便副卡优先完成搜网开始网络注册,上行射频资源也不会被副卡占用,通过这种方式,避免主卡网络注册延迟,有助于提高紧急呼叫的效率。
在前面的实施例中,终端设备中双卡均处于飞行模式时,当终端设备检测到用户发起紧急呼叫时,默认通过主卡发起呼叫。下面介绍另一个实施例,在该实施例中,当终端设备中的两张卡均处于飞行模式时,若终端设备检测到用户发起紧急呼叫,可以同时关闭主卡和副卡的飞行模式,即主卡和副卡可以同时进行搜网及网络注册过程。终端设备确定哪个卡提前完成搜网及网络注册过程,便使用哪个卡发起紧急呼叫。
以手机为例,在现有技术中,双卡手机处于飞行模式时,若用户发起紧急呼叫,手机默认通过主卡发起紧急呼叫,即手机等待主卡关闭飞行模式并完成搜网及网络注册之后,通过主卡发起紧急呼叫。在这一过程中,即便副卡相较于主卡提前完成了搜网及网络注册过程,手机也不会使用副卡发起紧急呼叫,而是等待主卡完成搜网及网络注册,再通过主卡发起紧急呼叫。本申请实施例中,终端设备可以使用搜网或网络注册较快的一张卡发起紧急呼叫,以减少紧急呼叫的时延。
一种可能的实现方式为,以图1所示的终端设备100为例,终端设备100中的应用处理器130检测到用户发起紧急呼叫时,通过主调制解调器161关闭主卡的飞行模式,同时通过副调制解调器162关闭副卡的飞行模式,即主卡和副卡可以同时进行搜网及网络注册过程。主调制解调器161可以向应用处理器130反馈主卡的搜网及网络注册进度,副调制解调器162可以向应用处理器130反馈副卡的搜网及网络注册进度。终端设备确定哪个卡先完成搜网及网络注册过程,便使用该卡进行紧急呼叫。
请参见图6所示,为本申请实施例提供的呼叫方法的流程示意图。图6也可以理解为图1所示的终端设备100中各个器件之间的信息交互示意图。如图6所示,该方法的流程包括:
S601:应用处理器130检测用户发起紧急呼叫。
S602:应用处理器130向主调制解调器161发送第一指令,该第一指令用于指示关闭主卡的飞行模式。
S603:应用处理器130向副调制解调器162发送第二指令,该第二指令用于指示关闭副卡的飞行模式。
S604:主调制解调器161和副调制解调器162开始进行搜网及网络注册。
S605:应用处理器130接收副调制解调器162发送的响应信息,该响应信息用于指示副卡已完成搜网或网络注册。
通常,某张卡优先完成搜网过程的话,那么该卡优先完成网络注册过程的概率也较大。因此,这里的响应信息可以是用于指示副卡已经完成搜网过程的信息。当然,响应信息还可以是用于指示副卡已经完成网络注册的信息。
S606:应用处理器130向副调制解调器161发送第三指令,该第三指令中携带紧急号码。
S607:副调制解调器162发起紧急呼叫。
通过以上描述可知,在本申请实施例中,终端设备中的两张卡均处于飞行模式时,若用户发起紧急呼叫,终端设备可以同时关闭两张卡的飞行模式,即主卡和副卡可以同时进行搜网及网络注册。终端设备使用搜网或网络注册较快的一张卡发起紧急呼叫,以减少紧急呼叫的时延。
下面介绍另一实施例,在该实施例中,终端设备可以在主卡发起紧急呼叫失败之后,通过副卡发起紧急呼叫。现有技术中,终端设备在双卡均处于飞行模式时,当终端设备检测到用户发起紧急呼叫时,默认通过主卡发起紧急呼叫。本申请实施例中,终端设备中的双卡均处于飞行模式,当终端设备检测到用户发起紧急呼叫时,先通过主卡发起紧急呼叫,在通过主卡发起紧急呼叫失败时,还可以通过副卡发起紧急呼叫,以提高紧急呼叫的成功率。
一种可能的实现方式为,终端设备先关闭主卡的飞行模式,当主卡完成搜网及网络注册过程后,通过主卡发起紧急呼叫。当通过主卡发起紧急呼叫失败时,终端设备再关闭副卡的飞行模式,当副卡完成搜网及网络注册过程后,通过副卡发起紧急呼叫。
请参见图7所示,为本申请实施例提供的一种呼叫方法的流程示意图。以图1所示的终端设备100为例,图7也可以理解为图1所示的终端设备100中各个器件之间的信息交互示意图。如图7所示,该方法的流程包括:
S701:应用处理器130检测用户发起紧急呼叫。
S702:应用处理器130向主调制解调器161发送第一指令,该第一指令用于指示关闭主卡的飞行模式。
S703:应用处理器130向副调制解调器162发送第二指令,该第二指令用于指示关闭副卡的飞行模式。
可选的,S602和S603可以先后发生,也可以同时发生。
S704:主调制解调器161和副调制解调器162开始搜网及网络注册。
S705:应用处理器130向主调制解调器161发送第三指令,所述第三指令中包括紧急号码。
可选的,第三指令和第一指令可以是同一个指令,也可以是不同的指令。如果第一指令和第三指令是同一个指令,S705和S702是同一步骤。如果第三指令和第一指令是不同的指令,S705和S703、S704之间的执行顺序不限定。
S706:主调制解调器161发起呼叫。
S707:应用处理器130接收主调制解调器161发送的响应信息,所述响应信息用于指示呼叫失败。
在本申请实施例中,主调制解调器161向应用处理器130反馈的失败响应可以有多种。比如,主调制解调器203在搜网失败时,向应用处理器202反馈响应信息,该响应信息用于指示搜网失败。再比如,主调制解调器203在网络注册失败时,向应用处理器202反馈响应信息,该响应信息用于指示网络注册失败。再比如,主调制解调器203在搜网及网络注册成功后,发起紧急呼叫失败(比如主卡欠费)时,向应用处理器202反馈响应信息,该响应信息用于指示紧急呼叫失败。
S708:应用处理器202向副调制解调器162发送第四指令,该第四指令中包含紧急号码。
S709:副调制解调器162发起呼叫。
通过以上描述,在该实施例中,终端设备可以在通过某张卡发起紧急呼叫失败后,再通过另一张卡发起紧急呼叫。通过这种方式,可以提高紧急呼叫的成功率。
在前面所述的实施例中,终端设备中的两张卡是同时进入飞行模式的,然后同时关闭两张卡的飞行模式,或者先关闭主卡的飞行模式然后再关闭副卡的飞行模式等等。在本申请实施例还提供另一种实施例,在该实施例中,终端设备中的两张卡均处于飞行模式时,终端设备可以通过用户选择的卡发起紧急呼叫。即,用户可以选择通过哪张卡发起紧急呼叫,如果用户选择卡1,终端设备将卡1作为主卡,通过前述的几种实施方式中的任意一种方式或者任意几种实施方法的组合方式来发起紧急呼叫。
示例性的,图8示出了手机的显示屏的显示状态的示意图。
在图8中的(a)中,手机800中两张卡均处于飞行模式,用户打开电话应用,显示拨号键盘,通过拨号键盘输入紧急号码。手机800的拨号键盘中还包括两个拨号控件,其中一个是卡1的拨号控件,另一个是卡2的拨号控件。当用户触发卡2的拨号控件801时,手机800先向与卡2连接的调制解调器发送第一指令,该第一指令用于指示关闭卡2的飞行模式,同时手机800延后关闭卡1的飞行模式,以免卡1对卡2的搜网及网络注册过程产生影响。然后,手机800显示正在呼叫的界面,请参见图8中的(b)所示,手机800的显示界面中包括提示信息802,该提示信息802用于提示当前正在通过卡2发起呼叫。
在另一实施例中,终端设备中的两张卡可以不同时处于飞行模式,比如两张卡中只有一张处于飞行模式,另一张处于正常工作模式。当终端设备检测到用户发起紧急呼叫时,哪张卡处于正常工作模式,便通过哪张卡发起紧急呼叫。
在本申请实施例中,用户可以设置终端设备中的两张卡中的某一张卡处于飞行模式。
作为一种示例,用户可以打开手机中的设置选项,在设置选项中设置哪张卡处于飞行模式。
示例性的,图9示出了手机中的设置选项的界面的示意图。
在图9中的(a)中,手机900中的设置选项中显示“飞行模式”选项901。当用户激活“飞行模式”选项801后,进入“飞行模式”的设置界面902,请参见图11中的(b)。
如图9中的(b)所示,“飞行模式”的设置界面902中显示“卡1:中国联通”的开关控件903,以及“卡2:中国移动”的开关控件904。当卡1或卡2处于正常工作模式时,开关控件903或开关控件904中的滑块处于左侧。当用户触发开关控件904后,开关控件804中的滑块向右移动,并且开关控件904左侧显示颜色,即手机900开启卡2的飞行模式。
如图9中的(c)所示,手机900开启卡2的飞行模式后,手机900的状态栏中显示飞行模式的图标905,该图标905表示卡2已经进入飞行模式。
继续以图9为例,当手机900中卡2处于飞行模式,而卡1处于正常工作模式时,手机800检测到用户发起紧急呼叫时,通过卡1发起紧急呼叫。
作为一种示例,当手机900通过卡1发起紧急呼叫失败(比如卡1欠费)后,还可以关闭卡2的飞行模式,并进行搜网及网络注册,然后通过卡2发起紧急呼叫。
需要说明的是,本申请实施例以终端设备具有两张卡为例,但本申请实施例提供的方法思路,可以适用于未来的可能实现的具有多张卡的终端设备中。
需要说明的是,本申请实施例提供的呼叫方法可以应用于多种应用场景。以手机为例,一种可能的场景为,手机处于解锁状态,即用户通过手机中的电话应用发起紧急呼叫。另 一种可能的场景为,手机处于锁屏状态,即在未解锁时,手机也可以发起紧急呼叫。比如,手机在锁屏界面中设置有电话应用的快捷图标,若用户触发该快捷图标,打开拨号盘,拨打紧急号码。这种情况下,无需解锁便可拨打紧急号码,操作方便。
需要说明的是,本申请实施例中虽然各个实施例分开描述,但在实际应用中,各个实施例中的各个实施方式可以任意进行组合,以实现不同的技术效果。
上述本申请提供的实施例中,从终端设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,终端设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
基于相同的构思,图10所示为本申请实施例提供的一种终端设备1000,该终端设备1000可以是具有通信功能的终端设备,该终端设备1000包括第一调制解调器和第二调制解调器,所述第一调制解调器与第一卡通信连接,所述第二调制解调器与第二卡通信连接,该终端设备1000可以执行上述图2-图9所示实施例中的方法。如图10所示,终端设备1000包括:处理单元1001,呼叫单元1002。其中,
所述处理单元1001用于:在所述第一卡和所述第二卡均处于飞行模式,检测到用户发起紧急呼叫时,通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;并通过所述第二调制解调器关闭所述第二卡的飞行模式,以使所述第二调制解调器开始搜网及网络注册;
所述呼叫单元1002用于:若所述第一调制解调器早于所述第二调制解调器完成网络注册,通过所述第一卡发起紧急呼叫。
可选的,所述第一卡为主卡,所述第二卡为副卡,在所述终端设备通过所述第一卡发起紧急呼叫之前,所述处理单元1001还用于:当所述第一调制解调器开始网络注册时,若上行射频资源已被所述第二调制解调器占用,暂停所述第二调制解调器对所述上行射频资源的使用,并将所述上行射频资源分配给所述第一调制解调器,以使所述第一调制解调器使用所述上行射频资源进行网络注册。
可选的,所述第一卡为主卡,所述第二卡为副卡,在所述终端设备通过所述第一卡发起紧急呼叫之前,所述处理单元1001还用于:在所述第二调制解调器开始网络注册之前,将所述上行射频资源预留给所述第一调制解调器;当所述第一调制解调器开始网络注册时,将所述上行射频资源分配给所述第一调制解调器,以使所述第一调制解调器通过所述上行射频资源完成网络注册。
可选的,在所述终端设备通过第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册之后,在通过第二调制解调器关闭所述第二卡的飞行模式之前,所述处理单元1001还用于:确定已过预设时长,或确定所述第一调制解调器搜网成功;或者确定所述第一调制解调器注册成功。
可选的,所述呼叫单元1001还用于:在通过所述第一卡发起紧急呼叫失败时,通过所述第二卡发起紧急呼叫。
可选的,所述处理单元1001还用于在所述第一卡处于飞行模式,所述第二卡处于正常工作模式时,检测到用户发起紧急呼叫;所述呼叫单元1002还用于在所述处理单元1001检测到用户发起紧急呼叫时,通过所述第二卡发起紧急呼叫。
可选的,在所述终端设备检测到用户发起紧急呼叫之前,所述处理单元1001还用于接收第一操作,并响应于所述第一操作,通过显示单元(图10中未示出)显示设置界面,所述设置界面中包括所述第一卡的第一标识、所述第二卡的第二标识,以及与所述第一标识对应的第一开关控件,与所述第二标识对应的第二开关控件;其中,当所述第一开关控件被激活时,所述终端设备开启所述第一卡的飞行模式,当所述第二开关控件未被激活时,所述第二卡处于正常工作模式。
可选的,在所述呼叫单元1002通过所述第二卡发起紧急呼叫失败后,所述处理单元1001通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;在所述第一调制解调器完成网络注册后,所述呼叫单元1002通过所述第一卡发起紧急呼叫。
可选的,所述处理单元1001还用于:在所述第一卡和所述第二卡均处于飞行模式,且检测到用户选择通过所述第一卡发起紧急呼叫的选择操作时,通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;在所述第一调制解调器完成网络注册后,所述呼叫单元1002通过所述第一卡发起紧急呼叫。
可选的,在所述终端设备检测到用户选择通过所述第一卡发起紧急呼叫的选择操作之前,所述处理单元1001还用于:接收第二操作,并响应于所述第二操作,通过显示单元(图10中未示出)显示拨号键盘,所述拨号键盘中包括所述第一拨号控件和第二拨号控件,所述第一拨号控件用于控制所述终端设备通过所述第一卡发起紧急呼叫,所述第二拨号控件用于控制所述终端设备通过所述第二卡发起紧急呼叫。
可选的,所述处理单元1001还用于:在所述呼叫单元1002通过所述第一卡发起紧急呼叫失败后,通过所述第二调制解调器关闭所述第二卡的飞行模式,以使所述第二调制解调器开始搜网及网络注册;在所述第二调制解调器完成网络注册后,所述呼叫单元1002通过所述第二卡发起紧急呼叫。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compact disc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。
总之,以上所述仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (24)

  1. 一种呼叫方法,应用于终端设备,其特征在于,所述终端设备包括第一调制解调器和第二调制解调器,所述第一调制解调器与第一卡通信连接,所述第二调制解调器与第二卡通信连接,所述方法包括:
    在所述第一卡和所述第二卡均处于飞行模式,所述终端设备检测到用户发起紧急呼叫时,所述终端设备通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;并通过所述第二调制解调器关闭所述第二卡的飞行模式,以使所述第二调制解调器开始搜网及网络注册;
    若所述第一调制解调器早于所述第二调制解调器完成网络注册,所述终端设备通过所述第一卡发起紧急呼叫。
  2. 如权利要求1所述的方法,其特征在于,所述第一卡为主卡,所述第二卡为副卡,在所述终端设备通过所述第一卡发起紧急呼叫之前,还包括:
    当所述第一调制解调器开始网络注册时,若上行射频资源已被所述第二调制解调器占用,所述终端设备暂停所述第二调制解调器对所述上行射频资源的使用,并将所述上行射频资源分配给所述第一调制解调器,以使所述第一调制解调器使用所述上行射频资源进行网络注册。
  3. 如权利要求1所述的方法,其特征在于,所述第一卡为主卡,所述第二卡为副卡,在所述终端设备通过所述第一卡发起紧急呼叫之前,还包括:
    在所述第二调制解调器进行网络注册之前,所述终端设备将所述上行射频资源预留给所述第一调制解调器;
    当所述第一调制解调器开始网络注册时,所述终端设备将所述上行射频资源分配给所述第一调制解调器,以使所述第一调制解调器使用所述上行射频资源进行网络注册。
  4. 如权利要求1-3任一所述的方法,其特征在于,在所述终端设备通过第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册之后,在通过第二调制解调器关闭所述第二卡的飞行模式之前,所述方法还包括:
    所述终端设备确定已过预设时长,或者
    所述终端设备确定所述第一调制解调器搜网成功;或者
    所述终端设备确定所述第一调制解调器注册成功。
  5. 如权利要求1-4任一所述的方法,其特征在于,所述方法还包括:
    若所述终端设备通过所述第一卡发起紧急呼叫失败,所述终端设备通过所述第二卡发起紧急呼叫。
  6. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述第一卡处于飞行模式,所述第二卡处于正常工作模式,所述终端设备检测到用户发起紧急呼叫时,所述终端设备通过所述第二卡发起紧急呼叫。
  7. 如权利要求6所述的方法,其特征在于,在所述终端设备检测到用户发起紧急呼叫之前,还包括:
    所述终端设备接收第一操作;
    所述终端设备响应于所述第一操作,显示设置界面,所述设置界面中包括所述第一卡的第一标识、所述第二卡的第二标识,以及与所述第一标识对应的第一开关控件,与所述 第二标识对应的第二开关控件;其中,当所述第一开关控件被激活时,所述终端设备开启所述第一卡的飞行模式,当所述第二开关控件未被激活时,所述第二卡处于正常工作模式。
  8. 如权利要求6或7所述的方法,其特征在于,所述方法还包括:
    若所述终端设备通过所述第二卡发起紧急呼叫失败,所述终端设备通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;
    在所述第一调制解调器完成网络注册后,所述终端设备通过所述第一卡发起紧急呼叫。
  9. 如权利要求1所述的方法,其特征在于,所述方法包括:
    在所述第一卡和所述第二卡均处于飞行模式,且所述终端设备检测到用户选择通过所述第一卡发起紧急呼叫的选择操作时,所述终端设备通过所述第一调制解调器关闭所述第一卡的飞行模式,以使所述第一调制解调器开始搜网及网络注册;
    在所述第一调制解调器完成网络注册后,所述终端设备通过所述第一卡发起紧急呼叫。
  10. 如权利要求9所述的方法,其特征在于,在所述终端设备检测到用户选择通过所述第一卡发起紧急呼叫的选择操作之前,还包括:
    所述终端设备接收第二操作;
    所述终端设备响应于所述第二操作,显示拨号键盘,所述拨号键盘中包括所述第一拨号控件和第二拨号控件,其中,所述第一拨号控件被选择触发时,所述终端设备通过所述第一卡发起紧急呼叫,所述第二拨号控件被选择触发时,所述终端设备通过所述第二卡发起紧急呼叫。
  11. 如权利要求9或10所述的方法,其特征在于,所述方法还包括:
    若所述终端设备通过所述第一卡发起紧急呼叫失败,所述终端设备通过所述第二调制解调器关闭所述第二卡的飞行模式,以使所述第二调制解调器开始搜网及网络注册;
    在所述第二调制解调器完成网络注册后,所述终端设备通过所述第二卡发起紧急呼叫。
  12. 一种终端设备,具有第一卡槽和第二卡槽,分别用于插入第一卡和第二卡,所述终端设备包括第一调制解调器和第二调制解调器,在所述第一卡槽和第二卡槽插入第一卡和第二卡的情况下,分别与第一卡和第二卡通信连接,其特征在于,所述终端设备还包括:
    输入设备,用于接收用户的输入;
    应用处理器,用于确定所述用户的输入用于发起紧急呼叫,且所述第一卡和所述第二卡均处于飞行模式时,向所述第一调制解调器发送第一指令,向所述第二调制解调器发送第二指令;
    所述第一调制解调器,用于根据所述第一指令关闭所述第一卡的飞行模式,并进行搜网及网络注册;
    所述第二调制解调器,用于根据所述第二指令关闭所述第二卡的飞行模式,并进行搜网及网络注册;
    所述应用处理器还用于在所述第一调制解调器早于所述第二调制解调器完成网络注册的情况下,通过所述第一卡发起所述紧急呼叫。
  13. 如权利要求12所述的终端设备,其特征在于,所述第一卡槽为主卡槽,所述第二卡槽为副卡槽;
    所述第二调制解调器还用于在进行网络注册前,发送第一请求;所述第一请求用于请求进行网络注册所需的上行射频资源;
    所述终端设备还包括:
    上行射频资源分配模块,用于根据所述第一请求将所述上行射频资源分配给所述第二调制解调器;
    所述第二调制解调器还用于使用所述上行射频资源进行网络注册;
    所述第一调制解调器还用于在进行网络注册前,向所述上行射频资源分配模块发送第二请求,所述第二请求中携带优先等级信息;
    所述上行射频资源分配模块还用于根据所述第二请求中的优先等级信息暂停所述第二调制解调器对所述上行射频资源的使用,并将所述上行射频资源分配给所述第一调制解调器;
    所述第一调制解调器还用于使用所述上行射频资源上进行网络注册。
  14. 如权利要求12所述的终端设备,其特征在于,所述第一卡槽为主卡槽,所述第二卡槽为副卡槽;
    所述第一调制解调器还用于在所述第二调制解调器进行网络注册之前,发送第三请求,所述第三请求用于请求给所述第一调制解调器预留上行射频资源;
    所述终端设备还包括:
    上行射频资源分配模块,用于根据所述第三请求,将收到的所述第二调制解调器发送的用于申请上行射频资源的第四请求挂起;所述上行射频资源分配模块在所述第一调制解调器使用所述上行射频资源前接收到所述第四请求;
    所述第一调制解调器还用于使用所述上行射频资源进行网络注册。
  15. 如权利要求12-14任一所述的终端设备,其特征在于,所述应用处理器在用于向所述第一调制解调器发送第一指令,向所述第二调制解调器发送第二指令时,具体用于:
    所述应用处理器向所述第一调制解调器发送第一指令;
    所述应用处理器在经过预设时长后,或者在接收到所述第一调制解调器反馈的用于指示所述第一调制解调器已搜网成功的响应信息后,或者在接收到所述第一调制解调器反馈的用于指示所述第二调制解调器已注册成功的响应信息后,向所述第二调制解调器发送第二指令。
  16. 如权利要求12-15任一所述的终端设备,其特征在于,所述应用处理器还用于在通过所述第一卡发起紧急呼叫失败时,通过所述第二卡发起紧急呼叫。
  17. 如权利要求12所述的终端设备,其特征在于,所述应用处理器还用于确定所述用户的输入用于发起紧急呼叫,且所述第一卡处于飞行模式,所述第二卡处于正常工作模式时,通过所述第二卡发起所述紧急呼叫。
  18. 如权利要求17所述的终端设备,其特征在于,所述终端设备还包括显示屏,
    所述显示屏,用于显示设置界面,所述设置界面中包括所述第一卡的第一标识、所述第二卡的第二标识,以及与所述第一标识对应的第一开关控件,与所述第二标识对应的第二开关控件;其中,当所述第一开关控件被激活时,所述终端设备开启所述第一卡的飞行模式,当所述第二开关控件未被激活时,所述第二卡处于正常工作模式。
  19. 如权利要求17或18所述的终端设备,其特征在于,所述应用处理器还用于在通过所述第二卡发起紧急呼叫失败时,向所述第一调制解调器发送第三指令,
    所述第一调制解调器还用于根据所述第三指令关闭所述第一卡的飞行模式,并进行搜网及网络注册;
    所述应用处理器还用于在所述第一调制解调器完成网络注册的情况下,通过所述第一 卡发起紧急呼叫。
  20. 如权利要求12所述的终端设备,其特征在于,
    所述输入设备还用于接收用户输入的选择操作;
    所述应用处理器还用于确定所述选择操作用于选择通过所述第一卡发起紧急呼叫,且所述第一卡和所述第二卡均处于飞行模式时,向所述第一调制解调器发送第四指令;
    所述第一调制解调器还用于根据所述第四指令关闭所述第一卡的飞行模式,并进行搜网及网络注册;
    所述应用处理器还用于在所述第一调制解调器完成网络注册后,通过所述第一卡发起紧急呼叫。
  21. 如权利要求20所述的终端设备,其特征在于,所述终端设备还包括显示屏,
    所述显示屏,用于显示拨号键盘,所述拨号键盘中包括所述第一拨号控件和第二拨号控件,其中,当所述第一拨号控件被选择触发时,所述终端设备通过所述第一卡发起紧急呼叫,当所述第二拨号控件被选择触发时,所述终端设备通过所述第二卡发起紧急呼叫。
  22. 如权利要求20或21所述的终端设备,其特征在于,所述应用处理器还用于在通过所述第一卡发起紧急呼叫失败后,向所述第二调制解调器发送第五指令;
    所述第二调制解调器还用于根据所述第五指令关闭所述第二卡的飞行模式,并进行搜网及网络注册;
    所述应用处理器还用于在所述第二调制解调器完成注册后,通过所述第二卡发起紧急呼叫。
  23. 一种计算机存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在终端设备上运行时,使得所述终端设备执行如权利要求1至11任一所述的方法。
  24. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至11任一所述的方法。
PCT/CN2018/089370 2018-05-31 2018-05-31 一种呼叫方法和终端设备 WO2019227437A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/089370 WO2019227437A1 (zh) 2018-05-31 2018-05-31 一种呼叫方法和终端设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/089370 WO2019227437A1 (zh) 2018-05-31 2018-05-31 一种呼叫方法和终端设备

Publications (1)

Publication Number Publication Date
WO2019227437A1 true WO2019227437A1 (zh) 2019-12-05

Family

ID=68697682

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089370 WO2019227437A1 (zh) 2018-05-31 2018-05-31 一种呼叫方法和终端设备

Country Status (1)

Country Link
WO (1) WO2019227437A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130005290A1 (en) * 2011-06-28 2013-01-03 Renesas Mobile Corporation Wireless device, method of operation and computer program
WO2014065483A1 (en) * 2012-10-23 2014-05-01 Samsung Electronics Co., Ltd. Method to improve emergency call continuity by allowing inbound mobility towards non-member csg cells
CN104980905A (zh) * 2014-04-01 2015-10-14 联发科技股份有限公司 多用户识别模块装置及用户识别模块选择方法
CN105848123A (zh) * 2016-05-04 2016-08-10 深圳市万普拉斯科技有限公司 双卡模式下的紧急呼叫方法和装置
CN105933882A (zh) * 2016-04-08 2016-09-07 努比亚技术有限公司 紧急呼叫装置及方法
CN107113586A (zh) * 2014-11-18 2017-08-29 高通股份有限公司 用于基于用户活动改善多sim设备的sim从无服务状态恢复的系统和方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130005290A1 (en) * 2011-06-28 2013-01-03 Renesas Mobile Corporation Wireless device, method of operation and computer program
WO2014065483A1 (en) * 2012-10-23 2014-05-01 Samsung Electronics Co., Ltd. Method to improve emergency call continuity by allowing inbound mobility towards non-member csg cells
CN104980905A (zh) * 2014-04-01 2015-10-14 联发科技股份有限公司 多用户识别模块装置及用户识别模块选择方法
CN107113586A (zh) * 2014-11-18 2017-08-29 高通股份有限公司 用于基于用户活动改善多sim设备的sim从无服务状态恢复的系统和方法
CN105933882A (zh) * 2016-04-08 2016-09-07 努比亚技术有限公司 紧急呼叫装置及方法
CN105848123A (zh) * 2016-05-04 2016-08-10 深圳市万普拉斯科技有限公司 双卡模式下的紧急呼叫方法和装置

Similar Documents

Publication Publication Date Title
US11025963B2 (en) Data processing method, apparatus, and system for live streaming page
US10635449B2 (en) Method and apparatus for running game client
US10958459B2 (en) Method and apparatus for processing group chat message
US11546932B2 (en) Data transmission method, terminal and network side device
US20160105412A1 (en) Network connection method, application authentication server, terminal and router
US20190199795A1 (en) Method and device for synchronizing backup data, storage medium, electronic device, and server
TWI612500B (zh) 投影設備控制方法、投影設備及智慧終端機
US11943069B2 (en) Data transmission method and device, base station, terminal and storage medium
WO2015024372A1 (zh) 发起通信的方法、装置及移动终端
KR20200116519A (ko) 소프트웨어 업데이트 관리 방법, 서버, 단말기, 장치, 및 저장 매체
WO2017096909A1 (zh) 建立数据连接的方法及装置
CN110870353B (zh) 一种WiFi连接的方法及终端
CN102149051A (zh) 一种网络对讲的实现方法及系统
CN108604251A (zh) 一种多媒体文件的分享方法及终端设备
US10063498B2 (en) Method and apparatus for sending and receiving messages
CN112764891B (zh) 电子终端及控制应用的方法
WO2015101300A1 (zh) 临时频道创建方法、装置及系统
WO2015024393A1 (zh) 发送短信的方法、装置及终端
WO2014183439A1 (en) Method, apparatus and system for switching function mode
US10015314B2 (en) Call collision processing method for terminal device, and terminal device
WO2017000495A1 (zh) 一种添加联系人的方法及设备
US20140344423A1 (en) Method, apparatus and system for switching function mode
WO2018129804A1 (zh) 通话记录的同步方法、云平台和终端
WO2019227437A1 (zh) 一种呼叫方法和终端设备
CN114158025B (zh) 设备回连方法和相关装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18921001

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18921001

Country of ref document: EP

Kind code of ref document: A1