eSIM card status updating method and electronic device

CN118433696BActive Publication Date: 2025-08-29HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410891651.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2025-08-29
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

In the prior art, the configuration file activation or deactivation operation of the eSIM card is prone to failure, resulting in poor user experience.

Method used

By resetting the configuration file of the eSIM card during the execution of active commands, the electronic device resets the configuration file of the eSIM card, and uses the modem (Modem) and the eSIM chip to work together to ensure the successful activation or deactivation of the configuration file, including sending the configuration file reset request and response commands, so as to accurately judge and perform reset operations when executing the active commands.

Benefits of technology

It reduces the abnormal situation of eSIM card configuration file status update, and improves the success rate and experience of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118433696B_ABST
    Figure CN118433696B_ABST
Patent Text Reader

Abstract

A method for updating the status of an eSIM card and an electronic device are disclosed. The method is applied to an electronic device and includes: the electronic device displays a first user interface, wherein a first eSIM card displayed in the first user interface is in a first state; in response to a first operation, while executing a proactive command, the electronic device resets a first configuration file of the first eSIM card; and the first eSIM card displayed in the first user interface is in a second state. Embodiments of the present application are designed to ensure that the configuration file of the eSIM card can be successfully reset during the execution of the proactive command, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of terminal devices, and in particular to an eSIM card status updating method and electronic device. Background Art

[0002] An embedded subscriber identity module (eSIM) is an embedded SIM card that cannot be inserted into or separated from a terminal device. The profile provided by the contracted operator can be downloaded and installed through the Local Profile Assistant (LPA). The electronic device can then be matched to the corresponding operator's network through the profile.

[0003] An electronic device can install at least one eSIM card profile. When a user needs to activate or deactivate (stop activating) an eSIM card profile, the electronic device activates or deactivates the eSIM card profile in response to the user's operation. However, there are cases where the profile activation or deactivation fails, requiring the user to perform another operation, resulting in a poor user experience. Summary of the Invention

[0004] The embodiments of the present application provide an eSIM card status update method and electronic device, which are used to ensure that the configuration file of the eSIM card can be successfully reset during the execution of active commands, thereby improving the user experience.

[0005] In a first aspect, an embodiment of the present application provides an eSIM card status update method, which is applied to an electronic device, and the method includes: the electronic device displays a first user interface, and a first eSIM card displayed in the first user interface is in a first state; in response to a first operation, while executing an active command, the electronic device resets a first configuration file of the first eSIM card; the first eSIM card displayed in the first user interface is in a second state.

[0006] The first operation can be an operation in which the user does not activate the first eSIM card, or an operation in which the user activates the second eSIM card. Figure 3A to Figure 3G Related description.

[0007] In the embodiment of the present application, during the execution of the active command, the electronic device still resets the first configuration file of the first eSIM card and successfully deactivates the configuration file, thereby reducing abnormal situations in executing the status update of the configuration file of the eSIM card and improving user experience.

[0008] In one possible implementation, the electronic device includes a modem, and resetting the first configuration file of the first eSIM card includes resetting the first configuration file of the first eSIM card via the modem. Thus, during the execution of the proactive command, the modem still resets the first configuration file of the first eSIM card, successfully deactivating the configuration file. This reduces abnormalities in executing status updates of the eSIM card configuration file and improves user experience.

[0009] In one possible implementation, the electronic device further includes an eSIM chip. During the execution of the active command, before resetting the first configuration file of the first eSIM card, the method further includes: while the electronic device is waiting for a response to the active command, sending a configuration file reset request to the modem via the eSIM chip; the configuration file reset request is used to request resetting the first configuration file of the first eSIM card. In this way, upon receiving an activation request or a deactivation request while the electronic device is executing the active command (the eSIM chip is waiting for the modem), the eSIM chip can send the configuration file reset request to the modem, triggering the modem to reset the first configuration file of the first eSIM card. This ensures that the status of the eSIM card configuration file can be updated even during the execution of the active command, reducing update failures and improving the user experience.

[0010] In one possible implementation, the electronic device further includes an eSIM chip, and resetting the first configuration file of the first eSIM card during the execution of the active command by the electronic device includes: if deactivation information is received during the execution of the active command by the modem, resetting the first configuration file of the first eSIM card via the modem. In this way, after receiving deactivation or activation identification information, the modem can determine whether an active command is being executed. During the execution of the active command, the modem can be directly triggered to execute the process of resetting the first configuration file of the first eSIM card. This ensures that the status of the eSIM card configuration file can also be updated during the execution of the active command, reducing the possibility of configuration file status update failures and improving the user experience.

[0011] In one possible implementation, during the process of the modem executing the active command, if deactivation information is received, before the modem resets the first configuration file of the first eSIM card, the method further includes: sending, via the modem, a response command in response to the active command to the eSIM chip; and sending, via the eSIM chip, a configuration file reset request to the modem. In this way, after receiving the deactivation or activation identification information, the modem can determine whether the active command is being executed. During the process of executing the active command, a response command to the active command can be sent to the eSIM chip in advance. After receiving the response command, the eSIM chip can send a configuration file reset request to the modem, triggering the modem to execute the process of resetting the first configuration file of the first eSIM card. This ensures that the status update of the eSIM card configuration file can also be executed during the execution of the active command, reducing the number of configuration file status update failures and improving the user experience.

[0012] In one possible implementation, the electronic device further includes a local profile assistant (LPA), and the deactivation information is a deactivation response message sent by the eSIM chip to the modem, or a deactivation request sent by the LPA to the modem. In this way, the modem can obtain the deactivation information from the LPA or the eSIM chip, thereby determining a timing for resetting the first profile of the first eSIM card and ensuring accuracy of the processing timing.

[0013] In one possible implementation, if the first information received by the modem includes a deactivation flag, the first information is the deactivation information. In this way, the modem can accurately determine whether the deactivation information has been received, ensuring the subsequent determination of whether to execute the proactive command and the accurate timing of resetting the execution of the first configuration file of the first eSIM card.

[0014] The first information can be Figures 6 to 9 The receiving information A in the deactivation flag is for example the identification of BF32.

[0015] In one possible implementation, while the modem is executing an active command, the first flag is a preset flag used to indicate that the modem is executing an active command. This allows the electronic device to accurately determine whether an active command is currently being executed, ensuring the precise timing of resetting the first configuration file of the first eSIM card.

[0016] In one possible implementation, the electronic device further includes a second eSIM card, and the second eSIM card displayed in the first user interface is in a second state. In response to the first operation, the second eSIM card displayed in the first user interface is updated to the first state. Thus, when the first operation is to activate the second eSIM card, the states of the first and second eSIM cards need to be switched. After the first eSIM card is deactivated, the second eSIM card can be activated. This ensures that the state of the first configuration file of the first eSIM card can be updated during the execution of the proactive command, thereby reducing the possibility of configuration file state update failures and improving the user experience.

[0017] In one possible implementation, the second eSIM card displayed in the first user interface is in the second state, and the method further includes: resetting the second configuration file of the second eSIM card via the modem in response to the first operation; and the second eSIM card displayed in the first user interface is in the first state. Thus, when the first operation is to activate the second eSIM card, the states of the first and second eSIM cards need to be switched. After the first eSIM card is deactivated, the second eSIM card can be activated to ensure processing integrity.

[0018] In one possible implementation, after the first eSIM card displayed in the first user interface is in the second state, the method includes: in response to a second operation, during the execution of a proactive command, the electronic device resetting the first configuration file of the first eSIM card; the first eSIM card displayed in the first user interface is in the first state. In this way, during the process of activating the first eSIM card and executing a proactive command, the status of the first configuration file of the first eSIM card can also be updated, thereby reducing the possibility of configuration file status update failures and improving the user experience.

[0019] In a possible implementation, the active commands are DISPLAY TEXT command, GET INKEY command, GET INPUT command, MORE TIME command, PLAY TONE command, POLL INTERVAL command, REFRESH command, SET UP MENU command, SELECT ITEM command, SEND SHORT MESSAGE command, SET UP CALL command, POLLING OFF command, PROVIDE LOCAL INFORMATION command, SET UP EVENT LIST command, APDUPERFORM CARD APDU command, POWER OFF CARD command, POWER ON CARD command, GET READER STATUS command, TIMER MANAGEMENT command, SET UP IDLE MODE TEXT command, RUN AT COMMAND command, DTMFSEND DTMF command, LANGUAGE NOTIFICATION command, LAUNCH BROWSER command, OPEN CHANNEL command, CLOSE CHANNEL command, RECEIVE DATA command, SEND DATA command, GET CHANNEL Any of the following: STATUS command, SERVICE SEARCH command, GET SERVICE INFORMATION command, DECLARE SERVICE command, SET FRAMES command, GET FRAME STATUS command, RETRIEVE MULTIMEDIA MESSAGE command, SUBMIT MULTIMEDIA MESSAGE command, DISPLAY MULTIMEDIA MESSAGE command, ACTIVATE command, CONTACTLESS STATECHANGED command, COMMAND CONTAINER command, and ENCAPSULATED SESSION CONTROL command. In this way, the proactive command includes an accurate range, and the electronic device can accurately determine whether the proactive command is currently being executed, thereby ensuring accurate execution of the status update of the first configuration file of the first eSIM card.

