WO2021036809A1 - 一种sim模块的管理方法及电子设备 - Google Patents

一种sim模块的管理方法及电子设备 Download PDF

Info

Publication number
WO2021036809A1
WO2021036809A1 PCT/CN2020/109007 CN2020109007W WO2021036809A1 WO 2021036809 A1 WO2021036809 A1 WO 2021036809A1 CN 2020109007 W CN2020109007 W CN 2020109007W WO 2021036809 A1 WO2021036809 A1 WO 2021036809A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
plug
sim module
sim
card
Prior art date
Application number
PCT/CN2020/109007
Other languages
English (en)
French (fr)
Inventor
李涛
王泽智
李春霖
韩笑
张鑫
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US17/639,191 priority Critical patent/US20220330007A1/en
Priority to EP20858235.3A priority patent/EP4021042B1/en
Publication of WO2021036809A1 publication Critical patent/WO2021036809A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • This application relates to the field of electronic equipment, and in particular to a method for managing a subscriber identity module (SIM) module and electronic equipment.
  • SIM subscriber identity module
  • SIM module In the continuous advancement of science and technology, electronic devices such as mobile phones have become the preferred tools for communication in people's daily life and work.
  • an electronic device accesses a cellular mobile network, it needs to use a SIM module to implement authentication.
  • the traditional SIM module requires the user to apply for and activate in the business hall of the operator, or through the operator’s online business hall to select a number to access the network, and then the operator will mail the SIM module to the user by express delivery, and the user will complete it after receiving it. activation.
  • the activated SIM module can only be used after it is inserted into the physical card slot of the electronic device, and the timeliness and experience are not very good.
  • embedded-SIM embedded-SIM, eSIM
  • the eSIM technology embeds a universal integrated circuit card in an electronic device, which is called an embedded universal integrated circuit card (eUICC).
  • eUICC embedded universal integrated circuit card
  • the eUICC can store multiple eSIM configuration files of the operator, and each eSIM configuration file can independently constitute a SIM application.
  • the SIM application can be referred to as an eSIM module.
  • the mobile phone either supports one traditional SIM module and one eSIM module, but can only realize the dual-card single-standby function, or supports one traditional SIM module and one eSIM module, and can realize the dual-card dual-standby function.
  • the mobile phone there is no solution that supports dual SIM modules and eSIM modules.
  • the embodiments of the present application provide a SIM module management method and electronic equipment.
  • a solution supporting eSIM modules is provided, so that the compatibility between the dual SIM modules and the eSIM module is realized.
  • an embodiment of the present application provides an electronic device, which may include: a processor, a first modem, a second modem, a mobile communication module, a first SIM module interface, a second SIM module interface, eUICC, eUICC Used to store the eSIM module; wherein the processor is coupled with the first modem, the second modem, the mobile communication module, the first SIM module interface, the second SIM module interface and the eUICC; the processor is used to control the first SIM module interface, The connection relationship between the second SIM module interface and eUICC, and the first modem and the second modem.
  • the electronic device in the embodiment of the present application can support three SIM modules, and can select two SIM modules from these three SIM modules arbitrarily according to the user's settings, or be able to select from these three SIM modules at the same time. Choose a SIM module arbitrarily in the network standby.
  • the electronic device further includes an SCI.
  • One end of the SCI is coupled to the processor, and the other end of the SCI is coupled to the second SIM module interface and eUICC at the same time; the processor is used to control the first SIM module interface and the second SIM module.
  • the interface and eUICC, the connection relationship with the first modem and the second modem include a processor, which is used to control the second SIM module interface and the eUICC by controlling the SCI, and the connection relationship with the first modem and the second modem. In this way, the connection relationship between the plug-in SIM module interfaced with the second SIM module and the eSIM module activated in the eUICC and the network can be controlled through the SCI.
  • the processor is also used to set the card when any of the following situations is detected: the first plug-in SIM module is inserted into the first SIM module interface; the second plug-in SIM The module is inserted into the second SIM module interface; the first plug-in SIM module connected to the first SIM module interface is pulled out; the second plug-in SIM module connected to the second SIM module interface is pulled out; the first SIM module interface is connected When the first plug-in SIM module, the first plug-in SIM module changes from the enabled state to the disabled state; when the second SIM module interface is connected to the second plug-in SIM module, the second plug-in SIM module changes from the enabled state to the disabled state.
  • the first eSIM module changes from the enabled state to the disabled state, the first eSIM module is the currently activated eSIM module stored in the eUICC; the first eSIM module is deleted; the second eSIM module is installed and activated.
  • the primary and secondary card settings are performed to ensure the connection of the electronic device to the network.
  • the processor when the processor detects that the first plug-in SIM module is inserted into the first SIM module interface, the processor performs card setting, including: the processor obtains card information of the first plug-in SIM module The processor determines whether the electronic device activates the eSIM module; if the electronic device does not activate the eSIM module, and the electronic device is only inserted into the first plug-in SIM module, the processor sets the first plug-in SIM module as the master card.
  • the second plug-in SIM module is interfaced with the second SIM module .
  • the processor sets the first plug-in SIM module as the main card and sets the second plug-in SIM module as the secondary card when the first plug-in SIM module is set as the primary card by the user before determining the first plug-in SIM module according to the card information; Card information, when it is determined that the first plug-in SIM module has not been set as the main card by the user before, if the first SIM module interface is the main card slot, the first plug-in SIM module is set as the main card, and the second plug-in SIM is set The module is a secondary card.
  • the second SIM module interface is the main card slot
  • the second plug-in SIM module is set as the main card
  • the first plug-in SIM module is set as the secondary card.
  • the card settings can be performed according to the acquired card information of the SIM module whose status has changed and the user's setting habits, so that when the status of the SIM module changes, the set main card conforms to the user's setting habits, improving the user's experience.
  • the processor sets the first plug-in SIM when the first plug-in SIM module is set as the master card by the user before determining the first plug-in SIM module according to the card information
  • the module is the primary card
  • the first eSIM module is set as the secondary card; according to the card information, the processor determines that the first plug-in SIM module has not been set as the primary card by the user before determining that the first SIM module interface is the primary card slot.
  • the card setting can be performed according to the acquired card information of the SIM module whose status has changed and the user's setting habits, so that when the status of the SIM module changes, the set main card conforms to the user's setting habits, improving the user's experience.
  • the processor when the processor detects that the second plug-in SIM module is inserted into the second SIM module interface, the processor performs card setting, including: the processor obtains card information of the second plug-in SIM module ; When the electronic device does not activate the eSIM module, and the electronic device is only inserted into the second plug-in SIM module, the processor sets the second plug-in SIM module as the master card.
  • the eSIM module is not activated in the electronic device, and the second plug-in SIM module and the first plug-in SIM module are inserted into the electronic device, and the first plug-in SIM module is interfaced with the first SIM module
  • the processor is set as the primary card by the user before determining the second plug-in SIM module according to the card information
  • the second plug-in SIM module is set as the primary card and the first plug-in SIM module is set as the secondary card
  • Card information when it is determined that the second plug-in SIM module has not been set as the main card by the user before, if the second SIM module interface is the main card slot, set the second plug-in SIM module as the main card and set the first plug-in SIM
  • the module is a secondary card.
  • the interface of the first SIM module is the primary card slot
  • the first plug-in SIM module is set as the primary card
  • the second plug-in SIM module is set as the secondary card.
  • the card settings can be performed according to the acquired card information of the SIM module whose status has changed and the user's setting habits, so that when the status of the SIM module changes, the set main card conforms to the user's setting habits, improving the user's experience.
  • the processor when the processor detects that the first plug-in SIM module connected to the first SIM module interface is pulled out, or when the first plug-in SIM module changes from an enabled state to a disabled state, If the first plug-in SIM module is set as the master card, the processor performs card settings, including: the processor determines whether the electronic device has activated the eSIM module; if the electronic device does not activate the eSIM module, and the second SIM module interface is connected to the second Plug-in SIM module, the processor sets the second plug-in SIM module as the main card; if the electronic device activates the first eSIM module and the second SIM module interface is not connected to the plug-in SIM module, the processor sets the first eSIM module If the electronic device activates the first eSIM module, and the second SIM module interface is connected to the second plug-in SIM module, when the eUICC is connected to the modem, the first eSIM module is set as the master card, and the second SIM module is When the module interface is connected to the modem,
  • the processor when the processor detects that the second plug-in SIM module connected to the second SIM module interface is pulled out, or when the second plug-in SIM module changes from an enabled state to a disabled state, If the second plug-in SIM module is set as the main card, the processor performs card settings, including: the processor determines whether the electronic device has activated the eSIM module; if the electronic device does not activate the eSIM module, and the first SIM module interface is connected to the first If the electronic device has a plug-in SIM module, the processor sets the first plug-in SIM module as the main card; if the electronic device activates the first eSIM module, it sets the first eSIM module as the main card.
  • the processor when the processor detects that the first eSIM module is changed from the enabled state to the disabled state, if the first eSIM module is set as the master card, the processor performs card settings, including: Determine whether the second SIM module interface is connected to the plug-in SIM module; if the second SIM module interface is connected to the second plug-in SIM module, the processor sets the second plug-in SIM module as the main card; if the second SIM module interface is not If the plug-in SIM module is connected, and the first plug-in SIM module is connected to the first SIM module interface, the processor sets the first plug-in SIM module as the master card.
  • the processor when the processor detects that the second eSIM module is installed and activated, the processor performs card settings including: the processor obtains card information of the second eSIM module; if the interface of the first SIM module is not Insert the plug-in SIM module, the processor sets the second eSIM module as the main card; if the first plug-in SIM module is inserted into the first SIM module interface, the processor is used by the user before determining the second eSIM module according to the card information When the second eSIM module is set as the primary card, the second eSIM module is set as the primary card, and the first plug-in SIM module is set as the secondary card.
  • the processor determines that the second eSIM module is not set as the primary card by the user before determining the second eSIM module. If a SIM module interface is the main card slot, set the first plug-in SIM module as the main card and set the second eSIM module as the secondary card. If the second SIM module interface is the main card slot, set the second eSIM module as the main card , Set the first plug-in SIM module as the secondary card.
  • the card settings can be performed according to the acquired card information of the SIM module whose status has changed and the user's setting habits, so that when the status of the SIM module changes, the set main card conforms to the user's setting habits, improving the user's experience.
  • the processor when the processor detects that the first eSIM module is deleted, if the current eUICC is connected to the modem and the first eSIM module is set as the master card, the processor performs card settings, including: processing The processor determines whether the second SIM module interface is connected to the plug-in SIM module; if the second SIM module interface is connected to the second plug-in SIM module, the processor sets the second plug-in SIM module as the master card; if the second SIM module interface is If the plug-in SIM module is not connected, and the first plug-in SIM module is connected to the first SIM module interface, the processor sets the first plug-in SIM module as the master card.
  • embodiments of the present application provide a method for managing a SIM module, which can be applied to an electronic device, and the electronic device may include: a first SIM module interface, a second SIM module interface, eUICC, eUICC for storing eSIM Module; the first plug-in SIM module connected to the electronic device through the first SIM module interface, the second plug-in SIM module connected to the second SIM module interface, and the currently active eSIM module in the eUICC.
  • Network connection, or any one of the three SIM modules is connected to the network.
  • the electronic device in the embodiment of the present application can support three SIM modules, and the electronic device can select two SIM modules from these three SIM modules arbitrarily according to the user's settings, or be able to wait on the network at the same time. Any one of the SIM modules is selected to be on standby in the network.
  • the eUICC may not be included in the electronic device, and the eSIM module may be implemented in a software-wide manner.
  • the eSIM module may not be included in the electronic device, and the electronic device may only be included in the electronic device after the user downloads the eSIM module. Includes eSIM module.
  • the electronic device is connected to the first plug-in SIM module through the first SIM module interface, the second plug-in SIM module connected to the second SIM module interface, and the currently activated eSIM module in the eUICC.
  • the two SIM modules are connected to the network at the same time, including: the electronic device is connected to the network through the second plug-in SIM module and one of the currently activated eSIM module in the eUICC, and the first plug-in SIM module is simultaneously connected to the network.
  • the method may further include: when the electronic device detects that any of the following situations occurs, setting the card: the first plug-in SIM module is inserted into the first SIM module interface; the second plug-in SIM module is inserted into the first SIM module interface; SIM module is inserted into the second SIM module interface; the first plug-in SIM module connected to the first SIM module interface is pulled out; the second plug-in SIM module connected to the second SIM module interface is pulled out; the first SIM module interface
  • the first plug-in SIM module changes from the enabled state to the disabled state
  • the second SIM module interface is connected to the second plug-in SIM module, the second plug-in SIM module changes from the enabled state It is in a disabled state
  • the first eSIM module changes from an enabled state to a disabled state, the first eSIM module is the currently activated eSIM module stored in the eUICC; the first eSIM module is deleted; the second eSIM module is installed and activated.
  • the electronic device when the electronic device detects that the first plug-in SIM module is inserted into the first SIM module interface, the electronic device performs card setting, including: the electronic device obtains card information of the first plug-in SIM module The electronic device determines whether the electronic device activates the eSIM module; if the electronic device does not activate the eSIM module, and the electronic device is only inserted into the first plug-in SIM module, the electronic device sets the first plug-in SIM module as the master card.
  • the electronic device does not activate the eSIM module, and the electronic device is inserted into the first plug-in SIM module and the second plug-in SIM module, the second plug-in SIM module is interfaced with the second SIM module ,
  • the electronic device sets the first plug-in SIM module as the primary card and the second plug-in SIM module as the secondary card when the user is set as the primary card before determining the first plug-in SIM module according to the card information;
  • Card information when it is determined that the first plug-in SIM module has not been set as the main card by the user before, if the first SIM module interface is the main card slot, the first plug-in SIM module is set as the main card, and the second plug-in SIM is set
  • the module is a secondary card. If the second SIM module interface is the main card slot, the second plug-in SIM module is set as the main card, and the first plug-in SIM module is set as the secondary card.
  • the electronic device if the electronic device activates the first eSIM module, the electronic device sets the first plug-in SIM when it is set as the master card by the user before determining the first plug-in SIM module according to the card information
  • the module is the primary card, and the first eSIM module is set as the secondary card; when the electronic device determines that the first plug-in SIM module is not set as the primary card by the user before determining the first plug-in SIM module according to the card information, if the interface of the first SIM module is the primary card slot, then Set the first plug-in SIM module as the primary card, set the first eSIM module as the secondary card, if the second SIM module interface is the primary card slot, set the first eSIM module as the primary card, and set the first plug-in SIM module as the secondary card card.
  • the electronic device when the electronic device detects that the second plug-in SIM module is inserted into the second SIM module interface, the electronic device performs card setting, including: the electronic device obtains card information of the second plug-in SIM module ; When the electronic device does not activate the eSIM module, and the electronic device is only inserted into the second plug-in SIM module, the electronic device sets the second plug-in SIM module as the main card.
  • the eSIM module is not activated in the electronic device, and the second plug-in SIM module and the first plug-in SIM module are inserted into the electronic device, and the first plug-in SIM module is interfaced with the first SIM module
  • the electronic device is set as the primary card by the user before determining the second plug-in SIM module according to the card information
  • the second plug-in SIM module is set as the primary card and the first plug-in SIM module is set as the secondary card
  • Card information when it is determined that the second plug-in SIM module has not been set as the main card by the user before, if the second SIM module interface is the main card slot, set the second plug-in SIM module as the main card and set the first plug-in SIM
  • the module is a secondary card. If the interface of the first SIM module is the primary card slot, the first plug-in SIM module is set as the primary card, and the second plug-in SIM module is set as the secondary card.
  • the electronic device when the electronic device detects that the first plug-in SIM module connected to the first SIM module interface is pulled out, or when the first plug-in SIM module changes from an enabled state to a disabled state, If the first plug-in SIM module is set as the master card, the electronic device performs card settings, including: the electronic device determines whether the electronic device has activated the eSIM module; if the electronic device does not activate the eSIM module, and the second SIM module interface is connected to the second SIM module Plug-in SIM module, the electronic device sets the second plug-in SIM module as the main card; if the electronic device activates the first eSIM module and the second SIM module interface is not connected to the plug-in SIM module, the electronic device sets the first eSIM module The primary card; if the electronic device activates the first eSIM module and the second SIM module interface is connected to the second plug-in SIM module, when the electronic device is connected to the network through the first eSIM module in the eUICC, the electronic device sets the first The e
  • the electronic device when the electronic device detects that the second plug-in SIM module connected to the second SIM module interface is pulled out, or when the second plug-in SIM module changes from an enabled state to a disabled state, If the second plug-in SIM module is set as the main card, the electronic device performs card settings, including: the electronic device determines whether the electronic device has activated the eSIM module; if the electronic device does not activate the eSIM module, and the first SIM module interface is connected to the first With a plug-in SIM module, the electronic device sets the first plug-in SIM module as the main card; if the electronic device activates the first eSIM module, the electronic device sets the first eSIM module as the main card.
  • the electronic device when the electronic device detects that the first eSIM module is changed from the enabled state to the disabled state, if the first eSIM module is set as the master card, the electronic device performs card settings, including: electronic device Determine whether the second SIM module interface is connected to the plug-in SIM module; if the second SIM module interface is connected to the second plug-in SIM module, the electronic device sets the second plug-in SIM module as the main card; if the second SIM module interface is not If the plug-in SIM module is connected, and the first plug-in SIM module is connected to the first SIM module interface, the electronic device sets the first plug-in SIM module as the master card.
  • the electronic device when the electronic device detects that the second eSIM module is installed and activated, the electronic device performs card settings including: the electronic device obtains card information of the second eSIM module; if the first SIM module interface is not If the plug-in SIM module is inserted, the electronic device sets the second eSIM module as the main card; if the first plug-in SIM module is inserted into the first SIM module interface, the electronic device is used by the user before determining the second eSIM module according to the card information When the second eSIM module is set as the primary card, the second eSIM module is set as the primary card, and the first plug-in SIM module is set as the secondary card.
  • the electronic device has not been set as the primary card by the user before determining the second eSIM module. If a SIM module interface is the main card slot, set the first plug-in SIM module as the main card and set the second eSIM module as the secondary card. If the second SIM module interface is the main card slot, set the second eSIM module as the main card , Set the first plug-in SIM module as the secondary card.
  • the electronic device when the electronic device detects that the first eSIM module is deleted, if the current electronic device is connected to the network through the first eSIM module in the eUICC, and the first eSIM module is set as the master card, the electronic The device performs card settings, including: the electronic device determines whether the second SIM module interface is connected to the plug-in SIM module; if the second SIM module interface is connected to the second plug-in SIM module, the electronic device sets the second plug-in SIM module as the primary Card; if the second SIM module interface is not connected to the plug-in SIM module, and the first SIM module interface is connected to the first plug-in SIM module, the electronic device sets the first plug-in SIM module as the main card.
  • the electronic device is connected to the network through one of the second plug-in SIM module and the currently activated eSIM module in the eUICC, including: the electronic device displays a first interface, and the first interface includes the first interface. A button and a second button; the electronic device receives the user's selection operation of the first button, the first button is selected, and the second button is not selected.
  • the electronic device passes through the second plug-in SIM module Connected to the network; the electronic device receives the user's selection operation on the second button, the second button is selected, and the first button is not selected.
  • the electronic device is connected to the network through the second plug-in SIM module .
  • the method may further include: the electronic device displays a second interface, and the second interface includes a third button; the electronic device receives a user's operation on the third button; responding to the operation on the third button , The electronic device changes the first plug-in SIM module from the activated state to the deactivated state.
  • the method may further include: the electronic device displays a third interface, and the third interface includes a fourth button; the electronic device receives the user's operation on the fourth button; responding to the operation on the fourth button , The electronic device changes the second plug-in SIM module from the activated state to the deactivated state.
  • the method may further include: the electronic device displays a fourth interface, and the fourth interface includes a fifth button; the electronic device receives the user's operation on the fifth button; responding to the operation on the fifth button , The electronic device changes the first eSIM module from the enabled state to the disabled state.
  • the SIM module set as the primary card is used for the electronic device to transmit mobile data
  • the SIM module set as the secondary card cannot be used for the electronic device to transmit mobile data
  • embodiments of the present application provide a computer-readable storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute any of the second aspect or the possible implementation manners of the second aspect.
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the SIM module as described in the second aspect or any one of the possible implementation manners of the second aspect Management methods.
  • the embodiments of the present application provide a chip system, which is applied to an electronic device; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected by wires; the interface circuit is used to receive data from the memory of the electronic device Signal and send a signal to the processor, the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the chip system executes the SIM as described in the second aspect or any one of the possible implementation manners of the second aspect Module management method.
  • a device which has the function of implementing the behavior of the electronic device in the method provided in the second aspect.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions, for example, a communication unit or module, a setting unit or module, and so on.
  • the method described in the second aspect provided above, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, the chip system described in the fifth aspect, and the chip system described in the sixth aspect are provided above.
  • the above-mentioned devices all correspond to the above-mentioned electronic equipment of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding electronic equipment provided above, which will not be repeated here.
  • FIG. 1 is a schematic diagram of the structural composition of an electronic device supporting dual-plug-in SIM modules provided in the prior art
  • FIG. 2 is a schematic diagram of the structural composition of an electronic device supporting dual-plug-in SIM modules and eSIM modules provided by an embodiment of the application;
  • FIG. 3 is a schematic structural composition diagram of another electronic device supporting dual-plug-in SIM modules and eSIM modules provided by an embodiment of the application;
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of the composition of a software architecture of an electronic device provided by an embodiment of this application.
  • FIG. 6 is a schematic diagram of a management interface of a SIM module provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of another SIM module management interface provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of another SIM module management interface provided by an embodiment of the application.
  • FIG. 9 is a schematic flowchart of another SIM module management method provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram of a process of updating a card account of an eSIM module according to an embodiment of the application.
  • FIG. 11 is a schematic diagram of a process of querying a card account of an eSIM module according to an embodiment of the application.
  • FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • Plug-in SIM module refers to the traditional SIM module, or called the SIM module chip. This type of SIM module requires users to go to the operator's business hall or select a number to access the network through the operator's online business hall, and insert it into the physical card slot (or SIM module interface) of the electronic device after activation. For example, electronic equipment can be connected to a cellular mobile network through it to realize functions such as call and data communication. The plug-in SIM module can also be pulled out from the physical card slot.
  • eSIM module namely embedded-SIM, embedded SIM module.
  • UICC universal integrated circuit card
  • eUICC embedded UICC
  • eSIM module chip Add electronic equipment, called embedded UICC, eUICC, or eSIM module chip.
  • the eUICC can store multiple eSIM configuration files of the operator, and each eSIM configuration file can independently constitute a SIM application.
  • the SIM application can be referred to as an eSIM module.
  • the eSIM module can implement functions similar to the plug-in SIM module.
  • the eSIM module will allow users to choose operator packages more flexibly, or change operators at any time without unlocking the device or purchasing a new device.
  • eUICC There are two packaging forms of eUICC. One is to use the surface mount device (SMD) chip packaging process, that is, the SIM module chip is directly soldered to the module of the electronic device; the other is to use SIP (Simple in Package) ) Packaging process, that is, the SIM module chip and the module chip of the electronic device are packaged together, and it looks like a chip on the outside.
  • SMD surface mount device
  • SIP Simple in Package
  • Both the plug-in SIM module and the eSIM module can be referred to as a hard SIM module.
  • the identifier used to identify the plug-in SIM module and the eSIM module may be referred to as an integrated circuit card identity (ICCID).
  • the identifier used to identify the eUICC may be referred to as an embedded universal integrated circuit card identifier (eUICC identify, EID).
  • Soft SIM soft SIM
  • vSIM virtual-SIM
  • It is a SIM module that is different from a hard SIM module. It is a virtual entity, that is, there is no physical SIM module, and communication is implemented based on the software and hardware of the communication module.
  • Multi-card single-standby function It can refer to an electronic device, such as a mobile phone that can be connected to multiple SIM modules at the same time. Only one SIM module of these multiple SIM modules can be on the Internet at the same time, that is, the electronic device can only pass through one of the SIM modules It is connected to the cellular mobile network for data interaction to realize functions such as call and data communication.
  • Multi-card dual-standby function can refer to an electronic device, such as a mobile phone that can be connected to multiple SIM modules at the same time, two of the multiple SIM modules can be on the Internet at the same time, that is, the electronic device can pass through two of the SIM modules at the same time
  • the module is connected to the cellular mobile network for data interaction to realize functions such as call and data communication.
  • each of the multiple SIM modules may refer to two or more than two SIM modules.
  • each of the multiple SIM modules may be a plug-in SIM module, an eSIM module or a soft SIM module.
  • the mobile phone either only supports plug-in SIM module, or only supports eSIM module, or supports one plug-in SIM module and one eSIM module, but can only realize dual card single standby function, or supports one plug-in SIM module And an eSIM module, and can realize dual card dual standby function.
  • the dual SIM module may be two plug-in SIM modules, or one plug-in SIM module and one soft SIM module.
  • the dual SIM module may be two plug-in SIM modules, or one plug-in SIM module and one soft SIM module.
  • the electronic device can support three SIM modules.
  • the three SIM modules include at least one eSIM module.
  • the remaining two SIM modules may both be plug-in SIM modules, or one plug-in SIM module and one soft SIM module.
  • the user can arbitrarily select two SIM modules from the three SIM modules to be on the network standby at the same time, or can arbitrarily select one SIM module from the three SIM modules to be on the network standby.
  • each of the three SIM modules supported by the electronic device may be a SIM module that supports the global system for mobile communication (GSM) standard, and the universal mobile communication system (universal mobile telecommunications).
  • GSM global system for mobile communication
  • UMTS universal mobile communication system
  • TD-SCDMA time division-synchronous code division multiple access
  • LTE long term evolution
  • CDMA code division multiple access
  • the electronic device supports two plug-in SIM modules and one eSIM module as an example to introduce the embodiments of the present application in detail.
  • FIG. 1 is a schematic diagram of the structure of an electronic device supporting dual-plug-in SIM modules provided in the prior art.
  • the electronic device may include: SIM module interface 1 and SIM module interface 2 (SIM module interface may also be referred to as a physical card slot, that is, the electronic device may include physical card slot 1 and physical card slot 2). They are used to connect plug-in SIM modules.
  • SIM module interface 1 can be used to connect to the plug-in SIM module 1
  • the SIM module interface 2 can be used to connect to the plug-in SIM module 2.
  • the electronic device also includes a modem (modem) 0 and a modem 1, and a smart card interface (smart card interface, SCI).
  • modem modem
  • SCI smart card interface
  • the software located in the upper layer of these hardwares can control the connection relationship between different modems and different SIM module interfaces through SCI according to the user's choice.
  • the electronic device can be connected to the cellular mobile network through each plug-in SIM module and its connected modem to perform data interaction and realize functions such as call and data communication. , You can realize the dual card dual standby function.
  • FIG. 2 is a schematic diagram of the structural composition of an electronic device supporting dual-plug-in SIM modules and eSIM modules provided by an embodiment of this application.
  • an eSIM module or eUICC, eUICC is used to store the eSIM module
  • SCI1 cooperates with SCI to control the connection relationship between different modems and different SIM module interfaces or eSIM modules (or eUICC).
  • Plug-in SIM modules are connected to the two SIM module interfaces (that is, physical card slots), and when the eSIM module is activated at the same time, the electronic device passes through two of the three SIM modules (such as two plug-in SIM modules).
  • the module, or a plug-in SIM module and an eSIM module), and its connected modem can be connected to the cellular mobile network for data interaction to realize functions such as call and data communication, which can realize the three-card dual-standby function.
  • the electronic device can also be connected to the cellular mobile network through the eSIM module and the connected modem.
  • the SIM module interface 1 is connected to the plug-in SIM module, but the SIM module interface 2 is not connected to the plug-in SIM module, and the eSIM module is activated
  • the electronic device passes through the plug-in SIM module and the eSIM module, and the connected
  • the modem can also be connected to the cellular mobile network separately.
  • the electronic device passes through the plug-in SIM module or eSIM module, and its connected The modem can be connected to the cellular mobile network.
  • the electronic device can also be connected to the cellular mobile network through the two plug-in SIM modules and the connected modem.
  • the electronic device can also be connected to the cellular mobile network through the plug-in SIM module and its connected modem .
  • SCI 1 can be implemented by hardware or software, which is not specifically limited in this embodiment.
  • the structural composition diagram of the electronic device supporting the dual-plug-in SIM module and the eSIM module shown in FIG. 2 is based on the eSIM module (or eUICC) and the SIM on the hardware.
  • Module interface 2 is connected as an example.
  • only one of the eSIM module and the plug-in SIM module 2 inserted into the SIM module interface 2 can be on standby in the network, that is, only the plug-in SIM module 1 inserted into the SIM module interface 1 can be used with the eSIM module or the plug-in SIM module.
  • the plug-in SIM module 2 of the interface 2 realizes the dual standby function.
  • the hardware eSIM module (or eUICC) can also be connected to the SIM module interface 1. In this way, only one of the eSIM module and the plug-in SIM module 1 inserted into the SIM module interface 1 can be on standby on the network, that is, only the plug-in SIM module 2 inserted into the SIM module interface 2 can be connected to the eSIM module or the plug-in SIM module interface 1.
  • the plug-in SIM module 1 realizes the dual standby function.
  • the hardware eSIM module (or eUICC) can also be connected to the SIM module interface 1 and the SIM module interface 2 at the same time. For example, as shown in FIG. 3, in addition to the hardware of the electronic device shown in FIG. 2, it may also include: SCI 2.
  • SCI 2, SCI 1, and SCI cooperate to control the connection relationship between different modems and different SIM module interfaces or eSIM modules.
  • SCI 2, SCI 1, and SCI cooperate to control the connection relationship between different modems and different SIM module interfaces or eSIM modules.
  • the plug-in SIM module 1 can realize the dual standby function.
  • the plug-in SIM module 2 and the eSIM module or the plug-in SIM module 1 can also realize the dual standby function.
  • the electronic device in the embodiment of the present application may be a device capable of connecting at least two plug-in SIM modules and supporting eSIM modules.
  • the electronic device may be a mobile phone, a smart bracelet, a smart watch, a tablet computer, etc.
  • the specific form of the electronic device is not particularly limited in this embodiment.
  • the following embodiment uses a mobile phone as an example to illustrate how an electronic device capable of connecting at least two plug-in SIM modules and supporting eSIM modules implements the specific technical solutions in the embodiments.
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of this application.
  • the electronic device 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, and a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193,
  • the display screen 194, the first SIM module interface 195, the second SIM module interface 196, and the eSIM module 197 (or the electronic device includes eUICC, which is used to store the eSIM module 197) and so on.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device.
  • the electronic device may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem 111, a graphics processing unit (GPU), and an image signal processor (image signal processor).
  • AP application processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • processor, ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can be the nerve center and command center of the electronic device.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM interface SIM interface
  • USB interface universal asynchronous transmitter/receiver
  • the aforementioned first SIM module interface 195 (such as the aforementioned SIM module interface 1) can be used to connect the plug-in SIM module 1.
  • the plug-in SIM module 1 is inserted into the first SIM module interface 195 or pulled out from the first SIM module interface 195 to achieve contact and separation with the electronic device.
  • the above-mentioned second SIM module interface 196 (such as the above-mentioned SIM module interface 2) can be used to connect the plug-in SIM module 2.
  • the plug-in SIM module 2 is inserted into the second SIM module interface 196 or pulled out from the second SIM module interface 196 to realize contact and separation with the electronic device.
  • the electronic device can be connected to the network through the plug-in SIM module 1 and/or the plug-in SIM module 2 to realize functions such as call and data communication.
  • the first SIM module interface 195 and the second SIM module interface 196 may be SIM module connectors, which include a main body with a SIM module accommodating space and a plurality of communication slots for receiving conductive terminals of the SIM module.
  • the SIM module interface can perform signaling transmission with the SIM module through conductive terminals and slots.
  • the first SIM module interface 195 and the second SIM module interface 196 can support multiple SIM module sizes, and can be compatible with different types of SIM modules, such as Nano SIM modules, Micro SIM modules, SIM modules, and so on.
  • the first SIM module interface 195 and the second SIM module interface 196 may also be compatible with external memory cards.
  • the universal integrated circuit card is embedded in the electronic device, which is called eUICC.
  • the eUICC can store multiple eSIM configuration files of the operator, and each eSIM configuration file can independently constitute a SIM application.
  • the SIM application may be referred to as an eSIM module 197.
  • the electronic device can be connected to the network through the eSIM module 197 to realize functions such as call and data communication.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • 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 charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem 111, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G and the like applied to electronic devices.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, filter, amplify, and other processing of the received electromagnetic waves, and transmit them to the modem 111 for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem 111, and convert it into electromagnetic waves through the antenna 1 and radiate it out.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem 111 may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem 111 may be a stand-alone device. In other embodiments, the modem 111 may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • emitting diode AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device may include one or N display screens 194, and N is a positive integer greater than one.
  • Electronic equipment can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194, and application processor.
  • the ISP is used to process the data fed back by the camera 193.
  • ISP can also optimize the image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the electronic device may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • 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.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device.
  • 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 magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device may be provided with at least one microphone 170C.
  • the electronic device may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals.
  • the electronic device may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
  • the pressure sensor is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor may be provided on the display screen 194.
  • the gyroscope sensor can be used to determine the movement posture of the electronic device.
  • the angular velocity of the electronic device around three axes ie, x, y, and z axis
  • the air pressure sensor is used to measure air pressure.
  • the magnetic sensor includes a Hall sensor.
  • the electronic device can use a magnetic sensor to detect the opening and closing of the flip holster.
  • the acceleration sensor can detect the magnitude of the acceleration of the electronic device in various directions (usually three axes).
  • the magnitude and direction of gravity can be detected when the electronic device is stationary. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
  • Distance sensor used to measure distance. Electronic equipment can measure distance through infrared or laser.
  • the electronic device can use the proximity light sensor to detect that the user holds the electronic device close to the ear to talk, so as to automatically turn off the screen to save power.
  • the ambient light sensor is used to sense the brightness of the ambient light.
  • the ambient light sensor can also cooperate with the proximity light sensor to detect whether the electronic device is in the pocket to prevent accidental touch.
  • the fingerprint sensor is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock fingerprints, access application locks, take photos with fingerprints, and answer calls with fingerprints.
  • the temperature sensor is used to detect temperature. In some embodiments, the electronic device uses the temperature detected by the temperature sensor to execute the temperature processing strategy.
  • the touch sensor also called “touch panel”.
  • the touch sensor may be provided on the display screen 194, and the touch screen is composed of the touch sensor and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 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.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194. Bone conduction sensors can acquire vibration signals.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device can receive key input, and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the software system of the above electronic device may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes an Android system with a layered architecture as an example to illustrate the software structure of an electronic device.
  • FIG. 5 is a schematic diagram of the composition of a software architecture of an electronic device provided by an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into three layers, from top to bottom, the application layer, the application framework layer (framework), and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include card management applications, Amazon, WeChat, settings, calculator, camera, call, SMS and other applications.
  • the card management application can provide users with various card management functions and corresponding management interfaces.
  • the card management application can provide users with SIM module management functions and corresponding interfaces, so that users can manage dual cards, such as setting eSIM modules.
  • the card management application can provide the user with a navigation service and a corresponding interface when the user is turned on, so that the user can add an eSIM module when the user is turned on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the framework is the operating frame base of the electronic device.
  • the framework may include: a telephony manager, a telephony service, an eUICC manager, and an eUICC service.
  • the phone manager, phone management service, eUICC manager, and eUICC service can provide card operation-related APIs for upper-level card management applications.
  • the upper-level card management application can implement corresponding card management functions by calling APIs related to card operations.
  • the card management application can call related APIs according to the user's settings for the plug-in SIM module, and use the phone manager and phone management services to cooperate with the SIM protocol (protocol) to configure the plug-in SIM module accordingly.
  • the card management application can also call related APIs according to the user's settings for the eSIM module, and use the eUICC manager and eUICC services to cooperate with the eSIM protocol (protocol) to configure the eSIM module accordingly.
  • plug-in SIM modules are connected to the two SIM module interfaces (ie SIM module interface 1 and SIM module interface 2), and when the eSIM module is activated at the same time, the electronic device can be realized Three card dual standby function.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer is the layer between the hardware plug-in SIM module and eUICC, and the upper framework and application layer. It can include various drivers, such as display drivers, audio drivers, and so on.
  • the card management application can also download the eSIM configuration file from the eSIM server (for example, subscription manager-data preparation+, SM-DP+) according to user operations, and can call related APIs , Through the eUICC manager and eUICC service, in conjunction with the eSIM protocol, write the downloaded eSIM configuration file into the eUICC.
  • the eSIM configuration file can also be updated.
  • the eSIM configuration file can independently form a SIM application, that is, an eSIM module.
  • SIM module management method provided in the embodiments of the present application can be applied to electronic devices that support dual-plug-in SIM modules and eSIM modules.
  • the electronic device is a mobile phone, and the structure of the electronic device is shown in FIG. 2 as an example for introduction.
  • SIM module interface 1 is the first SIM module interface in this application
  • SIM module interface 2 is the second SIM module interface in this application
  • plug-in SIM module 1 is the first plug-in interface in this application.
  • SIM module, the plug-in SIM module 2 is the second plug-in SIM module in this application.
  • the mobile phone if the state of the SIM module in the mobile phone (such as the above-mentioned plug-in SIM module or the above-mentioned eSIM module) changes, the mobile phone usually needs to perform card settings.
  • the state of the SIM module in the mobile phone such as the above-mentioned plug-in SIM module or the above-mentioned eSIM module
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed when any of the following conditions is detected: the SIM module interface (such as SIM module interface 1 or SIM module interface 2) has changed from the state of not connecting the plug-in SIM module In order to connect the plug-in SIM module (or the plug-in SIM module is inserted into the SIM module interface), the SIM module interface changes from the state of the plug-in SIM module connected to the state of not connecting the plug-in SIM module (or plug-in SIM module).
  • the SIM module interface such as SIM module interface 1 or SIM module interface 2
  • the SIM module interface changes from the state of the plug-in SIM module connected to the state of not connecting the plug-in SIM module (or plug-in SIM module).
  • the SIM module is pulled out from the SIM module interface), the plug-in SIM module is changed from the enabled state to the disabled state, the eSIM module is changed from the enabled state to the disabled state, a new eSIM module is added and activated, or the original activated The eSIM module is deleted and so on.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • a SIM module interface such as SIM module interface 1
  • the mobile phone detects that the SIM module interface 1 is not connected.
  • the state of the plug-in SIM module changes to the state where the plug-in SIM module is connected.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the mobile phone detects that the SIM module interface 1 is connected to the plug-in SIM module. The status of is changed to the status where the plug-in SIM module is not connected. At this time, the mobile phone can determine that the status of the SIM module in the mobile phone has changed.
  • a plug-in SIM module when connected to the SIM module interface (such as the SIM module interface 1 or the SIM module interface 2), the user can choose to enable or disable the plug-in SIM module in the SIM module management interface. After the user chooses to deactivate the plug-in SIM module in the SIM module management interface, the mobile phone can determine that the state of the SIM module has changed.
  • the eSIM module (or eUICC) is connected to the SIM module interface 2 in hardware, that is, there can only be one of the eSIM module and the plug-in SIM module 2 inserted into the SIM module interface 2. Standby on the network.
  • the eSIM module (or eUICC) is connected to the SIM module interface 2 in hardware, that is, there can only be one of the eSIM module and the plug-in SIM module 2 inserted into the SIM module interface 2.
  • Standby on the network for example, in conjunction with Figure 2, according to the user's choice, through the cooperation of SCI 1 and SCI, one of the SIM module interface 2 and the eSIM module can be connected to the modem to realize the eSIM module and the plug-in SIM module 2 inserted into the SIM module interface 2. One of them is on standby on the Internet.
  • the icon “card 1" 602 corresponds to the plug-in SIM module 1 inserted in the SIM interface 1
  • the icon “card 1" 602 corresponds to Controls such as button 604 can be used to set the plug-in SIM module 1.
  • the icon “card 2" 603 corresponds to the plug-in SIM module 2 inserted in the eSIM module and the SIM interface 2, and the controls corresponding to the icon “card 2" 603, such as 605, can be used to set the plug-in SIM module 2 and the eSIM module.
  • the user can click the button 604 corresponding to the icon "card 1" 602 in the SIM module management interface 601 Click to activate or deactivate the plug-in SIM module 1.
  • the button 604 (the button 604 may be the third button in this application)
  • the display state of is used to indicate that the plug-in SIM module 1 is currently in the enabled state. If the user wants to deactivate the plug-in SIM module 1, the button 604 can be clicked.
  • the mobile phone will change the plug-in SIM module 1 from the activated state to the deactivated state.
  • the mobile phone detects that the plug-in SIM module 1 is changed from the enabled state to the disabled state, it can be determined that the state of the SIM module in the mobile phone has changed. After the plug-in SIM module 1 becomes inactive, the mobile phone cannot connect to the network through the plug-in SIM module 1, that is, the user cannot use the plug-in SIM module 1 to make calls or surf the Internet.
  • the mobile phone can also change the display state of the button 604 (not shown in the figure), and the changed display state is used to indicate that the plug-in SIM module 1 is in a disabled state.
  • the user wants to re-enable the plug-in SIM module 1, he can click the button 604 again.
  • the mobile phone will remove the plug-in SIM module 1 from the disabled state. Change to the enabled state.
  • the user can check the control corresponding to the icon "card 2" 603 in the SIM module management interface 601 605 performs a click operation.
  • the mobile phone may display the card 2 setting interface 606 (the card 2 setting interface 606 may be the first interface in this application).
  • the card 2 setting interface 606 includes: a "type” option 607.
  • the "type" option 607 can be used for the user to select one of the SIM module 2 and the eSIM module to be on the network standby.
  • button 607-1 or button 607-2 can select one of the plug-in SIM module 2 and the eSIM module to be on the Internet (wherein, button 607-1 can be the first button in this application, and button 607-2 can be the second button in this application).
  • button 607-1 can be the first button in this application
  • button 607-2 can be the second button in this application.
  • the mobile phone uses SCI 1 and SCI to cooperate to control the SIM module interface 2 to connect to the modem, so as to insert the SIM module interface
  • the plug-in SIM module 2 of 2 is on standby in the network.
  • the mobile phone controls the connection of the eSIM module with the modem through the cooperation of SCI 1 and SCI, so that the eSIM module is on the network standby .
  • (b) in FIG. 6 is an interface shown as an example that the plug-in SIM module 2 inserted into the SIM module interface 2 by default is in standby on the network, that is, the default SIM module interface 2 is connected to a modem. That is, in this example, in response to a click operation on the control 605, the mobile phone displays the card 2 setting interface 606 shown in (b) of FIG. 6 as an example.
  • the eSIM module may be in standby mode by default, that is, the eSIM module is connected to the modem by default. At this time, in response to the click operation on the control 605, the mobile phone may display the card shown in (a) in Figure 7 2 Setting interface 702.
  • the card 2 setting interface 606 shown in (b) of FIG. 6 is taken as the next level interface of the SIM module management interface 601 shown in (a) of FIG. 6 as an example.
  • the content included in the card 2 setting interface 606 may also be included in the SIM module management interface 601.
  • the content included in the card 2 setting interface 606 can be temporarily hidden and displayed, and displayed after receiving the user's operation. For example, after receiving the user's click operation on the control 605 corresponding to the icon “card 2” 603, the mobile phone displays a menu in the SIM module management interface 601, and the menu includes the content included in the card 2 setting interface 606.
  • the content included in the card 2 setting interface 606 can also be directly displayed in the SIM module management interface 601.
  • the button 607-1 of the "type" option 607 is selected, and the button 607-2 is not selected, which is used to indicate that the plug-in SIM module 2 is currently on standby on the network.
  • the mobile phone can control the SIM module interface 2 to connect with the modem through the cooperation of SCI 1 and SCI, so as to realize the plug-in SIM module 2 on the network standby .
  • the card 2 setting interface 606 also includes: an option 608 of “physical card setting”.
  • the “physical card settings” option 608 can be used for the user to make relevant settings for the plug-in SIM module 2.
  • the user can activate or deactivate the plug-in SIM module 2 by clicking the button 608-1 included in the "physical card setting" option 608 (the button 608-1 may be the fourth button in this application).
  • the plug-in SIM module 2 can be changed from the activated state to the deactivated state, or from the deactivated state to the activated state.
  • the SIM module 2 may be enabled by default.
  • the mobile phone When the mobile phone detects that the plug-in SIM module 2 is changed from the enabled state to the disabled state, it can be determined that the state of the SIM module in the mobile phone has changed.
  • the specific description of enabling or disabling the plug-in SIM module 2 is similar to the related description of enabling or disabling the plug-in SIM module 1 in the above example, and will not be described in detail here.
  • the "physical card setting" option 608 can also provide setting options for the card name of the plug-in SIM module 2 and the SIM module number. The user can set the card name and SIM module number of the plug-in SIM module 2 through the corresponding setting options.
  • the user may also choose to activate or deactivate the eSIM module. After the user chooses to enable or disable the eSIM module, the status of the eSIM module changes accordingly.
  • the mobile phone detects that the eSIM module has changed from the enabled state to the disabled state, it can be determined that the state of the SIM module in the mobile phone has changed.
  • the button 702-1 of the "type" option 702 is not selected, and the button 702-2 is selected (wherein, the button 702-1 can This is the first button in this application, and the button 702-2 can be the second button in this application), which is used to indicate that the current eSIM module is on the network standby.
  • the user may select the button 607-2 in the interface shown in (b) of FIG. 6, and in response to the user's operation, the mobile phone may display the card 2 setting interface 701 as shown in (a) of FIG.
  • the mobile phone can control the eSIM module to connect with the modem through the cooperation of the SCI 1 and the SCI, so as to realize the eSIM module on the network standby.
  • the card 2 setting interface 701 also includes: an "eSIM module setting" option 703, which is used by the user to make relevant settings for the eSIM module.
  • an "eSIM module setting” option 703 which is used by the user to make relevant settings for the eSIM module.
  • the user can click the button 703-1 included in the "eSIM module settings” option 703.
  • the mobile phone displays an eSIM module setting interface 704.
  • the eSIM module setting interface 704 can be used for the user to perform related settings on the eSIM module.
  • the user can activate by clicking the button 705 (button 705 can be the fifth button in this application) included in the eSIM module setting interface 704 (the eSIM module setting interface 704 can be the fourth interface in this application) Or deactivate the eSIM module.
  • the button 702-1 is not selected and the button 702-2 is selected
  • the eSIM module may be enabled by default.
  • the mobile phone receives the user's click operation on the button 705, the eSIM module can be changed from an enabled state to a disabled state, or from a disabled state to an enabled state.
  • the mobile phone detects that the eSIM module has changed from the enabled state to the disabled state, it can be determined that the state of the SIM module in the mobile phone has changed.
  • the eSIM module setting interface 704 may also provide setting options for the card name and card number of the eSIM module. The user can set the card name and card number of the eSIM module through the corresponding setting options.
  • the above-mentioned card 2 setting interface 701 may further include: an EID view button 710.
  • an EID view button 710 When the user wants to view the EID of the eUICC storing the eSIM configuration file corresponding to the eSIM module, the EID view button 710 can be clicked. As shown in (d) of FIG. 7, in response to a clicking operation on the EID view button 710, the mobile phone may display an interface 711.
  • the interface 711 includes EID.
  • the eSIM module when the eSIM module is selected to be in standby on the network, in order to let the user know that the eSIM module is currently selected, compared to the SIM module management interface 601 shown in (a) in FIG. 6
  • the SIM module management interface 706 shown in Figure 7(c) the icon "card 2" 707 corresponding to the eSIM module and the plug-in SIM module 2 inserted into the SIM interface 2 contains the words "eSIM card” .
  • the user can also add a new eSIM module to the mobile phone and activate it, or delete the originally activated eSIM module.
  • the mobile phone can determine that the state of the SIM module has changed.
  • the added and activated new eSIM module may be the second eSIM module in this application.
  • the originally activated eSIM module may be the first eSIM module in this application.
  • the user can click the delete button 708.
  • the mobile phone can delete the eSIM module from the mobile phone.
  • the mobile phone detects that the originally activated eSIM module has been deleted, and it can be determined that the state of the SIM module in the mobile phone has changed.
  • the user can click the add button 709, or when the mobile phone is turned on for the first time, the mobile phone can be in the boot wizard process
  • An entry for adding an eSIM module is provided, that is, as shown in (a) of FIG. 8, the user can click the add eSIM module button 802 in the boot guide interface 801.
  • the mobile phone queries whether there is an available eSIM configuration file, and can display a waiting interface 803 for adding an eSIM module.
  • an interface 804 can be displayed, and a prompt box 805 can be displayed.
  • the prompt box 805 is used to prompt the user that an available eSIM configuration file has been found, and to ask the user whether to activate the eSIM configuration file.
  • the user can click the direct activation button 806.
  • the mobile phone can activate the eSIM profile.
  • the mobile phone may also display a waiting interface 808 for activating the eSIM module.
  • the mobile phone finds that there is no available eSIM configuration file, you can open the camera of the mobile phone and display the scan interface 807 as shown in (d) in Figure 8, so that the user can scan the corresponding QR code provided by the operator through the mobile phone In order to obtain the eSIM configuration file from the operator’s server, or the user can also select the QR code saved in the gallery or manually enter the corresponding number so that the mobile phone can obtain the eSIM configuration file. After the mobile phone obtains the eSIM configuration file, the eSIM configuration file can be activated. As shown in (e) in FIG. 8, the mobile phone may also display a waiting interface 808 for activating the eSIM module.
  • the mobile phone can display a prompt interface 809 to prompt the user that a new eSIM module has been successfully added and related functions can be used.
  • the mobile phone detects that a new eSIM module is successfully added and activated, it can determine that the state of the SIM module in the mobile phone has changed.
  • the mobile phone can perform card settings.
  • the specific card setting performed by the mobile phone may be: the mobile phone performs the primary card and secondary card settings.
  • the SIM module set as the primary card can be used for mobile data transmission, and the SIM module set as the secondary card cannot be used for mobile data transmission by the mobile phone.
  • both the SIM module set as the primary card and the SIM module set as the secondary card can be used to transmit mobile data by the mobile phone, and the SIM module set as the primary card is preferentially used. For example, when the network condition of the SIM module set as the primary card is good, the mobile phone uses the SIM module set as the primary card to transmit mobile data. When the SIM module set as the primary card has poor network conditions, the mobile phone use is set to The SIM module of the secondary card transmits mobile data.
  • the user inserts the plug-in SIM module into the SIM module interface, that is, the SIM module interface (such as SIM module interface 1 or SIM module interface 2) changes from the state of not connecting the plug-in SIM module to the plug-in SIM being connected. Take the status of the module as an example.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed. The mobile phone obtains the card information of the SIM module whose state has changed, and checks the activation state of the eSIM module in the mobile phone to perform card settings according to the obtained card information and the activation state of the eSIM module activated in the mobile phone.
  • the card information may include: card type and card identification.
  • the card type may be a plug-in SIM module or an eSIM module
  • the card identifier may be the ICCID of the SIM module (such as a plug-in SIM module or an eSIM module).
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed. The mobile phone obtains the card type and card ID of the SIM module whose status has changed. If the obtained card type is a plug-in SIM module, the ICCID is ICCID 1. ICCID 1 is the ICCID of the plug-in SIM module 1.
  • the mobile phone can also check the activation status of the eSIM module in the mobile phone to determine whether the eSIM module is activated by the mobile phone.
  • the mobile phone can determine whether the eSIM module is activated in the mobile phone according to the number of activated eSIM profiles in the mobile phone. If the number of activated eSIM profiles in the mobile phone is 0, the mobile phone can determine that the mobile phone has not activated the eSIM module. If the number of activated eSIM profiles in the mobile phone is not 0, the mobile phone can determine that the mobile phone has activated the eSIM module.
  • the mobile phone can obtain the number of activated eSIM configuration files in the mobile phone according to the card status of the eSIM module recorded in the mobile phone.
  • the card status, card type, and ICCID of the eSIM module can be recorded in the mobile phone after the SIM_SLOT_STATUS_CHANGED event is reported at the kernel layer, and the card account information is inquired by the application framework layer of the mobile phone.
  • the mobile phone can obtain the number of plug-in SIM modules inserted in the mobile phone. If only one plug-in SIM module is inserted in the mobile phone, for example, if only the aforementioned plug-in SIM module 1 is inserted in the mobile phone, the mobile phone can set the plug-in SIM module 1 as the main card. If two plug-in SIM modules are inserted in the mobile phone, that is, the plug-in SIM module 1 and the plug-in SIM module 2 are inserted at the same time, the mobile phone can determine the newly inserted plug-in SIM module according to the obtained card type and card identification 1 Whether it was set as the main card by the user before.
  • the mobile phone sets the plug-in SIM module 1 as the primary card and the plug-in SIM module 2 as the secondary card. If the plug-in SIM module 1 has not been set as the main card by the user before, the mobile phone sets the card according to the SIM module interface to which the plug-in SIM module 1 and the plug-in SIM module 2 are connected. For example, if the plug-in SIM module 1 is connected to the SIM module interface 1, the plug-in SIM module 2 is connected to the SIM module interface 2, and the SIM module interface 1 is the main card slot, then the mobile phone sets the plug-in SIM module 1 as the main card.
  • the SIM module 2 is a secondary card.
  • the plug-in SIM module 1 is connected to the SIM module interface 1
  • the plug-in SIM module 2 is connected to the SIM module interface 2
  • the SIM module interface 2 is the main card slot
  • the mobile phone sets the plug-in SIM module 2 as the main card, set
  • the plug-in SIM module 1 is a secondary card.
  • the above-mentioned main card slot may mean that the SIM module connected to it before (such as the last time) is set as the main card by the user.
  • the mobile phone activates the eSIM module, that is, the mobile phone has both the plug-in SIM module 1 and the eSIM module in place, the mobile phone can set the card according to whether the newly inserted plug-in SIM module 1 was previously set as the main card by the user.
  • the specific setting method is similar to the card setting method when the eSIM module is not activated in the mobile phone and the plug-in SIM module 1 and the plug-in SIM module 2 are inserted at the same time, and will not be repeated here.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed. The mobile phone obtains the card type and card ID of the SIM module whose status has changed. If the obtained card type is a plug-in SIM module, ICCID is ICCID 2. ICCID 2 is the ICCID of the plug-in SIM module 2.
  • the mobile phone can also check the activation status of the eSIM module in the mobile phone to determine whether the eSIM module is activated by the mobile phone. If the mobile phone does not activate the eSIM module, the description of the mobile phone settings for card settings is similar to the above description of inserting the plug-in SIM module 1 and the mobile phone does not activate the eSIM module, and will not be repeated here. If the mobile phone activates the eSIM module, the mobile phone can set the card according to the user's choice. For example, when the SIM module interface 1 is not inserted into the plug-in SIM module, the mobile phone prompts the user whether there is an eSIM module and whether to use the plug-in SIM module 2.
  • the user chooses to use the plug-in SIM module 2, he can deactivate the eSIM module and set the plug-in SIM module 2 as the main card. If the user chooses not to use the plug-in SIM module 2, he can continue to set the eSIM module as the primary card. For another example, when the plug-in SIM module 1 is inserted into the SIM module interface 1 and the plug-in SIM module 1 is set as the main card, the mobile phone prompts the user whether there is an eSIM module and whether to use the plug-in SIM module 2. If the user chooses to use the plug-in SIM module 2, he can deactivate the eSIM module and set the plug-in SIM module 2 as a secondary card.
  • the user chooses not to use the plug-in SIM module 2, he can continue to set the eSIM module as a secondary card.
  • the plug-in SIM module 1 is inserted into the SIM module interface 1 and the plug-in SIM module 1 is set as a secondary card
  • the mobile phone prompts the user whether there is an eSIM module and whether the plug-in SIM module 2 is used. If the user chooses to use the plug-in SIM module 2, he can deactivate the eSIM module and set the plug-in SIM module 2 as the main card. If the user chooses not to use the plug-in SIM module 2, he can continue to set the eSIM module as the primary card.
  • the eSIM module is newly installed and activated as an example. After the user newly installs the eSIM module in the mobile phone and activates it by the mobile phone, the mobile phone can determine that the state of the SIM module in the mobile phone has changed. The mobile phone obtains the card information of the SIM module whose status has changed, and determines whether the SIM module interface 1 is inserted with a plug-in SIM module, so as to set the card according to the obtained card information and the result of whether the SIM module interface 1 is inserted with a plug-in SIM module .
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the mobile phone obtains the card type and card ID of the SIM module whose status has changed. If the obtained card type is eSIM module, ICCID is ICCID 2.
  • ICCID 2 is the ICCID of the eSIM module.
  • the mobile phone can also determine whether a plug-in SIM module is inserted into the SIM module interface 1. If the SIM module interface 1 is not inserted into the plug-in SIM module, the mobile phone sets the eSIM module as the master card. If the SIM module interface 1 is inserted into a plug-in SIM module, such as the plug-in SIM module 1, the mobile phone can determine whether the eSIM module was previously set as the primary card by the user according to the obtained card type and card identification. If the eSIM module was previously set as the primary card by the user, the mobile phone sets the eSIM module as the primary card and the plug-in SIM module 1 as the secondary card.
  • the mobile phone performs card setting according to the SIM module interface connected with the plug-in SIM module 1 and the eSIM module. For example, if the plug-in SIM module 1 is connected to the SIM module interface 1, the eSIM module is connected to the SIM module interface 2, and the SIM module interface 1 is the main card slot, then the mobile phone sets the plug-in SIM module 1 as the main card and the eSIM module as the secondary card. card.
  • the mobile phone sets the eSIM module as the main card and the plug-in SIM module 1 as Vice card.
  • the user pulls out the plug-in SIM module from the SIM module interface that is, the SIM module interface (such as SIM module interface 1 or SIM module interface 2) changes from the state where the plug-in SIM module is connected to the disconnected state. Take the state of the plug-in SIM module as an example.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed. The mobile phone checks the activation status of the eSIM module in the mobile phone, and obtains the status of the plug-in SIM module inserted in the mobile phone, so as to set the card according to the activation status of the eSIM module activated in the mobile phone and the status of the inserted plug-in SIM module.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the plug-in SIM module 1 is currently set as a secondary card, the card setting is not performed.
  • the mobile phone can check the activation status of the eSIM module in the mobile phone to determine whether the mobile phone has activated the eSIM module. If the mobile phone does not activate the eSIM module, the mobile phone can determine whether a plug-in SIM module is inserted in the SIM module interface 2. If a plug-in SIM module is inserted into the SIM module interface 2, such as a plug-in SIM module 2, the mobile phone can set the plug-in SIM module 2 as the main card. If the mobile phone activates the eSIM module, the mobile phone can determine whether a plug-in SIM module is inserted in the SIM module interface 2.
  • the mobile phone can set the eSIM module as the master card. If a plug-in SIM module is inserted into the SIM module interface 2, such as plug-in SIM module 2, the mobile phone can set the SIM module that is on standby on the network as the main card according to the current settings of the user. For example, if the user currently selects the plug-in SIM module 2 to be on standby on the network, the mobile phone sets the plug-in SIM module 2 as the main card. For another example, if the user currently selects the eSIM module to be on standby on the network, the mobile phone sets the eSIM module as the primary card. For details on how the user selects one of the plug-in SIM module 2 and the eSIM module to be on the network standby, please refer to the description of the corresponding content in the example shown in FIG. 6.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the plug-in SIM module 2 is currently set as a secondary card, the card setting is not performed.
  • the mobile phone can check the activation status of the eSIM module in the mobile phone to determine whether the mobile phone has activated the eSIM module. If the mobile phone does not activate the eSIM module, the mobile phone can determine whether a plug-in SIM module is inserted in the SIM module interface 1. If a plug-in SIM module is inserted into the SIM module interface 1, such as plug-in SIM module 1, the mobile phone sets the plug-in SIM module 1 as the main card. If the mobile phone activates the eSIM module, the mobile phone sets the eSIM module as the master card.
  • the mobile phone can also obtain the card information (card information) of the plug-in SIM module that was pulled out.
  • the information may include card type and card identification), and record the obtained card information.
  • the mobile phone can set the plug-in SIM module as the main card according to the recorded card information.
  • the user deletes the original activated eSIM module.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed. The mobile phone obtains the situation of the plug-in SIM module inserted in the mobile phone, so as to set the card according to the situation of the plug-in SIM module inserted.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the card setting is not performed.
  • the eSIM module is selected as the standby SIM module on the network, and the eSIM module is currently set as the secondary card, then the card setting is not performed.
  • the mobile phone determines whether a plug-in SIM module is inserted in the SIM module interface 2. If a plug-in SIM module is inserted into the SIM module interface 2, such as a plug-in SIM module 2, the mobile phone can set the plug-in SIM module 2 as the main card. If a plug-in SIM module is not inserted in the SIM module interface 2, the mobile phone can determine whether a plug-in SIM module is inserted in the SIM module interface 1. If a plug-in SIM module is inserted into the SIM module interface 1, such as plug-in SIM module 1, the mobile phone sets the plug-in SIM module 1 as the main card.
  • the mobile phone can also obtain the card information of the eSIM module (card information can include card type and card identification) , And record the card information obtained. After the eSIM module is subsequently reactivated, the mobile phone can set the eSIM module as the master card according to the recorded card information.
  • a user changes a plug-in SIM module (such as plug-in SIM module 1 or plug-in SIM module 2) from an enabled state to a disabled state.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the mobile phone checks the activation status of the eSIM module in the mobile phone, and obtains the status of the plug-in SIM module inserted in the mobile phone, so as to set the card according to the activation status of the eSIM module activated in the mobile phone and the status of the inserted plug-in SIM module.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the plug-in SIM module 1 is currently set as a secondary card, the card setting is not performed.
  • the mobile phone can check the activation status of the eSIM module in the mobile phone to determine whether the mobile phone has activated the eSIM module. If the mobile phone does not activate the eSIM module, the mobile phone can determine whether a plug-in SIM module is inserted in the SIM module interface 2. If a plug-in SIM module is inserted into the SIM module interface 2, such as a plug-in SIM module 2, the mobile phone can set the plug-in SIM module 2 as the main card. If the mobile phone activates the eSIM module, the mobile phone can determine whether a plug-in SIM module is inserted in the SIM module interface 2.
  • the mobile phone can set the eSIM module as the master card. If a plug-in SIM module is inserted into the SIM module interface 2, such as plug-in SIM module 2, the mobile phone can set the SIM module that is on standby on the network as the main card according to the current settings of the user. For example, if the user currently selects the plug-in SIM module 2 to be on standby on the network, the mobile phone sets the plug-in SIM module 2 as the main card. For another example, if the user currently selects the eSIM module to be on standby on the network, the mobile phone sets the eSIM module as the primary card. For details on how the user selects one of the plug-in SIM module 2 and the eSIM module to be on the network standby, please refer to the description of the corresponding content in the example shown in FIG. 6.
  • the user changes the plug-in SIM module 2 from the activated state to the deactivated state.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the plug-in SIM module 2 is currently set as a secondary card, the card setting is not performed.
  • the mobile phone can check the activation status of the eSIM module in the mobile phone to determine whether the mobile phone has activated the eSIM module. If the mobile phone does not activate the eSIM module, the mobile phone can determine whether a plug-in SIM module is inserted in the SIM module interface 1. If a plug-in SIM module is inserted into the SIM module interface 1, such as plug-in SIM module 1, the mobile phone sets plug-in SIM module 1 as the main card. If the mobile phone activates the eSIM module, the mobile phone sets the eSIM module as the master card.
  • the mobile phone can determine that the state of the SIM module in the mobile phone has changed.
  • the mobile phone obtains the situation of the plug-in SIM module inserted in the mobile phone, so as to set the card according to the situation of the plug-in SIM module inserted.
  • the card setting is not performed.
  • the mobile phone can determine whether a plug-in SIM module is inserted in the SIM module interface 2. If it is determined that a plug-in SIM module, such as plug-in SIM module 2, is inserted into the SIM module interface 2, the mobile phone sets the plug-in SIM module 2 as the master card. If a plug-in SIM module is not inserted in the SIM module interface 2, the mobile phone determines whether a plug-in SIM module is inserted in the SIM module interface 1. If a plug-in SIM module is inserted into the SIM module interface 1, such as plug-in SIM module 1, the mobile phone sets the plug-in SIM module 1 as the main card.
  • the mobile phone can detect that the SIM module interface has changed from the state of not connecting the plug-in SIM module to the state of connecting the plug-in SIM module, and the SIM module interface has changed from the state of connecting the plug-in SIM module to the state of not connecting the plug-in SIM module.
  • the status of the SIM module, the plug-in SIM module changes from the enabled state to the disabled state, the eSIM module changes from the enabled state to the disabled state, a new eSIM module is added and activated, or the original activated eSIM module is deleted, etc. When it appears, set the card.
  • the mobile phone can also determine that the status of the SIM module has changed when detecting one of the above situations, and then perform card settings. This embodiment does not make specific restrictions here.
  • the user can independently select whether the plug-in SIM module 2 is on the network standby or the eSIM module is on the network standby. For example, when the plug-in SIM module 2 is currently on standby on the network, the user can switch to the eSIM module on standby on the network.
  • the mobile phone can also execute the process shown in Figure 9 in response to the user's switching operation to complete the card setting.
  • the plug-in SIM module 2 is currently on standby in the network. If the user wants to switch the eSIM module to standby on the network, as shown in (b) in FIG. 6, the user can click the button 607-2 included in the card 2 setting interface 606 including the "type" option 607.
  • the mobile phone in response to the click operation on the button 607-2, can determine whether it is the eSIM module account opening process (ie, execute S901). If it is the account opening process, it is judged whether there is an available WiFi network (that is, S902 is executed). If there is an available WiFi network, it is determined whether the SIM module interface 2 is connected with a plug-in SIM module (that is, S903 is executed).
  • the account opening process can refer to the definition of eSIM in the existing GSMA, and refer to the description of the corresponding content in SGP.22, which will not be repeated in this application.
  • the mobile phone judges whether the SIM module interface 1 is connected to a plug-in SIM module (ie, execute S904). If the SIM module interface 1 is not connected to the plug-in SIM module, the process ends. If the SIM module interface 1 is connected to a plug-in SIM module, such as plug-in SIM module 1, you can set the default data service card as the plug-in SIM module 1 (ie, execute S905), and continue to execute S903, that is, determine the SIM module interface 2. Whether the plug-in SIM module is connected.
  • the mobile phone can execute S903, that is, determine whether the SIM module interface 2 is connected with a plug-in SIM module.
  • the mobile phone can deactivate the plug-in SIM module connected to the SIM module interface 2, for example, the plug-in SIM module 2 (ie, execute S906).
  • the user may also be prompted that the SIM module interface 2 is connected to the plug-in SIM module, and the card will be disabled (ie, execute S907).
  • the mobile phone executes S908, connects the SIM module interface 2 with the modem, and switches to the eSIM module (or eUICC) to connect with the modem.
  • the mobile phone may first prompt the user that the SIM module interface 2 is connected to the plug-in SIM module, and the card will be disabled (ie, execute S907 ). If the mobile phone receives the user's confirmation to deactivate the plug-in SIM module 2, S906, S908, S909 and S910 are executed. If the mobile phone receives the user's operation to cancel the deactivation of the plug-in SIM module 2, the process ends.
  • S908 can be directly executed.
  • the mobile phone can execute S909, execute the account opening process (executed when the judgment result of S901 is the account opening process), or activate the corresponding eSIM configuration file (execute when the judgment result of S901 is not the account opening process).
  • the mobile phone can perform card settings (ie, execute S910). Specifically, it may include: the mobile phone judges whether the number of plug-in SIM modules is zero. If the number of plug-in SIM modules is 0, the activated eSIM module is automatically set as the primary card. If the number of plug-in SIM modules is 1, and the SIM module interface 1 is plugged into the plug-in SIM module 1, then the plug-in SIM module 1 is set as the primary card, and the activated eSIM module is set as the secondary card. If the number of plug-in SIM modules is 1, and the plug-in SIM module 2 is inserted into the SIM module interface 2, the plug-in SIM module 2 is automatically deactivated, and the activated eSIM module is set as the main card. If the number of plug-in SIM modules is 2, the mobile phone can display a prompt message to remind the user to set the default main card.
  • the card 2 setting interface 606 may be updated to 701 as shown in (a) of FIG. 7.
  • the button 702-1 of the "type” option 702 is not selected, and the button 701-2 is selected, which is used to indicate that the plug-in SIM module 2 and the eSIM module are currently selected, and the eSIM module is on standby on the network. If the user wants to re-select the plug-in SIM module 2 to be in standby on the network, he can click the button 702-1 of the "type" option 702 in the card 2 setting interface 701.
  • the mobile phone In response to the click operation of the button 702-1, the mobile phone will switch the eSIM module on the network standby to the plug-in SIM module 2 on the network standby.
  • the card 2 setting interface 701 will be updated to 606 as shown in (b) in FIG. 6.
  • the card account update of the eSIM module may be performed through the process shown in FIG. 10.
  • the card account update may include: the update of one or more of the ICCID, card name, EID, activation or deactivation of the corresponding eSIM configuration file and other information of the eSIM module.
  • the card account of the eSIM module can be updated according to the relevant changes.
  • SubscriptionManager subscriptionController, PhoneFactory, HwSubscriptionInfoUpdaterReference, EuiccCard, and SubscriptionInfoUpdater are all class functions in the phone management service.
  • the eUICC manager performs operations such as activation, deactivation, or deletion of the corresponding eSIM configuration file
  • the card account of the eSIM module can be updated according to steps 1-6 in FIG. 10.
  • the eUICC manager when the eUICC manager performs operations such as activating, deactivating or deleting the corresponding eSIM configuration file, the eUICC manager sends the function "requestEmbeddedSubscriptionInfoListRefresh" to the class function SubscriptionInfoUpdater through the class functions: SubscriptionManager, subscriptionController, PhoneFactory, and HwSubscriptionInfoUpdaterReference.
  • SubscriptionManager subscriptionController
  • PhoneFactory PhoneFactory
  • HwSubscriptionInfoUpdaterReference To request to update the card account of the eSIM module, perform steps 1-4.
  • the class function SubscriptionInfoUpdater calls the function "updateEmbededSubscriptions" through the function "EVENT_REFRESH_EMBEDDED_SUBSCRIPTIONS" to implement the card account update of the eSIM module, that is, step 5 and step 6 are performed.
  • the card account of the eSIM module can be updated according to steps 7-8 in FIG. 10.
  • the class function HwSubscriptionInfoUpdaterReference calls the function “updateEmbededSubscriptions” of the class function SubscriptionInfoUpdater through the function “updateSubscriptionInfoByIccid” to realize the card account update of the eSIM module, which is executed Step 7 and Step 8.
  • the card account update of the eSIM module may not be performed.
  • eUICC can only process one command at the same time (such as query EID command, account update command, etc.). If there are two or more commands to be processed, the command execution will fail due to command collision.
  • One of the more common scenarios is that when creating an EuiccCard object, there will be a query EID command that needs to be processed. At this time, if there is an account update command that needs to be processed at the same time, a collision will occur, causing the account update command to fail.
  • the mobile phone can continuously monitor whether there is a command to query EID.
  • the account update command is processed, that is, the card account of the eSIM module is updated directly, and the monitoring is continued. If an EID query command is monitored, the account update command is processed after the EID query is completed, that is, the card account update of the eSIM module is performed.
  • step 9-step 14 in Figure 10 When the class function HwSubscriptionInfoUpdaterReference detects that there is a query EID command that needs to be processed, that is, "updateIccAvailability" is monitored in step 9, and it is also determined that there is a need to update the card account of the eSIM module, that is "UpdateIccAvailabilityForEuicc” is monitored in step 10.
  • the class function HwSubscriptionInfoUpdaterReference can first issue "registerForEidRead" to the class function EuiccCard to request to monitor the EID, that is, step 11 is executed.
  • the class function EuiccCard can use the function "handleEuiccEidReady" to reply the queried EID to the class function HwSubscriptionInfoUpdaterReference (that is, step 12).
  • the class function HwSubscriptionInfoUpdaterReference invokes the function "updateEmbededSubscriptions" to trigger the class function SubscriptionInfoUpdater to update the card account of the eSIM module, that is, step 13 is executed.
  • the class function HwSubscriptionInfoUpdaterReference can issue "registerForEidReady" to the class function EuiccCard to register the monitoring of the query EID command.
  • the card account query of the eSIM module can be performed through the process shown in FIG. 11.
  • SubscriptionManager, subscriptionController, and SubscriptionInfoUpdater are all class functions in the phone management service.
  • the LUI is the interface of the local profile assistant (LPA).
  • the LPA may be the management software of the eUICC, such as a card management application.
  • the LUI may be the SIM module management interface shown in FIG. 6 or FIG. 7 above.
  • step 6 in Figure 10 that is, step 1 in Figure 11
  • the class function SubscriptionInfoUpdater implements the update of the card account of the eSIM module by calling the function "updateEmbededSubscriptions", you can perform steps 2-3 in Figure 11, that is, the class
  • the function SubscriptionInfoUpdater delivers notifySubscriptionInfoChanged to the class function subscriptionController to notify the card account of the eSIM module that the card account has been updated.
  • the subscriptionController class function broadcasts the update of the card account of the eSIM module by calling the function "broadcastSimInfoContentChanged", that is, in step 4, send "android.intent.action.ACTION_SUBINFO_CONTENT_CHANGE".
  • the LUI monitors the broadcast it can query the card account of the eSIM module by performing steps 5-7 in FIG. 11. That is, LUI sends "getAvailableSubscriptionInfoList" to the subscriptionController of the class function SubscriptionManager.
  • the class function subscriptionController completes the query of the card account by calling the function "getSubInfo".
  • the corresponding interface update can be performed according to the query result, such as updating the card name in Figure 7 (b) and Figure 7 (c).
  • the electronic device may include: a processor 1201, a first modem 1202, a second modem 1203, a mobile communication module 1204, and a first SIM module interface 1205, the second SIM module interface 1206, the eUICC 1207 and the memory 1208, the eUICC 1207 is used to store the eSIM module.
  • the above-mentioned devices may be connected through one or more communication buses 1210.
  • the memory 1208 is used to store one or more computer programs 1209.
  • One or more computer programs 1209 are configured to be executed by the processor 1201.
  • the one or more computer programs 1209 include instructions, and the foregoing instructions may be used to execute various steps performed by the electronic device (such as a mobile phone) in the foregoing embodiment.
  • the disclosed device and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be divided. It can be combined or integrated into another device, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate.
  • the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • 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.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请实施例提供了一种SIM模块的管理方法及电子设备,涉及电子设备领域。对于已有支持双SIM模块的电子设备,提供了支持eSIM模块的方案,实现了双SIM模块与eSIM模块的兼容。本申请实施例中的电子设备可支持三个SIM模块。这三个SIM模块中至少包括一个eSIM模块。其余两个SIM模块可以均是插入式SIM模块,也可以是一个插入式SIM模块,一个软SIM模块。用户能够从这三个SIM模块中任意选择两个SIM模块同时在网待机,或者能够从这三个SIM模块中任意选择一个SIM模块在网待机。

