SIM (Subscriber Identity Module) card switching method and electronic equipment
By intercepting the card status message during SIM card switching, keeping the network identifier of the corresponding SIM card interface displayed on the electronic device UI interface, solving the user experience problems caused by switching between eSIM cards and physical SIM cards, and improving the user experience.
Patent Information
- Application Number
- CN202311444141.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2043-10-31
AI Technical Summary
During the switching process of eSIM card and physical SIM card, the change in the network identification of the user interaction interface of the electronic device affects the user experience.
By providing a user identification module SIM card switching method in the electronic device, the card status message of the target SIM card interface is intercepted, and the network identifier of the corresponding SIM interface is displayed in the UI interface.
It realizes that the UI interface does not perceive the switching process during the switching between eSIM card and physical SIM card, which improves the user's product experience.
Smart Images

Figure CN119967397A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electronic technology, and in particular to a method for switching a subscriber identity module (SIM) card and an electronic device. Background Art
[0002] At present, in electronic devices that support embedded subscriber identity modules (eSIM) and physical SIM cards, the eSIM card and the physical SIM card can be switched. In the process of switching between the eSIM card and the physical SIM card, the change in the SIM card state caused by the switch will cause the network identification of the user interface (UI) of the electronic device to change, affecting the user experience. Summary of the invention
[0003] The embodiments of the present application provide a method for switching a subscriber identity module (SIM) card and an electronic device, which can keep displaying a network identification of a corresponding SIM interface during the switching process between an eSIM card and a physical SIM card.
[0004] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0005] In a first aspect, a method for switching a subscriber identity module (SIM) card is provided. The method is applied to an electronic device, wherein the electronic device includes one or more SIM card interfaces, wherein the one or more SIM card interfaces are used to insert a physical SIM card, and a target SIM card interface in the one or more SIM card interfaces is associated with an embedded eSIM card. The method includes:
[0006] The electronic device displays a first interface, the first interface includes a network identifier corresponding to the target SIM card interface, and also includes a first setting item and a second setting item, the first setting item in the first interface indicates that the electronic device is using the first SIM card, and the second setting item in the first interface indicates that the second SIM card is not in use. In response to the selection operation of the second setting item in the first interface, the second interface is displayed, the second interface includes the network identifier corresponding to the target SIM card interface; the first setting item in the second interface indicates that the first SIM card is not in use, and the second setting item in the second interface indicates that the electronic device is using the second SIM card. In the process of the electronic device switching from the first interface to the second interface, the electronic device displays the network identifier corresponding to the target SIM card interface. In the above-mentioned first SIM card and second SIM card, one SIM card is a physical SIM card inserted into the target SIM card interface, and the other is an eSIM card associated with the target SIM card interface.
[0007] In this solution, during the switching process between the eSIM card and the physical SIM card, the network logo of the corresponding SIM interface remains displayed on the UI interface, so that the UI interface is unaware of the switching process, thereby improving the user's product experience.
[0008] In a possible implementation of the first aspect, in response to a selection operation on a second setting item in the first interface, a second interface is displayed, including: in response to the selection operation, a card status message of a target SIM card interface is intercepted, and the second interface is displayed. The card status message indicates the recognition or card drop of a SIM card corresponding to the target SIM card interface, and is used to update the network identifier corresponding to the target SIM card interface displayed by the electronic device. Specifically, if the card status message indicates that the SIM card corresponding to the target SIM card interface is recognized, the electronic device normally displays the network identifier corresponding to the target SIM card interface. If the card status message indicates that the SIM card corresponding to the target SIM card interface is dropped, the electronic device does not display the network identifier corresponding to the target SIM card interface.
[0009] In a possible implementation of the first aspect, one or more SIM card interfaces are at least two SIM card interfaces, and the at least two SIM card interfaces include a target SIM card interface. The method further includes: the data service of the electronic device is currently carried by the first SIM card corresponding to the target SIM card interface, and in response to the selection operation, after intercepting the card status message of the target SIM card interface, the data service of the electronic device is carried by the second SIM card corresponding to the target SIM card interface. In this scheme, after intercepting the card status message of the target SIM card interface, the SIM card management module cannot receive the card status message, and it is also impossible to determine whether the SIM in the target SIM card interface is out of the card. Then, the SIM card management module also considers that the SIM card in the target SIM card interface is in normal use. As a result, the electronic device will not switch the data service to be carried by the SIM card corresponding to other SIM card interfaces.
[0010] In a possible implementation manner of the first aspect, in response to a selection operation, intercepting a card status message of a target SIM card interface includes: in response to the selection operation, generating a SIM switching message of the target SIM card interface, and intercepting the card status message of the target SIM card interface based on the SIM switching message.
[0011] In a possible implementation of the first aspect, the method further includes: after the target SIM card interface successfully switches the SIM card, the card status message of the target SIM card interface is not intercepted. Thus, when the UI interface actively queries the card status message of the target SIM card interface, the card status message of the target SIM card interface can be reported to the UI interface. The UI interface can display the network identification of the target SIM card interface according to the card identification of the SIM card in the queried target SIM card interface.
[0012] In a possible implementation of the first aspect, intercepting a card status message of a target SIM card interface based on a SIM switching message includes: based on the SIM switching message, setting a first flag bit of the target SIM card interface to a first preset value; wherein the first flag bit is a first preset value indicating that the target SIM card interface is switching SIM cards. After receiving the card status message of the target SIM card interface, the first flag bit is read as the first preset value, and the card status message of the target SIM card interface is intercepted. In this solution, by setting a preset value for the flag bit of the target SIM card interface when receiving the SIM switching message, in the subsequent process, once the card status message is received, the preset value corresponding to the flag bit is read, and the card status information is intercepted according to the operation indicated by the preset value.
[0013] In a possible implementation of the first aspect, the method further includes: based on a SIM switching message, powering off the first SIM card; wherein the powering off of the first SIM card triggers a card status message indicating that the first SIM card has been dropped. Specifically, the card status message of the target SIM card interface may indicate that the first SIM card or the second SIM card in the target SIM card interface has been dropped or recognized. In response to the successful powering off of the first SIM card, the SIM card corresponding to the target SIM card interface is switched to be used to power on the second SIM card. In response to the successful powering on of the second SIM card, the card status message of the target SIM card interface is not intercepted. In the process from powering off the first SIM to powering on the second SIM card, the electronic device displays the network identifier corresponding to the target SIM card interface. In this solution, after the power-on is successful, the card status message of the target SIM card interface is no longer intercepted, so that the UI interface can normally query the card status of the SIM card in the target SIM card interface.
[0014] In a possible implementation of the first aspect, in response to the second SIM card being powered on successfully, not intercepting the card status message of the target SIM card interface includes: in response to the second SIM card being powered on successfully, setting the first flag bit of the target SIM card interface to a second preset value. After receiving the card status message of the target SIM card interface, if the first flag bit is read as the second preset value, the card status message of the target SIM card interface is not intercepted. In this solution, the preset value is set for the flag bit of the target SIM card interface when the second SIM card is powered on successfully, so that in the subsequent process, once the card status message is received, the preset value corresponding to the flag bit is read, and the card status information is not intercepted according to the operation indicated by the preset value.
[0015] In a possible implementation of the first aspect, the network identifier corresponding to the target SIM card interface in the first interface is a first network identifier, and the first network identifier corresponds to the first SIM card. The network identifier corresponding to the target SIM card interface in the second interface is a second network identifier, and the second network identifier corresponds to the second SIM card. In this solution, the card type of the SIM card being used can be distinguished in the UI interface according to different network identifiers.
[0016] In a second aspect, an electronic device is provided, comprising: a processor, a memory, and one or more SIM card interfaces; the memory and the one or more SIM card interfaces are respectively coupled to the processor. The one or more SIM card interfaces are used to insert a physical SIM card. The electronic device also includes one or more eSIM cards, each eSIM card corresponding to a SIM card interface. The memory is used to store computer-executable instructions, and when the electronic device is running, the processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the user identification module SIM card switching method as described in any one of the first aspects above.
[0017] In a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed, the computer can execute the user identification module SIM card switching method of any one of the first aspect or the second aspect.
[0018] In a fourth aspect, a computer program product comprising instructions is provided, which, when executed on an electronic device, enables the electronic device to execute the method for switching a subscriber identity module (SIM) card according to any one of the first aspect or the second aspect.
[0019] In a fifth aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting an electronic device to implement the functions involved in the first aspect above. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
[0020] Among them, the technical effects brought about by any design method in the second to fifth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1A A schematic diagram of the operation flow of switching SIM cards of a mobile phone provided in an embodiment of the present application;
[0022] Figure 1BA schematic diagram of a UI interface during a process of switching a physical SIM card to an eSIM card provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of the software and hardware structure of a mobile phone provided in an embodiment of the present application;
[0024] Figure 3 A schematic diagram of the interaction process of various modules of a mobile phone in a scenario of switching SIM cards provided in an embodiment of the present application;
[0025] Figure 4 A schematic diagram of the interaction process of various modules of a mobile phone in another scenario of switching SIM cards provided in an embodiment of the present application;
[0026] Figure 5 A schematic diagram of the interaction process of various modules of a mobile phone for intercepting a card status message in a scenario of switching SIM cards provided in an embodiment of the present application;
[0027] Figure 6 A schematic diagram of a mobile phone interface provided in an embodiment of the present application;
[0028] Figure 7 A schematic diagram of another mobile phone interface provided in an embodiment of the present application;
[0029] Figure 8 A schematic diagram of another mobile phone interface provided in an embodiment of the present application;
[0030] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0031] Fig.10 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The following terms "first", "second", etc. are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features.
[0033] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0034] First, a brief description of the technical terms that may be involved in this application is given.
[0035] A modem includes a modulator and a demodulator, which can translate the computer's digital signals into analog signals that can be transmitted along ordinary telephone lines. These analog signals can be received by another modem at the other end of the line and translated into a language that the computer can understand.
[0036] Radio interface layer (RIL), in Android TM In the platform, RIL is located between the framework layer and the modem. RIL can also be called QCRIL (Qualcomm Radio Interface Layer) in other platforms. The platform can also provide an interface (Qualcomm Modem Interface, QMI) for communicating with the modem.
[0037] A SIM card is an integrated circuit card used to store and manage user information of mobile communication devices.
[0038] An eSIM card is an embedded SIM card. An eSIM card does not need to be inserted into a device like a traditional SIM card, but can be downloaded to the device via the network. In the embodiments of the present application, in order to distinguish between a traditional physical SIM card and an eSIM card, the physical SIM card is referred to as a physical SIM card.
[0039] Some electronic devices support eSIM cards, while some do not. Electronic devices support eSIM cards, specifically meaning that some card slots of the electronic device (the card slots correspond to the SIM card interfaces of the electronic device) support not only physical SIM cards but also eSIM cards. For this card slot, only one SIM card can be enabled at the same time, that is, only one SIM card can be activated for use. The SIM card used in this card slot can be a physical SIM card or an eSIM card. In some scenarios, users can choose to switch the SIM card currently used in the card slot from a physical SIM card to an eSIM card. In other scenarios, users can also choose to switch the SIM card currently used in the card slot from an eSIM card to a physical SIM card.
[0040] In the process of switching between the physical SIM card and the eSIM card, the SIM card to be switched needs to be powered off first, and then the switched SIM card is powered on after the switching is completed. The powering off of the SIM card will cause the SIM card to switch from the card recognition state (also called the card recognition state) to the card drop state (also called the card drop state), causing the card state of the SIM card interface corresponding to the SIM card to change to the card drop state, and further causing the card state icon corresponding to the SIM card interface of the user interface to also change to the icon corresponding to the card drop state.
[0041] Powering on the SIM card will change the SIM card from dropped to recognized, causing the card status of the SIM card interface corresponding to the SIM card to change to recognized, and then causing the card status icon corresponding to the SIM card interface in the user interface to also change to the icon corresponding to recognized. Therefore, powering off and on the SIM card will cause the card status of the corresponding SIM card interface to change (recognize card → drop card → recognize card), and then causing the card status icon corresponding to the SIM card interface in the UI interface to change. Frequent icon changes on the UI interface in a short period of time affect the product experience.
[0042] Take the mobile phone as an example, Figure 1A The figure shows a scenario where the user selects to trigger the card switching. The mobile phone 1 can display Figure 1A The main interface 100 is shown. Figure 1A As shown in a, the main interface 100 includes application icons of applications such as "clock", "calendar", "gallery", "memo", etc., and "settings". In response to the user's triggering operation on the "settings" application icon in the main interface 100, the mobile phone 1 enters the setting application and displays the setting application interface 102.
[0043] Depend on Figure 1A As shown in FIG. 1 , the setting application interface 102 may include multiple setting items, such as WLAN, Bluetooth, SIM card management, and mobile network setting items. In response to the user selecting the SIM card management setting item 103 in the setting application interface 102, the mobile phone 1 may enter Figure 1A The SIM card management interface 104 shown in c.
[0044] Depend on Figure 1A As shown in FIG. 3 , the SIM card management interface 104 includes the setting items of the SIM card corresponding to the SIM card interface in the mobile phone. The user can select the card slot to be used in the SIM card management interface 104. Figure 1A As shown in the interface, Figure 1AThe mobile phone 1 shown includes two card slots (card slot 1 and card slot 2), supporting the use of dual cards at the same time. In addition, card slot 1 currently uses a physical SIM card, and card slot 2 also uses a physical SIM card. Assume that card slot 2 (i.e., card 2 shown in the interface of mobile phone 1) supports not only physical SIM cards but also eSIM cards; then card slot 2 supports switching between physical SIM cards and eSIM cards.
[0045] Mobile phone 1 responds to the user's Figure 1A The triggering operation of the submenu setting item 105 of the card slot 2 shown in c can display the submenu interface 106 of the card slot 2. The submenu interface 106 includes the setting items of the SIM card corresponding to the card slot 2 in the mobile phone. It can be understood that in other embodiments, the card slot 1 of the mobile phone 1 (i.e., the card 1 shown in the interface of the mobile phone 1) can also support the switching of the physical SIM card and the eSIM card. Alternatively, the mobile phone 1 can also only support a single card, and the single card slot supports the switching of the physical SIM card and the eSIM card.
[0046] Depend on Figure 1A As shown in d, in the submenu interface 106 of the card slot 2, two SIM cards that the card slot 2 supports switching are displayed. The SIM card currently used in the card slot 2 is a physical SIM card. At this time, the status bar of the submenu interface 106 displays the network identifier 108 corresponding to the card slot 1 and the network identifier 109 corresponding to the card slot 2. Among them, the network identifier displayed in the status bar indicates that the physical SIM card or eSIM card in the corresponding SIM card interface is powered on. Figure 1A It can be seen that the network logo 109 corresponding to the card slot 2 is displayed in the status bar of the submenu interface 106, and the physical SIM card in the card slot 2 is powered on. In response to the user's triggering operation of the setting item 107 corresponding to the eSIM card in the submenu interface 106 of the card slot 2, the mobile phone 1 switches the SIM card used in the card slot 2 from the physical SIM card to the eSIM card.
[0047] Specifically, after the user selects the eSIM card in the submenu interface 106 of slot 2, the mobile phone 1 will respond to the operation by first powering off the SIM card (such as a physical SIM card) currently used in slot 2, and then powering on the SIM card (such as an eSIM card) selected by the user.
[0048] Since the physical SIM card is powered off, the physical SIM card changes from being recognized to being dropped, causing the card status of the card slot 2 corresponding to the physical SIM card to change to being dropped, and then causing the network logo corresponding to the card slot 2 to also change to the icon corresponding to the dropped card. The icon corresponding to the dropped card displayed here may refer to a blank display, that is, the corresponding network logo is not displayed. Since the eSIM card is powered on, the eSIM card changes to being recognized, causing the card status of the card slot 2 corresponding to the eSIM card to change to being recognized, and then causing the network logo corresponding to the card slot 2 to also change to the icon corresponding to being recognized, that is, the corresponding network logo is displayed.
[0049] Depend on Figure 1A As shown in e, at this time, the status bar of the submenu interface 106 of the card position 2 only displays the network logo 108 corresponding to the card position 1, and does not display the network logo corresponding to the card position 2. Figure 1A As shown in figure f, at this time, the status bar of the submenu interface 106 of slot 2 displays the network logo 108 corresponding to slot 1 and the network logo 109 corresponding to slot 2. Since the process from powering off the physical SIM card to powering on the eSIM card is very short, the network logo corresponding to slot 2 in the status bar of the mobile phone 1 will be displayed, disappear briefly, and then displayed again, affecting the product experience.
[0050] In response to the user's triggering operation of exiting the setting item in the submenu interface 106 of the card slot 2, the mobile phone 1 can re-enter the SIM card management interface 110. Figure 1A As shown in g, the SIM card currently used in card slot 2 is an eSIM card.
[0051] It should be noted that Figure 1A The process shown is only one implementation method for a user to select a SIM card to be switched. In other embodiments, the user may also switch the SIM card to be used in other ways.
[0052] See also Figure 1B , shows another schematic diagram of the UI interface during the process of switching from a physical SIM card to an eSIM card. Figure 1B As shown in a, in response to the user's selection operation of the eSIM card setting item 107 in the submenu interface 106 of the card slot 2, the mobile phone 1 displays the following Figure 1B The submenu interface 106 of card slot 2 shown in b. Since the physical SIM card is powered off, a prompt message 111 may be displayed in the status bar of the submenu interface 106, prompting the user that "SIM card is not inserted". After the eSIM card is powered on, the prompt message 111 is no longer displayed. Figure 1B For a description of c, see Figure 1ATherefore, during the process of switching from a physical SIM card to an eSIM card, displaying prompt information will affect the user's experience of using the mobile phone.
[0053] Please refer to Figure 2 , which shows the software and hardware architecture of the mobile phone 1 in some embodiments, including several modules that may be involved in the process of switching the SIM card in the mobile phone 1. Figure 2 In the embodiment, the software architecture of the mobile phone 1 is divided into an application layer and a middle layer.
[0054] The application layer may include a series of application packages. The application programs that may be involved in the embodiments of the present application include a SIM card management module. It can be understood that in other embodiments, the SIM card management module may also be a submodule of the setting application.
[0055] The middle layer may include QCRIL, QMI, SIM card interface 1 and SIM card interface 2. It can be understood that the SIM card interface 1 and SIM card interface 2 of the middle layer are software interfaces corresponding to two card slots of the mobile phone 1 respectively. Figure 2 In the example shown, mobile phone 1 supports the simultaneous use of dual SIM cards.
[0056] The hardware layer includes a SIM card interface 1, a SIM card interface 2, an eSIM card, and a modem. The SIM card interface 1 and the SIM card interface 2 respectively support the insertion of a physical SIM card. In other embodiments, when the mobile phone 1 only supports the use of a single card at the same time, the intermediate layer and the hardware layer may also include a SIM card interface. For ease of distinction, in the embodiment of the present application, the SIM card interface of the intermediate layer is recorded as SIM card interface 1 (software) and SIM card interface 2 (software), and the SIM card interface of the hardware layer is recorded as SIM card interface 1 (hardware) and SIM card interface 2 (hardware). The SIM card interface 2 (software) supports the physical SIM card inserted into the eSIM card and the SIM card interface 2 (hardware).
[0057] In some embodiments, the card slot 2 of the mobile phone 1 supports physical SIM cards and eSIM cards, but only physical SIM cards or eSIM cards can be activated at the same time. Exemplarily, a switch is provided corresponding to the card slot 2, which can connect the modem to the SIM card interface 2 (hardware) or to the eSIM card.
[0058] Specifically, when the SIM card selected for use in card slot 2 is a physical SIM card, the switch connects the modem to the SIM card interface 2 (hardware). In this way, the hardware circuit between the modem and the SIM card interface 2 (hardware) is connected, and the hardware circuit between the modem and the eSIM card is disconnected. In other words, the power-on circuit of the SIM card interface 2 (software) of the mobile phone 1 is connected to the SIM card interface 2 (hardware).
[0059] When the SIM card selected for use in card slot 2 is an eSIM card, the switch connects the modem to the eSIM card. In this way, the hardware circuit between the modem and the eSIM card is connected, and the hardware circuit between the modem and the SIM card interface 2 (hardware) is disconnected. In other words, the power-on circuit of the SIM card interface 2 (software) of the mobile phone 1 is connected to the eSIM card.
[0060] See also Figure 3 , Figure 3 The flowchart shows the process in which the mobile phone 1 switches the SIM card in response to the user operation, and the card status report causes the network identification of the mobile phone UI interface to change. Among them, the UI interface can be Figure 1A The SIM card management interface 104 is shown. The user can choose to switch SIM cards on this UI interface.
[0061] The SIM card management module of the mobile phone can detect the operation of switching SIM cards triggered by the user in the UI interface. After detecting the operation of switching SIM cards, the SIM card management module sends a SIM card switching instruction (SIM switching message) to the QCRIL. Figure 1A Taking the operation process shown as an example, the SIM card switching instruction is specifically used to instruct the SIM card used in the card slot 2 to switch from a physical SIM card to an eSIM card. Of course, the SIM card switching instruction can also be used to instruct the SIM card used in the card slot 2 to switch from an eSIM card to a physical SIM card, which is not limited in this embodiment of the present application.
[0062] After receiving the SIM card switching instruction (SIM switching message), the QCRIL responds to the SIM switching message and powers off the physical SIM card. Specifically, the QMI sends the physical SIM card power-off instruction to the modem, and the modem powers off the physical SIM card after receiving the power-off instruction. It can be understood that Figure 1A In the process shown, in this step, the modem specifically powers off the physical SIM card used in slot 2. After the physical SIM card is successfully powered off, the modem returns feedback information indicating that the physical SIM card is successfully powered off through the QMI.
[0063] After the physical SIM card is powered off successfully, the modem detects that the card status of the card slot has changed, and will report the card status to QCRIL through QMI. In this example, since the physical SIM card in the card slot is powered off and the physical SIM card in the card slot is dropped, the card status of the card slot is absent. Afterwards, QCRIL can report the card status to the SIM card management module, and the SIM card management module can update the network identifier corresponding to the card slot on the UI interface, that is, display the network identifier corresponding to the absent status, that is, display the network identifier corresponding to the dropped card. Figure 1A As shown in e.
[0064] At the same time, after QCRIL receives the SIM card switching instruction, QCRIL sends a switch switching instruction between the physical SIM card and the eSIM card to the modem through QMI. In response to the switch switching instruction, the modem switches the SIM card and connects the hardware circuit of the corresponding SIM card. Figure 1A In the illustrated process, the user chooses to switch the physical SIM card in slot 2 to an eSIM card. Accordingly, after the modem receives the switch switching instruction sent by QCRIL through QMI, it parses and obtains the switch switching instruction indicating the switch from the physical SIM card to the eSIM card. In response to the switch switching instruction, the modem disconnects the hardware circuit between the modem and the SIM card interface 2 (hardware) and connects the hardware circuit between the modem and the eSIM card by adjusting the switch position. Afterwards, when the modem powers on the SIM card to be used in slot 2, it can power on the eSIM card by calling the SIM card interface 2 (software).
[0065] Similarly, after completing the switch between the physical SIM card and the eSIM card, the modem will return feedback information of successful switch to QCRIL through QMI.
[0066] It should be noted that, in some embodiments, the steps of QCRIL sending a physical SIM card power-off instruction to the modem through QMI and QCRIL sending a physical SIM card and eSIM card switch instruction to the modem through QMI can be executed in parallel.
[0067] After that, QCRIL sends the eSIM card power-on command to the modem through QMI. The modem responds to the power-on command and powers on the eSIM card. After the eSIM card is successfully powered on, the modem returns feedback information to QCRIL through QMI that the eSIM card is successfully powered on. At this point, the mobile phone has completed the process of switching from a physical SIM card to an eSIM card. After that, the mobile phone can display on the UI interface that the SIM card used in slot 2 is an eSIM card, such as Figure 1A The SIM card management interface 110 is shown.
[0068] At this time, after the eSIM card is powered on successfully, the modem detects that the card status of slot 2 has changed, and will report the card status of slot 2 to QCRIL through QMI. In this example, since the eSIM card in slot 2 is powered on, the eSIM card in the slot becomes a recognized card, and the card status of the slot is in place (present). Afterwards, QCRIL can report the card status to the SIM card management module, and the SIM card management module can update the network identifier corresponding to the slot on the UI interface, that is, display the network identifier corresponding to the in place state, that is, display the network identifier corresponding to the recognized card. Figure 1A As shown in f.
[0069] In some embodiments, when the mobile phone 1 includes at least two slots, and one of the slots is associated with an eSIM card, the example in which slot 1 supports physical SIM cards, slot 2 supports physical SIM cards and eSIM cards, and slot 2 is currently using a physical SIM card is used for illustration. If the data service of the mobile phone 1 is currently carried by the physical SIM card in slot 2, in the process of switching the physical SIM card in slot 2 to an eSIM card, the data service of the mobile phone 1 will be switched to be carried by the physical SIM card corresponding to slot 1.
[0070] See also Figure 4 , Figure 4 It shows the process in which the mobile phone 1 switches the SIM card in response to the user operation, and the card status reporting causes the data service to switch to the physical SIM card corresponding to the card slot 1.
[0071] The SIM card management module of the mobile phone can detect the operation of switching SIM cards triggered by the user in the UI interface. After detecting the operation of switching SIM cards, the SIM card management module sends a SIM card switching instruction to the QCRIL, which is specifically used to instruct the SIM card used in card slot 2 to switch from a physical SIM card to an eSIM card.
[0072] After QCRIL receives the SIM card switching instruction, the steps for powering off the physical SIM card can refer to the above Figure 3 The detailed description of the steps for powering off the physical SIM card is omitted here.
[0073] After the physical SIM card is powered off successfully, the modem detects that the card status of slot 2 has changed, and will report the card status of slot 2 to QCRIL through QMI. In this example, since the physical SIM card in the slot is powered off and the physical SIM card in the slot is dropped, the card status of the slot is vacant. Afterwards, QCRIL can report the card status to the SIM card management module. At this time, since the card status of the slot is vacant, the data service of mobile phone 1 is switched from the physical SIM card in slot 2 to the physical SIM card corresponding to slot 1.
[0074] At the same time, after QCRIL receives the SIM card switching instruction, QCRIL sends a switch instruction between the physical SIM card and the eSIM card to the modem through QMI. The modem responds to the switch instruction and switches the physical SIM card in slot 2 to the eSIM card and powers on the eSIM card. Figure 3 The specific description in will not be repeated here.
[0075] To summarize, in order to solve the problem that the network logo of the UI interface cannot be continuously displayed during the above-mentioned switching of SIM cards, and the problem that the SIM card carrying the data service may change, an embodiment of the present application provides a SIM card switching method, which can intercept the card status message during the switching of the SIM card, so that the network logo of the UI interface can be continuously displayed, and the SIM card carrying the data service will not be changed.
[0076] The SIM card switching method can be applied to an electronic device, which includes one or more SIM card interfaces. The one or more SIM card interfaces are used to insert a physical SIM card. A target SIM card interface in the one or more SIM card interfaces is associated with an embedded eSIM card.
[0077] In this method, the electronic device can always display the network identifier corresponding to the target SIM card interface during the process of switching the physical SIM card and the eSIM card for the target SIM card interface. With this solution, the problem of the SIM card display being dropped due to the power-off and power-on of the SIM card during the switching process will not occur. The switching of the physical SIM card and the eSIM card includes: switching the eSIM card from the physical SIM card, and switching the physical SIM card from the eSIM card.
[0078] Specifically, the electronic device may display a first interface. The first interface may be used to switch between the physical SIM card and the eSIM card. The first interface also includes a first setting item for the first SIM card and a second setting item for the second SIM card. The first setting item in the first interface indicates that the electronic device is using the first SIM card, and the second setting item in the first interface indicates that the second SIM card is not in use. That is, in the first interface, the user may trigger the electronic device to switch the first SIM card to the second SIM card.
[0079] Among the first SIM card and the second SIM card, one SIM card is a physical SIM card inserted into the target SIM card interface, and the other is an eSIM card associated with the target SIM card interface.
[0080] Afterwards, the electronic device may receive a selection operation of the user on the second setting item in the first interface. In response to the selection operation, the electronic device may display the second interface. The first setting item in the second interface indicates that the first SIM card is not in use, and the second setting item in the second interface indicates that the electronic device is using the second SIM card. That is, in response to the above selection operation, the electronic device has completed the switch from the first SIM card to the second SIM card.
[0081] It should be emphasized that both the first interface and the second interface include the network identifier corresponding to the target SIM card interface. In addition, when the electronic device switches from the first interface to the second interface, the electronic device will also display the network identifier corresponding to the target SIM card interface. With this solution, the problem of the SIM card display being dropped due to the power-off and power-on of the SIM card during the switching process will not occur.
[0082] In the following embodiments, the method provided in the embodiments of the present application is introduced by taking the above-mentioned first SIM card as a physical SIM card inserted into the target SIM card interface (such as the card slot 2 of the mobile phone) and the second SIM card as an eSIM card associated with the target SIM card interface as an example.
[0083] See also Figure 5 , Figure 5 The figure shows the interaction process of each module in intercepting the card status message in the process of mobile phone 1 responding to the user's operation to switch SIM cards. The SIM card management module of the mobile phone can detect the operation of switching SIM cards triggered by the user in the UI interface. This operation can refer to Figure 1A As shown in d, the selection operation of the setting item corresponding to the eSIM card. After detecting the operation of switching the SIM card, the SIM card management module can generate a SIM switching message for card slot 2 in response to the operation, and send a SIM card switching instruction to the QCRIL. The SIM card switching instruction is specifically used to instruct the SIM card used in card slot 2 to switch from a physical SIM card to an eSIM card.
[0084] After QCRIL receives the SIM card switching instruction, the steps for powering off the physical SIM card can refer to the above Figure 3 The detailed description of the steps for powering off the physical SIM card is omitted here.
[0085] After the physical SIM card is powered off successfully, the modem detects that the card status of the card slot 2 has changed, and will report the card status of the card slot 2 to the QCRIL through the QMI. Among them, the QCRIL can intercept the card status message corresponding to the card slot 2 based on the SIM switching message of the card slot 2. Therefore, when the QCRIL receives the card status message of the card slot 2 reported by the modem, it can intercept the card status message corresponding to the card slot 2.
[0086] Specifically, when QCRIL receives the SIM switching message, it sets the first flag bit of card position 2 to the first preset value. The first flag bit is the first preset value indicating that the SIM card is being switched at card position 2. Therefore, after QCRIL receives the card status message of card position 2 reported by the modem, it reads that the first flag bit is the first preset value, and then intercepts the card status message of card position 2. For example, the first preset value is set to 1. When QCRIL receives the SIM switching message, it sets the first flag bit of card position 2 to 1. At this time, if QCRIL receives the card status message of card position 2 reported by the modem, it intercepts the card status message of card position 2 by reading that the first flag bit is 1.
[0087] At the same time, after QCRIL receives the SIM card switching instruction, QCRIL sends a switch instruction between the physical SIM card and the eSIM card to the modem through QMI. The modem responds to the switch instruction and switches the physical SIM card in slot 2 to the eSIM card and powers on the eSIM card. Figure 3 The specific description in will not be repeated here.
[0088] After the physical SIM card and the eSIM card are successfully switched, QCRIL no longer intercepts the card status message of slot 2 reported by the modem. At this time, after the eSIM card is successfully powered on, the modem detects that the card status of slot 2 has changed, and will report the card status of slot 2 to QCRIL through QMI. After receiving the card status message of slot 2 reported by the modem, QCRIL sends the card status message to the UI interface.
[0089] Specifically, after the physical SIM card and the eSIM card are successfully switched, QCRIL sets the first flag bit of card position 2 to the second preset value. After receiving the card status message of card position 2 reported by the modem, QCRIL reads that the first flag bit is the second preset value, and does not intercept the card status message of the target SIM card interface. For example, the second preset value is set to 0. When QCRIL receives the SIM switching message, it sets the first flag bit of card position 2 from 1 to 0. At this time, if QCRIL receives the card status message of card position 2 reported by the modem, it does not intercept the card status message received by card position 2 by reading that the first flag bit is 0.
[0090] Therefore, during the switching between the physical SIM card and the eSIM card, or in the process of powering off the physical SIM card to powering on the eSIM card, QCRIL no longer continues to send the card status message of card slot 2 reported by medem to the UI interface, and the UI interface no longer receives the card status message of card slot 2. It will not obtain the card status change of card slot 2 based on the card status message of card slot 2, and will not change the network identifier corresponding to the displayed card status. That is, the network identifier corresponding to card slot 2 will always be displayed on the UI interface.
[0091] See also Figure 6 , Figure 6 A schematic diagram of a UI interface display in response to a switching operation between a physical SIM card and an eSIM card provided in an embodiment of the present application. Figure 6 As shown in a, in the submenu interface 106 of the displayed card slot 2, two SIM cards that the card slot 2 supports switching are displayed. Figure 6 The submenu interface 106 shown in a is the first interface. The submenu interface 106 includes a first setting item corresponding to the physical SIM card and a second setting item corresponding to the eSIM card. At this time, the first setting item corresponding to the physical SIM card indicates that the mobile phone 1 is using the physical SIM card, and the second setting item corresponding to the eSIM card indicates that the eSIM card is not in use. At this time, the status bar of the submenu interface 106 displays a network identifier 108 corresponding to the card position 1 and a network identifier 109 corresponding to the card position 2.
[0092] In response to the user's selection operation on the second setting item corresponding to the eSIM card, the mobile phone 1 displays the following Figure 6 The submenu interface 106 shown in b is shown in FIG. Figure 6 The submenu interface 106 shown in b is the second interface. The status bar of the submenu interface 106 displays a network identifier 108 corresponding to card position 1 and a network identifier 109 corresponding to card position 2. The submenu interface 106 also includes a first setting item corresponding to the physical SIM card and a second setting item corresponding to the SIM card. The first setting item in the submenu interface 106 indicates that the physical SIM card is not in use, and the second setting item in the submenu interface 106 indicates that the mobile phone 1 is using an eSIM card.
[0093] Among them, in response to the above selection operation, the mobile phone 1 can intercept the card status message of the card slot 2, and then display the above second interface. Intercepting the card status message of the card slot 2 means intercepting the message that can indicate the recognition or card drop of the SIM card corresponding to the card slot 2. The recognition or card drop of the SIM card corresponding to the card slot 2 can be used to update the network identification corresponding to the card slot 2 displayed by the mobile phone 1. Specifically, if the SIM card corresponding to the card slot 2 is recognized, the mobile phone 1 displays the network identification corresponding to the card slot 2. If the SIM card corresponding to the card slot 2 is dropped, the mobile phone 1 no longer displays the network identification corresponding to the card slot 2.
[0094] In response to the above selection operation, the mobile phone 1 can generate a SIM switching message for the card slot 2, and intercept the card status message for the card slot 2 based on the SIM switching message.
[0095] In response to the user's triggering operation of exiting the setting item in the submenu interface 106 of the card slot 2, the mobile phone 1 can re-enter the SIM card management interface 110. Figure 6 As shown in c, the SIM card currently used in card slot 2 is an eSIM card.
[0096] Depend on Figure 6 It can be seen that in mobile phone 2 Figure 6 The submenu interface 106 (first interface) shown in a is switched to Figure 6 During the submenu interface 106 (second interface) shown in b, the mobile phone 1 displays the network logo 109 corresponding to the card position 2.
[0097] In the embodiment of the present application, when the mobile phone 1 includes at least two card slots, and one of the card slots is associated with an eSIM card. Take the case where card slot 1 supports physical SIM cards, card slot 2 supports physical SIM cards and eSIM cards, and card slot 2 is currently using a physical SIM card as an example for explanation. If the data service of the mobile phone 1 is currently carried by the first SIM card corresponding to card slot 2, the mobile phone 1 responds to the selection operation of the second setting item corresponding to the above-mentioned eSIM card, and after intercepting the card status message of card slot 2, the data service of the electronic device can continue to be carried by the second SIM card corresponding to card slot 2. Among them, after intercepting the card status message of the target SIM card interface, the SIM card management module cannot receive the card status message, and it is impossible to determine whether the SIM in the target SIM card interface is out of the card, then the SIM card management module also believes that the SIM card in the target SIM card interface is in normal use. As a result, the electronic device will not switch the data service to be carried by the SIM card corresponding to other SIM card interfaces.
[0098] It should be noted that the above embodiment only takes the switching of a physical SIM card to an eSIM card as an example to introduce the SIM card switching method provided in the embodiment of the present application. The SIM card switching method provided in the embodiment of the present application can also be applied to the process of switching an eSIM card to a physical SIM card.
[0099] In some embodiments, the network identifier corresponding to the target SIM card interface (such as card position 2) displayed in the first interface may be different from the network identifier corresponding to the target SIM card interface (such as card position 2) displayed in the second interface. When the electronic device displays the first interface, the first SIM card (such as a physical SIM card) is used. Therefore, the network identifier in the first interface (referred to as the first network identifier) may correspond to the first SIM card. When the electronic device displays the second interface, the second SIM card (such as an eSIM card) is used. Therefore, the network identifier in the second interface (referred to as the second network identifier) may correspond to the second SIM card.
[0100] See also Figure 7 , Figure 7 Another embodiment of the present application provides a schematic diagram of a UI interface display in response to a physical SIM card and an eSIM card switching operation. Figure 7 As shown in a, in the submenu interface 106 of slot 2, two SIM cards that slot 2 supports switching are displayed. At this time, the first setting item corresponding to the physical SIM card indicates that the mobile phone 1 is using the physical SIM card, and the second setting item corresponding to the eSIM card indicates that the eSIM card is not in use. At this time, the status bar of the submenu interface 106 displays the network identifier 108 corresponding to slot 1 and the network identifier 701 corresponding to slot 2. Among them, the network identifier 701 corresponding to slot 2 can correspond to the physical SIM card and be set as the first network identifier. For example, Figure 7 As shown in a, the network identifier 701 may include the word "SIM", indicating that it corresponds to a physical SIM card, prompting the user that the mobile phone 1 is using the physical SIM card.
[0101] In response to the user's selection operation of the second setting item corresponding to the eSIM card, the mobile phone 1 displays the following Figure 7 The submenu interface 106 shown in b. The status bar of the submenu interface 106 displays the network identifier 108 corresponding to the card slot 1 and the network identifier 702 corresponding to the card slot 2. The first setting item in the submenu interface 106 indicates that the physical SIM card is not in use, and the second setting item in the submenu interface 106 indicates that the mobile phone 1 is using the eSIM card. The network identifier 702 corresponding to the card slot 2 can correspond to the eSIM card and be set as the second network identifier. For example, Figure 7 As shown in b, the network identifier 702 may include the word "eSIM", indicating that it corresponds to an eSIM card, prompting the user that the mobile phone 1 is using the eSIM card.
[0102] The display portion of the first network identifier and the second network identifier indicating the corresponding physical SIM card or eSIM card can be customized. Figure 7 Just an example.
[0103] In response to the user's triggering operation of exiting the setting item in the submenu interface 106 of the card slot 2, the mobile phone 1 can re-enter the SIM card management interface 110. Figure 7 As shown in c, the SIM card currently used in card slot 2 is an eSIM card.
[0104] Depend on Figure 7 It can be seen that in mobile phone 2 Figure 7 The submenu interface 106 shown in a is switched to Figure 7 During the submenu interface 106 shown in b, the mobile phone 1 displays the network identifier corresponding to the card slot 2, and the card type of the SIM card being used by the mobile phone 1 can be distinguished in the UI interface according to the network identifier.
[0105] In the process of switching between the physical SIM card and the eSIM card, the display time of the first network identifier and the second network identifier can be set to explain how the UI interface keeps displaying the network identifier corresponding to the card position 2. Figure 5 As shown in the following description, Figure 5 As shown, it is assumed that the time when QCRIL sends a power-off instruction for the physical SIM card to the modem in response to the switching instruction of card position 2 is t1; it is assumed that the modem successfully powers off the physical SIM card, and the time when it sends feedback information of successful power-off of the physical SIM card to QCRIL is t2; it is assumed that the switch between the physical SIM card and the eSIM card is successfully switched, and the time when it sends feedback information of successful switch switching to QCRIL is t3; it is assumed that the modem successfully powers off the eSIM card, and the time when it sends feedback information of successful power-on of the eSIM card to QCRIL is t4.
[0106] Among them, before receiving the switching message (i.e. before t1), the UI interface displays the first network identifier; in response to the switching message, starting at time t1, QCRIL triggers the UI interface to display the second network identifier. Or, before the physical SIM card is successfully powered off (i.e. before t2), the UI interface displays the first network identifier; in response to the feedback information of the successful power-off of the physical SIM card, starting at time t2, QCRIL triggers the UI interface to display the second network identifier. Or, before the physical SIM card and the eSIM card are not successfully switched (i.e. before t3), the UI interface displays the first network identifier; in response to the feedback information of the successful switch switching, starting at time t3, QCRIL triggers the UI interface to display the second network identifier. Or, before the eSIM card is successfully powered on (i.e. before t4), the UI interface displays the first network identifier; in response to the feedback information of the successful power-on of the eSIM card, starting at time t4, QCRIL triggers the UI interface to display the second network identifier. Therefore, during the switching process between the physical SIM card and the eSIM card, the network identifier displayed on the UI interface changes from the first network identifier to the second network identifier, and the network identifier corresponding to the card position 2 may also be kept displayed.
[0107] In some embodiments, if the data service of the current mobile phone 1 is carried by the physical SIM card corresponding to the card slot 2, in the process of switching the physical SIM card in the card slot 2 to the eSIM card, QCRIL can also automatically obtain the data flow limit of the eSIM card after intercepting the card status message of the modem. Among them, the data flow limit here can be set by the user according to the needs and stored in the mobile phone. If the mobile phone 1 determines that the eSIM card has reached the data flow limit, the data service can be changed to be carried by the SIM card where the card slot 1 is located, so as to avoid continuing to use the eSIM card to carry data services and exceeding the data flow limit of the eSIM card.
[0108] In some embodiments, Figure 8 As shown, after automatically obtaining the data flow limit of the eSIM card, mobile phone 1 can also display a prompt message 801 in the interface of mobile phone 1, asking the user whether to switch the data service main card to the physical SIM card corresponding to card position 1 through the prompt message. The data service main card here is the SIM card that carries the data service of the mobile phone. The user can choose whether to switch the data service main card to the physical SIM card corresponding to card position 1 by selecting the button "Yes" 802 or the button "No" 803. In this way, the switching of the data service main card can better meet the needs of the user.
[0109] In the technical solution provided in the embodiment of the present application, during the switching process between the physical SIM card and the eSIM card of the target SIM card interface, the card status message can be intercepted and not reported to the UI interface, so that the UI interface keeps displaying the network identifier of the target SIM card interface, so that the UI interface is unaware of the physical card and eSIM switching process. Also, when the current data service is carried by the SIM card in the target SIM card interface, the data service is prevented from switching to the SIM card corresponding to another SIM card interface.
[0110] The method proposed in this application can be applied to any electronic device that supports physical SIM cards and eSIM cards. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a personal computer (PC), a smart screen, an artificial intelligence (AI) speaker, a car machine device, a wearable terminal device such as a smart watch, or various teaching aids (such as learning machines, early education machines), smart toys, portable robots, personal digital assistants (PDA), augmented reality (AR) devices, virtual reality (VR) devices, etc. It can also be a device with mobile office functions, a device with smart home functions, a device with audio and video entertainment functions, a device that supports smart travel, etc. It should be understood that the embodiments of this application do not limit the specific technology and specific device form adopted by the terminal device.
[0111] like Fig. 9 The figure shows a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Exemplarily, the electronic device may be the mobile phone 1 mentioned above. 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 sensor module 180, a button 190, a motor 191, a camera 192, a display screen 193, and a SIM card interface 194, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, etc.
[0112] 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.
[0113] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. For example, the processor 110 is used to execute the power-on method of the SIM card in the embodiment of the present application.
[0114] 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.
[0115] 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.
[0116] The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device.
[0117] The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120.
[0118] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes the instructions stored in the internal memory 121 to perform various functional applications and data processing of the electronic device 100.
[0119] 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.
[0120] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
[0121] 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 power the processor 110, the internal memory 121, the external memory, the display screen 193, the camera 192, and the wireless communication module 160.
[0122] In some other embodiments, the power management module 141 may also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
[0123] 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, and the modem processor.
[0124] 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.
[0125] 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, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
[0126] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as 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 the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0127] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0128] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170 and the application processor.
[0129] The audio module 170 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio inputs into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0130] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 193. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 193, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A.
[0131] The touch sensor 180B is also called a "touch panel". The touch sensor 180B can be arranged on the display screen 193, and the touch sensor 180B and the display screen 193 form a touch screen, also called a "touch screen". The touch sensor 180B is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 193. In other embodiments, the touch sensor 180B can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 193.
[0132] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0133] 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.
[0134] The camera 192 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 192, where N is a positive integer greater than 1.
[0135] The electronic device 100 implements the display function through a GPU, a display screen 193, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 193 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.
[0136] The display screen 193 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 193 , where N is a positive integer greater than 1.
[0137] The SIM card interface 194 is used to connect a SIM card. The physical SIM card can be inserted into or removed from the SIM card interface 194 to connect or disconnect the physical SIM card and the electronic device 100. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
[0138] In some embodiments, the electronic device 100 may use an eSIM card 195. For example, a software interface of a card slot in the electronic device 100 supports both a physical SIM card and an eSIM card. The SIM card interface 194 corresponding to the software interface of the card slot and the eSIM card 195 share a switch connected to the processor 110. The electronic device 100 may support one or more eSIM cards.
[0139] The SIM card switching methods in the above embodiments can all be implemented in the electronic device 100 having the above hardware structure.
[0140] Some other embodiments of the present application provide an electronic device (such as a mobile phone 1). The electronic device may include: one or more SIM card interfaces, a memory and one or more processors. The memory and a plurality of SIM card interfaces are coupled to the processors respectively. The one or more card interfaces are used to insert and connect a physical SIM card. The electronic device also includes one or more eSIM cards, each eSIM card corresponding to a SIM card interface. The memory is also used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device can execute the various functions or steps performed by the mobile phone in the above method embodiment. The structure of the electronic device can refer to Fig. 9 The structure of the electronic device 100 is shown.
[0141] In some embodiments, the processing of the electronic device includes a modem. One or more SIM card interfaces are coupled to the modem. The modem is used to power on / off the physical SIM card and / or the eSIM card.
[0142] The present application also provides a chip system, such as Fig.10As shown, the chip system 120 includes at least one processor 1201 and at least one interface circuit 1202. The processor 1201 and the interface circuit 1202 can be interconnected through lines. For example, the interface circuit 1202 can be used to receive signals from other devices (such as a computer's memory). For another example, the interface circuit 1202 can be used to send signals to other devices (such as processor 1201). Exemplarily, the interface circuit 1202 can read instructions stored in the memory and send the instructions to the processor 1201. When the instruction is executed by the processor 1201, the computer can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0143] 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 (such as a mobile phone), the electronic device executes each function or step executed by the mobile phone in the above-mentioned method embodiment.
[0144] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the mobile phone in the above method embodiment. The computer may be an electronic device, such as a mobile phone.
[0145] 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.
[0146] 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 modules or units is only a logical function division, and 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.
[0147] 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.
[0148] 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.
[0149] 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 various embodiments 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.
[0150] 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 switching a subscriber identity module (SIM) card, characterized in that: The method is applied to an electronic device, the electronic device includes one or more SIM card interfaces, the one or more SIM card interfaces are used to insert a physical SIM card, and a target SIM card interface among the one or more SIM card interfaces is associated with an embedded eSIM card. The method includes: Displaying a first interface, the first interface including a network identifier corresponding to the target SIM card interface, the first interface also including a first setting item and a second setting item, the first setting item in the first interface indicating that the electronic device is using the first SIM card, and the second setting item in the first interface indicating that the second SIM card is not in use; one of the first SIM card and the second SIM card is a physical SIM card inserted into the target SIM card interface, and the other is an eSIM card associated with the target SIM card interface; In response to a selection operation of a second setting item in the first interface, a second interface is displayed, wherein the second interface includes a network identifier corresponding to the target SIM card interface; the first setting item in the second interface indicates that the first SIM card is not in use, and the second setting item in the second interface indicates that the electronic device is using the second SIM card; Wherein, during the process of the electronic device switching from the first interface to the second interface, the electronic device displays the network identifier corresponding to the target SIM card interface.
2. The method according to claim 1, characterized in that The step of displaying the second interface in response to a selection operation on the second setting item in the first interface includes: In response to the selection operation, intercepting a card status message of the target SIM card interface and displaying the second interface; The card status message indicates whether the SIM card corresponding to the target SIM card interface is recognized or dropped, and is used to update the network identifier corresponding to the target SIM card interface displayed by the electronic device.
3. The method according to claim 2, characterized in that The one or more SIM card interfaces are at least two SIM card interfaces, and the at least two SIM card interfaces include the target SIM card interface; the method further includes: The data service of the electronic device is currently carried by the first SIM card corresponding to the target SIM card interface. In response to the selection operation, after the card status message of the target SIM card interface is intercepted, the data service of the electronic device is carried by the second SIM card corresponding to the target SIM card interface.
4. The method according to claim 2 or 3, characterized in that: In response to the selection operation, intercepting a card status message of the target SIM card interface includes: In response to the selection operation, a SIM switch message of the target SIM card interface is generated, and a card status message of the target SIM card interface is intercepted based on the SIM switch message.
5. The method according to claim 4, characterized in that The method further comprises: After the target SIM card interface switches the SIM card successfully, the card status message of the target SIM card interface is not intercepted.
6. The method according to claim 4 or 5, characterized in that: The intercepting the card status message of the target SIM card interface based on the SIM switching message includes: Based on the SIM switching message, setting the first flag bit of the target SIM card interface to a first preset value; wherein the first flag bit is the first preset value indicating that the target SIM card interface is switching SIM cards; After receiving the card status message of the target SIM card interface, if the first flag is read as the first preset value, the card status message of the target SIM card interface is intercepted.
7. The method according to any one of claims 4 to 6, characterized in that: The method further comprises: Based on the SIM switching message, the first SIM card is powered off; wherein the powering off of the first SIM card triggers a card status message indicating that the first SIM card is dropped; In response to the first SIM card being powered off successfully, switching to use the SIM card corresponding to the target SIM card interface to power on the second SIM card; In response to the second SIM card being powered on successfully, not intercepting a card status message of the target SIM card interface; In the process from powering off the first SIM card to powering on the second SIM card, the electronic device displays the network identifier corresponding to the target SIM card interface.
8. The method according to claim 7, characterized in that In response to the second SIM card being powered on successfully, not intercepting a card status message of the target SIM card interface includes: In response to the second SIM card being powered on successfully, setting the first flag bit of the target SIM card interface to a second preset value; After receiving the card status message of the target SIM card interface, if it is read that the first flag bit is the second preset value, the card status message of the target SIM card interface is not intercepted.
9. The method according to claim 8, characterized in that The network identifier corresponding to the target SIM card interface in the first interface is a first network identifier, and the first network identifier corresponds to the first SIM card; The network identifier corresponding to the target SIM card interface in the second interface is a second network identifier, and the second network identifier corresponds to the second SIM card.
10. An electronic device, characterized in that: The electronic device comprises: a processor, a memory and one or more SIM card interfaces; the memory and the one or more SIM card interfaces are respectively coupled to the processor; The one or more SIM card interfaces are used to insert a physical SIM card; the electronic device also includes one or more eSIM cards, each eSIM card corresponds to a SIM card interface; the memory stores computer program code, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1 to 9.
11. The electronic device according to claim 10, characterized in that: The processor includes: a modem; the modem is used to power on / off the physical SIM card and / or the eSIM card.
12. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 9.
Citation Information
Patent Citations
System and methods for using embedded subscriber identity module (ESIM) provisioning processes to provide and activate device configuration packages on a wireless communication device
CN108886683A
Network switching method, electronic equipment and storage medium
CN111601287A
SIM card, eSIM card switching method and electronic equipment
CN113498124A
SIM (Subscriber Identity Module) card management method and electronic equipment
CN114401508A
SIM (Subscriber Identity Module) card switching test method, electronic equipment and storage medium
CN115643618A
Cited By
Communication control method and electronic equipment
CN120786341A