Incoming call alerting method and electronic device
By judging the dual-pass capability of the dual-SIM device, it automatically rejects the incoming call and prompts it, which solves the problem of call rejection in the dual-SIM dual-pass scenario, improves the user experience and generates missed records.
Patent Information
- Application Number
- PCT/CN2023/134476
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2023-11-27
- Publication Date
- 2024-10-31
AI Technical Summary
In a dual-SIM dual-pass scenario, the electronic device cannot automatically reject calls from the other SIM card, causing the user to miss important calls and missed call records not being generated, affecting the user experience.
By determining whether the electronic device has dual-pass capability, if it does not, it will automatically reject the incoming call and perform incoming call prompt operations, including display, voice and vibration prompts, to ensure that the user is notified of the incoming call in a timely manner and generate a missed call record after the call is hung up. .
It realizes automatic rejection of incoming calls and timely reminders in dual-pass scenarios, preventing users from missing important calls, improving user experience, and ensuring the generation of missed call records.
Smart Images

Figure CN2023134476_31102024_PF_FP_ABST
Abstract
Description
Incoming call reminder method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 28, 2023, with application number 202310485974.2 and invention name “A method and electronic device for reminding incoming calls”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of communication technology, and in particular to an incoming call reminder method and electronic device. Background Art
[0003] With the development of technology, more and more electronic devices (such as mobile phones) support dual SIM dual standby (DSDS). Some dual SIM dual standby mobile phones can also support dual SIM dual active (DSDA).
[0004] In some cases, when one SIM card in a dual-SIM dual-connection electronic device is in a call state and receives an incoming call from the other SIM card, the electronic device needs to reject the call from the other SIM card. Therefore, in a dual-connection scenario, how to reject the call from the other SIM card has become an urgent problem to be solved.
[0005] Summary of the Invention
[0006] The present application provides an incoming call reminder method and electronic device for rejecting incoming calls from a SIM card in a dual-connection scenario. To achieve the above-mentioned purpose, the present application adopts the following technical solutions:
[0007] In a first aspect, a method for alerting an incoming call is provided, which is applied to an electronic device including at least two SIM cards. When a first SIM card of the at least two SIM cards is in a call state, the electronic device receives an incoming call from a second SIM card. The call state may include a ringing state or an in-call state, and the first SIM card and the second SIM card are two different SIM cards in the electronic device.
[0008] The electronic device can determine whether the electronic device can maintain a dual-SIM dual-channel DSDA mode; wherein the DSDA mode indicates that the electronic device has dual-channel capabilities for voice services, that is, when the electronic device performs voice services through one SIM card in the electronic device, it has the ability to perform voice services through another SIM card.
[0009] If the electronic device cannot maintain the DSDA mode, it indicates that the electronic device does not have dual-communication capability and needs to automatically reject the incoming call from the second SIM card. The electronic device can reject the incoming call from the second SIM card and perform an incoming call prompt operation, which can prompt the electronic device to receive the incoming call from the second SIM card.
[0010] In the present application, when a SIM card (i.e., the first SIM card) in an electronic device is in a call state, if a call is received from another SIM card (i.e., the second SIM card) in the electronic device, the electronic device can first determine whether the electronic device can maintain the DSDA mode, that is, determine whether the electronic device has the dual-channel capability for voice services, that is, determine whether the electronic device has the ability to answer the call from the second SIM card. If the electronic device cannot maintain the DSDA mode, it indicates that the electronic device does not have the dual-channel capability, that is, it does not have the ability to answer the call from the other SIM card, and needs to automatically reject the call from the other SIM card. The electronic device can reject the call from the second SIM card to automatically reject the call from the second SIM card, that is, to automatically reject the call from the SIM card in the dual-channel scenario. In addition, the electronic device can perform a call reminder operation to remind the user that the electronic device has received the call from the second SIM card, so that the user can be notified of the call from the second SIM card in a timely manner, and realize the timely reminder of automatically rejecting the call in the dual-channel scenario to prevent the user from missing important calls. At the same time, the incoming call reminder operation can prevent the electronic device from not generating a missed call record corresponding to the incoming call of the second SIM card after the electronic device hangs up the incoming call of the second SIM card, resulting in the user not being able to find the incoming call of the second SIM card, thereby preventing the situation of missing calls and preventing the user from missing important calls, and improving user experience.
[0011] In a possible implementation of the first aspect, if the electronic device is able to maintain the DSDA mode, it indicates that the electronic device has dual-talk capability. The electronic device may continue to determine whether the electronic device is capable of dual-talk, that is, whether it can answer an incoming call from the second SIM card. The electronic device may use a preset dual-talk policy to determine whether the electronic device rejects the incoming call from the second SIM card. The preset dual-talk policy indicates whether to reject an incoming call from one SIM card in the electronic device when the other SIM card is in a call state.
[0012] When the preset dual-communication policy indicates that when one SIM card is in a call state, an incoming call from another SIM card should be rejected, the electronic device can perform a rejection operation and an incoming call prompt operation on the incoming call from the second SIM card.
[0013] Exemplarily, the preset dual-channel strategy may be preset in the electronic device. For example, the preset dual-channel strategy may have been set in the electronic device before the electronic device leaves the factory.
[0014] In the present application, when the electronic device is able to maintain the DSDA mode, the electronic device has a dual-channel capability, and the electronic device may be able to answer the call of the second SIM card. Therefore, the electronic device can determine whether the electronic device itself can continue to maintain dual-channel based on the preset dual-channel strategy. When the preset dual-channel strategy indicates that one SIM card is in a call state, it indicates that the electronic device does not support answering the call of another SI card when one SIM card is in a call state. (Or it is described as being unable to perform dual-channel itself), the electronic device can directly reject the call of the above-mentioned second SIM card, and the electronic device can perform a call prompt operation to prompt the user that the electronic device has received the call of the second SIM card, so that the user can be informed of the call of the second SIM card in time, and timely reminder of the call of the second SIM card in the dual-channel scenario is realized to prevent the user from missing important calls.
[0015] In another possible implementation of the first aspect, when a preset dual-communication policy indicates that a call from one SIM card is being answered while another SIM card is in a call state, the electronic device may display an answering interface corresponding to the incoming call from the second SIM card, so that the electronic device can answer or hang up the incoming call from the second SIM card through user operations on the answering interface.
[0016] In one possible implementation of the first aspect, the rejecting operation may include sending a first cancellation message to the calling device corresponding to the incoming call from the second SIM card. The first cancellation message is used to trigger the calling device to output a first prompt message, where the first prompt message is used to indicate the actual reason why the incoming call from the second SIM card was not answered, that is, to indicate that another SIM card of the called device is currently in a call. This allows the calling user to clearly understand the actual reason why the incoming call from the second SIM card was not answered, thereby avoiding confusion as to why the other party did not answer the call.
[0017] Exemplarily, the first cancellation message may carry the first prompt information.
[0018] In a possible implementation of the first aspect, the electronic device uses the SIM card in the electronic device to make an outgoing call, and a process in which the outgoing call is rejected may include:
[0019] The electronic device sends an outgoing call request to the target device based on a target SIM card among the at least two SIM cards; wherein the target SIM card is a SIM card among the at least two SIM cards that is in an idle state (e.g., not in a call state);
[0020] If the target device rejects the outgoing call request from the target SIM card, the target device may send a first cancellation message to the electronic device. In response to the first cancellation message, the electronic device may output a first prompt message, which is used to indicate that another SIM card of the called device (such as the target device) is in a call, so that the user of the electronic device can clearly know the reason why the outgoing call from the target SIM card was rejected.
[0021] In a possible implementation of the first aspect, when the above-mentioned electronic device cannot maintain the DSDA mode, after the incoming call of the above-mentioned second SIM card is hung up, the electronic device can generate a missed call record corresponding to the incoming call of the second SIM card, so that the user can view the missed calls of the second SIM card through the call record, and implement a leakage reminder through the call record to avoid the electronic device failing to generate a missed call record corresponding to the incoming call of the second SIM card due to certain reasons (such as inability to perceive the incoming call of the second SIM card), resulting in the user being unable to discover the leakage.
[0022] In a possible implementation of the first aspect, the electronic device may include a modem. Accordingly, when receiving an incoming call from the second SIM card, the modem may determine whether it can maintain the DSDA mode, that is, determine whether the modem has dual-talk capability.
[0023] In the case that the modem cannot maintain the DSDA mode, the modem rejects the incoming call from the second SIM card and performs an incoming call prompt operation, thereby rejecting the incoming call from the second SIM card through the modem.
[0024] Among them, the modem can perform the incoming call prompt operation through other modules of the electronic device (such as the application framework layer, the Incall module). Exemplarily, when the DSDA mode cannot be maintained, the modem can send a second incoming call message to the application framework layer in the electronic device. Among them, the second incoming call message can include the calling number. Of course, it can also include other types of information, such as the called number, the second SIM card identifier, the incoming call time, etc. Afterwards, the application framework layer can send the second incoming call message to the IncallUI module in the electronic device. Afterwards, the IncallUI module receives the second incoming call message, and based on the second incoming call message, performs the incoming call prompt operation to realize timely reminder of the incoming call of the second SIM card.
[0025] In another possible implementation of the first aspect, when the modem is capable of maintaining the DSDA mode, the modem may send the first incoming call message to a target software layer in the electronic device.
[0026] The target software layer receives the first incoming call message. In response to the first incoming call message, if a preset dual-communication policy indicates that a call from one SIM card is in a call state, the target software layer may reject the incoming call from the second SIM card and may also perform an incoming call prompt operation, thereby rejecting the incoming call from the second SIM card through the target software layer.
[0027] The target software layer may perform a rejection operation through other modules (such as a Modem) of the electronic device.
[0028] Exemplarily, the target software layer may include an application framework layer, or an Android runtime and system library layer. Exemplarily, the operations performed by the target software layer may be performed by relevant modules in the application framework layer, or the Android runtime and system library. For example, the operations performed by the application framework layer may be performed by the IMS Common module in the application framework layer.
[0029] In a possible implementation of the first aspect, since the upper layer (such as the application framework layer and the application layer) cannot perceive the incoming call from the second SIM card when the modem rejects the incoming call from the second SIM card, it is unable to generate a missed call record corresponding to the incoming call from the second SIM card. However, by performing an incoming call reminder operation, the upper layer can perceive the incoming call from the second SIM card, so that after the incoming call from the second SIM card is hung up, a missed call record corresponding to the incoming call from the second SIM card can be generated. Accordingly, after the incoming call from the second SIM card ends, the user performs a first operation of viewing missed calls. In response to the first operation, the electronic device can display the missed call record, wherein the missed call record includes the missed call record corresponding to the incoming call from the second SIM card (or is described as the incoming call record of the second SIM card).
[0030] In one possible implementation of the first aspect, the incoming call prompt operation includes at least one of the following operations: displaying a second prompt message, playing the second prompt message by voice (i.e., a voice prompt), and vibrating the prompt. The second prompt message includes the caller number corresponding to the incoming call from the second SIM card and / or the identifier of the second SIM card, thereby providing a timely reminder to automatically reject the incoming call in a dual-connection scenario.
[0031] In one possible implementation of the first aspect, performing the incoming call prompt operation includes displaying a second prompt message. After receiving a second user operation on the second prompt message, the electronic device may, in response to the second operation, hang up the call on the first SIM card. Based on the first SIM card, a caller number corresponding to the incoming call on the second SIM card is dialed back; alternatively, based on the second SIM card, a caller number corresponding to the incoming call on the second SIM card is dialed back, thereby quickly returning the incoming call on the second SIM card and preventing the user from making an important mistake.
[0032] For example, before performing a call back operation on the calling number corresponding to the incoming call of the second SIM card based on the second SIM card, the incoming call of the second SIM card may be hung up first.
[0033] In a possible implementation of the first aspect, the above-mentioned determination of whether the electronic device (or the modem in the electronic device) can maintain the DSDA mode can be determined by the mobile communication network and / or the frequency band corresponding to the mobile communication network.
[0034] In one example, the determination is made using a mobile communication network. The electronic device (or modem) determines whether the actual network combination belongs to a preset network combination, where the actual network combination includes a first network combination and / or a second network combination. The first network combination includes the mobile communication network of the first SIM card and the initial mobile communication network of the second SIM card, and the second network combination includes the mobile communication network of the first SIM card and the predicted mobile communication network of the second SIM card.
[0035] The mobile communication network of the first SIM card refers to the mobile communication network currently used by the first SIM card for voice services, and the initial mobile communication network of the second SIM card refers to the mobile communication network used by the second SIM card when receiving an incoming call. The predicted mobile communication network of the second SIM card refers to the mobile communication network predicted to be used for continuing to process the incoming call from the second SIM card after receiving the incoming call from the second SIM card. The preset network combination refers to the mobile communication networks of the first SIM card and the second SIM card when the electronic device has dual-channel capabilities.
[0036] When the actual network combination belongs to the preset network combination, the electronic device (or modem) can maintain the DSDA mode. When the actual network combination does not belong to the preset network combination, the electronic device (or modem) cannot maintain the DSDA mode.
[0037] Exemplarily, taking the above-mentioned actual network combination including the first network combination as an example, when the first network combination belongs to the preset network combination, the actual network combination belongs to the preset network combination; when the first network combination does not belong to the preset network combination, the actual network combination does not belong to the preset network combination.
[0038] Taking the above-mentioned actual network combination including the second network combination as an example, when the second network combination belongs to the preset network combination, the actual network combination belongs to the preset network combination; when the second network combination does not belong to the preset network combination, the actual network combination does not belong to the preset network combination.
[0039] Taking the above-mentioned actual network combination including the first network combination and the second network combination as an example, when the first network combination and the second network combination both belong to the preset network combination, the actual network combination belongs to the preset network combination; when the first network combination or the second network combination does not belong to the preset network combination, the actual network combination does not belong to the preset network combination.
[0040] In the present application, the electronic device (or the modem in the electronic device) may only have the dual-channel capability for voice services under a specific mobile communication network combination. Therefore, the electronic device can determine the mobile communication network currently used by the first SIM card for voice services (i.e., the mobile communication network of the first SIM card) and the mobile communication network currently used by the second SIM card for voice services (i.e., the mobile communication network of the second SIM card). Afterwards, the electronic device can determine whether the electronic device has the dual-channel capability for voice services by judging whether the actual network combination including the mobile communication network of the first SIM card and the mobile communication network of the second SIM card belongs to the preset network combination, thereby determining whether the incoming call of the second SIM card is rejected.
[0041] In another example, the determination is made based on the frequency band corresponding to the mobile communication network. The electronic device (or modem) determines whether the actual frequency band combination belongs to the preset frequency band combination, where the actual frequency band combination includes a first frequency band combination and / or a second frequency band combination. The first frequency band combination includes the frequency band of the first SIM card and the initial frequency band of the second SIM card, and the second frequency band combination includes the frequency band of the first SIM card and the predicted frequency band of the second SIM card.
[0042] The frequency band of the first SIM card indicates the network frequency band used by the first SIM card for voice services, and the initial frequency band of the second SIM card indicates the network frequency band used by the second SIM card when receiving an incoming call. The predicted frequency band of the second SIM card indicates the network frequency band used to continue processing the incoming call of the second SIM card after receiving the incoming call from the second SIM card. The preset frequency band combination indicates the frequency bands of the first SIM card and the second SIM card when the electronic device has dual-communication capability;
[0043] When the actual frequency band combination belongs to the preset frequency band combination, the electronic device (or modem) can maintain the DSDA mode. When the actual frequency band combination does not belong to the preset frequency band combination, the electronic device (or modem) cannot maintain the DSDA mode.
[0044] Exemplarily, taking the above-mentioned actual frequency band combination including the first frequency band combination as an example, when the first frequency band combination belongs to the preset frequency band combination, the actual frequency band combination belongs to the preset frequency band combination; when the first frequency band combination does not belong to the preset frequency band combination, the actual frequency band combination does not belong to the preset frequency band combination.
[0045] Taking the above-mentioned actual frequency band combination including the second frequency band combination as an example, when the second frequency band combination belongs to the preset frequency band combination, the actual frequency band combination belongs to the preset frequency band combination; when the second frequency band combination does not belong to the preset frequency band combination, the actual frequency band combination does not belong to the preset frequency band combination.
[0046] Taking the above-mentioned actual frequency band combination including the first frequency band combination and the second frequency band combination as an example, when the first frequency band combination and the second frequency band combination both belong to the preset frequency band combination, the actual frequency band combination belongs to the preset frequency band combination; when the first frequency band combination or the second frequency band combination does not belong to the preset frequency band combination, the actual frequency band combination does not belong to the preset frequency band combination.
[0047] In another example, the determination is made based on the mobile communication network and the frequency band corresponding to the mobile communication network. If the actual network combination belongs to the preset network combination and the actual frequency band combination belongs to the preset frequency band combination, the electronic device can maintain the DSDA mode. If the actual network combination does not belong to the preset network combination or the actual frequency band combination does not belong to the preset frequency band combination, the electronic device cannot maintain the DSDA mode.
[0048] In the present application, since a mobile communication network may include multiple frequency bands, an electronic device (or a modem in an electronic device) may only be able to perform voice services in a specific frequency band in the mobile communication network, that is, the electronic device may only have dual-channel capabilities for voice services in a specific frequency band combination. Therefore, the electronic device can determine the specific frequency band currently used by the first SIM card for voice services (i.e., the frequency band of the first SIM card) and the specific frequency band used by the second SIM card for voice services (i.e., the frequency band of the second SIM card). Afterwards, the electronic device can determine whether the electronic device has dual-channel capabilities for voice services by judging whether the actual frequency band combination including the frequency band of the first SIM card and the frequency band of the second SIM card belongs to the preset frequency band combination, thereby accurately judging whether the incoming call of the second SIM card is rejected.
[0049] In a second aspect, the present application provides an incoming call reminder method, applicable to an electronic device including at least two SIM cards. When a first SIM card of the at least two SIM cards is in a call state, the electronic device receives an incoming call from a second SIM card. The call state may include a ringing state or an in-call state, and the first SIM card and the second SIM card are two different SIM cards in the electronic device.
[0050] The electronic device can determine whether the electronic device can maintain a dual-SIM dual-channel DSDA mode; wherein the DSDA mode indicates that the electronic device has dual-channel capabilities for voice services, that is, when the electronic device performs voice services through one SIM card in the electronic device, it has the ability to perform voice services through another SIM card.
[0051] If the electronic device cannot maintain the DSDA mode, it indicates that the electronic device does not have dual-channel capability. The electronic device can reject the incoming call of the second SIM card. The rejection operation includes sending a first cancellation message to the calling device corresponding to the incoming call of the above-mentioned second SIM card. The first cancellation message is used to trigger the calling device to output a first prompt message and stop the call. The first prompt message is used to prompt the called device that the other SIM card is in a call.
[0052] Exemplarily, the first cancellation message may carry the above-mentioned first prompt information.
[0053] In the present application, when a first SIM card in an electronic device is in a call state and a call is received from a second SIM card in the electronic device, the electronic device can first determine whether the electronic device can maintain DSDA mode, that is, determine whether the electronic device has dual-talk capability for voice services. If the electronic device cannot maintain DSDA mode, it indicates that the electronic device does not have dual-talk capability, that is, it does not have the ability to answer calls from another SIM card and needs to automatically reject the call from the other SIM card. The electronic device can reject the call from the second SIM card to automatically reject the call from the second SIM card, that is, reject the call from the SIM card in a dual-talk scenario. In addition, by sending a first cancellation message to the calling device corresponding to the incoming call from the second SIM card to trigger the calling device to output a first prompt message, the calling user can clearly understand the actual reason why the incoming call from the second SIM card was not answered, avoiding the calling user's confusion as to why the other party did not answer the call.
[0054] In a possible implementation of the second aspect, when the above-mentioned electronic device cannot maintain the DSDA mode, the electronic device can not only perform a rejection operation, but also perform a call prompt operation, and the call prompt operation can prompt the electronic device to receive an incoming call from the second SIM card. Based on this, the call prompt operation can prompt the user that the electronic device has received an incoming call from the second SIM card, so that the user can be informed of the incoming call from the second SIM card in a timely manner, and timely reminders of automatic rejection of incoming calls in a dual-channel scenario can be achieved to prevent the user from missing important calls. At the same time, the call prompt operation can prevent the electronic device from hanging up the call from the second SIM card, because the missed call record corresponding to the incoming call from the second SIM card is not generated, resulting in the user being unable to find the incoming call from the second SIM card, thereby preventing the occurrence of missed calls, preventing the user from missing important calls, and improving the user experience.
[0055] In a third aspect, the present application provides an electronic device, comprising a display screen, a memory, multiple SIM card interfaces, and one or more processors; the display screen, the memory, the SIM card interface, and the processor are coupled; the SIM card interface is used to connect a SIM card, the display screen is used to display an image generated by the processor, and the memory is used to store computer program code, the computer program code comprising computer instructions; when the processor executes the computer instructions, the electronic device executes the incoming call reminder method as described above.
[0056] For example, the display screen may display call-related interfaces, such as an incoming call interface, an answering call interface, and the like.
[0057] In another possible implementation of the third aspect, the electronic device may include a modem, and the modem may determine whether to reject an incoming call.
[0058] In another possible implementation of the third aspect, the electronic device may further include one or more components of a motor, a receiver, and a speaker. The motor may vibrate to indicate an incoming call, and the receiver or speaker may provide voice prompts for an incoming call.
[0059] In a fourth aspect, the present application provides a computer-readable storage medium comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute the method described above.
[0060] In a fifth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method described above.
[0061] It can be understood that the beneficial effects that can be achieved by the incoming call reminder method described in the second aspect, the electronic device described in the third aspect, the computer-readable storage medium described in the fourth aspect, and the computer program product described in the fifth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0063] FIG2 is a structural block diagram of an electronic device provided in an embodiment of the present application;
[0064] FIG3A is a first schematic diagram of a call interface provided in an embodiment of the present application;
[0065] FIG3B is a second schematic diagram of a call interface provided in an embodiment of the present application;
[0066] FIG4A is a third schematic diagram of a call interface provided in an embodiment of the present application;
[0067] FIG4B is a fourth schematic diagram of a call interface provided in an embodiment of the present application;
[0068] FIG5 is a first schematic diagram of a call rejection process according to an embodiment of the present application;
[0069] FIG6A is a fifth schematic diagram of a call interface provided in an embodiment of the present application;
[0070] FIG6B is a sixth schematic diagram of a call interface provided in an embodiment of the present application;
[0071] FIG6C is a seventh schematic diagram of a call interface provided in an embodiment of the present application;
[0072] FIG6D is a schematic diagram eight of a call interface provided in an embodiment of the present application;
[0073] FIG7 is a second schematic diagram of a call rejection process according to an embodiment of the present application;
[0074] FIG8 is a flowchart of a method for prompting an incoming call provided by an embodiment of the present application;
[0075] FIG9A is a first schematic diagram of an interface for an incoming call reminder according to an embodiment of the present application;
[0076] FIG9B is a second schematic diagram of an interface for an incoming call reminder provided in an embodiment of the present application;
[0077] FIG9C is a ninth diagram of a call interface provided in an embodiment of the present application;
[0078] FIG9D is a schematic diagram 10 of a call interface provided in an embodiment of the present application;
[0079] FIG9E is a third schematic diagram of an interface for an incoming call reminder provided in an embodiment of the present application;
[0080] FIG9F is a schematic diagram 11 of a call interface provided in an embodiment of the present application;
[0081] FIG9G is a twelfth schematic diagram of a call interface provided in an embodiment of the present application;
[0082] FIG10 is a schematic diagram of an interface for a rejection prompt provided in an embodiment of the present application;
[0083] FIG11 is a second flow chart of a method for prompting an incoming call provided by an embodiment of the present application;
[0084] FIG12 is a third flow chart of a method for prompting an incoming call provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0086] FIG1 shows a schematic structural diagram of an electronic device 100 .
[0087] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0088] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0089] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0090] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0091] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0092] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0093] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0094] The charging management module 140 is configured to receive charging input from a charger. While charging the battery 142 , the charging management module 140 can also provide power to the electronic device through the power management module 141 .
[0095] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the electronic device.
[0096] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0097] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0098] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor, which can also be called a modem (Modem) for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0099] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0100] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0101] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0102] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0103] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0104] In some embodiments, the electronic device 100 may display an incoming call reminder message on the display screen 194 to indicate the incoming call status of the SIM card in the electronic device 100. For example, if one SIM card in the electronic device 100 is in a call state and receives an incoming call from another SIM card, if the call is rejected, an incoming call reminder message may be displayed on the display screen 194 to indicate the incoming call status of the other SIM card.
[0105] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0106] The ISP is used to process data fed back by the camera 193 .
[0107] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0108] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0109] Video codecs are used to compress or decompress digital video. The NPU is a neural-network (NN) computing processor that draws on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, to rapidly process input information and continuously learn.
[0110] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0111] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0112] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0113] The audio module 170 is used to convert digital audio information into analog audio signals for output, and is also used to convert analog audio input into digital audio signals.
[0114] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0115] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0116] In some embodiments, the electronic device 100 can provide a voice notification through the receiver 170B regarding the incoming call status of the SIM card in the electronic device 100. For example, if one SIM card in the electronic device 100 is in a call state and receives an incoming call from another SIM card, if the call is rejected, a voice notification can be provided regarding the incoming call from the other SIM card.
[0117] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
[0118] The headphone jack 170D is used to connect a wired headphone.
[0119] Exemplarily, the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor 180, an ambient light sensor, a bone conduction sensor, and the like.
[0120] The buttons 190 include a power button, a volume button, etc. The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. For example, if a SIM card in the electronic device 100 is in a call state and receives an incoming call from another SIM card, if the call is rejected, the other SIM card can be prompted by vibration.
[0121] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0122] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network (or described as a mobile communication network) through the SIM card to achieve functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0123] Exemplarily, the above-mentioned electronic device can be a mobile phone, tablet computer, wearable device (such as a smart watch) or other device with a SIM card, and this application does not limit it.
[0124] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0125] FIG2 is a structural block diagram of the electronic device 100 according to an embodiment of the present application.
[0126] A layered architecture divides software into several layers, each with distinct roles and divisions of labor. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. These layers, along with the application framework, the Android runtime and system libraries, and the kernel layer, are all considered software layers.
[0127] The application layer may include a series of application packages, such as a call interface, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and other applications, as shown in FIG2 .
[0128] For example, the call interface application is responsible for managing call-related interfaces, such as displaying the incoming call interface, answering interface, and hanging up interface. Furthermore, the call interface application can display incoming call prompt information. For example, if one SIM card in the electronic device 100 is in a call state and receives an incoming call from another SIM card, if the call is rejected, the call interface application can display an incoming call prompt information on the interface currently displayed on the electronic device 100, indicating the incoming call from the other SIM card.
[0129] In some embodiments, the call interface application may be an IncallUI module, which is a native module of the Android system.
[0130] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0131] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an IP multimedia subsystem (IMS) Common module, and the like.
[0132] The IMS Common module can determine whether to reject incoming calls from the SIM card based on a preset call policy (such as a preset dual-talk policy). The IMS Common module is a native module of the Android system.
[0133] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0134] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0135] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0136] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0137] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0138] The notification manager enables applications to display notification information in the status bar, which can be used to convey informational messages and disappear automatically after a short stay without user interaction.
[0139] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0140] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0141] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0142] The system library can include multiple functional modules, such as IMS applications (Android packages, APKs), surface managers, media libraries, 3D graphics processing libraries (such as OpenGL ES), and 2D graphics engines (such as SGL).
[0143] The IMS application can determine whether to reject the incoming call of the SIM card. In some embodiments, the IMS application may not be located in the Android runtime and system library, but may be located in the application framework layer.
[0144] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0145] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0146] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0147] A 2D graphics engine is a drawing engine for 2D drawings.
[0148] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0149] In some embodiments, the software layer and the hardware layer can communicate with each other. For example, when one SIM card is in a call state and receives an incoming call from another SIM card, the modem in the hardware layer can send an incoming call message to the software layer if it determines that the DSDA mode can be maintained, so that the software layer (such as the application framework layer) can continue to determine whether to reject the incoming call from the other SIM card.
[0150] A possible hardware structure and software structure of an electronic device are introduced above. The following takes the electronic device being a mobile phone (or referred to as mobile phone 1) as an example to introduce the technical solution of the present application.
[0151] In some embodiments, the mobile phone supports dual-SIM dual-pass mode. Generally speaking, a dual-SIM dual-pass mobile phone can perform voice services based on a first mobile communication network through one SIM card in the mobile phone, and can also perform voice services based on a second mobile communication network through another SIM card. For example, when the first SIM card in mobile phone 1 is in a call (as shown in Figure 3A), after receiving an incoming call from the second SIM card, mobile phone 1 can display the incoming call interface shown in Figure 3B. Later, when the user wants to answer the incoming call from the second SIM card, they can click the answer button on the incoming call interface shown in Figure 3B. In response to clicking the answer button, mobile phone 1 can answer the incoming call from the second SIM card and connect the incoming call from the second SIM card. Among them, card 1 (here card 1 can represent the first SIM card) in the call interface shown in Figure 3A above represents the SIM card that is making a call with the device number 15XXX, the operator corresponding to card 1 is operator 1, and region 1 is the home area of 15XXX. Card 2 (here card 2 may be a second SIM card) in the incoming call interface shown in FIG. 3B indicates the SIM card that receives the incoming call. The operator corresponding to card 2 is operator 2, and the caller number corresponding to the incoming call of card 2 is 185XXX.
[0152] The first mobile communication network can be a 2G / 3G / 4G / 5G mobile communication network. Similarly, the second mobile communication network can be a 2G / 3G / 4G / 5G mobile communication network. Generally speaking, to improve call quality, the first mobile communication network can be a 4G or 5G network, and the second mobile communication network can be a 4G or 5G network. For example, the first mobile communication network is a 4G network, and the second mobile communication network is a 5G network; another example, the first network is a 5G network, and the second mobile communication network is a 4G network; another example, the first mobile communication network is a 5G network, and the second mobile communication network is a 5G network. In other words, mobile phone 1 can achieve dual-SIM dual-access via a combination of 4G+5G or 5G+4G networks, but cannot achieve dual-SIM dual-access via a combination of 4G+4G networks. In other words, if one of the first and second mobile communication networks is a 4G network, the other cannot be a 4G network.
[0153] In some embodiments, mobile phone 1 may be unable to maintain dual-SIM dual-talk mode. That is, when one SIM card (e.g., the first SIM card) in a dual-SIM dual-talk mobile phone 1 is in a call, the other SIM card (e.g., the second SIM card) in mobile phone 1 is unable to perform voice services, such as automatically rejecting the second SIM card's voice call request (or incoming call from the second SIM card). The calling device corresponding to the incoming call from the second SIM card may play a prompt message stating "The number you dialed is currently in a call." While mobile phone 1 is receiving an incoming call from the second SIM card, the user of mobile phone 1 is unaware of the incoming call from the second SIM card, resulting in the user being unable to promptly detect the new call, potentially causing missed calls and potentially causing the user to miss important calls. Call status can include an active call state or a ringing state. The ringing state represents the state of mobile phone 1 from the time a voice call request (or call) is made to the time the call is connected by the other party. For example, after making a call, mobile phone 1 plays the other party's ringtone and is in the ringing state. Alternatively, the ringing state indicates that mobile phone 1 has received an incoming call but has not yet answered it. That is, the ringing state indicates that the mobile phone 1 itself is ringing, or the other party is ringing.
[0154] The call status refers to the state after the call is connected, that is, the call has been connected. In other words, from the time the SIM card call is answered to the end of the SIM card call (such as user hang up or automatic hang up), the SIM card is in the call state.
[0155] For example, if mobile phone 1 receives an incoming call from the first SIM card, the user can click the answer button on the incoming call interface shown in Figure 4A. In response to the user clicking the answer button, mobile phone 1 answers the incoming call from the first SIM card and displays the answer interface corresponding to the incoming call from the first SIM card shown in Figure 4B. The status of the first SIM card in mobile phone 1 switches from ringing to active. While the first SIM card in mobile phone 1 is in active call, the calling and called users corresponding to the incoming call from the first SIM card can make a call. Here, the calling and called users corresponding to the incoming call from the first SIM card indicate the user of the calling device and the user of the called device (such as mobile phone 1) corresponding to the incoming call from the first SIM card. When the user of mobile phone 1 wants to hang up the call, the user can click the hang-up button shown in Figure 3A above. In response to clicking the hang-up button, mobile phone 1 hangs up the call from the first SIM card. Similarly, the calling device corresponding to the incoming call from the first SIM card can also hang up the call from the first SIM card. The calling device can be a user equipment (UE), such as a mobile phone, tablet computer, or other device with call capabilities.
[0156] From the time mobile phone 1 receives an incoming call from the first SIM card until mobile phone 1 answers the incoming call from the first SIM card, the first SIM card in mobile phone 1 is in a ringing state. After mobile phone 1 answers the incoming call from the first SIM card until the call with the first SIM card is terminated, the first SIM card in mobile phone 1 is in a call-in-progress state. When mobile phone 1 answers the incoming call from the first SIM card, the state of the first SIM card in mobile phone 1 switches to a call-in-progress state.
[0157] For another example, the user of mobile phone 1 uses the first SIM card in mobile phone 1 to make an outgoing call. While waiting for the outgoing call from the first SIM card to be answered, mobile phone 1 can play the other party's ringtone. Here, mobile phone 1 is the called device, and the device receiving the outgoing call from the first SIM card is the calling device. Later, when the user of the calling device answers the outgoing call from the first SIM card, such as by clicking an answer button displayed on the calling device, the calling device can connect the outgoing call from the first SIM card in response to the user's click of the answer button. From the time the first SIM card in mobile phone 1 makes an outgoing call, or from the time mobile phone 1 plays the other party's ringtone, until the outgoing call from the first SIM card is connected, the SIM card in mobile phone 1 is in a ringing state. When the calling device connects the outgoing call from the first SIM card, the state of the first SIM card in mobile phone 1 switches to an active call state.
[0158] For example, as shown in FIG5 , the first SIM card in mobile phone 1 is in a call state, and mobile phone 1 receives an incoming call from the second SIM card. The process of rejecting the incoming call from the second SIM card may include: first, when the first SIM card in mobile phone 1 is in a call state, mobile phone 1 receives an incoming call from the second SIM card through a network (such as a core network) (i.e., receives an invite message from the second SIM card). The invite message may include a calling number and a called number (such as the phone number corresponding to the second SIM card). Here, the calling device of the second SIM card can be mobile phone 2.
[0159] Afterwards, the IMS in mobile phone 1 receives the invite message. In response to the invite message, the IMS determines whether mobile phone 1 can maintain DSDA mode, that is, whether the modem in mobile phone 1 has dual-communication capability. The IMS may be located on the modem.
[0160] If DSDA mode cannot be maintained, it indicates that the modem in mobile phone 1 does not support dual-talk and lacks dual-talk capability. In other words, mobile phone 1 cannot use the second SIM card for voice services while the first SIM card is in a call. The IMS can directly reject the incoming call from the second SIM card. For example, the IMS can send a cancel message to mobile phone 2 via the network. The calling device then receives the cancel message and plays a voice prompt message saying "The number you dialed is currently in a call," thus abandoning (or stopping) the call.
[0161] If the DSDA mode can be maintained, it indicates that the modem in mobile phone 1 has dual-channel capabilities. The IMS can send an incoming call message to the application framework layer in mobile phone 1. The incoming call message may include the caller number. The application framework layer can then respond to the incoming call message and determine whether to reject the incoming call from the second SIM card based on a preset dual-channel policy. The preset dual-channel policy indicates whether to automatically reject the incoming call from the second SIM card in a dual-channel scenario, that is, if one SIM card is in a call state and receives an incoming call from another SIM card.
[0162] In the case of rejecting the incoming call from the second SIM card, it indicates that the preset dual-communication policy indicates that if one SIM card is in a call and receives an incoming call from another SIM card, the call from the other SIM card should be rejected. The application framework layer can send a reject message to the IMS. The IMS then receives the reject message and, in response to it, can send a cancellation message to the calling device corresponding to the incoming call from the second SIM card. The calling device then receives the cancellation message via the network and, in response to it, plays a voice prompt message stating that "the number you dialed is currently in a call."
[0163] Furthermore, as shown in FIG5 , when rejecting the incoming call from the second SIM card, the application framework layer can send an incoming call message to the IncallUI module in the mobile phone 1. The incoming call message is used by the IncallUI module to generate a missed call record corresponding to the incoming call from the second SIM card when the incoming call from the second SIM card ends. Afterwards, when the incoming call from the second SIM card ends, the IncallUI module can generate a missed call record corresponding to the incoming call from the second SIM card based on the relevant information in the incoming call message (such as the calling number) and display the missed call record corresponding to the incoming call from the second SIM card.
[0164] In some embodiments, the operations performed by the aforementioned application framework layer may be performed by relevant modules in the application framework layer, such as an IMS Common module.
[0165] As can be seen from Figure 5 above, the IMS (here also described as a Modem) and the application framework layer in mobile phone 1 can automatically reject the incoming call from the second SIM card. On the one hand, if the IMS directly rejects the incoming call from the second SIM card, the upper layer (such as the application framework layer and the IncallUI module) will not be able to perceive the incoming call from the second SIM card. At this time, the IncallUI module will not generate a missed call record. In other words, there will be no missed call record corresponding to the incoming call from the second SIM card in the incoming call record of mobile phone 1, resulting in a problem of power leakage and no reminder, causing the user of mobile phone 1 to be unable to know the incoming call from the second SIM card, which may cause the user to miss important calls.
[0166] For example, as shown in Figure 6A, when the first SIM card (such as Card 1) in mobile phone 1 is ringing, mobile phone 1 receives an incoming call from the second SIM card (such as Card 2) in mobile phone 1. The number corresponding to the second SIM card is 100XXX. The calling device of the incoming call from the second SIM card can be called mobile phone 2, and the calling number corresponding to the incoming call from the second SIM card is 185XXX. Afterwards, the IMS in mobile phone 1 can reject the incoming call from the second SIM card and send a cancellation message to mobile phone 2 (as shown in Figure 6B). Afterwards, the calling device receives the cancellation message and, in response to the cancellation message, plays a voice prompt message saying "The number you dialed is currently in use" (as shown in Figure 6B above).
[0167] When the user of mobile phone 2 wants to terminate the call, the user of mobile phone 2 can click the hang-up button 11 as shown in Figure 6A or Figure 6B. In response to the user clicking the hang-up button 11, mobile phone 2 can end the incoming call of the second SIM card. When the incoming call of the second SIM card ends, as shown in Figure 6C, there is no missed call record corresponding to the incoming call of the second SIM card in the call log of mobile phone 1, that is, there is no missed call record for the number 185XXX.
[0168] On the other hand, if the application framework layer rejects the incoming call of the second SIM card, although the upper layer can perceive the incoming call of the second SIM card, the IncallUI module will only generate a missed call record corresponding to the incoming call of the second SIM card after the incoming call of the second SIM card ends (such as the user of the calling device ends the incoming call of the second SIM card) (the missed call record 20 shown in Figure 6D). As a result, the user still cannot perceive the incoming call of the second SIM card during the incoming call of the second SIM card, resulting in the user not being reminded of the incoming call in time, which may cause the user to miss important calls and reduce the user's usage experience.
[0169] In some embodiments, not only the IMS (here or described as Modem) and application framework layer in mobile phone 1 can automatically reject the incoming call of the second SIM card, but other modules / devices in mobile phone 1 can also reject the incoming call of the second SIM card. As shown in Figure 7, the IMS application and IncallUI module in mobile phone 1 can also reject the incoming call of the second SIM card. Among them, the process of the IMS application rejecting the incoming call of the second SIM card is similar to the process of the above-mentioned application framework layer rejecting the incoming call of the second SIM card. If the IMS can maintain the DSDA mode, an incoming call message can be sent to the IMS application so that the IMS application can determine whether to reject the incoming call of the second SIM card based on the relevant call policy. If rejected, the IMS application can trigger the IMS to send a cancellation message to the calling device. If not rejected, the IMS application can send an incoming call message to the IMS Common module so that the IMS Common module can continue to determine whether to reject the incoming call of the second SIM card.
[0170] When the IMS Common module determines that the incoming call from the second SIM card is not to be rejected, it can send an incoming call message to the IncallUI module. Based on the incoming call message, the IncallUI module can display the incoming call interface corresponding to the incoming call from the second SIM card (as shown in Figure 3B above). Afterwards, the user can choose to answer or hang up the incoming call from the second SIM card. In one case, in response to the answering operation of the incoming call from the second SIM card, the IncallUI module can answer the incoming call from the second SIM card, and send an answer message to the calling device corresponding to the incoming call from the second SIM card through the IMS Common module, the IMS application and the Modem to connect the incoming call from the second SIM card. In another case, in response to the hang-up operation of the incoming call from the second SIM card, the IncallUI module can reject the incoming call from the second SIM card, and send a rejection message to the Modem through the IMS Common module and the IMS application in turn. Afterwards, the Modem can send a cancellation message to the calling device corresponding to the incoming call from the second SIM card in response to the rejection message.
[0171] It should be noted that even if mobile phone 1 cannot perform dual-talk, if it is necessary to automatically reject calls from the second SIM card, mobile phone 1 still meets the standards for a dual-talk device. Specifically, if the device meets the use cases for dual-talk calls disclosed by relevant departments as shown in Table 1, the device meets the standards for a dual-talk device.
[0172] Table 1
[0173] As can be seen from Table 1 above, for dual-SIM dual-channel devices, in dual-channel scenarios, they can be implemented similarly to single-channel devices. For example, when one SIM card in a dual-SIM dual-channel device is in a call state and the other SIM card calls, the dual-SIM dual-channel device can automatically reject the call from the other SIM card.
[0174] It's understandable that while this is implemented similarly to a single-call device, it's somewhat different from an actual single-call device. For example, assume mobile phone 1 is a dual-SIM, single-call device. While one SIM card in mobile phone 1 is in a call, if another device calls the other SIM card in mobile phone 1, although mobile phone 1 automatically rejects the call from the other SIM card, the modem in mobile phone 1 won't be able to detect the call from the other SIM card. However, if mobile phone 1 is a dual-SIM, dual-call device, the modem in mobile phone 1 will be able to detect the call from the other SIM card.
[0175] In response to the above problems, the present application provides a call reminder method. When the first SIM card in the mobile phone 1 is in a call state, if a call is received from the second SIM card in the mobile phone 1, the mobile phone 1 can determine whether the mobile phone 1 can support the DSDA mode, that is, determine whether it has dual-channel capability. If the DSDA mode is not supported, it indicates that the mobile phone 1 does not have dual-channel capability, that is, it indicates that the mobile phone 1 cannot perform dual-channel, and the mobile phone 1 needs to reject the call from the second SIM card. In order to avoid the user not discovering the rejected call from the second SIM card in time (i.e., leakage), the mobile phone 1 can perform a call reminder operation, which is used to prompt the mobile phone 1 to receive the call from the second SIM card. The call reminder operation may include at least one of displaying call reminder information, voice prompts and vibration prompts, to achieve timely reminder of automatic rejection of calls in the dual-channel scenario, so that the user can be informed of the call from the second SIM card in time to prevent the user from missing important calls. Furthermore, by performing the incoming call reminder operation, it is possible to avoid the situation where, after the incoming call of the second SIM card is hung up, the user cannot find the incoming call of the second SIM card because the mobile phone 1 does not generate a missed call record corresponding to the incoming call of the second SIM card, thereby preventing the occurrence of missed calls and preventing the user from missing important calls, thereby improving the user experience.
[0176] And / or, considering that the voice prompt of "the number you dialed is in a call" corresponds to a variety of scenarios, such as when the second SIM card is in a call state and the user actively hangs up the call from the second SIM card, therefore, when the DSDA mode is not supported, that is, when the mobile phone 1 needs to reject the call from the second SIM card, the mobile phone 1 can send a first cancellation message to the calling device corresponding to the call from the second SIM card. The first cancellation message is used to trigger the calling device to output a rejection prompt message (or called the first prompt message) and abandon the call. The rejection prompt message is used to prompt the called device (such as mobile phone 1) that the other SIM card is in a call state, that is, to prompt the actual reason why the mobile phone 1 did not answer the call from the second SIM card, so that the user of the calling device can clearly know the reason why the other party cannot answer the call, avoiding doubts about why the other party did not answer the call.
[0177] The above briefly summarizes the technical solution provided by the embodiment of the present application. The following will describe in detail the incoming call reminder method provided by the embodiment of the present application in conjunction with Figure 8. As shown in Figure 8, the incoming call reminder method may include S301-S306.
[0178] S301 : When the first SIM card in the mobile phone 1 is in a call state, the mobile phone 1 receives an incoming call from the second SIM card in the mobile phone 1 .
[0179] The call state can be a ringing state or a call in progress state. For an incoming call (ie, a voice call request) from the second SIM card, the mobile phone 1 is the called device, and the device that dials the voice call request from the second SIM card is the calling device.
[0180] The first SIM card can be any SIM card in the mobile phone 1. The second SIM card can be any SIM card in the mobile phone 1 except the first SIM card.
[0181] S302: Mobile phone 1 determines whether mobile phone 1 can maintain DSDA mode.
[0182] DSDA mode indicates that mobile phone 1 has dual-communication capabilities. That is, the modem in mobile phone 1 has dual-communication capabilities. This means that while mobile phone 1 is using one SIM card for voice services, it can also use the other SIM card for voice services. In other words, DSDA mode means that mobile phone 1 can answer calls from the second SIM card while the first SIM card is in a call.
[0183] In some embodiments, mobile phone 1 can determine whether it can maintain DSDA mode based on the mobile communication networks of the first SIM card and the second SIM card. First, mobile phone 1 can obtain the mobile communication networks of the first SIM card and the second SIM card. The mobile communication network of the first SIM card represents the mobile communication network currently used by the first SIM card for voice services. The mobile communication network of the second SIM card represents the mobile communication network used by the second SIM card for voice services. Then, mobile phone 1 can determine whether the mobile communication networks of the first SIM card and the second SIM card belong to a preset network combination. The preset network combination represents the mobile communication networks of the two SIM cards when mobile phone 1 (e.g., a modem in mobile phone 1) has dual-band capability. The preset network combination is set based on the modem in mobile phone 1. For example, the modem in mobile phone 1 only supports a 5G+5G combination. That is, if the mobile communication network used by one SIM card in mobile phone 1 for voice services is a 5G network and the mobile communication network used by the other SIM card for voice services is also a 5G network, mobile phone 1 (e.g., the modem in mobile phone 1) has dual-band capability. Accordingly, the preset network combination of mobile phone 1 can include a 5G+4G combination. For another example, the modem in mobile phone 1 can support 5G+5G combination and 5G+4G combination. The preset network combination of mobile phone 1 can include 5G+5G combination and 5G+4G combination.
[0184] If the actual network combination of mobile phone 1 (i.e., the network combination consisting of the mobile communication network of the first SIM card and the mobile communication network of the second SIM card) is a preset network combination, it indicates that mobile phone 1 supports the actual network combination. This also means that when the first SIM card is in a call state, mobile phone 1 can answer incoming calls from the second SIM card. In other words, mobile phone 1 has dual-talk capability, and mobile phone 1 can determine that mobile phone 1 can maintain DSDA mode.
[0185] If the actual network combination of mobile phone 1 does not belong to the preset network combination, it indicates that mobile phone 1 does not support the actual network combination. In other words, mobile phone 1 cannot answer calls from the second SIM card while the first SIM card is in a call state. In other words, mobile phone 1 does not have dual-communication capabilities. Mobile phone 1 (such as the modem in mobile phone 1) needs to reject calls from the second SIM card. Mobile phone 1 can determine that mobile phone 1 cannot maintain DSDA mode.
[0186] It is understandable that the type of mobile communication network used by the SIM card for voice services is related to the operator corresponding to the SIM card. For example, if the operator corresponding to the SIM card has activated 5G VoNR, the mobile communication network used by the SIM card for voice services (or the mobile communication network used to describe the voice services of the SIM card) can be a 5G network. For example, the dual-card 5G switch of mobile phone 1 is on, and both the first SIM card and the second SIM card in mobile phone 1 support the use of 5G networks for voice services. The operator corresponding to the first SIM card is operator A, and the operator corresponding to the second SIM card is operator B. Operator A has activated VoNR, and the mobile communication network for the voice service of the first SIM card can be a 5G network. Operator B has not activated VoNR, but has activated VoLTE. The second SIM card can initially use the 5G network to receive 5G calls, that is, the initial mobile communication network of the second SIM can be a 5G network. However, since the operator corresponding to the second SIM card has not activated VoNR, it cannot continue to use the 5G network for voice services. Therefore, the mobile communication network used by the second SIM card for voice services will fall back from 5G to 4G, that is, the mobile communication network used by the second SIM card for voice services will become the 4G network to rely on VoLTE to ensure the continuity of voice services. Here, when 5G does not meet the VoNR conditions, the voice service falls back from 5G to 4G, and the process of relying on VoLTE to ensure the continuity of voice services can be called EPSFB.
[0187] In addition, the type of mobile communication network used by the SIM card for voice services is not only related to the operator corresponding to the SIM card, but also to the area where the SIM card (i.e., mobile phone 1) is currently located. If the area where the SIM card is currently located belongs to the preset VoNR activation area, the mobile communication network used by the SIM card for voice services does not need to fall back from 5G to 4G. If the area where the SIM card is currently located does not belong to the preset VoNR activation area, the mobile communication network used by the SIM card for voice services needs to fall back from 5G to 4G.
[0188] In some embodiments, the mobile communication network of the second SIM card may include the initial mobile communication network of the second SIM card and / or the predicted mobile communication network of the second SIM card. The initial mobile communication network of the second SIM card refers to the mobile communication network initially used by the second SIM card for voice services, i.e., the mobile communication network used by the second SIM card for receiving incoming calls. For example, if the second SIM card can initially use a 5G network to receive 5G calls, the initial mobile communication network of the second SIM card is the 5G network.
[0189] The predicted mobile communication network of the second SIM card indicates the mobile communication network predicted to be used to continue processing the incoming call of the second SIM card after receiving the incoming call of the second SIM card, that is, the mobile communication network used by the second SIM card to continue to perform voice services. For example, the 5G switch corresponding to the second SIM card in mobile phone 1 is in the on state, which can support the use of the 5G network for voice services. The second SIM card initially uses the 5G network to receive incoming calls, and the initial mobile communication network of the second SIM card is the 5G network. However, since VoNR is not activated for the second SIM card, it cannot use the 5G network to continue processing the incoming call, and needs to fall back to the 4G network to continue processing the incoming call. Therefore, the predicted mobile communication network of the second SIM card is the 4G network.
[0190] Taking the example that the mobile communication network of the second SIM card includes the initial mobile communication network of the second SIM card, the actual network combination may include the mobile communication network of the first SIM card and the initial mobile communication network of the second SIM card.
[0191] Taking the example that the mobile communication network of the second SIM card includes the predicted mobile communication network of the second SIM card, the actual network combination may include the mobile communication network of the first SIM card and the predicted mobile communication network of the second SIM card.
[0192] Taking the example of the second SIM card's mobile communication network including the second SIM card's initial mobile communication network and predicted mobile communication network, the actual network combination may include a first network combination and a second network combination. The first network combination includes the first SIM card's mobile communication network and the second SIM card's initial mobile communication network. The second network combination includes the first SIM card's mobile communication network and the second SIM card's predicted mobile communication network. Accordingly, if both the first network combination and the second network combination belong to the preset network combination, mobile phone 1 can maintain DSDA mode without exiting DSDA mode. If neither the first network combination nor the second network combination belongs to the preset network combination, mobile phone 1 cannot maintain DSDA mode.
[0193] For example, the preset network combinations of mobile phone 1 include 5G+5G and 5G+4G. The first SIM card in mobile phone 1 is in a call state, and the mobile communication network it uses is 4G. That is, the first SIM card in mobile phone 1 is making a 4G call, and the mobile communication network of the first SIM card is 4G. The second SIM card in mobile phone 1 receives an incoming call from the second SIM card using the 5G network. The incoming call to the second SIM card is a 5G call, and the initial mobile communication network of the second SIM card is 5G. However, since VoNR is not activated for the second SIM card, the voice service of the second SIM card will fall back from 5G to 4G, and the predicted mobile communication network of the second SIM card is 4G. Accordingly, the first network combination is 5G+5G, and the second network combination is 5G+4G. Since the first network combination belongs to the preset network combination, and the second network combination does not belong to the preset network combination, mobile phone 1 can determine that mobile phone 1 cannot maintain DSDA mode.
[0194] Optionally, when receiving an incoming call from the second SIM card, mobile phone 1 may first determine whether the first network combination belongs to the preset network combination. If so, mobile phone 1 may then determine whether the second network combination belongs to the preset network combination. If not, mobile phone 1 may directly determine that DSDA mode cannot be maintained without further determining whether the second network combination belongs to the preset network combination.
[0195] It should be understood that if the 5G switch of the SIM card in mobile phone 1 is turned off, the SIM card cannot use the 5G network for voice services, such as receiving calls, and the initial mobile communication network of the SIM card will be the 4G network. In addition, when the mobile communication network of the SIM card needs to fall back, the frequency band to fall back to will be notified.
[0196] In the present application, the mobile phone 1 may only have the dual-channel capability for voice services under a specific network combination. Therefore, the mobile phone 1 can determine the mobile communication network currently used by the first SIM card for voice services (i.e., the mobile communication network of the first SIM card) and the mobile communication network used by the second SIM card for voice services (i.e., the mobile communication network of the second SIM card). Afterwards, the mobile phone 1 can determine whether the mobile phone 1 has the dual-channel capability for voice services by judging whether the actual network combination including the mobile communication network of the first SIM card and the mobile communication network of the second SIM card belongs to the preset network combination. When the dual-channel capability is possessed, it indicates that the mobile phone 1 has the ability to answer calls from the second SIM card, and the mobile phone 1 can continue to judge whether it can answer calls from the second SIM card. When the dual-channel capability is not possessed, it indicates that the mobile phone 1 cannot answer calls from the second SIM card, and can directly and automatically reject calls from the second SIM card, thereby realizing the judgment of whether the calls from the second SIM card are rejected.
[0197] In some embodiments, the above-mentioned mobile communication network (such as 4G, 5G and other mobile communication networks) is divided into multiple frequency bands, and each of the multiple frequency bands corresponds to a frequency band number. For example, the 4G network may include a frequency band corresponding to the frequency band number band1 (such as uplink 1920-1940MHz, downlink 2110-2130MHz), a frequency band corresponding to band2, a frequency band corresponding to band40, etc. The 5G network may include a frequency band corresponding to the frequency band number n78 and a frequency band corresponding to n79. Accordingly, the mobile phone 1 can determine whether the mobile phone 1 can maintain the DSDA mode based on the frequency bands of the first SIM card and the second SIM card. Exemplarily, the mobile phone 1 can obtain the frequency band of the first SIM card and the frequency band of the second SIM card. Among them, the frequency band of the first SIM card represents the frequency band currently used by the first SIM card for voice services. Similarly, the frequency band of the second SIM card represents the frequency band used by the second SIM card for voice services.
[0198] Mobile phone 1 can then determine whether the frequency bands of the first SIM card and the second SIM card belong to a preset frequency band combination. The preset frequency band combination represents the frequency bands used by the two SIM cards when mobile phone 1 (e.g., a modem in mobile phone 1) has dual-communication capability. The preset frequency band combination is set based on the modem in mobile phone 1.
[0199] If the actual frequency band combination of mobile phone 1 (i.e., the frequency band combination consisting of the frequency band of the first SIM card and the frequency band of the second SIM card) is within the preset frequency band combination, it indicates that mobile phone 1 supports the actual frequency band combination. This also means that mobile phone 1 can answer calls from the second SIM card while the first SIM card is in a call state. In other words, mobile phone 1 has dual-talk capability, and mobile phone 1 can determine that mobile phone 1 can maintain DSDA mode.
[0200] If the actual frequency band combination of mobile phone 1 does not belong to the preset frequency band combination, it indicates that mobile phone 1 does not support the actual frequency band combination. In other words, mobile phone 1 cannot currently answer calls from the second SIM card while the first SIM card is in a call state. In other words, mobile phone 1 does not have dual-talk capability and mobile phone 1 can determine that mobile phone 1 cannot maintain DSDA mode.
[0201] In some embodiments, the frequency band of the second SIM card may include an initial frequency band of the second SIM card and / or a predicted frequency band of the second SIM card. The initial frequency band of the second SIM card indicates the frequency band initially used by the second SIM card for voice services, i.e., the frequency band used by the second SIM card for receiving incoming calls. For example, if the second SIM card can initially use frequency band 1 in the 5G network to receive 5G calls, the initial frequency band of the second SIM is frequency band 1 in the 5G network.
[0202] The predicted frequency band of the second SIM card indicates the frequency band used to continue processing the incoming call from the second SIM card after receiving the incoming call from the second SIM card, that is, the frequency band used by the second SIM card to continue voice services. For example, the 5G switch corresponding to the second SIM card in mobile phone 1 is in the on state, which can support the use of frequency band 1 in the 5G network for voice services. The second SIM card initially uses frequency band 1 in the 5G network to receive incoming calls, and the initial frequency band of the second SIM card is frequency band 1. However, since VoNR is not activated for the second SIM card, it cannot use the 5G network to continue processing the incoming call, and needs to fall back to frequency band 2 in 4G to continue processing the incoming call. Therefore, the predicted frequency band of the second SIM card is frequency band 2.
[0203] Taking the example that the frequency band of the second SIM card includes the initial frequency band of the second SIM card, the actual frequency band combination may include the frequency band of the first SIM card and the initial frequency band of the second SIM card.
[0204] Taking the example of the second SIM card's frequency band including the second SIM card's predicted frequency band, the actual frequency band combination can include the first SIM card's frequency band and the second SIM card's predicted frequency band. For example, a frequency band can be represented by its corresponding frequency band number. Mobile phone 1's preset frequency band combination is n78 + band40. The first SIM card in mobile phone 1 is in a call state, and its frequency band is n78. This means that the first SIM card in mobile phone 1 processes voice services based on the frequency band corresponding to n78 in 5G. When mobile phone 1 receives an incoming call from the second SIM card, the second SIM card's voice service falls back from the 5G network to the frequency band corresponding to band1 in the 4G network. The predicted frequency band for the second SIM card is band1. Mobile phone 1's actual frequency band combination is n78 + band1. This indicates that this actual frequency band combination does not fall within the preset frequency band combination, and mobile phone 1 can determine that it cannot maintain DSDA mode.
[0205] Taking the example of the second SIM card's frequency band including its initial frequency band and predicted frequency band as an example, the actual frequency band combination may include a first frequency band combination and a second frequency band combination. The first frequency band combination includes the frequency band of the first SIM card and the initial frequency band of the second SIM card. The second frequency band combination includes the frequency band of the first SIM card and the predicted frequency band of the second SIM card. Accordingly, if both the first frequency band combination and the second frequency band combination belong to the preset frequency band combination, mobile phone 1 can maintain DSDA mode without exiting DSDA mode. If either the first frequency band combination or the second frequency band combination does not belong to the preset frequency band combination, mobile phone 1 cannot maintain DSDA mode.
[0206] Optionally, when receiving an incoming call from the second SIM card, mobile phone 1 may first determine whether the first frequency band combination belongs to a preset frequency band combination. If so, mobile phone 1 may then proceed to determine whether the second frequency band combination belongs to the preset frequency band combination. If not, mobile phone 1 may directly determine that the DSDA mode cannot be maintained without further determining whether the second frequency band combination belongs to the preset frequency band combination.
[0207] Furthermore, the determination of whether mobile phone 1 can maintain DSDA mode based on the frequency bands of the first and second SIM cards can be performed after determining whether mobile phone 1 can maintain DSDA mode based on the mobile communication networks of the first and second SIM cards. For example, if the actual network combination belongs to the preset network combination, mobile phone 1 can continue to determine whether the actual frequency band combination belongs to the preset frequency band combination. If the actual frequency band combination belongs to the preset frequency band combination, mobile phone 1 can maintain DSDA mode. If the actual network combination does not belong to the preset network combination, mobile phone 1 can directly determine that DSDA mode cannot be maintained without further determining whether the actual frequency band combination belongs to the preset frequency band combination. Of course, the determination of whether mobile phone 1 can maintain DSDA mode based on the frequency bands of the first and second SIM cards can also be performed simultaneously with the determination of whether mobile phone 1 can maintain DSDA mode based on the mobile communication networks of the first and second SIM cards. This application does not limit the order of these determinations.
[0208] It should be noted that since mobile phone 1 can receive incoming calls from the second SIM card, it means that mobile phone 1 initially has dual-channel capability, that is, the first frequency band combination composed of the frequency band of the first SIM card and the initial frequency band of the second SIM card belongs to the preset frequency band combination. Mobile phone 1 needs to determine whether it supports the frequency band used by the second SIM card to continue to process the incoming call, that is, to determine whether mobile phone 1 can maintain dual-channel capability, that is, to predict whether mobile phone 1 will have dual-channel capability in the future. In other words, it predicts whether mobile phone 1 has the ability to answer incoming calls from the second SIM card. Therefore, the frequency band of the second SIM card mentioned above can refer to the predicted frequency band of the second SIM card, and accordingly, the actual frequency band combination mentioned above can include the second frequency band combination mentioned above. When the second frequency band combination belongs to the preset frequency band combination, mobile phone 1 can maintain DSDA mode; when the second frequency band combination does not belong to the preset frequency band combination, mobile phone 1 cannot maintain DSDA mode.
[0209] It should be understood that when the first SIM card in the mobile phone 1 is in a call state, the mobile phone 1 can receive the incoming call from the second SIM card, which means that the mobile phone is currently in DSDA mode. However, since the network of the second SIM card may fall back from the 5G network to the 4G network, the mobile phone 1 may not be able to maintain DSDA mode and thus cannot continue to process the voice service of the second SIM card, and the incoming call from the second SIM card needs to be rejected.
[0210] In this application, since a mobile communication network can include multiple frequency bands, mobile phone 1 may only be capable of performing voice services within a specific frequency band within the mobile communication network. In other words, mobile phone 1 may only have dual-band voice service capabilities within a specific frequency band combination. Therefore, mobile phone 1 can determine the specific frequency band currently used by the first SIM card for voice services (i.e., the frequency band of the first SIM card) and the specific frequency band used by the second SIM card for voice services (i.e., the frequency band of the second SIM card). Mobile phone 1 can then determine whether mobile phone 1 has dual-band voice service capabilities by determining whether the actual frequency band combination, including the frequency band of the first SIM card and the frequency band of the second SIM card, falls within a preset frequency band combination. If dual-band voice service capabilities are present, mobile phone 1 is capable of answering calls from the second SIM card, and mobile phone 1 can proceed to determine whether it can answer calls from the second SIM card. If dual-band voice service capabilities are not present, mobile phone 1 is unable to answer calls from the second SIM card and can automatically reject the call from the second SIM card, enabling accurate determination of whether to reject the call from the second SIM card.
[0211] After S302, if mobile phone 1 cannot maintain DSDA mode, it indicates that the modem in mobile phone 1 does not have dual-communication capability, that is, mobile phone 1 cannot receive calls from the second SIM card. In other words, when one SIM card is in a call state, mobile phone 1 cannot perform voice services on the other SIM card. Mobile phone 1 needs to reject the call from the other SIM card and can then execute S303. If mobile phone 1 can maintain DSDA mode, it indicates that the modem in mobile phone 1 has dual-communication capability. Mobile phone 1 can then continue to determine whether mobile phone 1 can perform dual-communication and can then proceed to S304.
[0212] S303: Mobile phone 1 rejects the incoming call from the second SIM card and performs a call prompt operation, wherein the call prompt operation is used to prompt mobile phone 1 that a call from the second SIM card is received.
[0213] Exemplarily, the incoming call prompt operation may include at least one of displaying incoming call prompt information, voice prompts, and vibration prompts. In one implementation, taking the above-mentioned incoming call prompt operation including displaying incoming call prompt information (or referred to as second prompt information) as an example, when the first SIM card in the mobile phone 1 is in a call state and receives an incoming call from the second SIM card, if the mobile phone 1 cannot maintain the DSDA mode, it indicates that the mobile phone 1 needs to reject the incoming call from the second SIM card. In order to promptly remind the user of the incoming call from the second SIM card, the mobile phone 1 can display the incoming call prompt information. Among them, the incoming call prompt information may include the caller number corresponding to the incoming call from the second SIM card and / or the identifier of the second SIM card. In some embodiments, the incoming call prompt information may be displayed in the form of a pop-up box. For example, mobile phone 1 can display an incoming call reminder message in the form of a pop-up window on the display interface. As shown in FIG9A , mobile phone 1 displays an incoming call reminder message 40 on the call interface. In the incoming call reminder message, "185XXX" is the calling number, and Card 2 is the identifier of the SIM card (such as the second SIM card) whose incoming call was automatically rejected. This provides a timely battery leakage reminder, allowing the user to intuitively and promptly know that the call is from another SIM card. On the one hand, this can prevent the user from having to find the incoming call from the second SIM card through the call log after the incoming call from the second SIM card ends, resulting in the user not being able to find the incoming call in time. It can also prevent the user from not being able to find the missed call record corresponding to the incoming call from the second SIM card due to factors such as the large amount of information in the call log, resulting in the user not finding the incoming call from the second SIM card and missing the call. On the other hand, it can also prevent the mobile phone 1 from not generating a missed call record corresponding to the incoming call from the second SIM card after the incoming call from the second SIM card ends, resulting in the user not being able to find the incoming call from the second SIM card and missing the call, thereby preventing the user from mistakenly receiving important calls and ensuring the user experience.
[0214] It should be noted that the content of the incoming call prompt information 40 shown in Figure 9A above (i.e., card 2 receives an incoming call with the number "185XXX") is only an example. The specific content of the incoming call prompt information can also be other content, as long as it can prompt another card in the mobile phone 1 to receive the call.
[0215] In another implementation, taking the above-mentioned incoming call notification operation including a voice prompt as an example, if mobile phone 1 cannot maintain DSDA mode, mobile phone 1 can provide a voice prompt, such as voice outputting the above-mentioned incoming call notification information. In other words, the content of the voice prompt may include the caller number corresponding to the incoming call from the second SIM card and / or the identifier of the second SIM card. For example, mobile phone 1 may play a voice prompt message such as "Card 2 in mobile phone 1 receives an incoming call from the number '185XXX'."
[0216] In another implementation, taking the above-mentioned incoming call prompt operation including vibration prompt as an example, when the mobile phone 1 cannot maintain the DSDA mode, the mobile phone 1 can vibrate to prompt according to the first preset vibration mode, such as the mobile phone 1 can vibrate periodically for a preset number of times, that is, the mobile phone 1 can vibrate once every few seconds, and stop vibrating after vibrating the preset number of times; for example, the mobile phone 1 can vibrate continuously for a period of time.
[0217] The first preset vibration mode can be preset in the mobile phone 1. Furthermore, the mobile phone 1 can prompt the meaning represented by the first preset vibration mode (i.e., the first preset vibration mode indicates that the mobile phone 1 receives an incoming call from another SIM card while one SIM card is in a call state). For example, the mobile phone 1 can prompt when it is first turned on. Of course, the mobile phone 1 can also prompt at other times, and this application does not limit this.
[0218] In another implementation, taking the above-mentioned incoming call prompt operation including displaying incoming call prompt information and vibration prompt as an example, when the DSDA mode cannot be maintained, the mobile phone 1 can perform a vibration prompt according to the above-mentioned second preset vibration mode and can display the incoming call prompt information. Through the vibration prompt, the user can promptly discover the displayed incoming call prompt information, ensuring timely reminder of the incoming call of the second SIM card. Among them, the above-mentioned second preset vibration mode and the above-mentioned first preset vibration mode can be the same or different. Generally speaking, after the user perceives the vibration of the mobile phone 1, he will check to see why the mobile phone 1 is vibrating, so that he can see the incoming call prompt information displayed on the mobile phone 1. Therefore, the above-mentioned second preset vibration mode can be different from the above-mentioned first preset vibration mode, such as the second preset vibration mode is to vibrate once.
[0219] In another implementation, taking the above-mentioned call prompt operation including displaying call prompt information and voice prompt as an example, when the DSDA mode cannot be maintained, the mobile phone 1 can provide a voice prompt for the second SIM card's incoming call and display the call prompt information, so that the user can clearly and intuitively know the incoming call situation of the second SIM card and realize a timely reminder to automatically reject the call. If the call prompt information includes the incoming call number of the second SIM card, after hearing the voice prompt of the mobile phone 1, the user can intuitively know the incoming call number of the second SIM card through the incoming prompt information displayed on the mobile phone 1, avoiding the user's failure to timely know the specific situation of the incoming call of the second SIM card due to reasons such as the user not hearing clearly or not remembering the incoming call number, so that the user can promptly determine whether to immediately call back the incoming call number of the second SIM card, thereby preventing the user from missing important things.
[0220] In another implementation, taking the above-mentioned incoming call prompt operation including voice prompt and vibration prompt as an example, when the DSDA mode cannot be maintained, the mobile phone 1 can vibrate and prompt according to the above-mentioned second preset vibration mode, and can also provide voice prompts to achieve timely reminders of incoming calls from the second SIM card.
[0221] Among them, optional, generally speaking, when the mobile phone 1 performs a voice prompt, the user can be notified of an incoming call from another SIM card (such as a second SIM card) in the mobile phone 1. The vibration prompt only makes the user aware of the new incoming call through vibration, but cannot inform the user of the new caller number and other related information. For the user, the reminder effect achieved by the voice prompt combined with the vibration prompt is not much different from the reminder effect achieved by the voice prompt alone. Therefore, when setting the incoming call prompt operation, the voice prompt and the vibration prompt do not need to be combined. In other words, the mobile phone 1 does not need to perform a vibration prompt when performing a voice prompt.
[0222] In another implementation method, taking the above-mentioned incoming call prompt operation including displaying incoming call prompt information, voice prompt and vibration prompt as an example, when the DSDA mode cannot be maintained, the mobile phone 1 can vibrate prompt according to the above-mentioned second preset vibration mode, and can also make voice prompts and display incoming call prompt information to realize timely reminder of incoming calls from the second SIM card.
[0223] It should be understood that the types of incoming call prompt operations introduced above are only a few examples. The incoming call prompt operation can also include other types of operations, such as SMS prompts. The incoming call prompt operation only needs to be able to prompt an incoming call from another SIM card. This application does not limit the type of incoming call prompt operation.
[0224] In the embodiment of the present application, the type of incoming call prompt operation can be set according to actual needs. For example, to avoid affecting the call of the first SIM card, the mobile phone 1 may not provide a voice prompt, but may display the incoming call prompt information and / or vibrate the phone. For another example, to enable the user to clearly obtain the incoming call number of the second SIM card, the mobile phone 1 may display the incoming call prompt information. For another example, to ensure that the user can clearly obtain the incoming call number and other information of the second SIM card in a timely manner without affecting the call of the first SIM card, the mobile phone 1 may display the incoming call prompt information and perform a vibration prompt, etc.
[0225] In some embodiments, the user can use the incoming call prompt information (or second prompt information) displayed on the mobile phone 1 to quickly return the incoming call of the second SIM card, so as to avoid the user missing important things when the incoming call of the second SIM card is an important call. In one example, the mobile phone 1 can receive the second operation of the user on the second prompt information. In response to the second operation, the mobile phone 1 can hang up the call of the first SIM card. Afterwards, the first SIM card is used to perform a call back operation on the caller number corresponding to the incoming call of the second SIM card, that is, to dial the caller number corresponding to the incoming call of the second SIM card to return the call to the calling user. For example, in response to the user clicking the incoming call prompt information 40 shown in Figure 9B (i.e., the second operation), the mobile phone 1 hangs up the call of the first SIM card (such as card 1), and then uses card 1 to dial the caller number corresponding to the incoming call of the second SIM card, and displays the outgoing call interface shown in Figure 9C. After receiving an incoming call from card 1, if mobile phone 2 is able to answer the call, it can display the incoming call interface shown in Figure 9D, allowing the user to answer the call from card 1 through this incoming call interface and achieve timely communication with the user of the second SIM card. Among them, 185XXX in the outgoing call interface shown in Figure 9C is the caller number corresponding to the incoming call from the second SIM card, and card 1 indicates that card 1 is being used to make the call. The 11XX in the incoming call interface shown in Figure 9D is the number corresponding to card 1.
[0226] In another example, to avoid a call-back failure caused by a SIM card in mobile phone 2 being unable to answer a new incoming call during an outgoing call, mobile phone 1 can hang up the call on the first SIM card and the incoming call on the second SIM card. Afterwards, the mobile phone can use the second SIM card to call back the caller number corresponding to the incoming call from the second SIM card. For example, in response to the user clicking on the incoming call prompt information 40 shown in Figure 9E (i.e., the second operation), mobile phone 1 hangs up the call on the first SIM card (such as card 1) and the incoming call from card 2, and uses card 2 to dial the caller number corresponding to the incoming call from the second SIM card, displaying the outgoing call interface shown in Figure 9F. After receiving the incoming call from card 2, mobile phone 2 can display the incoming call interface shown in Figure 9G, allowing the user to answer the incoming call from card 2 through the incoming call interface and achieve timely communication with the user of the second SIM card. Among them, 100XX in the incoming call interface shown in Figure 9G is the number corresponding to card 2.
[0227] It should be understood that when the first SIM card is in a call state, when the user wants to quickly call back the caller number corresponding to the incoming call of the second SIM card, the user can inform the other party corresponding to the call of the first SIM card that it needs to hang up the call, so as to avoid the other party user from having doubts about why the call was hung up.
[0228] In addition, the user's click operation on the incoming call notification information shown in Figures 9B and 9E described above is only an example of the second operation. The second operation can also be other operations, such as a user's click operation on the caller number in the incoming call notification information. Optionally, in response to the user's click operation on the caller number, mobile phone 1 can display a first option and a second option. The first option is used to trigger mobile phone 1 to call the caller number back through the first SIM card. The second option is used to trigger mobile phone 1 to call the caller number back through the second SIM card. Thereafter, in response to the user's triggering operation on the first option, the call is made back through the first SIM card. Alternatively, in response to the user's triggering operation on the second option, the call is made back through the second SIM card.
[0229] In some embodiments, the rejection operation may include sending a first cancellation message to the calling device (or mobile phone 2) corresponding to the incoming call from the second SIM card. The first cancellation message may trigger mobile phone 2 to stop calling the second SIM card and trigger the mobile phone to output a rejection prompt message. The rejection prompt message is used to indicate that the first SIM card in mobile phone 1 is in a call state, that is, the other card of the called device is in a call, and to provide a prompt for the actual reason why the incoming call from the second SIM card was not answered. The user of the calling device (hereinafter referred to as the calling user) is informed that the other SIM card of the phone they dialed is in a call state, resulting in the inability to connect the call they dialed. This allows the calling user to clearly understand the actual reason why the other party cannot answer the call, avoiding the calling user from wondering why the other party did not answer the call. Exemplarily, the calling device may output the rejection prompt message by voice. For example, after receiving the first cancellation message, the host device may play a voice message saying "The other card of the phone you dialed is in a call" in response to the first cancellation message. Alternatively, the calling device may display a rejection prompt. For example, in response to the first cancellation message, the calling device may display a rejection prompt 50 as shown in FIG10 . Of course, the calling device may also output the rejection prompt in other ways, such as a vibration prompt or a text message prompt. The vibration prompt is similar to the aforementioned method of vibrating to indicate an incoming call to the second SIM card, and will not be further described here.
[0230] Optionally, the first cancellation message may directly carry the first prompt information, so that after receiving the first cancellation message, mobile phone 2 can extract the first prompt information from the first cancellation message and output the first prompt information. Of course, the first cancellation message may also not carry the first prompt information. After receiving the first cancellation message, mobile phone 2 can trigger the output of the first prompt information based on relevant fields or identifiers in the first cancellation message.
[0231] It should be noted that the types of operations included in the above-mentioned rejection operation and the operations performed by the calling device based on the first cancellation message are merely examples. Mobile phone 1 can not only send the first cancellation message to the calling device corresponding to the incoming call of the second SIM card, but can also perform other operations to reject the second SIM card. Similarly, the calling device can not only output a rejection prompt message based on the first cancellation message, but can also perform other operations, which are not limited in this application.
[0232] S304: The mobile phone 1 determines whether to reject the incoming call from the second SIM card based on the preset dual-communication strategy.
[0233] For example, when the mobile phone 1 is able to maintain the DSDA mode, it indicates that the mobile phone 1 (such as the modem in the mobile phone 1) has dual-communication capability, and the mobile phone 1 may be able to perform dual communication. Therefore, the mobile phone 1 can continue to determine whether dual communication is required based on the preset dual communication policy. In other words, it determines whether to reject the incoming call of the second SIM card. The preset dual communication policy indicates whether to reject the incoming call of the other SIM card in the mobile phone 1 when one SIM card is in a call state. The preset dual communication policy can be preset in the mobile phone 1, such as the preset dual communication policy has been set in the mobile phone 1 before the mobile phone 1 leaves the factory.
[0234] If it is necessary to reject the incoming call from the second SIM card, it indicates that the preset dual-communication policy indicates that when one SIM card in mobile phone 1 is in a call state, the incoming call from the other SIM card is rejected, and mobile phone 1 can execute S305. If it is not necessary to reject the incoming call from the second SIM card, it indicates that the preset dual-communication policy indicates that when one SIM card in mobile phone 1 is in a call state, the incoming call from the other SIM card is not rejected, and mobile phone 1 can execute S306.
[0235] S305 : Mobile phone 1 rejects the incoming call from the second SIM card and prompts the incoming call.
[0236] Among them, the implementation process of S305 is similar to the implementation process of the above-mentioned S303. For example, the incoming call prompt operation may include displaying at least one of the incoming call prompt information, voice prompt and vibration prompt, and the rejection operation may include sending a first cancellation message to the calling device corresponding to the incoming call of the second SIM card, etc., which will not be repeated here.
[0237] In some embodiments, when executing S303 and S305 above, mobile phone 1 may not perform the incoming call prompt operation, but may instead only reject the incoming call from the second SIM card. This rejection operation may include sending a first cancellation message to the calling device corresponding to the incoming call from the second SIM card, so that the calling user corresponding to the incoming call from the second SIM card is clearly informed of the actual reason why the incoming call from the second SIM card was not answered. Of course, when executing S303 and S305 above, mobile phone 1 may perform the rejection operation including sending the first cancellation message to the calling device corresponding to the incoming call from the second SIM card, and may also perform the incoming call prompt operation, thereby providing a timely reminder of the incoming call from the second SIM card and allowing the calling user to clearly know the actual reason why the incoming call was not answered.
[0238] In the present application, when the mobile phone 1 is able to maintain the DSDA mode, it indicates that the mobile phone 1 has dual-channel capability, and the electronic device may be able to perform dual-channel. Therefore, the mobile phone 1 can determine whether the mobile phone 1 itself supports dual-channel based on the preset dual-channel policy. When the preset dual-channel policy indicates that one SIM card is in a call state, it indicates that the mobile phone 1 itself does not support dual-channel. The mobile phone 1 can directly reject the incoming call of the second SIM card, and the mobile phone 1 can perform a call reminder operation to remind the user that the mobile phone 1 receives the incoming call from the second SIM card, so that the user can be informed of the incoming call of the second SIM card in a timely manner, and realize the timely reminder of automatic rejection of incoming calls in the dual-channel scenario to prevent the user from missing important calls.
[0239] S306 , mobile phone 1 displays the answering interface corresponding to the incoming call of the second SIM card.
[0240] For example, when the mobile phone 1 determines not to reject the incoming call from the second SIM card, it indicates that the mobile phone 1 can answer the incoming call from the second SIM card, and the mobile phone 1 can display the answering interface corresponding to the incoming call from the second SIM card as shown in Figure 3B above. The answering interface may include information about the caller number corresponding to the incoming call from the second SIM card (such as the caller number, location, operator, etc.), the identifier of the second SIM card (such as card 2 in the answering interface shown in Figure 3B above), an answer button, a reject button, etc. Among them, the answer button can trigger the mobile phone 1 to answer the incoming call from the second SIM card, and the reject button can trigger the mobile phone 1 to reject the incoming call from the second SIM card.
[0241] In some embodiments, if the user triggers the reject button on the answering interface corresponding to the second SIM card's incoming call, causing mobile phone 1 to reject the second SIM card's incoming call, mobile phone 1 can send a cancellation message to the calling device corresponding to the second SIM card's incoming call. Accordingly, after receiving the cancellation message, the calling device can respond to the cancellation message by playing a voice prompt message stating "The number you dialed is currently active." In this case, since the incoming call from the second SIM card has already been notified through the incoming call interface, mobile phone 1 does not need to perform the incoming call notification operation, avoiding unnecessary prompts.
[0242] In some embodiments, after the incoming call from the second SIM card is hung up, the mobile phone 1 can generate and display a missed call record corresponding to the incoming call from the second SIM card, such as the missed call record 20 shown in FIG6D . Since the mobile phone 1 needs to perform a call notification operation when rejecting the incoming call from the second SIM card, the mobile phone 1 can sense the incoming call from the second SIM card. Therefore, the mobile phone 1 can generate a missed call record corresponding to the incoming call from the second SIM card, allowing the user to learn about the power leakage status of the mobile phone 1 through the missed call record. This avoids the situation where the modem in the mobile phone 1 automatically rejects the incoming call from the second SIM card, resulting in the mobile phone 1 being unable to generate a missed call record corresponding to the incoming call from the second SIM card, thereby preventing the user from being unable to learn about the power leakage status of the mobile phone 1, thereby improving the user experience.
[0243] Optionally, after the incoming call from the second SIM card ends, the mobile phone 1 receives a first operation from the user on the mobile phone 1 (such as a click operation on a phone application in the mobile phone 1). In response to the first operation, the mobile phone may display a call log, wherein the call log includes a missed call record corresponding to the incoming call from the second SIM card.
[0244] In some embodiments, after receiving an incoming call from the second SIM card in mobile phone 1, mobile phone 1 can first determine whether the caller number corresponding to the incoming call from the second SIM card is a malicious number. A malicious number refers to a number corresponding to a specific label (such as a harassment label or a fraud label). If the caller number is a malicious number, mobile phone 1 can directly reject the incoming call from the second SIM card without prompting the user of the incoming call from the second SIM card (such as without performing an incoming call prompt operation), thereby avoiding unnecessary incoming call prompts.
[0245] If the calling number is not a malicious number, the mobile phone 1 can continue to determine whether the mobile phone 1 can maintain the DSDA mode, or determine whether to reject the incoming call from the second SIM card based on the preset dual-communication policy. In other words, the operation of the mobile phone 1 determining whether to reject the incoming call from the second SIM card based on whether the calling number is a malicious number can be performed before the above steps S302 and S304.
[0246] In some embodiments, when a user makes an outgoing call through the SIM card in mobile phone 1, such as when mobile phone 1 uses the SIM card in mobile phone 1 to send an outgoing call request to mobile phone 3, mobile phone 3 is a dual-SIM dual-talk device, one SIM card in mobile phone 3 is in a call state, and the other SIM card receives the outgoing call request. Because mobile phone 3 determines that it cannot perform dual talk (e.g., it cannot maintain DSDA mode, and the preset dual talk policy indicates that when one SIM card is in a call state, the other SIM card's incoming call is rejected), mobile phone 3 can send a first cancellation message to mobile phone 1. After receiving the first cancellation message, mobile phone 1 displays a first prompt message to remind the user of mobile phone 1 that the other SIM card of the call they are dialing is currently in a call.
[0247] For example, the SIM card may be the first SIM card. For example, the first SIM card is in a ringing state and is making an outgoing call. Alternatively, the SIM card may be a SIM card in the mobile phone 1 that is in an idle state (e.g., not in a call state). For example, after a call on the first SIM card ends, the first SIM card is in an idle state and can make an outgoing call through the first SIM card.
[0248] In some embodiments, when the first SIM card in mobile phone 1 is in a call state, mobile phone 1 receives an incoming call from the second SIM card. The modem in mobile phone 1 can determine whether it can maintain DSDA mode, that is, the modem determines whether it has dual-channel capabilities. If the DSDA mode cannot be maintained, it indicates that the modem does not have dual-channel capabilities, and the modem can directly reject the incoming call from the second SIM card. If the DSDA mode can be maintained, it indicates that the modem has dual-channel capabilities, and the judgment of whether the mobile phone 1 is capable of dual-channel can continue. The application framework layer in mobile phone 1 can use the preset dual-channel strategy to determine whether the mobile phone 1 rejects the incoming call from the second SIM card, so that the application framework layer in mobile phone 1 also has the ability to reject incoming calls. Of course, mobile phone 1 can not only automatically reject the incoming call from the second SIM card, but also answer the incoming call from the second SIM card.
[0249] The following details the processes involved in rejecting an incoming call and answering a call from the second SIM card in the modem and application framework layers of mobile phone 1, using the structure shown in Figure 2. The process involved in rejecting an incoming call by the modem may include steps S401-S407 as shown in Figure 11, and the process involved in rejecting an incoming call by the application layer may include steps S408-S414 as shown in Figure 11. The process involved in answering a call from the second SIM card may include steps S415-S416 as shown in Figure 11.
[0250] S401: When the first SIM card in mobile phone 1 is in a call state, the modem in mobile phone 1 receives an invitation message from the second SIM card sent by the calling device.
[0251] Exemplarily, the invitation message may include the calling number. Of course, the invitation message may also include other types of information, such as at least one of the called number, the second SIM card identifier, and the incoming call time. This application does not limit the information included in the invitation message.
[0252] The fact that the modem receives the invitation message from the second SIM card indicates that the modem receives the incoming call from the second SIM card. The calling device corresponding to the incoming call from the second SIM card can also be called mobile phone 2.
[0253] S402: In response to the invitation message, the modem determines whether the modem can maintain the DSDA mode.
[0254] After S402, if the modem cannot maintain DSDA mode, it indicates that the modem does not have dual-communication capability, that is, it does not have the ability to answer calls from the second SIM card. The mobile phone 1 needs to reject the call from the second SIM card, and the mobile phone 1 can then execute S403. If the modem can maintain DSDA mode, it indicates that the modem has dual-communication capability, and the mobile phone 1 may be able to answer calls from the second SIM card to achieve dual communication. Therefore, the mobile phone 1 can continue to determine whether the mobile phone 1 is capable of dual communication, and the mobile phone 1 can then proceed to S408.
[0255] Exemplarily, the modem can determine whether it can maintain the DSDA mode based on the mobile communication network of the first SIM card and the mobile communication network of the second SIM card. The mobile communication network of the second SIM card may include the initial mobile communication network and / or the predicted mobile communication network of the second SIM card. The initial mobile communication network of the second SIM card indicates the mobile communication network used by the modem to receive the invitation message. The predicted mobile communication network indicates the mobile communication network used to continue the voice service of the second SIM card, such as the mobile communication network predicted to be used by the modem when sending a ringing message (180ringing message) and then interacting with the calling device.
[0256] And / or, the modem may determine whether the DSDA mode can be maintained based on the frequency band of the first SIM card and the frequency band of the second SIM card. The process of determining whether the DSDA mode can be maintained based on the mobile communication network and frequency band described above can be referred to, and will not be further described here.
[0257] S403 : The modem sends a first cancellation message to the calling device and sends a second incoming call message to the application framework layer in mobile phone 1 .
[0258] The second incoming call message may include the calling number, or other types of information, such as the called number, the second SIM card identifier, the incoming call time, etc.
[0259] The first cancellation message may include rejection prompt information (or referred to as first prompt information), and the rejection prompt information is used to prompt the actual reason why the incoming call of the second SIM card was not answered.
[0260] S404: The calling device receives the first cancellation message, and in response to the first cancellation message, outputs a rejection prompt message and stops the call.
[0261] For example, the calling device may output the rejection prompt information by voice, or display the rejection prompt information in the form of a pop-up window.
[0262] S405: The application framework layer receives a second incoming call message.
[0263] S406 . The application framework layer sends a second incoming call message to the IncallUI module in the mobile phone 1 .
[0264] S407: The IncallUI module receives the second incoming call message and performs an incoming call prompt operation based on the second incoming call message, wherein the incoming call prompt operation is used to prompt the mobile phone 1 that a call from the second SIM card has been received.
[0265] Exemplarily, the above-mentioned incoming call prompt operation may include at least one of displaying incoming call prompt information, voice prompting (i.e., playing the incoming call prompt information by voice), and vibration prompting. In some embodiments, the IncallUI module can display the incoming call prompt information, and the voice prompting and vibration prompting can be triggered by the above-mentioned application framework layer to perform related devices. For example, the application framework layer can trigger the receiver and speaker to output the incoming call prompt information by voice, and trigger the motor to perform vibration prompting. Of course, the voice prompting and / or vibration prompting can also be triggered by other modules in the mobile phone 1 to perform related devices, and this application is not limited to them.
[0266] In some embodiments, when the modem cannot maintain DSDA mode, it can reject the incoming call from the second SIM card, such as by sending a first cancellation message to the calling device corresponding to the incoming call from the second SIM card through the network, triggering the calling device to abandon the call to the second SIM card and allowing the calling user to know the actual reason why the mobile phone 1 cannot answer the call. After the modem rejects the incoming call from the second SIM card, the upper layer (such as the application framework layer, the IncallUI module) can perceive the incoming call from the second SIM card through the relevant incoming call message (such as the second incoming call message). Therefore, the IncallUI module can generate a missed call record corresponding to the incoming call from the second SIM card after the incoming call from the second SIM card is hung up, thereby realizing a power leakage reminder and avoiding the situation where the upper layer cannot perceive the incoming call after the modem rejects the call, resulting in the inability to generate a missed call record corresponding to the incoming call. And when the user wants to check the call status later, he can check the call status of the mobile phone 1 through the call record (such as the missed call record).
[0267] S408. The modem sends a first incoming call message to the application framework layer.
[0268] The first incoming call message can trigger the application framework layer to determine whether to reject the call from the second SIM card. For example, the first incoming call message includes the caller ID. Of course, the first incoming call message can also include other types of information, such as at least one of the second SIM card identifier and the call time. This application does not limit the information included in the first incoming call message.
[0269] S409: The application framework layer receives a first incoming call message and, in response to the first incoming call message, determines whether to reject the incoming call from the second SIM card based on a preset dual-communication strategy.
[0270] After S409, if the preset dual-communication policy indicates that one SIM card in the mobile phone 1 is in a call state, the application framework layer may reject the call from the other SIM card, and the application framework layer may execute S410. If the preset dual-communication policy indicates that one SIM card in the mobile phone 1 is in a call state, the application framework layer may answer the call from the other SIM card, and the application framework layer may execute S415.
[0271] S410. The application framework layer sends a rejection message to the Modem and sends a second incoming call message to the IncallUI module.
[0272] S411: The above-mentioned modem receives a rejection message.
[0273] S412: In response to the rejection message, the modem sends a first cancellation message to the calling device.
[0274] S413: The calling device receives the first cancellation message, and in response to the first cancellation message, outputs a rejection prompt message and terminates the call.
[0275] S414: The IncallUI module receives the second incoming call message and performs an incoming call prompt operation based on the second incoming call message, wherein the incoming call prompt operation is used to prompt the mobile phone 1 that a call from the second SIM card has been received.
[0276] S415. The application framework layer sends a first incoming call message to the IncallUI module.
[0277] S416. The IncallUI module receives the first incoming call message, and in response to the first incoming call message, displays an answering interface corresponding to the incoming call of the second SIM card.
[0278] It should be noted that the second incoming call message and the first incoming call message may be the same message or different messages, and this application does not limit this.
[0279] Exemplarily, the communication between the mobile phone 1 and the mobile phone 2 is through a network, such as the mobile phone 1 sends the first cancellation message to the mobile phone 2 through the network, and the mobile phone 1 receives the invitation message through the network.
[0280] In some embodiments, after the modem in the hardware layer of the mobile phone 1 has dual-channel capability, it indicates that the mobile phone 1 has the ability to answer calls from the second SIM card. The application framework layer in the mobile phone 1 can continue to determine whether the mobile phone 1 can perform dual-channel, that is, determine whether to answer calls from the second SIM card. If dual-channel is not possible, the application framework layer can reject the call from the second SIM card. After the call from the second SIM card is hung up, the relevant module in the mobile phone 1 (such as the above-mentioned IncallUI module) can be triggered to generate a missed call record corresponding to the call from the second SIM card, so that the user can see the power leakage of the mobile phone 1 through the call record and realize the power leakage reminder.
[0281] In an embodiment of the present application, in a dual-communication scenario, in order to prevent the hardware layer or software layer in mobile phone 1 from automatically rejecting the call from the second SIM card without promptly notifying the user, after rejecting the call, mobile phone 1 can perform a call reminder operation to remind the user of the incoming call from another SIM card, thereby providing a timely reminder of the incoming call and preventing the user of mobile phone 1 from omitting or missing an important call. Furthermore, regardless of whether the hardware layer or the software layer rejects the incoming call from the second SIM card, the user of the calling device corresponding to the incoming call from the second SIM card does not know the actual reason why mobile phone 1 rejected the incoming call from the second SIM card. Therefore, mobile phone 1 can send a first cancellation message carrying rejection prompt information to the calling device, so that the calling device outputs the rejection prompt information to inform the user of the calling device of the actual reason why mobile phone 1 rejected the call.
[0282] In some embodiments, as shown in FIG12 , after receiving the invitation message, the modem may send a 100trying message to the calling device via the network to inform the calling device that it has received an incoming call from the second SIM card.
[0283] When the modem can maintain the DSDA mode, that is, when the modem does not reject the incoming call from the second SIM card, the modem can send a 180ringing message to the calling device through the network to notify the calling device to ring.
[0284] 12, before the modem sends the 180ringing message to the calling device through the network, it can send a session progress message (183sessionprogress message) to the calling device through the network to notify the calling device that the mobile phone 1 is processing the incoming call.
[0285] As can be seen, if the modem in mobile phone 1 rejects the incoming call from the second SIM card, mobile phone 1 will not send the above-mentioned 180 ringing message, 183 session progress message, etc. to the calling device, and the calling device can receive the 100 trying message. However, if the application framework layer in mobile phone 1 rejects the incoming call from the second SIM card, the calling device can not only receive the 100 trying message, but also receive the 180 ringing message, 183 session progress message, etc. sent by mobile phone 1.
[0286] In addition, if VoNR is not activated for the second SIM card, the initial mobile communication network of the second SIM card is 5G, and the mobile communication network used by the modem to send the above-mentioned 100trying message may be a 5G network; the mobile communication network used to send the above-mentioned 183session progress message may be a 5G network or a 4G network, which is related to the network; the mobile communication network used to send the above-mentioned 180ringing message is a 4G network.
[0287] In some embodiments, the operations performed by the modem may be performed by the IMS on the modem. The operations performed by the application framework layer may be performed by the IMS Common module in the application framework layer.
[0288] In some embodiments, other software layers in the electronic device can also reject the incoming call from the second SIM card, such as the Android runtime and system library (or the IMS application in the Android runtime and system library). The process of rejecting the incoming call by the other software layer is similar to the process of rejecting the incoming call by the application framework layer. For example, the other software layer determines whether to reject the incoming call from the second SIM card based on the relevant dual-communication policy.
[0289] In some embodiments, the above description of maintaining DSDA mode can be replaced by the description of supporting DSDA mode. That is, when the first SIM card in mobile phone 1 is in a call state and receives an incoming call from the second SIM card, the mobile phone may not be in DSDA mode. The mobile phone determines whether to switch to DSDA mode by determining whether DSDA mode is supported.
[0290] In some embodiments, the above-mentioned technical solution of the present application is implemented in a dual-card dual-pass scenario. The technical solution of the present application can also be applied to other multi-card multi-pass scenarios, such as three-card dual-pass and three-card three-pass scenarios. The present application does not limit the number of SIM cards supported by the above-mentioned mobile phone 1.
[0291] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step in the above-mentioned method embodiment.
[0292] An embodiment of the present application further provides a computer program product, including a computer program. When the computer program runs on an electronic device, the electronic device executes the various functions or steps in the above embodiments.
[0293] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0294] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0295] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0296] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0297] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0298] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for reminding incoming calls, characterized in that: Applied to an electronic device, wherein the electronic device comprises at least two subscriber identity module SIM cards; the method comprises: When a first SIM card among the at least two SIM cards is in a call state, the electronic device receives an incoming call from a second SIM card among the at least two SIM cards; wherein the second SIM card is different from the first SIM card; and the call state includes a ringing state or a call in progress state; When the electronic device cannot maintain the dual-SIM dual-channel DSDA mode, the electronic device rejects the incoming call from the second SIM card and performs a call prompt operation; wherein the call prompt operation is used to prompt the electronic device that it has received the incoming call from the second SIM card.
2. The method according to claim 1, characterized in that The method further comprises: When the electronic device is able to maintain the DSDA mode, if the preset dual-communication strategy indicates that when one SIM card is in a call state, a call from another SIM card should be rejected, the electronic device performs a rejection operation and a call prompt operation on the incoming call of the second SIM card.
3. The method according to claim 1, characterized in that: The electronic device comprises a modem; When the electronic device cannot maintain the dual-SIM dual-channel DSDA mode, the electronic device rejects the incoming call of the second SIM card, including: When the modem cannot maintain the DSDA mode, the modem rejects the incoming call of the second SIM card.
4. The method according to claim 3, characterized in that The method further comprises: The electronic device receives a first operation of a user to view missed calls; In response to the first operation, the electronic device displays a missed call record, where the missed call record includes a call record of the second SIM card.
5. The method according to claim 2, characterized in that: The electronic device includes a Modem; In the case where the electronic device can maintain the DSDA mode, if the preset dual-communication strategy indicates that when one SIM card is in a call state, a call from another SIM card is rejected, the electronic device rejects the call from the second SIM card, including: In the case where the modem can maintain the DSDA mode, the modem sends a first incoming call message to a target software layer in the electronic device; wherein the target software layer includes an application framework layer, or an Android runtime and a system library layer; the first incoming call message includes a calling number corresponding to the incoming call of the second SIM card; The target software layer receives the first incoming call message; The target software layer responds to the first incoming call message, and when the preset dual-communication policy indicates that when one SIM card is in a call state, the incoming call of another SIM card is rejected, the target software layer rejects the incoming call of the second SIM card.
6. The method according to any one of claims 1 to 5, characterized in that The rejecting operation includes sending a first cancellation message to the calling device corresponding to the incoming call of the second SIM card; the first cancellation message is used to trigger the calling device to output a first prompt message and stop the call, and the first prompt message is used to prompt that another SIM card of the called device is in a call.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The electronic device sends an outgoing call request to a target device based on a target SIM card among the at least two SIM cards; wherein the target SIM card is an idle SIM card among the at least two SIM cards; The electronic device receives a first cancellation message sent by the target device; In response to the first cancellation message, the electronic device outputs first prompt information, where the first prompt information is used to prompt that another SIM card of the called device is in a call.
8. The method according to any one of claims 1 to 5, characterized in that When the actual network combination of the electronic device does not belong to the preset network combination, or the actual frequency band combination of the electronic device does not belong to the preset frequency band combination, the electronic device cannot maintain the DSDA mode; The actual network combination includes a first network combination and / or a second network combination, the first network combination includes the mobile communication network of the first SIM card and the initial mobile communication network of the second SIM card; the second network combination includes the mobile communication network of the first SIM card and the predicted mobile communication network of the second SIM card; the mobile communication network of the first SIM card indicates the mobile communication network currently used for the voice service of the first SIM card, the initial mobile communication network of the second SIM card indicates the mobile communication network used when receiving an incoming call from the second SIM card, and the predicted mobile communication network of the second SIM card indicates the mobile communication network used for processing the incoming call prediction of the second SIM card; the preset network combination indicates the mobile communication networks of the two SIM cards when the electronic device has dual-channel capability; The actual frequency band combination includes a first frequency band combination and / or a second frequency band combination, the first frequency band combination includes the frequency band of the first SIM card and the initial frequency band of the second SIM card; the second frequency band combination includes the frequency band of the first SIM card and the predicted frequency band of the second SIM card; the frequency band of the first SIM card represents the network frequency band currently used by the first SIM card for voice service, the initial frequency band of the second SIM card represents the network frequency band used when the second SIM card receives an incoming call, and the predicted frequency band of the second SIM card represents the network frequency band used for processing the incoming call prediction of the second SIM card; the preset frequency band combination represents the frequency bands of the two SIM cards when the electronic device has dual-channel capability.
9. The method according to any one of claims 1 to 8, characterized in that The incoming call prompt operation includes at least one of the following operations: displaying the second prompt information, playing the second prompt information by voice, and vibrating the prompt; The second prompt information includes a calling number corresponding to the incoming call of the second SIM card and / or an identifier of the second SIM card.
10. The method according to claim 9, characterized in that The performing of the incoming call prompt operation includes displaying a second prompt message; the method further includes: The electronic device receives a second operation of the user on the second prompt information; In response to the second operation, the electronic device hangs up the call of the first SIM card; Based on the first SIM card, the electronic device performs a call-back operation on the calling number corresponding to the incoming call of the second SIM card; or, based on the second SIM card, the electronic device performs a call-back operation on the calling number corresponding to the incoming call of the second SIM card.
11. A method for reminding incoming calls, characterized in that: Applied to an electronic device, wherein the electronic device includes at least two SIM cards; the method includes: When a first SIM card among the at least two SIM cards is in a call state, the electronic device receives an incoming call from a second SIM card among the at least two SIM cards; the second SIM card is different from the first SIM card; When the electronic device cannot maintain the DSDA mode, the electronic device rejects the incoming call of the second SIM card; wherein the rejecting operation includes sending a first cancellation message to the calling device corresponding to the incoming call of the second SIM card; the first cancellation message is used to trigger the calling device to output a first prompt message and stop the call, and the first prompt message is used to prompt that another SIM card of the called device is in a call.
12. The method according to claim 11, characterized in that The method further comprises: In the case that the electronic device cannot maintain the DSDA mode, the electronic device performs an incoming call prompt operation; wherein the incoming call prompt operation is used to prompt the electronic device to receive an incoming call from the second SIM card.
13. An electronic device, characterized in that: The electronic device includes a display screen, a memory, multiple SIM card interfaces and one or more processors; the display screen, the memory, the SIM card interface and the processor are coupled; the SIM card interface is used to connect a SIM card, the display screen is used to display an image generated by the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device executes the incoming call reminder method as described in any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the incoming call reminder method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Communication method for realising dual SIM dual active, and terminal
CN109315017A
Incoming call reminding method, apparatus and system, device and storage medium
CN109327621A
Method and system for avoiding missing call, electronic equipment and storage medium
CN114189846A
Dual SIM dual active subscriber identification module with a single transmit chain and dual or single receive chain
US8934460B1
Electronic device and emergency call processing method in electronic device
WO2020027461A1