Description

一种SIM模块的管理方法及电子设备
本申请要求于2019年8月30日提交国家知识产权局、申请号为201910816798.X、申请名称为“一种SIM模块的管理方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备领域,尤其涉及一种用户识别模块(subscriber identity module,SIM)模块的管理方法及电子设备。
背景技术
随着科学技术的不断进步,手机等电子设备已成为人们日常生活和工作中进行交流通信的首选工具。其中,电子设备访问蜂窝移动网络时,需要使用SIM模块来实现认证鉴权。目前,传统的SIM模块需要用户到运营商营业厅申请并在营业厅激活,或者,通过运营商的网上营业厅选号入网,然后运营商通过快递将SIM模块邮寄给用户,用户收到后再完成激活。激活后的SIM模块插入电子设备的物理卡槽后才可使用,时效性和体验都不是很好。鉴于此,嵌入式SIM(embedded-SIM,eSIM)技术应运而生。eSIM技术将通用集成电路卡嵌入电子设备中,称为嵌入式通用集成电路卡(embedded universal integrated circuit card,eUICC)。eUICC中可存储有运营商的多种eSIM配置文件,每一种eSIM配置文件可独立构成一个SIM应用。SIM应用可称为eSIM模块。
众所周知的,对于手机而言,目前使用的都是传统的SIM模块。在eSIM技术的发展初期,仅支持eSIM模块的手机还比较少,因此,需要考虑eSIM模块与传统SIM模块在手机上的兼容,以便用户和运营商逐步从传统SIM模块过渡到eSIM模块。
在现有技术中,手机要么支持一个传统的SIM模块和一个eSIM模块,但只能实现双卡单待功能,或者支持一个传统的SIM模块和一个eSIM模块,且可实现双卡双待功能。但,并没有支持双SIM模块又支持eSIM模块的方案。
发明内容
本申请实施例提供一种SIM模块的管理方法及电子设备,对于已有支持双SIM模块的电子设备,提供了支持eSIM模块的方案,实现了双SIM模块与eSIM模块的兼容。
本申请采用如下技术方案:
第一方面,本申请实施例提供一种电子设备,该电子设备可以包括:处理器,第一调制解调器,第二调制解调器,移动通信模块,第一SIM模块接口,第二SIM模块接口,eUICC,eUICC用于存储eSIM模块;其中,处理器与第一调制解调器,第二调制解调器,移动通信模块,第一SIM模块接口,第二SIM模块接口及eUICC耦合;处理器,用于控制第一SIM模块接口,第二SIM模块接口及eUICC,与第一调制解调器和第二调制解调器的连接关系。
通过采用该技术方案,对于已有支持双SIM模块的电子设备,提供了支持eSIM模块的方案,实现了双SIM模块与eSIM模块的兼容。也就是说,本申请实施例中的 电子设备可支持三个SIM模块,且能够根据用户设置从这三个SIM模块中任意选择两个SIM模块同时在网待机,或者能够从这三个SIM模块中任意选择一个SIM模块在网待机。
在一种可能的实现方式中,电子设备还包括SCI,SCI的一端耦合处理器,另一端同时耦合第二SIM模块接口和eUICC;处理器,用于控制第一SIM模块接口,第二SIM模块接口及eUICC,与第一调制解调器和第二调制解调器的连接关系,包括:处理器,用于通过对SCI进行控制,控制第二SIM模块接口和eUICC,与第一调制解调器和第二调制解调器的连接关系。这样,通过SCI可控制与第二SIM模块接口连接的插入式SIM模块和eUICC中激活的eSIM模块与网络的连接关系。
在另一种可能的实现方式中,处理器,还用于在检测到如下任意一种情况发生时,进行卡设置:第一插入式SIM模块被插入第一SIM模块接口;第二插入式SIM模块被插入第二SIM模块接口;第一SIM模块接口连接的第一插入式SIM模块被拔出;第二SIM模块接口连接的第二插入式SIM模块被拔出;第一SIM模块接口连接了第一插入式SIM模块时,第一插入式SIM模块由启用状态变为停用状态;第二SIM模块接口连接了第二插入式SIM模块时,第二插入式SIM模块由启用状态变为停用状态;第一eSIM模块由启用状态变为停用状态,第一eSIM模块是eUICC中存储的当前被激活eSIM模块;第一eSIM模块被删除;第二eSIM模块被安装并激活。在检测到SIM模块的状态发生改变时,进行主副卡的设置,确保了电子设备与网络的连接。
在另一种可能的实现方式中,在处理器检测到第一插入式SIM模块被插入第一SIM模块接口时,处理器进行卡设置,包括:处理器获取第一插入式SIM模块的卡信息;处理器确定电子设备是否激活了eSIM模块;如果电子设备没有激活eSIM模块,且电子设备仅插入了第一插入式SIM模块,则处理器将第一插入式SIM模块设置为主卡。
在另一种可能的实现方式中,如果电子设备没有激活eSIM模块,且电子设备插入了第一插入式SIM模块和第二插入式SIM模块,第二插入式SIM模块与第二SIM模块接口连接,则处理器根据卡信息,在确定第一插入式SIM模块之前被用户设置为主卡时,设置第一插入式SIM模块为主卡,设置第二插入式SIM模块为副卡;处理器根据卡信息,在确定第一插入式SIM模块之前未被用户设置为主卡时,如果第一SIM模块接口为主卡槽,则设置第一插入式SIM模块为主卡,设置第二插入式SIM模块为副卡,如果第二SIM模块接口为主卡槽,则设置第二插入式SIM模块为主卡,设置第一插入式SIM模块为副卡。可根据获取到的发生状态改变的SIM模块的卡信息和用户的设置习惯,进行卡设置,使得在SIM模块状态发生改变时,设置后的主卡符合用户的设置习惯,提高用户的使用体验。
在另一种可能的实现方式中,如果电子设备激活了第一eSIM模块,则处理器根据卡信息,在确定第一插入式SIM模块之前被用户设置为主卡时,设置第一插入式SIM模块为主卡,设置第一eSIM模块为副卡;处理器根据卡信息,在确定第一插入式SIM模块之前未被用户设置为主卡时,如果第一SIM模块接口为主卡槽,则设置第一插入式SIM模块为主卡,设置第一eSIM模块为副卡,如果第二SIM模块接口为主卡槽,则设置第一eSIM模块为主卡,设置第一插入式SIM模块为副卡。可根据获取到的发 生状态改变的SIM模块的卡信息和用户的设置习惯,进行卡设置,使得在SIM模块状态发生改变时,设置后的主卡符合用户的设置习惯,提高用户的使用体验。
在另一种可能的实现方式中,在处理器检测到第二插入式SIM模块被插入第二SIM模块接口时,处理器进行卡设置,包括:处理器获取第二插入式SIM模块的卡信息;在电子设备没有激活eSIM模块,且电子设备仅插入了第二插入式SIM模块时,处理器将第二插入式SIM模块设置为主卡。
在另一种可能的实现方式中,在电子设备没有激活eSIM模块,且电子设备插入了第二插入式SIM模块和第一插入式SIM模块,第一插入式SIM模块与第一SIM模块接口连接时,处理器根据卡信息,在确定第二插入式SIM模块之前被用户设置为主卡时,设置第二插入式SIM模块为主卡,设置第一插入式SIM模块为副卡;处理器根据卡信息,在确定第二插入式SIM模块之前未被用户设置为主卡时,如果第二SIM模块接口为主卡槽,则设置第二插入式SIM模块为主卡,设置第一插入式SIM模块为副卡,如果第一SIM模块接口为主卡槽,则设置第一插入式SIM模块为主卡,设置第二插入式SIM模块为副卡。可根据获取到的发生状态改变的SIM模块的卡信息和用户的设置习惯,进行卡设置,使得在SIM模块状态发生改变时,设置后的主卡符合用户的设置习惯,提高用户的使用体验。
在另一种可能的实现方式中,在处理器检测到第一SIM模块接口连接的第一插入式SIM模块被拔出时,或第一插入式SIM模块由启用状态变为停用状态时,如果第一插入式SIM模块被设置为主卡,处理器进行卡设置,包括:处理器确定电子设备是否激活了eSIM模块;如果电子设备没有激活eSIM模块,且第二SIM模块接口连接了第二插入式SIM模块,则处理器设置第二插入式SIM模块为主卡;如果电子设备激活了第一eSIM模块,且第二SIM模块接口未连接插入式SIM模块,则处理器设置第一eSIM模块为主卡;如果电子设备激活了第一eSIM模块,且第二SIM模块接口连接了第二插入式SIM模块,则在eUICC与调制解调器连接时,设置第一eSIM模块为主卡,在第二SIM模块接口与调制解调器连接时,设置第二插入式SIM模块为主卡。
在另一种可能的实现方式中,在处理器检测到第二SIM模块接口连接的第二插入式SIM模块被拔出时,或第二插入式SIM模块由启用状态变为停用状态时,如果第二插入式SIM模块被设置为主卡,处理器进行卡设置,包括:处理器确定电子设备是否激活了eSIM模块;如果电子设备没有激活eSIM模块,且第一SIM模块接口连接了第一插入式SIM模块,则处理器将第一插入式SIM模块设置为主卡;如果电子设备激活了第一eSIM模块,则设置第一eSIM模块为主卡。
在另一种可能的实现方式中,在处理器检测到第一eSIM模块由启用状态变为停用状态时,如果第一eSIM模块被设置为主卡,处理器进行卡设置,包括:处理器确定第二SIM模块接口是否连接了插入式SIM模块;如果第二SIM模块接口连接了第二插入式SIM模块,则处理器设置第二插入式SIM模块为主卡;如果第二SIM模块接口未连接插入式SIM模块,且第一SIM模块接口连接了第一插入式SIM模块,则处理器设置第一插入式SIM模块为主卡。
在另一种可能的实现方式中,处理器在检测到第二eSIM模块被安装并激活时,处理器进行卡设置包括:处理器获取第二eSIM模块的卡信息;如果第一SIM模块接 口未插入插入式SIM模块,则处理器将第二eSIM模块设置为主卡;如果第一SIM模块接口插入了第一插入式SIM模块,则处理器根据卡信息,在确定第二eSIM模块之前被用户设置为主卡时,设置第二eSIM模块为主卡,设置第一插入式SIM模块为副卡;处理器根据卡信息,在确定第二eSIM模块之前未被用户设置为主卡时,如果第一SIM模块接口为主卡槽,则设置第一插入式SIM模块为主卡,设置第二eSIM模块为副卡,如果第二SIM模块接口为主卡槽,则设置第二eSIM模块为主卡,设置第一插入式SIM模块为副卡。可根据获取到的发生状态改变的SIM模块的卡信息和用户的设置习惯,进行卡设置,使得在SIM模块状态发生改变时,设置后的主卡符合用户的设置习惯,提高用户的使用体验。
在另一种可能的实现方式中,在处理器检测到第一eSIM模块被删除时,如果当前eUICC与调制解调器连接,且第一eSIM模块被设置为主卡,处理器进行卡设置,包括:处理器确定第二SIM模块接口是否连接了插入式SIM模块;如果第二SIM模块接口连接了第二插入式SIM模块,则处理器设置第二插入式SIM模块为主卡;如果第二SIM模块接口未连接插入式SIM模块,且第一SIM模块接口连接了第一插入式SIM模块,则处理器设置第一插入式SIM模块为主卡。
第二方面,本申请实施例提供一种SIM模块的管理方法,该方法可以应用于电子设备,该电子设备可以包括:第一SIM模块接口,第二SIM模块接口,eUICC,eUICC用于存储eSIM模块;电子设备通过第一SIM模块接口连接的第一插入式SIM模块,第二SIM模块接口连接的第二插入式SIM模块及eUICC中当前激活的eSIM模块三者中的两个SIM模块同时与网络连接,或三者中的任意一个SIM模块与网络连接。
通过采用该技术方案,对于已有支持双SIM模块的电子设备,提供了支持eSIM模块的方案,实现了双SIM模块与eSIM模块的兼容。也就是说,本申请实施例中的电子设备可支持三个SIM模块,且电子设备能够根据用户设置从这三个SIM模块中任意选择两个SIM模块同时在网待机,或者能够从这三个SIM模块中任意选择一个SIM模块在网待机。
需要说明的是,在一些实施例中,电子设备中也可不包括eUICC,而是使用全软件的方式实现eSIM模块,此时电子设备中可不包括eSIM模块,在用户下载eSIM模块后电子设备中才包括eSIM模块。
在一种可能的实现方式中,电子设备通过第一SIM模块接口连接的第一插入式SIM模块,第二SIM模块接口连接的第二插入式SIM模块及eUICC中当前激活的eSIM模块三者中的两个SIM模块同时与网络连接,包括:电子设备通过第二插入式SIM模块和eUICC中当前激活的eSIM模块两者中的一个,及第一插入式SIM模块同时与网络连接。
在另一种可能的实现方式中,该方法还可以包括:电子设备在检测到如下任意一种情况发生时,进行卡设置:第一插入式SIM模块被插入第一SIM模块接口;第二插入式SIM模块被插入第二SIM模块接口;第一SIM模块接口连接的第一插入式SIM模块被拔出;第二SIM模块接口连接的第二插入式SIM模块被拔出;第一SIM模块接口连接了第一插入式SIM模块时,第一插入式SIM模块由启用状态变为停用状态;第二SIM模块接口连接了第二插入式SIM模块时,第二插入式SIM模块由启用状态 变为停用状态;第一eSIM模块由启用状态变为停用状态,第一eSIM模块是eUICC中存储的当前被激活eSIM模块;第一eSIM模块被删除;第二eSIM模块被安装并激活。
在另一种可能的实现方式中,在电子设备检测到第一插入式SIM模块被插入第一SIM模块接口时,电子设备进行卡设置,包括:电子设备获取第一插入式SIM模块的卡信息;电子设备确定电子设备是否激活了eSIM模块;如果电子设备没有激活eSIM模块,且电子设备仅插入了第一插入式SIM模块,则电子设备将第一插入式SIM模块设置为主卡。
在另一种可能的实现方式中,如果电子设备没有激活eSIM模块,且电子设备插入了第一插入式SIM模块和第二插入式SIM模块,第二插入式SIM模块与第二SIM模块接口连接,则电子设备根据卡信息,在确定第一插入式SIM模块之前被用户设置为主卡时,设置第一插入式SIM模块为主卡,设置第二插入式SIM模块为副卡;电子设备根据卡信息,在确定第一插入式SIM模块之前未被用户设置为主卡时,如果第一SIM模块接口为主卡槽,则设置第一插入式SIM模块为主卡,设置第二插入式SIM模块为副卡,如果第二SIM模块接口为主卡槽,则设置第二插入式SIM模块为主卡,设置第一插入式SIM模块为副卡。
在另一种可能的实现方式中,如果电子设备激活了第一eSIM模块,则电子设备根据卡信息,在确定第一插入式SIM模块之前被用户设置为主卡时,设置第一插入式SIM模块为主卡,设置第一eSIM模块为副卡;电子设备根据卡信息,在确定第一插入式SIM模块之前未被用户设置为主卡时,如果第一SIM模块接口为主卡槽,则设置第一插入式SIM模块为主卡,设置第一eSIM模块为副卡,如果第二SIM模块接口为主卡槽,则设置第一eSIM模块为主卡,设置第一插入式SIM模块为副卡。
在另一种可能的实现方式中,在电子设备检测到第二插入式SIM模块被插入第二SIM模块接口时,电子设备进行卡设置,包括:电子设备获取第二插入式SIM模块的卡信息;在电子设备没有激活eSIM模块,且电子设备仅插入了第二插入式SIM模块时,电子设备将第二插入式SIM模块设置为主卡。
在另一种可能的实现方式中,在电子设备没有激活eSIM模块,且电子设备插入了第二插入式SIM模块和第一插入式SIM模块,第一插入式SIM模块与第一SIM模块接口连接时,电子设备根据卡信息,在确定第二插入式SIM模块之前被用户设置为主卡时,设置第二插入式SIM模块为主卡,设置第一插入式SIM模块为副卡;电子设备根据卡信息,在确定第二插入式SIM模块之前未被用户设置为主卡时,如果第二SIM模块接口为主卡槽,则设置第二插入式SIM模块为主卡,设置第一插入式SIM模块为副卡,如果第一SIM模块接口为主卡槽,则设置第一插入式SIM模块为主卡,设置第二插入式SIM模块为副卡。
在另一种可能的实现方式中,在电子设备检测到第一SIM模块接口连接的第一插入式SIM模块被拔出时,或第一插入式SIM模块由启用状态变为停用状态时,如果第一插入式SIM模块被设置为主卡,电子设备进行卡设置,包括:电子设备确定电子设备是否激活了eSIM模块;如果电子设备没有激活eSIM模块,且第二SIM模块接口连接了第二插入式SIM模块,则电子设备设置第二插入式SIM模块为主卡;如果电子 设备激活了第一eSIM模块,且第二SIM模块接口未连接插入式SIM模块,则电子设备设置第一eSIM模块为主卡;如果电子设备激活了第一eSIM模块,且第二SIM模块接口连接了第二插入式SIM模块,则在电子设备通过eUICC中第一eSIM模块与网络连接时,电子设备设置第一eSIM模块为主卡,在电子设备通过第二SIM模块接口连接的第二插入式SIM模块与网络连接时,设置第二插入式SIM模块为主卡。
在另一种可能的实现方式中,在电子设备检测到第二SIM模块接口连接的第二插入式SIM模块被拔出时,或第二插入式SIM模块由启用状态变为停用状态时,如果第二插入式SIM模块被设置为主卡,电子设备进行卡设置,包括:电子设备确定电子设备是否激活了eSIM模块;如果电子设备没有激活eSIM模块,且第一SIM模块接口连接了第一插入式SIM模块,则电子设备将第一插入式SIM模块设置为主卡;如果电子设备激活了第一eSIM模块,则电子设备设置第一eSIM模块为主卡。
在另一种可能的实现方式中,在电子设备检测到第一eSIM模块由启用状态变为停用状态时,如果第一eSIM模块被设置为主卡,电子设备进行卡设置,包括:电子设备确定第二SIM模块接口是否连接了插入式SIM模块;如果第二SIM模块接口连接了第二插入式SIM模块,则电子设备设置第二插入式SIM模块为主卡;如果第二SIM模块接口未连接插入式SIM模块,且第一SIM模块接口连接了第一插入式SIM模块,则电子设备设置第一插入式SIM模块为主卡。
在另一种可能的实现方式中,在电子设备检测到第二eSIM模块被安装并激活时,电子设备进行卡设置包括:电子设备获取第二eSIM模块的卡信息;如果第一SIM模块接口未插入插入式SIM模块,则电子设备将第二eSIM模块设置为主卡;如果第一SIM模块接口插入了第一插入式SIM模块,则电子设备根据卡信息,在确定第二eSIM模块之前被用户设置为主卡时,设置第二eSIM模块为主卡,设置第一插入式SIM模块为副卡;电子设备根据卡信息,在确定第二eSIM模块之前未被用户设置为主卡时,如果第一SIM模块接口为主卡槽,则设置第一插入式SIM模块为主卡,设置第二eSIM模块为副卡,如果第二SIM模块接口为主卡槽,则设置第二eSIM模块为主卡,设置第一插入式SIM模块为副卡。
在另一种可能的实现方式中,在电子设备检测到第一eSIM模块被删除时,如果当前电子设备通过eUICC中第一eSIM模块与网络连接,且第一eSIM模块被设置为主卡,电子设备进行卡设置,包括:电子设备确定第二SIM模块接口是否连接了插入式SIM模块;如果第二SIM模块接口连接了第二插入式SIM模块,则电子设备设置第二插入式SIM模块为主卡;如果第二SIM模块接口未连接插入式SIM模块,且第一SIM模块接口连接了第一插入式SIM模块,则电子设备设置第一插入式SIM模块为主卡。
在另一种可能的实现方式中,电子设备通过第二插入式SIM模块和eUICC中当前激活的eSIM模块两者中的一个与网络连接,包括:电子设备显示第一界面,第一界面包括第一按钮和第二按钮;电子设备接收用户对第一按钮的选择操作,第一按钮被选中,第二按钮未被选中,响应对第一按钮的选择操作,电子设备通过第二插入式SIM模块与网络连接;电子设备接收用户对第二按钮的选择操作,第二按钮被选中,第一按钮未被选中,响应对第二按钮的选择操作,电子设备通过第二插入式SIM模块与网 络连接。
在另一种可能的实现方式中,该方法还可以包括:电子设备显示第二界面,第二界面包括第三按钮;电子设备接收用户对第三按钮的操作;响应于对第三按钮的操作,电子设备将第一插入式SIM模块由启用状态变为停用状态。
在另一种可能的实现方式中,该方法还可以包括:电子设备显示第三界面,第三界面包括第四按钮;电子设备接收用户对第四按钮的操作;响应于对第四按钮的操作,电子设备将第二插入式SIM模块由启用状态变为停用状态。
在另一种可能的实现方式中,该方法还可以包括:电子设备显示第四界面,第四界面包括第五按钮;电子设备接收用户对第五按钮的操作;响应于对第五按钮的操作,电子设备将第一eSIM模块由启用状态变为停用状态。
在另一种可能的实现方式中,被设置为主卡的SIM模块用于电子设备传输移动数据,被设置为副卡的SIM模块不能用于电子设备传输移动数据。
第三方面,本申请实施例提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第二方面或第二方面的可能的实现方式中任一项所述的SIM模块的管理方法。
第四方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第二方面或第二方面的可能的实现方式中任一项所述的SIM模块的管理方法。
第五方面,本申请实施例提供一种芯片系统,该芯片系统应用于电子设备;芯片系统包括接口电路和处理器;接口电路和处理器通过线路互联;接口电路用于从电子设备的存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行该计算机指令时,芯片系统执行如第二方面或第二方面可能的实现方式中任一项所述的SIM模块的管理方法。
第六方面,提供一种装置,该装置具有实现上述第二方面所提供的方法中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,例如,通信单元或模块,设置单元或模块等。
可以理解地,上述提供的第二方面所述的方法,第三方面所述的计算机可读存储介质,第四方面所述的计算机程序产品,第五方面所述的芯片系统及第六方面所述的装置均与上述第一方面的电子设备对应,因此,其所能达到的有益效果可参考上文所提供的对应的电子设备中的有益效果,此处不再赘述。
附图说明
图1为现有技术提供的一种支持双插入式SIM模块的电子设备的结构组成示意图;
图2为本申请实施例提供的一种支持双插入式SIM模块和eSIM模块的电子设备的结构组成示意图;
图3为本申请实施例提供的另一种支持双插入式SIM模块和eSIM模块的电子设备的结构组成示意图;
图4为本申请实施例提供的一种电子设备的硬件结构示意图;
图5为本申请实施例提供的一种电子设备的软件架构的组成示意图;
图6为本申请实施例提供的一种SIM模块的管理界面的示意图;
图7为本申请实施例提供的另一种SIM模块的管理界面的示意图;
图8为本申请实施例提供的又一种SIM模块的管理界面的示意图;
图9为本申请实施例提供的另一种SIM模块的管理方法流程示意图;
图10为本申请实施例提供的一种eSIM模块的卡账户更新的流程示意图;
图11为本申请实施例提供的一种eSIM模块的卡账户查询的流程示意图;
图12为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
为了便于理解,示例的给出了部分与本申请实施例相关概念的说明以供参考。如下所示:
插入式SIM模块:是指传统的SIM模块,或称为SIM模块芯片。这类SIM模块需要用户到运营商营业厅或通过运营商的网上营业厅选号入网,并在激活后插入电子设备的物理卡槽(或者称为SIM模块接口)中才可使用。如电子设备可通过其与蜂窝移动网络连接,实现通话及数据通信等功能。插入式SIM模块也可由物理卡槽中拔出。
eSIM模块:即embedded-SIM,嵌入式SIM模块。摒弃了插入式SIM模块的可拔插物理实体,将通用集成电路卡(universal integrated circuit card,UICC)嵌设在电子设备(不可与电子设备分离)中,而不是作为独立的可移除零部件加入电子设备,称为嵌入式UICC,eUICC,或称为eSIM模块芯片。eUICC中可存储有运营商的多种eSIM配置文件,每一种eSIM配置文件可独立构成一个SIM应用。SIM应用可称为eSIM模块。eSIM模块可实现与插入式SIM模块类似的功能。eSIM模块将允许用户更加灵活的选择运营商套餐,或者在无需解锁设备、购买新设备的前提下随时更换运营商。eUICC的封装形式有两种,一种是采用表面安装器件(surface mount device,SMD)贴片封装工艺,即将SIM模块芯片直接焊接在电子设备的模组上;一种是采用SIP(Simple in Package)封装工艺,即将SIM模块芯片和电子设备的模块芯片封装在一体,外表看起来是一块芯片。eSIM模块是可以用在任何电子设备中的不可插拔的SIM模块,和插入式SIM模块的最大区别是固定在电子设备中不能随意更换。
插入式SIM模块和eSIM模块均可称为硬SIM模块。用于标识插入式SIM模块及eSIM模块的标识可称为集成电路卡识别码(integrate circuit card Identity,ICCID)。用于标识eUICC的标识可称为嵌入式通用集成电路卡标识(eUICC identify,EID)。
软SIM(softSIM)模块:或者称为虚拟SIM(virtual-SIM,vSIM)模块。是一种区别于硬SIM模块的SIM模块,其是一种虚拟实体,即没有实体SIM模块,基于通信模块自身软硬件实现通信的方式。拥有vSIM功能的通信模块,配合为vSIM特殊定制的底层软件,实现了内置加密存储数据(IMSI、KI等)。在登陆网络、鉴权、通信时,自动处理相应的逻辑,从而实现不需要实体SIM模块也能提供稳定的移动通信体验。
多卡单待功能:可以是指一个电子设备,如手机可同时连接多个SIM模块,这多个SIM模块同时仅有一个SIM模块可以在网待机,即电子设备同时仅可通过其中一个SIM模块和蜂窝移动网络连接,以用于数据交互,实现通话及数据通信等功能。
多卡双待功能:可以是指一个电子设备,如手机可同时连接多个SIM模块,这多 个SIM模块中同时有两个SIM模块可以在网待机,即电子设备可同时通过其中两个SIM模块和蜂窝移动网络连接,以用于数据交互,实现通话及数据通信等功能。
需要说明的是,上述多个SIM模块可以是指两个或多于两个的SIM模块。且这多个SIM模块中的每个SIM模块均可以是插入式SIM模块,eSIM模块或软SIM模块。
目前,eSIM技术从在可穿戴设备上大规模使用,现已逐步扩展到平板和个人电脑(personal computer,PC)等产品上。并且,在手机上应用eSIM模块是发展趋势。
在现有技术中,手机要么只支持插入式SIM模块,或者只支持eSIM模块,或者支持一个插入式SIM模块和一个eSIM模块,但只能实现双卡单待功能,或者支持一个插入式SIM模块和一个eSIM模块,且可实现双卡双待功能。
而目前市场上存在大量支持双SIM模块的手机,双SIM模块用户的比例也很高。其中,该双SIM模块可以是两个插入式SIM模块,也可以是一个插入式SIM模块,一个软SIM模块。但现有并没有支持双SIM模块又支持eSIM模块的方案。
本申请在此提供一种支持双SIM模块又支持eSIM模块的方案。也就是说,在本申请实施例中,电子设备可支持三个SIM模块。这三个SIM模块中至少包括一个eSIM模块。其余两个SIM模块可以均是插入式SIM模块,也可以是一个插入式SIM模块,一个软SIM模块。用户能够从这三个SIM模块中任意选择两个SIM模块同时在网待机,或者能够从这三个SIM模块中任意选择一个SIM模块在网待机。
另外,在本申请实施例中,电子设备支持的三个SIM模块中的每个SIM模块均可以为支持全球移动通信系统(global system for mobile communication,GSM)制式、通用移动通信系统(universal mobile telecommunications system,UMTS)制式、时分同步码分多址(time division-synchronous code division multiple access,TD-SCDMA)制式、长期演进(long term evolution,LTE)制式、码分多址(code division multiple access,CDMA)制式等制式中的任意一种制式的SIM模块。本实施例对电子设备中SIM模块支持的制式并不做具体限制。
为了便于描述,以下实施例中以电子设备支持两个插入式SIM模块和一个eSIM模块为例,对本申请实施例进行详细介绍。
例如,请参考图1,为现有提供的一种支持双插入式SIM模块的电子设备的结构组成示意图。如图1所示,该电子设备可以包括:SIM模块接口1和SIM模块接口2(SIM模块接口也可以称为物理卡槽,即电子设备可包括物理卡槽1和物理卡槽2),可分别用于连接插入式SIM模块。例如,SIM模块接口1可用于连接插入式SIM模块1,SIM模块接口2可用于连接插入式SIM模块2。该电子设备还包括调制解调器(modem)0和modem 1,以及智能卡接口(smart card interface,SCI)。位于这些硬件上层的软件可根据用户的选择,通过SCI来控制不同modem与不同SIM模块接口的连接关系。在两个SIM模块接口均连接了插入式SIM模块情况下,电子设备可通过每个插入式SIM模块,及其连接的modem与蜂窝移动网络连接,以进行数据交互,实现通话及数据通信等功能,即可实现双卡双待功能。
请参考图2,为本申请实施例提供的一种支持双插入式SIM模块和eSIM模块的电子设备的结构组成示意图。如图2所示,其除了包括图1所示电子设备的部件外,还可以包括:eSIM模块(或者说eUICC,eUICC用于存储eSIM模块),以及SCI 1。 其中,SCI 1和SCI配合,用于控制不同modem与不同SIM模块接口或eSIM模块(或者说eUICC)的连接关系。在两个SIM模块接口(即物理卡槽)上均连接了插入式SIM模块,同时eSIM模块激活的情况下,电子设备通过三个SIM模块中的其中两个SIM模块(如两个插入式SIM模块,或者一个插入式SIM模块及一个eSIM模块),及其连接的modem便可与蜂窝移动网络连接,以进行数据交互,实现通话及数据通信等功能,即可实现三卡双待功能。
当然,在两个SIM模块接口均未连接插入式SIM模块,仅有eSIM模块激活的情况下,电子设备通过该eSIM模块,及其连接的modem也可与蜂窝移动网络连接。或者,在SIM模块接口1连接了插入式SIM模块,但SIM模块接口2未连接插入式SIM模块,同时eSIM模块激活的情况下,电子设备通过该插入式SIM模块和eSIM模块,及其连接的modem也可分别与蜂窝移动网络连接。或者,在SIM模块接口2连接了插入式SIM模块,但SIM模块接口1未连接插入式SIM模块,同时eSIM模块激活的情况下,电子设备通过该插入式SIM模块或eSIM模块,及其连接的modem可与蜂窝移动网络连接。或者,在两个SIM模块接口均连接了插入式SIM模块,但eSIM模块未激活的情况下,电子设备通过这两个插入式SIM模块,及其连接的modem也可分别与蜂窝移动网络连接。或者,在两个SIM模块接口只有一个SIM模块接口连接了插入式SIM模块,同时eSIM模块未激活的情况下,电子设备通过该插入式SIM模块,及其连接的modem也可与蜂窝移动网络连接。
其中,上述SCI,及SCI 1的功能可通过硬件实现,也可以通过软件实现,本实施例并不做具体限制。
另外,需要说明的是,在本申请实施例中,上述图2所示的支持双插入式SIM模块和eSIM模块的电子设备的结构组成示意图,是以硬件上eSIM模块(或者说eUICC)与SIM模块接口2相连为例示出的。也就是说,eSIM模块和插入SIM模块接口2的插入式SIM模块2只能有其中之一在网待机,即只可由插入SIM模块接口1的插入式SIM模块1,与eSIM模块或插入SIM模块接口2的插入式SIM模块2实现双待功能。在其他一些实施例中,硬件上eSIM模块(或者说eUICC)也可以与SIM模块接口1相连。这样,eSIM模块和插入SIM模块接口1的插入式SIM模块1只能有其中之一在网待机,即只可由插入SIM模块接口2的插入式SIM模块2,与eSIM模块或插入SIM模块接口1的插入式SIM模块1实现双待功能。在另外一些实施例中,硬件上eSIM模块(或者说eUICC)还可以同时与SIM模块接口1和SIM模块接口2相连。例如,如图3所示,除了包括图2所示电子设备的硬件外,还可以包括:SCI 2。其中,SCI 2,SCI 1及SCI三者配合,用于控制不同modem与不同SIM模块接口或eSIM模块的连接关系。这样,不仅可由插入式SIM模块1,与SIM模块或插入式SIM模块2实现双待功能。而且,还可由插入式SIM模块2,与eSIM模块或插入式SIM模块1实现双待功能。
示例性的,本申请实施例中的电子设备可以是能够连接至少两个插入式SIM模块,且支持eSIM模块的设备。例如,该电子设备可以为手机、智能手环、智能手表、平板电脑等,本实施例对该电子设备的具体形式不做特殊限制。以下实施例以手机作为例子来说明能够连接至少两个插入式SIM模块,且支持eSIM模块的电子设备如何实 现实施例中的具体技术方案。
下面将结合附图对本申请实施例的实施方式进行详细描述。
请参考图4,为本申请实施例提供的一种电子设备的硬件结构示意图。如图4所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,第一SIM模块接口195,第二SIM模块接口196及eSIM模块197(或者说电子设备包括eUICC,eUICC用于存储eSIM模块197)等。
可以理解的是,本实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调器111,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,SIM接口,和/或USB接口等。
其中,上述第一SIM模块接口195(如上述SIM模块接口1)可用于连接插入式SIM模块1。插入式SIM模块1通过插入第一SIM模块接口195,或从第一SIM模块接口195拔出,实现和电子设备的接触和分离。上述第二SIM模块接口196(如上述SIM模块接口2)可用于连接插入式SIM模块2。插入式SIM模块2通过插入第二SIM模块接口196,或从第二SIM模块接口196拔出,实现和电子设备的接触和分离。电子设备通过插入式SIM模块1和/或插入式SIM模块2可与网络连接,实现通话以及数据通信等功能。
例如,第一SIM模块接口195和第二SIM模块接口196可以为SIM模块连接器,其包括具有SIM模块收容空间的主体,以及用于对SIM模块的导电端子进行接收的多个联通插槽。SIM模块接口可以通过导电端子和插槽与SIM模块进行信令传输。此外,第一SIM模块接口195和第二SIM模块接口196可以支持多种SIM模块尺寸,即可兼容不同类型的SIM模块,如Nano SIM模块,Micro SIM模块,SIM模块等。第一SIM模块接口195和第二SIM模块接口196也可以兼容外部存储卡。
将通用集成电路卡嵌设在电子设备中,称为eUICC。eUICC中可存储有运营商的多种eSIM配置文件,每一种eSIM配置文件可独立构成一个SIM应用。SIM应用可称为eSIM模块197。电子设备通过eSIM模块197可与网络连接,实现通话以及数据通信等功能。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调器111以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调器111进行解调。移动通信模块150还可以对经调制解调器111调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调器111可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调器111可以是独立的器件。在另一些实施例中,调制解调器111可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。ISP用于处理摄像头193反馈的数据。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。摄像头193用于捕获静态图像或视频。在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据 存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息或需要通过语音助手触发电子设备执行某些功能时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备可以设置至少一个麦克风170C。在另一些实施例中,电子设备可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
其中,传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。压力传感器用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器可以设置于显示屏194。
陀螺仪传感器可以用于确定电子设备的运动姿态。在一些实施例中,可以通过陀螺仪传感器确定电子设备围绕三个轴(即,x,y和z轴)的角速度。气压传感器用于测量气压。磁传感器包括霍尔传感器。电子设备可以利用磁传感器检测翻盖皮套的开合。
加速度传感器可检测电子设备在各个方向上(一般为三轴)加速度的大小。当电 子设备静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。距离传感器,用于测量距离。电子设备可以通过红外或激光测量距离。
电子设备可以利用接近光传感器检测用户手持电子设备贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。环境光传感器用于感知环境光亮度。环境光传感器还可以与接近光传感器配合,检测电子设备是否在口袋里,以防误触。
指纹传感器用于采集指纹。电子设备可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。温度传感器用于检测温度。在一些实施例中,电子设备利用温度传感器检测的温度,执行温度处理策略。
触摸传感器,也称“触控面板”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备的表面,与显示屏194所处的位置不同。骨传导传感器可以获取振动信号。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
另外,上述电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备的软件结构。
图5是本申请实施例提供的一种电子设备的软件架构的组成示意图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为三层,从上至下分别为应用程序层,应用程序框架层(framework),以及内核层。
应用程序层可以包括一系列应用程序包。例如,应用程序包可以包括卡管理应用,亚马逊,微信,设置,计算器,相机,通话,短信息等应用程序。
其中,如图5所示,卡管理应用可为用户提供各种卡管理功能及对应管理界面。如,卡管理应用可为用户提供SIM模块管理功能及对应界面,以便于用户进行双卡管理,如对eSIM模块进行设置等。又如,在开机时卡管理应用可为用户提供开机导航业务及对应界面,以便用户在开机时可进行eSIM模块的添加等。
应用程序框架层(framework)为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。framework是电子设备的运行框架底座。例如,在本申请实施例中,framework可以包括:电话管理器(telephony manager),电话管理服务(telephony service),eUICC管理器(eUICC manager),eUICC服务(eUICC service)。
其中,电话管理器,电话管理服务,eUICC管理器及eUICC服务可为上层卡管理 应用提供卡操作相关的API。上层卡管理应用可通过调用卡操作相关的API实现对应的卡管理功能。例如,卡管理应用可根据用户对插入式SIM模块的设置,调用相关API,通过电话管理器及电话管理服务,配合SIM协议(protocol),对插入式SIM模块进行相应的配置。卡管理应用还可根据用户对eSIM模块的设置,调用相关API,通过eUICC管理器及eUICC服务,配合eSIM协议(protocol),对eSIM模块进行相应的配置。这样,结合图2或图3,在两个SIM模块接口(即SIM模块接口1和SIM模块接口2)上均连接了插入式SIM模块,同时eSIM模块激活的情况下,可使得该电子设备实现三卡双待功能。
当然,结合图2或图3,在两个SIM模块接口均未连接插入式SIM模块,仅有eSIM模块激活的情况下,或者,在SIM模块接口1连接了插入式SIM模块,但SIM模块接口2未连接插入式SIM模块,同时eSIM模块激活的情况下,或者,在SIM模块接口2连接了插入式SIM模块,但SIM模块接口1未连接插入式SIM模块,同时eSIM模块激活的情况下,或者,在两个SIM模块接口均连接了插入式SIM模块,但eSIM模块未激活的情况下,或者,在两个SIM模块接口只有一个SIM模块接口连接了插入式SIM模块,同时eSIM模块未激活的情况下,也可使得电子设备实现对应功能,以便与网络进行交互。
内核层是硬件和软件之间的层。如,在本申请实施例中,内核层是硬件插入式SIM模块及eUICC,与上层framework和应用程序层之间的层。其可以包括各种驱动,如显示驱动,音频驱动等。
在本实施例中,卡管理应用还可根据用户操作,从eSIM服务器(如,签约数据管理-数据准备(subscription manager-data preparation+,SM-DP+))下载eSIM配置文件,并可通过调用相关API,通过eUICC管理器及eUICC服务,配合eSIM协议,将下载的eSIM配置文件写入eUICC中。还可更新eSIM配置文件。eSIM配置文件可独立构成一个SIM应用,即构成一个eSIM模块。
以下实施例中的方法均可以在具有上述硬件结构和软件架构的电子设备中实现。
本申请实施例提供的SIM模块的管理方法可以应用于支持双插入式SIM模块和eSIM模块的电子设备中。在以下实施例中,以电子设备为手机,且电子设备的结构组成如图2所示为例进行介绍。在以下实施例中,SIM模块接口1为本申请中的第一SIM模块接口,SIM模块接口2为本申请中的第二SIM模块接口,插入式SIM模块1为本申请中的第一插入式SIM模块,插入式SIM模块2为本申请中的第二插入式SIM模块。
在本申请一些实施例中,如果手机中的SIM模块(如,上述插入式SIM模块,或上述eSIM模块)状态发生改变,则手机通常需要进行卡设置。
其中,手机可在检测到以下任意一种情况出现时,确定手机中的SIM模块状态发生改变:SIM模块接口(如SIM模块接口1或SIM模块接口2)由未连接插入式SIM模块的状态变为连接了插入式SIM模块的状态(或者说插入式SIM模块被插入SIM模块接口),SIM模块接口由连接了插入式SIM模块的状态变为未连接插入式SIM模块的状态(或者说插入式SIM模块从SIM模块接口被拔出),插入式SIM模块由启用状态变为停用状态,eSIM模块由启用状态变为停用状态,添加了新的eSIM模块并 激活,或将原有已激活的eSIM模块删除等。
示例性的,在用户对插入式SIM模块执行了插入操作或拔出操作后,手机可以确定手机中的SIM模块状态发生改变。
例如,在某SIM模块接口(如SIM模块接口1)未连接插入式SIM模块的情况下,在用户将插入式SIM模块1插入该SIM模块接口1后,手机检测到SIM模块接口1由未连接插入式SIM模块的状态变为连接了插入式SIM模块的状态,此时手机可确定手机中的SIM模块状态发生改变。
又例如,在SIM模块接口1连接了插入式SIM模块1的情况下,在用户将插入式SIM模块1从SIM模块接口1拔出后,手机检测到SIM模块接口1由连接了插入式SIM模块的状态变为未连接插入式SIM模块的状态,此时手机可确定手机中的SIM模块状态发生改变。
又示例性的,在SIM模块接口(如SIM模块接口1或SIM模块接口2)连接了插入式SIM模块的情况下,用户可在SIM模块管理界面中选择启用或停用该插入式SIM模块。在用户在SIM模块管理界面中选择停用插入式SIM模块后,手机可确定SIM模块状态发生改变。
作为一种示例,结合图2可知,在硬件上eSIM模块(或者说eUICC)是与SIM模块接口2相连的,即eSIM模块和插入SIM模块接口2的插入式SIM模块2只能有其中之一在网待机。例如,结合图2,可根据用户的选择,通过SCI 1和SCI配合,控制SIM模块接口2和eSIM模块的其中一个与modem连接,以实现eSIM模块和插入SIM模块接口2的插入式SIM模块2的其中之一在网待机。因此,如图6中的(a)所示,在SIM模块管理界面601的呈现上,图标“卡1”602与SIM接口1中插入的插入式SIM模块1对应,图标“卡1”602对应的控件,如按钮604可用于对插入式SIM模块1进行设置。图标“卡2”603与eSIM模块及SIM接口2中插入的插入式SIM模块2对应,图标“卡2”603对应的控件,如605可用于对插入式SIM模块2及eSIM模块进行设置。
例如,在SIM模块接口1连接了插入式SIM模块1的情况下,如图6中的(a)所示,用户可通过对SIM模块管理界面601中,图标“卡1”602对应的按钮604进行点击操作,来启用或停用该插入式SIM模块1。如,图6中的(a)所示的SIM模块管理界面601(SIM模块管理界面601可以为本申请中的第二界面)中,按钮604(按钮604可以为本申请中的第三按钮)的显示状态用于指示该插入式SIM模块1当前处于启用状态。如果用户想要停用该插入式SIM模块1,则可以对该按钮604进行点击操作。响应于对按钮604的点击操作,手机会将该插入式SIM模块1由启用状态改为停用状态。另外,手机在检测到插入式SIM模块1由启用状态变为停用状态时,可确定手机中的SIM模块状态发生改变。在插入式SIM模块1变为停用状态后,手机将无法通过该插入式SIM模块1与网络连接,即用户无法使用该插入式SIM模块1打电话或上网。手机还可改变按钮604的显示状态(图中未示出),改变后的显示状态用于指示该插入式SIM模块1处于停用状态。另外,如果用户想要重新启用该插入式SIM模块1,可再次对该按钮604进行点击操作,响应于用户再次对该按钮604的点击操作,手机会将该插入式SIM模块1由停用状态改为启用状态。
又例如,在SIM模块接口2连接了插入式SIM模块2的情况下,如图6中的(a)所示,用户可通过对SIM模块管理界面601中,图标“卡2”603对应的控件605进行点击操作。如图6中的(b)所示,响应于对控件605的点击操作,手机可显示卡2设置界面606(卡2设置界面606可以为本申请中的第一界面)。其中,卡2设置界面606中包括:“类型”选项607。该“类型”选项607可用于用户选择SIM模块2和eSIM模块中的其中一个在网待机。如,用户可通过选择按钮607-1或按钮607-2,选择插入式SIM模块2和eSIM模块中的其中一个在网待机(其中,按钮607-1可以为本申请中的第一按钮,按钮607-2可以为本申请中的第二按钮)。例如,结合图2,如果用户选中按钮607-1,未选中按钮607-2,则根据用户的选择,手机通过SCI 1和SCI配合,控制SIM模块接口2与modem连接,以实现插入SIM模块接口2的插入式SIM模块2在网待机。又如,结合图2,如果用户未选中按钮607-1,选中按钮607-2,则根据用户的选择,手机通过SCI 1和SCI配合,控制eSIM模块与modem连接,以实现eSIM模块在网待机。
需要说明的是,图6中的(b)是以默认插入SIM模块接口2的插入式SIM模块2在网待机,即默认SIM模块接口2与modem连接为例示出的界面。也就是说,该示例是以响应于对控件605的点击操作,手机显示图6中的(b)所示的卡2设置界面606为例示出的。在其他一些实施例中,也可默认eSIM模块在网待机,即默认eSIM模块与modem连接,此时,响应于对控件605的点击操作,手机可显示图7中的(a)所示的卡2设置界面702。另外,在本实施例中,是将图6中的(b)所示的卡2设置界面606作为图6中的(a)所示SIM模块管理界面601的下一级界面为例示出的。在其他一些实施例中,卡2设置界面606包括的内容也可以包含在SIM模块管理界面601中。在该实现方式中,卡2设置界面606包括的内容可暂隐藏显示,在接收到用户的操作后显示。如在接收到用户对图标“卡2”603对应的控件605的点击操作后,手机显示在SIM模块管理界面601中显示菜单,该菜单中包括卡2设置界面606中包括的内容。卡2设置界面606包括的内容也可以直接显示在SIM模块管理界面601中。
以当前插入式SIM模块2在网待机为例。卡2设置界面606中“类型”选项607的按钮607-1被选中,按钮607-2未被选中,用于指示当前插入式SIM模块2在网待机。在按钮607-1被选中,按钮607-2未被选中时,结合图2,手机通过SCI 1和SCI的配合,可控制SIM模块接口2与modem连接,以实现插入式SIM模块2在网待机。
卡2设置界面606中还包括:“实体卡设置”选项608。“实体卡设置”选项608可用于用户对插入式SIM模块2进行相关设置。如,用户可通过对“实体卡设置”选项608包括的按钮608-1(按钮608-1可以为本申请中的第四按钮)进行点击操作,来启用或停用该插入式SIM模块2。手机在接收到用户对该按钮608-1的点击操作后,可将该插入式SIM模块2由启用状态改为停用状态,或由停用状态改为启用状态。在按钮607-1被选中,按钮607-2未被选中的情况下,SIM模块2可默认处于启用状态。手机在检测到插入式SIM模块2由启用状态变为停用状态时,可确定手机中的SIM模块状态发生改变。其中,启用或停用插入式SIM模块2的具体描述与上述示例中启用或停用插入式SIM模块1的相关描述类似,此处不再详细赘述。另外,“实体卡设置”选项608还可提供对插入式SIM模块2的卡名称及SIM模块号码的设置选项。用户通过对 应的设置选项可对插入式SIM模块2的卡名称及SIM模块号码进行设置。
又示例性的,在eSIM模块在网待机的情况下,用户也可以选择启用或停用该eSIM模块。在用户选择启用或停用eSIM模块后,eSIM模块的状态发生相应的改变。手机在检测到eSIM模块由启用状态变为停用状态时,可确定手机中的SIM模块状态发生改变。
例如,请参考图7,如图7中的(a)所示,以eSIM模块在网待机为例。卡2设置界面701(卡2设置界面701可以为本申请中的第一界面)中“类型”选项702的按钮702-1未被选中,按钮702-2被选中(其中,按钮702-1可以为本申请中的第一按钮,按钮702-2可以为本申请中的第二按钮),用于指示当前eSIM模块在网待机。例如,用户可在图6中的(b)所示的界面中,选中按钮607-2,响应于用户的操作,手机可显示如图7中的(a)所示的卡2设置界面701。在按钮702-1未被选中,按钮702-2被选中时,结合图2,手机通过SCI 1和SCI的配合,可控制eSIM模块与modem连接,以实现eSIM模块在网待机。
卡2设置界面701中还包括:“eSIM模块设置”选项703,用于用户对eSIM模块进行相关设置。如用户可对“eSIM模块设置”选项703包括的按钮703-1进行点击操作。如图7中的(b)所示,响应于对按钮703-1的点击操作,手机显示eSIM模块设置界面704。eSIM模块设置界面704可用于用户对eSIM模块进行相关设置。如,用户可通过对eSIM模块设置界面704(eSIM模块设置界面704可以为本申请中的第四界面)包括的按钮705(按钮705可以为本申请中的第五按钮)进行点击操作,来启用或停用该eSIM模块。在按钮702-1未被选中,按钮702-2被选中的情况下,eSIM模块可默认处于启用状态。手机在接收到用户对该按钮705的点击操作后,可将该eSIM模块由启用状态改为停用状态,或由停用状态改为启用状态。手机在检测到eSIM模块由启用状态变为停用状态时,可确定手机中的SIM模块状态发生改变。其中,启用或停用eSIM模块的具体描述与上述示例中启用或停用插入式SIM模块1的相关描述类似,此处不再详细赘述。另外,eSIM模块设置界面704中还可提供对eSIM模块的卡名称及卡号码的设置选项。用户通过对应的设置选项可对eSIM模块的卡名称及卡号码进行设置。
上述卡2设置界面701中还可包括:EID查看按钮710。在用户想要查看存储该eSIM模块对应eSIM配置文件的eUICC的EID时,可以对EID查看按钮710进行点击操作。如图7中的(d)所示,响应于对EID查看按钮710的点击操作,手机可显示界面711。该界面711中包括EID。
另外,在一些实施例中,在选择了eSIM模块在网待机的情况下,为了能够让用户获知当前选择的是eSIM模块,相较于图6中的(a)所示的SIM模块管理界面601,如图7中的(c)所示的SIM模块管理界面706中,与eSIM模块及插入SIM接口2中的插入式SIM模块2对应的图标“卡2”707中包含有字样“eSIM卡”。
又示例性的,用户还可以在手机中添加新的eSIM模块并激活,或将原有激活的eSIM模块删除。在用户在手机中添加了新的eSIM模块并激活,或将原有激活的eSIM模块删除后,手机可确定SIM模块状态发生改变。其中,添加并激活的新的eSIM模块可以为本申请中的第二eSIM模块。原有激活的eSIM模块可以为本申请中的第一 eSIM模块。
例如,对于手机中原有激活的eSIM模块,如果用户想要删除该eSIM模块,如图7中的(b)所示,用户可对删除按钮708进行点击操作。响应于对删除按钮708的点击操作,手机可将该eSIM模块从手机中删除。手机检测到原有激活的eSIM模块被删除,可确定手机中的SIM模块状态发生改变。
又例如,如果用户想在手机中添加新的eSIM模块,则如图7中的(a)所示,用户可对添加按钮709进行点击操作,或者在首次开机时,手机可在开机向导流程中提供用于添加eSIM模块的入口,即如图8中的(a)所示,用户可对开机向导界面801中的添加eSIM模块按钮802进行点击操作。响应于对添加按钮709或添加eSIM模块按钮802的点击操作,如图8中的(b)所示,手机查询是否有可用的eSIM配置文件,并可显示添加eSIM模块的等待界面803。如果手机查询到有可用的eSIM配置文件,则如图8中的(c)所示,可显示界面804,并显示提示框805。该提示框805用于提示用户已查找到可用的eSIM配置文件,并询问用户是否要激活该eSIM配置文件。此时,用户可点击直接激活按钮806。响应于用户对直接激活按钮806的点击操作,手机可激活该eSIM配置文件。如图8中的(e)所示,手机还可显示激活eSIM模块的等待界面808。如果手机查询到没有可用的eSIM配置文件,则可打开手机的摄像头,并如图8中的(d)所示,显示扫一扫界面807,以便用户通过手机扫描运营商提供的对应二维码以便从运营商的服务器获取eSIM配置文件,或者用户也可以选择图库中保存的二维码或手动输入对应号码以便手机获取eSIM配置文件。在手机获取到eSIM配置文件后,可激活该eSIM配置文件。如图8中的(e)所示,手机也可显示激活eSIM模块的等待界面808。在eSIM配置文件激活成功后,如图8中的(f)所示,手机可显示提示界面809,以提示用户新的eSIM模块已成功添加,可使用其相关功能。另外,手机在检测到有新的eSIM模块成功添加并激活时,可确定手机中的SIM模块状态发生改变。
在手机确定手机中的SIM模块状态发生改变后,手机可进行卡设置。在本实施例中,手机进行卡设置具体的可以是:手机进行主卡及副卡设置。在一些实施例中,被设置为主卡的SIM模块可用于手机传输移动数据,被设置为副卡的SIM模块不能用于手机传输移动数据。在其他一些实施例中,被设置为主卡的SIM模块和被设置为副卡的SIM模块均可用于手机传输移动数据,且被设置为主卡的SIM模块优先被使用。例如,在被设置为主卡的SIM模块网络状况好时,手机使用被设置为主卡的SIM模块传输移动数据,在被设置为主卡的SIM模块网络状况较差时,手机使用被设置为副卡的SIM模块传输移动数据。
在一些实施例中,以用户在SIM模块接口插入插入式SIM模块,即SIM模块接口(如SIM模块接口1或SIM模块接口2)由未连接插入式SIM模块的状态变为连接了插入式SIM模块的状态为例。用户将插入式SIM模块插入SIM模块接口后,手机可确定手机中的SIM模块状态发生改变。手机获取状态发生改变的SIM模块的卡信息,并对手机中eSIM模块的激活状态进行检查,以根据获取到的卡信息和手机中激活的eSIM模块的激活状态进行卡设置。
其中,该卡信息可以包括:卡类型和卡标识。卡类型可以为插入式SIM模块或eSIM 模块,卡标识可以为SIM模块(如插入式SIM模块或eSIM模块)的ICCID。
例如,结合图2,以用户将插入式SIM模块1插入SIM模块接口1为例。在用户将插入式SIM模块1插入SIM模块接口1后,手机可确定手机中的SIM模块状态发生改变。手机获取状态发生改变的SIM模块的卡类型和卡标识。如获取到的卡类型为插入式SIM模块,ICCID为ICCID 1。ICCID 1是插入式SIM模块1的ICCID。
手机还可对手机中eSIM模块的激活状态进行检查,以确定手机是否激活了eSIM模块。
例如,手机可以根据手机中激活的eSIM配置文件的数量来确定手机是否激活了eSIM模块。如果手机中激活的eSIM配置文件的数量为0,则手机可确定该手机未激活eSIM模块。如果手机中激活的eSIM配置文件的数量不为0,则手机可确定该手机激活了eSIM模块。
在本申请实施例中,手机可根据手机中记录的eSIM模块的卡状态,获得手机中激活的eSIM配置文件的数量。其中,结合图5,eSIM模块的卡状态,卡类型以及ICCID等,可以是在内核层上报了SIM_SLOT_STATUS_CHANGED事件后,由手机的应用程序框架层进行卡账户信息查询后记录在手机中的。
如果手机没有激活eSIM模块,则手机可以获取手机中插入的插入式SIM模块的数量。如果手机中仅插入了一个插入式SIM模块,如手机中仅插入了上述插入式SIM模块1,则手机可将该插入式SIM模块1设置为主卡。如果手机中插入了两个插入式SIM模块,即同时插入了该插入式SIM模块1和插入式SIM模块2,则手机可根据获取到的卡类型和卡标识确定该新插入的插入式SIM模块1之前是否被用户设置为主卡。如果该插入式SIM模块1之前被用户设置为主卡,则手机将该插入式SIM模块1设置为主卡,插入式SIM模块2设置为副卡。如果该插入式SIM模块1之前未被用户设置为主卡,则手机根据插入式SIM模块1和插入式SIM模块2连接的SIM模块接口来进行卡设置。如,插入式SIM模块1与SIM模块接口1连接,插入式SIM模块2与SIM模块接口2连接,且SIM模块接口1为主卡槽,则手机设置插入式SIM模块1为主卡,设置插入式SIM模块2为副卡。又如,插入式SIM模块1与SIM模块接口1连接,插入式SIM模块2与SIM模块接口2连接,且SIM模块接口2为主卡槽,则手机设置插入式SIM模块2为主卡,设置插入式SIM模块1为副卡。其中,上述主卡槽可以是指之前(如上一次)与其连接的SIM模块被用户设置为主卡。
如果手机激活了eSIM模块,即手机同时有插入式SIM模块1和eSIM模块在位,则手机可根据该新插入的插入式SIM模块1之前是否被用户设置为主卡的结果进行卡设置。具体的设置方式与手机未激活eSIM模块,且同时插入了插入式SIM模块1和插入式SIM模块2时卡设置的方式类似,此处不再赘述。
以用户将插入式SIM模块2插入SIM模块接口2为例。在用户将插入式SIM模块2插入SIM模块接口2后,手机可确定手机中的SIM模块状态发生改变。手机获取状态发生改变的SIM模块的卡类型和卡标识。如获取到的卡类型为插入式SIM模块,ICCID为ICCID 2。ICCID 2是插入式SIM模块2的ICCID。
手机还可对手机中eSIM模块的激活状态进行检查,以确定手机是否激活了eSIM模块。如果手机没有激活eSIM模块,则手机设置进行卡设置的描述与上述插入插入 式SIM模块1且手机没有激活eSIM模块的描述类似,此处不再赘述。如果手机激活了eSIM模块,手机可根据用户选择进行卡设置。例如,在SIM模块接口1未插入插入式SIM模块时,手机向用户提示已有eSIM模块,是否使用插入式SIM模块2。如果用户选择使用插入式SIM模块2,则可去激活eSIM模块,并将插入式SIM模块2设置为主卡。如果用户选择不使用插入式SIM模块2,则可继续设置eSIM模块为主卡。又例如,在SIM模块接口1插入了插入式SIM模块1,且插入式SIM模块1被设置为主卡时,手机向用户提示已有eSIM模块,是否使用插入式SIM模块2。如果用户选择使用插入式SIM模块2,则可去激活eSIM模块,并将插入式SIM模块2设置为副卡。如果用户选择不使用插入式SIM模块2,则可继续设置eSIM模块为副卡。又例如,在SIM模块接口1插入了插入式SIM模块1,且插入式SIM模块1被设置为副卡时,手机向用户提示已有eSIM模块,是否使用插入式SIM模块2。如果用户选择使用插入式SIM模块2,则可去激活eSIM模块,并将插入式SIM模块2设置为主卡。如果用户选择不使用插入式SIM模块2,则可继续设置eSIM模块为主卡。
在其他一些实施例中,以新安装了eSIM模块并激活为例。用户在手机中新安装了eSIM模块并由手机将其激活后,手机可确定手机中的SIM模块状态发生改变。手机获取状态发生改变的SIM模块的卡信息,并确定SIM模块接口1是否插入了插入式SIM模块,以根据获取到的卡信息和SIM模块接口1是否插入了插入式SIM模块的结果进行卡设置。
例如,结合图2,用户在手机中新安装了eSIM模块并由手机将其激活后,手机可确定手机中的SIM模块状态发生改变。手机获取状态发生改变的SIM模块的卡类型和卡标识。如获取到的卡类型为eSIM模块,ICCID为ICCID 2。ICCID 2是eSIM模块的ICCID。
手机还可确定SIM模块接口1是否插入了插入式SIM模块。如果SIM模块接口1未插入插入式SIM模块,则手机将eSIM模块设置为主卡。如果SIM模块接口1插入了插入式SIM模块,如插入式SIM模块1,则手机可根据获取到的卡类型和卡标识确定该eSIM模块之前是否被用户设置为主卡。如果该eSIM模块之前被用户设置为主卡,则手机将该eSIM模块设置为主卡,插入式SIM模块1设置为副卡。如果该eSIM模块之前未被用户设置为主卡,则手机根据与插入式SIM模块1和eSIM模块连接的SIM模块接口来进行卡设置。如,插入式SIM模块1与SIM模块接口1连接,eSIM模块与SIM模块接口2连接,且SIM模块接口1为主卡槽,则手机设置插入式SIM模块1为主卡,设置eSIM模块为副卡。又如,插入式SIM模块1与SIM模块接口1连接,eSIM模块与SIM模块接口2连接,且SIM模块接口2为主卡槽,则手机设置eSIM模块为主卡,设置插入式SIM模块1为副卡。
在另外一些实施例中,以用户将插入式SIM模块从SIM模块接口拔出,即SIM模块接口(如SIM模块接口1或SIM模块接口2)由连接了插入式SIM模块的状态变为未连接插入式SIM模块的状态为例。用户将插入式SIM模块从SIM模块接口拔出后,手机可确定手机中的SIM模块状态发生改变。手机对手机中eSIM模块的激活状态进行检查,并获取手机中插入的插入式SIM模块的情况,以根据手机中激活的eSIM模块的激活状态和插入的插入式SIM模块的情况进行卡设置。
例如,结合图2,以用户将插入式SIM模块1从SIM模块接口1拔出为例。在用户将插入式SIM模块1从SIM模块接口1拔出后,手机可确定手机中的SIM模块状态发生改变。
如果插入式SIM模块1当前被设置为副卡,则不进行卡设置。
如果插入式SIM模块1当前被设置为主卡,则手机可对手机中eSIM模块的激活状态进行检查,以确定手机是否激活了eSIM模块。如果手机没有激活eSIM模块,则手机可以确定SIM模块接口2中是否插入了插入式SIM模块。如果SIM模块接口2中插入了插入式SIM模块,如插入式SIM模块2,则手机可将该插入式SIM模块2设置为主卡。如果手机激活了eSIM模块,则手机可以确定SIM模块接口2中是否插入了插入式SIM模块。如果SIM模块接口2中并未插入插入式SIM模块,则手机可设置该eSIM模块为主卡。如果SIM模块接口2中插入了插入式SIM模块,如插入式SIM模块2,则手机可根据用户当前的设置,将在网待机的SIM模块设置为主卡。如,用户当前选择插入式SIM模块2在网待机,则手机设置插入式SIM模块2为主卡。又如,用户当前选择eSIM模块在网待机,则手机设置eSIM模块为主卡。具体用户如何选择插入式SIM模块2和eSIM模块中的其中一个在网待机可参见图6所示示例中对应内容的描述。
又例如,结合图2,以用户将插入式SIM模块2从SIM模块接口2拔出为例。在用户将插入式SIM模块2从SIM模块接口2拔出后,手机可确定手机中的SIM模块状态发生改变。
如果插入式SIM模块2当前被设置为副卡,则不进行卡设置。
如果插入式SIM模块2当前被设置为主卡,则手机可对手机中eSIM模块的激活状态进行检查,以确定手机是否激活了eSIM模块。如果手机没有激活eSIM模块,则手机可以确定SIM模块接口1中是否插入了插入式SIM模块。如果SIM模块接口1中插入了插入式SIM模块,如插入式SIM模块1,则手机设置插入式SIM模块1为主卡。如果手机激活了eSIM模块,则手机设置该eSIM模块为主卡。
另外,如果被用户拔出的插入式SIM模块当前被设置为主卡,则在用户将该插入式SIM模块拔出后,手机还可获取该被拔出的插入式SIM模块的卡信息(卡信息可包括卡类型和卡标识),并记录获得的卡信息。在后续该插入式SIM模块被重新插入SIM模块接口后,手机可根据记录的卡信息,将该插入式SIM模块设置为主卡。
在另外一些实施例中,以用户将原有已激活的eSIM模块删除为例。用户将原有已激活的eSIM模块删除后,手机可确定手机中的SIM模块状态发生改变。手机获取手机中插入的插入式SIM模块的情况,以根据插入的插入式SIM模块的情况进行卡设置。
例如,结合图2,在用户将原有已激活的eSIM模块删除后,手机可确定手机中的SIM模块状态发生改变。
如果根据用户当前的设置,该eSIM模块并未被选择为在网待机的SIM模块,则不进行卡设置。
如果根据用户当前的设置,该eSIM模块被选择为在网待机的SIM模块,且该eSIM模块当前被设置为副卡,则不进行卡设置。
如果根据用户当前的设置,该eSIM模块被选择为在网待机的SIM模块,且该eSIM模块当前被设置为主卡,则手机确定SIM模块接口2中是否插入了插入式SIM模块。如果SIM模块接口2中插入了插入式SIM模块,如插入式SIM模块2,则手机可将该插入式SIM模块2设置为主卡。如果SIM模块接口2中并未插入插入式SIM模块,则手机可确定SIM模块接口1中是否插入了插入式SIM模块。如果SIM模块接口1中插入了插入式SIM模块,如插入式SIM模块1,则手机设置插入式SIM模块1为主卡。
另外,如果被用户删除的已激活的eSIM模块当前被设置为主卡,则在用户将该eSIM模块删除后,手机还可获取该eSIM模块的卡信息(卡信息可包括卡类型和卡标识),并记录获得的卡信息。在后续该eSIM模块被重新激活后,手机可根据记录的卡信息,将该eSIM模块设置为主卡。
在另一些实施例中,以用户将插入式SIM模块(如插入式SIM模块1或插入式SIM模块2)由启用状态变为停用状态为例。用户将插入式SIM模块由启用状态变为停用状态后,手机可确定手机中的SIM模块状态发生改变。手机对手机中eSIM模块的激活状态进行检查,并获取手机中插入的插入式SIM模块的情况,以根据手机中激活的eSIM模块的激活状态和插入的插入式SIM模块的情况进行卡设置。
例如,结合图2,以用户将插入式SIM模块1由启用状态变为停用状态为例。在用户将插入式SIM模块1由启用状态变为停用状态后,手机可确定手机中的SIM模块状态发生改变。
如果插入式SIM模块1当前被设置为副卡,则不进行卡设置。
如果插入式SIM模块1当前被设置为主卡,则手机可对手机中eSIM模块的激活状态进行检查,以确定手机是否激活了eSIM模块。如果手机没有激活eSIM模块,则手机可以确定SIM模块接口2中是否插入了插入式SIM模块。如果SIM模块接口2中插入了插入式SIM模块,如插入式SIM模块2,则手机可将该插入式SIM模块2设置为主卡。如果手机激活了eSIM模块,则手机可以确定SIM模块接口2中是否插入了插入式SIM模块。如果SIM模块接口2中并未插入插入式SIM模块,则手机可设置该eSIM模块为主卡。如果SIM模块接口2中插入了插入式SIM模块,如插入式SIM模块2,则手机可根据用户当前的设置,将在网待机的SIM模块设置为主卡。如,用户当前选择插入式SIM模块2在网待机,则手机设置插入式SIM模块2为主卡。又如,用户当前选择eSIM模块在网待机,则手机设置eSIM模块为主卡。具体用户如何选择插入式SIM模块2和eSIM模块中的其中一个在网待机可参见图6所示示例中对应内容的描述。
又例如,结合图2,以用户将插入式SIM模块2由启用状态变为停用状态为例。在用户将插入式SIM模块2由启用状态变为停用状态后,手机可确定手机中的SIM模块状态发生改变。
如果插入式SIM模块2当前被设置为副卡,则不进行卡设置。
如果插入式SIM模块2当前被设置为主卡,则手机可对手机中eSIM模块的激活状态进行检查,以确定手机是否激活了eSIM模块。如果手机没有激活eSIM模块,则手机可以确定SIM模块接口1中是否插入了插入式SIM模块。如果SIM模块接口1 中插入了插入式SIM模块,如插入式SIM模块1,则手机设置插入式SIM模块1为主卡。如果手机激活了eSIM模块,则手机设置该eSIM模块为主卡。
在另一些实施例中,以用户将eSIM模块由启用状态变为停用状态为例。用户将eSIM模块由启用状态变为停用状态后,手机可确定手机中的SIM模块状态发生改变。手机获取手机中插入的插入式SIM模块的情况,以根据插入的插入式SIM模块的情况进行卡设置。
例如,结合图2,以用户将eSIM模块由启用状态变为停用状态为例。在用户将eSIM模块由启用状态变为停用状态后,手机可确定手机中的SIM模块状态发生改变。
如果eSIM模块当前被设置为副卡,则不进行卡设置。
如果eSIM模块当前被设置为主卡,则手机可确定SIM模块接口2中是否插入了插入式SIM模块。如果确定SIM模块接口2中插入了插入式SIM模块,如插入式SIM模块2,则手机设置该插入式SIM模块2为主卡。如果SIM模块接口2中并未插入插入式SIM模块,则手机确定SIM模块接口1中是否插入了插入式SIM模块。如果SIM模块接口1中插入了插入式SIM模块,如插入式SIM模块1,则手机设置插入式SIM模块1为主卡。
需要说明的是,上述实施例中的“确定手机中SIM模块状态发生改变”是可选的步骤。也就是说,手机可以在检测到SIM模块接口由未连接插入式SIM模块的状态变为连接了插入式SIM模块的状态,SIM模块接口由连接了插入式SIM模块的状态变为未连接插入式SIM模块的状态,插入式SIM模块由启用状态变为停用状态,eSIM模块由启用状态变为停用状态,添加了新的eSIM模块并激活,或将原有已激活的eSIM模块删除等情况出现时,便进行卡设置。手机也可以在检测到上述情况之一时,确定SIM模块状态发生改变,然后再进行卡设置。本实施例在此不做具体限制。
在本申请其他一些实施例中,用户可以自主选择插入式SIM模块2在网待机,还是eSIM模块在网待机。如,在当前插入式SIM模块2在网待机的情况下,用户可切换为eSIM模块在网待机。另外,手机还可响应用户的切换操作,执行图9所示的流程,以完成卡设置。
例如,继续参考图6及其示例,当前插入式SIM模块2在网待机。如果用户想要切换eSIM模块在网待机,如图6中的(b)所示,用户可以对卡2设置界面606中包括:“类型”选项607包括的按钮607-2进行点击操作。
如图9所示,响应于对按钮607-2的点击操作,手机可判断当前是否是eSIM模块开户流程(即执行S901)。如果是开户流程,则判断是否有可用的WiFi网络(即执行S902)。如果有可用的WiFi网络,则判断SIM模块接口2是否连接了插入式SIM模块(即执行S903)。其中,开户流程可参考现有GSMA中对eSIM的定义,参见SGP.22中对应内容的描述,本申请不予赘述。
如果没有可用的WiFi网络,则手机判断SIM模块接口1是否连接了插入式SIM模块(即执行S904)。如果SIM模块接口1没有连接插入式SIM模块,则流程结束。如果SIM模块接口1连接了插入式SIM模块,如插入式SIM模块1,则可设置默认数据业务卡为该插入式SIM模块1(即执行S905),并继续执行S903,即判断SIM模块接口2是否连接了插入式SIM模块。
如果不是开户流程,则手机可执行S903,即判断SIM模块接口2是否连接了插入式SIM模块。
如果S903的判断结果是SIM模块接口2连接了插入式SIM模块,则手机可以将SIM模块接口2连接的插入式SIM模块,如插入式SIM模块2停用(即执行S906)。还可提示用户SIM模块接口2连接了插入式SIM模块,将停用该卡(即执行S907)。然后手机执行S908、将SIM模块接口2与modem连接,切换为eSIM模块(或者说eUICC)与modem连接。在其他一些实施例中,如果S903的判断结果是SIM模块接口2连接了插入式SIM模块,则手机可先提示用户SIM模块接口2连接了插入式SIM模块,将停用该卡(即执行S907)。手机如果接收到用户确认停用插入式SIM模块2的操作,则执行S906,S908,S909及S910。手机如果接收到用户取消停用插入式SIM模块2的操作,则流程结束。
如果S903的判断结果是SIM模块接口2未连接插入式SIM模块,则可直接执行S908。接下来,手机可执行S909、执行开户流程(S901判断结果为开户流程时执行)或激活对应eSIM配置文件(S901判断结果为不是开户流程时执行)。
之后,手机可以进行卡设置(即执行S910)。具体的可以包括:手机判断插入插入式SIM模块的数量是否为0。如果插入插入式SIM模块的数量为0,则将激活的eSIM模块自动设置为主卡。如果插入插入式SIM模块的数量为1,且SIM模块接口1插入了插入式SIM模块1,则将插入式SIM模块1设置为主卡,将激活的eSIM模块设置为副卡。如果插入插入式SIM模块的数量为1,且SIM模块接口2插入了插入式SIM模块2,则自动将插入式SIM模块2去激活,并将激活的eSIM模块设置为主卡。如果插入插入式SIM模块的数量为2,则手机可显示提示信息,提醒用户设置默认主卡。
另外,响应于对按钮607-2的点击操作,卡2设置界面606可更新为如图7中的(a)所示的701。卡2设置界面701中“类型”选项702的按钮702-1未被选中,按钮701-2被选中,用于指示当前选择插入式SIM模块2和eSIM模块中,eSIM模块在网待机。如果用户想要重新选择插入式SIM模块2在网待机,则可对卡2设置界面701中“类型”选项702的按钮702-1进行点击操作。响应于对按钮702-1的点击操作,手机会将eSIM模块在网待机切换为插入式SIM模块2在网待机。当然,响应于用户对按钮702-1的点击操作,卡2设置界面701会更新为如图6中的(b)所示的606。
在本申请另外一些实施例中,可以通过如图10中所示的流程来进行eSIM模块的卡账户更新。卡账户更新可以包括:eSIM模块的ICCID,卡名称,EID,激活或去激活对应的eSIM配置文件等信息中的一个或多个的更新。也就是说,当这些信息发生变化时,均可根据相关变化进行eSIM模块的卡账户更新。
其中,在图10中,SubscriptionManager,subscriptionController,PhoneFactory,HwSubscriptionInfoUpdaterReference,EuiccCard及SubscriptionInfoUpdater均为电话管理服务中的类函数。例如,当eUICC管理器进行了如激活、去激活或删除对应的eSIM配置文件的操作时,可按照图10中步骤1-6进行eSIM模块的卡账户更新。如,当eUICC管理器进行了如激活、去激活或删除对应的eSIM配置文件的操作时,eUICC管理器经类函数:SubscriptionManager,subscriptionController,PhoneFactory及HwSubscriptionInfoUpdaterReference向类函数SubscriptionInfoUpdater下发函数 “requestEmbeddedSubscriptionInfoListRefresh”,用于请求进行eSIM模块的卡账户更新,即执行步骤1-4。之后,类函数SubscriptionInfoUpdater通过函数“EVENT_REFRESH_EMBEDDED_SUBSCRIPTIONS”调用函数“updateEmbededSubscriptions”,以实现eSIM模块的卡账户更新,即执行步骤5和步骤6。
又例如,在一些实施例中,当用户对硬SIM模块进行了拔插卡,启用或禁用的操作时,可按照图10中的步骤7-8进行eSIM模块的卡账户更新。如,当用户对硬SIM模块进行了拔插卡,启用或禁用的操作时,类函数HwSubscriptionInfoUpdaterReference通过函数“updateSubscriptionInfoByIccid”调用类函数SubscriptionInfoUpdater的函数“updateEmbededSubscriptions”,以实现eSIM模块的卡账户更新,即执行步骤7和步骤8。在另一些实施例中,如果用户对硬SIM模块进行了拔插卡,启用或禁用的操作,也可以不进行eSIM模块的卡账户更新。
再例如,目前,eUICC只可同时处理一条命令(如查询EID命令、账户更新命令等),如果有两条或多于两条命令需要处理,则会由于命令碰撞导致命令执行失败。其中一个比较常见的场景是在进行EuiccCard对象创建时会有查询EID命令需要处理,此时如果同时有账户更新命令需要处理,则会发生碰撞,导致账户更新命令处理失败。为了解决该问题,手机可以持续监听是否有查询EID的命令。在有进行eSIM模块的卡账户更新的需求时,如果没有监听到查询EID的命令,则处理账户更新命令,即直接进行eSIM模块的卡账户更新,并持续监听。如果有监听到查询EID命令,则在查询EID结束后,处理账户更新命令,即进行eSIM模块的卡账户更新。例如,如图10中的步骤9-步骤14:当类函数HwSubscriptionInfoUpdaterReference监测到有查询EID命令需要处理,即步骤9中监听到“updateIccAvailability”,还确定有进行eSIM模块的卡账户更新的需求,即步骤10中监听到“updateIccAvailabilityForEuicc”。类函数HwSubscriptionInfoUpdaterReference可先向类函数EuiccCard下发“registerForEidRead”,以请求监听EID,即执行步骤11。在监听到EID后,类函数EuiccCard可通过函数“handleEuiccEidReady”,向类函数HwSubscriptionInfoUpdaterReference回复查询的EID(即执行步骤12)。之后EID的查询完成。在EID查询结束后,类函数HwSubscriptionInfoUpdaterReference通过调用函数“updateEmbededSubscriptions”,以触发类函数SubscriptionInfoUpdater实现eSIM模块的卡账户更新,即执行步骤13。之后,类函数HwSubscriptionInfoUpdaterReference可向类函数EuiccCard下发“registerForEidReady”,以去注册对查询EID命令的监听。
在本申请另外一些实施例中,可以通过如图11中所示的流程来进行eSIM模块的卡账户查询。其中,在图11中,SubscriptionManager,subscriptionController及SubscriptionInfoUpdater均为电话管理服务中的类函数。LUI为本地配置文件助理(local profile assistant,LPA)的界面。LPA可以是eUICC的管理软件,如卡管理应用,对应的,LUI可以为如上述图6或图7所示的SIM模块管理界面。在执行图10中步骤6(即图11中的步骤1),即类函数SubscriptionInfoUpdater通过调用函数“updateEmbededSubscriptions”,实现eSIM模块的卡账户更新后,可执行图11中的步骤2-3,即类函数SubscriptionInfoUpdater向类函数subscriptionController下发 notifySubscriptionInfoChanged,通知eSIM模块的卡账户发生更新。类函数subscriptionController通过调用函数“broadcastSimInfoContentChanged”,进行eSIM模块的卡账户发生更新的广播,即在步骤4中,发送“android.intent.action.ACTION_SUBINFO_CONTENT_CHANGE”。之后,LUI监听到该广播,则可通过执行图11中的步骤5-7进行eSIM模块的卡账户查询。即LUI通过类函数SubscriptionManager向类函数subscriptionController发送“getAvailableSubscriptionInfoList”。类函数subscriptionController通过调用函数“getSubInfo”,完成卡账户的查询。在查询到卡账户后,可根据查询结果进行对应的界面更新,如更新图7中的(b),图7中的(c)中的卡名称等内容。
本申请另一些实施例还提供了一种电子设备,如图12所示,该电子设备可以包括:处理器1201,第一调制解调器1202,第二调制解调器1203,移动通信模块1204,第一SIM模块接口1205,第二SIM模块接口1206,eUICC 1207及存储器1208,eUICC 1207用于存储eSIM模块。上述各器件可以通过一个或多个通信总线1210连接。存储器1208用于存储一个或多个计算机程序1209。一个或多个计算机程序1209被配置为被该处理器1201执行。该一个或多个计算机程序1209包括指令,上述指令可以用于执行上述实施例中电子设备(如手机)执行的各个步骤。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only  Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (32)

  1. 一种电子设备,其特征在于,所述电子设备包括:处理器,第一调制解调器,第二调制解调器,移动通信模块,第一用户识别模块SIM模块接口,第二SIM模块接口,嵌入式通用集成电路卡eUICC,所述eUICC用于存储嵌入式用户识别模块eSIM模块;
    其中,所述处理器与所述第一调制解调器,所述第二调制解调器,所述移动通信模块,所述第一SIM模块接口,所述第二SIM模块接口及所述eUICC耦合;
    所述处理器,用于控制所述第一SIM模块接口,所述第二SIM模块接口及所述eUICC,与所述第一调制解调器和所述第二调制解调器的连接关系。
  2. 根据权利要求1所述的电子设备,其特征在于,所述电子设备还包括智能卡接口SCI,所述SCI的一端耦合所述处理器,另一端同时耦合所述第二SIM模块接口和所述eUICC;
    所述处理器,用于控制所述第一SIM模块接口,所述第二SIM模块接口及所述eUICC,与所述第一调制解调器和所述第二调制解调器的连接关系,包括:
    所述处理器,用于通过对所述SCI进行控制,控制所述第二SIM模块接口和所述eUICC,与所述第一调制解调器和所述第二调制解调器的连接关系。
  3. 根据权利要求2所述的电子设备,其特征在于,所述处理器,还用于在检测到如下任意一种情况发生时,进行卡设置:
    第一插入式SIM模块被插入所述第一SIM模块接口;
    第二插入式SIM模块被插入所述第二SIM模块接口;
    所述第一SIM模块接口连接的所述第一插入式SIM模块被拔出;
    所述第二SIM模块接口连接的所述第二插入式SIM模块被拔出;
    所述第一SIM模块接口连接了所述第一插入式SIM模块时,所述第一插入式SIM模块由启用状态变为停用状态;
    所述第二SIM模块接口连接了所述第二插入式SIM模块时,所述第二插入式SIM模块由启用状态变为停用状态;
    第一eSIM模块由启用状态变为停用状态,所述第一eSIM模块是所述eUICC中存储的当前被激活eSIM模块;
    所述第一eSIM模块被删除;
    第二eSIM模块被安装并激活。
  4. 根据权利要求3所述的电子设备,其特征在于,在所述处理器检测到所述第一插入式SIM模块被插入所述第一SIM模块接口时,所述处理器进行卡设置,包括:
    所述处理器获取所述第一插入式SIM模块的卡信息;
    所述处理器确定所述电子设备是否激活了eSIM模块;
    如果所述电子设备没有激活eSIM模块,且所述电子设备仅插入了所述第一插入式SIM模块,则所述处理器将所述第一插入式SIM模块设置为主卡。
  5. 根据权利要求4所述的电子设备,其特征在于,
    如果所述电子设备没有激活eSIM模块,且所述电子设备插入了所述第一插入式SIM模块和第二插入式SIM模块,所述第二插入式SIM模块与所述第二SIM模块接 口连接,则所述处理器根据所述卡信息,在确定所述第一插入式SIM模块之前被用户设置为主卡时,设置所述第一插入式SIM模块为主卡,设置所述第二插入式SIM模块为副卡;
    所述处理器根据所述卡信息,在确定所述第一插入式SIM模块之前未被用户设置为主卡时,如果所述第一SIM模块接口为主卡槽,则设置所述第一插入式SIM模块为主卡,设置所述第二插入式SIM模块为副卡,如果所述第二SIM模块接口为主卡槽,则设置所述第二插入式SIM模块为主卡,设置所述第一插入式SIM模块为副卡。
  6. 根据权利要求4或5所述的电子设备,其特征在于,
    如果所述电子设备激活了第一eSIM模块,则所述处理器根据所述卡信息,在确定所述第一插入式SIM模块之前被用户设置为主卡时,设置所述第一插入式SIM模块为主卡,设置所述第一eSIM模块为副卡;
    所述处理器根据所述卡信息,在确定所述第一插入式SIM模块之前未被用户设置为主卡时,如果所述第一SIM模块接口为主卡槽,则设置所述第一插入式SIM模块为主卡,设置所述第一eSIM模块为副卡,如果所述第二SIM模块接口为主卡槽,则设置所述第一eSIM模块为主卡,设置所述第一插入式SIM模块为副卡。
  7. 根据权利要求3所述的电子设备,其特征在于,在所述处理器检测到所述第二插入式SIM模块被插入所述第二SIM模块接口时,所述处理器进行卡设置,包括:
    所述处理器获取所述第二插入式SIM模块的卡信息;
    在所述电子设备没有激活eSIM模块,且所述电子设备仅插入了所述第二插入式SIM模块时,所述处理器将所述第二插入式SIM模块设置为主卡。
  8. 根据权利要求7所述的电子设备,其特征在于,
    在所述电子设备没有激活eSIM模块,且所述电子设备插入了所述第二插入式SIM模块和第一插入式SIM模块,所述第一插入式SIM模块与所述第一SIM模块接口连接时,所述处理器根据所述卡信息,在确定所述第二插入式SIM模块之前被用户设置为主卡时,设置所述第二插入式SIM模块为主卡,设置所述第一插入式SIM模块为副卡;
    所述处理器根据所述卡信息,在确定所述第二插入式SIM模块之前未被用户设置为主卡时,如果所述第二SIM模块接口为主卡槽,则设置所述第二插入式SIM模块为主卡,设置所述第一插入式SIM模块为副卡,如果所述第一SIM模块接口为主卡槽,则设置所述第一插入式SIM模块为主卡,设置所述第二插入式SIM模块为副卡。
  9. 根据权利要求3所述的电子设备,其特征在于,在所述处理器检测到所述第一SIM模块接口连接的第一插入式SIM模块被拔出时,或所述第一插入式SIM模块由启用状态变为停用状态时,如果所述第一插入式SIM模块被设置为主卡,所述处理器进行卡设置,包括:
    所述处理器确定所述电子设备是否激活了eSIM模块;
    如果所述电子设备没有激活eSIM模块,且所述第二SIM模块接口连接了第二插入式SIM模块,则所述处理器设置所述第二插入式SIM模块为主卡;
    如果所述电子设备激活了第一eSIM模块,且所述第二SIM模块接口未连接插入式SIM模块,则所述处理器设置所述第一eSIM模块为主卡;
    如果所述电子设备激活了第一eSIM模块,且所述第二SIM模块接口连接了第二插入式SIM模块,则在所述eUICC与调制解调器连接时,设置所述第一eSIM模块为主卡,在所述第二SIM模块接口与调制解调器连接时,设置所述第二插入式SIM模块为主卡。
  10. 根据权利要求3所述的电子设备,其特征在于,在所述处理器检测到所述第二SIM模块接口连接的第二插入式SIM模块被拔出时,或所述第二插入式SIM模块由启用状态变为停用状态时,如果所述第二插入式SIM模块被设置为主卡,所述处理器进行卡设置,包括:
    所述处理器确定所述电子设备是否激活了eSIM模块;
    如果所述电子设备没有激活eSIM模块,且所述第一SIM模块接口连接了第一插入式SIM模块,则所述处理器将所述第一插入式SIM模块设置为主卡;
    如果所述电子设备激活了第一eSIM模块,则设置所述第一eSIM模块为主卡。
  11. 根据权利要求3所述的电子设备,其特征在于,在所述处理器检测到所述第一eSIM模块由启用状态变为停用状态时,如果所述第一eSIM模块被设置为主卡,所述处理器进行卡设置,包括:
    所述处理器确定所述第二SIM模块接口是否连接了插入式SIM模块;
    如果所述第二SIM模块接口连接了第二插入式SIM模块,则所述处理器设置所述第二插入式SIM模块为主卡;
    如果所述第二SIM模块接口未连接插入式SIM模块,且所述第一SIM模块接口连接了第一插入式SIM模块,则所述处理器设置所述第一插入式SIM模块为主卡。
  12. 根据权利要求3所述的电子设备,其特征在于,所述处理器在检测到所述第二eSIM模块被安装并激活时,所述处理器进行卡设置包括:
    所述处理器获取所述第二eSIM模块的卡信息;
    如果所述第一SIM模块接口未插入插入式SIM模块,则所述处理器将所述第二eSIM模块设置为主卡;
    如果所述第一SIM模块接口插入了第一插入式SIM模块,则所述处理器根据所述卡信息,在确定所述第二eSIM模块之前被用户设置为主卡时,设置所述第二eSIM模块为主卡,设置所述第一插入式SIM模块为副卡;所述处理器根据所述卡信息,在确定所述第二eSIM模块之前未被用户设置为主卡时,如果所述第一SIM模块接口为主卡槽,则设置所述第一插入式SIM模块为主卡,设置所述第二eSIM模块为副卡,如果所述第二SIM模块接口为主卡槽,则设置所述第二eSIM模块为主卡,设置所述第一插入式SIM模块为副卡。
  13. 根据权利要求3所述的电子设备,其特征在于,在所述处理器检测到所述第一eSIM模块被删除时,如果当前所述eUICC与调制解调器连接,且所述第一eSIM模块被设置为主卡,所述处理器进行卡设置,包括:
    所述处理器确定所述第二SIM模块接口是否连接了插入式SIM模块;
    如果所述第二SIM模块接口连接了第二插入式SIM模块,则所述处理器设置所述第二插入式SIM模块为主卡;
    如果所述第二SIM模块接口未连接插入式SIM模块,且所述第一SIM模块接口 连接了第一插入式SIM模块,则所述处理器设置所述第一插入式SIM模块为主卡。
  14. 一种用户识别模块SIM模块的管理方法,其特征在于,所述方法应用于电子设备,所述电子设备包括:第一SIM模块接口,第二SIM模块接口,嵌入式通用集成电路卡eUICC,所述eUICC用于存储嵌入式用户识别模块eSIM模块;
    所述电子设备通过所述第一SIM模块接口连接的第一插入式SIM模块,所述第二SIM模块接口连接的第二插入式SIM模块及所述eUICC中当前激活的eSIM模块三者中的两个SIM模块同时与网络连接,或三者中的任意一个SIM模块与网络连接。
  15. 根据权利要求14所述的方法,其特征在于,所述电子设备通过所述第一SIM模块接口连接的第一插入式SIM模块,所述第二SIM模块接口连接的第二插入式SIM模块及所述eUICC中当前激活的eSIM模块三者中的两个SIM模块同时与网络连接,包括:
    所述电子设备通过所述第二插入式SIM模块和所述eUICC中当前激活的eSIM模块两者中的一个,及所述第一插入式SIM模块同时与网络连接。
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    所述电子设备在检测到如下任意一种情况发生时,进行卡设置:
    所述第一插入式SIM模块被插入所述第一SIM模块接口;
    所述第二插入式SIM模块被插入所述第二SIM模块接口;
    所述第一SIM模块接口连接的所述第一插入式SIM模块被拔出;
    所述第二SIM模块接口连接的所述第二插入式SIM模块被拔出;
    所述第一SIM模块接口连接了所述第一插入式SIM模块时,所述第一插入式SIM模块由启用状态变为停用状态;
    所述第二SIM模块接口连接了所述第二插入式SIM模块时,所述第二插入式SIM模块由启用状态变为停用状态;
    第一eSIM模块由启用状态变为停用状态,所述第一eSIM模块是所述eUICC中存储的当前被激活eSIM模块;
    所述第一eSIM模块被删除;
    第二eSIM模块被安装并激活。
  17. 根据权利要求16所述的方法,其特征在于,在所述电子设备检测到所述第一插入式SIM模块被插入所述第一SIM模块接口时,所述电子设备进行卡设置,包括:
    所述电子设备获取所述第一插入式SIM模块的卡信息;
    所述电子设备确定所述电子设备是否激活了eSIM模块;
    如果所述电子设备没有激活eSIM模块,且所述电子设备仅插入了所述第一插入式SIM模块,则所述电子设备将所述第一插入式SIM模块设置为主卡。
  18. 根据权利要求17所述的方法,其特征在于,
    如果所述电子设备没有激活eSIM模块,且所述电子设备插入了所述第一插入式SIM模块和第二插入式SIM模块,所述第二插入式SIM模块与所述第二SIM模块接口连接,则所述电子设备根据所述卡信息,在确定所述第一插入式SIM模块之前被用户设置为主卡时,设置所述第一插入式SIM模块为主卡,设置所述第二插入式SIM模块为副卡;
    所述电子设备根据所述卡信息,在确定所述第一插入式SIM模块之前未被用户设置为主卡时,如果所述第一SIM模块接口为主卡槽,则设置所述第一插入式SIM模块为主卡,设置所述第二插入式SIM模块为副卡,如果所述第二SIM模块接口为主卡槽,则设置所述第二插入式SIM模块为主卡,设置所述第一插入式SIM模块为副卡。
  19. 根据权利要求17或18所述的方法,其特征在于,
    如果所述电子设备激活了第一eSIM模块,则所述电子设备根据所述卡信息,在确定所述第一插入式SIM模块之前被用户设置为主卡时,设置所述第一插入式SIM模块为主卡,设置所述第一eSIM模块为副卡;
    所述电子设备根据所述卡信息,在确定所述第一插入式SIM模块之前未被用户设置为主卡时,如果所述第一SIM模块接口为主卡槽,则设置所述第一插入式SIM模块为主卡,设置所述第一eSIM模块为副卡,如果所述第二SIM模块接口为主卡槽,则设置所述第一eSIM模块为主卡,设置所述第一插入式SIM模块为副卡。
  20. 根据权利要求16所述的方法,其特征在于,在所述电子设备检测到所述第二插入式SIM模块被插入所述第二SIM模块接口时,所述电子设备进行卡设置,包括:
    所述电子设备获取所述第二插入式SIM模块的卡信息;
    在所述电子设备没有激活eSIM模块,且所述电子设备仅插入了所述第二插入式SIM模块时,所述电子设备将所述第二插入式SIM模块设置为主卡。
  21. 根据权利要求20所述的方法,其特征在于,
    在所述电子设备没有激活eSIM模块,且所述电子设备插入了所述第二插入式SIM模块和第一插入式SIM模块,所述第一插入式SIM模块与所述第一SIM模块接口连接时,所述电子设备根据所述卡信息,在确定所述第二插入式SIM模块之前被用户设置为主卡时,设置所述第二插入式SIM模块为主卡,设置所述第一插入式SIM模块为副卡;
    所述电子设备根据所述卡信息,在确定所述第二插入式SIM模块之前未被用户设置为主卡时,如果所述第二SIM模块接口为主卡槽,则设置所述第二插入式SIM模块为主卡,设置所述第一插入式SIM模块为副卡,如果所述第一SIM模块接口为主卡槽,则设置所述第一插入式SIM模块为主卡,设置所述第二插入式SIM模块为副卡。
  22. 根据权利要求16所述的方法,其特征在于,在所述电子设备检测到所述第一SIM模块接口连接的第一插入式SIM模块被拔出时,或所述第一插入式SIM模块由启用状态变为停用状态时,如果所述第一插入式SIM模块被设置为主卡,所述电子设备进行卡设置,包括:
    所述电子设备确定所述电子设备是否激活了eSIM模块;
    如果所述电子设备没有激活eSIM模块,且所述第二SIM模块接口连接了第二插入式SIM模块,则所述电子设备设置所述第二插入式SIM模块为主卡;
    如果所述电子设备激活了第一eSIM模块,且所述第二SIM模块接口未连接插入式SIM模块,则所述电子设备设置所述第一eSIM模块为主卡;
    如果所述电子设备激活了第一eSIM模块,且所述第二SIM模块接口连接了第二插入式SIM模块,则在所述电子设备通过所述eUICC中所述第一eSIM模块与网络连接时,所述电子设备设置所述第一eSIM模块为主卡,在所述电子设备通过所述第二 SIM模块接口连接的第二插入式SIM模块与网络连接时,设置所述第二插入式SIM模块为主卡。
  23. 根据权利要求16所述的方法,其特征在于,在所述电子设备检测到所述第二SIM模块接口连接的第二插入式SIM模块被拔出时,或所述第二插入式SIM模块由启用状态变为停用状态时,如果所述第二插入式SIM模块被设置为主卡,所述电子设备进行卡设置,包括:
    所述电子设备确定所述电子设备是否激活了eSIM模块;
    如果所述电子设备没有激活eSIM模块,且所述第一SIM模块接口连接了第一插入式SIM模块,则所述电子设备将所述第一插入式SIM模块设置为主卡;
    如果所述电子设备激活了第一eSIM模块,则所述电子设备设置所述第一eSIM模块为主卡。
  24. 根据权利要求16所述的方法,其特征在于,在所述电子设备检测到所述第一eSIM模块由启用状态变为停用状态时,如果所述第一eSIM模块被设置为主卡,所述电子设备进行卡设置,包括:
    所述电子设备确定所述第二SIM模块接口是否连接了插入式SIM模块;
    如果所述第二SIM模块接口连接了第二插入式SIM模块,则所述电子设备设置所述第二插入式SIM模块为主卡;
    如果所述第二SIM模块接口未连接插入式SIM模块,且所述第一SIM模块接口连接了第一插入式SIM模块,则所述电子设备设置所述第一插入式SIM模块为主卡。
  25. 根据权利要求16所述的方法,其特征在于,在所述电子设备检测到所述第二eSIM模块被安装并激活时,所述电子设备进行卡设置包括:
    所述电子设备获取所述第二eSIM模块的卡信息;
    如果所述第一SIM模块接口未插入插入式SIM模块,则所述电子设备将所述第二eSIM模块设置为主卡;
    如果所述第一SIM模块接口插入了第一插入式SIM模块,则所述电子设备根据所述卡信息,在确定所述第二eSIM模块之前被用户设置为主卡时,设置所述第二eSIM模块为主卡,设置所述第一插入式SIM模块为副卡;所述电子设备根据所述卡信息,在确定所述第二eSIM模块之前未被用户设置为主卡时,如果所述第一SIM模块接口为主卡槽,则设置所述第一插入式SIM模块为主卡,设置所述第二eSIM模块为副卡,如果所述第二SIM模块接口为主卡槽,则设置所述第二eSIM模块为主卡,设置所述第一插入式SIM模块为副卡。
  26. 根据权利要求16所述的方法,其特征在于,在所述电子设备检测到所述第一eSIM模块被删除时,如果当前所述电子设备通过所述eUICC中所述第一eSIM模块与网络连接,且所述第一eSIM模块被设置为主卡,所述电子设备进行卡设置,包括:
    所述电子设备确定所述第二SIM模块接口是否连接了插入式SIM模块;
    如果所述第二SIM模块接口连接了第二插入式SIM模块,则所述电子设备设置所述第二插入式SIM模块为主卡;
    如果所述第二SIM模块接口未连接插入式SIM模块,且所述第一SIM模块接口连接了第一插入式SIM模块,则所述电子设备设置所述第一插入式SIM模块为主卡。
  27. 根据权利要求15所述的方法,其特征在于,所述电子设备通过所述第二插入式SIM模块和所述eUICC中当前激活的eSIM模块两者中的一个与网络连接,包括:
    所述电子设备显示第一界面,所述第一界面包括第一按钮和第二按钮;
    所述电子设备接收用户对所述第一按钮的选择操作,所述第一按钮被选中,所述第二按钮未被选中,响应对所述第一按钮的选择操作,所述电子设备通过所述第二插入式SIM模块与网络连接;
    所述电子设备接收用户对所述第二按钮的选择操作,所述第二按钮被选中,所述第一按钮未被选中,响应对所述第二按钮的选择操作,所述电子设备通过所述第二插入式SIM模块与网络连接。
  28. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    所述电子设备显示第二界面,所述第二界面包括第三按钮;
    所述电子设备接收用户对所述第三按钮的操作;
    响应于对所述第三按钮的操作,所述电子设备将所述第一插入式SIM模块由启用状态变为停用状态。
  29. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    所述电子设备显示第三界面,所述第三界面包括第四按钮;
    所述电子设备接收用户对所述第四按钮的操作;
    响应于对所述第四按钮的操作,所述电子设备将所述第二插入式SIM模块由启用状态变为停用状态。
  30. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    所述电子设备显示第四界面,所述第四界面包括第五按钮;
    所述电子设备接收用户对所述第五按钮的操作;
    响应于对所述第五按钮的操作,所述电子设备将所述第一eSIM模块由启用状态变为停用状态。
  31. 根据权利要求17-26中任一项所述的方法,其特征在于,被设置为主卡的SIM模块用于所述电子设备传输移动数据,被设置为副卡的SIM模块不能用于所述电子设备传输移动数据。
  32. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求14-31中任一项所述的用户识别模块SIM模块的管理方法。
