A method for powering on a user identification module SIM card and electronic equipment
By detecting the card type and using the corresponding power-up voltage, the power-up problem caused by the same power-up method as the physical SIM card is solved, reducing the risk of SIM card damage caused by voltage mismatch.
Patent Information
- Application Number
- CN202311437579.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2043-10-31
AI Technical Summary
In the prior art, the power-up method of the eSIM card is the same as that of the physical SIM card, which can easily lead to power-up failure, and the use of a mismatched voltage may damage the SIM card.
A method for powering up a user identification module SIM card is provided, and a corresponding power-up voltage is adopted by detecting the card type of the card to be powered on. For eSIM cards, use the second voltage to power on to avoid the same power-on method as the physical SIM card.
It effectively avoids the problem of power-up failure and reduces the risk of SIM card damage caused by voltage mismatch.
Smart Images

Figure CN118474239B_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 powering on a subscriber identity module (SIM) card and an electronic device. Background Art
[0002] An embedded Subscriber Identity Module (eSIM) is an electronic SIM card and a data file that can be downloaded to an electronic device via the Internet.
[0003] When a user needs to use an eSIM card, the electronic device needs to power on the eSIM card. In the related art, the same power-on method is used for eSIM cards and physical SIM cards. However, eSIM cards and physical SIM cards are not exactly the same. If the same power-on method is used, power-on failure is likely to occur. Therefore, a power-on method specifically for eSIM cards is urgently needed. Summary of the invention
[0004] The embodiments of the present application provide a method for powering on a subscriber identity module (SIM) card and an electronic device, which are used to power on an eSIM card.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a method for powering on a subscriber identity module (SIM) card is provided, the method being applied to an electronic device, the electronic device supporting a physical SIM card and an eSIM card. The method comprises:
[0007] In response to a card power-on instruction, the electronic device uses a first voltage to power on the card to be powered on corresponding to the card power-on instruction. If the first response message returned by the card to be powered on is not received within the first preset time, the electronic device can obtain the card type of the card to be powered on. The card types of the card to be powered on include: physical SIM card and eSIM card, and the first response message corresponds to the use of a first voltage to power on the card to be powered on. Afterwards, the voltage to be used for powering on the card to be powered on next time is determined in combination with the card type of the card to be powered on. Specifically, if the card type of the card to be powered on is an eSIM card, a second voltage is used to power on the card to be powered on. The second voltage is the power-on voltage supported by the eSIM card.
[0008] In this solution, the power-on methods of the eSIM card and the physical SIM card can be differentiated to avoid the problem of power-on failure caused by using the same power-on method to power on the physical SIM card and the eSIM card. At the same time, the risk of SIM card damage caused by using mismatched voltages to power on the SIM card can be reduced.
[0009] In a possible implementation of the first aspect, the second voltage is the same as the first voltage. If the first voltage used by the electronic device when first powering on the card to be powered on is the power-on voltage supported by the eSIM card, the electronic device may still use the first voltage to power on the card to be powered on.
[0010] In a possible implementation of the first aspect, after the card to be powered on is powered on with the second voltage, the method may further include: if no second response message returned by the card to be powered on is received within the second preset time, returning to the step of powering on the card to be powered on with the second voltage until the card to be powered on is successfully powered on. The second response message corresponds to powering on the card to be powered on with the second voltage. In this solution, if no response message is received when the card to be powered on is powered on for the second time, the electronic device may continue to power on the card to be powered on with the power-on voltage supported by the card to be powered on. In this way, the possibility of successfully powering on the card to be powered on can be increased, and the problem of the card to be powered on being in a normal state but failing to power on can be avoided.
[0011] In a possible implementation of the first aspect, the method may further include: after each power-on of the card to be powered on, updating the power-on times of the card to be powered on; after the card to be powered on is powered on successfully, resetting the power-on times. In this implementation, if the second response message returned by the card to be powered on is not received within the second preset time, then returning to the step of using the second voltage to power on the card to be powered on until the card to be powered on is powered on successfully, which may specifically include: if the second response message returned by the card to be powered on is not received within the second preset time, and the power-on times are less than the preset times, then returning to the step of using the second voltage to power on the card to be powered on until the card to be powered on is powered on successfully. In this way, if the power-on times are less than a certain value, it means that the card to be powered on is in a normal state. At this time, the electronic device can continue to power on the card to be powered on. In this way, the possibility of successful power-on of the card to be powered on can be increased, and the problem of the card to be powered on being in a normal state but failing to power on can be avoided.
[0012] In a possible implementation of the first aspect, the electronic device includes a SIM card interface, and the target software interface corresponding to the card to be powered on supports an eSIM card and a physical SIM card inserted into the SIM card interface. When the card type of the card to be powered on is an eSIM card, the power-on circuit corresponding to the target software interface is connected to the eSIM card. The method may also include: if the second response message returned by the card to be powered on is not received within the second preset time, and the number of power-ons is greater than or equal to the preset number, then the power-on circuit corresponding to the target software interface is switched to the SIM card interface. In this solution, if the second response message is not received within the second preset time for non-first power-on, and the number of power-ons is greater than or equal to the preset number, it indicates that the eSIM card may be abnormal. At this time, the electronic device can switch the power-on circuit corresponding to the target software interface to the SIM card interface for power-on. In this way, the problem that the eSIM card fails to power on multiple times, and the electronic device still repeatedly powers on the eSIM card can be avoided.
[0013] In a possible implementation of the first aspect, the electronic device includes a SIM card interface, into which a physical SIM card is inserted. The method may also include: if a second response message returned by the card to be powered on is not received within a second preset time, and the number of power-ons is greater than or equal to a preset number, then the power-on circuit corresponding to the target software interface is switched to the SIM card interface, and the physical SIM card is powered on. In this solution, if the second response message is not received within the second preset time for non-first power-on, and the number of power-ons is greater than or equal to the preset number, then it indicates that an abnormality has occurred in the eSIM card. At this time, the electronic device can switch the card to be powered on to a physical SIM card for power-on. In this way, the problem of multiple unsuccessful power-ons of the eSIM card and no card available for use in the card slot can be avoided.
[0014] In a possible implementation of the first aspect, if the second response message returned by the card to be powered on is not received within the second preset time, and the number of power-on times is greater than or equal to the preset number, the electronic device may issue a first prompt message. The first prompt message is used to prompt the user that the eSIM card is abnormal. In this way, the user can be reminded of the eSIM card abnormality in a timely manner.
[0015] In a possible implementation of the first aspect, if the second response message returned by the card to be powered on is not received within the second preset time, and the number of power-ons is greater than or equal to the preset number, the power-on circuit corresponding to the target software interface is switched to the SIM card interface, which may specifically include: if the second response message returned by the card to be powered on is not received within the second preset time, and the number of power-ons is greater than or equal to the preset number, a second prompt message is issued. The second prompt message is used to prompt that the eSIM card is abnormal and inquire whether to switch to a physical SIM card. In this way, if the eSIM card fails to power on multiple times, the user can be prompted and the user can choose whether to switch to a physical SIM card. After the electronic device receives the first operation triggered by the user based on the second prompt message, the power-on circuit corresponding to the target software interface is switched to the SIM card interface. In this way, the switching of the SIM card can be made more in line with the needs of the user.
[0016] In a possible implementation of the first aspect, if the second response message returned by the card to be powered on is not received within the second preset time, and the number of power-ons is greater than or equal to the preset number, the power-on circuit corresponding to the target software interface is switched to the SIM card interface, and the physical SIM card is powered on. Specifically, it may include: if the second response message returned by the card to be powered on is not received within the second preset time, and the number of power-ons is greater than or equal to the preset number, a third prompt message is issued. The third prompt message is used to prompt that the eSIM card is abnormal and inquire whether to switch to the physical SIM card. In this way, if the eSIM card fails to power on multiple times, the user can be prompted, and the user can choose whether to switch to the physical SIM card. After the electronic device receives the first operation triggered by the user based on the third prompt message, the power-on circuit corresponding to the target software interface is switched to the SIM card interface, and the physical SIM card inserted into the SIM card interface is powered on. In this way, the switching of the SIM card can be more in line with the needs of the user.
[0017] In a possible implementation of the first aspect, the electronic device includes a SIM card interface, into which a physical SIM card is inserted. After obtaining the card type of the card to be powered on, the method may further include: in the case where the card type of the card to be powered on is a physical SIM card, using a third voltage to power on the card to be powered on. The third voltage is a power-on voltage supported by a physical SIM card, and the third voltage is different from the first voltage. In this way, the card to be powered on is a physical SIM card, and the electronic device may also use the power-on voltage supported by the physical SIM card to power on the card to be powered on. Thereby, the problem of power-on failure of the card to be powered on due to voltage mismatch is avoided.
[0018] In a possible implementation of the first aspect, after the electronic device uses the third voltage to power on the card to be powered on, if the electronic device does not receive a third response message within a third preset time, the electronic device may also use the power-on voltage supported by the physical SIM card to power on the card to be powered on until the card to be powered on is successfully powered on. The third response message corresponds to using the third voltage to power on the card to be powered on. In this way, the possibility of successful power-on of the card to be powered on can be increased, and the problem of the card to be powered on being in a normal state but failing to power on can be avoided.
[0019] In a possible implementation of the first aspect, the power-on voltage supported by the physical SIM card may include multiple ones. The above-mentioned electronic device may also use the power-on voltage supported by the physical SIM card to power on the card to be powered on until the card to be powered on is successfully powered on, which may specifically include: the electronic device may also use the first voltage or the third voltage to power on the card to be powered on until the card to be powered on is successfully powered on. In this way, the possibility of successful power-on of the card to be powered on can be increased, and the problem of the card to be powered on being in a normal state but failing to power on can be avoided.
[0020] In a possible implementation of the first aspect, after the card to be powered on corresponding to the card power-on instruction is powered on using the first voltage in response to the card power-on instruction, the method may further include: if a first response message returned by the card to be powered on is received within a first preset time, determining whether the card to be powered on supports the first voltage according to the response message. If it is determined according to the response message that the card to be powered on supports the first voltage, the card to be powered on is identified. In this way, the power-on success is ensured.
[0021] In a possible implementation manner of the first aspect, the card power-on instruction is triggered by powering on the electronic device.
[0022] In a possible implementation manner of the first aspect, the card power-on instruction is triggered by the electronic device receiving a second operation of the user; the second operation is used to instruct the electronic device to switch between the physical SIM card and the eSIM card.
[0023] In a possible implementation manner of the first aspect, the card power-on instruction is triggered by receiving a third operation of the user; the third operation is used to instruct the electronic device to enable a physical SIM card or an eSIM card.
[0024] In a possible implementation manner of the first aspect, the first voltage is a default voltage used by the electronic device to power on the physical SIM card.
[0025] In a possible implementation manner of the first aspect, the first voltage is a power-on voltage commonly supported by a physical SIM card and an eSIM card of the electronic device.
[0026] In a second aspect, the present application further provides a method for powering on a user identification module (SIM) card, the method being applied to an electronic device, the electronic device supporting an eSIM card. The method comprises:
[0027] In response to the card power-on instruction, the card type of the card to be powered on corresponding to the card power-on instruction is obtained. If the card type is an eSIM card, the card to be powered on is powered on using a first voltage. The first voltage is a power-on voltage supported by the eSIM card. If no first response message returned by the card to be powered on is received within a first preset time, the step of powering on the card to be powered on using the first voltage is returned until the card to be powered on is powered on successfully.
[0028] In this solution, when the electronic device needs to power on the SIM card, it will first obtain the card type of the card to be powered on. According to the card type, the power-on voltage supported by the card to be powered on can be obtained. After that, each time the electronic device powers on the card to be powered on, the power-on voltage supported by the card to be powered on can be used to power on the card to be powered on. Taking the eSIM card as an example, if the first response message returned by the card to be powered on is not received within the first preset time after the first power-on attempt, the electronic device can continue to power on the eSIM card with the first voltage until the power-on is successful. Among them, the first response message corresponds to the use of the first voltage to power on the card to be powered on. In this way, the problem of power-on failure caused by using a power-on voltage that is not supported by the SIM card to power on the SIM card can be avoided. At the same time, the risk of SIM card damage caused by using an unmatched voltage to power on the SIM card can be reduced.
[0029] In a possible implementation of the second aspect, if a response message returned by the card to be powered on is not received within a first preset time, and the number of times the card to be powered on is greater than or equal to a preset number, a prompt message is issued. The prompt message is used to indicate that the eSIM card is abnormal. In this way, the user can be reminded in time when the eSIM card fails to power on multiple times.
[0030] In a possible implementation of the second aspect, if no response message is received from the card to be powered on within the first preset time, and the number of times the card to be powered on is greater than or equal to the preset number, the prompt information sent by the electronic device may also suggest that the user try to restart the electronic device. In this way, if the eSIM card fails to power on multiple times, the user can be guided to restart the electronic device to try to solve the problem.
[0031] In a possible implementation of the second aspect, if the card type of the card to be powered on is a physical SIM card, the electronic device uses a second voltage to power on the card to be powered on. The second voltage may be different from the first voltage. In this way, the card to be powered on may be powered on using a power-on voltage supported by the physical SIM card, thereby increasing the possibility of successful power-on of the card to be powered on.
[0032] In a possible implementation of the second aspect, if the first response message returned by the card to be powered on is not received within the first preset time, the step of using the first voltage to power on the card to be powered on is returned until the card to be powered on is successfully powered on, which may specifically include: if the first response message returned by the card to be powered on is not received within the first preset time, and the number of times the card to be powered on is powered on is less than the preset number, the step of using the first voltage to power on the card to be powered on is returned. In this way, after the number of power-on times is greater than or equal to the preset number, the electronic device will stop powering on the card to be powered on.
[0033] In the third aspect, the present application also proposes a method for powering on a user identification module SIM card, which is applied to an electronic device, and the electronic device includes support for an eSIM card. The method includes: in response to a card power-on instruction, using a first voltage to power on the card to be powered on corresponding to the card power-on instruction. If a first response message returned by the card to be powered on is not received within a first preset time, the card type of the card to be powered on is obtained. The first response message corresponds to using a first voltage to power on the card to be powered on. In the case that the card type of the card to be powered on is an eSIM card, a second voltage is used to power on the card to be powered on. The second voltage is a power-on voltage supported by the eSIM card.
[0034] In this solution, if the electronic device supports the eSIM card, the method can be used to power on the eSIM card, thereby avoiding the use of a voltage that is not supported by the eSIM card.
[0035] In a possible implementation of the third aspect, after the card to be powered on is powered on with the second voltage, the method further includes: if a second response message returned by the card to be powered on is not received within a second preset time, returning to the step of powering the card to be powered on with the second voltage until the card to be powered on is successfully powered on. The second response message corresponds to powering the card to be powered on with the second voltage.
[0036] In a possible implementation of the third aspect, the method further includes: if a second response message returned by the card to be powered on is not received within a second preset time, and the number of times the card to be powered on is greater than or equal to a preset number, issuing a prompt message. The prompt message is used to indicate that the eSIM card is abnormal.
[0037] In a fourth aspect, an electronic device is provided, the electronic device comprising: a processor, a memory, and one or more SIM card interfaces; the electronic device supports one or more eSIM cards, and the memory stores configuration files of one or more eSIM cards. The memory and the one or more SIM card interfaces are respectively coupled to the processor. One or more SIM card interfaces are used to insert a physical SIM card. 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 executes the power-on method of the user identification module SIM card as described in any one of the first aspects above.
[0038] In a fifth aspect, an electronic device is provided, the electronic device comprising: a processor and a memory; the memory is coupled to the processor. The electronic device supports one or more eSIM cards, and the memory stores configuration files of one or more eSIM cards. 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 executes the power-on method of the user identification module SIM card as described in any one of the second aspect or the third aspect.
[0039] In a sixth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer can execute the method for powering on a user identification module SIM card of any one of the first aspect, the second aspect or the third aspect.
[0040] In a seventh 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 powering on a user identification module SIM card according to any one of the first aspect or the second aspect.
[0041] In an eighth 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.
[0042] Among them, the technical effects brought about by any design method in the third to eighth aspects can refer to the technical effects brought about by different design methods in the first or second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a mobile phone startup operation process provided in an embodiment of the present application;
[0044] Figure 2A A schematic diagram of the operation flow of switching SIM cards of a mobile phone provided in an embodiment of the present application;
[0045] Figure 2B A schematic diagram of an operation flow of activating a SIM card in a mobile phone provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the software and hardware structure of a mobile phone provided in an embodiment of the present application;
[0047] Figure 4 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;
[0048] Figure 5 A schematic diagram of a process of powering on a physical SIM card by a mobile phone in a related technology provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0050] Fig. 7A A schematic diagram of a flow chart of a method for powering on a SIM card provided in an embodiment of the present application;
[0051] Figure 7B A schematic diagram of a flow chart of a method for powering on a SIM card provided in an embodiment of the present application;
[0052] Figure 8 A schematic diagram of a flow chart of a method for powering on a SIM card provided in an embodiment of the present application;
[0053] Fig. 9 A schematic diagram of a mobile phone interface provided in an embodiment of the present application;
[0054] Fig.10 A schematic diagram of a mobile phone interface provided in an embodiment of the present application;
[0055] Fig.11 A schematic diagram of a flow chart of a method for powering on a SIM card provided in an embodiment of the present application;
[0056] Fig.12 A structural block diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] First, a brief description of the technical terms that may be involved in this application is given.
[0058] 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.
[0059] Radio interface layer (RIL), in Android TM In the Qualcomm Snapdragon platform, RIL is located between the framework layer and the modem. RIL is 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.
[0060] A SIM card is an integrated circuit card used to store and manage user information of mobile communication devices.
[0061] 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 is directly embedded into the circuit board of the device. 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.
[0062] Some electronic devices support eSIM cards. Some card slots of electronic devices support not only the use of physical SIM cards, but also the use of eSIM cards. However, the card slot can activate one card for use at the same time, that is, in some embodiments, the card used in the card slot can be a physical SIM card. In other embodiments, the card used in the card slot can also be an eSIM card. In some scenarios, the user can choose to switch the card currently used in the card slot from a physical SIM card to an eSIM card. In other scenarios, the user can also choose to switch the card currently used in the card slot from an eSIM card to a physical SIM card.
[0063] The answer to reset (ATR) message is a sequence of bytes. When the card receives the reset command, it can return the ATR to the sender of the reset command. These bytes are the card's response to the reset command. In some embodiments, when the mobile phone sends a power-on command to the card, the card needs to return the ATR to the mobile phone. The ATR carries a preset field, which is used to indicate the power-on voltage supported by the SIM card.
[0064] When the electronic device is turned on, or the user switches the currently used SIM card during the use of the electronic device, or the user activates the SIM card, the electronic device needs to power on the SIM card to be used. Different physical SIM cards may support different power-on voltages. The power-on voltage supported by the physical SIM card may also be different from the power-on voltage supported by the eSIM.
[0065] In some specific embodiments, the power-on voltage supported by the physical SIM card may include 1.8 volts (V) and 3 V. The power-on voltage supported by the eSIM card may include 1.8 V. It is understandable that in other embodiments, the power-on voltage supported by the physical SIM card and the eSIM card may also be other values.
[0066] Take the mobile phone as an example, Figure 1 The scene of turning on the mobile phone 1 is shown. The mobile phone 1 is in the off state, and the user can long press the power button 11 to control the mobile phone 1 to turn on. In the process of the mobile phone 1 turning on in response to the user's operation of the power button 11, the SIM card of the mobile phone 1 can be powered on. In some embodiments, the power-on method of the subscriber identity module SIM card proposed in this application can be used to power on the SIM card.
[0067] Figure 2A The figure shows a scenario where the user selects to trigger the card switching. The mobile phone 1 can display Figure 2A The main interface 200 shown in FIG. 200 includes application icons for applications such as “clock”, “calendar”, “gallery”, “memo”, etc. and “settings”. In response to the user triggering the “settings” application icon 201 in the main interface 200, the mobile phone 1 enters the settings application and displays the settings application interface 202.
[0068] The setting application interface 202 may include multiple setting options, such as WLAN, Bluetooth, SIM card management, and mobile network setting options. In response to the user selecting the SIM card management option 203 in the setting application interface 202 , the mobile phone 1 may enter the SIM card management interface 204 .
[0069] The user can select the card to be used in the SIM card management interface 204. Figure 2A As shown in the interface, Figure 2AThe mobile phone 1 shown includes two card slots (card slot 1 and card slot 2), and supports the use of dual cards at the same time. And the card types supported by card slot 2 (i.e., card 2 shown in the interface of mobile phone 1) include physical SIM cards and eSIM cards, and card slot 2 supports switching between physical SIM cards and eSIM cards. Therefore, the SIM card management interface 204 includes a submenu option 205 for card slot 2. In response to the user's triggering operation on the submenu option 205 for card slot 2, the mobile phone 1 can display the submenu interface 206 for card slot 2. It can be understood that in other embodiments, the card slot 1 of the mobile phone 1 (i.e., card 1 shown in the interface of mobile phone 1) can also support the switching between physical SIM cards and eSIM cards.
[0070] In the submenu interface 206 of the card slot 2, two cards that can be switched are displayed. The card currently used in the card slot 2 is a physical SIM card. In response to the user's triggering operation on the option 207 corresponding to the eSIM card in the submenu interface 206 of the card slot 2, the mobile phone 1 switches the card used in the card slot 2 from the physical SIM card to the eSIM card.
[0071] Specifically, after the user selects the eSIM card in the submenu interface 206 of slot 2, the mobile phone 1 will respond to the operation by first powering off the card currently used in slot 2 (such as a physical SIM card), and then powering on the card selected by the user (such as an eSIM card).
[0072] It should be noted that Figure 2A 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.
[0073] In addition, the user can also select the activation status of the SIM cards in slot 1 and slot 2 in the SIM card management interface of the mobile phone. In response to the user's operation of activating the SIM card, the mobile phone can power on the SIM card in the corresponding slot. Figure 2B As shown, the user can choose to enter the submenu interface of card slot 1 in the SIM card management interface 301. Figure 2B In the interface shown, the SIM card in the card slot 1 of the mobile phone 1 is not enabled. In response to the user triggering the option 302 corresponding to the card slot 1 in the SIM card management interface 301, the mobile phone 1 enters the submenu interface 303 of the card slot 1. In response to the user triggering the switch 304 of the physical SIM card in the submenu interface 303 of the card slot 1, the mobile phone 1 can enable the physical SIM card in the card slot 1. In some embodiments, the process of enabling the physical SIM card in the card slot 1 by the mobile phone 1 requires powering on the physical SIM card in the card slot 1.
[0074] Please refer to Figure 3, 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 the mobile phone 1 powering up the SIM card. Figure 3 In the embodiment, the software architecture of the mobile phone 1 is divided into an application layer and a middle layer.
[0075] 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.
[0076] 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 3 In the example shown, mobile phone 1 supports the simultaneous use of dual SIM cards.
[0077] The hardware layer includes SIM card interface 1, SIM card interface 2, eSIM card and modem. SIM card interface 1 and SIM card interface 2 support the insertion of physical SIM cards respectively. For the sake of distinction, in the embodiment of the present application, the SIM card interface of the middle 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). SIM card interface 2 (software) supports physical SIM cards inserted into eSIM cards and SIM card interface 2 (hardware).
[0078] 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.
[0079] Specifically, when the card selected for use in card slot 2 is a physical SIM card, the switch connects the modem to SIM card interface 2 (hardware). In this way, the hardware circuit between the modem and 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).
[0080] When the 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.
[0081] During the process of mobile phone 1 starting up, the process of mobile phone 1 powering on the SIM card may include the following steps: mobile phone 1 is turned on, and the modem is powered on. At the same time, the mobile phone triggers the card power-on instruction. In response to the card power-on instruction, the modem calls SIM card interface 2 (software) to power on the SIM card. If the card currently selected for use in card slot 2 is a physical SIM card, the modem calls SIM card interface 2 (software) to power on the physical SIM card inserted in SIM card interface 2 (hardware). If the SIM card currently selected for use in card slot 2 is an eSIM card, the modem calls SIM card interface 2 (software) to power on the eSIM card.
[0082] Understandably, the above Figure 3 The mobile phone 1 shown supports the simultaneous use of dual SIM cards, and the card 2 therein supports the switching between the physical SIM card and the eSIM card. In other embodiments, the mobile phone 1 supports the simultaneous use of dual SIM cards, and the card 1 of the mobile phone also supports the switching between the physical SIM card and the eSIM card. Alternatively, in other embodiments, the mobile phone 1 may also support the simultaneous use of dual SIM cards, and the card 1 of the mobile phone supports the switching between the physical SIM card and the eSIM card, and the card 2 supports the switching between the physical SIM card and the eSIM card.
[0083] In other embodiments, the mobile phone 1 may also support a single card, and the single card slot supports switching between a physical SIM card and an eSIM card.
[0084] Alternatively, in some other embodiments, the mobile phone 1 may also support a single card, and the single card slot supports an eSIM card. Alternatively, in some other embodiments, the mobile phone 1 supports dual cards at the same time, and the card 1 of the mobile phone supports an eSIM card, and the card 2 also supports an eSIM card.
[0085] Figure 4 FIG. 1 shows a process of powering on the SIM card by the mobile phone 1 in response to a user operation to switch the SIM card. The user interface (UI) may be Figure 2A The SIM card management interface 204 is shown. The user can choose to switch SIM cards on this UI interface.
[0086] 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. Figure 2A 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.
[0087] After receiving the SIM card switching instruction, QCRIL sends a power-off instruction of the physical SIM card to the modem through QMI. After receiving the power-off instruction, the modem powers off the physical SIM card. Figure 2A 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.
[0088] 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 slot is powered off, the card status of the slot is absent. After that, QCRIL can report the card status to the SIM card management module, and the SIM card management module can update the display status of the SIM card on the UI interface.
[0089] At the same time, QCRIL sends a switch instruction between the physical SIM card and the eSIM card to the modem through QMI. In response to the switch instruction, the modem switches between the physical SIM card and the eSIM card to connect the hardware circuit of the corresponding SIM card. Figure 2A In the illustrated process, the user chooses to switch the physical SIM card in slot 2 to an eSIM card. Accordingly, the switch switching instruction is used to disconnect the hardware circuit of the physical SIM card and connect the hardware circuit of the eSIM card. After that, when the modem powers on the card to be used in slot 2, the eSIM card can be powered on. 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.
[0090] 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.
[0091] 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 card used in slot 2 is an eSIM card, such as Figure 2A The SIM card management interface 208 is shown.
[0092] The following combination Figure 3 , for the above Figure 4 The process of switching the switch between the physical SIM card and the eSIM card in the process shown is explained as follows: 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) by adjusting the switch position, and connects the hardware circuit between the modem and the eSIM card. After that, when moedm calls the SIM card interface 2 (software), the eSIM card can be powered on. After the eSIM card is powered on successfully, the card slot 2 of the mobile phone 1 completes the process of switching from the physical SIM card to the eSIM card, that is, the card currently used in the card slot 2 of the mobile phone 1 is switched to the eSIM card.
[0093] The following combination Figure 3 ,right Figure 4 The step "modem powers on the eSIM card" in the card switching scenario is described for explanation. After the modem receives the power-on command from the eSIM card, it can call SIM card interface 2 (software) to send a power-on command to the eSIM card. Because the switch is successfully switched before, the modem is connected to the hardware circuit between the eSIM card. Therefore, at this time, the modem calls SIM card interface 2 (software) to power on the eSIM card.
[0094] Figure 5 The process of powering on a physical SIM card by a mobile phone in the related art is shown. For example, the mobile phone can use voltage a to power on the card to be powered on. When a physical SIM card is inserted into the SIM card interface and the physical SIM card is in a normal state, the physical SIM card will return ATR after receiving the power-on instruction. After the mobile phone uses voltage a to power on the card to be powered on, if it receives the ATR returned by the card to be powered on, it can determine whether the voltage matches according to the ATR.
[0095] Specifically, since the mobile phone uses voltage a to power up the card to be powered on, when judging whether the voltage matches according to ATR, it can be judged according to ATR whether the power-on voltage supported by the card to be powered on matches voltage a. If the voltage matches, the process of identifying the SIM card can be continued.
[0096] In some cases, if there is no SIM card inserted in the SIM card interface, or the physical SIM card is abnormal, the mobile phone will not be able to receive the ATR returned by the physical SIM card. In this case, if the mobile phone uses voltage a to power on the physical SIM card and does not receive the ATR returned by the physical SIM card within a period of time, it means that there is no physical SIM card inserted in the SIM card interface, or the physical SIM card is abnormal.
[0097] In other cases, the voltage a mentioned above may not match the power-on voltage supported by the card to be powered on. If the voltage used for power-on does not match the power-on voltage supported by the card to be powered on, it may also cause the mobile phone to be unable to receive the ATR returned by the physical SIM card. In this case, after the mobile phone powers on the card to be powered on, if no ATR is received for a period of time, the mobile phone can use other voltages to power on the card to be powered on again. For example, the mobile phone can use voltage b to power on the card to be powered on again. The voltage b is different from the voltage a. Exemplarily, the voltage b may be greater than the voltage a; or, the voltage b may be less than the voltage a. Among them, the voltage a and the voltage b can be determined according to the power-on voltage supported by the physical SIM card, respectively.
[0098] Furthermore, after the mobile phone uses voltage b to power on the card to be powered on again, if the ATR returned by the card to be powered on is still not received within a period of time, the mobile phone can use other voltages (such as voltage 3, etc.) to try to power on the card to be powered on until the ATR returned by the card to be powered on is received. Alternatively, the mobile phone can also return to using voltage a to power on the card to be powered on again until the ATR returned by the card to be powered on is received.
[0099] Similar to the process of using voltage a to power up a physical SIM card, if an ATR is received, it can be determined whether the match is matched according to the ATR. If the voltage matches, the process of identifying the SIM card continues.
[0100] In the above process of powering on the card to be powered on, the card to be powered on can be powered on by the modem of the mobile phone.
[0101] In the related art, the power-on method for the eSIM card is similar to the power-on process for the physical SIM card. It should be noted that when the eSIM card is powered on, the eSIM card needs to occupy a card slot in the mobile phone in the SIM card management module. After the mobile phone uses voltage a to try to power on the card to be powered on (eSIM card) for the first time, if it does not receive the ATR returned by the card to be powered on within a period of time, it will use voltage b to try to power on the card to be powered on. However, the power-on voltages supported by the eSIM card and the physical SIM card may be different. Therefore, if different types of SIM cards are used Figure 5 The power-on method shown is prone to power-on failure.
[0102] Based on this, the embodiment of the present application proposes a SIM card power-on method, which can be used to power on different types of SIM cards, including physical SIM cards and eSIM cards. The method can be applied to electronic devices that support physical SIM cards and eSIM cards, such as the above-mentioned mobile phone 1.
[0103] Exemplarily, when mobile phone 1 detects a card power-on instruction, a first voltage will be used to power on the card to be powered on. If mobile phone 1 does not receive a response message returned by the card to be powered on within the first preset time, mobile phone 1 obtains the card type of the card to be powered on. If the card type of the card to be powered on is an eSIM card, mobile phone 1 will use a second voltage to power on the card to be powered on. The second voltage is a power-on voltage supported by the eSIM card. In this way, when the ATR is not received when the card to be powered on is powered on for the first time, a second voltage matching the card to be powered on can be selected according to the card type of the card to be powered on to power on the card to be powered on. Thereby, the problem of power-on failure caused by using an unmatched voltage to power on the card to be powered on can be avoided.
[0104] In some embodiments, the first voltage and the second voltage may be the same.
[0105] In some other embodiments, the electronic device includes a SIM card interface, and a physical SIM card is inserted into the SIM card interface. If the card type of the card to be powered on is a physical SIM card, the mobile phone 1 can use a third voltage to power on the card to be powered on. The third voltage is a power-on voltage supported by the physical SIM card. The third voltage may be different from the first voltage, such as the third voltage may be greater than the first voltage.
[0106] 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.
[0107] like Figure 6 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, a SIM card interface 194, and an eSIM card 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, etc.
[0108] 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.
[0109] 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 (i.e., the above-mentioned modem), 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 processing unit (neural-network processing unit, NPU), etc. Among them, different processing units may 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.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] 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.
[0115] 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.
[0116] 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 .
[0117] 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.
[0118] 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.
[0119] 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.
[0120] 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.
[0121] 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.
[0122] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi), 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 filters it, 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.
[0123] 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.
[0124] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170 and the application processor.
[0125] 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.
[0126] 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.
[0127] 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.
[0128] 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.
[0129] 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.
[0130] 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.
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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.
[0135] The SIM card power-on methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure.
[0136] The power-on method of the SIM card proposed in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0137] Fig. 7A The process of the SIM card power-on method proposed in the embodiment of the present application is shown. In this embodiment, the electronic device is a mobile phone as an example for explanation. The mobile phone supports physical SIM cards and eSIM cards. When the mobile phone supports the simultaneous use of dual cards, one card slot of the mobile phone can support physical SIM cards and eSIM cards. That is, the software interface corresponding to the card slot (the above-mentioned SIM card interface (software)) supports physical SIM cards and eSIM cards; the card slot can be Figure 2ACard slot 1 or card slot 2 is shown. Alternatively, when the mobile phone supports dual-card use, both card slots of the mobile phone support physical SIM cards and eSIM cards. That is, the software interfaces corresponding to the two card slots of the mobile phone support physical SIM cards and eSIM cards. Alternatively, when the mobile phone supports dual-card use at the same time, one card slot of the mobile phone supports physical SIM cards and eSIM cards, and the other card slot supports eSIM cards. Alternatively, when the mobile phone supports dual-card use at the same time, one card slot of the mobile phone supports physical SIM cards, and the other card slot supports eSIM cards. Alternatively, when the mobile phone supports single-card use, the single-card slot supports physical SIM cards and eSIM cards.
[0138] like Fig. 7A As shown, the method includes S500-S508.
[0139] S500. Receive a card power-on instruction.
[0140] In some embodiments, the card power-on instruction is used to instruct the mobile phone to power on the SIM card.
[0141] When receiving the card power-on instruction, the mobile phone will power on the SIM card in the mobile phone in response to the card power-on instruction. Therefore, in some embodiments, the SIM card corresponding to the card power-on instruction can be recorded as the card to be powered on.
[0142] Combined with the above description, it can be seen that when the mobile phone is turned on, the mobile phone needs to power on the SIM card; Figure 1 In some embodiments, the card power-on instruction may be triggered by the power-on of the mobile phone 1 .
[0143] Alternatively, in a scenario where the user chooses to switch the currently used SIM card during the use of the mobile phone, the mobile phone needs to power on the SIM card to be used next. In some embodiments, the above-mentioned card power-on instruction may be triggered by a SIM card switching operation (such as a second operation) performed by the user. Exemplarily, in the process of the mobile phone switching the currently used SIM card on the card slot from the first card to the second card in response to the user's SIM card switching operation, the mobile phone may specifically include: the mobile phone first powers off the first card on the card slot, and then the mobile phone powers on the second card on the card slot. Among them, the method for powering on the SIM card proposed in the embodiment of the present application can be executed during the process of the mobile phone powering on the second card. Among them, the process of card switching, such as Figure 2A The process shown is that the user selects the card used in card slot 2 to switch from a physical SIM card to an eSIM card.
[0144] In the scenario where the user chooses to enable the SIM card on the card slot, the mobile phone also needs to power on the SIM card to be used next. In some embodiments, the card power-on instruction may be triggered by a SIM card activation operation (such as the third operation) performed by the user. The SIM card activation operation is used to instruct the mobile phone to activate the physical SIM card or eSIM card used on the card slot.
[0145] S501. In response to a card power-on instruction, power on a card to be powered on corresponding to the card power-on instruction using voltage 1.
[0146] In some embodiments, voltage 1 is a default voltage when the mobile phone powers on the physical SIM card. The default voltage can be set according to actual conditions. Exemplarily, the default voltage can be a default voltage used by the mobile phone to power on the physical SIM card, such as 1.8V or 3V. In some embodiments, voltage 1 can be recorded as the first voltage.
[0147] In some embodiments, the SIM card software interface corresponding to the card to be powered on may be recorded as a target software interface.
[0148] S502: Whether the first ATR returned by the card to be powered on is received within the first preset time.
[0149] Whether the mobile phone receives the first ATR (i.e., the first response message) specifically refers to whether the card to be powered on returns ATR when the mobile phone uses voltage 1 to power on the card to be powered on. That is, the first ATR corresponds to the mobile phone using voltage 1 to power on the card to be powered on.
[0150] In some embodiments, after S501, the mobile phone may start timing. In this embodiment, the above S502 may specifically include: whether the first ATR returned by the card to be powered on is received before the timing time reaches the first preset time.
[0151] Before the timing time reaches the first preset time, the mobile phone receives the first ATR returned by the card to be powered on, and the mobile phone can stop timing. In other embodiments, if the mobile phone still does not receive the ATR returned by the card to be powered on before the timing time reaches the first preset time, it means that there may be an abnormality in the power-on of the card to be powered on. At this time, the mobile phone can also stop timing.
[0152] Furthermore, in some embodiments, after the mobile phone stops timing, the mobile phone can also reset and clear the timing value.
[0153] In other embodiments, after S501, the mobile phone may also set the countdown value of the countdown timer to the first preset time and start the countdown. In this embodiment, the above S502 may specifically include: before the countdown of the countdown timer becomes 0, whether the ATR returned by the card to be powered on is received.
[0154] It can be understood that if the ATR returned by the card to be powered on is received before the countdown value of the countdown timer becomes 0, it means that the first ATR returned by the card to be powered on is received within the first preset time. If the countdown timer countdown becomes 0, and the mobile phone still does not receive the ATR returned by the card to be powered on, it means that the first ATR returned by the card to be powered on is received within the first preset time.
[0155] In some embodiments, the execution steps after the mobile phone receives the first ATR within the first preset time can be specifically referred to in the following description. In other embodiments, if the first ATR is not received within the first preset time, the mobile phone can power on the card to be powered on again. When the judgment result of S502 is no, S503 can be executed.
[0156] S503. Obtain the card type of the card to be powered on.
[0157] It can be seen from the above description that the card types to be powered on include physical SIM cards and eSIM cards.
[0158] In the scenario where the mobile phone powers on the SIM card in response to a card power-on instruction (triggered by a SIM card switching operation performed by the user), the card to be powered on is the card selected by the user to be used. The card power-on instruction received by the mobile phone will carry a card identifier. In this embodiment, the above S503 may specifically include: the mobile phone obtains the card identifier of the card to be powered on according to the card power-on instruction, and determines the card type of the card to be powered on according to the card identifier.
[0159] like Figure 4 In the process shown, when QCRIL sends the eSIM card power-on command to the modem through QMI, the power-on command will carry the card ID of the eSIM card. At this time, after receiving the power-on command, the modem can determine the card type of the card to be powered on according to the card ID carried therein.
[0160] In the scenario where the mobile phone is powered on to power on the SIM card, or the mobile phone activates the SIM card in response to the user's operation, the card to be powered on may be the SIM card that the user selected to use in the card slot last time. In some embodiments, the mobile phone may store the card identifier of the SIM card currently used in the card slot. Thus, in the above S503, the mobile phone may obtain the card identifier of the card to be powered on from the preset storage area, and obtain the card type of the card to be powered on according to the card identifier.
[0161] In some embodiments, after the modem powers on the card to be powered on in response to the card power-on instruction, the modem can save the card identification of the card currently in use. In the scenario of the mobile phone being turned on, the card that the modem needs to power on can be the card that the user last selected to use. Since after the user selects the card to be used in the card slot, the modem can save the card identification of the card to be used in the card slot. Therefore, in some embodiments, in the above S503, the modem can obtain the card identification of the card to be powered on from the storage area of the modem, and determine the card type of the card to be powered on according to the card identification.
[0162] S504: Determine whether the card type of the card to be powered on is an eSIM card.
[0163] The operation to be performed when the judgment result of S504 is no can be referred to the following description. If the judgment result of S504 is yes, S505 can be performed.
[0164] S505. Use voltage 2 to power on the card to be powered on; voltage 2 is the power-on voltage supported by the eSIM card.
[0165] In some embodiments, voltage 1 may be a power-on voltage supported by the eSIM card, and when the mobile phone powers on the card to be powered on again in S505, voltage 1 may still be used for powering on. In some embodiments, voltage 2 may be the same as voltage 1. In some embodiments, voltage 2 may be recorded as a second voltage.
[0166] In other embodiments, voltage 1 may not be a power-on voltage supported by the eSIM card. For example, if voltage 1 is a power-on voltage supported by the physical SIM card, then in S505, when the mobile phone powers on the card to be powered on again, other voltages may be used for powering on. That is, in some embodiments, voltage 2 may also be different from voltage 1.
[0167] Afterwards, the mobile phone can again determine whether the ATR returned by the card to be powered on is received within the preset time.
[0168] S506: Whether the second ATR returned by the card to be powered on is received within the second preset time.
[0169] It should be noted that the mobile phone can reset the timing after S505. Afterwards, it is determined according to the timing time whether the mobile phone receives the second ATR returned by the card to be powered on within the second preset time after the card to be powered on is powered on using voltage 2. It is understandable that the mobile phone can reset the timing each time the card to be powered on is powered on again.
[0170] In some embodiments, the first preset time may be equal to the second preset time. Whether the mobile phone receives the second ATR specifically refers to whether the card to be powered on returns ATR when the mobile phone uses voltage 2 to power on the card to be powered on. In other words, the second ATR corresponds to the card to be powered on when the mobile phone uses voltage 2.
[0171] After S506, if the mobile phone receives the second ATR returned by the eSIM card within the second preset time, the mobile phone can execute subsequent processes, such as S507.
[0172] S507. Identify the SIM card.
[0173] The specific implementation process of the mobile phone identifying the SIM card can refer to the description in the relevant technology and will not be repeated in the embodiments of the present application.
[0174] In the technical solution provided in the embodiment of the present application, if the mobile phone fails to receive the ATR returned by the card to be powered on after using voltage 1 to power on the card to be powered on, the mobile phone will obtain the card type of the card to be powered on. And the voltage to be used for powering on the card to be powered on next time is determined in combination with the card type of the card to be powered on. In the case where it is determined that the card type of the card to be powered on is an eSIM card, when the card to be powered on is powered on, the power-on voltage supported by the eSIM card (such as voltage 2) can be used to power on the card to be powered on. In this way, the power-on method of the eSIM card can be distinguished from that of the physical SIM card, avoiding the problem of power-on failure caused by using the same power-on method to power on the physical SIM card and the eSIM card. At the same time, the risk of damage to the SIM card due to powering on the SIM card with an unmatched voltage can be reduced.
[0175] When the judgment result of the above S502 is yes, it means that when the mobile phone uses voltage 1 to power on the card to be powered on, the first ATR returned by the card to be powered on is received within the first preset time. At this time, the mobile phone can also identify the SIM card, such as Fig. 7A S508 shown.
[0176] S508. Identify the SIM card.
[0177] That is to say, if the first ATR is received within the first preset time when the card to be powered on is powered on using voltage 1, the subsequent process can be continued.
[0178] It can be seen from the above description that the power-on voltages supported by different SIM cards are inconsistent. After the mobile phone powers on the card to be powered on, even if it receives the first ATR within the first preset time, the power-on failure may occur due to the mismatch of the power-on voltage. Therefore, in some embodiments, after the mobile phone receives the first ATR within the first preset time, the mobile phone can also determine whether the voltage used for power-on matches the power-on voltage supported by the card to be powered on based on the ATR. When the judgment result of S506 is yes, it can be determined based on the ATR whether the power-on voltage supported by the card to be powered on matches Voltage 2. Figure 7B S601 shown.
[0179] S601. Determine whether the voltage matches according to ATR.
[0180] As can be seen from the above description, the above S601 may specifically include: judging whether the voltage 2 used by the mobile phone when the card to be powered on is powered on matches the power-on voltage supported by the card to be powered on according to the ATR. If the voltage 2 matches the power-on voltage supported by the card to be powered on, that is, the judgment result of S601 is yes, the mobile phone may execute S507.
[0181] Similarly, when the judgment result of S502 is yes, the mobile phone can also judge whether the power-on voltage supported by the card to be powered on matches voltage 1 according to ATR. Figure 7B S602 shown.
[0182] S602. Determine whether the voltage matches according to ATR.
[0183] The above S602 may specifically include: judging whether the voltage 1 used by the mobile phone to power on the card to be powered on matches the power-on voltage supported by the card to be powered on, according to the ATR. When the judgment result of S602 is yes, the mobile phone may execute S508.
[0184] In some embodiments, the ATR carries a preset field for indicating the power-on voltage supported by the card to be powered on. Combined with the voltage used by the mobile phone to power on the card to be powered on, it can be determined whether the voltage used when powering on matches the power-on voltage of the card to be powered on.
[0185] In some embodiments, if the judgment result of S601 or S602 is no, it means that the power-on voltage supported by the card to be powered on does not match the voltage actually used when the mobile phone is powered on. If the power-on voltage supported by the card to be powered on does not match the voltage actually used when powered on, the mobile phone will fail to power on even if it receives the ATR within the preset time. At this time, the mobile phone can end the power-on process.
[0186] In other embodiments, when the judgment result of S601 or S602 is no, the mobile phone can switch to other voltages to power on the card to be powered on. In some embodiments, the mobile phone can also determine whether to continue to attempt to power on the card to be powered on in combination with the number of attempts to power on the card to be powered on. Exemplarily, when the number of attempts to power on the card to be powered on is small, the attempts to power on the card to be powered on can continue.
[0187] It should be noted that the judgment result of S601 or S602 is not Figure 7B Shown in.
[0188] In the technical solution provided in the embodiment of the present application, if the mobile phone successfully powers on the card to be powered on using voltage 1 or voltage 2, and the voltage match is determined according to ATR, the subsequent processes, such as identifying the SIM card, can be executed.
[0189] Combined with the above description, it can be seen that different physical SIM cards may support different power-on voltages. If the judgment result of S504 is no, it means that the card to be powered on is a physical SIM card. Then the mobile phone uses voltage 1 to power on the physical SIM card, and the mobile phone does not receive the first ATR returned by the card to be powered on within the first preset time. It may be that voltage 1 does not match the voltage supported by the card to be powered on (physical SIM card). At this time, when the mobile phone tries to power on the card to be powered on for the second time, other voltages can be used to power on the card to be powered on (physical SIM card). For example, Figure 7B S603 shown.
[0190] S603. Use voltage 3 as the power-on voltage to power on; voltage 3 is the power-on voltage supported by the physical SIM card.
[0191] In some embodiments, voltage 3 may be recorded as a third voltage. In some embodiments, the physical SIM card supports multiple power-on voltages, and voltage 3 may be one of the power-on voltages supported by the physical SIM card. Voltage 3 may be different from voltage 1. Exemplarily, voltage 3 may be greater than voltage 1, or voltage 3 may be less than voltage 1.
[0192] Further, after S603, the mobile phone can also determine whether the ATR returned by the card to be powered on is received within the preset time. If the third ATR returned by the card to be powered on is received within the third preset time, the mobile phone can also determine whether the power-on voltage supported by the card to be powered on matches the voltage 3 according to the ATR. Among them, the third ATR corresponds to the mobile phone using the voltage 3 to power on the card to be powered on. If the voltages match, the mobile phone can continue to execute the process of identifying the SIM card. In other embodiments, if within the third preset time after S603, the mobile phone still does not receive the ATR returned by the card to be powered on within the third preset time, the mobile phone can also use the power-on voltage supported by the physical SIM card (voltage 3 or voltage 1 or other voltages supported by the physical SIM card) to continue to power on the card to be powered on. In some embodiments, the third preset time can be set to be the same as the first preset time or the second preset time, or it can be set to be different.
[0193] In the technical solution provided in the embodiment of the present application, if the card to be powered on is a physical SIM card, after the mobile phone attempts to use voltage 1 to power on the card to be powered on for the first time and fails to receive ATR, the mobile phone can try to use a power-on voltage supported by other physical SIM cards to power on the card to be powered on. In this way, the problem of physical SIM card power-on failure caused by the mismatch between the adopted power-on voltage and the power-on voltage supported by the card to be powered on can be avoided.
[0194] In the scenario where the phone is turned on, the switch may not be powered on, so the phone cannot power on the card to be powered on by calling the card interface. In this case, even if a physical SIM card is inserted into the SIM card interface or an eSIM card is connected, and the card to be powered on is in normal state, the phone cannot receive the ATR returned by the card to be powered on after it powers on the card to be powered on. In order to avoid the problem that the card to be powered on cannot return the ATR due to this situation, the phone can try to power on the card to be powered on multiple times during the process of powering on the card to be powered on.
[0195] Furthermore, in order to avoid the problem of the mobile phone trying to power on infinitely when the ATR returned by the card is not received, the mobile phone can also set a preset number of times. When the number of attempts to power on the same card reaches the preset number, the mobile phone will no longer try to power on the card.
[0196] In some embodiments, after the mobile phone uses voltage 2 to power on the card to be powered on in the above S505, if the mobile phone still does not receive the second ATR within the second preset time, the mobile phone can determine whether the number of power-on times for the card to be powered on has reached the preset number. If the number of power-on times has reached the preset number, the mobile phone will no longer power on the card to be powered on. If the number of power-on times has not reached the preset number, the mobile phone can continue to power on the card to be powered on. Figure 8The flowchart of the method for powering on the SIM card in some embodiments is shown. In the method, when the judgment result of the above S506 is no, S701 is further included.
[0197] S701: Is the number of power-on times less than the preset number?
[0198] It can be understood that the power-on times refer to the number of times the mobile phone attempts to power on the card to be powered on. The value of the preset times can be customized according to actual conditions, and the preset times is greater than or equal to 2.
[0199] In some embodiments, the mobile phone will update the number of times the mobile phone has powered on the card to be powered on each time the card to be powered on is powered on. Exemplarily, after the mobile phone attempts to power on the card to be powered on, the mobile phone adds 1 to the number of times the mobile phone has powered on the card to be powered on.
[0200] Furthermore, after the card to be powered on is successfully powered on, the mobile phone can reset the power-on count. Alternatively, in other embodiments, the power-on count can also be reset when the card to be powered on changes (such as switching from a physical SIM card to an eSIM card), or when the mobile phone receives a power-off instruction for the currently used card.
[0201] Further, if the judgment result of S701 is yes, it means that the power-on times of the card to be powered on have not reached the preset times, and the mobile phone can power on the card to be powered on again. In some embodiments, if the judgment result of S701 is yes, the mobile phone can return to execute S505.
[0202] In the technical solution provided in the embodiment of the present application, if the mobile phone still cannot receive the ATR within the preset time after the card to be powered on is powered on for a non-first time, the mobile phone can power on the card to be powered on again as long as the number of power-on times is less than the preset number. In this way, the problem of the card to be powered on being in a normal state but failing to power on can be reduced, and the possibility of the card to be powered on being powered on successfully can be increased.
[0203] If the judgment result of S701 is no, it means that the number of times the card to be powered on has reached the preset number. At this time, it may indicate that an abnormality has occurred in the card to be powered on. According to the judgment result of S504 being yes, it can be known that the card to be powered on is an eSIM card. Since the eSIM card is an embedded SIM card, there is no problem of the eSIM card not being inserted into the mobile phone. Therefore, if the judgment result of S701 is no, it may indicate that an abnormality has occurred in the eSIM card, such as damage. If the eSIM card is damaged or has other abnormalities, the card selected by the user in the card slot (i.e., the card to be powered on) will not be powered on, and there will be no card available for use in the card slot.
[0204] In some embodiments, the mobile phone includes a SIM card interface, which is a hardware interface. And the target software interface corresponding to the card to be powered on supports the eSIM card and the physical SIM card inserted into the SIM card interface. In this embodiment, in order to avoid the waste of power consumption of the mobile phone due to multiple unsuccessful power-on attempts of the eSIM card while the mobile phone continues to power on the eSIM card, the mobile phone can switch the power-on circuit of the target software interface to the SIM card interface (hardware) corresponding to the physical SIM card when the judgment result of S701 is no. Figure 8 S702 shown.
[0205] S702. Switch the power-on circuit of the target software interface to connect to the SIM card interface.
[0206] It can be understood that the SIM card interface to which the power-on circuit switches the connection in S702 is the hardware interface of the SIM card.
[0207] In some embodiments, the specific process of the mobile phone switching the power-on circuit of the target software interface to connect to the SIM card interface can be referred to Figure 4 In some embodiments, S702 may specifically include: for the target software interface, the modem disconnects the hardware circuit between the modem and the eSIM card by adjusting the switch position, and connects the hardware circuit between the modem and the SIM card interface (hardware).
[0208] In some embodiments, when the mobile phone has powered on the eSIM card for a preset number of times but still has not received the ATR returned by the eSIM card, the mobile phone may also send a prompt message to remind the user that the eSIM card cannot be used.
[0209] In the technical solution provided in the embodiment of the present application, the target software interface corresponding to the card to be powered on not only supports eSIM cards, but also supports physical SIM cards. When the mobile phone attempts to power on the card to be powered on multiple times and fails to receive the ATR, the mobile phone can switch the power-on circuit of the target software interface to the SIM card interface corresponding to the physical SIM card. In this way, the problem of power consumption waste caused by the mobile phone continuing to power on the eSIM card while failing to power on the eSIM card multiple times can be avoided.
[0210] Furthermore, if a physical SIM card is inserted into the SIM card interface corresponding to the target software interface of the mobile phone, then after S702, the above method may further include: the mobile phone powers on the physical SIM card. The specific implementation process of the mobile phone powering on the physical SIM card can refer to the above description. That is, the card to be powered on on the target software interface of the mobile phone is switched from the eSIM card to the physical SIM card.
[0211] Furthermore, after the mobile phone successfully powers on the physical SIM card corresponding to the target software interface, the physical SIM card will be displayed in the card slot corresponding to the target software interface in the SIM card management interface of the mobile phone settings application. For example, when the target software interface corresponds to card 1, in the SIM card management interface, card 1 displays the physical SIM card. When the target software interface corresponds to card 2, in the SIM card management interface, card slot 2 displays the physical SIM card; Figure 2A The SIM card management interface 204 is shown.
[0212] In the technical solution provided in the embodiment of the present application, the target software interface corresponding to the card to be powered on not only supports eSIM cards, but also supports physical SIM cards. When the mobile phone attempts to power on the card to be powered on for multiple times and fails to receive an ATR, the mobile phone can switch the power-on circuit of the target software interface to the SIM card interface corresponding to the physical SIM card. Then, the physical SIM card is powered on. In this way, the problem of multiple unsuccessful power-ons of the eSIM card and no card available for use in the card slot corresponding to the target software interface is avoided.
[0213] In other embodiments, if the determination result of S701 is no, the mobile phone may also send a prompt message to the user to prompt the user that the current eSIM card cannot be used. Fig. 9 As shown, if the judgment result of S701 is no, the mobile phone can display a prompt message 801 (which can be recorded as the first prompt message) on the interface while switching the power-on circuit of the target software interface to connect to the physical SIM card. In this way, the user can be promptly prompted that the eSIM card cannot be used, so that the user can check the abnormality of the eSIM card in time.
[0214] Furthermore, in some embodiments where the target software interface corresponding to the card to be powered on supports both physical SIM cards and eSIM cards, after S701, the prompt message sent by the mobile phone to the user may also be used to ask the user whether to switch to a physical SIM card. Fig.10 As shown, the mobile phone interface displays a prompt message 802 (which can be recorded as the third prompt message), which is used to prompt the user whether the current eSIM card cannot be used and whether the card 2 needs to be switched to a physical SIM card. Fig.10 In the example shown, the target software interface corresponds to card 2.
[0215] Combination Fig.10It can be seen that the prompt information 802 also includes a first option 803 and a second option 804. Specifically, the first option 803 is yes, that is, if the user chooses to trigger the first option 803, the mobile phone can switch the power-on circuit of card 2 to the SIM card interface corresponding to the physical SIM card in response to the trigger operation. The second option 804 is no, that is, if the user chooses to trigger the second option 804, the mobile phone may not switch the power-on circuit of card 2, but let card 2 be in an idle state. In some embodiments, when the user triggers the second option 804, the mobile phone stops powering on the eSIM card.
[0216] That is, in some other embodiments, when the judgment result of the above S701 is no, the mobile phone sends (generates and displays) a prompt message. The prompt message is used to prompt that the current eSIM card cannot be used, and asks the user whether the card position corresponding to the target software interface needs to be switched to the physical SIM card. The prompt message includes a first option and a second option. After the mobile phone receives the user's trigger operation for the first option (which can be recorded as the first operation), the power-on circuit of the target software interface is switched to the SIM card interface corresponding to the physical SIM card. Among them, the first option is used to indicate that the card position corresponding to the target software interface is switched to the physical SIM card, and the second option is used to indicate that the card position corresponding to the target software interface is not switched to the physical SIM card. Furthermore, after the mobile phone switches the power-on circuit of the target software interface to the SIM card interface corresponding to the physical SIM card, the physical SIM card can be powered on.
[0217] In other embodiments, after the mobile phone sends the third prompt message, if the user does not make a choice within a certain period of time, the mobile phone can perform a default operation. In some embodiments, the default operation can be that the mobile phone switches the power-on circuit of the target software interface from the eSIM card to the SIM card interface, and powers on the physical SIM card inserted into the SIM card interface. In other embodiments, the default operation can also be that the mobile phone does not switch the power-on circuit of the target software interface. Among them, the default operation in this case can be set by the user according to needs and stored in the mobile phone.
[0218] In the technical solution provided in the embodiment of the present application, when the eSIM card cannot be powered on, the mobile phone prompts the user that the eSIM card cannot be used. And through a prompt message, the user is asked whether to switch to a physical SIM card. In this way, the switching of the SIM card can better meet the needs of the user.
[0219] In other embodiments, the target software interface corresponding to the card to be powered on only supports eSIM cards. If the judgment result of S701 is no, the mobile phone can also stop powering on the eSIM card. In some embodiments, the mobile phone can issue a prompt message (such as a fourth prompt message) when the judgment result of S701 is no, and the fourth prompt message is used to prompt the user that the eSIM card cannot be used. In other embodiments, the fourth prompt message may also include a suggestion for the user to restart the phone.
[0220] Next, the interaction between the modules of the mobile phone during the execution of the above-mentioned SIM card power-on method is described. Fig.11 The process of the mobile phone powering on the SIM card in response to the card power-on instruction is shown. The card power-on instruction can be triggered by an operation performed by the user. Exemplarily, the user's operation can be a SIM card switching operation triggered by the user (which can be recorded as the second operation), or a SIM card activation operation triggered by the user (which can be recorded as the third operation). The specific process of the mobile phone triggering QCRIL to send the card power-on instruction to the modem through QMI in response to the SIM card switching operation can be referred to. Figure 4 The specific description is not repeated in this embodiment.
[0221] S901. QCRIL sends a card power-on command to the modem via QMI.
[0222] S902. The modem responds to the card power-on instruction, calls the SIM card interface, and uses voltage 1 to power on the card to be powered on.
[0223] It is understandable that the SIM card interface called by the modem in S902 is Figure 3 SIM card interface (software) shown. In some embodiments, voltage 1 is the default voltage at which the phone powers up the physical SIM card.
[0224] S903. The modem starts timing.
[0225] S904. If the first ATR returned by the card to be powered on is not received within the first preset time, the modem obtains the card type of the card to be powered on.
[0226] If the card type to be powered on is an eSIM card, the mobile phone can execute S905-S910.
[0227] S905. The modem calls the SIM card interface and uses voltage 2 to power on the card to be powered on.
[0228] The voltage 2 is the power-on voltage supported by the eSIM card. The SIM card interface in S905 refers to a software interface.
[0229] S906. Modem resets timing.
[0230] S907: If the second ATR returned by the card to be powered on is not received within the second preset time, the modem obtains the power-on count of the card to be powered on.
[0231] S908. If the number of power-on times is less than the preset number, the modem calls the SIM card interface to power on the card to be powered on.
[0232] In S908, the modem may select a voltage for powering up the SIM card according to actual conditions, and the voltage is a power-up voltage supported by the eSIM card. In some embodiments, in S908, the modem may use voltage 2 to power up the card to be powered up.
[0233] S909. If the number of power-on times is greater than or equal to the preset number, stop powering on the card to be powered on.
[0234] In an embodiment where the target software interface corresponding to the card to be powered on also supports a physical SIM card, after S909, the mobile phone can also switch the SIM card in the card slot corresponding to the target software interface to the physical SIM card and power it on. The specific implementation process of the mobile phone switching the SIM card in the card slot corresponding to the target software interface to the physical SIM card and powering it on can refer to the above description.
[0235] S910: Receive a second ATR returned by the card to be powered on within a second preset time, and identify the SIM card.
[0236] After S904, the card type of the card to be powered on may also be a physical SIM card. At this time, the mobile phone can execute S911-S916.
[0237] S911. Call the SIM card interface and use voltage 3 to power on the card to be powered on.
[0238] Among them, voltage 3 is the power-on voltage supported by the physical SIM card.
[0239] S912.modem resets the time.
[0240] S913. If the third ATR returned by the card to be powered on is not received within the third preset time, the modem obtains the power-on count of the card to be powered on.
[0241] S914. If the number of power-on times is less than the preset number, the modem calls the SIM card interface to power on the card to be powered on.
[0242] In S914, the modem can select a voltage for powering up the SIM card according to actual conditions. In some embodiments, in S914, the modem can use voltage 3 or voltage 1 to power up the card to be powered up.
[0243] S915. If the number of power-on times is greater than or equal to the preset number, stop powering on the card to be powered on.
[0244] S916. Receive the third ATR returned by the card to be powered on within the third preset time, and identify the SIM card.
[0245] For the specific implementation of the above S901-S916, please refer to the description in the above embodiment.
[0246] In other embodiments, in a scenario where the mobile phone powers on the SIM card after being turned on, the modem can call the SIM card interface after being powered on and receiving a card power-on instruction, and use voltage 1 to power on the card to be powered on.
[0247] In the technical solution provided in the embodiment of the present application, if the mobile phone fails to receive the ATR returned by the card to be powered on after using voltage 1 to power on the card to be powered on, the mobile phone will obtain the card type of the card to be powered on. And in combination with the card type of the card to be powered on, it is determined what voltage to use next time to try to power on the card to be powered on. In the case where it is determined that the card type of the card to be powered on is an eSIM card, when the card to be powered on is powered on, the power-on voltage supported by the eSIM card can be used to try to power on the card to be powered on. In this way, the power-on method of the eSIM card can be distinguished from that of the physical SIM card, avoiding the problem of power-on failure caused by using the same power-on method to power on the physical SIM card and the eSIM card. At the same time, the risk of SIM card damage caused by using mismatched voltages to power on the SIM card can be reduced.
[0248] In other embodiments of the present application, a method for powering on a SIM card is also provided. The method can be applied to electronic devices that support eSIM cards, such as mobile phones. In some embodiments, the mobile phone supports the simultaneous use of dual cards, and both card slots of the mobile phone support eSIM cards. Alternatively, the mobile phone supports the use of a single card, and the single card slot supports eSIM cards. After the mobile phone receives the card power-on instruction, the mobile phone first obtains the card type of the card to be powered on corresponding to the card power-on instruction. Afterwards, according to the card type, the power-on voltage supported by the card to be powered on can be obtained. Afterwards, when the mobile phone powers on the card to be powered on, each time the card to be powered on is powered on, it can be powered on with the power-on voltage supported by the card to be powered on. In some embodiments, the power-on method of the SIM card may specifically include the following steps:
[0249] The mobile phone responds to the card power-on instruction and obtains the card type of the card to be powered on corresponding to the card power-on instruction. Then, the mobile phone obtains the power-on voltage supported by the card to be powered on according to the card type of the card to be powered on. The mobile phone uses the power-on voltage supported by the card to be powered on to power on the card to be powered on. If the mobile phone does not receive the ATR returned by the card to be powered on within the preset time, the mobile phone returns to the step of using the power-on voltage supported by the card to be powered on to power on the card to be powered on until the card to be powered on is successfully powered on.
[0250] Among them, the power-on type of the card to be powered on may be an eSIM card. In some embodiments, when the card type of the card to be powered on is an eSIM card, the eSIM card may support only one power-on voltage, such as voltage 1. In this case, when the mobile phone attempts to power on the card to be powered on, it may use the same voltage (voltage 1) each time to try to power on the card to be powered on. In other embodiments, the first power-on voltage supported by the eSIM card may also include multiple. In this case, when the mobile phone attempts to power on the card to be powered on, it may also use the power-on voltages supported by each card to be powered on to power on the card to be powered on in sequence.
[0251] In other embodiments, the mobile phone may also support a physical SIM card. When the card type of the card to be powered on is a physical SIM card, the physical SIM card may support multiple power-on voltages. In this case, each time the mobile phone attempts to power on the card to be powered on, it may sequentially use one of the multiple power-on voltages supported by the physical SIM card to power on the card to be powered on. For example, the power-on voltages supported by the physical SIM card include voltage 1 and voltage 2. When the mobile phone powers on the card to be powered on for the first time, the mobile phone may use voltage 1 to power on the card to be powered on. When the mobile phone powers on the card to be powered on for the second time, the mobile phone may use voltage 2 to power on the card to be powered on.
[0252] In some embodiments, if the mobile phone does not receive the ATR returned by the card to be powered on within a preset time, and returns to the process of using the power-on voltage supported by the card to be powered on to power on the card to be powered on, the mobile phone can first query the number of power-on times of the card to be powered on. Then the mobile phone can determine whether it is necessary to power on the card to be powered on again based on whether the number of power-on times is less than the preset number. Exemplarily, when the number of power-on times is less than the preset number, the mobile phone can try to power on the card to be powered on again. If the number of power-on times is greater than or equal to the preset number, the mobile phone can stop powering on the card to be powered on.
[0253] In the technical solution provided in the embodiment of the present application, when the mobile phone needs to power on the SIM card, it will first obtain the card type of the card to be powered on. According to the card type, the power-on voltage supported by the card to be powered on can be obtained. After that, each time the mobile phone attempts to power on the card to be powered on, the power-on voltage supported by the card to be powered on can be used to power on the card to be powered on. Taking the eSIM card as an example, if the ATR returned by the card to be powered on is not received within the preset time after the first power-on attempt, the mobile phone can continue to power on the eSIM card using voltage 1 until the power-on is successful or the number of power-ons is greater than or equal to the preset number. In this way, the problem of power-on failure caused by using a power-on voltage that is not supported by the SIM card to power on the SIM card can be avoided. At the same time, the risk of SIM card damage caused by using an unmatched voltage to power on the SIM card can be reduced.
[0254] Furthermore, if the mobile phone does not receive the ATR returned by the card to be powered on within a preset time, and the number of times the card to be powered on is greater than or equal to the preset number of times, the mobile phone can also send a prompt message to the user that the card to be powered on cannot be used (abnormal). In this way, if the mobile phone does not receive the ATR returned by the eSIM card after powering on the eSIM card for many times, the user can be promptly prompted that the eSIM card is abnormal.
[0255] If the card to be powered on is an eSIM card, and the target software interface corresponding to the card to be powered on also supports physical SIM cards, the prompt information can be used to prompt the user that the eSIM card cannot be used (abnormal), and whether the card position corresponding to the target software interface needs to be switched to a physical SIM card. In this way, if the target software interface corresponding to the card to be powered on also supports physical SIM cards, the user can also be asked whether he needs to switch to a physical SIM card. This provides the user with a solution when the eSIM card cannot be used.
[0256] Alternatively, if the card to be powered on is an eSIM card, and the target software interface corresponding to the card to be powered on does not support physical SIM cards, the prompt information can be used to remind the user that the eSIM card cannot be used and it is recommended to restart the phone. In this way, a solution can be provided to the user when the eSIM card cannot be used.
[0257] In some other embodiments of the present application, some SIM card power-on methods are also provided, which can be applied to electronic devices that support eSIM cards, such as mobile phones. In some embodiments, the mobile phone supports dual SIM cards at the same time, and both card slots of the mobile phone support eSIM cards. Alternatively, the mobile phone supports single card use, and the single card slot supports eSIM cards.
[0258] In some embodiments, the method includes: the mobile phone responds to the card power-on instruction, and uses the first voltage to power on the card to be powered on corresponding to the card power-on instruction. If the first response message returned by the card to be powered on is not received within the first preset time, the card type of the card to be powered on is obtained. Among them, the first response message corresponds to the use of the first voltage to power on the card to be powered on. In the case that the card type of the card to be powered on is an eSIM card, the second voltage is used to power on the card to be powered on. The second voltage is the power-on voltage supported by the eSIM card. In this solution, if the mobile phone supports the eSIM card, the method can be used to power on the eSIM card. It can avoid using a voltage that is not supported by the eSIM card to power on.
[0259] In some embodiments, the first voltage is the same as the second voltage.
[0260] In some embodiments, after using the second voltage to power on the card to be powered on, the method may also include: if no second response message returned by the card to be powered on is received within a second preset time, returning to the step of using the second voltage to power on the card to be powered on until the card to be powered on is successfully powered on.
[0261] In some embodiments, after using the second voltage to power on the card to be powered on, the method may also include: if no second response message returned by the card to be powered on is received within a second preset time, and the number of times the card to be powered on is powered on is less than a preset number, then returning to the step of using the second voltage to power on the card to be powered on until the card to be powered on is successfully powered on.
[0262] The specific implementation process and technical effects of this method can refer to the previous description.
[0263] Some other embodiments of the present application provide an electronic device (such as mobile phone 1). The electronic device may include: one or more SIM card interfaces, a memory and one or more processors. The electronic device supports one or more eSIM cards. The memory and one or more SIM card interfaces are coupled to the processor respectively. The one or more SIM card interfaces are used to insert and connect physical SIM cards. The memory is used to store configuration files of eSIM cards. The memory is also used to store computer program codes, which include computer instructions. When the processor executes the computer instructions, the electronic device can execute the various functions or steps executed by the mobile phone in some embodiments of the above method, such as Fig. 7A , Figure 7B , Figure 8 as well as Fig.11 The structure of the electronic device can refer to Figure 6 The structure of the electronic device 100 is shown.
[0264] 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 up a physical SIM card and / or an eSIM card.
[0265] Some other embodiments of the present application provide an electronic device (such as mobile phone 1). The electronic device may include: a memory and one or more processors. The electronic device supports one or more eSIM cards. The memory and one or more eSIM cards are coupled to the processor respectively. The memory is used to store the configuration file of the eSIM card. 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 executed by the mobile phone in some embodiments of the above method.
[0266] The present application also provides a chip system, such as Fig.12 As 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.
[0267] 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.
[0268] 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.
[0269] 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.
[0270] 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.
[0271] 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.
[0272] 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.
[0273] 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.
[0274] 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 powering on a user identity module SIM card, characterized in that: The method is applied to an electronic device, the electronic device supports a physical SIM card and an embedded eSIM card; the method comprises: In response to a card power-on instruction, a first voltage is used to power on the card to be powered on corresponding to the card power-on instruction; the first voltage is a power-on voltage supported by both the physical SIM card and the eSIM card; the card power-on instruction is triggered by powering on the electronic device; or, the card power-on instruction is triggered by receiving a third operation of the user; the third operation is used to instruct the electronic device to enable the physical SIM card or the eSIM card; If the first response message returned by the card to be powered on is not received within the first preset time, the card type of the card to be powered on is obtained; the card type of the card to be powered on includes: a physical SIM card and an eSIM card, and the first response message corresponds to using the first voltage to power on the card to be powered on; In the case that the card type of the card to be powered on is an eSIM card, the card to be powered on is powered on by using a second voltage; the second voltage is a power-on voltage supported by the eSIM card.
2. The method according to claim 1, characterized in that The second voltage is the same as the first voltage.
3. The method according to claim 1 or 2, characterized in that: After the second voltage is used to power on the card to be powered on, the method further includes: If the second response message returned by the card to be powered on is not received within the second preset time, the step of using the second voltage to power on the card to be powered on is returned to until the card to be powered on is successfully powered on; wherein, the second response message corresponds to using the second voltage to power on the card to be powered on.
4. The method according to claim 3, characterized in that The method further comprises: After the card to be powered on is powered on each time, the number of power-on times of the card to be powered on is updated; after the card to be powered on is powered on successfully, the number of power-on times is reset; If the second response message returned by the card to be powered on is not received within the second preset time, returning to the step of using the second voltage to power on the card to be powered on until the card to be powered on is successfully powered on, includes: If the second response message returned by the card to be powered on is not received within the second preset time, and the power-on times are less than the preset times, the step of using the second voltage to power on the card to be powered on is returned to until the card to be powered on is powered on successfully.
5. The method according to claim 4, characterized in that The electronic device includes a SIM card interface, and the target software interface corresponding to the card to be powered on supports the eSIM card and a physical SIM card inserted into the SIM card interface; When the card type of the card to be powered on is the eSIM card, the power-on circuit corresponding to the target software interface is connected to the eSIM card; the method further includes: If no second response message returned by the card to be powered on is received within the second preset time, and the power-on times are greater than or equal to the preset times, the power-on circuit corresponding to the target software interface is switched to connect to the SIM card interface.
6. The method according to claim 5, characterized in that If the second response message returned by the card to be powered on is not received within the second preset time, and the number of power-on times is greater than or equal to the preset number, switching the power-on circuit corresponding to the target software interface to the SIM card interface includes: If the second response message returned by the card to be powered on is not received within the second preset time, and the number of power-on times is greater than or equal to the preset number, a prompt message is issued; the prompt message is used to prompt that the eSIM card is abnormal and ask whether to switch to the physical SIM card; A first operation triggered by the user based on the prompt information is received, and a power-on circuit corresponding to the target software interface is switched and connected to the SIM card interface.
7. The method according to any one of claims 1 to 6, characterized in that The electronic device includes a SIM card interface; a physical SIM card is inserted into the SIM card interface of the electronic device; after obtaining the card type of the card to be powered on, the method further includes: When the card type of the card to be powered on is the physical SIM card, the card to be powered on is powered on by a third voltage; the third voltage is a power-on voltage supported by the physical SIM card; and the third voltage is different from the first voltage.
8. The method according to any one of claims 1 to 7, characterized in that After the first voltage is used to power on the card to be powered on corresponding to the card power-on instruction in response to the card power-on instruction, the method further includes: If a first response message returned by the card to be powered on is received within the first preset time, determining whether the card to be powered on supports the first voltage according to the first response message; In a case where it is determined according to the first response message that the card to be powered on supports the first voltage, the card to be powered on is identified.
9. The method according to any one of claims 1 to 8, characterized in that The card power-on instruction is triggered by the electronic device receiving a second operation from the user; the second operation is used to instruct the electronic device to switch between the physical SIM card and the eSIM card.
10. An electronic device, characterized in that: The electronic device includes one or more processors and a memory, the electronic device supports one or more eSIM cards, and the memory stores a configuration file of the eSIM card; The memory is coupled to the processor; The electronic device also includes: one or more SIM card interfaces; the one or more SIM card interfaces are used to insert a physical SIM card; the one or more SIM card interfaces are coupled to the processor; the memory stores computer program code, the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-9.
11. The electronic device according to claim 10, characterized in that: The processor includes: a modem; the modem is used to power on a 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
Electronic equipment and terminal
CN218514375U