[0020] In one possible implementation, the electronic device further includes a local profile assistant (LPA), a local user interface (LUI), and an eSIM chip. The method further includes: in response to the first operation, sending a deactivation request for a first profile of a first eSIM card to the LPA via the LUI; deactivating the first profile via the LPA; sending a deactivation request to the modem via the LPA; sending the deactivation request to the eSIM chip via the modem; and sending a deactivation response message to the modem via the eSIM chip. In this way, the first operation can be sent to the LPA via the LUI, and the LPA performs the deactivation process, ensuring that the first operation is acquired during the execution of the active command, and that the status of the first profile of the first eSIM card is updated in response to the first operation, thereby reducing the probability of user operation failure and improving the user experience.

[0021] In one possible implementation, the electronic device further includes an LPA, a LUI, and an eSIM chip. After resetting the first configuration file of the first eSIM card via the modem, the method further includes: sending eSIM card status information to the LPA via the modem; determining, via the LPA, that the first configuration file has been successfully deactivated based on the eSIM card status information; sending, via the LPA, a deactivation success notification to the LUI; and displaying, via the LUI, the first user interface, wherein the identifier of the first eSIM card displayed in the first user interface is in the second state. In this way, the status of the eSIM card configuration file can also be updated during the execution of the proactive command, reducing the number of configuration file status update failures and improving the user experience.

[0022] In one possible embodiment, the electronic device further includes an eSIM chip, and resetting the first configuration file of the first eSIM card via a modem includes: the electronic device repowering the eSIM chip via the modem and reading the status of the first configuration file of the first eSIM card, where the first configuration file is in a deactivated state. In this way, the modem can successfully reset the status of the first configuration file, ensuring that the status of the eSIM card configuration file can be updated even during the execution of the active command, reducing the number of configuration file status update failures and improving the user experience.

[0023] In one possible implementation, when the first state is enabled, the first configuration file is activated; when the second state is disabled, the first configuration file is deactivated. Thus, during the deactivation of the first configuration file of the first eSIM card, if a proactive command is executed, the status of the eSIM card configuration file can also be updated, reducing the likelihood of configuration file status update failures and improving the user experience.

[0024] In a second aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and one or more memories; the one or more processors are coupled to the one or more memories, the one or more memories being used to store computer program code, the computer program code comprising computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes an eSIM card status update method described in the first aspect or any possible implementation of the first aspect.

[0025] In a third aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on an electronic device, the electronic device executes an eSIM card status update method as described in the first aspect or any possible implementation of the first aspect.

[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, enables the electronic device to execute an eSIM card status update method as described in the first aspect or any possible implementation of the first aspect.

[0027] In a fifth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, which are used to call computer instructions to enable the electronic device to execute an eSIM card status update method as described in the first aspect or any possible implementation method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0029] Figure 2 This is a schematic diagram of the software and hardware structure of an electronic device proposed in an embodiment of the present application;

[0030] Figure 3A to Figure 3G This is a set of user interface schematic diagrams proposed in the embodiments of the present application;

[0031] Figure 4This is a flowchart of a normal method for deactivating the status of an eSIM card profile proposed in an embodiment of the present application;

[0032] Figure 5 This is a flowchart of an abnormal method for deactivating the status of an eSIM card configuration file proposed in an embodiment of the present application;

[0033] Figure 6 This is a flowchart of a method for updating the status of an eSIM card configuration file proposed in an embodiment of the present application;

[0034] Figure 7 This is a flowchart of another method for updating the status of an eSIM card configuration file proposed in an embodiment of the present application;

[0035] Figure 8 This is a flowchart of another method for updating the status of an eSIM card configuration file proposed in an embodiment of the present application;

[0036] Figure 9 This is a flowchart of another method for updating the status of an eSIM card configuration file proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The terms used in the following examples of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and encompasses any or all possible combinations of one or more of the listed items.

[0038] The embodiments of the present application disclose a method for updating the status of an eSIM card and an electronic device, which are used to avoid abnormal situations in the switching process and improve the user interaction experience.

[0039] In response to a user's operation to switch the eSIM card state, the electronic device needs to deactivate an eSIM card and update its state. The modem in the terminal device can reset the eSIM card state during the execution of a proactive command. This avoids the issue of the modem executing a proactive command and failing to reset the eSIM card state, reduces abnormalities in eSIM card state updates, and ensures a user experience when switching eSIM card states.

[0040] The following introduces the terms involved in the embodiment of the present application during the status update process of the eSIM card.

[0041] 1. eSIM card

[0042] An embedded universal integrated circuit card (eUICC), also known as an embedded subscriber identity module (eSIM), or embedded-SIM, is an electronic SIM card. An eSIM is soldered to a terminal device and cannot be inserted or separated from it. Functionally, an eSIM is identical to a regular SIM card (a physical card), but instead of being physically inserted, it is embedded directly into the device chip. The key feature of an eSIM is that it can be managed through software. Devices equipped with an eSIM can download and install operator profiles, allowing them to activate and switch operators for mobile communications services without having to replace the SIM card.

[0043] An eSIM card can be associated with multiple integrated circuit card identities (ICCIDs) and corresponding phone numbers. An eSIM card can only support one of these ICCIDs being active at a time. An eSIM card can initially be blank, containing no data other than a unique identifier. The ICCID can then be written to the eSIM card online.

[0044] In a possible implementation, when at least two ICCIDs are stored in the eSIM card, the eSIM card may support card switching, that is, switching from one ICCID to another ICCID for activation.

[0045] In a possible implementation, when at least one ICCID is stored in the eSIM card, the eSIM card may support enabling and disabling of the ICCID.

[0046] 2. Profile

[0047] A profile is a collection of data and applications used on an eUICC to provide various services, such as voice or data services. According to some embodiments, a profile is contracted and subscribed to by a user and a mobile network operator (MNO) to provide the user with network services.

[0048] An eSIM can download or store one or more configuration files. Each configuration file can correspond to a number of an MNO for the user to select. The configuration file has a unique ID. Each configuration file corresponds to an ICCID.

[0049] In some embodiments, when a profile is in a deactivated state, the user can select the corresponding phone number of the eSIM card to activate it. For example, the user can select the phone number of the eSIM card from activated to deactivated, and the terminal device can activate the profile and return the activation status of the profile to the modem.

[0050] In some embodiments, when a profile is active, the terminal device can deactivate the corresponding profile. For example, a user can select an eSIM card phone number from inactive to active, and the terminal device can deactivate the profile and return the deactivation status of the profile to the modem.

[0051] 3. Active Commands

[0052] Application Protocol Data Unit (APDU) commands are instructions for connecting and communicating between a terminal device and a subscriber identity card. APDU commands allow the terminal device and the subscriber identity card to exchange data, and the subscriber identity card can request the terminal device to perform tasks. For example, a terminal device can use APDU commands to access phone numbers stored in the subscriber identity card module.

[0053] The following describes several APDU commands for switching the activation status of profiles in eSIM cards:

[0054] Terminal profile: When the terminal device is powered on and initialized, it sends the terminal profile to the user identification card to inform the user identification card of the active command capabilities supported by the terminal device.

[0055] Proactive command: A proactive command can be used to indicate that the SIM card requests the terminal device to perform a corresponding task. For example, the proactive command includes information for instructing the terminal device to exchange data with the SIM card through a specified channel.

[0056] Terminal response: Response command; the terminal device obtains the data in the data area of ​​the execution result of the above fetch command and sends a terminal response command to the user identification card to indicate that the terminal device has received the active command and is executing it or has executed it successfully.

[0057] response: response command; after receiving the terminal response command sent by the terminal device, the user identification card sends a response to the terminal device to indicate that the active command interaction is successful.

[0058] In addition, for proactive commands, reference may be made to the relevant content of ETSI TS 102 2236.4 Proactive UICC commands and procedures in the standard protocol, which will not be described in detail in this application.

[0059] The modem issues commands, typically standard APDU commands, via the upper-layer processing system. The term "modem" can refer to the terminal device's baseband chip, the corresponding control software, or the software integrated into the baseband chip or the baseband processor. The modem and eSIM card typically interact via APDU commands.

[0060] The SIM Application Toolkit (STK) includes a series of interactive commands for electronic devices and SIM cards. The SIM card can run applets stored on the card to interact with electronic devices and users. Key features of the SIM Application Toolkit include proactive commands. These commands are used for interaction between the terminal device's modem and the SIM card. After the modem sends a command to the SIM card, the SIM card must respond to the modem's proactive commands. The STK can include proactive commands, which can be exchanged using the Application Protocol Data Unit (APDU) format. This means the eSIM card can send proactive commands to the modem.