PCT/CN2020/109007 2019-08-30 2020-08-13 一种sim模块的管理方法及电子设备 WO2021036809A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/639,191 US20220330007A1 (en) 2019-08-30 2020-08-13 Sim module management method and electronic device
EP20858235.3A EP4021042B1 (en) 2019-08-30 2020-08-13 Subscriber identity module (sim) management method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910816798.XA CN110621013B (zh) 2019-08-30 2019-08-30 一种sim模块的管理方法及电子设备
CN201910816798.X 2019-08-30

Publications (1)

Publication Number Publication Date
WO2021036809A1 true WO2021036809A1 (zh) 2021-03-04

Family

ID=68922805

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/109007 WO2021036809A1 (zh) 2019-08-30 2020-08-13 一种sim模块的管理方法及电子设备

Country Status (4)

Country Link
US (1) US20220330007A1 (zh)
EP (1) EP4021042B1 (zh)
CN (2) CN113613238B (zh)
WO (1) WO2021036809A1 (zh)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055857B (zh) * 2019-12-28 2022-06-28 华为技术有限公司 一种通信连接的方法及电子设备
KR20210101658A (ko) * 2020-02-10 2021-08-19 삼성전자주식회사 복수 심을 지원하는 전자 장치 및 그 동작 방법
KR20210101667A (ko) * 2020-02-10 2021-08-19 삼성전자주식회사 복수 심을 지원하는 전자 장치 및 그 동작 방법
CN113498124B (zh) * 2020-03-20 2023-02-28 华为技术有限公司 SIM卡和eSIM卡的切换方法及电子设备
CN113453214B (zh) * 2020-03-25 2022-09-23 华为技术有限公司 通信控制方法及电子设备
CN111756427A (zh) * 2020-05-06 2020-10-09 广州市中海达测绘仪器有限公司 多卡单待的gnss接收机智能切换装置、方法、设备及介质
FR3110319B1 (fr) * 2020-05-14 2022-04-22 St Microelectronics Rousset Dispositif de communication sans fil
CN113691270B (zh) * 2020-05-18 2022-11-11 华为技术有限公司 一种sim模块的管理方法及电子设备
CN114125741A (zh) * 2020-08-27 2022-03-01 荣耀终端有限公司 一种显示方法及电子设备
CN112105025B (zh) * 2020-11-17 2021-02-09 深圳杰睿联科技有限公司 基于eSIM的运营商网络测试系统及方法
CN114915311B (zh) * 2021-02-09 2023-05-12 Oppo广东移动通信有限公司 电子设备和客户前置设备
CN114916161B (zh) * 2021-02-09 2024-02-27 Oppo广东移动通信有限公司 电子设备及控制方法
CN113950044B (zh) * 2021-09-16 2024-03-29 深圳市优克联新技术有限公司 用户识别卡的识别方法、装置、终端设备及存储介质
US20230171588A1 (en) * 2021-12-01 2023-06-01 T-Mobile Innovations Llc Audio encoding and transmission of identifier to assist in esim reservation process
WO2024007295A1 (en) * 2022-07-08 2024-01-11 Qualcomm Incorporated Control protocol feedback report envelope
WO2024042345A2 (en) * 2022-08-22 2024-02-29 Pismo Labs Technology Limited Methods and systems for sharing a plurality of sim cards

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488439A (zh) * 2016-10-31 2017-03-08 努比亚技术有限公司 一种实现无线通信的方法及终端
CN106535158A (zh) * 2016-10-31 2017-03-22 努比亚技术有限公司 一种实现无线通信的方法及终端
CN106658464A (zh) * 2016-10-31 2017-05-10 努比亚技术有限公司 一种实现无线通信的方法及终端
CN106658470A (zh) * 2016-12-27 2017-05-10 努比亚技术有限公司 一种主卡设置装置和方法
CN109587676A (zh) * 2017-09-28 2019-04-05 苹果公司 用于经由单个无线电接入网络访问多个无线网络的服务的方法与装置
CN109788494A (zh) * 2017-11-13 2019-05-21 苹果公司 用于具有蜂窝能力的辅助无线设备与多sim无线设备的兼容性的方法和装置
US20190230496A1 (en) * 2014-09-17 2019-07-25 Simless, Inc. Apparatuses, methods, and systems for configuring a trusted java card virtual machine using biometric information

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101585467B1 (ko) * 2009-06-05 2016-01-15 엘지전자 주식회사 싱글 베이스 칩셋을 이용한 듀얼 심 이동 단말기 및 그의 운용방법
WO2013061275A1 (en) * 2011-10-28 2013-05-02 Renesas Mobile Corporation Processing system, wireless device and method
US10244501B2 (en) * 2014-05-30 2019-03-26 Apple Inc. Methods and apparatus to support parallel communication for multiple subscriber identities in a wireless communication device
CN104066210B (zh) * 2014-06-18 2018-02-02 小米科技有限责任公司 双卡双待移动通信终端管理系统和移动通信终端
KR102381377B1 (ko) * 2015-10-07 2022-03-31 삼성전자주식회사 통신 시스템에서 프로파일을 원격으로 제공하는 방법 및 장치
KR102399066B1 (ko) * 2018-02-21 2022-05-17 삼성전자주식회사 무선 통신 시스템에서 복수의 sim을 지원하기 위한 장치 및 방법

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190230496A1 (en) * 2014-09-17 2019-07-25 Simless, Inc. Apparatuses, methods, and systems for configuring a trusted java card virtual machine using biometric information
CN106488439A (zh) * 2016-10-31 2017-03-08 努比亚技术有限公司 一种实现无线通信的方法及终端
CN106535158A (zh) * 2016-10-31 2017-03-22 努比亚技术有限公司 一种实现无线通信的方法及终端
CN106658464A (zh) * 2016-10-31 2017-05-10 努比亚技术有限公司 一种实现无线通信的方法及终端
CN106658470A (zh) * 2016-12-27 2017-05-10 努比亚技术有限公司 一种主卡设置装置和方法
CN109587676A (zh) * 2017-09-28 2019-04-05 苹果公司 用于经由单个无线电接入网络访问多个无线网络的服务的方法与装置
CN109788494A (zh) * 2017-11-13 2019-05-21 苹果公司 用于具有蜂窝能力的辅助无线设备与多sim无线设备的兼容性的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4021042A4

