Parameter maintenance method and electronic equipment

By receiving the status broadcast of the card module in an electronic device and querying the actual status information, maintaining the Opkey and card-accompanying parameters of the eSIM card, the problem that users cannot use the operator's business when using the eSIM card is solved, and the user experience is improved.

CN118632230BActive Publication Date: 2025-04-18HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410789388.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2025-04-18
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

When users use eSIM cards, they may not be able to use the operator's business, such as being unable to send MMS messages through eSIM, resulting in extremely poor user experience.

Method used

By implementing the parameter maintenance method in the electronic device, the status broadcast of the card module is received, and the actual status information is queried when the status is not ready, to maintain the operator identification of the eSIM card Opkey and the card-accompanying parameters to avoid error deletion.

Benefits of technology

Reduce the error deletion of Opkey and card-accompaniment parameters due to wrong status broadcasts, and improve the reliability and user experience of eSIM card services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632230B_ABST
    Figure CN118632230B_ABST
Patent Text Reader

Abstract

The present application provides a parameter maintenance method and an electronic device, wherein the electronic device includes a card configuration management module and a card module, and these two modules can be software modules in the electronic device. Specifically, the method includes: the card configuration management module receives a status broadcast from the card module, and if the status broadcast indicates that the status of the eSIM card in the electronic device is not ready, the card management module is configured to obtain actual status information from the card module. Further, the card management module is configured to maintain the operator identifier Opkey and / or card parameters corresponding to the eSIM card according to the actual status information, such as deleting the Opkey and / or card parameters, or continuing to maintain the Opkey and / or card parameters. In this way, the situation in which the services corresponding to the eSIM card are affected due to the erroneous deletion of the Opkey and / or card parameters due to the erroneous status broadcast can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic equipment, and in particular, relates to a parameter maintenance method and electronic equipment. Background Art

[0002] With the development of electronic technology, mobile phones and other electronic devices are becoming more and more intelligent. Most of these electronic devices can connect to the Internet and communicate based on the subscriber identity module (SIM). Among them, SIM cards can be divided into physical SIM cards and virtual SIM cards. The virtual SIM card can be an embedded SIM (eSIM) card built into the mobile phone. eSIM is a traditional SIM card embedded directly into the chip of the electronic device, rather than installed in the device as an independent removable component. When using the eSIM card, users do not need to insert the physical SIM card, eliminating the operation of plugging and unplugging the SIM card, which is more convenient.

[0003] Currently, eSIM technology has been widely used in wearable devices and has gradually expanded to products such as tablets and personal computers (PCs). In addition, the application of eSIM on mobile phones is also a development trend. However, when users use eSIM cards, they sometimes cannot use operator services, such as sending MMS through eSIM, which greatly affects the user experience. Summary of the invention

[0004] The embodiments of the present application provide a parameter maintenance method and an electronic device, which can reduce the situation where the operator identifier (operator key, Opkey) and / or card parameters are mistakenly deleted due to erroneous status broadcast, resulting in the impact on the services corresponding to the eSIM card.

[0005] In a first aspect, a parameter maintenance method is provided, which is applied to an electronic device, wherein the electronic device includes a card configuration loading module and a card module, and the method includes: receiving a status broadcast from the card module through a card configuration management module; when the status broadcast indicates that the status of an eSIM card in the electronic device is not ready, obtaining actual status information from the card module through the card configuration management module, the actual status information being information maintained by the card module for indicating the actual status of the eSIM card; maintaining an operator identifier Opkey and / or card-attached parameters corresponding to the eSIM card according to the actual status information, wherein the Opkey is associated with the configuration information of the eSIM card, the configuration information includes the card-attached parameters, and the card-attached parameters are customized parameters of the operator corresponding to the eSIM card.

[0006] Based on the above scheme, after the electronic device receives the status information from the card module through the card configuration management module, if it is found that the status information indicates that the status of the eSIM card is not ready, it can send a status query request message to the card module to request to query the actual status information corresponding to the eSIM card, so as to maintain the Opkey and card parameters according to the actual status information, thereby reducing the situation where the Opkey and card parameters are mistakenly deleted due to erroneous status information, resulting in the eSIM card service being affected, and improving the user experience. Specifically, the card module of the electronic device may trigger the notready status broadcast at startup due to a logical error. However, at this time, the actual state of the eSIM card may be a state other than not ready, that is, there is no problem with the actual state of the eSIM card, but the Opkey and card parameters will be mistakenly cleared due to the not ready status broadcast, thereby affecting the eSIM card service. In this case, it is difficult for users to find the cause of the problem, resulting in a very poor user experience.

[0007] In combination with the first aspect, in certain implementations of the first aspect, maintaining the operator identifier Opkey and / or accompanying card parameters corresponding to the eSIM card according to the actual status information includes: when the actual status information indicates that the actual status of the eSIM card is notready, triggering a clearing process of the Opkey and / or accompanying card parameters through the accompanying card configuration management module; or, when the actual status information indicates that the actual status of the eSIM card is other than the not ready state, continuing to maintain the Opkey and accompanying card parameters.

[0008] In the above scheme, when the actual status information indicates that the actual status of the eSIM card is not ready, it means that there is no problem with the status indicated by the card module. At this time, the electronic device triggers the card configuration loading module through the card configuration management module to clear the Opkey and card parameters. When the actual status information indicates that the actual status of the eSIM card is other than the not ready state, it means that the status indicated by the card module is incorrect. At this time, the electronic device does not trigger the clearing process of the Opkey and card parameters through the card configuration management module, that is, it continues to maintain the Opkey and card parameters. In this way, the maintenance status of the Opkey and card parameters can be made consistent with the actual status of the eSIM card, reducing the problems caused by erroneous clearing.

[0009] In combination with the first aspect, in certain implementations of the first aspect, receiving a status broadcast from a card module through a card configuration management module includes: receiving a status broadcast from a card module through a card configuration management module when the electronic device is turned on or within a preset time after the electronic device is turned on.

[0010] In one application scenario, when the electronic device is turned on or within a preset time after being turned on, the electronic device receives a status broadcast from the card module through the card configuration management module. That is, in one implementation, the status broadcast is a status broadcast passively triggered by the card module when it is turned on. Since the card module will send a not ready status broadcast after the electronic device is turned on, if the electronic device has previously activated the eSIM card and the eSIM card has not been deactivated, the status broadcast may be an erroneous broadcast, that is, the status indicated by the status broadcast may not match the actual status of the eSIM card. Therefore, implementing the solution provided by the present application in this scenario can effectively solve the problem of the Opkey and card parameters being mistakenly deleted in this scenario.

[0011] In combination with the first aspect, in some implementations of the first aspect, the load of the electronic device is greater than or equal to a preset value.

[0012] The above scheme further describes the application scenario of the method provided by the embodiment of the present application, that is, in the startup scenario, the load of the electronic device is greater than or equal to the preset value. Because when the electronic device is turned on, if the load is relatively high, the working efficiency of the electronic device will be relatively low. At this time, if the card configuration management module receives the status broadcast sent by the card module, the time interval between its processing clearing task (i.e. triggering the Opkey and card parameter clearing process according to the not ready state broadcast) and receiving the status broadcast may be relatively long. On the one hand, it may cause the Opkey and card parameters to be loaded, but because of the not ready state broadcast triggered by the card module when the machine is turned on, the Opkey and card parameters are then mistakenly cleared; on the other hand, it may cause the state of the eSIM card to change again within the above time interval, so even if the original state broadcast sent by the card module is correct, the state indicated by the state broadcast is no longer accurate (such as the eSIM card is indeed in the not ready state when the machine is turned on, but then the user activates the eSIM card to change the state of the eSIM card to the ready state or other states). In view of this, through the solution provided in the embodiment of the present application, the card configuration management module can query the card module for the actual status information of the eSIM card before triggering the clearing process of the Opkey and card parameters to determine the actual status of the eSIM card, thereby reducing the situation where the eSIM card is actually in a state other than not ready, but the Opkey and card parameters are mistakenly deleted, causing the service to be affected.