[0061] In some possible implementations, the modem needs to execute the command data of the eSIM card and reply the execution result to the eSIM card. For example, the modem replies the result to the eSIM card through a terminal response command.

[0062] The electronic device in the embodiments of the present application can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a smart bracelet, a super mobile personal computer, a netbook, a personal phone, a personal data assistant, an augmented reality (AR) / virtual reality (VR) and other touch screen devices. The present application does not limit the specific form of the electronic device.

[0063] The following describes the device involved in the embodiments of the present application.

[0064] Figure 1A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0065] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0066] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0067] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor (BP), and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0068] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0069] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only for illustrative purposes and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0070] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0071] The electronic device implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0072] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLED, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0073] The touch sensor 180K, also known as a "touch panel," can be mounted on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also known as a "touch screen." The touch sensor 180K is used to detect touch operations applied to or near the touch sensor.

[0074] In the embodiment of the present application, the electronic device 100 can detect user operations through the touch sensor 180K. The user operation may include a touch event from the user touching the display screen 194. For specific touch events, please refer to Figure 3A to Figure 3G Related content.

[0075] Optionally, the user operation may be an air operation, a voice operation command, etc. For example, a gesture sensing sensor is installed in the electronic device, and the gesture sensing sensor can detect the user's air operation. The electronic device can determine the air operation through the gesture sensing sensor.

[0076] Figure 2 A schematic diagram of the software and hardware structure of an electronic device provided in an embodiment of the present application.

[0077] like Figure 2 As shown, an electronic device may include an application processor (AP), a baseband processor (BP), and an eSIM chip, with the AP and BP being electrically connected. The operating system, user interface, and application programs all run on the AP, while baseband radio frequency communication and control software all run on the BP. The baseband processor BP may include a modem, and the eSIM chip and modem may be electrically connected. The following describes the AP's layered architecture and the hardware and software structure of the BP:

[0078] like Figure 2 As shown, the software system running on the AP of the terminal can 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 the Android operating system with a layered architecture as an example to illustrate the software architecture of the terminal. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. The software framework of the electronic device involved in this application may include an application layer, an application framework layer (framework, FWK) and a hardware abstraction layer (hardware abstract layer, HAL).

[0079] The application layer may include a series of application packages, such as call, text messaging, and other applications (also referred to as applications, some of which are not shown). In the embodiment of the present application, the application may be any application in the application layer, and the user may open or close the application, or perform operations within the application.

[0080] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0081] The application framework layer includes the local user interface (LUI) and the local profile assistant (LPA). The LUI is a display interface for managing the SIM card (here, the eSIM card), for example, displaying whether the eSIM card is enabled or disabled. The LPA is the core module for managing profiles within the eUICC. The LPA can install, delete, enable, and disable profiles of the mobile operator (MNO).

[0082] In this embodiment of the present application, after the LPA receives a status change request (activation or deactivation request) for the eSIM card profile from the LUI, the LPA can send an activation request or deactivation request to the modem. The LPA waits for the eSIM card status information from the modem and determines the status of the eSIM card profile.

[0083] In this embodiment of the present application, the LUI can depict and display the activation status of the eSIM card's profile and the corresponding signal status. The LUI can also obtain the activation status switching operation of the eSIM card's profile from the user interface and send the corresponding activation or deactivation request to the LPA. In addition, after the LPA updates the activation status of the eSIM card (the activation or deactivation status of the profile), it can depict and display the updated activation status of the eSIM card and the corresponding signal status.

[0084] The hardware abstraction layer is an interface layer located between the application framework layer and the driver layer, providing a virtual hardware platform for the operating system. In an embodiment of the present application, the hardware abstraction layer may include a radio interface layer (RIL). Among them, RIL provides telephone services, etc. RIL is the communication into the application program, and RIL may include two parts: rild and Vendor RIL. rild is responsible for communicating with the application framework layer through the interface socket or the hardware abstraction layer interface definition language (HAL interface definition language, HIDL). Vendor RIL can be responsible for communicating downward with the modem of the hardware layer. For example, Vendor RIL can communicate with the modem through the AT command (active, attention) channel, or through channels defined by different manufacturers. Among them, RIL can be Qcril of a certain manufacturer.

[0085] It should be noted that the application provides Figure 2 The software structure diagram of the electronic device shown is only an example and does not limit the specific module divisions within the different layers of the Android operating system. For details, please refer to the introduction of the Android operating system software structure in conventional technology. In addition, the eSIM card status update method provided in this application can also be implemented based on other operating systems, and this application will not cite examples one by one.

[0086] User operation can change the status of the eSIM card button. Based on the user operation, the electronic device can adjust the configuration file status of the eSIM card. Figure 3A to Figure 3G This section describes two situations in which the status of the eSIM card configuration file changes due to user operations:

[0087] Figure 3A to Figure 3G This is a set of user interface schematic diagrams provided exemplarily in the embodiments of the present application.

[0088] Scenario 1: In response to a user's operation of deactivating eSIM A, the eSIM A card is switched from an activated state to a deactivated state.

[0089] like Figure 3A to Figure 3D This is a user interface diagram showing the state of an eSIM card being switched from enabled to disabled.

[0090] like Figure 3AAs shown, the electronic device can display the SIM card management interface 310. The SIM card management interface 310 includes the setting information of the SIM type and the current SIM card type. The SIM card type can include a physical card and an eSIM card. Among them, the currently used SIM type is an eSIM card, and the current eSIM A card is already enabled, that is, it can be understood that the profile A corresponding to the eSIM A is in an activated state. Figure 3A In the SIM card management interface 310 shown, the user clicks the image bar for eSIM A. In response to this click, the electronic device may display the eSIM card settings interface 320. SIM card management interface 310 is the user interface displayed after the electronic device displays the desktop interface and in response to the user clicking Settings -> Mobile Network -> SIM Card Management.

[0091] like Figure 3B As shown, the eSIM card setting interface 320 includes information such as the card name, integrated circuit card identity (ICCID) and operator of eSIM A. Figure 3B In the example, eSIM A is in the enabled state. The network signal status 321 of eSIM A included in the eSIM card setup interface 320 indicates normal communication. The user can click the eSIM status switch button 322. In response to this operation, the terminal device attempts to switch the status of eSIM A from enabled to disabled, and the corresponding profile A of eSIM A is deactivated. In this embodiment of the present application, when eSIM A is enabled, the corresponding profile A is activated; when eSIM A is deactivated, profile A is deactivated.

[0092] based on Figure 3A to Figure 3B There are two situations in which eSIM A is closed successfully or unsuccessfully. Figure 3C and Figure 3D The following screen displays show whether eSIM A is successfully closed or not:

[0093] If eSIM A is not enabled successfully, Figure 3C As shown, a pop-up window 343 indicating a failed switch may be displayed in the eSIM card setup interface 330. This pop-up window 343 may indicate that the eSIM card status update failed. Furthermore, the terminal device displays the network signal status of eSIM A but does not display it, and the eSIM status switch button 322 remains in the disabled state. At this point, profile A is successfully deactivated.

[0094] In response to Figure 3BIn the case of failure in disabling eSIM A, such as Figure 3D As shown, the network signal status 341 of eSIM A in the eSIM card setting interface 340 is normal communication status, and the eSIM status switch button 342 remains in the enabled state. At this time, profile A fails to be deactivated, and the current profile A still remains Figure 3B The activation status in .

[0095] Scenario 2: When eSIM B is in the enabled state and eSIM C is in the disabled state, in response to the user's operation of enabling eSIM C, eSIM B is switched to the disabled state and eSIM C is switched to the enabled state.

[0096] like Figure 3E to Figure 3G Schematic diagram of the user interface for switching the enabled eSIM card.

[0097] like Figure 3E As shown, the electronic device can display the SIM card management interface 350. The eSIM card in the SIM card management interface 350 includes eSIM B and eSIM C. Among them, eSIM B is in the enabled state, and eSIM C is in the disabled state. That is, it can be understood that profile B corresponding to eSIM B is in the activated state, and profile C corresponding to eSIM C is in the deactivated state. If the user needs to view Figure 3A In the SIM card management interface 310 shown, the user can click on the image bar of the eSIM C card. In response to the above user click operation, the electronic device can display the eSIM card setting interface 360. Among them, other related descriptions in the SIM card management interface 350 can be referred to Figure 3A The relevant instructions in are not repeated here.

[0098] like Figure 3F As shown, in the eSIM card setting interface 360, eSIM C is in an inactive state, the network signal status 361 of eSIM B is in a normal communication state, the network signal status of eSIM C is not displayed, and the eSIM state switch button 322 is in an inactive state. The user can click the state switch button 363 of eSIM C. In response to the above user operation, the terminal device can display the user interface after the state of eSIM C is switched. For other related descriptions of the eSIM card setting interface 360, please refer to Figure 3B The relevant content in will not be repeated here.