Also Published As

Publication number Publication date
CN110621013B (zh) 2021-07-09
EP4021042A4 (en) 2022-10-12
CN110621013A (zh) 2019-12-27
EP4021042B1 (en) 2023-11-22
EP4021042A1 (en) 2022-06-29
US20220330007A1 (en) 2022-10-13
CN113613238B (zh) 2022-07-12
CN113613238A (zh) 2021-11-05

Similar Documents

Publication Publication Date Title
WO2021036809A1 (zh) 一种sim模块的管理方法及电子设备
CN111602379B (zh) 语音通话方法、电子设备及系统
CN110602686B (zh) 一种使用远程sim模块的方法及电子设备
CN113630910B (zh) 蜂窝通信功能的使用方法、相关装置及系统
US11843712B2 (en) Address book-based device discovery method, audio and video communication method, and electronic device
WO2022033296A1 (zh) 蓝牙通信方法、可穿戴设备及系统
EP3902235B1 (en) Application-based incoming call display method and terminal device
CN113923611B (zh) 一种呼叫转移系统及相关装置
WO2021233159A1 (zh) 一种sim模块的管理方法及电子设备
CN112789934B (zh) 一种蓝牙服务的查询方法及电子设备
US20230125956A1 (en) Wireless Communication System and Method
CN114816442A (zh) 分布式应用的处理方法和装置
CN116056050A (zh) 播放音频的方法、电子设备及系统
WO2020062308A1 (zh) 位置信息处理方法及相关装置
CN115087134B (zh) 一种蓝牙连接的方法和电子设备
WO2023011202A1 (zh) 流量统计方法和电子设备
WO2023241558A1 (zh) 通信方法、通信系统和鼠标
WO2023160491A1 (zh) 通话方法、电子设备、网络设备及系统
CN115515112A (zh) 蓝牙通信方法及系统
CN116700556A (zh) 卡片生成方法及相关装置
CN115703006A (zh) 设备连接方法、装置及系统

Legal Events

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

Ref document number: 20858235

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020858235

Country of ref document: EP

Effective date: 20220322