Incoming call reminding method and electronic equipment
By determining whether the electronic device can maintain DSDA mode, it automatically rejects and prompts the user for incoming calls, which solves the problem of call rejection in dual-SIM dual-pass scenarios and improves user experience.
Patent Information
- Application Number
- CN202310485974.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-04-28
AI Technical Summary
In a dual-SIM dual-pass scenario, it is difficult for the electronic device to automatically reject calls from the other SIM card, causing the user to miss important calls.
By judging whether the electronic device can maintain the DSDA mode, if it cannot, it will automatically reject the incoming call and perform the incoming call prompt operation. The display, voice or vibration prompts the user to ensure that the user is informed of the incoming call in time and avoids missing it.
It realizes automatic rejection of incoming calls and timely reminders in dual-pass scenarios, preventing users from missing important calls and improving user experience.
Smart Images

Figure CN118869863A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology and more particularly to a method and electronic device for reminding incoming calls. Background Art
[0002] With the development of technology, more and more electronic devices (such as mobile phones) support dual SIM dual standby (DSDS), and some dual SIM dual standby mobile phones can also support dual SIM dual active (DSDA).
[0003] In some cases, when one SIM card in a dual-SIM dual-communication electronic device is in a call state, if a call is received from another SIM card, the electronic device needs to reject the call from the other SIM card. Therefore, in a dual-communication scenario, how to reject the call from the other SIM card becomes an urgent problem to be solved. Summary of the invention
[0004] The embodiment of the present application provides a call reminder method and an electronic device for realizing the rejection of incoming calls of a SIM card in a dual-communication scenario.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a method for reminding an incoming call is provided, which is applied to an electronic device including at least two SIM cards. 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. The call state may include a ringing state or a call in progress state, and the first SIM card and the second SIM card are two different SIM cards in the electronic device.
[0007] The electronic device can determine whether the electronic device can maintain a dual-card 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.
[0008] When the electronic device cannot maintain the DSDA mode, it indicates that the electronic device does not have dual-channel 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 can perform an incoming call prompt operation, which can prompt the electronic device to receive the incoming call from the second SIM card.
[0009] 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 of the second SIM card. In the case where 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 of another SIM card, and needs to automatically reject the call of the other SIM card. The electronic device can reject the call of the second SIM card to realize the automatic rejection of the call of the second SIM card, that is, to realize the automatic rejection of the call of 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 receives 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 realize the timely reminder of the automatic rejection of the call in the dual-channel scenario, so as 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 incoming call of the second SIM card is hung up, so that the user cannot find the incoming call of the second SIM card, thereby preventing the occurrence of missed calls and preventing the user from missing important calls, and improving the user experience.
[0010] In a possible implementation of the first aspect, when the electronic device can maintain the DSDA mode, it indicates that the electronic device has dual-communication capability, and the electronic device can continue to determine whether the electronic device can perform dual communication, that is, determine whether it can answer a call from a second SIM card, and the electronic device can use a preset dual-communication strategy to determine whether the electronic device rejects the call from the second SIM card. The preset dual-communication strategy indicates whether to reject a call from another SIM card when one SIM card in the electronic device is in a call state.
[0011] When 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 can perform a rejection operation and a call prompt operation on the call from the second SIM card.
[0012] Exemplarily, the preset dual-channel strategy may be preset in the electronic device, for example, the preset dual-channel strategy has been set in the electronic device before the electronic device leaves the factory.
[0013] In the present application, when the electronic device is able to maintain the DSDA mode, the electronic device has 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 (or is described as being unable to perform dual-channel itself) when one SIM card is in a call state. 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.
[0014] In another possible implementation manner of the first aspect, when the preset dual-communication strategy indicates that when one SIM card is in a call state, when answering a call from another SIM card, the electronic device can display an answering interface corresponding to the incoming call of the second SIM card, so that the electronic device can answer or hang up the incoming call of the second SIM card through the user's operation on the answering interface.
[0015] In a 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 of the second SIM card. The first cancellation message is used to trigger the calling device to output a first prompt message, and the first prompt message is used to prompt the actual reason why the incoming call of the second SIM card was not answered, that is, to prompt that another SIM card of the called device is in a call, so that the calling user can clearly know the actual reason why the incoming call of the second SIM card was not answered, avoiding the calling user from having doubts about why the other party did not answer the call.
[0016] Exemplarily, the first cancellation message may carry the first prompt information.
[0017] In a possible implementation manner 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:
[0018] The electronic device sends a call request to the target device based on the target SIM card among the at least two SIM cards; wherein the target SIM card is the SIM card among the at least two SIM cards that is in an idle state (such as a non-call state);
[0019] In the case that the target device rejects the outgoing call request of 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 prompt 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 of the target SIM card is rejected.
[0020] In a possible implementation manner 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 some reasons (such as being unable to perceive the incoming call of the second SIM card), resulting in the user being unable to discover the leakage.
[0021] 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-communication capability.
[0022] 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.
[0023] 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 may include the calling number. Of course, other types of information may also be included, 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.
[0024] In another possible implementation manner of the first aspect, when the above-mentioned modem can maintain the DSDA mode, the modem can send the first incoming call message to the target software layer in the electronic device.
[0025] The target software layer receives the first incoming call message. In response to the first incoming call message, when the preset dual-communication strategy indicates that when one SIM card is in a call state, the incoming call of the other SIM card is rejected, the target software layer can reject the incoming call of the second SIM card and can perform an incoming call prompt operation, thereby realizing the rejection of the incoming call of the second SIM card through the target software layer.
[0026] The target software layer may perform a rejection operation through other modules (such as a Modem) of the electronic device.
[0027] 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 the application framework layer, or by relevant modules in 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.
[0028] 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 of the second SIM card when the modem rejects the incoming call of the second SIM card, it is impossible to generate a missed call record corresponding to the incoming call of the second SIM card. However, by performing an incoming call prompt operation, the upper layer can perceive the incoming call of the second SIM card, so that after the incoming call of the second SIM card is hung up, a missed call record corresponding to the incoming call of the second SIM card can be generated. Accordingly, after the incoming call of the second SIM card ends, a first operation of the user to view the missed calls is received. 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 of the second SIM card (or described as the incoming call record of the second SIM card).
[0029] In a 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 a vibration prompt. The second prompt message includes the calling number corresponding to the incoming call of the second SIM card and / or the identifier of the second SIM card, so as to realize a timely reminder of automatically rejecting the incoming call in a dual-communication scenario.
[0030] In a possible implementation of the first aspect, the above-mentioned incoming call prompt operation includes displaying a second prompt message. After receiving the second operation of the user on the second prompt message, the electronic device can hang up the call of the first SIM card in response to the second operation. Based on the first SIM card, a caller number corresponding to the incoming call of the second SIM card is dialed back; or, based on the second SIM card, a caller number corresponding to the incoming call of the second SIM card is dialed back, so as to realize fast dialing back of the incoming call of the second SIM card and avoid the user making mistakes in important matters.
[0031] Exemplarily, 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.
[0032] In a possible implementation manner 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 through the mobile communication network and / or the frequency band corresponding to the mobile communication network.
[0033] In one example, the judgment is made through the mobile communication network. The electronic device (or modem) judges whether the actual network combination belongs to the preset network combination, and the actual network combination includes the first network combination and / or the 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.
[0034] The mobile communication network of the first SIM card indicates 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 indicates 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 indicates the mobile communication network used to continue processing the incoming call prediction of the second SIM card after receiving the incoming call of the second SIM card. The preset network combination indicates the mobile communication networks of the first SIM card and the second SIM card when the electronic device has dual-channel capabilities.
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 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.
[0039] In the present application, the electronic device (or the modem in the electronic device) may only have the dual-pass 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-pass 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.
[0040] In another example, the judgment is made by the frequency band corresponding to the mobile communication network. The electronic device (or Modem) judges whether the actual frequency band combination belongs to the preset frequency band combination, and the actual frequency band combination includes the first frequency band combination and / or the 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.
[0041] 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 prediction of the second SIM card after receiving the incoming call of 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-channel capability;
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] In another example, the judgment is made by the mobile communication network and the frequency band corresponding to the mobile communication network. When the actual network combination belongs to the preset network combination, and the actual frequency band combination belongs to the preset frequency band combination, the above electronic device can maintain the DSDA mode. When 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 above electronic device cannot maintain the DSDA mode.
[0047] 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 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 belongs to the preset frequency band combination, thereby accurately determining whether the incoming call of the second SIM card is rejected.
[0048] In a second aspect, the present application provides a call reminder method, which is applied to an electronic device including at least two SIM cards. 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. The call state may include a ringing state or a call state, and the first SIM card and the second SIM card are two different SIM cards in the electronic device.
[0049] The electronic device can determine whether the electronic device can maintain a dual-card 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.
[0050] When 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 second SIM card. The first cancellation message is used to trigger the calling device to output a first prompt information and stop the call. The first prompt information is used to prompt that another SIM card of the called device is in a call.
[0051] Exemplarily, the first cancellation message may carry the above-mentioned first prompt information.
[0052] In the present application, when the first SIM card in the electronic device is in a call state, if a call is received from 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. In the case where 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 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, to reject the call from the SIM card in the dual-channel scenario. And by sending a first cancellation message to the calling device corresponding to the call from the second SIM card to trigger the calling device to output the first prompt information, the calling user can clearly know the actual reason why the call from the second SIM card was not answered, avoiding the calling user from having doubts about why the other party did not answer the call.
[0053] 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 a call from the second SIM card. Based on this, the call prompt operation can prompt the user's electronic device to receive a call from the second SIM card, so that the user can be informed of the call from the second SIM card in a timely manner, and timely reminders of automatic rejection of 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 call from the second SIM card is not generated, resulting in the user being unable to find the call from the second SIM card, thereby preventing the occurrence of missed calls, preventing the user from missing important calls, and providing a high user experience.
[0054] 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, 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 above.
[0055] Exemplarily, the display screen may display call-related interfaces, such as an incoming call interface, an answering interface, and the like.
[0056] In another possible implementation manner of the third aspect, the electronic device may include a modem, and the modem may determine whether to reject an incoming call.
[0057] In another possible implementation of the third aspect, the electronic device may further include one or more devices selected from the group consisting of a motor, a receiver, and a speaker. The motor may vibrate to indicate an incoming call, and the receiver or the speaker may provide voice prompts for an incoming call.
[0058] In a fourth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method described above.
[0059] 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.
[0060] 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
[0061] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0062] Figure 2 A structural block diagram of an electronic device provided in an embodiment of the present application;
[0063] Figure 3A A schematic diagram of a call interface provided in an embodiment of the present application Figure 1 ;
[0064] Figure 3B A schematic diagram of a call interface provided in an embodiment of the present application Figure 2 ;
[0065] Figure 4A Schematic diagram 3 of a call interface provided in an embodiment of the present application;
[0066] Figure 4B Schematic diagram 4 of a call interface provided in an embodiment of the present application;
[0067] Figure 5 A schematic diagram of a call rejection process provided in an embodiment of the present application Figure 1 ;
[0068] Fig. 6A A schematic diagram of a call interface provided in an embodiment of the present application Figure 5 ;
[0069] Figure 6B Schematic diagram 6 of a call interface provided in an embodiment of the present application;
[0070] Figure 6C A schematic diagram of a call interface provided in an embodiment of the present application Figure 7 ;
[0071] Fig.6D A schematic diagram of a call interface provided in an embodiment of the present application Figure 8 ;
[0072] Figure 7 A schematic diagram of a call rejection process provided in an embodiment of the present application Figure 2 ;
[0073] Figure 8A flowchart of a method for prompting incoming calls provided in an embodiment of the present application Figure 1 ;
[0074] Fig. 9A A schematic diagram of an incoming call reminder interface provided in an embodiment of the present application Figure 1 ;
[0075] Fig. 9B A schematic diagram of an incoming call reminder interface provided in an embodiment of the present application Figure 2 ;
[0076] Fig. 9C Schematic diagram 9 of a call interface provided in an embodiment of the present application;
[0077] Fig.9D A schematic diagram of a call interface provided in an embodiment of the present application Figure 10 ;
[0078] Fig.9E A third schematic diagram of an incoming call reminder interface provided in an embodiment of the present application;
[0079] Fig.9F A schematic diagram of a call interface provided in an embodiment of the present application Figure 10 one;
[0080] Figure 9G A schematic diagram of a call interface provided in an embodiment of the present application Figure 10 two;
[0081] Fig.10 A schematic diagram of a rejection prompt interface provided in an embodiment of the present application;
[0082] Fig.11 A flowchart of a method for prompting incoming calls provided in an embodiment of the present application Figure 2 ;
[0083] Fig.12 Flow chart 3 of a method for incoming call notification provided in an embodiment of the present application. DETAILED DESCRIPTION
[0084] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0085] Figure 1 A schematic structural diagram of an electronic device 100 is shown.
[0086] 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.
[0087] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0088] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0089] 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.
[0090] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0091] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0092] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0093] The charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also power the electronic device through the power management module 141 .
[0094] 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 supply power to the electronic device.
[0095] 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.
[0096] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0097] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor, which can also be called a 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.
[0098] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0099] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0100] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0101] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0102] 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 1 or N display screens 194, where N is a positive integer greater than 1.
[0103] In some embodiments, the electronic device 100 can display incoming call prompt information on the display screen 194 to prompt the incoming call status of the SIM card in the electronic device 100. 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 incoming call prompt information can be displayed on the display screen 194, and the incoming call prompt information prompts the incoming call status of the other SIM card.
[0104] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0105] The ISP is used to process data fed back by the camera 193 .
[0106] 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.
[0107] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0108] Video codecs are used to compress or decompress digital videos. NPU is a neural network (NN) computing processor that quickly processes input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn.
[0109] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0110] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0111] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0112] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
[0113] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0114] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0115] In some embodiments, the electronic device 100 can provide a voice notification of the incoming call of the SIM card in the electronic device 100 through the receiver 170B. 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, a voice notification of the incoming call from the other SIM card can be provided.
[0116] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
[0117] The earphone jack 170D is used to connect a wired earphone.
[0118] 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.
[0119] Buttons 190 include a power button, a volume button, etc. Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. For example, a SIM card in the electronic device 100 is in a call state. When a call is received from another SIM card, if the call is rejected, the other SIM card call can be prompted by vibration.
[0120] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0121] 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 pulling it out 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, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network (or described as a mobile communication network) through the SIM card to implement 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.
[0122] Exemplarily, the above-mentioned electronic device may be a mobile phone, a tablet computer, a wearable device (such as a smart watch), or other device equipped with a SIM card, which is not limited in this application.
[0123] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0124] Figure 2 It is a structural block diagram of the electronic device 100 according to an embodiment of the present application.
[0125] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer. The application layer, the application framework layer, the Android runtime and system library, and the kernel layer all belong to the software layer.
[0126] The above application layer may include a series of application packages. Figure 2 As shown, the application package may include call interface, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0127] Exemplarily, the call interface application is responsible for managing call-related interfaces, such as displaying an incoming call interface, an answering interface, and a hang-up interface. The call interface application can also display incoming call prompt information. 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 call interface application can display an incoming call prompt information on the interface currently displayed by the electronic device 100, and the incoming call prompt information prompts the incoming call status of the other SIM card.
[0128] In some embodiments, the call interface application may be an IncallUI module, which is a native module of the Android system.
[0129] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0130] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an IP multimedia subsystem (IMS) Common module, and the like.
[0131] The IMS Common module can determine whether to reject the incoming call of the SIM card based on a preset call strategy (such as a preset dual-communication strategy). The IMS Common module is a native module of the Android system.
[0132] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0133] 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.
[0134] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0135] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0136] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0137] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.
[0138] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0139] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0140] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0141] The system library may include multiple functional modules, such as IMS application (Android package, APK), surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0142] 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.
[0143] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0144] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0145] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0146] A 2D graphics engine is a drawing engine for 2D drawings.
[0147] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0148] In some embodiments, the software layer and the hardware layer can communicate with each other. For example, when a 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.
[0149] 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.
[0150] In some embodiments, the mobile phone supports dual-SIM dual-pass mode. Generally speaking, a dual-SIM dual-pass mobile phone can use a SIM card in the mobile phone to perform voice services based on a first mobile communication network, and can also use another SIM card in the mobile phone to perform voice services based on a second mobile communication network. For example, the first SIM card in the mobile phone 1 is in a call (e.g. Figure 3A In the case of receiving a call from the second SIM card, the mobile phone 1 may display the following Figure 3B Later, when the user wants to answer the incoming call of the second SIM card, he can click Figure 3B The answer button on the incoming call interface shown in the figure. In response to the click operation of the answer button, the mobile phone 1 can answer the incoming call of the second SIM card and connect the incoming call of the second SIM card. Figure 3A The card 1 in the call interface shown (here, the card 1 may represent the first SIM card) represents the SIM card that makes a call with the device with the number 15XXX. The operator corresponding to the card 1 is the operator 1, and the region 1 is the home region of 15XXX. Figure 3B Card 2 (here Card 2 may be a second SIM card) in the incoming call interface shown indicates the SIM card that receives the incoming call. The operator corresponding to Card 2 is Operator 2, and the calling number corresponding to the incoming call of Card 2 is 185XXX.
[0151] Among them, the first mobile communication network can be a mobile communication network such as 2G / 3G / 4G / 5G. Similarly, the second mobile communication network can be a mobile communication network such as 2G / 3G / 4G / 5G. Generally speaking, in order to improve the call quality, the first mobile communication network can be a network such as 4G or 5G, and the second mobile communication network can be a network such as 4G or 5G. For example, the first mobile communication network is a 4G network, and the second mobile communication network is a 5G network; for another example, the first grid is a 5G network, and the second mobile communication network is a 4G network; for another example, the first mobile communication network is a 5G network, and the second mobile communication network is a 5G network. That is to say, mobile phone 1 can realize dual-card dual-pass through the combination network of 4G+5G and 5G+4G, but cannot realize dual-card dual-pass through the combination network of 4G+4G. In other words, when one of the first mobile communication network and the second mobile communication network is a 4G network, the other mobile communication network cannot be a 4G network.
[0152] In some embodiments, the mobile phone 1 may not be able to maintain the dual-card dual-communication mode, that is, when one SIM card (such as the first SIM card) in the dual-card dual-communication mobile phone 1 is in a call state, the other SIM card (such as the second SIM card) in the mobile phone 1 cannot perform voice services, such as automatically rejecting the voice call request of the second SIM card (or the incoming call of the second SIM card). The calling device corresponding to the incoming call of the second SIM card can play a prompt message "the phone you dialed is in a call". In the process of the mobile phone 1 receiving the incoming call of the second SIM card, the user of the mobile phone 1 cannot perceive the incoming call of the second SIM card, resulting in the user being unable to find the new incoming call in time, and the situation of missing the incoming call may occur, which may cause the user to miss important incoming calls. Among them, the call state may include the call state or the ringing state. The ringing state indicates the state of the mobile phone 1 from dialing out the voice call request (or describing it as a call) to the state before the call is connected by the other end, such as the mobile phone 1 plays the other party's ringtone after dialing out the call, and the mobile phone 1 is in a ringing state. Or, the ringing state indicates that the mobile phone 1 receives the incoming call, but has not answered the call yet. That is to say, the ringing state indicates that the mobile phone 1 itself is ringing, or the other party is ringing.
[0153] The call status refers to the status after the call is connected, that is, the call has been connected. In other words, from the time the call of the SIM card is answered to the end of the call of the SIM card (such as user hang up, automatic hang up), the SIM card is in the call status.
[0154] For example, when mobile phone 1 receives a call from the first SIM card, the user can click Figure 4A In response to the user clicking the answer button, the mobile phone 1 answers the incoming call of the first SIM card and displays the following Figure 4B In the answering interface corresponding to the incoming call of the first SIM card shown, the state of the first SIM card in the mobile phone 1 is switched from the ringing state to the call state. When the first SIM card in the mobile phone 1 is in the call state, the calling and called users corresponding to the incoming call of the first SIM card can make a call. Here, the calling and called users corresponding to the incoming call of the first SIM card indicate the user of the calling device and the user of the called device (such as the mobile phone 1) corresponding to the incoming call of the first SIM card. When the user of the mobile phone 1 wants to hang up the call, the user can click the above Figure 3A The hang-up button is shown. In response to the click operation of the hang-up button, mobile phone 1 hangs up the call of the first SIM card. Similarly, the calling device corresponding to the incoming call of the first SIM card can also hang up the call of the first SIM card. The calling device can be a user equipment (UE), such as a mobile phone, a tablet computer, or other device with call capability.
[0155] Among them, from the time when mobile phone 1 receives the incoming call of the first SIM card to the time when mobile phone 1 connects the incoming call of the first SIM card, the first SIM card in mobile phone 1 is in a ringing state. After mobile phone 1 connects the incoming call of the first SIM card to the time when the call of the first SIM card is hung up, the first SIM card in mobile phone 1 is in a call state. When mobile phone 1 connects the incoming call of the first SIM card, the state of the first SIM card in mobile phone 1 is switched to the call state.
[0156] 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 of the first SIM card to be answered, the mobile phone 1 can play the other party's ringtone. Here, mobile phone 1 is the called device, and the device that receives the outgoing call of the first SIM card is the calling device. Afterwards, when the user of the calling device answers the outgoing call of the first SIM card, such as clicking the answer button displayed on the calling device, in response to the user's click operation on the answer button, the calling device can connect the outgoing call of the first SIM card. Among them, from the time when the first SIM card in mobile phone 1 makes an outgoing call, or from the time when mobile phone 1 plays the other party's ringtone, to before the outgoing call of the first SIM card is connected, the SIM card of mobile phone 1 is in a ringing state. When the calling device connects the outgoing call of the first SIM card, the state of the first SIM card in mobile phone 1 is switched to a call in progress state.
[0157] For example, Figure 5 As shown, 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, 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 through the network (such as the 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.
[0158] Afterwards, the IMS in the mobile phone 1 receives the invite message. In response to the invite message, the IMS determines whether the mobile phone 1 can maintain the DSDA mode, that is, determines whether the modem in the mobile phone 1 has dual-communication capability. The IMS may be located on the modem.
[0159] If the DSDA mode cannot be maintained, it indicates that the modem in mobile phone 1 does not support dual communication and does not have dual communication capability. In other words, mobile phone 1 cannot use the second SIM card for voice service when the first SIM card is in a call state. The IMS can directly reject the incoming call of the second SIM card. For example, the IMS can send a cancel message to mobile phone 2 through the network. After that, the calling device receives the cancel message. In response to the cancel message, the voice plays a prompt message "The phone you dialed is in a call" to abandon (or stop) the call.
[0160] When the DSDA mode can be maintained, it indicates that the modem in the mobile phone 1 has dual-channel capability, and the IMS can send an incoming call message to the application framework layer in the mobile phone 1. The incoming call message may include the calling number. Afterwards, the application framework layer can respond to the incoming call message and determine whether to reject the incoming call of the second SIM card based on the preset dual-channel strategy. The preset dual-channel strategy indicates whether to automatically reject the incoming call of the other SIM card in the dual-channel scenario, that is, when one SIM card is in a call state and receives an incoming call from another SIM card.
[0161] In the case of rejecting the incoming call from the second SIM card, it indicates that the preset dual-communication policy indicates that when one SIM card is in a call state and receives an incoming call from another SIM card, the incoming call from the other SIM card is rejected, and the application framework layer can send a reject message to the IMS. Afterwards, the IMS receives the reject message, and in response to the reject message, it can send the cancellation message to the calling device corresponding to the incoming call from the second SIM card. Afterwards, the calling device receives the cancellation message through the network, and in response to the cancellation message, a voice plays a prompt message "The phone you dialed is in a call".
[0162] And, as mentioned above Figure 5 As shown, in the case of rejecting the incoming call of the second SIM card, the application framework layer can send an incoming call message to the IncallUI module in the mobile phone 1, and the incoming call message is used by the IncallUI module to generate a missed call record corresponding to the incoming call of the second SIM card when the incoming call of the second SIM card ends. Afterwards, when the incoming call of the second SIM card ends, the IncallUI module can generate a missed call record corresponding to the incoming call of 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 of the second SIM card.
[0163] In some embodiments, the operations performed by the above application framework layer may be performed by related modules in the application framework layer, such as an IMS Common module.
[0164] By the above Figure 5 It can be seen that 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. On the one hand, if the IMS directly rejects the incoming call of the second SIM card, the upper layer (such as the above application framework layer and IncallUI module) cannot perceive the incoming call of the second SIM card, and the IncallUI module will not generate a missed call record at this time. In other words, there will be no missed call record corresponding to the incoming call of the second SIM card in the incoming call record of mobile phone 1, and the problem of leakage and no reminder will occur, resulting in the user of mobile phone 1 being unable to know the incoming call of the second SIM card, which may cause the user to miss important calls.
[0165] For example, if Fig. 6A As shown, when the first SIM card (such as card 1) in mobile phone 1 is in a ringing state, mobile phone 1 receives a call from the second SIM card (such as card 2) in mobile phone 1, and the number corresponding to the second SIM card is 100XXX. The calling device of the incoming call of the second SIM card can be called mobile phone 2, and the calling number corresponding to the incoming call of the second SIM card is 185XXX. Afterwards, the IMS in mobile phone 1 can reject the incoming call of the second SIM card and send a cancellation message (such as 100XXX) to mobile phone 2. Figure 6B Afterwards, the calling device receives the cancellation message, and in response to the cancellation message, plays a prompt message "The number you dialed is currently in use" (as shown above). Figure 6B shown).
[0166] When the user of mobile phone 2 wants to stop the call, the user of mobile phone 2 can click Fig. 6A or Figure 6B The hang-up button 11 shown in the figure, in response to the user clicking the hang-up button 11, the mobile phone 2 can end the incoming call of the second SIM card. Figure 6C As shown, there is no missed call record corresponding to the incoming call of the second SIM card in the call record of mobile phone 1, that is, there is no missed call record with the number 185XXX.
[0167] 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 generate a missed call record corresponding to the incoming call of the second SIM card only 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). Fig.6DThe missed call record 20 shown in the figure causes the user to still not be aware of the incoming call from the second SIM card during the incoming call of the second SIM card, thereby causing the user to be not reminded of the incoming call in time, which may cause the user to miss important calls and reduce the user's user experience.
[0168] In some embodiments, not only the IMS (herein described as Modem) and application framework layer in the mobile phone 1 can automatically reject the incoming call of the second SIM card, but other modules / devices in the mobile phone 1 can also reject the incoming call of the second SIM card. Figure 7 As shown, 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 strategy. 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.
[0169] If the IMS Common module determines that the incoming call from the second SIM card is not to be rejected, the IMS Common module may send an incoming call message to the IncallUI module. Based on the incoming call message, the IncallUI module may display an incoming call interface corresponding to the incoming call from the second SIM card (such as the above-mentioned Figure 3B As shown). Afterwards, the user can choose to answer or hang up the incoming call of the second SIM card. In one case, in response to the answering operation of the incoming call of the second SIM card, the IncallUI module can answer the incoming call of the second SIM card, and send an answering message to the calling device corresponding to the incoming call of the second SIM card through the IMS Common module, the IMS application and the Modem to connect the incoming call of the second SIM card. In another case, in response to the hang-up operation of the incoming call of the second SIM card, the IncallUI module can reject the incoming call of 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 of the second SIM card in response to the rejection message.
[0170] It should be noted that even if the mobile phone 1 cannot perform dual communication, if it is necessary to automatically reject the incoming call from the second SIM card, the mobile phone 1 still meets the standard of a dual communication device. Specifically, if the device meets the use case of dual communication calls disclosed by the relevant departments as shown in Table 1, the device meets the standard of a dual communication device.
[0171] Table 1
[0172]
[0173] It can be seen from Table 1 above that for a dual-card dual-channel device, in a dual-channel scenario, it can be implemented similarly to a single-channel device. For example, when one SIM card in the dual-card dual-channel device is in a call state and another SIM card calls, the dual-card dual-channel device can automatically reject the call from the other SIM card.
[0174] It is understandable that, although it is implemented in a manner similar to a single-channel device, it is somewhat different from an actual single-channel device. Assuming that mobile phone 1 is a dual-SIM single-channel device, when one SIM card in mobile phone 1 is in a call state, if other devices call 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 cannot sense the call from the other SIM card. If mobile phone 1 is a dual-SIM dual-channel device, the modem in mobile phone 1 can sense the call from the other SIM card.
[0175] In view of the above problems, the present application provides a method for reminding incoming calls. 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 incoming call of the second SIM card. In order to avoid the user not finding the rejected incoming call of the second SIM card in time (i.e. leakage), the mobile phone 1 can perform an incoming call reminder operation, which is used to remind the mobile phone 1 that the incoming call of the second SIM card is received. The incoming call reminder operation may include at least one of displaying the incoming call reminder information, voice prompts and vibration prompts, so as to realize the timely reminder of automatically rejecting the incoming call in the dual-channel scenario, so that the user can be informed of the incoming call of the second SIM card in time to prevent the user from missing important calls. Furthermore, by performing the incoming call reminder operation, it can be avoided that 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, and improving the user experience.
[0176] And / or, considering that the voice prompt "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. Among them, 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 another 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 solutions provided by the embodiments of the present application. Figure 8 The incoming call reminder method provided by the embodiment of the present application is described in detail. Figure 8 As shown, 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 one of a ringing state and 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 may be any SIM card in the mobile phone 1. The second SIM card may 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] Among them, the DSDA mode means that the mobile phone 1 has dual-channel capabilities, that is, the modem in the mobile phone 1 has dual-channel capabilities, that is, the mobile phone 1 has the ability to use the other SIM card to carry out voice services when using one SIM card in the mobile phone 1. In other words, the DSDA mode means that the mobile phone 1 has the ability to answer calls from the second SIM card when the first SIM card is in a call state.
[0183] In some embodiments, the mobile phone 1 can determine whether the mobile phone 1 can maintain the DSDA mode through the mobile communication networks of the first SIM card and the second SIM card. First, the mobile phone 1 can obtain the mobile communication network of the first SIM card and the mobile communication network of the second SIM card. Among them, 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. Afterwards, the mobile phone 1 can determine whether the mobile communication network of the first SIM card and the mobile communication network of the second SIM card belong to a preset network combination. Among them, the preset network combination represents the mobile communication networks of the two SIM cards when the mobile phone 1 (such as the Modem in the mobile phone 1) has dual-pass capability. The preset network combination is set according to the Modem in the mobile phone 1. For example, the Modem in the mobile phone 1 can only support the combination of 5G+5G, that is, when the mobile communication network used by one SIM card in the 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, the mobile phone 1 (such as the Modem in the mobile phone 1) has dual-pass capability. Correspondingly, the preset network combination of the mobile phone 1 can include a 5G+4G combination. For another example, the modem in the mobile phone 1 can support the 5G+5G combination and the 5G+4G combination. The preset network combination of the mobile phone 1 may include the 5G+5G combination and the 5G+4G combination.
[0184] When 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) belongs to the preset network combination, it indicates that mobile phone 1 supports the actual network combination, which means that when the first SIM card is in a call state, mobile phone 1 has the ability to answer calls from the second SIM card. In other words, mobile phone 1 has dual-communication capability, and mobile phone 1 can determine that mobile phone 1 can maintain DSDA mode.
[0185] When 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, that is, when the first SIM card is in a call state, mobile phone 1 cannot answer the call from the second SIM card. In other words, mobile phone 1 does not have dual-communication capability, and mobile phone 1 (such as the modem in mobile phone 1) needs to reject the call 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 in the on state, 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 opened 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 ensure the continuity of voice services by relying on VoLTE. Here, when 5G does not meet the VoNR conditions, the process of falling back from 5G to 4G and 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 indicates the mobile communication network used by the second SIM card for initial voice services, that is, the mobile communication network used by the second SIM card for receiving incoming calls. For example, the second SIM card can initially use a 5G network to receive 5G incoming calls, and the initial mobile communication network of the second SIM is a 5G network.
[0189] The predicted mobile communication network of the second SIM card indicates the mobile communication network used to continue processing the incoming call prediction 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 voice service. 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 5G network for voice service. 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 the second SIM card has not activated VoNR, 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 that the mobile communication network of the second SIM card includes the initial mobile communication network and the predicted mobile communication network of the second SIM card, the actual network combination may include a first network combination and 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. Accordingly, when the first network combination and the second network combination both belong to the preset network combination, the mobile phone 1 can maintain the DSDA mode without exiting the DSDA mode. When the first network combination or the second network combination does not belong to the preset network combination, the mobile phone 1 cannot maintain the DSDA mode.
[0193] For example, the preset network combination of mobile phone 1 includes a 5G+5G combination and a 5G+4G combination. 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 uses the 5G network to receive an incoming call from the second SIM card. The incoming call of the second SIM card is a 5G call, and the initial mobile communication network of the second SIM card is 5G. However, since the second SIM card has not activated VoNR, 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. Correspondingly, 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, the mobile phone 1 may first determine whether the first network combination belongs to the preset network combination. If it belongs to the preset network combination, the mobile phone 1 may continue to determine whether the second network combination belongs to the preset network combination. If it does not belong to the preset network combination, the mobile phone 1 may directly determine that the DSDA mode cannot be maintained without continuing to determine 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 the 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 is the 4G network. In addition, when the mobile communication network of the SIM card needs to fall back, the frequency band to fall back 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 available, 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 available, 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 to determine 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 frequency band in 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. Correspondingly, mobile phone 1 can determine whether mobile phone 1 can maintain DSDA mode through the frequency bands of the first SIM card and the second SIM card. Exemplarily, 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 service. Similarly, the frequency band of the second SIM card represents the frequency band used by the second SIM card for voice service.
[0198] Afterwards, the mobile phone 1 can determine whether the frequency band of the first SIM card and the frequency band of 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 the mobile phone 1 (such as the modem in the mobile phone 1) has dual-channel capabilities. The preset frequency band combination is set according to the modem in the mobile phone 1.
[0199] When the actual frequency band combination of the mobile phone 1 (i.e., the frequency band combination composed of the frequency band of the first SIM card and the frequency band of the second SIM card) belongs to the preset frequency band combination, it indicates that the mobile phone 1 supports the actual frequency band combination, which means that when the first SIM card is in a call state, the mobile phone 1 has the ability to answer the call of the second SIM card. In other words, the mobile phone 1 has dual-channel capability, and the mobile phone 1 can determine that the mobile phone 1 can maintain the DSDA mode.
[0200] When 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, that is, when the first SIM card is in a call state, mobile phone 1 cannot currently answer the incoming call of the second SIM card. In other words, mobile phone 1 does not have dual-channel 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 the initial frequency band of the second SIM card and / or the predicted frequency band of the second SIM card. The initial frequency band of the second SIM card indicates the frequency band used by the second SIM card for initial voice service, that is, the frequency band used by the second SIM card for receiving incoming calls. For example, the second SIM card can initially use frequency band 1 in the 5G network to receive 5G incoming calls, and 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 of the second SIM card after receiving the incoming call of the second SIM card, that is, the frequency band used by the second SIM card to continue voice service. 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 service. 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 the second SIM card has not activated VoNR, 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 frequency band of the second SIM card as an example, the actual frequency band combination may include the frequency band of the first SIM card and the predicted frequency band of the second SIM card. For example, the frequency band may be characterized by the frequency band number corresponding to the frequency band. The preset frequency band combination of mobile phone 1 is n78+band40. The first SIM card in mobile phone 1 is in a call state, and the frequency band of the first SIM card is n78, that is, the first SIM card in mobile phone 1 processes voice services based on the frequency band corresponding to n78 in 5G. Mobile phone 1 receives an incoming call from the second SIM card, and the voice service of the second SIM card will fall back from the 5G network to the frequency band corresponding to band1 in the 4G network. The predicted frequency band of the second SIM card is band1. The actual frequency band combination of mobile phone 1 is n78+band1. It can be seen that the actual frequency band combination does not belong to the preset frequency band combination, and mobile phone 1 can determine that mobile phone 1 cannot maintain DSDA mode.
[0205] Taking the example that the frequency band of the second SIM card includes the initial frequency band and the predicted frequency band of the second SIM card, the actual frequency band combination may include a first frequency band combination and a second frequency band combination. Among them, 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, when the first frequency band combination and the second frequency band combination both belong to the preset frequency band combination, the mobile phone 1 can maintain the DSDA mode without exiting the DSDA mode. When the first frequency band combination or the second frequency band combination does not belong to the preset frequency band combination, the mobile phone 1 cannot maintain the DSDA mode.
[0206] Optionally, when receiving an incoming call from the second SIM card, the mobile phone 1 may first determine whether the first frequency band combination belongs to the preset frequency band combination. If it belongs to the preset frequency band combination, the mobile phone 1 may continue to determine whether the second frequency band combination belongs to the preset frequency band combination. If it does not belong to the preset frequency band combination, the mobile phone 1 may directly determine that the DSDA mode cannot be maintained without continuing to determine whether the second frequency band combination belongs to the preset frequency band combination.
[0207] In addition, the above-mentioned determination of whether the mobile phone 1 can maintain the DSDA mode through the frequency bands of the first SIM card and the second SIM card can be performed after determining whether the mobile phone 1 can maintain the DSDA mode through the mobile communication network of the first SIM card and the second SIM card. Exemplarily, in the case where the above-mentioned actual network combination belongs to the preset network combination, the mobile phone 1 can continue to determine whether the actual frequency band combination belongs to the preset frequency band combination. In the case where the actual frequency band combination belongs to the preset frequency band combination, the mobile phone 1 can maintain the DSDA mode. In the case where the above-mentioned actual network combination does not belong to the preset network combination, the mobile phone 1 can directly determine that the DSDA mode cannot be maintained without continuing to determine whether the actual frequency band combination belongs to the preset frequency band combination. Of course, determining whether the mobile phone 1 can maintain the DSDA mode through the frequency bands of the first SIM card and the second SIM card can also be performed simultaneously with determining whether the mobile phone 1 can maintain the DSDA mode through the mobile communication network of the first SIM card and the second SIM card, and this application does not limit the order of precedence.
[0208] It should be noted that since mobile phone 1 can receive 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 to support 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, to predict whether mobile phone 1 has the ability to answer 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 continue to maintain the DSDA mode, and thus cannot continue to process the voice service of the second SIM card, and needs to reject the incoming call of the second SIM card.
[0210] In the present application, since a mobile communication network may include multiple frequency bands, the mobile phone 1 may only be able to perform voice services under a specific frequency band in the mobile communication network, that is, the mobile phone 1 may only have the dual-channel capability for voice services under a specific frequency band combination. Therefore, the 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). 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 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. When the dual-channel capability is available, it indicates that the mobile phone 1 has the ability to answer the incoming call of the second SIM card, and the mobile phone 1 can continue to judge whether it can answer the incoming call of the second SIM card. When the dual-channel capability is not available, it indicates that the mobile phone 1 cannot answer the incoming call of the second SIM card, and the incoming call of the second SIM card can be directly and automatically rejected, so as to accurately judge whether the incoming call of the second SIM card is rejected.
[0211] After S302, when the mobile phone 1 cannot maintain the DSDA mode, it indicates that the modem in the mobile phone 1 does not have the dual-communication capability, that is, it indicates that the mobile phone 1 does not have the ability to answer the call of the second SIM card, that is, it indicates that the mobile phone 1 cannot perform the voice service of the other SIM card when one SIM card is in a call state, and the mobile phone 1 needs to reject the call of the other SIM card, then the mobile phone 1 can execute S303. When the mobile phone 1 can maintain the DSDA mode, it indicates that the modem in the mobile phone 1 has the dual-communication capability, and the mobile phone 1 can continue to determine whether the mobile phone 1 can perform dual-communication, and the mobile phone 1 can continue to execute S304.
[0212] S303: Mobile phone 1 rejects the incoming call from the second SIM card and performs the incoming call prompt operation, wherein the incoming call prompt operation is used to prompt mobile phone 1 that the incoming 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 may 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, the mobile phone 1 may display the incoming call prompt information in the form of a pop-up box on the displayed interface, such as Fig. 9A The mobile phone 1 shown displays a call prompt message 40 on the call interface, in which "185XXX" is the calling number, and card 2 is the identifier of the SIM card (such as the second SIM card) of the automatically rejected call, so as to timely provide a power leakage reminder, so that the user can intuitively and timely know that the call is from another SIM card. On the one hand, it can avoid that the user can only find the call of the second SIM card through the call record after the call of the second SIM card ends, resulting in the user failing to find the call in time, and it can avoid that due to the large amount of information in the call record, the user may not find the missed call record corresponding to the call of the second SIM card, so that the user does not find the call of the second SIM card, resulting in missed calls. On the other hand, it can also avoid that the mobile phone 1 does not generate the missed call record corresponding to the call of the second SIM card after the call of the second SIM card ends, resulting in the user being unable to find the call of the second SIM card, causing the user to miss the call, avoiding the user's mistake of important calls, and ensuring the user's use experience.
[0214] It should be noted that the above Fig. 9A The content of the incoming call prompt information 40 shown (ie, the card 2 receives an incoming call from the number "185XXX") is only an example, and 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 an incoming call.
[0215] In another implementation, taking the above-mentioned incoming call prompt operation including voice prompt as an example, when the mobile phone 1 cannot maintain the DSDA mode, the mobile phone 1 can make a voice prompt, such as voice outputting the above-mentioned incoming call prompt information, that is, the content of the voice prompt can include the caller number corresponding to the incoming call of the second SIM card and / or the identifier of the second SIM card. For example, the mobile phone 1 can play the voice prompt information of "Card 2 in the mobile phone 1 receives an incoming call with 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 perform a vibration prompt according to the first preset vibration mode. For example, 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 the preset number of times; for another example, the mobile phone 1 can vibrate continuously for a period of time.
[0217] Among them, the above-mentioned first preset vibration mode can be preset and configured in the mobile phone 1. In addition, the mobile phone 1 can prompt the meaning represented by the first preset vibration mode (that is, the first preset vibration mode indicates that when one SIM card is in a call state, the mobile phone 1 receives a call from another SIM card). For example, the mobile phone 1 can prompt when it is turned on for the first time. Of course, the mobile phone 1 can also prompt at other times, and this application does not limit it.
[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 find the displayed incoming call prompt information in time, and ensure the 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 the reason why the mobile phone 1 vibrates, so that he can see the incoming call prompt information displayed by the mobile phone 1. Therefore, the above-mentioned second preset vibration mode may 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 voice prompt the second SIM card for incoming calls, 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 the timely reminder of automatically rejecting the incoming 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 by the mobile phone 1, avoiding the user's inability to timely know the specific situation of the incoming call of the second SIM card due to the user not hearing clearly, not remembering the incoming call number, etc., so that the user can timely determine whether it is necessary to immediately call back the incoming call number of the second SIM card, so as to prevent the user from missing important things.
[0220] In another implementation method, 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 prompt according to the above-mentioned second preset vibration mode, and can provide voice prompt to realize timely reminder of the incoming call of the second SIM card.
[0221] Among them, it is optional that, generally speaking, when the mobile phone 1 performs a voice prompt, the user can be informed of an incoming call from another SIM card (such as a second SIM card) in the mobile phone 1, and the vibration prompt only makes the user feel that the mobile phone 1 has received a new call by vibration, but cannot inform the new call 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 only the voice prompt. Therefore, when setting the incoming call prompt operation, the voice prompt and the vibration prompt may not be combined. In other words, when the mobile phone 1 performs a voice prompt, the vibration prompt may not be performed.
[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 give voice prompt 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, in order to avoid affecting the call of the first SIM card, the mobile phone 1 may not make a voice prompt, but may display the incoming call prompt information and / or a vibration prompt. For another example, in order 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, in order 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 from the second SIM card, so as to avoid the user missing important things when the incoming call from the second SIM card is an important call. In one example, the mobile phone 1 can receive a 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 call back the caller number corresponding to the incoming call from the second SIM card, that is, to dial the caller number corresponding to the incoming call from the second SIM card to return the call. For example, in response to the user's Fig. 9B 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 calling number corresponding to the incoming call of the second SIM card, and the display is as shown in FIG. Fig. 9C After receiving the incoming call from the card 1, if the mobile phone 2 can answer the call, the mobile phone 2 can display the following Fig.9D The incoming call interface shown enables the user to answer the incoming call of the card 1 through the incoming call interface, and realize timely communication with the user of the second SIM card. Fig. 9C The 185XXX in the outgoing call interface is the calling number corresponding to the incoming call of the second SIM card, and Card 1 indicates that Card 1 is being used to make the call. Fig.9D The 11XX in the incoming call interface shown is the number corresponding to card 1.
[0226] In another example, in order to avoid the failure of the callback due to the inability of a SIM card in the mobile phone 2 to answer the new incoming call during the outgoing call, the mobile phone 1 can hang up the call of the first SIM card and the incoming call of the second SIM card. Afterwards, the mobile phone can use the second SIM card to call back the calling number corresponding to the incoming call of the second SIM card. For example, in response to the user's Fig.9E The mobile phone 1 hangs up the call of the first SIM card (such as card 1) and the incoming call of card 2, and uses card 2 to dial the calling number corresponding to the incoming call of the second SIM card, and the display is as shown in FIG. Fig.9F After receiving the incoming call from the card 2, the mobile phone 2 can display the following Figure 9G The incoming call interface shown enables the user to answer the incoming call of the card 2 through the incoming call interface, and realize timely communication with the user of the second SIM card. Figure 9G The 100XX in the incoming call interface shown 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 calling 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 having doubts about why the call was hung up.
[0228] In addition, the users introduced above are Fig. 9B , Fig.9E The click operation of the incoming call prompt information shown is only an example of the second operation. The second operation can also be other operations, such as the user's click operation on the caller number in the incoming call prompt information. Optionally, in response to the user's click operation on the caller number, the mobile phone 1 can display a first option and a second option, and the first option is used to trigger the mobile phone 1 to call back the caller number through the first SIM card. The second option is used to trigger the mobile phone 1 to call back the caller number through the second SIM card. Afterwards, in response to the user's trigger operation on the first option, the call is returned through the first SIM card. Alternatively, in response to the user's trigger operation on the second option, the call is returned through the second SIM card.
[0229] In some embodiments, the above-mentioned rejection operation may include sending a first cancellation message to the calling device (or mobile phone 2) corresponding to the incoming call of 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 prompt that the first SIM card in the mobile phone 1 is in a call state, that is, the other card of the called device is in a call, so as to prompt the actual reason why the incoming call of the second SIM card was not answered, so that the user of the calling device (referred to as the calling user) knows that the other SIM card of the phone he dialed is in a call state, resulting in the inability to connect the call he dialed, so that the calling user clearly knows the actual reason why the other party cannot answer the call, avoiding the calling user from having the actual reason why the other party did not answer the call. Exemplarily, the calling device can output the rejection prompt message by voice. For example, after receiving the first cancellation message, the host device can play the voice "the other card of the phone you dialed is in a call" in response to the first cancellation message. Alternatively, the calling device can display the rejection prompt message. For example, the calling device can display the following in response to the first cancellation message. Fig.10 The rejection prompt information 50 is shown. Of course, the calling device can also output the rejection prompt information in other ways, such as vibration prompt mode, SMS prompt mode. Among them, the vibration prompt mode is similar to the above-mentioned method of prompting the incoming call of the second SIM card by vibration, which will not be repeated 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 may extract the first prompt information from the first cancellation message and output the first prompt information. Of course, the first cancellation message may not carry the first prompt information, and after receiving the first cancellation message, mobile phone 2 may trigger the output of the first prompt information based on the 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 only examples. The 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 also perform other operations to reject the second SIM card. Similarly, the calling device can not only output the rejection prompt information based on the first cancellation message, but 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 a preset dual-communication strategy.
[0233] Exemplarily, when the mobile phone 1 can maintain the DSDA mode, it indicates that the mobile phone 1 (such as the modem in the mobile phone 1) has dual-channel capability, and the mobile phone 1 may be able to perform dual-channel. Therefore, the mobile phone 1 can continue to judge whether it is necessary to perform dual-channel based on the preset dual-channel strategy, in other words, judge whether it is necessary to reject the incoming call of the second SIM card. The preset dual-channel strategy indicates whether to reject the incoming call of another SIM card when one SIM card in the mobile phone 1 is in a call state. The preset dual-channel strategy can be preset in the mobile phone 1, such as before the mobile phone 1 leaves the factory, the preset dual-channel strategy has been set in the mobile phone 1.
[0234] If it is necessary to reject the incoming call of the second SIM card, it indicates that the preset dual-communication strategy indicates that when one SIM card in the mobile phone 1 is in a call state, the incoming call of the other SIM card is rejected, and the mobile phone 1 can execute S305. If it is not necessary to reject the incoming call of the second SIM card, it indicates that the preset dual-communication strategy indicates that when one SIM card in the mobile phone 1 is in a call state, the incoming call of the other SIM card is not rejected, and the 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 at least one of displaying 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 the above S303 and S305, the mobile phone 1 may not perform the incoming call prompt operation, but may only reject the incoming call of the second SIM card, 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, so that the calling user corresponding to the incoming call of the second SIM card clearly knows the actual reason why the incoming call of the second SIM card was not answered. Of course, when executing the above S303 and S305, the rejection operation performed by the mobile phone 1 may include sending a first cancellation message to the calling device corresponding to the incoming call of the second SIM card, and may perform the incoming call prompt operation, so as to realize the timely reminder of the incoming call of the second SIM card, and can make the calling user clearly know the actual reason why the incoming call was not answered.
[0238] In the present application, when the mobile phone 1 can 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 strategy. When the preset dual-channel strategy 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 of the second SIM card, so that the user can be informed of the incoming call of the second SIM card in time, and the timely reminder of automatic rejection of the incoming call in the dual-channel scenario is realized 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 above Figure 3B The answering interface corresponding to the incoming call of the second SIM card shown in the figure. The answering interface may include the information of the calling number corresponding to the incoming call of the second SIM card (such as the calling number, the place of origin, the operator, etc.), the identifier of the second SIM card (such as the above Figure 3B Card 2 in the answering interface shown), answer button, reject button, etc. Among them, the answer button can trigger the mobile phone 1 to answer the call from the second SIM card, and the reject button can trigger the mobile phone 1 to reject the call from the second SIM card.
[0241] In some embodiments, since the user triggers the reject button on the answering interface corresponding to the incoming call of the second SIM card, causing the mobile phone 1 to reject the incoming call of the second SIM card, the mobile phone 1 can send a cancellation message to the calling device corresponding to the incoming call of the second SIM card. Accordingly, after receiving the cancellation message, the calling device can respond to the cancellation message and play a voice prompt message "The phone you dialed is in a call". In this case, since the incoming call of the second SIM card has been prompted through the incoming call interface, the mobile phone 1 does not need to perform the incoming call prompt operation, avoiding unnecessary prompts.
[0242] In some embodiments, after the incoming call of the second SIM card is hung up, the mobile phone 1 can generate and display the missed call record corresponding to the incoming call of the second SIM card, as described above. Fig.6D The missed call record 20 shown. Since the mobile phone 1 needs to perform a call prompt 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, so the mobile phone 1 can generate a missed call record corresponding to the incoming call from the second SIM card, so that the user can know the leakage of the mobile phone 1 through the missed call record, avoiding the situation that the mobile phone 1 cannot generate the missed call record corresponding to the incoming call from the second SIM card due to the modem in the mobile phone 1 automatically rejecting the incoming call from the second SIM card, thereby causing the user to be unable to know the leakage of the mobile phone 1, thereby improving the user experience.
[0243] Optionally, after the incoming call of the second SIM card ends, the mobile phone 1 receives a first operation of the user on the mobile phone 1 (such as a click operation of the user on the phone application in the mobile phone 1). In response to the first operation, the mobile phone can display the call record, wherein the call record includes the missed call record corresponding to the incoming call of the second SIM card.
[0244] In some embodiments, after receiving an incoming call from the second SIM card in the mobile phone 1, the mobile phone 1 may first determine whether the calling number corresponding to the incoming call from the second SIM card is a malicious number. The malicious number refers to a number corresponding to a specific label (such as a harassment label, a fraud label). In the case where the calling number is a malicious number, the mobile phone 1 may directly reject the incoming call from the second SIM card, and there is no need to prompt the user of the incoming call from the second SIM card (such as no need to perform a call prompt operation), thereby avoiding unnecessary 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 of the second SIM card based on the preset dual-channel strategy. In other words, the operation of the mobile phone 1 determining whether to reject the incoming call of the second SIM card based on whether the calling number is a malicious number can be performed before the above 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-card dual-communication device, one SIM card in mobile phone 3 is in a call state, and the other SIM card receives the outgoing call request. Since mobile phone 3 determines that it cannot perform dual communication (such as it cannot maintain DSDA mode, and the preset dual communication policy indicates that when one SIM card is in a call state, the call from the other SIM card 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 prompt the user of mobile phone 1 that the other SIM card of the call he dialed is in a call.
[0247] Exemplarily, 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 (such as in a non-call state). For example, after the call of the first SIM card is ended, it is in an idle state and an outgoing call can be made through the first SIM card.
[0248] In some embodiments, 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. The modem in the mobile phone 1 can determine whether the DSDA mode can be maintained, that is, the modem determines whether it has dual-channel capability. If the DSDA mode cannot be maintained, it indicates that the modem does not have dual-channel capability, 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 capability, and it can continue to determine whether the mobile phone 1 can perform dual-channel. The application framework layer in the 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 the mobile phone 1 also has the ability to reject the incoming call. Of course, the 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 will combine the above Figure 2 The structure shown in FIG. 1 is a detailed description of the process of the modem and application framework layer in the mobile phone 1 rejecting a call and answering a call from the second SIM card. The process of the modem rejecting a call may include the following steps: Fig.11 As shown in S401-S407, the process of rejecting the incoming call at the application layer may include the following steps: Fig.11 The process of mobile phone 1 answering the incoming call of the second SIM card may include the following steps: Fig.11 S415-S416 shown.
[0250] S401: When the first SIM card in the mobile phone 1 is in a call state, the modem in the 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. The present 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 the DSDA mode, it indicates that the modem does not have the dual-communication capability, that is, it does not have the capability to answer the incoming call of the second SIM card, and the mobile phone 1 needs to reject the incoming call of the second SIM card, and the mobile phone 1 can execute S403. If the modem can maintain the DSDA mode, it indicates that the modem has the dual-communication capability, and the mobile phone 1 may be able to answer the incoming call of the second SIM card to achieve dual communication, so the mobile phone 1 can continue to determine whether the mobile phone 1 can perform dual communication, and the mobile phone 1 can continue to execute S408.
[0255] Exemplarily, the modem can determine whether the DSDA mode can be maintained through 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 above-mentioned 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 used by the modem to send a ringing message (180ringing message) and then interact with the calling device to predict the use.
[0256] And / or, the modem can determine whether the DSDA mode can be maintained through the frequency band of the first SIM card and the frequency band of the second SIM card. Here, the modem can determine whether the DSDA mode can be maintained through the mobile communication network and the frequency band. The process of determining whether the DSDA mode can be maintained through the mobile communication network and the frequency band described above can be referred to, and will not be repeated 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 the 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 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] Exemplarily, 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 to receive an incoming call from the second SIM card.
[0265] Exemplarily, the above-mentioned incoming call prompt operation may include at least one of displaying incoming call prompt information, voice prompt (i.e., voice playing of incoming call prompt information) and vibration prompt. In some embodiments, the IncallUI module can display incoming call prompt information, and the voice prompt and vibration prompt can be triggered by the above-mentioned application framework layer to perform related devices, such as 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 prompt. Of course, the voice prompt and / or vibration prompt can also be triggered by other modules in the mobile phone 1 to perform related devices, and this application does not limit it.
[0266] In some embodiments, when the above-mentioned modem cannot maintain the DSDA mode, it can reject the incoming call of the second SIM card, such as sending a first cancellation message to the calling device corresponding to the incoming call of the second SIM card through the network, triggering the calling device to give up calling 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 of the second SIM card, the upper layer (such as the application framework layer, the IncallUI module) can perceive the incoming call of the second SIM card through the relevant incoming call message (such as the second incoming call message), so that the IncallUI module can generate the missed call record corresponding to the incoming call of the second SIM card after the incoming call of the second SIM card is hung up, realize the leakage reminder, and avoid the situation that the missed call record corresponding to the incoming call cannot be generated after the modem rejects the incoming call because the upper layer cannot perceive 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. Exemplarily, the first incoming call message includes the caller number. 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. In response to the first incoming call message, based on a preset dual-communication strategy, it is determined whether to reject the incoming call from the second SIM card.
[0270] After S409, if the preset dual-communication strategy indicates that one SIM card in the mobile phone 1 is in a call state, the call from the other SIM card is rejected, and the application framework layer can execute S410. If the preset dual-communication strategy indicates that one SIM card in the mobile phone 1 is in a call state, the call from the other SIM card is answered, and the application framework layer can 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 stops 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 to receive an incoming call from the second SIM card.
[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 mobile phone 1 has dual-channel capability, it indicates that mobile phone 1 has the ability to answer calls from the second SIM card, and the application framework layer in mobile phone 1 can continue to determine whether mobile phone 1 can perform dual-channel, that is, determine whether to answer calls from the second SIM card. In the case of dual-channel failure, the application framework layer can reject calls from the second SIM card. After the call from the second SIM card is hung up, the relevant modules in 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 leakage of mobile phone 1 through the call record and realize leakage reminder.
[0281] In the embodiment of the present application, in the dual-communication scenario, in order to avoid the failure to timely remind the user of the incoming call of the second SIM card that is automatically rejected by the hardware layer or software layer in the mobile phone 1, after rejecting the incoming call, the mobile phone 1 can perform a call reminder operation to remind the user that there is an incoming call from another SIM card, so as to realize timely reminder of the incoming call and avoid the user of the mobile phone 1 from omitting or missing important calls. And no matter whether the incoming call of the second SIM card is rejected by the hardware layer or the software layer, the user of the calling device corresponding to the incoming call of the second SIM card does not know the actual reason why the mobile phone 1 rejects the incoming call of the second SIM card. Therefore, the 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 the mobile phone 1 rejects the incoming call.
[0282] In some embodiments, Fig.12 As shown, after receiving the invitation message, the modem can send a 100trying message to the calling device through 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] Among them, optional, as mentioned above Fig.12 As shown, before the modem sends a 180 ringing message to the calling device through the network, it can send a session progress message (183 session progress message) to the calling device through the network to notify the calling device that the mobile phone 1 is processing the incoming call.
[0285] It can be seen that if the modem in mobile phone 1 rejects the incoming call from the second SIM card, mobile phone 1 will not send the above 180ringing message, 183sessionprogress message and other messages to the calling device, and the calling device can receive the 100trying message. If the incoming call from the second SIM card is rejected by the application framework layer in mobile phone 1, the calling device can not only receive the 100trying message, but also receive the 180ringing message, 183sessionprogress message and other messages 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 183sessionprogress message may be a 5G network or a 4G network, which depends on 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 above-mentioned modem may be performed by the IMS on the modem. The operations performed by the above-mentioned 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 may 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 other software layers is similar to the process of rejecting the incoming call by the application framework layer, such as other software layers judging whether to reject the incoming call from the second SIM card based on the relevant dual-communication strategy.
[0289] In some embodiments, the above-mentioned maintaining DSDA mode can be replaced by describing supporting DSDA mode. That is, 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, the mobile phone may not be in DSDA mode. The mobile phone determines whether to switch to DSDA mode by determining whether the 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 also provides a computer program product, including a computer program. When the computer program runs on an electronic device, the electronic device executes each function or step in the above embodiment.
[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 the present 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 only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another 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 separated, 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 different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0296] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0298] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope 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 invention comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the incoming call reminder method as claimed in any one of claims 1 to 12.
Citation Information
Patent Citations
Dual-card dual-standby single-pass mobile phone and phone call incoming method thereof
CN103581854A
Double-card double-system terminal and incoming call processing method and apparatus thereof
CN105072257A
Communication event processing method and device
CN108933992A
Method, apparatus, system and device for incoming call alerting and storage medium
CN109246320A
Incoming call reminding method, apparatus and system, device and storage medium
CN109327621A