[0099] If the status of eSIM C is successfully switched, Figure 3GAs shown, the electronic device may display an eSIM card setup interface 370. In the eSIM card setup interface 370, the eSIM C status switch button 373 is enabled, eSIM C is enabled, and Profile C corresponding to eSIM C is activated. During this switching process, the electronic device must first switch eSIM B from an enabled state to a disabled state, and Profile B corresponding to eSIM B is deactivated. At this point, the network signal status of eSIM B is not displayed, and the network signal status 371 of eSIM C is normal communication.

[0100] If the status switch of eSIM C fails, the eSIM card setting interface can display a pop-up window to remind the user that the status update of the eSIM card failed. The pop-up window can be used to remind the user that the status update of the eSIM card failed. Figure 3D The description of the prompt pop-up window 343 is omitted here.

[0101] Optionally, when the eSIM D card is in an unactivated state and the eSIM E card is in an activated state, in response to the user's operation of activating the eSIM D, the eSIM D card is switched to an activated state and the eSIM E card remains in an activated state. The above operation process can refer to the above Figure 3E to Figure 3G The relevant interface conditions of the operation in the operation are not described in detail. At this time, the electronic device can activate the configuration files of multiple eSIM cards at the same time. This application does not limit the number of eSIM cards that can be activated simultaneously by the electronic device.

[0102] Among them, the status of the eSIM card and the eSIM card configuration file have the same substantive meaning. If the eSIM card is in the enabled state, the corresponding configuration file is in the activated state; if the eSIM card is in the disabled state, the corresponding configuration file is in the deactivated state.

[0103] Combined with the above Figure 3A to Figure 3G The process involves two situations: the user switches the eSIM card or sets the eSIM card from enabled to disabled. This application describes a flowchart of the method for updating the status of the eSIM card during deactivation, focusing on this scenario. Figure 4 and Figure 5 As shown in the figure, the status update process of the eSIM card deactivation process is described respectively for normal (deactivation successful) and abnormal (deactivation failed).

[0104] Figure 4 This is a flow chart of a normal method for deactivating the status of an eSIM card configuration file provided by an embodiment of the present application. Figure 4As shown, the electronic device may include LUI, LPA, RIL, modem and eSIM chip. Figure 2~Figure 3G The relevant description is omitted here.

[0105] S401: When the electronic device displays a first user interface, the LUI responds to a first operation and sends a first eSIM profile deactivation request to the LPA.

[0106] In the case where the electronic device displays a first user interface, in response to a first operation, the LUI sends a first eSIM profile deactivation request (disable esim profile) to the LPA. The first user interface displays a path for providing the user with a way to switch the state of the eSIM profile. For example, the first user interface may refer to Figure 3B (the first eSIM corresponds to eSIMA) and Figure 3F (The first eSIM corresponds to eSIM B) and the related description is not repeated. The first operation can be an operation to switch the state of the eSIM profile. For example, the first operation can refer to Figure 3B and Figure 3F The description of the related operations is omitted here.

[0107] The status of the eSIM profile may include an activation state and a deactivation state. When the first eSIM profile is in the activation state, the eSIM card 1 corresponding to the first eSIM profile can communicate normally; when the first eSIM profile is in the deactivation state, the eSIM card 1 corresponding to the first eSIM profile cannot communicate normally.

[0108] The first eSIM profile deactivation request is used to request a status update process for the first eSIM profile, for example, a deactivation process request for the first eSIM profile.

[0109] S402: The LPA deactivates the first profile corresponding to the first eSIM based on the first eSIM profile deactivation request.

[0110] After the LPA receives the first eSIM profile deactivation request, it can deactivate the first profile of the first eSIM based on the first eSIM profile deactivation request. Specifically, it can immediately execute the DisableProfile function in S402. The DisableProfile function includes the LPA sending the first deactivation request to the Modem via the RIL (S403). After executing the deactivation process in S402, the state of the first profile changes from activated to deactivated.

[0111] The LPA executing the DisableProfile function further includes the LPA waiting to receive first eSIM card status information within a first time period. S410 includes determining a status switching result for the first profile based on the first eSIM card status information received within the first time period.

[0112] S403: The LPA sends a first deactivation request to the Modem through the RIL.

[0113] After deactivating the first profile corresponding to the first eSIM based on the first deactivation request, the LPA may send the first deactivation request to the modem via the RIL. Correspondingly, the modem may receive the first deactivation request from the LPA via the RIL. The first deactivation request may be an APDU instruction. The APDU instruction is an information unit transmitted between the subscriber identity card and the subscriber identity card reader.

[0114] The first deactivation request is used to deactivate the first profile of the first eSIM. The first deactivation request may include first profile information, a deactivation flag, and a refresh flag. The first profile information may indicate the identification information of the eSIM card (profile) to be deactivated, i.e., the first profile information may be understood as the target eSIM card information. The deactivation flag may indicate that the first profile of the first eSIM needs to be deactivated, for example, the deactivation flag is BF32. The refresh flag indicates that the electronic device is performing a reset, i.e., resetting the profile status of the first eSIM.

[0115] S404: The modem sends a first deactivation request to the eSIM chip.

[0116] After receiving the first deactivation request, the modem continues to send the first deactivation request to the eSIM chip.

[0117] S405: The eSIM chip sends a deactivation response message to the Modem.

[0118] After receiving the first deactivation request (performing S404 ), the eSIM chip may send a deactivation response message (response command) to the Modem.

[0119] The deactivation response message may include the first profile information, a deactivation reply flag, and a normal flag. The first profile information may refer to the relevant content in the first deactivation request and is not described in detail here. The deactivation reply flag may indicate that the first eSIM profile needs to be deactivated, such as BF32. The normal flag indicates that the first deactivation request is processed normally. For example, the normal flag is 0, and the abnormal flag is another flag such as 1, 2, 3, 5, 7, or 127. It should be noted that the above description is merely exemplary and is not limited in this application.

[0120] S406: The Modem sends a deactivation response message to the RIL.

[0121] After receiving the first deactivation request sent by the eSIM chip, the modem may continue to send a deactivation response message to the RIL.

[0122] S407: The eSIM chip sends a configuration file reset request to the modem.

[0123] When the eSIM chip receives the first deactivation request and is not currently executing an active command, the eSIM chip may send a configuration file reset request to the modem. Otherwise, S407 is not executed.

[0124] Figure 4 Since the modem is not currently executing an active command, a configuration file reset request can be directly sent to the modem.

[0125] S408: The modem resets the first configuration file of the first eSIM card.

[0126] After receiving the configuration file reset request from the eSIM card, the modem can reset the first configuration file of the first eSIM card. This means powering on the eSIM chip, updating the card status of the first configuration file of the first eSIM card, and re-reading the status of the first configuration file. The first eSIM card corresponds to the first configuration file, and there can be a one-to-one correspondence between the eSIM card and the configuration file.

[0127] After the modem resets the first configuration file of the first eSIM card, it can be determined that the first configuration file of the first eSIM card is in a deactivated state.

[0128] S409: The modem sends the first eSIM card status information to the LPA via the RIL.

[0129] The modem resets the first configuration file of the first eSIM card, obtains the first eSIM card status information, and sends the first eSIM card status information to the LPA through the RIL.

[0130] The first eSIM card status information indicates that the first configuration file in the first eSIM card is currently in a deactivated state. The first eSIM card status information includes status information of the first configuration file in the first eSIM card (ie, whether the first configuration file is in an activated state or an inactivated state).

[0131] S410: The LPA determines, based on the first eSIM card status information, that the first configuration file is successfully deactivated.

[0132] When the first eSIM card status information includes status information of the first profile indicating a deactivated state, the LPA may determine that the first profile is successfully deactivated.

[0133] Specifically, in S402, the LPA may start timing (exemplarily, setting a timer to start timing). Within a first time period, the LPA receives first eSIM card status information. The first eSIM card status information may indicate that the first profile is successfully deactivated. The LPA may determine that the first eSIM card status is successfully deactivated.

[0134] S411: The LPA sends a deactivation success notification to the LUI.

[0135] After the LPA determines that the first profile is successfully deactivated, it may send a deactivation success notification to the LUI. The deactivation success notification may indicate that the first eSIM card status is successfully updated. The deactivation success notification may include the first eSIM card information and a deactivation success flag.

[0136] S412: The LUI displays status information of the first eSIM card.

[0137] The LUI may determine, based on the deactivation success notification, that the first configuration file corresponding to the first eSIM card has been successfully deactivated, and may display status prompt information of the first eSIM card.

[0138] For example, Figure 3E As shown, the eSIM card settings interface may indicate that the first profile (eSIM A) corresponding to the first eSIM card is not enabled, and the network signal status of eSIM A is not displayed. Of course, the display may also include other ways to display deactivated eSIM card configuration information. The above is merely an example and will not be elaborated on.

[0139] In this embodiment of the present application, there is a one-to-one correspondence between eSIM card names and configuration files. An eSIM chip can have at least one configuration file installed. That is, an eSIM chip (hardware) can include at least one or more eSIM cards, each corresponding to a configuration file. It should be understood that the status of an eSIM card is equivalent to the status of its corresponding configuration file.

