ESIM card switching method and electronic equipment
By automatically managing eSIM card switching through electronic devices and activating the appropriate eSIM card based on the user's location, the problem of extra charges and poor network coverage caused by users forgetting to switch is solved, resulting in more efficient network management and a better user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-10-31
- Publication Date
- 2026-05-01
AI Technical Summary
Users often find it difficult to manage multiple eSIM cards, leading to issues such as forgetting to switch between them, resulting in additional network charges and poor network coverage.
Electronic devices automatically query and activate the corresponding eSIM card based on their location, switch the default data card to ensure signal strength and network coverage, and support automatic management of multiple eSIM cards.
It simplifies user operations, reduces additional data charges, and improves network coverage and user experience.
Smart Images

Figure CN121968077A_ABST
Abstract
Description
A method for switching eSIM cards and an electronic device Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method for switching eSIM cards and an electronic device. Background Technology
[0002] Unlike traditional pluggable SIM cards, embedded subscriber identity modules (eSIMs) do not require a physical slot; they are directly embedded into a chip inside the device, making them an electronic SIM card. The eSIM exists as a data file, and a profile provided by the contracted operator can be downloaded to the electronic device using a local profile assistant (LPA). The electronic device can then use the profile to connect to the corresponding operator's network.
[0003] Typically, electronic devices can embed one or more eSIM cards, each with a corresponding profile. By activating the eSIM card's profile, the eSIM card can be used for communication, enabling flexible selection of multiple operators and different phone numbers, providing users with greater flexibility and convenience. However, with the increasing number of eSIM cards, managing them has become difficult for users. Therefore, there is an urgent need for an automated eSIM card management mechanism. Summary of the Invention
[0004] This application provides an eSIM card switching method and electronic device for automatically managing eSIM cards, which can solve the problems of additional network charges and poor network coverage caused by users forgetting to switch eSIM cards due to changes in user location.
[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, a method for switching eSIM cards is provided, the method comprising: the electronic device currently defaults to using a first eSIM card as its data access card; when the area where the electronic device is located is a target area, the electronic device queries whether there exists at least one eSIM card corresponding to the target area; if there exists at least one eSIM card corresponding to the target area, the electronic device activates a second eSIM card from the at least one eSIM card; the first eSIM card and the second eSIM card are different; subsequently, the electronic device switches the default data access card from the first eSIM card to the second eSIM card.
[0007] Based on the first aspect, the electronic device can, based on the target area where the electronic device is located, activate a second eSIM card from at least one eSIM card if at least one eSIM card corresponding to the target area exists, and switch the default data card from the first eSIM card to the second eSIM card. This can achieve automatic management of eSIM cards and solve the problem of additional network charges and poor network coverage caused by users forgetting to switch eSIM cards due to changes in user location.
[0008] In one possible implementation of the first aspect, the electronic device activates a second eSIM card from at least one eSIM card, comprising: the electronic device activating a profile of the second eSIM card from at least one eSIM card; the profile being configured to enable the electronic device to communicate via network signals provided by the second eSIM card.
[0009] In this way, by activating the configuration file of the second eSIM card, the same functions as the physical SIM card can be achieved, that is, the second eSIM card can connect to the operator's network and realize network communication.
[0010] In another possible implementation of the first aspect, when the area where the electronic device is located is the target area, the electronic device queries whether there is at least one eSIM card corresponding to the target area, including: when the area where the electronic device is located is the target area, the electronic device determines the area information corresponding to the target area, the area information being PLMN or MCC; the electronic device queries whether there is at least one eSIM card corresponding to the area information.
[0011] In this way, by using the area information corresponding to the target area, it is possible to query whether there is at least one eSIM card corresponding to the area information, so as to ensure the accuracy of the eSIM card queried as the eSIM card corresponding to the current area.
[0012] In another possible implementation of the first aspect, if the eSIM card corresponding to the target area includes one eSIM card, the second eSIM card is the eSIM card corresponding to the target area; or, if the eSIM card corresponding to the target area includes multiple eSIM cards, the second eSIM card is the eSIM card with the strongest signal strength among the multiple eSIM cards.
[0013] This ensures that the signal strength of the activated second eSIM card can provide users with better network services.
[0014] In another possible implementation of the first aspect, the electronic device queries whether there is at least one eSIM card corresponding to the target area, including: the electronic device queries the stored configuration information to see if there is an eSIM card corresponding to the target area; wherein the configuration information records the mapping relationship between area information and eSIM cards.
[0015] In another possible implementation of the first aspect, the method further includes: the electronic device currently defaults to dialing the first eSIM card; the electronic device switches the default dialing card from the first eSIM card to the second eSIM card.
[0016] This allows you to switch your default dialer to a second eSIM. Users can then use their local eSIM for calls, further reducing network costs.
[0017] In another possible implementation of the first aspect, the method further includes: the electronic device currently defaults to using the first eSIM card as the dialing card; after the electronic device switches the default data card from the first eSIM card to the second eSIM card, the electronic device retains the first eSIM card as the default dialing card.
[0018] In this way, electronic devices can keep the default dialing card as the first eSIM card, allowing users to continue using the first eSIM card for calls and avoiding the inconvenience caused by switching the default dialing card.
[0019] In a second aspect, an electronic device is provided, which has the functions described in the first aspect or any one of the first aspects above. These functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
[0020] Thirdly, an electronic device is provided, comprising: a memory and one or more processors; the memory stores computer program code, the computer program code including computer instructions; when the computer instructions are executed by the processor, the electronic device performs the method described in the first aspect or any one of the first aspects.
[0021] Fourthly, a chip system is provided for use in an electronic device, the chip system comprising: at least one processor and an interface for receiving instructions and transmitting them to the at least one processor; the at least one processor executes instructions to cause the electronic device to perform the method described in any one of the first aspects.
[0022] Fifthly, a computer storage medium is provided, which stores instructions that, when executed on a computer, enable the computer to perform the method described in any one of the first aspects.
[0023] In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to perform the method described in any one of the first aspects above.
[0024] The technical effects of any of the implementation methods in aspects two through six can be referenced from the technical effects of different implementation methods in aspect one, and will not be elaborated here. Attached Figure Description
[0025] Figure 1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0026] Figure 2 is a schematic diagram of a scenario of MEP provided in an embodiment of this application;
[0027] Figure 3 is a schematic diagram of an interface for activating / deactivating an eSIM configuration file provided in an embodiment of this application;
[0028] Figure 4 is a schematic diagram of the hardware structure of a mobile phone provided in an embodiment of this application;
[0029] Figure 5 is a software structure block diagram of a mobile phone provided in an embodiment of this application;
[0030] Figure 6 is a flowchart illustrating an eSIM card switching method according to an embodiment of this application.
[0031] Figure 7 is a schematic diagram of an interface for a method of switching eSIM cards provided in an embodiment of this application;
[0032] Figure 8 is a schematic diagram of the interface of an eSIM card switching method provided in an embodiment of this application;
[0033] Figure 9 is a schematic flowchart of an eSIM card switching method provided in an embodiment of this application;
[0034] Figure 10 is a schematic diagram of the structure of a chip system provided in an embodiment of this application. Detailed Implementation
[0035] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist: for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0036] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The words "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0037] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0038] Before introducing the embodiments of this application, a brief introduction to the relevant technical terms involved in the embodiments of this application will be given here.
[0039] 1. eSIM (embedded subscriber identity module).
[0040] eSIM is a virtual SIM card, also known as an eSIM card, eSIM chip, or embedded SIM card (for ease of description, the following examples will refer to it as an eSIM card). An eSIM card does not have a physical card; it does not need to be inserted into a card slot in an electronic device during installation. This is because electronic devices that support eSIM have an internal eSIM chip, and the eSIM card can be installed and used via a network.
[0041] For example, the differences between an eSIM card and a physical SIM card can be shown in Table 1 below.
[0042] Table 1
[0043]
[0044]
[0045] As can be seen, the eSIM card is directly embedded into the electronic device as a chip, rather than being added as a separate, removable component. The eSIM card features network connectivity and remote writing capabilities, allowing users to write and modify their network access number and other data through a network management platform, enabling users to change their number without changing the card or device. In short, with its convenience, security, and environmental friendliness, the eSIM card is gradually becoming an important part of modern communication technology and is widely used in various types of devices.
[0046] In some scenarios, an eSIM card can be expanded into other programmable SIM cards, such as softSIM, vSIM, etc., without limitation.
[0047] 2. Configuration file (profile).
[0048] A configuration file refers to the collection of card data and applications required by a mobile network operator (MNO) to provide services to users. This data and applications are installed onto an embedded-universal integrated circuit card (eUICC) via over-the-air (OTA) technology. The eUICC is the hardware carrier of an eSIM (which can be understood as an eSIM chip), possessing more complex hardware and software capabilities to meet the need for dynamically loading operator data.
[0049] The configuration file contains a series of card data and applications, which define the communication and service relationship between the user and the operator. Each configuration file enables eUICC to function like a traditional removable SIM card from an operator, allowing users to switch between different devices or operators without changing the physical SIM card.
[0050] 3. Multiple enabled profiles (MEP) technology.
[0051] MEP refers to the ability of an electronic device to enable (or "activate") multiple profiles on a single eSIM chip (i.e., eUICC). Based on this function, the electronic device can use a single eSIM chip to achieve dual-SIM mode. As mentioned earlier, profiles can be downloaded to the eSIM chip via OTA (Over-The-Air). In some embodiments, an eSIM chip can download or store multiple profiles, which can correspond to different operators or the same operator; this is not limited here. For example, an eSIM chip can subscribe to multiple profiles with different operators, or it can subscribe to multiple profiles with the same operator. Each profile has its own file structure and application, and a unique identifier.
[0052] In other words, an electronic device can download multiple configuration files, which can be from the same carrier or different carriers. Subsequently, based on the user's selection, the electronic device can choose to activate at least two configuration files simultaneously, thus enabling dual-SIM mode.
[0053] Based on the principles of MEP technology, it is understandable that for electronic devices to support MEP functionality, they need to collaborate with System on Chip (SoC) suppliers (or manufacturers) and eSIM chip suppliers (or manufacturers) to integrate MEP functionality into the electronic devices.
[0054] SoC, also known as System-on-a-Chip, integrates the chips required for the operating system of an electronic device onto a single chip. SoC typically integrates the capabilities of key chips such as application processors (APs) and baseband processors (communication processors (CPs), also known as modems).
[0055] Referring to Figure 1, the SoC includes the capabilities of both an access point (AP) and a modem. The AP handles internal data processing for the electronic device, excluding external communication. For example, the AP includes a local profile assistant (LPA), a core module for managing the eSIM chip, which can be used to install, delete, enable, and disable carrier profiles. The modem handles external communication, including making calls, sending text messages, and accessing the internet. Furthermore, a physical channel, such as shared memory or a bus, is established between the AP and the modem to enable data transmission, such as call content and text message content.
[0056] For example, as shown in Figure 1, the SoC chip communicates with the eSIM chip, and the eSIM chip has a contract with the operator to download the corresponding configuration file of the operator through OTA or other means.
[0057] As an example, as shown in Figure 2, the supplier (or manufacturer) of the electronic device collaborates with the SoC chip supplier and the eSIM chip supplier to embed the SoC chip and eSIM chip inside the electronic device, and a physical channel is established between the SoC chip and the eSIM chip. For example, the electronic device can download the corresponding configuration file from the operator to the eSIM chip via OTA (Over-The-Air) updates. Subsequently, in response to user operations, the SoC chip of the electronic device (such as the LPA included in the AP) can activate (or launch) the corresponding configuration file to realize functions such as data communication and voice services.
[0058] In this configuration, one profile can correspond to a carrier's phone number. In some embodiments, the SoC chip (such as the LPA included in the AP) can activate the profile corresponding to the phone number stored in the eSIM chip based on the phone number selected by the user. In some embodiments, the user can select multiple phone numbers, and correspondingly, the LPA of the electronic device can activate multiple profiles.
[0059] For example, a user can activate or deactivate any profile in the eSIM chip through the user interface shown in Figure 3. The following uses a mobile phone as an example to illustrate the user interface diagram for activating or deactivating a profile.
[0060] As shown in Figure 3(1), the mobile phone can display a user interface 101. The user interface 101 can be the user interface displayed after the mobile phone displays the desktop interface, in response to the user's click on the Settings application -> "Mobile network" settings item -> "SIM card management" option. As shown in Figure 3(1), the user interface 101 includes SIM card type settings information, and the SIM card type can include physical cards and eSIM cards. Among them, the switch item corresponding to eSIM card is in the on state, indicating that the SIM card type currently used by the user is an eSIM card. For example, the user interface 101 also includes eSIM card settings 102, which includes multiple eSIM card names, such as eSIM card 1, eSIM card 2, eSIM card 3, etc., without limitation.
[0061] For example, in response to a user's click on eSIM card 1, the mobile phone displays the user interface 103 shown in Figure 3(2). This user interface 103 includes an "Enable" control 104, eSIM card name, phone number, operator, etc., which are not limited. For example, in response to a user's click on the "Enable" control 104, the mobile phone enables eSIM card 1, that is, activates the configuration file corresponding to eSIM card 1. In other words, in the user interface 103, eSIM card 1 is in an enabled state, indicating that the configuration file corresponding to eSIM card 1 is in an activated state. Correspondingly, eSIM card 1 is in an disabled state, indicating that the configuration file corresponding to eSIM card 1 is in a deactivated state (or inactive state).
[0062] Optionally, the user interface 103 also includes a "delete" control 104 for deleting the configuration file. In response to a user's click on the "delete" control 104, the phone deletes the configuration file from the eSIM chip.
[0063] As shown in Figure 3(2), the switch of the "Enable" control 104 is in the on state. Based on this, in response to the user's click operation on the "Enable" control 104, the mobile phone displays the user interface 105 shown in Figure 3(3), indicating that the mobile phone has not enabled the eSIM card 1, that is, the configuration file corresponding to the eSIM card 1 has been deactivated. In other words, in the user interface 105, the eSIM card A is in the inactive state, indicating that the configuration file corresponding to the eSIM card 1 is in the deactivated state.
[0064] It should be noted that the content of user interface 105 is similar to that of user interface 103. Please refer to the relevant description of user interface 103 above. It will not be repeated here.
[0065] Additionally, as shown in Figures 3(1)-3(3), user interfaces 101, 103, and 105 also include a signal indicator 106. In user interface 101 shown in Figure 3(1), when eSIM card 1 is disabled, signal indicator 106 is off, indicating no network is currently active. In user interface 103 shown in Figure 3(2), when eSIM card 1 is enabled, signal indicator 106 is on, indicating network activity, and this signal indicator 106 can also indicate network signal strength. In user interface 105 shown in Figure 3(3), when eSIM card 1 is disabled, signal indicator 106 is off, indicating no network is currently active.
[0066] Furthermore, Figure 3 illustrates the example of a user activating eSIM card 1. Similarly, a user can also activate multiple eSIM cards (e.g., eSIM card 2 and eSIM card 3) to select multiple phone numbers. The specific activation process can be found in the descriptions above and will not be repeated here.
[0067] It can be seen that for mobile phones that include eSIM chips and support MEP technology, greater flexibility and convenience can be provided to users. By activating multiple profiles simultaneously on the same eSIM chip, the following technical effects can be achieved:
[0068] 1. Multi-network coverage: Users can use multiple eSIM cards simultaneously (e.g., corresponding to different operators' networks) to ensure wider network coverage.
[0069] 2. Cost optimization: Users can choose the appropriate eSIM card according to different usage scenarios, simplifying communication costs.
[0070] 3. Simplified operation: User operations are simplified by remotely downloading configuration files.
[0071] With the widespread use of eSIM chips and MEP technology, the number of eSIM cards in users' mobile phones will increase, making it difficult for users to manage eSIM cards. Therefore, there is an urgent need for an automatic management mechanism for eSIM cards.
[0072] Based on this, embodiments of this application provide a method for switching eSIM cards, which can automatically switch to the eSIM card corresponding to the current region of the mobile phone, eliminating the need for manual switching by the user, simplifying user operations, and improving the user experience. Furthermore, the technical solution of this application embodiment can also solve the problem of additional data charges incurred when users forget to switch eSIM cards in different regions, and can also solve the problem of poor network coverage caused by users forgetting to switch eSIM cards.
[0073] For example, the eSIM card switching method provided in this application can be applied to electronic devices that support MEP technology, such as mobile phones, tablets, laptops, smart wearable devices, and industrial terminals. This application does not impose any special limitations on the specific form of the aforementioned electronic devices.
[0074] Referring to Figure 4, this is a hardware structure diagram of an electronic device provided in an embodiment of this application. As shown in Figure 4, taking a mobile phone as an example, the mobile phone may include: a processor 110, an internal memory 121, a charging management module 130, a power management module 131, a battery 132, an eSIM chip 141, an antenna 1, an antenna 2, a mobile communication module 151, a wireless communication module 153, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a display screen 194, and SIM card interfaces 1 to N195, etc.
[0075] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the mobile phone. In other embodiments, the mobile phone may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0076] Processor 110 can be the aforementioned SoC chip. Processor 110 may include one or more processing units, such as: AP, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), modem and / or neural network processing unit (NPU), etc. Different processing units can be independent devices or integrated into one or more processors.
[0077] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a universal serial bus (USB) interface, etc.
[0078] The eSIM chip 141 is contracted with an operator and can be used to download and store the operator's configuration file. Related descriptions can be found in the above embodiments and will not be repeated here.
[0079] The charging management module 130 receives charging input from a charger, which can be a wireless charger or a wired charger. The power management module 131 connects to the battery 132, the charging management module 130, and the processor 110. The power management module 131 receives input from the battery 132 and / or the charging management module 130 to power the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 153, etc.
[0080] The wireless communication function of a mobile phone can be achieved through antenna 1, antenna 2, mobile communication module 151, wireless communication module 153, access point (AP), and modem. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
[0081] The mobile communication module 151 can provide solutions for cellular communication (such as 2G / 3G / 4G / 5G) applications in mobile phones. The mobile communication module 151 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 151 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to the modem for demodulation. The mobile communication module 151 can also amplify the signal modulated by the modem and convert it into electromagnetic waves for radiation via antenna 1.
[0082] The wireless communication module 153 can provide solutions for wireless communication applications in smartphones, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 153 can be one or more devices integrating at least one communication processing module. The wireless communication module 153 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 153 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0083] The AP can output audio signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or display images or videos through display screen 194.
[0084] The phone uses a GPU, a 194-inch display, and an AP to display functions, such as showing the eSIM card switch and the application interface for various applications like calls and text messages.
[0085] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functions and applications of the mobile phone and performs data processing by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area.
[0086] The mobile phone can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, and an application processor. Examples include music playback and recording. In some embodiments, during a call using a cellular network, the mobile phone can capture the user's voice through the microphone 170C and play voice messages from the other end through headphones connected via the speaker 170A, receiver 170B, or headphone jack 170D.
[0087] The SIM card interface 195 is used to connect a SIM card. The SIM card interface 195 can be a SIM card slot. A mobile phone may include 1 to N SIM card interfaces 195. A SIM card can be inserted into or removed from the SIM card interface 195 to detach from the mobile phone. A mobile phone may support one or more SIM card interfaces. The SIM card interface 195 may support Nano SIM cards, Micro SIM cards, and other SIM cards. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external storage cards. The mobile phone communicates with the network through the SIM card to achieve functions such as calls and data communication. In some embodiments, the mobile phone may embed an eSIM chip, i.e., an embedded eSIM card. The eSIM card can be embedded in the mobile phone as a chip and cannot be separated from the mobile phone.
[0088] The software system of the AP in the aforementioned mobile phone can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the AP as a layered architecture system as an example to illustrate the software structure of the mobile phone.
[0089] Referring to Figure 5, a software architecture diagram corresponding to the mobile phone shown in Figure 1 is provided in an embodiment of this application. As shown in Figure 5, the layered architecture divides the AP software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the AP software is divided into four layers, from top to bottom: the application layer, the application framework layer, the hardware abstraction layer (HAL), and the kernel layer.
[0090] It should be understood that the AP layering shown in Figure 5 is merely exemplary; in actual implementation, the AP software may include more or fewer layers. For example, a system library may be included between the application framework layer and the hardware abstraction layer.
[0091] The application layer can include a series of application packages, such as settings applications, calling applications, SMS applications, chat applications, video applications, and other applications that require network support.
[0092] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0093] The application framework layer may include, but is not limited to, eSIM management module (eSIM manager), SIM management module (SIMmanager), location management module, LTE management module (long term evolution manager), etc.
[0094] The eSIM management module is used to activate the eSIM card corresponding to the changed region when the phone's location changes; that is, to activate the configuration file associated with that eSIM card. The SIM management module generates switching instructions. For example, the eSIM management module sends a first notification to the SIM management module, informing it which eSIM card is currently activated (e.g., eSIM card 2). Upon receiving the first notification from the eSIM management module, the SIM management module generates a switching instruction, which instructs the phone to switch to activating eSIM card 2.
[0095] Correspondingly, the SIM management module sends a switching command to the modem through the underlying layers (such as the hardware abstraction layer and kernel layer) to instruct the phone to switch to enabling eSIM card B. After receiving the switching command from the SIM management module, the modem initiates communication between protocol stack B (i.e., the protocol stack corresponding to eSIM card 2) and eSIM card 2, that is, it communicates with eSIM card 2 through protocol stack B to achieve network communication.
[0096] The location management module obtains the area where the mobile phone is located and sends this area to the eSIM management module. If multiple eSIM cards exist in the area where the mobile phone is currently located, the LTE management module obtains the signal strength of each eSIM card, such as the reference signal receiving power (RSRP), compares the signal strengths of the multiple eSIM cards, determines the eSIM card with the highest signal strength, and generates a second notification. The LTE management module then sends the second notification to the eSIM management module, indicating the eSIM card with the highest signal strength. Upon receiving the second notification from the LTE management module, the eSIM management module activates the eSIM card with the highest signal strength, i.e., activates the configuration file associated with that eSIM card.
[0097] The Hardware Abstraction Layer (HAL) provides a unified interface for upper-layer applications to make calls, shielding them from the specific implementation details of hardware drivers in the kernel layer. Upper-layer applications can implement corresponding functions by calling the interfaces provided by the HAL without needing to know the specific implementation of the kernel layer hardware drivers.
[0098] The Hardware Abstraction Layer (HAL) includes a Communication HAL, which is used for inter-core communication between the protocol stacks in the AP and Modem to realize information communication during the mobile network communication process.
[0099] The kernel layer is the layer between hardware and software. It may include display drivers, camera areas, audio drivers, etc. It should be noted that during mobile network communication, the kernel layer is mainly used for data transmission, similar to a data pass-through function. Therefore, in this embodiment, there is no need to modify the software structure of the kernel layer.
[0100] The methods and steps involved in the following embodiments can all be executed by the electronic device with hardware results and software shown in the above embodiments. The following uses a mobile phone as an example to exemplarily introduce the technical solution of the embodiments of this application.
[0101] For example, as shown in Figure 6, the method may include the following steps:
[0102] S201, The phone's current default data SIM card is the first eSIM card.
[0103] For example, a mobile phone can activate the first eSIM card by activating the first eSIM card's profile and use the first eSIM card as the current default data card.
[0104] In some embodiments, the mobile phone can activate the profile of the first eSIM card in response to a user's operation. For example, the mobile phone can activate the profile of the first eSIM card in response to the user operation shown in (1) to (2) of Figure 3, thereby enabling the first eSIM card and setting it as the current default data access card.
[0105] In other embodiments, the mobile phone can activate the configuration file of the first eSIM card based on the region where the phone is located, and use the first eSIM card as the current default data access card. The relevant description of the mobile phone activating the configuration file of the first eSIM card based on the region where the phone is located can be found in the following embodiments, and will not be repeated here.
[0106] S202. When the mobile phone's current region is switched to the target region, the mobile phone activates the configuration file of the second eSIM card.
[0107] The configuration file is used to enable the phone to communicate via network signals provided by the second eSIM card. The first eSIM card is different from the second eSIM card.
[0108] It should be noted that an eSIM card is a virtual SIM card, without a physical card. By activating the corresponding configuration file, the virtual SIM card can have the same functions as a physical SIM card, that is, it can be used to access the network of the operator corresponding to the virtual SIM card and communicate through the network signal provided by the network of the operator corresponding to the virtual SIM card.
[0109] Furthermore, in this embodiment, "region" refers to a geographical area, that is, a specific geographical region or range, including adjacent or similar geographical units. In other words, a region is a spatial unit on the Earth's surface, possessing a specific geographical location, and is a quantifiable entity. Moreover, a region is defined by people based on geographical differences, according to certain indicators and methods, and possesses certain locational characteristics as well as a specific area, shape, and boundaries. For example, a region can be a city (which can be a provincial city, a prefecture-level city, etc.).
[0110] For example, switching the phone's location to the target location can be understood as the phone being located in a different city or country, etc., without limitation.
[0111] S203, the phone will switch the default data card from the first eSIM card to the second eSIM card.
[0112] In other words, the phone uses the second eSIM as the default data SIM, allowing users to communicate using the network signal provided by the second eSIM. This avoids the problem of users forgetting to switch eSIMs when changing their location to the target area, resulting in extra data charges, and also avoids network coverage issues when using the original eSIM due to forgetting to switch eSIMs.
[0113] In some embodiments, the phone's current default dialer is the first eSIM card, and the phone can keep the first eSIM card's profile active, meaning the first eSIM card is enabled. Based on this, the phone can use the first eSIM card as the default dialer and the second eSIM card as the default data SIM card.
[0114] This not only prevents users from forgetting to switch their data SIM card after changing their location to the target area, thus avoiding extra data charges and poor network coverage, but also allows users to use their first eSIM card for calls, avoiding the inconvenience of making calls due to switching eSIM cards.
[0115] In some embodiments, the mobile phone can deactivate the profile of the first eSIM card, meaning the profile of the first eSIM card is deactivated and the first eSIM card is not enabled. Based on this, the mobile phone can switch the default dialer from the first eSIM card to the second eSIM card, thus using the second eSIM card as both the default dialer and the default data SIM card.
[0116] A mobile phone can use a second eSIM card simultaneously as a data SIM and a dial-up SIM. This allows users to make calls and access the internet using the second eSIM card when the phone's current region changes to the target region, providing greater flexibility and convenience.
[0117] In other embodiments, the phone's current default dialing SIM card is the first eSIM card, and the phone can also switch the default dialing SIM card from the first eSIM card to the second eSIM card.
[0118] In some embodiments, the mobile phone's current default data access card is the first eSIM card. The mobile phone can display the user interface 301 shown in Figure 7 (1). The user interface 301 can be the interface displayed after the user clicks on the "Mobile Network" option in the settings application. For example, the user interface 301 includes a default dialer 302 and a default data access card 303. It can be seen that the font of "eSIM card 1" in the default dialer 302 is darker, indicating that the default dialer card used by the mobile phone at this time is eSIM card 1; correspondingly, the font of "eSIM card 1" in the default data access card 303 is darker, indicating that the default data access card used by the mobile phone at this time is eSIM card 1.
[0119] When the phone's current region is switched to the target region, the phone activates the configuration file of the second eSIM card and switches the default internet card from the first eSIM card to the second eSIM card. The phone can then display the user interface 304 shown in Figure 7(2). The user interface 304 includes the default dialer 305 and the default internet card 306. It can be seen that the font of "eSIM card 1" in the default dialer 305 is darker, indicating that the default dialer card used by the phone at this time is eSIM card 1; correspondingly, the font of "eSIM card 2" in the default internet card 306 is darker, indicating that the default internet card used by the phone at this time is eSIM card 2.
[0120] Alternatively, when the phone's current region is switched to the target region, the phone activates the configuration file of the second eSIM card and switches the default internet card from the first eSIM card to the second eSIM card. The phone can then display the user interface 307 shown in Figure 7 (3). The user interface 307 includes a default dialer 308 and a default internet card 309. It can be seen that the font of "eSIM card 2" in the default dialer 308 is darker, indicating that the default dialer card used by the phone at this time is eSIM card 2; correspondingly, the font of "eSIM card 2" in the default internet card 309 is darker, indicating that the default internet card used by the phone at this time is eSIM card 2.
[0121] For example, the user interfaces 301, 304, and 307 described above also include operator information and phone numbers for eSIM card 1 and / or eSIM card 2. eSIM card 1 and eSIM card 2 may be from the same operator or different operators; this embodiment does not limit this.
[0122] It should be noted that in the above embodiments, eSIM card 1 can be understood as the first eSIM card or the third eSIM card, and eSIM 2 can be understood as the second eSIM card.
[0123] In some embodiments, after the phone switches the default data SIM card from the first eSIM card to the second eSIM card, the phone can also display a prompt message to inform the user that the default data SIM card has been switched to the second eSIM card. For example, as shown in Figure 8, the phone can display a prompt message on the main interface, which may be something like "You have entered the xx area, and we have switched you to eSIM card 2 for internet access."
[0124] It should be noted that Figure 8 is merely an example and does not constitute a limitation of this application. For instance, the mobile phone can also display prompts on other application interfaces such as the notification bar and lock screen, without limitation. Furthermore, the mobile phone can also prompt the user through pop-ups, voice, vibration, etc., which are not limited in this embodiment.
[0125] In some embodiments, S202 and S203 may specifically include: when the mobile phone's current region is switched to the target region, the mobile phone queries whether an eSIM card corresponding to the target region exists; if an eSIM card corresponding to the target region exists, the mobile phone activates the configuration file of the second eSIM card from the eSIM card corresponding to the target region and switches the default data card from the first eSIM card to the second eSIM card. If no eSIM card corresponding to the target region exists, the mobile phone keeps the current default data card as the first eSIM card.
[0126] In this way, while ensuring that the phone has an eSIM card corresponding to the target area stored in it, the configuration file of the second eSIM card corresponding to the target area can be activated, and the default data card can be switched smoothly, ensuring the continuity and reliability of network communication.
[0127] For example, as shown in FIG9, S202 and S203 above may include the following steps:
[0128] S2021. When the location of the mobile phone changes, the mobile phone obtains its geographical location.
[0129] For example, as shown in Figure 5, the mobile phone can obtain its geographical location through the location management module. This location management module can be the LocationManager built into the mobile phone system, or a location software development kit (SDK) provided by a third-party manufacturer, such as FusedLocationProviderClient, etc., and is not limited thereto.
[0130] For example, the location management module can obtain the phone's geographical location through GPS, Wi-Fi, Bluetooth, or other methods, without limitation. Of course, the location management module can also obtain the phone's geographical location through other positioning methods, which will not be listed here.
[0131] For example, the geographical location of the mobile phone can be latitude and longitude information, such as latitude and longitude coordinates, without limitation.
[0132] Taking the location management module as FusedLocationProviderClient, and the mobile phone obtaining its geographical location through FusedLocationProviderClient as an example, the following pseudocode can be used to represent the mobile phone obtaining its geographical location:
[0133]
[0134] S2022. The mobile phone determines the target area based on its geographical location.
[0135] For example, referring to Figure 5, a mobile phone can determine a target area through its location management module. For instance, the phone's location management module can convert a geographic location into a target area using geocoding services. Geocoding is an encoding method based on spatial positioning technology that can achieve area positioning based on coordinate information used to describe a geographic location. For example, based on the latitude and longitude information of the geographic location, it can pinpoint the city, town, or street where the mobile phone is located.
[0136] For example, determining the target area based on the phone's geographical location can be achieved using the following pseudocode:
[0137] Geocoder geocoder=new Geocoder(this, Locale.getDefault());
[0138] List <address>addresses=geocoder.getFromLocation(latitude,longitude,1);
[0139] if(ddresses!=null&&!addresses.isEmpty()){
[0140] String country=addresses.get(0).getCountryCode();
[0141] In some embodiments, as shown in Figure 5, after the mobile phone's location management module determines the target area, it sends the target area to the eSIM management module. For example, the mobile phone's location management module can send the area identifier of the target area to the eSIM management module, such as sending an area code (which can be a string obtained by the mobile phone through a geocoding service), or sending the area name of the target area (e.g., Beijing, Xi'an, etc.).
[0142] In other embodiments, after determining the target area, the mobile phone's location management module converts the target area into area information. This area information may include a public land mobile network (PLMN) or a mobile country code (MCC), and is not limited to any particular type. The PLMN is used to identify the combination of wireless communication services provided by a specific operator within a specific area, and the PLMN includes at least the mobile country code, MCC, and mobile network code (MNC). Based on this, the mobile phone's location management module can send the area information corresponding to the target area to the eSIM management module.
[0143] S2023. Use your mobile phone to check if an eSIM card exists that corresponds to the target area.
[0144] For example, referring to Figure 5, the mobile phone can use the eSIM management module to query whether an eSIM card corresponds to the target area. The eSIM management module pre-stores configuration information. This configuration information may record the mapping relationship between the area identifier and the eSIM card; or, the mapping relationship between the MCC and the eSIM card; or, the mapping relationship between the PLMN and the eSIM card, etc., without limitation.
[0145] As an example, the mapping relationship between a mobile phone's region identifier and the eSIM card can be implemented using the following pseudocode:
[0146] Map<String,String> locationToSimMap=new HashMap<>();
[0147] locationToSimMap.put("Region ID 1", "SIM1");
[0148] locationToSimMap.put("Region ID 2", "SIM2");
[0149] / / Add more region identifiers and corresponding eSIM cards.
[0150] It should be noted that the specific implementation methods for establishing the mapping relationship between the mobile phone and the MCC and the eSIM card, as well as the mapping relationship between the mobile phone and the PLMN and the eSIM card, can be referred to the above embodiments, and will not be repeated here.
[0151] In some embodiments, the mobile phone can query whether an eSIM card corresponds to a target area based on stored configuration information. For example, the mobile phone's eSIM management module can query whether an eSIM card corresponds to a target area based on the area identifier of the target area sent by the location management module and the stored configuration information. In other embodiments, the mobile phone's eSIM management module can query whether an eSIM card corresponds to a target area based on the MCC sent by the location management module and the stored configuration information. In still other embodiments, the mobile phone's eSIM management module can query whether an eSIM card corresponds to a target area based on the PLMN sent by the location management module and the stored configuration information.
[0152] For example, if an eSIM card corresponding to the target area exists, the phone activates the second profile of the second eSIM card from the eSIM card corresponding to the target area and switches the default data card from the first eSIM card to the second eSIM card. If no eSIM card corresponding to the target area exists, the phone retains the current default data card as the first eSIM card.
[0153] In some embodiments, the presence of an eSIM card corresponding to the target area on the mobile phone can include two scenarios: Scenario 1, the mobile phone has only one eSIM card corresponding to the target area; Scenario 2, the mobile phone has multiple eSIM cards corresponding to the target area.
[0154] For scenario 1, where the phone only has one eSIM card corresponding to the target area, as shown in Figure 9, the method further includes:
[0155] S2023a. The mobile phone determines whether the eSIM card corresponding to the target area is the same as the first eSIM card.
[0156] For example, referring to Figure 5, the mobile phone can use its eSIM management module to determine whether the eSIM card corresponding to the target area is the same as the first eSIM card. For instance, the mobile phone's eSIM management module may have pre-stored relevant information about the eSIM card, and can use this information to determine whether the eSIM card corresponding to the target area is the same as the first eSIM card.
[0157] For example, the information related to an eSIM card may include one or more of the following: the eSIM card name, integrated circuit card identity (ICCID), and phone number. Of course, the information related to an eSIM card may also include other data, which will not be listed here.
[0158] For example, if the relevant information of the eSIM card corresponding to the target area is the same as the relevant information of the first eSIM card, then it is determined that the eSIM card corresponding to the target area is the same as the first eSIM card. Based on this, the mobile phone keeps the current default data card as the first eSIM card.
[0159] Accordingly, if the relevant information of the eSIM card corresponding to the target area is different from the relevant information of the first eSIM card, the mobile phone determines that the eSIM card corresponding to the target area is different from the first eSIM card, and then the mobile phone continues to perform the following steps, such as S2023b.
[0160] S2023b: The mobile phone uses the eSIM card corresponding to the target area as the second eSIM card, activates the configuration file of the second eSIM card, and switches the default data card from the first eSIM card to the second eSIM card.
[0161] For example, referring to Figure 5, the mobile phone can activate the profile of the second eSIM card through the eSIM management module. After the mobile phone activates the second profile of the second eSIM card through the eSIM management module, the mobile phone's eSIM management module sends a first notification to the SIM management module to notify that the profile of the second eSIM card is now activated. Upon receiving the first notification from the eSIM management module, the SIM management module switches the default data card to the second eSIM card and generates a switching command to instruct the mobile phone to switch the default data card to the second eSIM card. Then, the SIM management module sends a switching command to the modem to instruct the mobile phone to switch the default data card to the second eSIM card. After receiving the switching command from the SIM management module, the modem initiates communication between the protocol stack and the second eSIM card to achieve network communication.
[0162] It's important to note that the protocol stack here can be understood as the "network protocol stack." When the network protocol stack is enabled, the phone can use the second eSIM card as a data SIM, allowing users to conduct data communication via the network signal provided by the second eSIM. Conversely, if the modem's protocol stack is set to "cellular protocol stack," the phone can use the second eSIM card as a dialer, enabling users to make cellular calls via the second eSIM.
[0163] It should be understood that in this embodiment of the application, the mobile phone's modem can also simultaneously enable the network protocol stack and the cellular protocol stack, that is, the second eSIM card can be used as both a data card and a dial card.
[0164] In some embodiments, the mobile phone can switch the default data SIM card through the SIM management module. For example, the mobile phone obtains the status of the default data SIM card and the default dialer SIM card through the SIM management module. For instance, the mobile phone can directly obtain the status of the default data SIM card and the default dialer SIM card from the SIM management module, meaning the SIM management module records the status of the default data SIM card and the default dialer SIM card. Alternatively, the mobile phone can obtain the status of the default data SIM card and the default dialer SIM card from the modem through the SIM management module, etc., without limitation.
[0165] The status of the default data SIM card and the default dial-up SIM card can be represented by the eSIM card value. For example, an eSIM card value of 0 indicates that the eSIM card is the default dial-up SIM card, and an eSIM card value of 1 indicates that the eSIM card is the default data SIM card.
[0166] For example, the mobile phone obtains the status of the default data card and the default dial card through the SIM management module. For instance, if the status of the default data card is eSIM card 1 = 1, it means that the default data card is eSIM card 1. Then, the mobile phone can switch to setting the value of eSIM card 2 to 1 through the SIM management module, i.e., eSIM card 2 = 1, indicating that the default data card is switched to eSIM card 2.
[0167] Correspondingly, the phone's SIM management module can switch the default dialer in a similar way, as described above, and will not be repeated here.
[0168] For example, a mobile phone can use the SubscriptionManager in the SIM management module to switch the default data SIM card. For instance, switching the default data SIM card using SubscriptionManager can be achieved using the following pseudocode:
[0169] private void switchSIMCard(String country){
[0170] String simToUse=locationToSimMap.get(country);
[0171] if(simToUse!=null){
[0172] SubscriptionManager subscriptionManager=(SubscriptionManager)
[0173] getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE);
[0174] List <subscriptioninfo>subscriptionInfoList =
[0175] subscriptionManager.getActiveSubscriptionInfoList();
[0176] for(SubscriptionInfo subscriptionInfo:subscriptionInfoList){
[0177] if(simToUse.equals("SIM1")&&subscriptionInfo.getSimSlotIndex()==0){
[0178] subscriptionManager.setDefaultDataSubscriptionId(subscriptionInfo.getSubscriptionId());
[0179] break;
[0180] }else if(simToUse.equals("SIM2")&&subscriptionInfo.getSimSlotIndex()==
[0181] 1){
[0182] subscriptionManager.setDefaultDataSubscriptionId(subscriptionInfo.getSubscriptionId());
[0183] break;
[0184]
[0185] Regarding scenario 2, where the mobile phone has multiple eSIM cards corresponding to the target area, as shown in Figure 9, the method further includes:
[0186] S2023A: The mobile phone obtains the signal strength of each eSIM card among multiple eSIM cards.
[0187] For example, referring to Figure 5, the mobile phone can obtain the signal strength of each eSIM card among multiple eSIM cards through the LTE management module. Subsequently, the mobile phone's LTE module can report the signal strength to the eSIM management module. For instance, the mobile phone's LTE module can report the signal strength of each eSIM card among multiple eSIM cards to the eSIM module.
[0188] For example, a mobile phone can obtain the signal strength of the eSIM card through the TelephonyManager and PhoneStateListener classes in the LTE management module. For instance, the mobile phone obtaining the eSIM card's signal strength can be represented by the following pseudocode:
[0189]
[0190] S2023B: The mobile phone uses the eSIM card with the strongest signal strength among multiple eSIM cards as the second eSIM card, activates the configuration file of the second eSIM card, and switches the default data card from the first eSIM card to the second eSIM card.
[0191] In some embodiments, after the mobile phone determines the eSIM card with the strongest signal strength among multiple eSIM cards, it checks whether this eSIM card is the same as the first eSIM card. If the eSIM card is different from the first eSIM card, the mobile phone uses this eSIM card as the second eSIM card and activates its profile. If the eSIM card is the same as the first eSIM card, the mobile phone reselects the second eSIM card from among the multiple eSIM cards. For example, the mobile phone selects the eSIM card with the second strongest signal strength among the multiple eSIM cards as the second eSIM card.
[0192] It's important to note that if the eSIM card with the strongest signal among multiple eSIM cards is the same as the first eSIM card, then the eSIM card with the second strongest signal will be different from the first eSIM card. This is because each eSIM card has a unique identifier; for example, each eSIM card corresponds to a unique phone number. Therefore, after the phone selects the eSIM card with the second strongest signal as the second eSIM card, it does not need to determine whether this eSIM card is the same as the first eSIM card.
[0193] For example, as shown in Figure 5, the mobile phone can use the eSIM management module to select the eSIM card with the strongest signal strength among multiple eSIM cards as the second eSIM card, activate the configuration file of the second eSIM card, and switch the default data card from the first eSIM card to the second eSIM card.
[0194] It should be noted that the description of how the phone switches the default data card from the first eSIM card to the second eSIM card can be found in the example in S2023b above, and will not be repeated here.
[0195] In this embodiment, the mobile phone uses the eSIM card with the strongest signal strength among multiple eSIM cards as the second eSIM card, activates the configuration file of the second eSIM card, and switches the default data card to the second eSIM card, thereby ensuring better network coverage and improving the user experience.
[0196] In some embodiments, when the mobile phone has two eSIM cards corresponding to the target area, the mobile phone switches the eSIM card with the strongest signal strength as the default data SIM card and the other eSIM card as the default dialer. In other embodiments, when the mobile phone has two or more (but not two) eSIM cards corresponding to the target area, the mobile phone switches the eSIM card with the strongest signal strength as the default data SIM card and switches any one of the eSIM cards (or the eSIM card with the second strongest signal strength) as the default dialer, etc., without limitation.
[0197] In summary, the solution implemented in this embodiment can activate the eSIM card configuration file corresponding to a changed region and switch the default data SIM card to that eSIM card when the phone's location changes, thereby achieving automatic management of the eSIM card in the phone. Furthermore, this solution can prevent additional network charges and poor network coverage caused by users forgetting to switch eSIM cards when the phone's location changes.
[0198] In some embodiments, as shown in FIG9, when the area where the mobile phone is located changes, the method further includes:
[0199] S204. The mobile phone determines whether it has saved configuration files for multiple eSIM cards.
[0200] For example, when downloading the eSIM card configuration file, the phone records the number of eSIM card configuration files. For instance, after downloading the eSIM card configuration file via the eSIM chip, the phone records the number of eSIM card configuration files in the eSIM management module. For example, the phone can use the eSIM management module to determine whether multiple eSIM card configuration files are stored in the phone.
[0201] For example, if the phone has configuration files for multiple eSIM cards stored in it, the phone will continue to execute this solution, as described in steps S201-S203 above. If the phone does not have configuration files for multiple eSIM cards stored in it, the phone will not execute this solution and will keep the current default data card as the first eSIM card.
[0202] In this way, by determining the number of eSIM card configuration files in advance, it can be ensured whether the method needs to be executed, which not only ensures the reliability of the solution implementation but also reduces power consumption.
[0203] It should be noted that the contents described in the various embodiments of this application can explain the technical solutions in other embodiments of this application. The technical features described in each embodiment can also be applied in other embodiments and combined with the technical features in other embodiments to form new solutions. This application only provides an exemplary list of several embodiments for illustration and does not mean that this application is limited thereto.
[0204] This application provides an electronic device, which can be the aforementioned mobile phone or laptop computer. The electronic device may include: a memory and one or more processors; the memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device performs various functions or steps performed in the aforementioned mobile phone. The structure of this electronic device can be referenced to the structure of the mobile phone shown in Figure 4.
[0205] This application also provides a chip system, as shown in FIG10, which includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 and the interface circuit 1102 are interconnected via lines. For example, the interface circuit 1102 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 1102 can be used to send signals to other devices (e.g., the processor 1101). Exemplarily, the interface circuit 1102 can read instructions stored in the memory and send the instructions to the processor 1101. When the instructions are executed by the processor 1101, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application.
[0206] This application also provides a computer storage medium storing computer instructions, which, when executed on an electronic device, cause the electronic device to perform various functions or steps in the above method embodiments.
[0207] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps described in the above method embodiments.
[0208] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to perform the various functions or steps in the above method embodiments.
[0209] In this embodiment, the chip system, computer-readable storage medium, computer program product or device are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0210] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0211] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0212] The unit described as a separate component may or may not be physically separate. The component shown as a unit can be one physical unit or multiple physical units, that is, it can be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of the solution in this embodiment according to actual needs.
[0213] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0214] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0215] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.< / subscriptioninfo> < / address>
Claims
1. A method for switching eSIM cards, characterized in that, The method includes: the electronic device currently defaults to using a first eSIM card; if the area where the electronic device is located is a target area, the electronic device queries whether there exists at least one eSIM card corresponding to the target area; if there exists at least one eSIM card corresponding to the target area, the electronic device activates a second eSIM card from the at least one eSIM card; the first eSIM card and the second eSIM card are different; the electronic device switches the default internet access card from the first eSIM card to the second eSIM card.
2. The method according to claim 1, characterized in that, The electronic device activates a second eSIM card from the at least one eSIM card, comprising: the electronic device activating a configuration file of the second eSIM card from the at least one eSIM card; the configuration file being used to support the electronic device to communicate via network signals provided by the second eSIM card.
3. The method according to claim 1 or 2, characterized in that, When the area where the electronic device is located is the target area, the electronic device queries whether there is at least one eSIM card corresponding to the target area, including: when the area where the electronic device is located is the target area, the electronic device determines the area information corresponding to the target area, the area information being PLMN or MCC; the electronic device queries whether there is at least one eSIM card corresponding to the area information.
4. The method according to any one of claims 1-3, characterized in that, If the target area corresponds to one eSIM card, the second eSIM card is the eSIM card corresponding to the target area; or, if the target area corresponds to multiple eSIM cards, the second eSIM card is the eSIM card with the strongest signal among the multiple eSIM cards.
5. The method according to any one of claims 1-4, characterized in that, The electronic device queries whether there is at least one eSIM card corresponding to the target area, including: the electronic device queries the stored configuration information to see if there is an eSIM card corresponding to the target area; wherein, the configuration information records the mapping relationship between area information and eSIM cards.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: the electronic device currently defaults to using the first eSIM card as the dialing card; the electronic device switches the default dialing card from the first eSIM card to the second eSIM card.
7. The method according to any one of claims 1-5, characterized in that, The method further includes: the electronic device currently defaults to using the first eSIM card as the dialing card; after the electronic device switches the default data card from the first eSIM card to the second eSIM card, the electronic device keeps the default dialing card as the first eSIM card.
8. An electronic device, characterized in that, include: A memory and one or more processors; the memory stores computer program code, the computer program code including computer instructions; when the computer instructions are executed by the processor, the electronic device performs the method as described in any one of claims 1-7.
9. A chip system, characterized in that, In applications and electronic devices; the chip system includes: at least one processor and an interface; the interface is used to receive instructions and transmit them to the at least one processor; the at least one processor executes the instructions to cause the electronic device to perform the method as described in any one of claims 1-7.
10. A computer storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-7.