[0013] In combination with the first aspect, in certain implementations of the first aspect, the configuration information includes an access point name corresponding to the eSIM; after maintaining the operator identifier Opkey and / or card parameters corresponding to the eSIM card according to the actual status information, the method also includes: obtaining the configuration information of the eSIM card according to the Opkey; and processing the MMS service based on the access point name in the configuration information.

[0014] Opkey corresponds to the configuration information of the eSIM card, and the electronic device can provide some services to the user according to the configuration information of the eSIM card. If the Opkey is deleted by mistake, the related services will be affected, such as the inability to process the above-mentioned MMS service. The solution provided by this application can reduce the situation where the service is affected by the accidental deletion of Opkey.

[0015] On the other hand, the present application can also reduce the situation where some customized services are affected due to the accidental deletion of card parameters.

[0016] In combination with the first aspect, in certain implementations of the first aspect, before maintaining the operator identifier Opkey and / or card parameters corresponding to the eSIM card according to the actual status information, the method also includes: obtaining card information corresponding to the eSIM card; based on the card information, loading the Opkey and / or card parameters through the card configuration management module.

[0017] In combination with the first aspect, in some implementations of the first aspect, obtaining card information corresponding to the eSIM card includes: obtaining the card information from the card module through the card configuration management module, the card information being obtained by the card module from a modem in the electronic device.

[0018] In combination with the first aspect, in certain implementations of the first aspect, the card parameters include one or more of the following: number matching number, signal strength indication parameter, network identification style, long term evolution (LTE) network hidden parameters, and 5th Generation (5G) network mode hidden parameters.

[0019] In a second aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the electronic device implements the steps of any method described in the first aspect above.

[0020] In a third aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the method described in any one of the first aspects are implemented.

[0021] According to a fourth aspect, a computer program product is provided. When the computer program product is executed on an electronic device, the electronic device executes any one of the methods according to the first aspect.

[0022] In a fifth aspect, a chip system is provided, which includes a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement the method described in any one of the first aspects above.

[0023] The chip system may be a single chip or a chip module composed of multiple chips.

[0024] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of the structure of a SIM card provided in an embodiment of the present application is shown;

[0026] Figure 2 The following are schematic diagrams showing the structures of several electronic devices provided in the embodiments of the present application;

[0027] Figure 3 A system architecture diagram of an electronic device provided in an embodiment of the present application is shown;

[0028] Figure 4 An exemplary flow chart of a method 100 provided in an embodiment of the present application is shown;

[0029] Figure 5 A user interface diagram showing the loading process of an eSIM card in an embodiment of the present application is shown;

[0030] Figure 6 A schematic diagram of a signal bit icon in the status bar of a mobile phone is shown;

[0031] Figure 7 A schematic diagram of a status bar signal identifier in a mobile phone is shown;

[0032] Figure 8 and Fig. 9 Several schematic diagrams of power-on scenarios used in embodiments of the present application are shown;

[0033] Fig.10 An exemplary flow chart of a method 200 provided in an embodiment of the present application is shown;

[0034] Fig.11 A user interface diagram for sending a multimedia message provided by an embodiment of the present application is shown;

[0035] Fig.12A hardware architecture diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0036] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0037] Currently, many intelligent electronic devices can connect to the Internet and communicate based on the subscriber identity module (SIM). Users can customize a SIM card from an operator, and then activate the SIM card through an electronic device. After that, they can use the SIM to obtain services provided by the operator, such as SMS service, MMS service, call service, Internet service, etc.

[0038] Generally, SIM cards can be divided into physical SIM cards and eSIM cards.

[0039] In some standard documents, the physical SIM card may also be referred to as a universal subscriber identity module (USIM). The physical SIM card is a universal integrated circuit card (UICC). Figure 2 A schematic diagram of the structure of a physical SIM card is shown. Figure 2 As shown, the physical SIM card includes a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), an electrically erasable programmable read only memory (EEPROM), and a communication interface. Among them, the ROM, RAM, EEPROM and the communication interface are coupled to the CPU. In the physical SIM card, RAM is also called working memory, ROM is also called program memory, and EEPROM is also called data memory. The communication interface may include at least 6 pins (also called pins), and the communication interface may also include more pins. As shown Figure 1 As shown, the SIM card includes 6 pins, namely: power (VCC), reset (RST), clock (CLK), ground (GND), programming voltage (VPP) and data (I / O).

[0040] The physical SIM card can be used to store user-related data, including system original data stored by the physical SIM card manufacturer, such as the International Mobile Subscriber Identity (IMSI); network parameters and user data injected by the mobile operator when issuing the card to the user, such as authentication information, encryption information, algorithms, etc.; data stored by the user during use, such as short messages, address books, location information at the last location registration, etc. In some embodiments, the physical SIM card can also be called a plug-in SIM card, a traditional SIM card, a physical SIM module, etc., and this application does not make specific restrictions.

[0041] The eSIM card is an embedded SIM card, which embeds the traditional SIM card directly into the chip of the terminal device instead of installing it in the device as an independent removable component. It can replace the physical SIM card, but it is much smaller in size. The eSIM card has the function of networking and remote card writing. It writes and modifies the user's network access number and other data through the network management platform, so that the number can be changed without changing the phone. Therefore, the eSIM card allows users to choose operator packages more flexibly, or change operators at any time without unlocking the device or purchasing a new device. Specifically, the eSIM card can be remotely configured through over-the-air technology (OTA), and the operator configuration file can be downloaded, installed, activated, deactivated and deleted through the network to the terminal. Among them, the OTA technology mentioned here refers to the technology of remotely managing SIM card data (including eSIM card data) and application processes through the air interface of mobile communications.

[0042] In some embodiments, the eSIM card may also be referred to as an embedded SIM card, a virtual SIM card, an eSIM module, etc., and this application does not make any specific limitations.

[0043] This application does not limit the packaging form used when the eSIM card is embedded. As an example, the eSIM card in this application can use the surface mount device (SMD) patch packaging process, that is, the eSIM chip is directly welded on the module of the electronic device; as another example, the eSIM card in this application can also use the system in package (SIP) process, that is, the eSIM chip and the module chip of the electronic device are packaged in one body, and the appearance looks like a chip.

[0044] It can be understood that the eSIM card in the present application also includes some or all of the pins shown in the above-mentioned physical SIM card.

[0045] In some embodiments, the eSIM card in the present application can be extended to other programmable SIM cards, such as softSIM, vSIM, etc. In the embodiments below in the present application, the eSIM card can also be referred to as eSIM or eSIM chip or embedded eSIM, etc.

[0046] In some embodiments, the eSIM card in the present application may be a mobile network operator (MNO) SIM card, a mobile virtual network operator (MVNO) SIM card, or any other type of SIM card, which is not limited in the present application.

[0047] Among them, the mobile operator SIM card refers to the SIM card provided by the mobile operator. Among them, mobile operators such as China Mobile, China Unicom, and China Telecom are operators that can provide physical networks for users to obtain network services through SIM cards. The mobile operator SIM card is used to access the network provided by the mobile operator. The mobile virtual operator SIM card refers to the SIM card provided by the mobile virtual operator. Among them, the mobile virtual operator does not provide a physical network and can only rent the physical network of a certain mobile operator to provide network services to users. Therefore, the MCC and MNC of the mobile virtual operator SIM card are the same as the MCC and MNC of a certain mobile operator SIM card. The only way to distinguish whether the SIM card is a mobile virtual operator SIM card or a mobile operator SIM card is through other file information in the SIM card.

[0048] The physical SIM card is used to achieve connection to a mobile network, such as access to a Global System for Mobile Communications (GSM) network or a Universal Mobile Telecommunications System (UMTS) network.

[0049] In addition, the SIM card (including physical SIM card and eSIM card) described in the embodiment of the present application can be a SIM module supporting any one of the global system for mobile communications (GSM), universal mobile telecommunications system (UMTS), time division-synchronous code division multiple access (TD-SCDMA), long term evolution (LTE), code division multiple access (CDMA) and other standards. This embodiment does not specifically limit the standards supported by the SIM card in the electronic device.

[0050] The electronic device described in the embodiments of the present application may also be referred to as a terminal, terminal device, user equipment (UE), etc. It can be any device that supports eSIM, such as a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an on-board unit (OBU), a wearable device (for example, a watch, a bracelet, a smart helmet, etc.), a smart home device (rice cooker, audio, home butler device, etc.), an augmented reality (AR) / virtual reality (VR) device, etc.

[0051] The electronic devices in the embodiments of the present application all support eSIM cards, and optionally can also support one or more physical SIM cards at the same time. When the electronic device supports plug-in SIM cards, it is usually necessary to be provided with a card slot. Among them, the card slot can be a card slot that can insert multiple cards, and the card slot can include a card holder and a card tray, wherein the card tray is used to fix the position of at least one card, and the card holder includes at least one card connector, and the card connector can be a SIM card connector or a memory card connector. In some examples, the card tray can be a dual-card tray, including a main card holder and a secondary card tray, wherein the main card tray is used to fix the main card, and the secondary card tray is used to fix the secondary card. Based on this, the card holder can include a main card connector and a secondary card connector, and the main card connector can be a SIM card connector for connecting a SIM card, and the secondary card connector can be a two-in-one connector for connecting a SIM card or a memory card. The card slot can also be divided into a main card slot and a secondary card slot, the main card slot is used to accommodate the main card tray, and the secondary card slot is used to accommodate the secondary card tray.

[0052] In addition, the electronic device may include an application processor, a power management module, a baseband processor, and at least one radio frequency resource. The electronic device described in the embodiment of the present application supports at least one eSIM card. If the electronic device supports multiple SIM cards at the same time (such as multiple eSIM cards, or one eSIM card and multiple physical SIM cards, or multiple eSIM cards and multiple physical SIM cards), multiple SIM cards can share one radio frequency resource, or use different radio frequency resources respectively, which is not limited in the present application.

[0053] Combine the following Figure 2 Several structures of electronic devices are exemplified.

[0054] Figure 2 (a) in the figure gives an example: the electronic device does not have a physical card slot and only supports one eSIM card, which is connected to a baseband processor. When the electronic device activates the eSIM card, the eSIM card can use radio frequency resources to provide services to the user.

[0055] Figure 2 (b) in FIG. 1 gives another example: the electronic device includes a card slot for a physical SIM card. The slot includes a card connector. When the physical SIM card is inserted into the card slot, the physical SIM card is connected to the baseband processor through the card connector. The physical SIM card and the eSIM card on the electronic device share a radio frequency resource. That is, when the physical SIM card is inserted into the electronic device, the electronic device can only select one of the eSIM card and the physical SIM card. That is, the electronic device is a single-card single-channel device. In order to achieve connection to the mobile network, the single-card single-channel device will select one of the physical SIM card and the eSIM card for activation.

[0056] Figure 2 (c) in FIG. 1 gives another example: the electronic device includes a card slot that can be inserted with two physical SIM cards, and the card slot includes two card connectors, namely, a card connector 1 and a card connector 2, wherein both the card connector 1 and the card connector 2 can be inserted with a physical SIM card, such as Figure 2 As shown in (c), SIM card 1 and SIM card 2 can be inserted at the same time. However, only one physical SIM card on the card connector 1 and the card connector 2 can be used. Take the physical SIM card 1 on the card connector 1 as an example: when the physical SIM card 1 is inserted into the card connector 1 of the card slot, the physical SIM card 1 can be connected to the baseband processor through the card connector 1. The physical SIM card 1 shares a radio frequency resource with the eSIM card on the electronic device. Therefore, when the physical SIM card 1 is inserted into the card connector 1 connected to the baseband processor, the electronic device can only select one of the eSIM card and the physical SIM card 1. In other words, the electronic device is a dual-card single-pass device. In order to achieve connection to the mobile network, the dual-card single-pass device will select one of the two physical SIM cards and the eSIM card for activation.

[0057] Figure 2 (d) in FIG. 1 gives another example: the electronic device includes a card slot that can be inserted with two physical SIM cards, and the card slot includes two card connectors, namely, a card connector 1 and a card connector 2, wherein both the card connector 1 and the card connector 2 can be inserted with a physical SIM card, such as Figure 2 As shown in (d) in the figure, SIM card 1 and SIM card 2 can be inserted at the same time. Unlike dual-card single-channel devices, card connector 1 and card connector 2 are both connected to the baseband processor, and dual-card dual-channel devices include 2 radio frequency resources. In some examples, the physical SIM card 1 on the card connector 1 can exclusively use one radio frequency resource, and the physical SIM card 2 on the card connector 2 shares another radio frequency resource with the eSIM card on the electronic device. When the physical SIM card 2 is inserted into the card connector 2 connected to the baseband processor, for the card connector 2, the electronic device can only select one of the eSIM card and the physical SIM2 on the card connector 2. In other examples, the eSIM card exclusively uses one radio frequency resource, and the two physical SIM cards on the card connector 1 and the card connector 2 share another radio frequency resource. When the physical SIM cards are inserted into both the card connector 1 and the card connector 2, the electronic device can only select one of the SIM card 1 on the card connector 1 and the SIM card 2 on the card connector 2. Therefore, the electronic device is a dual-card dual-channel device, and in order to achieve connection to the mobile network, the dual-card dual-channel device will select two of the two physical SIM cards and the eSIM card for activation.

[0058] It should be noted that Figure 2The example in the description only takes the electronic device supporting one eSIM card as an example, but in actual applications, the electronic device can also support multiple eSIM cards, which is not limited in this application.

[0059] It should also be noted that Figure 2 The number of radio frequency resources shown in is only an example. In actual applications, the number of radio frequency resources can be set as needed, and the SIM cards that share a certain radio frequency resource can be set. This application does not limit this.

[0060] It should also be noted that in Figure 2 In the description, it is only taken that the multi-card multi-pass device is a dual-card dual-pass device and the multi-card single-pass device is a dual-card single-pass device as an example. In some examples, the multi-card multi-pass device may be an M-card N-pass device, where M and N are integers greater than 2, and the M-card N-pass device includes a card slot into which M physical SIM cards can be inserted, and the card slot includes M card connectors, which are respectively card connector 1, card connector 2, ..., card connector M, and the M-card N-pass device includes N radio frequency resources and T eSIM cards, which are respectively eSIM card 1, eSIM card 2, ..., eSIM card T, and the T eSIM cards can each exclusively use radio frequency resources, or at least one of the eSIM cards shares radio frequency resources with multiple physical SIM cards on the card linker, or multiple eSIM cards share radio frequency resources, and T is a positive integer. For example, the physical SIM card 1 and eSIM card 1 inserted at the corresponding position of card connector 1 share a radio frequency resource, the physical SIM card 2 and eSIM card 2 inserted at the corresponding position of card connector 2 share a radio frequency resource, and so on. The physical SIM card T and eSIM card T inserted at the corresponding position of card connector T share a radio frequency resource. Here, M is not less than T as an example. In other implementations of the present application, T may also be greater than M. At this time, some of the T eSIM cards are independently coupled to the baseband chip and independently occupy radio frequency resources.