[0140] Figure 4 This is when the electronic device resets the status of the configuration file in the eSIM card without the Modem executing an active command. Figure 4 The following implementation method Figure 5 This indicates that the electronic device is resetting the status of the configuration file in the eSIM card while the modem is executing an active command.

[0141] Figure 5 This is a flowchart of an abnormal method for deactivating the status of an eSIM card configuration file provided by an embodiment of the present application. Figure 5 As shown, the abnormal method of updating the status during the eSIM card deactivation process may include but is not limited to the following steps:

[0142] S501: When the electronic device displays a first user interface, the LUI responds to a first operation and sends a first eSIM profile deactivation request to the LPA.

[0143] S502: The LPA deactivates the first profile corresponding to the first eSIM based on the first eSIM profile deactivation request.

[0144] For details of S501 and S502, reference may be made to the relevant descriptions of S401 and S402, which will not be elaborated herein.

[0145] S503: The eSIM chip sends a first active command to the modem.

[0146] Before the eSIM chip receives the first deactivation request, the eSIM chip sends a first proactive command to the modem. For example, the eSIM chip sends proactive command 1 to the modem. After receiving the proactive command from the eSIM chip, the modem needs to send a terminal response to the eSIM chip after processing the proactive command. It should be noted that proactive command 1 is only an example of the first proactive command; other possibilities exist and are not limited to this in this application.

[0147] It should be noted that after the eSIM chip sends an active command to the Modem, the Modem needs to process related tasks based on the active command. This process is the process of the Modem executing the active command. After the related tasks based on the active command are processed, the Modem replies with a response command to the eSIM chip based on the task processing result. Therefore, in S503, after the Modem receives the first active command from the eSIM chip, before the Modem sends a response command to the eSIM chip for the first active command, the Modem is in the process of executing the active command. Figure 5 As shown, after executing S503, in the process to S510, the Modem does not send a response command for the first active command to the eSIM chip. Therefore, Figure 5 The modem is in the process of executing active commands.

[0148] Among them, the first active command can be a DISPLAY TEXT command, a GET INKEY command, a GET INPUT command, a MORE TIME command, a PLAY TONE command, a POLLINTERVAL command, a REFRESH command, a SET UP MENU command, a SELECT ITEM command, a SEND SHORT MESSAGE command, a SET UP CALL command, a POLLING OFF command, a PROVIDE LOCAL INFORMATION command, a SET UP EVENTLIST command, a PERFORM CARD APDU command, a POWER OFF CARD command, a POWER ON CARD command, a GET READER STATUS command, a TIMER MANAGEMENT command, a SET UP IDLE MODE TEXT command, an AT command, a RUNAT COMMAND command, a DTMFSEND DTMF command, and a LANGUAGE command. Any of the following commands: NOTIFICATION command, LAUNCH BROWSER command, OPEN CHANNEL command, CLOSE CHANNEL command, RECEIVE DATA command, SEND DATA command, GET CHANNEL STATUS command, SERVICE SEARCH command, GET SERVICE INFORMATION command, DECLARE SERVICE command, SET FRAMES command, GET FRAME STATUS command, RETRIEVE MULTIMEDIA Message command, SUBMIT MULTIMEDIA Message command, DISPLAY MULTIMEDIA Message command, ACTIVATE command, CONTACTLESS STATE CHANGED command, COMMAND CONTAINER command, and ENCAPSULATED SESSION CONTROL command.

[0149] Among them, the DISPLAY TEXT command is used to instruct the terminal to display text messages and / or icons. The GET INKEY command is an optional command used to instruct the terminal to display text and / or icons. The GET INPUT command is used to instruct the terminal to display text and / or icons. The MORE TIME command is used to allow the CAT task in the UICC more time to process, where too long a processing time may affect normal operation, and clock stoppage may prevent processing in the background. The PLAY TONE command is used to instruct the terminal to play an audio prompt tone. The POLL INTERVAL command is used to request the terminal to send a frequency of STATUS commands related to active polling... Among them, the above-mentioned active commands can refer to the relevant content of ETSI TS 102 2236.4 Proactive UICC commands and procedures in the standard protocol, which will not be repeated in this application.

[0150] When the modem receives the first active command and the modem has not yet sent a response command to the eSIM chip, the electronic device executes S504 to S507.

[0151] S504: The LPA sends a first deactivation request to the Modem through the RIL.

[0152] S505: The modem sends a first deactivation request to the eSIM chip.

[0153] S506: The eSIM chip sends a deactivation response message to the Modem.

[0154] S507: The Modem sends a deactivation response message to the RIL.

[0155] Among them, the details of S504 to S507 can refer to the relevant descriptions of S403 to S406 and are not repeated here.

[0156] If, after executing S503-S506, the modem has not received the terminal response command from the eSIM chip, and the modem is currently executing a proactive command, the eSIM chip cannot send a profile reset request to the modem, as specified in GMSA standard SGP.22-5.7.17 Function. This means that the DisableProfile function execution process is specific to the situation where a proactive command is currently executing.

[0157] The execution of the DisableProfile function must comply with the standard protocol SGP.22-5.7.17 Function (ES10c). The following describes the execution process of the DisableProfile function as specified in the GMSA standard protocol SGP.22-5.7.17 Function (ES10c): If the refresh flag (S505) is set, and an active session is in progress, the eUICC shall perform the following operations: 1. Terminate the DisableProfile function and return the error code catBusy; 2. If the response command terminal response has not been completed, internally terminate the active session on the target port. After receiving the terminal response, the reset response command (profile reset request) may be sent.

[0158] According to the execution logic of SGP.22-5.7.17 Function (ES10c), the modem has not yet completed processing the proactive command (executing the proactive command) and has not yet responded to the eSIM with a terminal response. During the electronic device's execution of the DisableProfile function, the modem, after determining based on the refresh flag that the eSIM card profile status needs to be reset, still needs to terminate the DisableProfile function or terminate the active session on the target port. When terminating the active session on the target port, it needs to wait for the terminal response (TR command). While waiting for the terminal response, if a first deactivation request is received, the profile reset request cannot be sent to the eSIM card / modem, and S407 is not executed. After receiving the terminal response, if a first deactivation request is received, the profile reset request can be sent to the eSIM card / modem, and S407 is executed. In this process, if the first deactivation request fails, the user must wait for a new first action (user action again) before resetting the refresh and executing again.

[0159] S508: The LPA does not receive the first eSIM card status information and determines that the deactivation fails.

[0160] During the process of executing the first profile deactivation process (in S502), the LPA may start timing. If the first eSIM card status information is obtained within a first time period, the LPA may determine whether the first eSIM card is deactivated based on the first eSIM card status information. If the first eSIM card status information is not obtained, the LPA may determine that the deactivation has failed.

[0161] During the execution of S505 to S507 above, because the modem did not perform the process of resetting the first configuration file of the first eSIM card, it was unable to send the first eSIM card status information to the LPA via the RIL. Therefore, in S508, if the LPA did not receive the first eSIM card status information within the first time period, it can be determined that the deactivation process for the first configuration file corresponding to the first eSIM card has failed.

[0162] Exemplarily, the first duration is 30 seconds. During the execution of the DisableProfile function by the LPA, a timer of the first duration is set, and the first eSIM card status information is waited for 30 seconds. If the first eSIM card status information has not been obtained before the timer reaches 30 seconds, the DisableProfile function execution may be determined to have failed. The first duration is merely an example and is not limited in this application.

[0163] S509: The LPA sends a deactivation failure notification to the LUI.

[0164] In S508, if the LPA determines that the deactivation process has failed, it sends a deactivation failure notification to the LUI.

[0165] The deactivation failure notification may indicate a failure to update the first eSIM card status. The deactivation success notification may include the first eSIM card information and a deactivation failure flag.

[0166] S510: The LUI displays a prompt message indicating that deactivation of the first eSIM card has failed.

[0167] Among them, the electronic device can display Figure 3D The user interface shown in the figure can refer to the prompt information pop-up window 343, which can indicate that the current eSIM card status update has failed. Figure 3D The relevant description will not be repeated here.

[0168] Optionally, for the above Figure 4 and Figure 5The eSIM card status switching scenario can be a user-specific deactivation or activation of a profile. The deactivation process (executing the DisableProfile function) in the corresponding step can be replaced with activation (executing the EnableProfile function, which uses the same logic as the DisableProfile function described above). This means that during the activation process for an eSIM card profile, if an activated eSIM card profile already exists and the electronic device can simultaneously activate multiple eSIM card profiles, the modem may receive an activation request when executing the active command, resulting in the same activation failure described above. Therefore, the activation process may also experience the aforementioned abnormalities.

[0169] above Figure 5 In this implementation, if the modem receives the first proactive command but has not yet responded to the eSIM chip, steps S407 and S408 are not executed. Consequently, the modem cannot be triggered to reset the first profile of the first eSIM card. Consequently, the modem's eSIM card status is not updated, and the LPA cannot be notified of the eSIM card change. The LPA cannot receive the first eSIM card status information within the specified time period, resulting in a failure to deactivate (or activate) the first eSIM card, and the LUI displays a failure to update the eSIM card status. Due to the aforementioned protocol requirements, the execution of the DisableProfile function may conflict with other proactive commands, creating a certain probability of deactivation failure (or activation failure). This deactivation failure requires the user to click the first eSIM card status switch again, requiring multiple steps and resulting in a poor user experience.

[0170] To address the above issues, embodiments of the present application provide a method for updating the eSIM status. If a modem receives a first proactive command and does not respond with a terminal response, and if the modem receives a refresh flag (a first deactivation request or a first activation request), it can still reset the first profile of the first eSIM card and send the first eSIM card status information to the LPA via the RIL. This process ensures that the DisableProfile function (or EnableProfile function) can be successfully executed, reducing abnormalities in executing the eSIM card profile status update and improving the user experience.

[0171] When the electronic device does not execute the active command, the electronic device Figure 4The steps of the normal execution of the eSIM card configuration file activation or deactivation process (eSIM card configuration file status change), when the electronic device is executing the active command, the electronic device follows Figures 6 to 8 The following describes the process of activating or deactivating the configuration file of the eSIM card (changing the status of the configuration file of the eSIM card) in an embodiment of the present invention. Figures 6 to 8 ) for explanation.

[0172] Embodiment 1: While the eSIM chip is executing an active command, the eSIM chip continues to send a configuration file reset request to the modem, triggering the modem to reset the configuration file.

[0173] When the eSIM chip receives a deactivation request and the electronic device is executing an active command (while the eSIM chip is waiting to respond to the command), the eSIM chip sends a configuration file reset request to the modem. Upon receiving the configuration file reset request, the modem can reset the configuration file normally. This ensures that the modem can reset the eSIM card configuration file normally during the execution of the active command, ensuring the normal processing of resetting the first configuration file of the first eSIM card, thereby improving the user experience.

[0174] Figure 6 This is a flow chart of a method for updating the status of an eSIM card configuration file provided by an embodiment of the present application. Figure 6 As shown, the method for updating the eSIM card profile status may include but is not limited to the following steps:

[0175] S601: When the electronic device displays a first user interface, the LUI responds to a first operation and sends a first eSIM profile deactivation request to the LPA.

[0176] S602: The LPA deactivates the first profile corresponding to the first eSIM based on the first eSIM profile deactivation request.

[0177] S603: The eSIM chip sends a first active command to the modem.

[0178] S604: The LPA sends a first deactivation request to the Modem through the RIL.

[0179] S605: The modem sends a first deactivation request to the eSIM chip.

[0180] S606: The eSIM chip sends a deactivation response message to the Modem.

[0181] S607: The Modem sends a deactivation response message to the RIL.

[0182] Among them, S601~S607 can refer to the relevant description of S501~S507 and will not be repeated here.

[0183] S608: The eSIM chip sends a configuration file reset request to the modem.

[0184] When the first deactivation request is received, the configuration file reset request is still sent to the modem. Regardless of whether the eSIM chip is waiting for a response command to the first proactive command, S608 is executed, which ensures that the modem executes S609.

[0185] Optionally, in S605, when the first deactivation request is obtained, the eSIM chip can determine whether it is currently waiting for a response command to the active command (i.e., for the response to S603, it is determined that the active command is being executed). If the response command to the active command is being waited for, S609 can be executed; if the response command to the active command is not being executed, the eSIM chip can be executed according to Figure 4 Just execute S408 in the middle method.

[0186] S609: The modem resets the first configuration file of the first eSIM card.

[0187] S608 is executed after S605, and S609 is executed after S608. The execution time sequence of S606, S607 and S608 is not limited.

[0188] S610: The modem sends the first eSIM card status information to the LPA via the RIL.

[0189] S611: The LPA determines, based on the first eSIM card status information, that the first configuration file is successfully deactivated.

[0190] S612: The LPA sends a deactivation success notification to the LUI.

[0191] S613: The LUI displays status information of the first eSIM card.

[0192] The specific processing procedures of S608 to S613 may refer to the relevant descriptions of S407 to S412 and will not be repeated here.

[0193] above Figure 6In the implementation, the eSIM chip can receive an activation request or deactivation request while the electronic device is executing a proactive command (the eSIM chip is waiting for the modem), and then send a configuration file reset request to the modem, triggering the modem to reset the first configuration file of the first eSIM card. This ensures that the status of the eSIM card configuration file can be updated even during the proactive command execution process, reducing update failures and improving the user experience.

[0194] Embodiment 2: When the modem is executing an active command, it obtains eSIM deactivation information. The modem replies a response command to the eSIM chip, and the eSIM chip sends a configuration file reset request to the modem, triggering the modem to reset the configuration file.

[0195] When the modem receives the eSIM deactivation information, it can, while executing the active command, reply to the eSIM chip with the required terminal response for the active command. This allows the eSIM chip to continue responding to the first deactivation request and initiate a configuration file reset to the modem. The modem can then reset the configuration file normally. This ensures that the modem can still reset the eSIM card configuration file while executing the active command, ensuring normal processing of resetting the first configuration file of the first eSIM card, thereby improving the user experience.

[0196] Figure 7 This is a flow chart of another method for updating the status of an eSIM card configuration file provided by an embodiment of the present application. Figure 7 As shown, the method for updating the eSIM card profile status may include but is not limited to the following steps:

[0197] S701: When the electronic device displays a first user interface, the LUI responds to a first operation and sends a first eSIM profile deactivation request to the LPA.

[0198] S702: The LPA deactivates the first profile corresponding to the first eSIM based on the first eSIM profile deactivation request.

[0199] S703: The eSIM chip sends a first active command to the modem.

[0200] S704: The LPA sends a first deactivation request to the Modem through the RIL.

[0201] S705: The modem sends a first deactivation request to the eSIM chip.

[0202] S706: The eSIM chip sends a deactivation response message to the modem.

[0203] S707: The Modem sends a deactivation response message to the RIL.

[0204] Among them, S701~S707 can refer to the relevant description of S601~S607 and will not be repeated here.

[0205] S708: The modem parses the received information and, if the received information includes deactivation information, determines whether a proactive command is currently being executed. If a proactive command is currently being executed, S709 is executed. If not, no processing is performed.

[0206] After receiving the information, the modem can parse the received information to determine whether it is deactivation information. The deactivation information can be the first deactivation request sent by the LPA to the modem via the RIL in S704, or the deactivation response message sent by the eSIM card to the modem in S706. Both the first deactivation request and the second deactivation response message can include a deactivation flag. For example, the deactivation flag is BF32.

[0207] The modem parses received message A and determines that it contains BF32 (deactivation flag). If BF32 is not present, the modem determines that it does not contain deactivation information. For example, if received message A is BF3211A00C5A0A989420000002329175078101FF, and contains the deactivation flag BF32, the modem determines that it contains deactivation information.

[0208] Exemplarily, when the received information A is the first deactivation request, the modem parses the first deactivation request and determines that the first deactivation request includes a deactivation flag, and then determines that the received information is deactivation information.

[0209] Alternatively, the modem may only parse the received information sent by the RIL and determine whether the received information is deactivation information based on the received information sent by the RIL. In this case, after S704, the modem may determine that the received information is deactivation information (execute S708). The order in which S705-S706 and S708 are executed is not limited.

[0210] Alternatively, the modem may only parse the information received from the eSIM chip and determine whether the received information is deactivation information based on the information received from the eSIM chip. In this case, after S706, the modem may determine that the received information is deactivation information (execute S708). The order of executing S705-S706 and S708 is not limited.

[0211] The modem can determine whether the active command is currently being executed based on the execution flag of the active command. The execution flag of the active command includes two states: being executed and not being executed. For example, when the execution flag is 1, the state variable of the active command is not being executed. When the execution flag is 0, the state variable of the active command is being executed.

[0212] The modem determines whether the execution flag is in the executing state. When the execution flag is in the executing state, the electronic device can determine that the active command is currently being executed; when the execution flag is in the not executing state, the electronic device can determine that the active command is not currently being executed.

[0213] The modem can store an execution flag for active commands and read the execution flag to determine whether the active command's status variable is not being executed or is being executed. This means the modem needs to send and receive information with the eSIM chip according to the active command. The modem can set the execution flag based on the state of the active command set being sent and received. When the modem is sending or receiving an active command, the execution flag indicates that the active command is being executed; when the modem is not sending or receiving an active command, the execution flag indicates that the active command is not being executed.

[0214] If no active command is currently executed, no processing is done, that is, the eSIM chip directly sends a configuration file reset request to the Modem. Figure 4 Just execute the logic in .

[0215] S709: The modem sends a response command to the eSIM chip based on the first proactive command.

[0216] If the modem is currently executing an active command, it sends a response command "terminal response" to the eSIM chip based on the first active command. After executing S709, the modem executes S710.

[0217] S710: The eSIM chip sends a configuration file reset request to the modem.

[0218] S711: The modem resets the first configuration file of the first eSIM card.

[0219] Among them, there is a sequential execution order between S708 to S711.

[0220] S712: The modem sends the first eSIM card status information to the LPA via the RIL.

[0221] S713: The LPA determines, based on the first eSIM card status information, that the first configuration file is successfully deactivated.

[0222] S714: The LPA sends a deactivation success notification to the LUI.

[0223] S715: The LUI displays status information of the first eSIM card.

[0224] Among them, S711~S715 can refer to the relevant description of S407~S412 and will not be repeated here.

[0225] exist Figure 7 In this embodiment, after receiving the deactivation or activation flag, the modem can determine whether a proactive command is currently being executed. While executing the proactive command, it can also send a response to the proactive command to the eSIM chip in advance. After receiving the response, the eSIM chip can send a configuration file reset request to the modem, triggering the modem to reset the first configuration file of the first eSIM card. This ensures that the status of the eSIM card configuration file can be updated even during the execution of the proactive command, reducing the likelihood of configuration file status update failures and improving the user experience.

[0226] Embodiment 3: When the modem is executing an active command, it obtains eSIM deactivation information, which directly triggers the modem to reset the configuration file.

[0227] When the modem receives the eSIM card deactivation information (or activation information), it can reset the configuration file normally while executing the active command. This ensures that the modem can reset the eSIM card configuration file normally during the execution of the active command, ensuring the normal processing of resetting the first configuration file of the first eSIM card, thereby improving the user experience.

[0228] Figure 8 This is another flow chart of a method for updating the status of an eSIM card configuration file provided in an embodiment of the present application. Figure 8 As shown, abnormal methods for updating the status during the eSIM card deactivation process may include but are not limited to the following steps:

[0229] S801: When the electronic device displays a first user interface, the LUI responds to a first operation and sends a first eSIM profile deactivation request to the LPA.

[0230] S802: The LPA deactivates the first profile corresponding to the first eSIM based on the first eSIM profile deactivation request.

[0231] S803: The eSIM chip sends a first active command to the modem.

[0232] S804: The LPA sends a first deactivation request to the Modem through the RIL.

[0233] S805: The modem sends a first deactivation request to the eSIM chip.

[0234] S806: The eSIM chip sends a deactivation response message to the Modem.

[0235] S807: The Modem sends a deactivation response message to the RIL.

[0236] The processing of S801 to S807 may refer to the processing of S501 to S507 and will not be described in detail.

[0237] S808: The modem parses the received information and, if the received information includes deactivation information, determines whether a proactive command is currently being executed. If a proactive command is currently being executed, S809 is executed. If not, no processing is performed.

[0238] After receiving the information, the modem can parse the received information to determine whether it is deactivation information. The deactivation information can be the first deactivation request sent by the LPA to the modem via the RIL in S804, or the first deactivation notification sent by the eSIM chip to the modem in S806. Both the first deactivation request and the first deactivation notification can include a deactivation flag. For example, the deactivation flag is BF32.

[0239] The modem parses received information A and determines that it includes BF32 (deactivation flag), thus determining that the received information is deactivation information. If BF32 is not included in received information A, then the modem determines that the received information includes deactivation information. For example, if received information A is a first deactivation request, the modem parses the first deactivation request and determines that the first deactivation request includes the deactivation flag, then the modem determines that the received information is deactivation information.

[0240] In the case where the received information in S808 includes deactivation information, it is determined whether a proactive command is currently being executed. The process can refer to the relevant process in S708 and will not be described in detail.

[0241] In S808, if no active command is currently executed, no processing is performed, that is, the eSIM chip directly sends a configuration file reset request to the Modem. Figure 4 Just execute the logic in .

[0242] S809: The modem resets the first configuration file of the first eSIM card.

[0243] If it is determined in S808 that the active command is to be executed, S809 is executed.

[0244] S810: The modem sends the first eSIM card status information to the LPA via the RIL.

[0245] S811: The LPA determines, based on the first eSIM card status information, that the first configuration file is successfully deactivated.

[0246] S812: The LPA sends a deactivation success notification to the LUI.

[0247] S813: The LUI displays status information of the first eSIM card.

[0248] Among them, S809~S813 can refer to the relevant description of S408~S412 (or S711~S715), which is not repeated here.

[0249] exist Figure 8 In this embodiment, after receiving the deactivation or activation flag, the modem can determine whether a proactive command is being executed. During the proactive command execution, the modem can be directly triggered to reset the first configuration file of the first eSIM card. This ensures that the status of the eSIM card configuration file can be updated during the proactive command execution, reducing the likelihood of configuration file status update failures and improving the user experience.

[0250] Optionally, in the case where the electronic device can activate multiple eSIM card profiles at the same time, the electronic device can activate the second profile of the second eSIM card when the first profile of the first eSIM card is in an activated state and the second profile of the second eSIM card is in a deactivated state, that is, the user can click the control to activate the second eSIM card, and the electronic device can activate the second profile of the second eSIM card in accordance with the process of executing the active command. Figures 6 to 8The logic of the second eSIM card is to execute the EnableProfile function, and the eSIM chip sends a configuration file reset request, or the Modem directly determines that it has received the activation information and executes the active command, or the Modem directly determines that it has received the activation information and executes the active command and sends a response command to the eSIM chip, so that the eSIM chip sends a configuration file reset request. Then, the reset of the second configuration file of the second eSIM card is triggered. If the electronic device does not execute the active command, it can be reset according to Figure 4 The logic executes the EnableProfile function on the second eSIM card and resets the second profile of the second eSIM card. Figure 4 、 Figures 6 to 8 Same, no further details.

[0251] Example 4: When an electronic device has at most one eSIM card profile activated simultaneously, if the first profile of the first eSIM card is already activated and the second profile of the second eSIM card is deactivated, and the user switches to activating the second profile, the electronic device must first deactivate the first profile of the first eSIM card and then activate the second profile of the second eSIM card. The modem deactivates the first profile of the first eSIM card while executing an active command. This ensures that the modem can reset the eSIM card profile normally during the execution of the active command, ensuring normal processing of the first profile of the first eSIM card and improving the user experience.

[0252] Figure 9 This is another flow chart of a method for updating the status of an eSIM card configuration file provided in an embodiment of the present application. Figure 9 As shown, abnormal methods for updating the status during the eSIM card deactivation process may include but are not limited to the following steps:

[0253] in, Figure 9 Should be combined Figure 3E to Figure 3G Specific instructions for the display interface.

[0254] S901: When the electronic device displays a first user interface, the LUI responds to a first operation and sends a second eSIM profile activation request to the LPA.

[0255] The first operation is a request operation for activating the second eSIM card. Currently, the first eSIM card is in an activated state, and the second eSIM card is in a deactivated state.

[0256] The first user interface can be Figure 3EThe first eSIM card is eSIM B, eSIM B is in an enabled state, and the corresponding first profile is in an activated state; the second eSIM card is eSIM C, eSIM C is in an unenabled state, and the corresponding first profile is in a deactivated state.

[0257] S902: The LPA deactivates the first profile corresponding to the first eSIM based on the second eSIM profile activation request.

[0258] Since the electronic device's eSIM chip can only have one profile active at a time in this embodiment, the first profile of the first eSIM card must be deactivated before the second profile of the second eSIM card can be activated. Steps S902 to S913 are the process of deactivating the first profile of the first eSIM card, and steps S914 to S924 are the process of activating the second profile of the second eSIM card.

[0259] S903: The eSIM chip sends a first active command to the modem.

[0260] S904: The LPA sends a first deactivation request to the Modem through the RIL.

[0261] S905: The modem sends a first deactivation request to the eSIM chip.

[0262] S906: The eSIM chip sends a deactivation response message to the Modem.

[0263] S907: The Modem sends a deactivation response message to the RIL.

[0264] S908: The modem parses the received information and, if the received information includes deactivation information, determines whether a proactive command is currently being executed. If a proactive command is currently being executed, S809 is executed. If not, no processing is performed.

[0265] Among them, S902~S908 can refer to Figure 8 The relevant contents of S802~S808 are not repeated here.

[0266] In S908, if the received information includes deactivation information, it is determined whether a proactive command is currently being executed. The process can refer to the relevant process of S808 and will not be described in detail.

[0267] Optionally, after S908, the electronic device may further execute steps S709 and S710, and the execution logic thereof may refer to Figure 7 The relevant description is omitted here.

[0268] Optionally, the execution logic of S908 can be replaced by Figure 6 The execution logic of S608, that is, the eSIM chip continues to execute the logic of S608 during the process of executing the active command, triggering the execution of S909.

[0269] S909: The modem resets the first configuration file of the first eSIM card.

[0270] S910: The modem sends the first eSIM card status information to the LPA via the RIL.

[0271] S911: The LPA determines, based on the first eSIM card status information, that the first configuration file is successfully deactivated.

[0272] S912: The LPA sends a deactivation success notification to the LUI.

[0273] S913: The LUI displays status information of the first eSIM card.

[0274] Among them, S909~S913 can refer to the relevant description of S408~S412 and will not be repeated here.

[0275] It should be noted that the above Figures 6 to 9 The embodiment is only described by taking the process of deactivating the eSIM card profile as an example. The above embodiment can also be used in the process of activating the eSIM card profile. The corresponding process is the activation process. Figures 6 to 9 The relevant description of is not repeated in this application.

[0276] S914: The LPA activates the second profile corresponding to the second eSIM based on the second eSIM profile activation request.

[0277] The activation process of the second profile corresponding to the second eSIM can execute the EnableProfile function on the second profile. The basic logic of the execution can refer to the description of DisableProfile, which is not repeated here.

[0278] S915: The LPA sends a first activation request to the Modem through the RIL.

[0279] The first activation request may include the second profile information, an activation flag, and a refresh flag. For the profile information, activation flag, and refresh flag, refer to the relevant descriptions in S403 and are not repeated here. The first activation request is used to request activation of the second profile of the second eSIM card.

[0280] S916: The modem sends a first activation request to the eSIM chip.

[0281] S917: The eSIM chip sends an activation response message to the modem.

[0282] S918: The modem sends an activation response message to the RIL.

[0283] S919: The eSIM chip sends a second configuration file reset request to the modem.

[0284] S920: The modem resets the second configuration file of the second eSIM card.

[0285] S921: The modem sends the second eSIM card status information to the LPA via the RIL.

[0286] S922: The LPA determines, based on the second eSIM card status information, that the second profile is successfully activated.

[0287] S923: The LPA sends an activation success notification to the LUI.

[0288] S924: The LUI displays status information of the second eSIM card.

[0289] Among them, the status information of the second eSIM card can be displayed in the eSIM card setting interface of the electronic device as being in the enabled state. Figure 3G The second eSIM card (eSIM C) is set to eSIM card status.

[0290] Among them, the contents of S914~S924 can refer to the relevant descriptions of S402~S412 and are not repeated here.

[0291] In the fourth embodiment above, since the modem is executing an active command during the deactivation process of the first eSIM card, the electronic device resets the first configuration file of the first eSIM card when judging whether to execute the active command and during the deactivation process. In the process of activating the second eSIM card, since no active command is executed, the electronic device can Figure 4 The normal logic in the implementation of the activation process.

[0292] It should be noted that after the first eSIM card is deactivated in S902~S913, there is no activated eSIM card before S914 is executed. Therefore, the eSIM chip cannot send active commands to the Modem. Figure 4 Logical processing, and there will be no Figures 6 to 8 The processing process in .

[0293] exist Figure 9 In the embodiment, the electronic device needs to switch the status of the two eSIM cards. During the process of deactivating the first configuration file of the first eSIM card, it can be determined whether an active command is being executed. During the process of executing the active command, the modem executes the process of resetting the first configuration file of the first eSIM card. After that, during the process of activating the second configuration file of the second eSIM card, the modem directly executes the process of resetting the first configuration file of the first eSIM card. Figure 4 Normal process processing. While ensuring that the status update of the eSIM card configuration file can be executed during the execution of active commands, the failure of the configuration file status update is reduced and the user operation experience is improved.

[0294] As used in the above embodiments, the term “when” may be interpreted to mean “if” or “after” or “in response to determining that” or “in response to detecting that”, depending on the context. Similarly, the phrases “upon determining that” or “if (stated condition or event) is detected” may be interpreted to mean “if determining that” or “in response to determining that” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.

[0295] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, hard disk, tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive).

[0296] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A method for updating the status of an eSIM card, characterized in that: The method is applied to an electronic device, wherein the electronic device includes an eSIM chip and a modem, and the method includes: The electronic device displays a first user interface, where the first eSIM card displayed in the first user interface is in a first state; In response to the first operation, while the electronic device is waiting for a response command to the active command, if the eSIM chip receives a deactivation request, the electronic device sends a configuration file reset request to the modem through the eSIM chip; the configuration file reset request is used to request resetting the first configuration file of the first eSIM card; during the execution of the active command, the electronic device resets the first configuration file of the first eSIM card; the first eSIM card displayed in the first user interface is in the second state; or, In response to the first operation, during the process of the modem executing the proactive command, if a deactivation message is received and no configuration file reset request is received, the first configuration file of the first eSIM card is reset through the modem; and the first eSIM card displayed in the first user interface is in the second state.

2. The method according to claim 1, characterized in that The electronic device resetting the first configuration file of the first eSIM card includes: Reset the first configuration file of the first eSIM card through the modem.

3. The method according to claim 1, characterized in that The electronic device further includes a local profile assistant (LPA), and the deactivation information is a deactivation response message sent by the eSIM chip to the modem, or a deactivation request sent by the LPA to the modem.

4. The method according to claim 3, characterized in that When the first information received by the modem includes a deactivation flag, the first information is the deactivation information.

5. The method according to claim 1, characterized in that When the modem is executing an active command, the first flag bit is a preset flag; the preset flag is used to mark that the modem is executing an active command.

6. The method according to claim 1, characterized in that The electronic device also includes a second eSIM card. The second eSIM card displayed in the first user interface is in a second state. In response to the first operation, the second eSIM card displayed in the first user interface is updated to a first state.

7. The method according to claim 6, characterized in that The second eSIM card displayed in the first user interface is in a second state, and the method further includes: In response to the first operation, the second configuration file of the second eSIM card is reset through the modem; and the second eSIM card displayed in the first user interface is in a first state.

8. The method according to any one of claims 1 to 7, characterized in that After the first eSIM card displayed in the first user interface is in the second state, the method includes: In response to the second operation, during the execution of the proactive command, the electronic device resets the first configuration file of the first eSIM card; and the first eSIM card displayed in the first user interface is in a first state.

9. The method according to any one of claims 1 to 7, characterized in that The active commands are DISPLAY TEXT command, GET INKEY command, GET INPUT command, MORE TIME command, PLAY TONE command, POLL INTERVAL command, REFRESH command, SET UP MENU command, SELECT ITEM command, SEND SHORT MESSAGE command, SET UPCALL command, POLLING OFF command, PROVIDE LOCAL INFORMATION command, SET UP EVENT LIST command, APDU PERFORM CARD APDU command, POWER OFF CARD command, POWER ON CARD command, GET READERSTATUS command, TIMER MANAGEMENT command, SET UP IDLE MODE TEXT command, RUN AT COMMAND command, DTMFSEND DTMF command, LANGUAGE NOTIFICATION command, LAUNCH BROWSER command, OPENCHANNEL command, CLOSE CHANNEL command, RECEIVE DATA command, SEND DATA command, GET CHANNELSTATUS command, SERVICE Any of the SEARCH command, GET SERVICE INFORMATION command, DECLARE SERVICE command, SET FRAMES command, GET FRAME STATUS command, RETRIEVE MULTIMEDIA MESSAGE command, SUBMIT MULTIMEDIA MESSAGE command, DISPLAY MULTIMEDIA MESSAGE command, ACTIVATE command, CONTACTLESS STATE CHANGED command, COMMAND CONTAINER command, and ENCAPSULATED SESSIONCONTROL command.

10. The method according to any one of claims 1 to 7, characterized in that The electronic device further includes a local profile assistant (LPA) and a local user interface (LUI), and the method further includes: In response to the first operation, sending a first profile deactivation request for a first eSIM card to the LPA through the LUI; Deactivating the first configuration file by the LPA; Sending an activation request to the Modem through the LPA; Sending the deactivation request to the eSIM chip through the Modem; A deactivation response message is sent to the Modem through the eSIM chip.

11. The method according to any one of claims 1 to 7, characterized in that: The electronic device further includes an LPA and a LUI. After resetting the first configuration file of the first eSIM card through the modem, the method further includes: Sending eSIM card status information to the LPA via the Modem; Determining, by the LPA based on the eSIM card status information, that the first configuration file is successfully deactivated; Sending a deactivation success notification to the LUI through the LPA; The first user interface is displayed through the LUI, and the identifier of the first eSIM card displayed in the first user interface is in the second state.

12. The method according to any one of claims 1 to 7, characterized in that: The resetting the first configuration file of the first eSIM card through the modem includes: The electronic device powers on the eSIM chip again through the modem and reads the status of the first configuration file of the first eSIM card. The status of the first configuration file is deactivated.

13. The method according to any one of claims 1 to 7, characterized in that: When the first state is an enabled state, the first configuration file is in an activated state; when the second state is a disabled state, the first configuration file is in a deactivated state.

14. An electronic device, characterized in that: include: One or more processors and one or more memories; the one or more processors are coupled to the one or more memories, the one or more memories are used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, the electronic device performs the method according to any one of claims 1 to 13.

15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Operator profile switching method, mobile terminal and readable storage medium

    CN109219021A