CN114401508A - SIM card management method and electronic equipment - Google Patents

SIM card management method and electronic equipment Download PDF

Info

Publication number
CN114401508A
CN114401508A CN202111679436.4A CN202111679436A CN114401508A CN 114401508 A CN114401508 A CN 114401508A CN 202111679436 A CN202111679436 A CN 202111679436A CN 114401508 A CN114401508 A CN 114401508A
Authority
CN
China
Prior art keywords
card
conflict
user
esim
sim card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111679436.4A
Other languages
Chinese (zh)
Other versions
CN114401508B (en
Inventor
黄迪远
梁勇
刘继蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111679436.4A priority Critical patent/CN114401508B/en
Publication of CN114401508A publication Critical patent/CN114401508A/en
Application granted granted Critical
Publication of CN114401508B publication Critical patent/CN114401508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The application discloses a management method of an SIM card and electronic equipment, which relate to the technical field of computers, and the method is applied to the electronic equipment and comprises the following steps: and when the electronic equipment detects a card support state transformation event, presenting a conflict elimination interface to the user, wherein the conflict elimination interface comprises a conflict elimination control, receiving conflict elimination operation triggered by the user on the conflict elimination control by the electronic equipment, and then eliminating the conflict between the eSIM card and the entity SIM card by the electronic equipment based on the conflict elimination operation triggered by the user. According to the method, the conflict elimination interface is presented to the user, so that the user can know the conflict and can be guided to eliminate the conflict, the requirements of the user are met, and the user experience is improved.

Description

SIM card management method and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method for managing a SIM card and an electronic device.
Background
With the development of electronic technology, electronic devices such as mobile phones are more and more intelligent, and mobile phones can be networked based on a Subscriber Identity Module (SIM). The SIM card may be divided into an entity SIM card and an eSIM card, and the eSIM card may be an Embedded SIM (eSIM) card inside a mobile phone.
When the eSIM card of the mobile phone is in an activated state, a user puts the entity SIM card into the card slot of the card holder by pulling out the card holder of the mobile phone, and then inserts the card holder into the mobile phone, if the card slot occupied by the eSIM card and the entity SIM card is the same, the mobile phone can default to select the eSIM card or the entity SIM card to take effect. When the eSIM card is enabled by default, a user can think that the entity SIM card is damaged or the mobile phone is in failure; when the entity SIM card is enabled by default, if the eSIM card is opened, but the user does not know the existence of the eSIM card, the eSIM of the user is always in an idle state, which causes resource waste.
Therefore, the default selection of the eSIM card or the physical SIM card by the mobile phone will cause confusion of the user, waste of resources and poor user experience.
Disclosure of Invention
The application aims to provide a user identity module management method and electronic equipment, and user experience is improved.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a method for managing a SIM card, where the method is applied to an electronic device, and the electronic device may be a single-card single-pass device, a multi-card single-pass device, or a multi-card multi-pass device. The eSIM card on the electronic equipment is in an activated state, and the method comprises the following steps: when a cradle state transition event occurs, such as a cradle insertion event, the electronic device may present a conflict resolution interface to the user, through which the user is prompted that there is a conflict between the inserted physical SIM card and the current eSIM card, and that the eSIM card and the physical SIM card cannot be used simultaneously, so that the user is aware of the conflict, thereby resolving the confusion of the user. The conflict resolution interface includes a conflict resolution control, and the electronic device can receive a conflict resolution operation triggered by a user on the conflict resolution control, so that the electronic device can resolve a conflict between the eSIM card and the physical SIM card based on the conflict resolution operation triggered by the user.
In some possible implementations, the conflict resolution operation triggered by the user on the conflict resolution control may be an operation of an eSIM card or a physical SIM card selected by the user. When the conflict resolution operation is an operation in which the user selects an eSIM card, the electronic device enables the eSIM card selected by the user to resolve the conflict. When the conflict resolution operation is an operation in which the user selects a physical SIM card, the electronic device enables the user-selected physical SIM card to resolve the conflict.
In some possible implementations, the conflict resolution operation triggered by the user on the conflict resolution control can be an operation in which the user selects a target card slot for the eSIM card. The electronic device can switch the card slot occupied by the eSIM card to a target card slot to eliminate conflicts.
In some possible implementations, the conflict resolution interface also includes a prompt that may be used to guide the user in resolving the conflict. The electronic equipment receives conflict elimination operation triggered by the conflict elimination control based on the prompt information, and then the electronic equipment can eliminate the conflict based on the conflict elimination operation triggered by the user.
In some possible implementations, the prompt message is further used to prompt the user to change the card slot of the physical SIM card, so that a conflict between the eSIM card and the physical SIM card can be eliminated after the card slot occupied by the physical SIM card is different from the card slot occupied by the eSIM card.
In a second aspect, the present application provides a method for managing a SIM card, where the method is applied to an electronic device, an operating system runs on the electronic device, and the operating system includes a kernel layer, a hardware abstraction layer, and an application layer, and the method includes: the hardware abstraction layer receives a card support state transformation event detected by the kernel layer; the hardware abstraction layer transmits a conflict detection instruction to the kernel layer according to the card support state transformation event; the hardware abstraction layer receives a detection result reported by the kernel layer, and the detection result is used for identifying whether an entity SIM card is placed in a card slot occupied by the eSIM card or not; the hardware abstraction layer reports the detection result to the application layer and receives a conflict elimination instruction triggered by a user according to the prompt information of the application layer; the hardware abstraction layer sends a conflict resolution instruction to the kernel layer to cause the kernel layer to execute the conflict resolution instruction.
In the method, after a kernel layer reports a hardware abstraction layer card support state conversion event, the hardware abstraction layer sends a conflict detection instruction to the kernel layer, so that the kernel layer detects whether a conflict exists between an eSIM card and an entity SIM card, and reports the detection result to an application layer. The application layer can prompt the user based on the detection result, and when the detection result represents that a conflict exists between the eSIN card and the entity SIM card, the application layer can present prompt information to the user so as to prompt the user through the prompt information, and the conflict exists between the current eSIM card and the entity SIM card, so that the user can know the conflict and the confusion of the user is eliminated. In addition, the prompt information can also prompt the user to eliminate the conflict, so that the conflict is solved, the requirements of the user are met, and the user experience is provided.
In some possible implementations, the conflict resolution instruction includes a user-selected SIM card; the hardware abstraction layer sends a conflict elimination instruction to the kernel layer so that the kernel layer executes the conflict elimination instruction, and the conflict elimination instruction comprises the following steps: the hardware abstraction layer sends a conflict resolution instruction to the kernel layer to enable the SIM card selected by the user.
In some possible implementations, the conflict resolution instruction includes a user selected target card slot; the hardware abstraction layer sends a conflict elimination instruction to the kernel layer so that the kernel layer executes the conflict elimination instruction, and the conflict elimination instruction comprises the following steps: and the hardware abstraction layer sends a conflict elimination instruction to the kernel layer so that the kernel layer switches the card slot occupied by the eSIM card into a target card slot selected by a user.
In some possible implementations, the card-tray state transition event includes a card-tray insertion event.
In some possible implementations, the card-tray state transition event includes a card-tray pull-out event; the hardware abstraction layer receives the detection result reported by the kernel layer, and the method comprises the following steps: and when the hardware abstraction layer receives the card holder insertion event detected by the kernel layer, receiving a detection result reported by the kernel layer.
In some possible implementations, the conflict detection instruction is to instruct the kernel layer to enable a physical SIM card on a card slot occupied by the eSIM card; the method further comprises the following steps: and the hardware abstraction layer indicates the kernel layer to enable the eSIM card on the card slot occupied by the eSIM card according to the detection result reported by the kernel layer.
In some possible implementations, the electronic device further includes a frame layer; the hardware abstraction layer reports the detection result to the application layer, and the method comprises the following steps: and the hardware abstraction layer reports the detection result to the application layer through the framework layer.
In some possible implementations, the prompt message is used to prompt the user to select a SIM card; or, prompting the user to select a card slot occupied by the eSIM card.
In a third aspect, the present application provides an electronic device, comprising: a processor and a memory; wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the method of any of the first or second aspects.
In a fourth aspect, the present application provides a computer storage medium comprising computer instructions which, when run on an electronic device, perform the method of any of the first or second aspects.
In a fifth aspect, the present application provides a computer program product for performing the method of any one of the first or second aspects when the computer program product runs on a computer.
It should be appreciated that the description of technical features, solutions, benefits, or similar language in this application does not imply that all of the features and advantages may be realized in any single embodiment. Rather, it is to be understood that the description of a feature or advantage is intended to include the specific features, aspects or advantages in at least one embodiment. Therefore, the descriptions of technical features, technical solutions or advantages in the present specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and advantages described in the present embodiments may also be combined in any suitable manner. One skilled in the relevant art will recognize that an embodiment may be practiced without one or more of the specific features, aspects, or advantages of a particular embodiment. In other instances, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a physical SIM card according to an embodiment of the present application;
fig. 3 is a schematic diagram of pin distribution of a physical SIM card according to an embodiment of the present disclosure;
fig. 4 is a schematic view of a two-in-one card connector according to an embodiment of the present disclosure;
fig. 5A is a schematic diagram of a single-card single-pass device according to an embodiment of the present disclosure;
fig. 5B is a schematic diagram of a dual-card single-pass device according to an embodiment of the present disclosure;
fig. 5C is a schematic diagram of a dual-card dual-pass device provided in an embodiment of the present application;
FIG. 6A is a schematic diagram of a conflict resolution interface according to an embodiment of the present application;
FIG. 6B is a schematic diagram of a status bar change according to an embodiment of the present disclosure;
FIG. 6C is a schematic diagram of yet another conflict resolution interface provided by an embodiment of the present application;
FIG. 6D is a schematic diagram of yet another status bar change provided by an embodiment of the present application;
FIG. 6E is a schematic diagram of yet another conflict resolution interface provided by an embodiment of the present application;
fig. 6F is a schematic diagram of another application scenario provided in the embodiment of the present application;
fig. 7 is a flowchart of a method for managing a SIM card according to an embodiment of the present application;
fig. 8 is a schematic diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a layered architecture according to an embodiment of the present application;
fig. 10 is a flowchart of a method for managing a SIM card according to an embodiment of the present application;
fig. 11 is a schematic view of another electronic device provided in the embodiment of the present application.
Detailed Description
The terms "first", "second" and "third", etc. in the description and claims of this application and the description of the drawings are used for distinguishing between different objects and not for limiting a particular order.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
When the electronic device activates the eSIM card, after the physical SIM card is inserted into a card slot of the electronic device, if the physical SIM card and the eSIM card of the electronic device share the same radio frequency resource, the electronic device may default to select one of the physical SIM card and the eSIM card of the electronic device for activation. When the electronic equipment activates the eSIM card by default, even if the user inserts the entity SIM card, the electronic equipment does not give any prompt, and the user can think that the entity SIM card is damaged or the mobile phone has a fault; when the electronic equipment activates the entity SIM card by default, if the eSIM card is opened, but the user does not know the existence of the eSIM card, the eSIM card can be always in an idle state, and the resource waste is caused.
In view of this, an embodiment of the present application provides a method for managing a SIM card, where the method is executed by an electronic device. Specifically, the method comprises the following steps: when a card support state change event occurs, the electronic equipment detects whether a solid SIM card is placed in a card slot occupied by the eSIM card, and when the solid SIM card is placed in the card slot occupied by the eSIM card, the electronic equipment presents prompt information to a user, wherein the prompt information can be used for prompting that the card slot occupied by the solid SIM card of the user is the same as the card slot occupied by the eSIM card built in the electronic equipment, and if the card slot occupied by the solid SIM card is an auxiliary card slot. Further, the electronic device may prompt the user to select one of the eSIM card and the physical SIM card through the prompt message, so that the electronic device enables the eSIM card or the physical SIM selected by the user; of course, when the electronic device is a dual-card dual-pass device, the user can be prompted whether to switch the eSIM card to the main card slot, so that a conflict between the eSIM card and the entity SIM card in the auxiliary card slot is avoided, and the eSIM and the entity SIM card can be used simultaneously.
For convenience of understanding, an application scenario related to the embodiment of the present application is described below, and as shown in fig. 1, the application scenario is a schematic diagram provided in the embodiment of the present application. In this application scenario, the card-tray state transition event may refer to the user inserting the card tray 501 into the electronic device 502, or may refer to the user removing the card tray 501 from the electronic device 502. In some examples, a user inserts the cradle 501 with a physical SIM card into the electronic device 502, and the electronic device 502 can detect the cradle state transition event, and the electronic device can detect whether a physical SIM is placed in the card slot occupied by the eSIM card. When the electronic equipment detects that the entity SIM card is placed in the card slot occupied by the eSIM card, the electronic equipment can present prompt information to a user. Therefore, the user can know that the inserted entity SIM card conflicts with the eSIM card based on the prompt message, thereby eliminating the confusion of the user and improving the user experience.
For clarity and conciseness of the following descriptions of the various embodiments, a brief introduction to the related art is first given:
a SIM card may be referred to as a SIM card, and generally, the SIM card may be divided into a physical SIM card and an eSIM card. The physical SIM card is used for implementing a connection of a mobile network, such as an access of a global system for mobile communications (GSM) network or a Universal Mobile Telecommunications System (UMTS) network. The subscriber identity module used in the LTE 3GPP standard may also be referred to as Universal Subscriber Identity Module (USIM), which is also one of the physical SIM cards, which is a Universal Integrated Circuit Card (UICC).
As shown in fig. 2, 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. Wherein the ROM, RAM, EEPROM, and communication interface are coupled to the CPU. In a physical SIM card, the RAM is also called working memory, the ROM is also called program memory, and the EEPROM is also called data memory. The communication interface may comprise at least 6 pins (also referred to as pins), or more. As shown in fig. 3, the diagram is a schematic diagram of pin distribution of an SIM card provided in an embodiment of the present application, where the SIM card includes 6 pins, which are: power supply (VCC), Reset (RST), Clock (CLK), Ground (GND), programming Voltage (VPP), and DATA (I/O or DATA).
The physical SIM card may be used to store subscriber related data, including system raw data, such as an International Mobile Subscriber Identity (IMSI), stored by the manufacturer of the physical SIM card; network parameters and user data, such as authentication information, encryption information, algorithms, etc., injected by the mobile operator when issuing the card to the user; the data stored by the user in the using process, such as short messages, address lists, position information at the latest position registration and the like.
An eSIM card is typically embedded inside a motherboard of an electronic device, which is an embedded SIM card that can replace a physical SIM card, but the size of the eSIM is much smaller. Unlike the physical SIM card, the eSIM card can switch numbers or change carriers at will because information on the eSIM is rewritable. The eSIM card also comprises part or all pins shown by the entity SIM card, and the eSIM card is remotely configured through OTA (over the air card writing), so that the configuration files of an operator can be downloaded, installed, activated, deactivated and deleted and installed in the terminal through network downloading. In another implementation, the eSIM card can also be a purely software functional unit.
The card slot may be a card slot into which a plurality of cards may be inserted, and the card slot may include a card holder for fixing a position of at least one card and a card holder including at least one card connector, which may be a SIM card connector or a memory card connector. In some examples, the card holder may be a dual card holder including a main card holder for holding a main card and a sub card holder for holding a sub card, and based on this, the card holder may include a main card connector for connecting a SIM card and a sub card connector for connecting a SIM card, and the sub card connector may 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 an auxiliary card slot, the main card slot is used for accommodating the main card holder, and the auxiliary card slot is used for accommodating the auxiliary card holder.
As shown in fig. 4, which is a schematic structural diagram of a two-in-one card connector according to an embodiment of the present disclosure, the two-in-one card connector includes 8 metal sheets, which are metal sheet 1, metal sheet 2, metal sheet …, and metal sheet 8, where the 8 metal sheets of the two-in-one card connector are used for being connected to 8 pins on a memory card one by one and being connected to 6 pins on a SIM card. The two-in-one card connector further includes 8 pins G1, G2, … and G8 respectively connected to the 8 metal plates, wherein the 8 pins are used for coupling to other devices or chips, such as a baseband processor, a central processing unit, a battery management module, and the like.
When this two unification card connectors connect the storage card, the sheetmetal on the two unification card connectors of the pin connection of this storage card, the pin of storage card is connected respectively to sheetmetal 1 ~ 8: clock (CLK), data bit 0(D0), supply Voltage (VCC), data bit 2(D2), data bit 1(D1), command/reply (CMD), Ground (GND), and data bit 3 (D3).
When the two-in-one card connector is connected to the solid SIM card shown in FIG. 3, the pins of the solid SIM card are connected to the metal sheets of the two-in-one card connector, and the metal sheets 1-8 are connected to CLK, RST, VDD, DATA, VPP, GND, and GND of the SIM card, respectively. Wherein, sheetmetal 3 and sheetmetal 4 all connect VDD, and sheetmetal 7 and sheetmetal 8 all connect GND.
An electronic device may be referred to as a terminal, a terminal device, a User Equipment (UE), etc. The electronic device may be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), an On Board Unit (OBU), a wearable device (e.g., a watch, a bracelet, an intelligent helmet, etc.), an intelligent home device (e.g., an electric cooker, a stereo, a home concierge device, etc.), an Augmented Reality (AR)/Virtual Reality (VR) device, etc.
Electronic devices can be classified into single-card single-pass devices, multi-card single-pass devices (e.g., dual-card single-pass devices, three-card single-pass devices), and multi-card multi-pass devices (e.g., dual-card dual-pass devices, three-card three-pass devices). The electronic device may include an application processor, a power management module, a baseband processor, and at least one radio frequency resource. The "card" in the single card or the multiple cards refers to an entity SIM card, and in the embodiment of the present application, the electronic device supports at least one eSIM card, and at least one eSIM card and one entity SIM card share the same radio frequency resource. The above single-card single-pass device, multi-card single-pass device, and multi-card multi-pass device are described below.
As shown in fig. 5A, this is a schematic diagram of a single-card single-pass device provided in this embodiment of the present application, where the single-card single-pass device includes only a card slot into which a physical SIM card is inserted, and the slot includes a card connector through which the physical SIM card is connected to the baseband processor when the physical SIM card is inserted into the card slot. The entity SIM card and the eSIM card on the single-card single-pass device share one radio frequency resource, that is, after the entity SIM card is inserted into the single-card single-pass device, the single-card single-pass device can only select one of the eSIM card and the entity SIM. The single-card single-pass device selects one of the devices by default to activate in order to realize connection to the mobile network.
As shown in fig. 5B, this figure is a schematic diagram of a dual-card single-pass device according to an embodiment of the present disclosure, where the dual-card single-pass device includes a card slot into which two physical SIM cards can be inserted, and the card slot includes two card connectors, namely a card connector 1 and a card connector 2, respectively, where the physical SIM cards can be inserted into both the card connector 1 and the card connector 2. However, only the physical SIM card on one of the card connectors 1 and 2 can be used, and taking the example that the physical SIM card on the card connector 1 can be used, the physical SIM card can be connected to the baseband processor through the card connector 1 after the physical SIM card is inserted into the card connector 1 of the card slot. The physical SIM card shares a radio frequency resource with an eSIM card on a dual-card single-pass device, and similarly, when the physical SIM card is inserted into the card connector 1 connected to the baseband processor, the dual-card single-pass device can select only one of the eSIM card and the physical SIM card. The dual card single pass device will default to select one of them for activation in order to realize connection to the mobile network.
As shown in fig. 5C, this figure is a schematic diagram of a dual-card dual-pass device provided in this embodiment of the present application, where the dual-card dual-pass device includes a card slot into which two physical SIM cards can be inserted, and the card slot includes two card connectors, namely a card connector 1 and a card connector 2, respectively, where the physical SIM cards can be inserted into both the card connector 1 and the card connector 2. Unlike a dual-card single-pass device, in which both the card connector 1 and the card connector 2 are connected to a baseband processor, the dual-card dual-pass device includes 2 radio frequency resources. In some examples, the physical SIM card on the card connector 1 may share only one radio frequency resource, and the physical SIM card on the card connector 2 shares another radio frequency resource with the eSIM card on the dual-card dual-pass device. When a physical SIM card is inserted into the card connector 2 connected to the baseband processor, the dual card dual active device can select only one of the eSIM card and the physical SIM card on the card connector 2 with respect to the card connector 2. The dual-card dual-active device will default to selecting one of them for activation.
It should be noted that the above description is only given by taking the multi-card multi-pass device as a dual-card dual-pass device and the multi-card single-pass device as a dual-card single-pass device as examples. In some examples, the multi-card multi-pass device may be an M-card N-pass device, M, N being an integer greater than 2, the M-card N-pass device including a card slot into which M physical SIM cards may be inserted, the card slot including M card connectors, card connector 1, card connector 2, …, card connector M, the M-card N-pass device including N radio frequency resources and including T eSIM cards, eSIM card 1, eSIM card 2, …, eSIM card T, the T eSIM cards, or at least one eSIM card sharing radio frequency resources with the physical SIM cards on multiple card linkers. For example, the entity SIM and the eSIM card 1 inserted in the corresponding position of the card connector 1 share one radio frequency resource, the entity SIM and the eSIM card 2 inserted in the corresponding position of the card connector 2 share one radio frequency resource, and so on, the entity SIM and the eSIM card T inserted in the corresponding position of the card connector T share one radio frequency resource, where M is not less than T, for example, in other implementations of the present application, T may also be greater than M, and at this time, part of the eSIM cards in the T eSIM cards are independently coupled to the baseband chip and independently occupy the radio frequency resource.
For convenience of understanding, the method for managing the SIM card provided in the embodiment of the present application is described below with reference to the application scenario shown in fig. 1.
When the electronic device detects a cradle state transition event, the electronic device can detect whether a conflict exists between the eSIM card and the physical SIM card, and when the electronic device detects that the conflict exists between the eSIM card and the physical SIM card, the electronic device can present a conflict resolution interface to a user. The conflict resolution interface comprises prompt information and a conflict resolution control, and a user can trigger conflict resolution operation on the conflict resolution control based on the prompt information, so that the electronic equipment can eliminate the conflict between the eSIM card and the entity SIM card based on the conflict resolution operation triggered by the user. For example, the electronic device enables a user-selected eSIM card or physical SIM; for another example, the electronic device switches the card slot occupied by the eSIM card to a target card slot selected by the user.
As shown in fig. 6A, this figure is a schematic diagram of a collision resolution interface provided in the embodiment of the present application. The conflict resolution interface includes prompt information 503, an eSIM card option 504, an entity SIM card option 505, and a submit control 506. The eSIM card option 504, the entity SIM card option 505, and the submission control 506 may serve as conflict resolution controls, and the prompt 503 may indicate that "the secondary card is an eSIM card, and the newly inserted entity SIM card cannot be used simultaneously with the eSIM card, and please select a card type to be used".
In some examples, the conflict resolution operation triggered by the user on the conflict resolution control can be an operation in which the user selects an eSIM card or an operation in which the physical SIM card. For example, the user can click on the eSIM card option 504 or click on the physical SIM card option 505 based on the prompt information 503, and then click on the submit control 506 to select the active SIM card, and the electronic device 502 activates the physical SIM card selected by the user or activates the eSIM card selected by the user based on the user clicking on the submit control 506.
It should be noted that, in the example shown in fig. 6A, the electronic device 502 may be a single-card single-pass device, a multi-card single-pass device, or a multi-card multi-pass device. Also, the eSIM card option 504, the physical SIM card option 505, and the submission control 506 described above are merely examples of a conflict resolution control, and the conflict resolution control of the embodiment of the present application is not limited thereto.
Fig. 6B illustrates a schematic diagram of an electronic device transformed from an enabled eSIM card to an enabled physical SIM card. As can be seen from fig. 6B, the signal of the eSIM card in the status bar 610 of the electronic apparatus changes from normal to "x", i.e., to abnormal; the signal of the physical SIM card changes from "x" to normal.
Fig. 6C is a schematic diagram of another conflict resolution interface provided in the embodiment of the present application. The conflict resolution interface includes prompt information 507, a card slot selection area 508 occupied by the eSIM card, the card slot selection area 508 including a primary card slot 508a and a secondary card slot 508b, and a switch control 509. The main card slot 508a, the auxiliary card slot 508b, and the switching control 509 may be used as conflict resolution controls, and the prompt message 507 may indicate that "the auxiliary card is an eSIM card, the newly inserted entity SIM card cannot be used simultaneously with the eSIM card, and you may reselect an occupied card slot for the eSIM card".
In some examples, the conflict resolution operation triggered by the user on the conflict resolution control can be an operation by which the user selects a target card slot for an eSIM card. For example, the user may click the main card slot 508a in the card slot selection area 508 based on the prompt information 507, then click the switching control 509 to switch the card slot occupied by the eSIM card, and the electronic device 502 switches the card slot occupied by the eSIM card to the main card slot, that is, the target card slot selected by the user for the eSIM card, based on the click operation of the user on the switching control 509.
It is noted that, in the example shown in fig. 6C, the electronic device 502 may be a multi-card multi-channel device, such as a dual-card dual-channel device. In parallel, the above-mentioned primary card slot 508a, secondary card slot 508b and switching control 509 are merely an example of a conflict resolution control, and the conflict resolution control according to the embodiment of the present application is not limited thereto.
Fig. 6D shows a schematic diagram of an electronic device transformed from an eSIM card enabled to both an eSIM card and a physical SIM card. As can be seen from fig. 6D, the signal of the physical SIM card in the status column 610 of the electronic device changes from "x" to normal, and the signal of the eSIM card in the status column 610 of the electronic device remains normal.
Fig. 6E is a schematic diagram of another conflict resolution interface provided in the embodiment of the present application. The conflict resolution interface includes a prompt message 510, where the prompt message 510 may be "the card slot where the current physical SIM card is located is occupied by the eSIM card, and if the physical SIM card needs to be used, please replace the card slot of the physical SIM card". Based on the prompt message 510, the user can remove the card holder 501 from the electronic device 502, replace the physical SIM card, and then reinsert the card holder into the electronic device 502 to use the physical SIM card.
After the user knows that the eSIM card and the physical SIM card conflict with each other, and the user replaces the physical SIM card with another card slot, referring to fig. 6D, the signal of the physical SIM card in the status column 610 of the electronic device changes from "x" to normal, and the signal of the eSIM card in the status column 610 of the electronic device remains normal. It should be noted that the collision resolution interfaces shown in fig. 6A, fig. 6C, and fig. 6E are only exemplary diagrams, and of course, the collision resolution interfaces shown in fig. 6A, fig. 6C, and fig. 6E may also be combined, for example, the prompt message 510 in fig. 6E is combined with the prompt message 503 in fig. 6A to obtain that "the secondary card is an eSIM, the newly inserted physical SIM card cannot be used simultaneously with the eSIM card, please select a card type to be used, or you may replace the card slot of the physical SIM card".
The SIM card management method provided by the embodiment of the application can also be applied to the scene of starting the electronic equipment. As shown in fig. 6F, this figure is a schematic diagram of another application scenario provided in the embodiment of the present application. In this application scenario, the user may press (e.g., hold for 3 seconds) the power key 601 of the electronic device for a long time, thereby triggering the electronic device to power on. After the electronic device is powered on, the electronic device detects whether a physical SIM card is placed in a card slot occupied by the eSIM card, and when a conflict occurs between the eSIM card and the physical SIM card, the electronic device may present a conflict resolution interface shown in any one of fig. 6A, 6C, and 6E to the user, so that the user can know the conflict and prompt the user how to resolve the conflict.
It should be noted that the above application scenarios are only exemplary descriptions, and the management method for the SIM card provided in the embodiment of the present application is not limited to the above application scenarios, for example, the management method for the SIM card may also be applied to a scenario in which the electronic device exits the flight mode.
For convenience of understanding, the method for managing the SIM card provided in the embodiment of the present application is described below by taking the application scenario shown in fig. 1 as an example. As shown in fig. 7, the SIM card management method includes:
s701: the electronic device activates the eSIM card.
After the electronic equipment activates the eSIM card, the eSIM card is changed from a disconnected state to a working state. The operating state may also be referred to as the eSIM card enable, and may be that the eSIM card is connected to a baseband processor/baseband chip and occupies a radio frequency resource of the electronic device; the disconnected state may also be referred to as the eSIM card being disabled, which may be that the eSIM card is not connected to the baseband processor/chip and the electronic device cannot connect to the mobile network based on the eSIM card. Similarly, the physical SIM card also includes an off state and an on state.
In some examples, the electronic device can establish a communication connection of the eSIM card with the baseband processor to activate the eSIM card, and the electronic device can then connect to a mobile network based on the eSIM card.
S702: and the electronic equipment detects the card support pulling-out event and points the switcher of the card slot occupied by the eSIM card to the entity SIM card.
The switch can be a functional module for switching between an eSIM card on a card slot occupied by the eSIM card (e.g., a secondary card slot) and a physical SIM card, the electronic device enabling the eSIM card when the switch is pointed at the eSIM card, and the electronic device enabling the physical SIM card when the switch is pointed at the physical SIM card.
After the electronic equipment switches the switch from the pointing eSIM card to the pointing entity SIM card, the eSIM card can be disconnected.
S703: the electronic equipment detects a card holder insertion event and detects whether a physical SIM card is in place through a switcher.
In some examples, the electronic device may send a switch instruction to a bottom layer (e.g., a kernel layer), and a baseband chip of the kernel layer may switch the switch to point to the physical SIM based on the switch instruction and return a detection result of whether the physical SIM card is in place to the electronic device (e.g., an application layer of the electronic device).
The card holder insertion event and the card holder extraction event can be card holder state conversion events. The card holder insertion event is an event that the card holder is inserted into the electronic device, and the card holder extraction event is an event that the card holder is extracted from the electronic device. In some examples, the card slot further includes a metal spring and a pin DET for detecting hot plug of the card holder, the metal spring is used for connecting a System on a Chip (SOC) and is connected with a high level signal through a resistor, when the card holder is not inserted into the card slot, the metal spring is pulled up to a high level, and the detected pin DET is a high level; when inserting the card support in the draw-in groove, metal shrapnel takes place deformation and then leads to its ground connection, and metal shrapnel department is the low level, and the pin DET that detects this moment is the low level. Based on this, the electronic device can detect whether the card-tray state transition event exists by detecting the signal or the signal change of the pin DET.
It should be noted that the above is only one example of the electronic device detecting the card-tray state transition event, and those skilled in the art may select other ways to detect the card-tray state transition event according to actual needs.
S704: the electronic device directs a switch of a card slot occupied by the eSIM card to the eSIM card.
In some examples, after the electronic device obtains the detection result, the switch may be switched to point to the eSIM, so that the eSIM card is re-networked, so that the electronic device can implement connection with the mobile network through the eSIM card.
S705: when the card slot occupied by the eSIM card has the entity SIM card, S706 is executed; when the physical SIM card does not exist in the card slot occupied by the eSIM card, S707 is executed.
Taking a card slot occupied by the eSIM card as an auxiliary card slot as an example, the electronic device may switch the switch on the auxiliary card slot from the pointed eSIM card to the pointed entity SIM card, disable the eSIM card, change the working state of the eSIM card into a disconnected state, then enable the entity SIM card on the auxiliary card slot, and further obtain a detection result whether the entity SIM card exists on the auxiliary card slot. In some examples, after obtaining the detection result, the electronic device may further re-enable the eSIM card on the secondary card slot, so that the eSIM is restored to be connected to the mobile network.
The entity SIM card and the eSIM card share one radio frequency resource, and when a detection result indicates that the entity SIM card exists in the auxiliary card slot, the entity SIM card and the eSIM card have conflict; when the detection result indicates that the physical SIM card does not exist in the secondary card slot, the user may not insert the physical SIM card or the physical SIM card is damaged.
S706: the electronic device presents the prompt to the user.
When detecting that the entity SIM card exists in the card slot occupied by the sSIM card, the electronic equipment can present prompt information to a user to prompt the user that the entity SIM card inserted by the user conflicts with the eSIM card, so that the user can know the existing eSIM card in the electronic equipment, and the confusion of the user is eliminated. The electronic equipment can also prompt the user to select the SIM card to be used, and the electronic equipment enables the effective entity SIM card or eSIM card according to the selection of the user instead of default enabling of one SIM card, so that the personalized requirements of the user can be met, and the use experience is improved. The manner in which the electronic device presents the prompt information to the user may specifically refer to fig. 6A, 6C, and 6D, which is not described herein again.
S707: the electronic device normally uses the eSIM card.
When detecting that the physical SIM card does not exist in the card slot occupied by the eSIM card (for example, the user may not insert the physical SIM card or the user inserts the physical SIM card into the main card slot), the electronic device continues to maintain the operating state of the eSIM card through which the electronic device is connected to the mobile network. When the electronic device is a dual-card dual-pass device, if the user inserts the entity SIM card into the main card slot, the electronic device may enable the eSIM card and the entity SIM card at the same time.
In this embodiment, a structure of the electronic device may be as shown in fig. 8, and fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
As shown in fig. 8, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identity Module (SIM) card interface 195, such as a card slot.
The configuration illustrated in the present embodiment is not intended to specifically limit the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. For example, in the present application, the processor may indicate: and activating the eSIM card, detecting a card holder conversion event, and prompting a user when detecting that the entity SIM card exists in the card slot occupied by the eSIM card, otherwise, continuously maintaining the working state of the eSIM card.
The controller can be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The interface connection relationship between the modules illustrated in the present embodiment is merely an exemplary one, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The electronic device implements the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. A series of Graphical User Interfaces (GUIs) may be displayed on the display screen 194 of the electronic device, and these GUIs are the main screen of the electronic device. Generally, the size of the display screen 194 of the electronic device is fixed, and only a limited number of controls can be displayed in the display screen 194 of the electronic device. A control is a GUI element, which is a software component contained in an application program and controls all data processed by the application program and interactive operations related to the data, and a user can interact with the control through direct manipulation (direct manipulation) to read or edit information related to the application program. Generally, a control may include a visual interface element such as an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, Widget, and the like.
The SIM card interface 195 is used to connect a SIM card, such as the card slot described above. The SIM card can be attached to and detached from the electronic device by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic equipment can support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic equipment realizes functions of conversation, data communication and the like through the interaction of the SIM card and the mobile network. The SIM card comprises a solid SIM card and an eSIM card, and the eSIM card can be embedded in the electronic equipment and can not be separated from the electronic equipment.
In addition, an operating system runs on the above components. A running application may be installed on the operating system.
The operating system of the electronic device may employ a layered architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of an electronic device. As shown in fig. 9, the figure is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, namely an application layer, a framework layer, a hardware abstraction layer and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 8, the application package may include physical SIM card management, eSIM card management, contacts, sms, settings, boot guides, and the like.
The framework layer provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer. The framework layer includes some predefined functions. The framework layer can comprise dual-card management and an SIM card protocol, wherein the dual-card management comprises dual-card dual-pass/dual-standby, SIM card management, full-network management and hot plug management; the SIM card protocol comprises a universal card protocol interface, an SIM card toolkit and an eSIM card management. A framework layer interface is also included at the framework layer for communicating with the hardware abstraction layer.
The hardware abstraction layer encapsulates the Linux kernel driver, provides an interface upwards and shields the implementation details of the bottom hardware. In some examples, the hardware abstraction Layer includes a Radio Interface Layer (RIL) for passing instructions up or down.
The kernel layer is a layer between hardware and software. The kernel layer at least includes an SIM card driver (eSIM card driver, physical SIM card driver), a display driver, a camera driver, an audio driver, a sensor driver, and the like. In this embodiment, the kernel layer further includes a modem, and the modem interacts with the mobile network to transmit data such as voice and complete related functions such as calling and short message. The modem mainly processes digital signals, codec of voice signals, and a modem protocol, and the modem usually further includes a Smart Card Interface (SCI) driver. The Modem protocol, also called Modem communication protocol, includes modulation protocols (modulation protocols), error control protocols (error control protocols), data compression protocols (data compression protocols), and file transfer protocols.
The RIL is an interface layer between the framework layer and the kernel layer, and belongs to a hardware abstraction layer. The RIL may abstract the various services provided by the modem to provide an interface provided below the application framework. The RIL may provide services for upper layers to communicate, such as enabling applications like texting, telephony, eSIM card management, etc. to communicate with the modem.
Although the Android system is taken as an example for description in the embodiment of the present application, the basic principle is also applicable to electronic devices based on other operating systems.
For convenience of understanding, a method for managing a SIM card according to an embodiment of the present application is described below based on a layered architecture shown in fig. 9. Referring to fig. 10, which is a flowchart of a method for managing a SIM card according to an embodiment of the present application, where an eSIM card of an electronic device is already in an operating state, and a card slot occupied by the eSIM card is an auxiliary card slot, the method includes:
s1001: the kernel layer detects the card-holder state transition event.
The card holder state transition event includes a card holder insertion event and a card holder extraction event, and the specific detection method may refer to the description in the above embodiments, which is not described herein again.
S1002: and the kernel layer reports the card support state transformation event to the hardware abstraction layer.
When the kernel layer detects a card-tray state transition event, the kernel layer may report the card-tray state transition event to the hardware abstraction layer.
S1003: and the hardware abstraction layer transmits a first switching instruction to the kernel layer according to the card support state transformation event.
S1004: the kernel layer directs the switcher of the auxiliary card slot to the entity SIM card based on the first switching instruction and detects whether the entity SIM card exists on the auxiliary card slot.
The first switching instruction is used for controlling the switch on the auxiliary card slot to be switched from the pointing eSIM card to the pointing entity SIM card. The switch may be a functional module configured to switch between an eSIM card on a card slot (e.g., a secondary card slot) occupied by the eSIM card and a physical SIM card, where the electronic device enables the eSIM card when the switch is pointed at the eSIM card and enables the physical SIM card when the switch is pointed at the physical SIM card. The switch may have different implementations on different platforms. The first switching instruction may be carried in the conflict detection instruction, and is used to instruct the kernel layer to detect whether the eSIM card and the physical SIM card conflict, for example, to detect whether the physical SIM card exists on a card slot occupied by the eSIM card. In some examples, the collision detection instruction may be a first switch instruction to instruct the switch to switch.
The initiation of the first switching instruction includes multiple modes, in the application, the first switching instruction is directly initiated by a hardware abstraction layer as an example, and the hardware abstraction layer can directly issue the first switching instruction to a kernel layer after detecting a card support state conversion event, so as to realize the switching between the eSIM card and the entity SIM card. After receiving the first switching instruction, the kernel layer executes the first switching instruction, and reports a detection result whether the entity SIM card is in place or not in a card slot occupied by the eSIM card to the hardware abstraction layer.
It should be noted that, in other embodiments, the first switch instruction may also be initiated by the framework layer, for example, through an android.
S1005: and the kernel layer reports the detection result to the hardware abstraction layer.
In some embodiments, the time for reporting the detection result to the hardware abstraction layer by the kernel layer is different. For example, when the card support conversion event is a card support insertion event, the kernel layer directly obtains a detection result based on the conflict detection instruction and directly reports the detection result to the hardware abstraction layer; for another example, when the card-tray conversion event is a card-tray extraction event, after the kernel layer receives the conflict detection instruction, the kernel layer waits for the occurrence of the card-tray insertion event, acquires a detection result based on the conflict detection instruction, and reports the detection result to the hardware abstraction layer.
And when the switch points to the entity SIM card, the entity SIM card can stay in the network, and a detection result of whether the entity SIM card is in place in the auxiliary card slot is obtained and reported to the hardware abstraction layer.
S1006: and the hardware abstraction layer sends a second switching instruction to the kernel layer.
S1007: and the kernel layer points the switch of the auxiliary card slot to the eSIM card based on the second switching instruction so as to enable the eSIM card to be re-networked.
The second switching instruction is used for controlling the switch on the auxiliary card slot to switch from the pointing entity SIM card to the pointing eSIM card. In some embodiments, after receiving the detection result reported by the kernel layer, the hardware abstraction layer may further send a second switching instruction to the kernel layer, where the kernel layer controls the switch in the secondary card slot to switch from pointing to the entity SIM card to pointing to the eSIM card based on the second switching instruction, where the entity SIM card is disconnected from the network, and the eSIM card is relocated to the network.
S1008: and the hardware abstraction layer transmits the detection result to the application layer.
In some examples, the hardware abstraction layer may transmit the detection result to the framework layer through the framework layer interface and then to the application layer through the framework layer.
S1009: and when determining that the eSIM card conflicts with the entity SIM card according to the detection result, the application layer presents prompt information to the user.
S1010: and the application layer generates a conflict elimination instruction according to the conflict elimination operation triggered by the user.
As shown in fig. 6A and 6C, the user may trigger a collision resolution operation based on the collision resolution control, and the application layer generates a collision resolution instruction based on the collision resolution operation. For example, when the conflict resolution operation is an operation in which a user selects an eSIM card or a physical SIM card, the conflict resolution instruction may be to instruct the kernel layer to point the switch to the eSIM card or to the physical SIM card; when the conflict resolution operation is an operation in which a user selects a target card slot of the eSIM card, the conflict resolution instruction may be to instruct the kernel layer to switch the card slot occupied by the eSIM card to the target card slot (e.g., a master card slot).
S1011: the application layer transmits the conflict elimination instruction to the kernel layer
In some examples, the application layer may first send the conflict resolution instruction to the framework layer, and after receiving the conflict resolution instruction, the framework layer transmits the conflict resolution instruction to the hardware abstraction layer, and finally sends the conflict resolution instruction to the kernel layer by the hardware abstraction layer.
S1012: the kernel layer executes the conflict resolution instruction.
When the conflict resolution instruction is a SIM card selected by the user, for example, the SIM card selected by the user is a physical SIM card, the kernel layer may control the switch to switch from the pointing eSIM card to the pointing physical SIM card based on the conflict resolution instruction, so that the electronic device enables the physical SIM card. For example, when the user selects the valid SIM card as the eSIM card, the kernel layer does not control the switch to switch, so that the eSIM card continues to be in the working state.
When the conflict resolution instruction is a target card slot selected by the user for the eSIM card, the target card slot may be a master card slot, for example. The card slot occupied by the eSIM card is an auxiliary card slot, and when the entity SIM card exists on the auxiliary card slot, the entity SIM card conflicts with the eSIM card. The user can reallocate the card slot for the eSIM card based on the prompt message, for example, the card slot occupied by the eSIM card is switched to the main card slot, so that for the multi-card and multi-pass electronic device, the conflict between the eSIM card and the entity SIM card can be avoided, and the eSIM card and the entity SIM card can be enabled at the same time.
Of course, in other embodiments, the user may also take the physical SIM card out of the secondary card slot and place the physical SIM card on the primary card slot, thereby avoiding a conflict between the eSIM card and the physical SIM card, and thus enabling the eSIM card and the physical SIM card at the same time.
Based on the above description, embodiments of the present application provide a method for managing SIM cards, in which when an electronic device detects that there is a conflict between an eSIM card and an entity SIM card, the electronic device may present a prompt message to a user, so as to prompt the user of the conflict, so as to eliminate confusion of the user. Furthermore, the electronic equipment can also receive the SIM card selected by the user to take effect, so that the user can select the effective SIM card under the condition of the conflict, and the requirements of the user are met; the electronic equipment can also receive a card slot reselected by a user for the eSIM card, and then under the condition of conflict, the card slot occupied by the eSIM card is switched to the card slot selected by the user, so that the conflict between the eSIM card and the entity SIM card is avoided, the eSIM card and the entity SIM card are enabled at the same time, and the user experience is further improved.
Some embodiments of the present application also provide an electronic device, as shown in fig. 11, which may include: one or more processors 1102; a memory 1103; and one or more computer programs 1104, which may be connected by one or more communication buses 1105. Wherein the one or more computer programs 1104 are stored in the memory 1103 and configured to be executed by the one or more processors 1102, the one or more computer programs 1104 comprise instructions which may be used to perform the steps of the above-described method embodiments. Of course, the electronic device shown in fig. 11 may also include a display screen 1101. In some examples, the electronic device presents a conflict resolution interface to the user via the display screen 1101, receives a conflict resolution operation triggered by the user on a conflict resolution control, and so on.
In the embodiment of the present application, the electronic device may be further divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
The embodiment also provides a computer-readable storage medium, which includes instructions that, when run on an electronic device, cause the electronic device to execute a SIM card management method.
The present embodiment also provides a computer program product containing instructions, which, when run on an electronic device, causes the electronic device to perform the method in the above-mentioned embodiments.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in this embodiment, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit in the embodiments of the present embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present embodiment essentially or partially contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method described in the embodiments. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A management method of a SIM card is applied to an electronic device, and the method comprises the following steps:
when the electronic equipment detects a card support state change event, presenting a conflict elimination interface to a user, wherein the conflict elimination interface comprises a conflict elimination control;
the electronic equipment receives conflict elimination operation triggered by the user on the conflict elimination control;
and the electronic equipment eliminates the conflict between the eSIM card and the entity SIM card according to the conflict elimination operation.
2. The method of claim 1, wherein the user-triggered conflict resolution operation on the conflict resolution control comprises an operation of the user-selected eSIM card or physical SIM card; the electronic equipment eliminates the conflict between the eSIM card and the entity SIM card according to the conflict elimination operation, and the conflict elimination operation comprises the following steps:
the electronic device enables the user-selected eSIM card or physical SIM card.
3. The method of claim 1, wherein the user-triggered conflict resolution operation on the conflict resolution control comprises an operation of the user selecting a target card slot for the eSIM card; the electronic equipment eliminates the conflict between the eSIM card and the entity SIM card according to the conflict elimination operation, and the conflict elimination operation comprises the following steps:
and the electronic equipment switches the card slot occupied by the eSIM card into the target card slot.
4. The method of any of claims 1-3, wherein the conflict resolution interface further comprises a prompt; the electronic equipment receives a conflict resolution operation triggered by the user on the conflict resolution control, and the conflict resolution operation comprises the following steps:
and the electronic equipment receives conflict elimination operation triggered by the user on the conflict elimination control based on the prompt information.
5. The method of claim 4, wherein the prompt is further configured to prompt the user to change a card slot of the physical SIM card.
6. A management method of a SIM card is applied to an electronic device, wherein the electronic device comprises a kernel layer, a hardware abstraction layer and an application layer, and the method comprises the following steps:
the hardware abstraction layer receives a card-tray state conversion event detected by the kernel layer;
the hardware abstraction layer issues a conflict detection instruction to the kernel layer according to the card support state transformation event;
the hardware abstraction layer receives a detection result reported by the kernel layer, wherein the detection result is used for identifying whether an entity SIM card is placed in a card slot occupied by the eSIM card;
the hardware abstraction layer reports the detection result to the application layer and receives a conflict elimination instruction triggered by a user according to the prompt information of the application layer;
the hardware abstraction layer sends the conflict resolution instruction to the kernel layer to enable the kernel layer to execute the conflict resolution instruction.
7. The method of claim 6, wherein the conflict resolution instruction comprises a SIM card selected by the user; the hardware abstraction layer sends the conflict resolution instruction to the kernel layer so as to enable the kernel layer to execute the conflict resolution instruction, and the conflict resolution instruction comprises the following steps:
and the hardware abstraction layer sends the conflict elimination instruction to the kernel layer so as to enable the kernel layer to enable the SIM card selected by the user.
8. The method of claim 6, wherein the conflict resolution instruction comprises a target card slot selected by the user;
the hardware abstraction layer sends the conflict resolution instruction to the kernel layer so as to enable the kernel layer to execute the conflict resolution instruction, and the conflict resolution instruction comprises the following steps:
and the hardware abstraction layer sends the conflict elimination instruction to the kernel layer so that the kernel layer switches the card slot occupied by the eSIM card into the target card slot selected by the user.
9. The method of any of claims 6-8, wherein the cradle state transition event comprises a cradle insertion event.
10. The method of any of claims 6-8, wherein the cradle state transition event comprises a cradle pull-out event; the hardware abstraction layer receives the detection result reported by the kernel layer, and the method comprises the following steps:
and when the hardware abstraction layer receives the card holder insertion event detected by the kernel layer, receiving a detection result reported by the kernel layer.
11. The method of any of claims 6-10, wherein the conflict detection instruction is to instruct the kernel layer to enable a physical SIM card on a card slot occupied by the eSIM card;
the method further comprises the following steps:
and the hardware abstraction layer indicates the kernel layer to enable the eSIM card on the card slot occupied by the eSIM card according to the detection result reported by the kernel layer.
12. The method of any of claims 6-11, wherein the electronic device further comprises a frame layer; the hardware abstraction layer reports the detection result to the application layer, including:
and the hardware abstraction layer reports the detection result to the application layer through the framework layer.
13. The method according to any of claims 6-12, wherein the prompting message is used to prompt the user to select a SIM card; or, prompting the user to select a card slot occupied by the eSIM card.
14. An electronic device, comprising: a processor and a memory;
wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the method of any of claims 1-13.
15. A computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-13.
16. A computer program product, characterized in that, when the computer program product is run on a computer, the computer performs the method according to any of claims 1-13.
CN202111679436.4A 2021-12-31 2021-12-31 SIM card management method and electronic equipment Active CN114401508B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111679436.4A CN114401508B (en) 2021-12-31 2021-12-31 SIM card management method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111679436.4A CN114401508B (en) 2021-12-31 2021-12-31 SIM card management method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114401508A true CN114401508A (en) 2022-04-26
CN114401508B CN114401508B (en) 2023-04-28