[0061] As can be seen from the above introduction, the electronic device in the embodiment of the present application supports the eSIM card. Therefore, when the electronic device activates the eSIM card, it can obtain the services provided by the operator through the eSIM card. However, when the user uses the eSIM card, sometimes the operator's services cannot be used, such as sending MMS through the eSIM, which greatly affects the user experience.

[0062] In view of this, the embodiment of the present application provides a parameter maintenance method, which can maintain the operator identifier Opkey and / or card parameters corresponding to the eSIM card according to the actual state of the eSIM card, that is, decide whether to delete the locally maintained Opkey and / or card parameters according to the actual state of the eSIM card, or continue to maintain the Opkey and / or card parameters. In other words, this solution maintains the Opkey and / or card parameters according to the actual state of the eSIM card, rather than directly maintaining the Opkey and / or card parameters according to the state broadcast corresponding to the eSIM card, which can reduce the erroneous state broadcast caused by system logic errors and other reasons, resulting in the Opkey and / or card parameters being deleted by mistake. If the Opkey and / or card parameters are deleted by mistake, the configuration information or card parameters related to the Opkey cannot be loaded, and the corresponding business cannot be implemented. If the eSIM is still in a normal activation state at this time, the user cannot know the cause of the problem, resulting in a very poor user experience. Therefore, through the solution of the present application, the occurrence of this situation can be reduced or even completely avoided, and the user experience can be improved.

[0063] In order to further understand the above solution provided by the present application, Figure 3 An electronic device for implementing the above solution is introduced in an embodiment of the present application. The electronic device executes the above solution through a combination of software and hardware. Figure 3 The architecture involved when an electronic device executes the parameter maintenance method and the data flow involved in the interaction between the architecture software and hardware are introduced.

[0064] like Figure 3 As shown, the hardware architecture layer of the electronic device includes a modem.

[0065] Among them, the modem is a module used for electronic device communication, and can send instructions through the upper processing system to achieve data transmission with the wireless network. The network standard (such as GSM, CDMA, UMTS, TD-SCDMA, etc.) supported by the electronic device can be determined by the modem. The modem in the embodiment of the present application can connect the physical SIM card or eSIM card to the network, and can also provide electrical signals (power on) to the physical SIM card or eSIM card by controlling the power supply and the connection path of the card connector. In some embodiments, when the modem controls the eSIM card to power on, the eSIM card can be connected to the modem and use the radio frequency resources in the modem. The electronic device can communicate through the card in the powered-on state.

[0066] It should be understood that SIM card power-on, also known as SIM card power-on, means that when a physical SIM card is inserted into a SIM card slot, or when an eSIM card is activated, or when an electronic device is powered on, the SIM card (including a physical SIM card or an eSIM card) is powered on. After the SIM card is powered on, the SIM card performs a SIM card initialization procedure. After the SIM card initialization procedure is completed (reaching the ready state), the SIM card file is loaded. After the file loading is completed, the SIM card state will change to the loaded state.

[0067] like Figure 3 As shown, the software architecture layer of the electronic device is a layered architecture, and the layered architecture is exemplified by taking the Android system as an example. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system is divided into five layers, from top to bottom, namely, the application (application, App) layer, the interface layer, the application framework (framework) layer, the communication (telephony) layer, and the service (Service) layer.

[0068] It should be noted that Figure 3 Only the main structures involved when the electronic device executes the parameter maintenance method provided in the embodiment of the present application are shown. In actual applications, the electronic device may also include other software, hardware, and a combination of software and hardware, which is not limited in the embodiment of the present application.

[0069] The application layer may include a series of application packages. Figure 3 Three applications are shown as an example, namely application #1, application #2, and application #3. The specific types of these three applications are not limited in this application.

[0070] The interface layer (specifically, it may refer to the system's native Addon interface) includes a configuration file policy module (CfgFilePolicy), which provides an interface for communicating with applications in the application layer. Applications can obtain various types of data through this interface, such as simple type data, complex type data, Pegasus directories, etc.

[0071] The application framework layer includes a CarrierConfigPolicy module, which can obtain the card information of the eSIM card from the CarrierConfigCardManager module of the communication layer, and trigger the service layer to load the Opkey and card parameters corresponding to the eSIM card based on the card information.

[0072] Among them, the card information described in the embodiment of the present application refers to some identification information of the SIM card or the service provider corresponding to the SIM, including but not limited to part or all of the information such as the international mobile subscriber identification number (IMSI), the integrated circuit card identification code (ICCID), the service provider name (SPN) or the global identification (GID).

[0073] Among them, IMSI can be stored in the SIM card and can be used to uniquely identify the user. Specifically, IMSI consists of a mobile country code (MCC), a mobile network code (MNC), and a mobile subscriber identification number (MSIN). MCC consists of three digits and uniquely identifies the country to which the user belongs. For example, the MCC corresponding to China is 460; MNC is the network identifier, consisting of 1 to 2 digits, which can be used to identify the user's home network and the network operator. For example, the MNC of China Mobile is 00, the MNC of China Unicom is 01, and the MNC of China Telecom is 03; MSIN is used to identify the target user during the communication process, usually consisting of 10 to 11 digits.

[0074] ICCID is equivalent to the card number of the SIM card, which is used to identify and distinguish different SIM cards. It usually consists of 20 digits containing a variety of information.

[0075] SPN is used to identify a mobile virtual operator.

[0076] GID is an identification parameter in the SIM card file system. It is mainly used for SIM cards issued by the same operator. When different services need to be used, this ID is used to identify and distinguish them. GID usually includes GID Level 1 (GID Level 1, GID1) and GID Level 2 (GID Level 2, GID2), which are used to specify group identification levels 1 and 2 respectively.

[0077] On the other hand, the card configuration policy module can also obtain some configuration parameters loaded by the service layer based on some parameters from the application in the application layer (such as simple type parameters sent by the application through the configuration file policy module). The specific process is not limited in this application.

[0078] The communication layer includes a card module and a card configuration management module (CarrierConfigCardManager). As an example, the card configuration management module specifically belongs to the card framework layer in the communication layer. The card configuration management module can also be called a card module, a card framework module, or a configuration card management module, etc.

[0079] The card module is used to interact with the modem to maintain the card information of the physical SIM card and / or the eSIM card. For example, when the electronic device is turned on or the eSIM card is activated, the card module sends a card information query request to the modem to query the card information of the eSIM card. Based on the card information query request, the modem returns the card information of the eSIM card to the card module.

[0080] On the other hand, the card module is also used to broadcast information about card status changes to other modules. For example, when the eSIM switches from an unactivated state to an activated state and completes initialization, the card module will send a status broadcast to indicate that the eSIM card has switched to a ready state; for another example, when the configuration file corresponding to the eSIM card is loaded, the card module will send a status broadcast to indicate that the eSIM card has switched to a loaded state; for another example, when the eSIM card completes the deactivation process, the card module will send a status broadcast to indicate that the eSIM card has switched to a not ready state.

[0081] On the other hand, the card module also provides some public interfaces to the outside, and these public interfaces can be used to query the card status and / or the card subscription identifier and other information.

[0082] The card configuration management module can obtain the card information corresponding to the eSIM card from the card module. As an example, after the card module loads the card information from the modem, it can actively inform the card configuration management module. After receiving the card information from the card module, the card configuration management module uses the card information to initiate the loading process of Opkey and card parameters. For example, after receiving the card information, the card configuration management module sends the card information to the card configuration policy module to call the service layer's card configuration service module (CarrierConfigService) and card configuration loading module (CarrierConfigLoader) through the card configuration policy module to load Opkey and card parameters.

[0083] On the other hand, the card configuration management module can also monitor the status broadcast from the card module. When the card configuration management module finds that the status broadcast monitored from the card module indicates that the eSIM card is in the not ready state, the card configuration management module queries the card module for the actual state of the eSIM card. For example, the card configuration management module sends a status query request to the card module, and the status query request includes one or more items of the card information of the eSIM card. The status query request is used to request to obtain the actual state information corresponding to the eSIM card, and the actual state information is used to indicate the current actual state of the eSIM card, such as the ready state, or the not ready state, loaded, etc. The card module returns the actual state information of the eSIM card to the card configuration management module according to the status query request.

[0084] It should be noted that although the status broadcast also comes from the card module and is also used to indicate the status of the eSIM card, the card module will passively trigger the not ready status broadcast (i.e., the status broadcast used to indicate that the eSIM card is in the not ready state) in certain scenarios, resulting in the status of the eSIM card indicated by the status broadcast not being consistent with the actual status of the eSIM card. For example, the eSIM card has been activated in the electronic device, but when the electronic device is restarted, the card module may trigger the not ready status broadcast due to some logical errors, which will cause other modules (such as the card configuration management module) to receive incorrect status indications. For example, after the electronic device is restarted, the eSIM card is powered on and enters the ready state, but at the same time the card module triggers the not ready status broadcast. In this case, the card configuration management module may trigger the Opkey and card parameter clearing process due to the not ready status broadcast, resulting in the eSIM card service being affected. At the same time, since there is no problem with the actual status of the eSIM card, it is difficult for the user to find the cause of the problem, resulting in a very poor user experience.

[0085] Therefore, in the solution provided by the embodiment of the present application, when the card configuration management module receives the not ready state broadcast, it will re-query the card module for the actual state information indicating the actual state of the eSIM card, and maintain the Opkey and card parameters of the eSIM card according to the actual state information. For example, when the actual state information indicates that the actual state of the eSIM card is the notready state, it means that there is no problem with the state indicated by the card module. At this time, the card configuration management module triggers the card configuration loading module to clear the Opkey and card parameters through the card configuration policy module and the card configuration service module. When the actual state information indicates that the actual state of the eSIM card is other than the not ready state, it means that the state indicated by the card module is incorrect. At this time, the card configuration management module does not trigger the clearing process of the Opkey and card parameters, that is, it continues to maintain the Opkey and card parameters.

[0086] The service layer includes a CarrierConfigService module and a CarrierConfigLoader module. The CarrierConfigService module is used to provide services for other modules. The CarrierConfigLoader module is used to provide data parsing and storage services to other modules. In an embodiment of the present application, the CarrierConfigService module can receive card information from the CarrierConfig policy module, and load Opkey and CarrierConfigLoader parameters from the CarrierConfigLoader module based on the card information.

[0087] It is understandable that the card configuration loading module pre-stores the Opkey and card parameters of the eSIM card, and the Opkey and card parameters correspond to one or more items of the card information. For example, when the eSIM card is activated for the first time in an electronic device, the Opkey and card parameters corresponding to the eSIM card can be downloaded via OTA and stored in the card configuration loading module.

[0088] After the Opkey and card parameters are loaded, the card configuration service module can also broadcast a message indicating that the Opkey and card parameters have been loaded. Other modules or applications can monitor the message sent by the card configuration service module and obtain the Opkey and card parameters from the card configuration loading module when necessary. The specific process is not limited here.

[0089] The above is an exemplary description of the system architecture of the electronic device provided by the embodiment of the present application. In order to better understand the method performed by each module in the above system architecture, the following is combined with Figure 4 Method 100 in the present application provides a detailed introduction to the underlying implementation process of the parameter maintenance method provided in the embodiment.

[0090] Understandably, Figure 4Method 100 and Figure 3 Therefore, the contents of the two embodiments can refer to each other. For the parts not detailed in method 100, reference can be made to the description of the above system architecture part, which will not be repeated here.

[0091] from Figure 4 As can be seen, method 100 includes three processes: process #1, process #2 and process #3. Among them, process #1 is the process of card module triggering status broadcast, process #2 is the process of loading Opkey and card parameters, and process #3 is the maintenance process of Opkey and card parameters. It can be understood that process #2 may be executed after process #1 is completed, or it may be executed at the same time as process #1, or it may be executed before process #1, and this application does not limit it.

[0092] S101, the card module sends a status broadcast, and correspondingly, the card configuration management module receives the status broadcast.

[0093] Exemplarily, when the state of the eSIM card changes, the card module sends a state broadcast to indicate that the state of the eSIM card has changed. It can be understood that the state broadcast is a broadcast message without a specific recipient. The card configuration management module monitors the state broadcast.

[0094] The state of the eSIM card described in the embodiment of the present application is used to reflect the working state of the eSIM card in the electronic device, including but not limited to some or all of the following states: not ready state, ready state, loaded state, etc. The not ready state refers to the state in which the eSIM card is not ready or unavailable. When the eSIM card is not activated, or the eSIM card is unavailable due to network lock or PIN verification, the eSIM card is in the not ready state; the ready state refers to the state in which the eSIM card is ready or available. When the eSIM card is activated and initialized, the eSIM card is in the ready state. The loaded state refers to the state in which the configuration file of the eSIM card has been loaded.

[0095] It should be noted that for a plug-in SIM card, if the card is not in place, that is, the SIM card is not inserted, the SIM card is in an absent state. For example, after the user pulls the plug-in SIM card out of the card slot of the electronic device, the SIM card enters the absent state. In this case, the card configuration management module triggers the card configuration loading module to clear the Opkey and card parameters corresponding to the plug-in SIM card to save storage space (for the meaning of the Opkey and card parameters, please refer to the description of step S107, which will not be repeated here). For the eSIM card, there is no absent state. If the eSIM card is in the not_ready state, it is considered that the eSIM card has been deactivated, and the Opkey and card parameters should be cleared.

[0096] That is to say, if the status broadcast indicates that the eSIM card is in the not ready state, the card configuration management module needs to trigger the clearing process of Opkey and card parameters. In this case, the card configuration management module needs to put the task (i.e. the task of clearing Opkey and card parameters, recorded as the clearing task) into the processing queue. At the same time, the system may be executing process #2 at the same time.

[0097] It should also be noted that in certain application scenarios provided in the embodiments of the present application, the card module may trigger an erroneous status broadcast due to some logical errors, that is, the status of the eSIM card indicated by the status broadcast may not match its actual status. For example, in one application scenario, when the electronic device is turned on, the card module will directly send a status broadcast, and the status broadcast is used to indicate that the eSIM card is currently in the not ready state. In other words, the card module may directly trigger a not ready status broadcast due to its own erroneous logic, regardless of the actual status of the eSIM card. For example, assuming that the eSIM card has been activated in the electronic device before, after the electronic device is turned on, the eSIM card may be in the ready state after being powered on and the initialization process. At this time, the card module also sends a status broadcast indicating that the eSIM is in the not ready state, which may cause other modules to receive erroneous indications.

[0098] Combination Figure 8 and Fig. 9 Introduce the startup scenarios in which the parameter maintenance method provided in this application is applied.

[0099] exist Figure 8 In one scenario shown, a user switches an electronic device from a power-off state to a power-on state. Figure 8 As shown in (a) of FIG. 1 , the electronic device is currently in a powered-off state. In response to the user pressing the power button for a long time (such as pressing the power button for a long time longer than a preset time), the electronic device enters the boot-up loading process, and the user screen displays the following: Figure 8 After the boot loading is completed, the electronic device displays a password input interface on the user interface (if a password is set), as shown in (b). Figure 8 In response to the user inputting the correct password, the electronic device enters the system desktop, as shown in (c) in FIG. Figure 8 As shown in (d) in .

[0100] It should be noted that in Figure 8 After the power-on process shown is completed, if the electronic device has previously activated the eSIM card and the eSIM card has not been deactivated, the electronic device will automatically power on the eSIM card and execute the eSIM card initialization process. After the initialization is completed, the eSIM card is in a ready state.

[0101] After the electronic device is turned on, it enters the Figure 8 After the system desktop shown in (d) is displayed, the card module sends a broadcast indicating that the eSIM card is in the not ready state.

[0102] Fig. 9 (a) and (b) in FIG. 1 show another scenario in which the user restarts the electronic device while it is powered on. Fig. 9 As shown in (a) of FIG. 1 , the electronic device is currently in a powered-on state and displays the system desktop. In response to the user pressing the power button for a long time (such as pressing the power button for a long time longer than a preset time), the electronic device displays the following Fig. 9 The control interface shown in (b) in the figure includes a restart control Q1 and a shutdown control Q2, wherein the restart control Q1 is used to trigger the electronic device to restart, and the shutdown control Q2 is used to trigger the electronic device to shut down. In response to the electronic device clicking the restart control Q1, the electronic device enters the shutdown state, and then automatically starts up and displays the following information: Figure 8 After the boot loading is completed, the electronic device displays a password input interface (if a password is set) on the user interface, such as Figure 8 In response to the user inputting the correct password, the electronic device enters the system desktop, as shown in (c) in FIG. Figure 8 As shown in (d) in .

[0103] Fig. 9 (c) and (d) in FIG. 1 show another scenario in which the user performs a system update on the electronic device while it is powered on and then restarts the device after the update is complete. Fig. 9 As shown in (c) of FIG. 1 , there is an update package for the software system of the electronic device. When the update package is downloaded, the electronic device displays a prompt box Q3 to instruct the user to restart the device to complete the system update. In response to the operation for clicking the control Q4, the electronic device automatically enters the following Fig. 9 The system update screen shown in (d) in the figure is in the off state. After the system update is completed, the electronic device automatically turns on and displays the following Figure 8 After the boot loading is completed, the electronic device displays a password input interface (if a password is set) on the user interface, such as Figure 8 In response to the user inputting the correct password, the electronic device enters the system desktop, as shown in (c) in FIG. Figure 8 As shown in (d) in .

[0104] It should be noted that the above application scenarios are merely examples, and the methods provided in the embodiments of the present application are not limited to the above application scenarios.

[0105] S102, the card module sends a card information query request message to the modem. Correspondingly, the modem receives the query request message from the card module.

[0106] Exemplarily, the query request message is used to request to obtain the card information of the eSIM card. The card information refers to some identification information of the eSIM card or the eSIM service provider, including but not limited to part or all of the information such as IMSI, ICCID, SPN or GID.

[0107] In a possible implementation, the card module registers a card status change monitoring request with the modem in advance. When the status of the eSIM card changes, the modem notifies the card module.

[0108] As an example, when a new eSIM card is activated and reaches the ready state, or when an eSIM card (already activated) is powered on again and reaches the ready state after the electronic device is turned on, the modem notifies the card module. After the card module determines that the eSIM card has reached the ready state, it sends a card information query request message to the modem.

[0109] It can be seen from the above description that in the solution provided in the embodiment of the present application, the card module requests the modem to obtain the card information of the activated eSIM card.

[0110] Combine the following Figure 5 An example of a user interaction interface for adding and activating an eSIM card is described. In this example, a mobile phone is used as an example of an electronic device. Figure 5 (a) in the figure shows a schematic diagram of the SIM card management interface, in which the user can manage the physical SIM card and eSIM card in the mobile phone. Assuming that the mobile phone in this example is a dual-SIM dual-channel device, icon M1 is associated with one SIM card slot in the mobile phone, and icon M2 is associated with the other SIM card slot in the mobile phone. Figure 5 The user interface shown in (a) in FIG. 1 shows that a SIM card (i.e., card 1) has been added to the mobile phone, while the other card slot is vacant (i.e., card 2 is vacant). In response to the user clicking on the control M3, the mobile phone displays a detailed setting interface for card 2, such as Figure 5 If the user wants to add an eSIM card, he can click on the control M4 and the control M5 in sequence. In one implementation, in response to the user clicking on the control M5, the mobile phone queries whether there is an available eSIM configuration file. If the mobile phone queries for an available eSIM configuration file, it can display the following Figure 5 The interface shown in (d) in FIG. 1 is displayed, and a prompt box M6 is displayed in the interface, which is used to prompt the user that an available eSIM profile has been found and ask the user whether to activate the eSIM profile. At this time, the user can click the direct activation button M7. In response to the user's click operation on the activation button M7, the mobile phone can activate the eSIM profile.

[0111] If the phone does not find any available eSIM profile, you can open the phone's camera and Figure 5 As shown in (d) in the figure, a scan window M8 is displayed so that the user can scan the corresponding QR code provided by the operator through the mobile phone to obtain the eSIM configuration file from the operator's server, or the user can also select the QR code saved in the gallery or manually enter the corresponding number so that the mobile phone can obtain the eSIM configuration file.

[0112] After the mobile phone obtains the eSIM profile, it can be activated. After the eSIM profile is successfully activated, the mobile phone can display the following Figure 5 The prompt interface shown in (e) in the figure is used to prompt the user that the new eSIM card has been successfully added and its related functions can be used.

[0113] It should be noted that the above Figure 5 The interface shown is only an example. In actual applications, the user interface involved in adding an eSIM card may also be presented as other interfaces, and does not have to be exactly the same as the interface in the above diagram.

[0114] S103, the modem sends card information to the card module. Correspondingly, the card module receives the card information from the modem.

[0115] Exemplarily, in response to a card information query request message from the card module, the modem returns the card information to the card module.

[0116] In one implementation, when the eSIM card is activated or powered on again, the modem reads the card information of the eSIM card and sends the card information to the card module after receiving a query request from the card module.

[0117] It is understandable that the interaction between the card module and the modem involves the interaction between software and hardware, and the above interaction can be achieved through a specific software and hardware interface, which is not limited here.

[0118] S104, the card module sends card information to the card configuration management module. Correspondingly, the card configuration management module receives the card information from the card module.

[0119] Exemplarily, after obtaining the card information, the card module actively reports the card information to the card configuration management module, so that the card configuration management module triggers the loading process of Opkey and card parameters based on the card information.

[0120] S105, the card configuration management module sends card information to the card configuration policy module. Correspondingly, the card configuration policy module receives the card information from the card configuration management module.

[0121] S106, the card configuration policy module sends the card information to the card configuration service module. Correspondingly, the card configuration service module receives the card information from the card configuration service module.

[0122] Exemplarily, after the card configuration management module obtains the card information from the card module, the card configuration policy module sends the card information to the card configuration service module.

[0123] S107, the card configuration service module triggers the card configuration loading module to load Opkey and card parameters.

[0124] Exemplarily, after obtaining the card information, the card configuration service module triggers the card configuration loading module to load the Opkey and card parameters according to the card information, and the loading process is performed in the card configuration loading module.

[0125] The Opkey in the embodiment of the present application is associated with the configuration information of the eSIM card. In many cases, the mcc and mnc of the eSIM card are the same as those of the physical SIM card, but other card information (such as gid1 or spn) is different, and the apn or emergency number of these eSIM cards for Internet access is also inconsistent with the physical SIM card. In order to distinguish these cards with the same mcc and mnc but different configurations, an Opkey can be assigned to each type of SIM card (eSIM card or physical SIM card), so that each Opkey can pre-make apn and other resources separately, that is, an Opkey is assigned for each configuration information, and the Opkeys of SIM cards with the same configuration information are the same, and the Opkeys of SIM cards with different configuration information are different. It can be understood that as long as any parameter in the configuration information is different, the Opkeys corresponding to them are also different.

[0126] Therefore, in the present application, the configuration information corresponding to the eSIM card can be determined or queried according to the Opkey.

[0127] The card-attached parameters in the embodiment of the present application are customized parameters of the operator corresponding to the eSIM card. The card-attached parameters belong to the configuration information of the eSIM card and are some parameters in the configuration information. In one implementation, the card-attached parameters are some parameters customized by the user to the operator other than the basic configuration information (i.e., the basic information used for networking and communication in the configuration information). As an example, the card-attached parameters include one or more of the following parameters: number of number matches (num_match), signal strength indication parameter (signal_strength), network identification style, LTE network hidden parameter (hn_hide_lte), 5G network mode hidden parameter (hide_network_mode_pref_5G).

[0128] The number matching number is the number of digits required for a successful match of a user number (such as MSIN). For example, if MSIN has 11 digits in total, when num_match=8, it means that when 8 digits in MSIN are matched successfully, it is considered that the target user is matched; when num_match=11, it means that when all 11 digits in MSIN are matched successfully, it is considered that the target user is matched.

[0129] The signal strength indicator parameter is used to indicate the display style and calibration threshold of the signal strength indicator icon in the display interface of the electronic device. For example: Assume signal_strength = 4.false.-120.-118.-114.-110, where "4" means that the signal strength is indicated by 4 signal bits. Figure 6 Take a mobile phone as an example. There are two SIM cards activated in the mobile phone, at least one of which is an eSIM. The mobile phone displays two signal strength indicator icons N1 and N2 in the status bar, corresponding to the two SIM cards in the mobile phone. Figure 6As shown, icons N1 and N2 both display 4 signal bits, and each signal bit is represented by a rectangular grid. When a rectangular grid is filled with black, it means that the current signal strength exceeds the calibration threshold corresponding to the signal bit. When a rectangular grid is filled with white, it means that the current signal strength does not reach the calibration threshold corresponding to the signal bit. "-120.-118.-114.-110" are the calibration thresholds of the four signal bits respectively. For example, when the signal strength is less than -120, the rectangular grids corresponding to the four signal bits are all filled with white; when the signal strength is between -120 and -180, the rectangular grid corresponding to the first signal bit of the four signal bits is filled with black, and the rest are filled with white; when the signal strength is between -118 and -114, the rectangular grids corresponding to the first two signal bits of the four signal bits are filled with black, and the rest are filled with white; when the signal strength is between -114 and -110, the rectangular grids corresponding to the first three signal bits of the four signal bits are filled with black, and the remaining one is filled with white; when the signal strength exceeds -110, the rectangular grids corresponding to the four signal bits are all filled with black.

[0130] The network identification style is used to indicate the style of the identification indicating the network type in the display interface of the electronic device. Figure 6 and Figure 7 For example, assume Figure 6 and Figure 7 The phones in the table have two activated SIM cards, at least one of which is an eSIM. Both SIM cards are based on 4G networks. Figure 6 In the example shown, the network type is indicated by the icon "4G". Figure 7 In the example shown, icon P1 indicates the network type by “LTE”.

[0131] The LTE network hiding parameter is used to indicate whether to hide the LTE network switch in the software interface of the electronic device. For example, if hn_hide_lte = false, the LTE network switch is displayed in the software interface of the electronic device, and the user can choose to turn on or off the LTE network connection based on the LTE network switch. If hn_hide_lte = true, the LTE network switch is hidden in the software interface of the electronic device, and the electronic device connects to the network based on the default mode.

[0132] The 5G network mode hiding parameter is used to indicate whether to hide the 5G network switch in the software interface of the electronic device. For example, if hide_network_mode_pref_5G = false, the 5G network switch is displayed in the software interface of the electronic device, and the user can choose to turn on or off the 5G network connection based on the 5G network switch. If hide_network_mode_pref_5G = true, the 5G network switch is hidden in the software interface of the electronic device, and the electronic device connects to the network based on the default mode.

[0133] It is understandable that after the Opkey and card parameters are loaded, other modules can obtain the card parameters and Opkey through the interface provided by the card framework layer (the card configuration management module is located in the card framework layer). The specific method is not limited in this application.

[0134] It can also be understood that after the Opkey and the card parameters are loaded, each application in the application layer can obtain the card parameters and Opkey through the interface layer (Addon interface), and the specific method is not limited in this application.

[0135] The Opkey and card parameters loading process is completed through the above process #2.

[0136] S108, the card configuration management module sends a status query request message to the card module. Correspondingly, the card module receives the status query request message from the card configuration management module.

[0137] S109, the card module sends actual status information to the card configuration management module. Correspondingly, the card configuration management module receives the actual status information from the card module.

[0138] S110, the card configuration management module maintains Opkey and card parameters according to actual status information.

[0139] As can be seen from the description of the corresponding part of process #1, the card configuration management module may receive an erroneous status broadcast, and the card configuration management module may place the clearing task after process #2, such as executing the clearing task after the card configuration management module executes step S105. If the execution time of process #2 is relatively long, such as when the electronic device is just turned on, the load exceeds the preset value, and the execution speed of the electronic device is relatively slow, it may cause the Opkey and card parameters to be loaded before the clearing task is executed, which will cause the Opkey and card parameters that have just been loaded to be cleared again due to the erroneous status broadcast.

[0140] In view of this, in the solution provided by the embodiment of the present application, the card configuration management module can directly send a status query request message to the card module to request to obtain the actual status information of the eSIM card, and the actual status information is used to indicate the current actual status of the eSIM card. Correspondingly, the card module responds to the status query request message and returns the actual status information to the card configuration management module. After that, the card configuration management module can maintain the Opkey and card parameters based on the actual status information (that is, decide whether to trigger the Opkey and card parameter clearing process), instead of deciding whether to trigger the Opkey and card parameter clearing process based on the not ready state indicated by the status broadcast, which can reduce the impact of erroneous status broadcasts.

[0141] In order to facilitate understanding of the solution provided in the embodiment of the present application, Fig.10 The parameter maintenance method 200 provided in the embodiment of the present application is introduced. The method 200 is executed by an electronic device, and the system architecture of the electronic device adopts the following Figure 3 The architecture shown in the figure can be used as follows: Figure 4 Therefore, the various embodiments can be referenced to each other, and the contents not described in detail in method 200 can be referred to Figure 3 and Figure 4 The corresponding description.

[0142] S210, receiving a status broadcast from a card module by configuring a loading module with the card.

[0143] Exemplarily, the status broadcast is used to indicate the status of an eSIM card in an electronic device.

[0144] In one application scenario, when the electronic device is turned on or within a preset time after being turned on, it receives a status broadcast from the card module through the card configuration loading module. That is, in one implementation, the status broadcast is a status broadcast passively triggered by the card module when it is turned on. From the above analysis, it can be seen that if the electronic device has previously activated the eSIM card and the eSIM card has not been deactivated, the status broadcast may be an erroneous broadcast, that is, the status indicated by the status broadcast may not match the actual status of the eSIM card.

[0145] S220, when the status broadcast indicates that the status of the eSIM card in the electronic device is not ready, obtain actual status information from the card module by configuring a loading module with the card.

[0146] For example, when the status broadcast indicates that the status of the eSIM card in the electronic device is not ready, it may be explained that the status broadcast may be triggered in the application scenario introduced in S210 above. In this case, the electronic device can obtain the actual status information of the eSIM card from the card module through the system native interface via the card configuration management module, and the actual status information is the information maintained by the card module to indicate the actual status of the eSIM card.

[0147] S230: Maintain the operator identifier Opkey and / or card-attached parameters corresponding to the eSIM card according to the actual status information.

[0148] Exemplarily, after obtaining the actual status information, the electronic device maintains Opkey and / or card-attached parameters through the card-attached configuration management module, wherein Opkey is associated with the configuration information of the eSIM card, and the configuration information includes card-attached parameters, which are customized parameters of the operator corresponding to the eSIM card. As an example, the card-attached parameters include one or more of the following: number matching number, signal strength indication parameter, network identification style, long-term evolution LTE network hidden parameter, fifth-generation communication 5G network mode hidden parameter.

[0149] In one implementation, when the actual status information indicates that the actual status of the eSIM card is not ready, the Opkey and / or card parameter clearing process is triggered by the card configuration management module, such as triggering the card configuration loading module to clear the Opkey and / or card parameters through the card configuration management module.

[0150] In one implementation, when the actual status information indicates that the actual status of the eSIM card is other than the not ready state, the Opkey and card parameters are maintained by the card configuration management module, that is, the card configuration loading module is not triggered by the card configuration management module to clear the Opkey and / or card parameters.

[0151] The following is an example of the loading process of Opkey and / or card parameters:

[0152] The card configuration management module obtains the card information corresponding to the eSIM card from the card module, and the card information is obtained by the card module from the modem in the electronic device. Then, based on the card information, the card configuration management module triggers the card configuration loading module to load Opkey and / or card parameters.

[0153] Based on the above scheme provided in the present application, after the card configuration management module receives the status information from the card module, if it is found that the status information indicates that the status of the eSIM card is not ready, it can send a status query request message to the card module to request to query the actual status information corresponding to the eSIM card, so as to maintain the Opkey and card parameters according to the actual status information, thereby reducing the situation where the Opkey and card parameters are mistakenly deleted due to erroneous status information, resulting in the eSIM card service being affected, and improving the user experience. Specifically, the card module of an electronic device may trigger a notready status broadcast when it is turned on due to a logical error. However, at this time, the actual status of the eSIM card may be a state other than not ready, that is, there is no problem with the actual status of the eSIM card, but the Opkey and card parameters will be mistakenly cleared due to the not ready status broadcast, thereby affecting the eSIM card service. In this case, it is difficult for users to find the cause of the problem, resulting in a very poor user experience. Fig.10 For example: After the electronic device is turned on, the eSIM card is initialized, and the icon Z1 in the status bar of the electronic device shows that the network corresponding to the eSIM card is normal. The user opens the MMS application to send a MMS, such as Fig.11 However, the Opkey corresponding to the eSIM card may have been cleared at this time, so the service system cannot load the configuration information of the eSIM card according to the Opkey, and cannot obtain the access point name (APN) in the configuration information, which may cause the MMS to fail to send and display the following: Fig.11 The prompt window Z2 shown in (b) is used to prompt the user that the multimedia message sending fails. However, the user checks that the eSIM card is in a normal state, which may cause confusion to the user and affect the user experience.

[0154] Corresponding to the methods provided in the above-mentioned method embodiments, the embodiments of the present application also provide a hardware architecture of a corresponding electronic device.

[0155] For example, Fig.12 A detailed architecture diagram of an electronic device 300 to which the present application is applicable is shown.

[0156] like Fig.12 As shown, the electronic device 300 may include a processor 310 , an eSIM module 320 , a communication module 330 , an internal memory 340 , and optionally, one or more plug-in SIM card interfaces 350 , and one or more display screens 360 .

[0157] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0158] The processor 310 may include one or more processing units, for example: the processor 310 may include an application processor (AP), a modem 311, a GPU, an image signal processor (ISP), a controller, a video codec, a DSP, a baseband processor, and / or an NPU, etc. Among them, different processing units may be independent devices or integrated into one or more processors. A memory may also be provided in the processor 310 for storing instructions and data. In an embodiment of the present application, the modem 311 is used to provide radio frequency resources for the eSIM card, and notify the card module when the state of the eSIM card changes, and send the loaded eSIM card information to the card module based on the request of the card module.

[0159] Optionally, the electronic device can realize the display function through a GPU, a display screen 360, and an application processor.

[0160] The eSIM module 320 enables the electronic device to support the use of an eSIM card, such as providing eSIM card activation and data loading services.

[0161] The communication module can provide wireless communication services for electronic devices. For example, after the plug-in SIM card and eSIM card in the electronic device are activated, the electronic device can obtain the communication services provided by the operator through the communication module. The communication module 330 may include one or more antennas.

[0162] The internal memory 340 may be used to store computer executable program codes, wherein the executable program codes include instructions. The processor 310 executes the instructions stored in the internal memory 340, thereby causing the electronic device to execute the parameter maintenance method provided in the embodiment of the present application.

[0163] The plug-in SIM card interface is used to insert a physical SIM card so as to activate and use the physical SIM card.

[0164] It is understandable that if the integrated units in the above-mentioned device embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a RAM, an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0165] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device can implement the steps in the above-mentioned various method embodiments.

[0166] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis. For the parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0167] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0168] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

[0169] The terms "first", "second", "third", "fourth" and other various terminology and numbers (if any) in the specification and claims of this application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or quantity. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.

[0170] In the various embodiments of the present application, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. The specific operating methods in the method embodiments of the present application can also be applied to device embodiments or system embodiments.

Claims

1. A parameter maintenance method, applied to electronic equipment, characterized in that: The electronic device comprises a card configuration management module and a card module, and the method comprises: Receiving a status broadcast from the card module via the card configuration management module; When the status broadcast indicates that the status of the eSIM card in the electronic device is not ready, obtaining actual status information from the card module through the accompanying card configuration management module, where the actual status information is information maintained by the card module and used to indicate the actual status of the eSIM card; When the actual status information indicates that the actual status of the eSIM card is not ready, triggering a clearing process of Opkey and / or accompanying card parameters through the accompanying card configuration management module; or, When the actual status information indicates that the actual status of the eSIM card is other than the not ready status, continue to maintain the Opkey and the accompanying card parameters, the Opkey is associated with the configuration information of the eSIM card, the configuration information includes the accompanying card parameters, and the accompanying card parameters are customized parameters of the operator corresponding to the eSIM card.

2. The method according to claim 1, characterized in that The receiving the status broadcast from the card module through the card configuration management module includes: When the electronic device is turned on or within a preset time after the electronic device is turned on, the status broadcast from the card module is received through the card configuration management module.

3. The method according to claim 2, characterized in that The load of the electronic device is greater than or equal to a preset value.

4. The method according to any one of claims 1 to 3, characterized in that The configuration information includes the access point name corresponding to the eSIM card; After continuing to maintain the Opkey and the card parameters, the method further includes: Obtaining configuration information of the eSIM card according to the Opkey; Processing a multimedia message service based on the access point name in the configuration information.

5. The method according to any one of claims 1 to 3, characterized in that Before triggering the clearing process of Opkey and / or accompanying card parameters by the accompanying card configuration management module, or continuing to maintain the Opkey and the accompanying card parameters, the method further includes: Obtain card information corresponding to the eSIM card; Based on the card information, the Opkey and / or card parameters are loaded through the card configuration management module.

6. The method according to claim 5, characterized in that The obtaining card information corresponding to the eSIM card includes: The card information is acquired from the card module through the card configuration management module, and the card information is obtained by the card module from a modem in the electronic device.

7. The method according to any one of claims 1 to 3, characterized in that The card-attached parameters include one or more of the following: Number matching number, signal strength indication parameters, network identification style, Long Term Evolution LTE network hidden parameters, and fifth-generation communication 5G network mode hidden parameters.

8. An electronic device, characterized in that: The electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to perform the method as claimed in any one of claims 1 to 7.

9. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when executed on an electronic device, cause the electronic device to perform the method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for realizing access point binding of wireless data terminal equipment

    CN101730078A

  • Network registration method for virtual SIM card and terminal

    CN107306389A