Family

ID=81228957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111679436.4A Active CN114401508B (en) 2021-12-31 2021-12-31 SIM card management method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114401508B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114915307A (en) * 2022-07-14 2022-08-16 荣耀终端有限公司 SIM card communication circuit and electronic equipment
CN116489634A (en) * 2023-06-25 2023-07-25 深圳传音控股股份有限公司 Service processing method, intelligent terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351433A (en) * 2019-07-22 2019-10-18 中国联合网络通信集团有限公司 A kind of method, apparatus and terminal device of double card switching
WO2021175268A1 (en) * 2020-03-03 2021-09-10 华为技术有限公司 Method and apparatus for sharing mobile network hotspot, and hotspot sharing device
CN113498124A (en) * 2020-03-20 2021-10-12 华为技术有限公司 SIM card and eSIM card switching method and electronic equipment
CN113691270A (en) * 2020-05-18 2021-11-23 华为技术有限公司 SIM module management method and electronic equipment
CN113780976A (en) * 2021-08-09 2021-12-10 荣耀终端有限公司 Schedule conflict processing method, schedule conflict processing device, storage medium and software program product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351433A (en) * 2019-07-22 2019-10-18 中国联合网络通信集团有限公司 A kind of method, apparatus and terminal device of double card switching
WO2021175268A1 (en) * 2020-03-03 2021-09-10 华为技术有限公司 Method and apparatus for sharing mobile network hotspot, and hotspot sharing device
CN113498124A (en) * 2020-03-20 2021-10-12 华为技术有限公司 SIM card and eSIM card switching method and electronic equipment
CN113691270A (en) * 2020-05-18 2021-11-23 华为技术有限公司 SIM module management method and electronic equipment
WO2021233159A1 (en) * 2020-05-18 2021-11-25 华为技术有限公司 Sim management method and electronic device
CN113780976A (en) * 2021-08-09 2021-12-10 荣耀终端有限公司 Schedule conflict processing method, schedule conflict processing device, storage medium and software program product

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114915307A (en) * 2022-07-14 2022-08-16 荣耀终端有限公司 SIM card communication circuit and electronic equipment
CN116489634A (en) * 2023-06-25 2023-07-25 深圳传音控股股份有限公司 Service processing method, intelligent terminal and storage medium
CN116489634B (en) * 2023-06-25 2023-10-17 深圳传音控股股份有限公司 Service processing method, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN114401508B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
US9420409B2 (en) Near field communication device
US11133571B2 (en) Electronic apparatus and control method therefor
US9985351B2 (en) Multi-band antenna and electronic device for supporting the same
WO2021185105A1 (en) Method for switching between sim card and esim card, and electronic device
CN114401508B (en) SIM card management method and electronic equipment
JP5149516B2 (en) IC card, portable terminal and control method of portable terminal
US11122404B2 (en) Electronic device, external electronic device, and method of managing embedded subscriber identity modules of external electronic device
CN114462560B (en) Analog card switching method, electronic equipment and communication system
JP2014207710A (en) Wireless internet module, user terminal, and wireless communication method
CN107533530B (en) Electronic device operating method and electronic device supporting the same
US11330655B2 (en) User terminal including plurality of subscriber identity modules
CN111784335A (en) Analog card management method, analog card management device, storage medium, and electronic apparatus
EP4148615A1 (en) Near field communication (nfc) method and apparatus, and electronic device
CN106446111A (en) Data migration method and terminal
US9215752B2 (en) Electronic device with through-display near field communication capability
US20200396581A1 (en) Electronic device and method for displaying inquiry list of external electronic device in bluetoothtm network environment
US11503451B2 (en) Device and method for transmitting signals in plurality of frequency bands
KR102044677B1 (en) Wireless communication network registration method and terminal
CN113453214B (en) Communication control method and electronic device
CN110350934B (en) Multi-card terminal, communication method thereof and computer equipment
EP4207612A1 (en) Antenna configuration method and apparatus
EP4145875A1 (en) Smart card sharing method, electronic device, and computer-readable storage medium
CN106685485B (en) Signal processing method and device based on Near Field Communication (NFC)
KR102207866B1 (en) Electronic device and method for providing communication service
EP3641488B1 (en) Power sharing logic in a mobile terminal using a battery of a wireless communication module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant