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

SIM card management method and electronic equipment Download PDF

Info

Publication number
CN114401508B
CN114401508B CN202111679436.4A CN202111679436A CN114401508B CN 114401508 B CN114401508 B CN 114401508B CN 202111679436 A CN202111679436 A CN 202111679436A CN 114401508 B CN114401508 B CN 114401508B
Authority
CN
China
Prior art keywords
card
conflict
esim
sim card
user
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.)
Active
Application number
CN202111679436.4A
Other languages
Chinese (zh)
Other versions
CN114401508A (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

Landscapes

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

Abstract

The application discloses a management method of a SIM card and electronic equipment, and relates to the technical field of computers, wherein the method is applied to the electronic equipment and comprises the following steps: when the electronic equipment detects the card support state transition event, a conflict elimination interface is presented for the user, the conflict elimination interface comprises a conflict elimination control, the electronic equipment receives a conflict elimination operation triggered by the user on the conflict elimination control, and then the electronic equipment eliminates the conflict between the eSIM card and the entity SIM card based on the conflict elimination operation triggered by the user. According to the method, the conflict elimination interface is presented for 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 disclosure 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 becoming more and more intelligent, and the mobile phones can be networked based on user identity modules (Subscriber Identity Module, SIMs). 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 built in the mobile phone.
When the eSIM card of the mobile phone is in an activated state, a user pulls out the card holder of the mobile phone, places the solid SIM card into the card slot of the card holder, and then inserts the card holder into the mobile phone, and if the card slots occupied by the eSIM card and the solid SIM card are the same, the mobile phone can select the eSIM card or the solid SIM card by default to take effect. When the mobile phone defaults to enable the eSIM card, the user can be caused to think that the entity SIM card is damaged or the mobile phone fails; when the mobile phone defaults to enable the entity SIM card, if the eSIM card is already opened, but the user does not know the existence of the eSIM card, the eSIM of the user is always in an idle state, so that resource waste is caused.
As can be seen, default selection of the eSIM card or the physical SIM card by the mobile phone takes effect, which causes confusion, resource waste and poor user experience for the user.
Disclosure of Invention
The purpose of the application is to provide a management method of a user identity module and electronic equipment, and user experience is improved.
In order to achieve the above purpose, the present application adopts the following technical scheme:
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 device is in an activated state, the method comprising: when a card holder state transition event occurs, such as a card holder insertion event, the electronic device can 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 eliminating 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 existing between the eSIM card and the physical SIM card based on the conflict resolution operation triggered by the user.
In some possible implementations, the user-triggered conflict resolution operation for the conflict resolution control can be an operation of a user-selected eSIM card or a physical SIM card. When the conflict resolution operation is an operation in which the user selects an eSIM card, the electronic device enables the user-selected eSIM card to resolve the conflict. When the conflict elimination operation is an operation of selecting the physical SIM card by the user, the electronic equipment enables the physical SIM card selected by the user to eliminate the conflict.
In some possible implementations, the user-triggered conflict resolution operation for the conflict resolution control can be an operation by 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 into a target card slot so as to eliminate the conflict.
In some possible implementations, the conflict resolution interface also includes prompt information that may be used to guide the user in resolving conflicts. The electronic equipment receives the 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 prompting information is further used for prompting the user to replace the card slot of the physical SIM card, so that after the card slot occupied by the physical SIM card is different from the card slot occupied by the eSIM card, the conflict between the eSIM card and the physical SIM card can be eliminated.
In a second aspect, the present application provides a method for managing a SIM card, where the method is applied to an electronic device, and an operating system is running on the electronic device, where the operating system includes a kernel layer, a hardware abstraction layer, and an application layer, and the method includes: the hardware abstraction layer receives the card support state conversion event detected by the kernel layer; the hardware abstraction layer transmits conflict detection instructions 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 a physical 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 conflict elimination instructions to the kernel layer so that the kernel layer executes the conflict elimination instructions.
In the method, after a card support state conversion event is reported to a hardware abstraction layer by a kernel layer, a conflict detection instruction is issued to the kernel layer by the hardware abstraction layer, so that whether a conflict exists between an eSIM card and an entity SIM card is detected by the kernel layer, and the detection result is reported to an application layer. The application layer can prompt the user based on the detection result, and when the detection result represents that the 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 knows the conflict, and the confusion of the user is eliminated. And the prompt information can 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 instructions include a user-selected SIM card; the hardware abstraction layer sends conflict elimination instructions to the kernel layer so that the kernel layer executes the conflict elimination instructions, and the method comprises the following steps: the hardware abstraction layer sends conflict elimination instructions to the kernel layer so that the kernel layer enables the SIM card selected by the user.
In some possible implementations, the conflict resolution instructions include a target card slot selected by the user; the hardware abstraction layer sends conflict elimination instructions to the kernel layer so that the kernel layer executes the conflict elimination instructions, and the method comprises the following steps: 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 tray state transition event includes a tray insertion event.
In some possible implementations, the card holder state transition event includes a card holder unplug event; the hardware abstraction layer receives the detection result reported by the kernel layer, and the detection result comprises: 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 instructions are used to instruct the kernel layer to enable the physical SIM card on the card slot occupied by the eSIM card; the method further comprises the steps of: 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, including: the hardware abstract layer reports the detection result to the application layer through the framework layer.
In some possible implementations, the prompt information is used to prompt the user to select the 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, including: 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 one 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, performs the method of any one 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 is run on a computer.
It should be appreciated that the description of technical features, aspects, benefits or similar language in this application does not imply that all of the features and advantages may be realized with any single embodiment. Conversely, it should be understood that the description of features or advantages is intended to include, in at least one embodiment, the particular features, aspects, or advantages. Therefore, the description of technical features, technical solutions or advantageous effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and advantageous effects described in the present embodiment may also be combined in any appropriate manner. Those of skill in the art will appreciate that an embodiment may be implemented without one or more particular features, aspects, or benefits of a particular embodiment. In other embodiments, 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 an entity 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 diagram of a two-in-one card connector according to an embodiment of the present application;
fig. 5A is a schematic diagram of a single-card single-pass device according to an embodiment of the present application;
fig. 5B is a schematic diagram of a dual-card single-pass device according to an embodiment of the present application;
fig. 5C is a schematic diagram of a dual card dual pass device according to an embodiment of the present application;
FIG. 6A is a schematic diagram of a conflict resolution interface provided by 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 still another application scenario provided in an 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 another method for managing a SIM card according to an embodiment of the present application;
Fig. 11 is a schematic diagram of still another electronic device according to an embodiment of the present application.
Detailed Description
The terms first, second, third and the like in the description and in the claims and drawings are used for distinguishing between different objects and not for limiting the specified sequence.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
And under the condition that the electronic equipment activates the eSIM card, after the entity SIM card is inserted into a card slot of the electronic equipment, if the entity SIM card and the eSIM card of the electronic equipment share the same radio frequency resource, the electronic equipment can select one of the entity SIM card and the eSIM card of the electronic equipment by default to activate. When the electronic equipment defaults to activate the eSIM card, even if a user inserts the entity SIM card, the electronic equipment does not give any prompt, and the user can consider that the entity SIM card is damaged or the mobile phone fails; when the electronic device defaults to activate the entity SIM card, if the eSIM card is already opened, but the user does not know the existence of the eSIM card, the eSIM card is always in an idle state, so that resource waste is caused.
In view of this, the embodiments of the present application provide a method for managing a SIM card, which is performed by an electronic device. Specifically, the method comprises the following steps: when the card support state change event occurs, the electronic equipment detects whether the card slot occupied by the eSIM card is provided with the physical SIM card, and when the card slot occupied by the eSIM card is provided with the physical SIM card, the electronic equipment presents prompt information to a user, wherein the prompt information can be used for prompting the user that the card slot occupied by the physical SIM card is the same as the card slot occupied by the eSIM card arranged in the electronic equipment, and the auxiliary card slot is the same as the auxiliary card slot. Further, the electronic device can prompt the user to select one of the eSIM card and the entity SIM card through the prompt information, so that the electronic device enables the eSIM card or the entity 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 the conflict between the eSIM card and the physical SIM on the auxiliary card slot is avoided, and the eSIM card and the physical SIM card are used simultaneously.
For easy understanding, an application scenario according to an embodiment of the present application is described first, as shown in fig. 1, which is a schematic diagram of an application scenario provided by an embodiment of the present application. In this application scenario, the card holder state transition event may refer to the user inserting the card holder 501 into the electronic device 502, or may refer to the user removing the card holder 501 from the electronic device 502. In some examples, a user inserts a tray 501 with a physical SIM card into the electronic device 502, and then the electronic device 502 can detect the tray state change event, which in turn, detects whether the physical SIM is placed in the card slot occupied by the eSIM card. When the electronic equipment detects that the physical 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 conflict exists between the inserted entity SIM card and the eSIM card based on the prompt information, so that the confusion of the user can be eliminated, and the user experience is improved.
For clarity and conciseness in the description of the following embodiments, a brief description of the related art will be given first:
subscriber identity modules, which may also be referred to as SIM cards, may be generally classified into physical SIM cards and eSIM cards. The physical SIM card is used to implement a connection to a mobile network, such as an access to a global system for mobile communications (global system for mobilecommunications, GSM) network or a universal mobile telecommunications system (universal mobiletelecommunications system, UMTS) network. The subscriber identity module used in the LTE 3GPP standard may also be referred to as a universal subscriber identity module (universal subscriber identity module, USIM), which is also one of the physical SIM cards, which is a universal integrated circuit card (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 (random access memory, RAM), an electrically erasable programmable read only memory (electrically erasable programmable read only memory, EEPROM), and a communication interface. Wherein ROM, RAM, EEPROM and the communication interface are coupled to the CPU. In a 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 comprise at least 6 pins (also called pins) and the communication interface may comprise more pins. As shown in fig. 3, the diagram is a schematic diagram of pin distribution of a SIM card provided in the embodiment of the present application, where the SIM card includes 6 pins, which are respectively: power supply (VCC), reset (RST), clock (CLK), ground (GND), program Voltage (VPP), and DATA (I/O or DATA).
The physical SIM card may be used to store subscriber related data, including system raw data stored by the physical SIM card manufacturer, such as an International Mobile Subscriber Identity (IMSI); 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 during the use process, such as short messages, address books, position information when the position is registered last time, and the like.
eSIM cards are typically embedded inside the 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 a physical SIM card, an eSIM card can be switched numbers at will or an operator can be changed because the 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 downloading, installation, activation, deactivation and deletion of the configuration file of an operator are realized, and the configuration file is downloaded and installed to a terminal through a network. In another implementation the eSIM card can also be a functional unit of pure software.
The card slot may be a card slot into which a plurality of cards may be inserted, the card slot may include a card holder and a card holder, wherein the card holder is for fixing a position of at least one card, the card holder includes at least one card connector, and the card connector may be a SIM card connector or a memory card connector. In some examples, the card holder may be a dual card holder comprising a main card holder for holding a main card and a sub card holder for holding a sub card, based on which the card holder may comprise a main card connector and a sub card connector, the main card connector may be a SIM 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 clamping groove can be divided into a main clamping groove and an auxiliary clamping groove, wherein the main clamping groove is used for accommodating the main clamping support, and the auxiliary clamping groove is used for accommodating the auxiliary clamping support.
As shown in fig. 4, the structure of the two-in-one card connector provided in the embodiment of the present application includes 8 metal sheets, namely metal sheet 1, metal sheets 2, … and metal sheet 8, wherein the 8 metal sheets of the two-in-one card connector are used for one-to-one connection with 8 pins on a memory card and 6 pins on a SIM card. The two-in-one card connector further comprises 8 pins G1, G2, …, G8 respectively connected with the 8 metal sheets, 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 the two-in-one card connector is connected with a memory card, pins of the memory card are connected with metal sheets on the two-in-one card connector, and the metal sheets 1-8 are respectively connected with pins of the memory card: 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 with the solid SIM card shown in FIG. 3, the pins of the solid SIM card are connected with the metal sheets on the two-in-one card connector, and the metal sheets 1-8 are respectively connected with CLK, RST, VDD, VDD, DATA, VPP, GND, GND of the SIM card. Wherein, metal sheet 3 and metal sheet 4 are both connected to VDD, and metal sheet 7 and metal sheet 8 are both connected to GND.
An electronic device may be referred to as a terminal, a terminal device, a User Equipment (UE), or the like. The electronic device may be a cell phone, tablet, notebook, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (personal digital assistant, PDA), on Board Unit (OBU), wearable device (e.g., watch, bracelet, smart helmet, etc.), smart home device (e.g., electric cooker, stereo, home steward, etc.), augmented reality (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., two-card single-pass devices, three-card single-pass devices), and multi-card multi-pass devices (e.g., two-card double-pass devices, three-card three-way 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 and the multiple cards refers to an entity SIM card, and the electronic device in the embodiment of the present application supports at least one eSIM card, and at least one eSIM card and one entity SIM card share the same radio frequency resource. The single-card single-pass device, the multi-card single-pass device and the multi-card multi-pass device are described below.
As shown in fig. 5A, the schematic diagram of a single-card single-pass device provided in an 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, and when the physical SIM card is inserted into the card slot, the physical SIM card is connected to a baseband processor through the card connector. The physical SIM card and the eSIM card on the single-card, single-pass device share a radio frequency resource, that is, the single-card, single-pass device can only select one of the eSIM card and the physical SIM card after the physical SIM card is inserted into the single-card, single-pass device. One of the single card single pass devices will be selected by default for activation in order to effect a connection to the mobile network.
As shown in fig. 5B, the schematic diagram of a dual-card single-pass device provided in the embodiment of the present application includes a card slot into which two physical SIM cards can be inserted, where the card slot includes two card connectors, namely, a card connector 1 and a card connector 2, and both the card connector 1 and the card connector 2 can be inserted with the physical SIM cards. But only the physical SIM card on one of the card connector 1 and the card connector 2 can be used, and as an example, 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 being 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, the dual card single pass device can only select one of the eSIM card and the physical SIM card after the physical SIM card is inserted into the card connector 1 connected to the baseband processor. The two-card single-pass device will default to select one for activation in order to effect a connection to the mobile network.
As shown in fig. 5C, the schematic diagram of a dual-card dual-pass device provided in the embodiment of the present application includes a card slot into which two physical SIM cards can be inserted, where the card slot includes two card connectors, namely, a card connector 1 and a card connector 2, and both the card connector 1 and the card connector 2 can be inserted with the physical SIM cards. Unlike the two-card single-pass device, which includes 2 radio frequency resources, the card connector 1 and the card connector 2 are both connected to the baseband processor. In some examples, the physical SIM card on card connector 1 may share one radio frequency resource alone, and the physical SIM card on card connector 2 shares another radio frequency resource with an eSIM card on a two-card two-way device. When the physical SIM card is inserted into the card connector 2 connected to the baseband processor, the two-card two-way device can only select one of the eSIM card and the physical SIM on the card connector 2 for the card connector 2. The two-card two-way device will select one of them by default for activation.
It should be noted that the above description only uses 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 an example. In some examples, the multi-card, multi-pass device may be an M-card, N-pass device, M, N 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 connectors 2, …, card connector M, respectively, 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, T eSIM cards, respectively, or at least one eSIM card sharing radio frequency resources with the physical SIM cards on the plurality of card links. For example, the physical SIM inserted in the corresponding position of the card connector 1 and the eSIM card 1 share a radio frequency resource, the physical SIM inserted in the corresponding position of the card connector 2 and the eSIM card 2 share a radio frequency resource, and so on, the physical SIM inserted in the corresponding position of the card connector T and the eSIM card T share a radio frequency resource, where, in this case, M is not less than T, which is illustrated as an example, in other implementations of the present application, T may also be greater than M, where some eSIM cards in the T eSIM cards are independently coupled to the baseband chip, and independently occupy the radio frequency resource.
In order to facilitate understanding, the following describes a method for managing a SIM card according to the embodiment of the present application in conjunction with an application scenario shown in fig. 1.
When the electronic equipment detects the card support state transition event, the electronic equipment can detect whether the conflict exists between the eSIM card and the entity SIM card, and when the electronic equipment detects that the conflict exists between the eSIM card and the entity SIM card, the electronic equipment can present a conflict elimination interface for a user. The conflict elimination interface comprises prompt information and a conflict elimination control, a user can trigger a conflict elimination operation on the conflict elimination control based on the prompt information, and therefore the electronic equipment can eliminate the conflict between the eSIM card and the entity SIM card based on the conflict elimination 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 the target card slot selected by the user.
Fig. 6A is a schematic diagram of a collision resolution interface according to an embodiment of the present application. The conflict resolution interface includes a hint information 503, an eSIM card option 504, a physical SIM card option 505, and a submit control 506. The eSIM card option 504, the physical SIM card option 505 and the submit control 506 may be used as conflict elimination controls, and the prompt 503 may be "the sub-card is an eSIM card, and the newly inserted physical SIM card cannot be used simultaneously with the eSIM card, and please select a card type to be used.
In some examples, the user-triggered conflict resolution operation of the conflict resolution control may be an operation of a user selecting an eSIM card or an operation of a physical SIM card. For example, the user may click on the eSIM card option 504 or the physical SIM card option 505 based on the prompt 503, and then click on the submit control 506 to select the SIM card that is in effect, 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's click on the submit control 506.
Note 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 submit control 506 described above are merely one example of a conflict resolution control, and the conflict resolution control of the embodiments of the present application is not limited thereto.
Fig. 6B shows a schematic diagram of an electronic device transformed from an enabled eSIM card to an enabled physical SIM card. As can be seen in fig. 6B, the signal of the eSIM card in the status bar 610 of the electronic device changes from normal to "x", i.e., to abnormal; the signal of the physical SIM card changes from "x" to normal.
As shown in fig. 6C, this figure is a schematic diagram of yet another collision resolution interface provided in an embodiment of the present application. The conflict resolution interface includes a hint message 507, a card slot select area 508 occupied by an eSIM card, the card slot select 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 sub card slot 508b and the switch control 509 may be used as conflict elimination controls, the prompt message 507 may be "the sub card is an eSIM card, the newly inserted physical SIM card cannot be used simultaneously with the eSIM card, and the occupied card slot may be reselected for the eSIM card.
In some examples, the user-triggered conflict resolution operation for the conflict resolution control can be an operation by which the user selects a target card slot for the eSIM card. For example, the user may click on the main card slot 508a in the slot selection area 508 based on the prompt information 507, and then click on 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 switching control 509 by the user.
It should be noted that, in the example shown in fig. 6C, the electronic device 502 may be a multi-card multi-pass device, such as a dual-card dual-pass device. In parallel, the primary card slot 508a and secondary card slot 508b and the switch control 509 described above are merely one example of a conflict resolution control, and the conflict resolution control of the embodiments of the present application is not limited thereto.
Fig. 6D shows a schematic diagram of an electronic device being transformed from an enabled eSIM card to enable both an eSIM card and a physical SIM card. As can be seen in fig. 6D, the signal of the physical SIM card in the status bar 610 of the electronic device changes from "x" to normal, and the signal of the eSIM card in the status bar 610 of the electronic device remains normal.
Fig. 6E is a schematic diagram of yet another collision resolution interface according to an embodiment of the present application. The conflict resolution interface includes a prompt 510, where the prompt 510 may be "the card slot where the current physical SIM card is located is occupied by the eSIM card, if the physical SIM card needs to be used, please replace the card slot of the physical SIM card". Based on the prompt 510, the user may remove the card holder 501 from the electronic device 502, replace the location of the physical SIM card, and reinsert the physical SIM card into the electronic device 502 to use the physical SIM card.
After the user knows that there is a conflict between the eSIM card and the physical SIM card, and the user replaces the physical SIM card on another card slot, referring to fig. 6D, the signal of the physical SIM card in the status bar 610 of the electronic device changes from "x" to normal, and the signal of the eSIM card in the status bar 610 of the electronic device remains normal. It should be noted that, the conflict resolution interfaces shown in fig. 6A, 6C and 6E are merely exemplary diagrams, and of course, the conflict resolution interfaces shown in fig. 6A, 6C and 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 "the sub-card is an eSIM, the newly inserted physical SIM card cannot be used simultaneously with the eSIM card, please select the card type to be used, or you can also 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 a scene of starting up the electronic equipment. Fig. 6F is a schematic diagram of another application scenario provided in an 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 boot. After the electronic device is started, the electronic device detects whether the physical SIM card is placed in the card slot occupied by the eSIM card, and after the eSIM card collides with the physical SIM card, the electronic device can present a conflict elimination interface shown in any one of fig. 6A, 6C and 6E to a user so that the user knows the conflict and prompts the user how to resolve the conflict.
It should be noted that the above application scenario is merely an example introduction, and the method for managing the SIM card provided in the embodiments of the present application is not limited to the above application scenario, for example, the method for managing the SIM card may also be applied to a scenario where the electronic device exits from the flight mode.
In order to facilitate understanding, taking an application scenario shown in fig. 1 as an example, a method for managing a SIM card provided in an embodiment of the present application is described below. As shown in fig. 7, the method for managing the SIM card includes:
S701: the electronic device activates the eSIM card.
After the electronic device activates the eSIM card, the eSIM card changes from a disconnected state to an operating state. The operating state may also be referred to as enabling the eSIM card, which may be that the eSIM card is connected to the 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/baseband chip, and the electronic device cannot connect to the mobile network based on the eSIM card. Similarly, a 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 connect to the mobile network based on the eSIM card.
S702: and the electronic equipment detects a card tray pulling-out event and directs a switcher of a card slot occupied by the eSIM card to the entity SIM card.
The switch may be a functional module configured to switch between an eSIM card and a physical SIM card on a card slot (e.g., a secondary card slot) occupied by the eSIM card, the electronic device enabling the eSIM card when the switch is directed to the eSIM card and enabling the physical SIM card when the switch is directed to the physical SIM card.
After the electronic device switches the switch from pointing to the eSIM card to pointing to the physical SIM card, the eSIM card drops off the network.
S703: the electronic equipment detects a card holder insertion event and detects whether the physical SIM card is in place through the switcher.
In some examples, the electronic device may send a switch instruction to an underlying layer (e.g., a kernel layer), and the 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 inserting event and the card holder extracting event may be card holder state changing events. The card tray insertion event refers to an event in which a card tray is inserted into the electronic device, and the card tray extraction event refers to an event in which a card tray is taken out from the electronic device. In some examples, the card slot further includes a metal spring plate and a pin DET for detecting hot plug of the card holder, the metal spring plate is used for connecting a System on a Chip (SOC), the metal spring plate is connected with a high level signal through a resistor, when the card holder is not inserted in the card slot, the metal spring plate is pulled up to a high level, and then the detected pin DET is at a high level; when the card support is inserted into the card slot, the metal elastic sheet deforms to further cause the metal elastic sheet to be grounded, the metal elastic sheet is at a low level, and the detected pin DET is at a low level. Based on this, the electronic device can detect whether a card holder state transition event exists by detecting a signal or a signal change of the pin DET.
It should be noted that the above is merely an example of detecting a card holder state transition event by the electronic device, and those skilled in the art may select other ways to detect the card holder 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 first switched to point to the eSIM, so that the eSIM card is re-resident on the network, so that the electronic device can connect with the mobile network through the eSIM card.
S705: when the card slot occupied by the eSIM card exists in the solid SIM card, executing S706; when the physical SIM card does not exist in the card slot occupied by the eSIM card, S707 is performed.
Taking a card slot occupied by an eSIM card as a sub-card slot as an example, the electronic device can switch a switcher on the sub-card slot from pointing to an eSIM card to pointing to an entity SIM card, disable the eSIM card, change the eSIM card from a working state to a disconnection state, and then enable the entity SIM card on the sub-card slot, thereby obtaining a detection result of whether the entity SIM card exists on the sub-card slot. In some examples, the electronic device can also re-enable the eSIM card on the secondary card slot after the detection result, such that the eSIM is restored to the mobile network.
The physical SIM card and the eSIM card share a radio frequency resource, and when the detection result represents that the physical SIM card exists in the auxiliary card slot, the physical SIM card and the eSIM card can collide; when the detection result indicates that the physical SIM card does not exist in the auxiliary 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 information to the user.
When detecting that the solid SIM card exists in the card slot occupied by the sSIM card, the electronic device can present prompt information to the user to prompt the user that the solid SIM card inserted by the user collides with the eSIM card, so that the user can know that the eSIM card exists in the electronic device, 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 selects the effective entity SIM card or eSIM card according to the user so as to enable the effective entity SIM card or eSIM card instead of enabling one SIM card by default, so that the personalized requirement 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 be referred to fig. 6A, fig. 6C, and fig. 6D, which are not described herein again.
S707: the electronic device normally uses eSIM cards.
When detecting that the physical SIM card does not exist in the card slot occupied by the eSIM card (for example, the user does not insert the physical SIM card or inserts the physical SIM card into the main card slot), the electronic device continues to keep the working state of the eSIM card, and is connected to the mobile network through the eSIM card. When the electronic device is a dual-card dual-pass device, if the user inserts the physical SIM card into the main card slot, the electronic device can enable the eSIM card and the physical SIM card at the same time.
In this embodiment, the structure of the electronic device may be shown in fig. 8, and fig. 8 is a schematic structural diagram of the electronic device according to the 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 (universal serial bus, USB) interface 130, a charge 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, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc., such as a card slot.
The configuration illustrated in the present embodiment does not constitute a specific limitation on the electronic apparatus. In other embodiments, the electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, in this application, the processor may instruct: activating an eSIM card, detecting a card support conversion event, and prompting a user when detecting that a card slot occupied by the eSIM card exists in the solid SIM 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 operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the 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 the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The connection relationship between the modules shown in the present embodiment is merely illustrative, and the configuration of the electronic device is not limited. In other embodiments of the present application, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
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, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into 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 for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. 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 provided 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 the 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 transmits the demodulated low frequency baseband signal to the 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 sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images 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 module, independent of the processor 110.
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. A series of graphical user interfaces (graphical user interface, GUIs) may be displayed on the display 194 of the electronic device, all of which are home screens of the electronic device. Generally, the size of the display 194 of an electronic device is fixed and only limited controls can be displayed in the display 194 of the electronic device. A control is a GUI element that is a software component contained within an application program that controls all data processed by the application program and interactive operations on that data, and a user can interact with the control by direct manipulation (direct manipulation) to read or edit information about the application program. In general, controls may include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and the like.
The SIM card interface 195 is used to connect to a SIM card, such as the card slot described above. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device. The electronic device may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. 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 interacts with the mobile network through the SIM card, so that the functions of communication, data communication and the like are realized. The SIM card comprises an entity SIM card and an eSIM card, wherein the eSIM card can be embedded in the electronic equipment and cannot be separated from the electronic equipment.
In addition, an operating system is run on the components. An operating application may be installed on the operating system.
The operating system of the electronic device may employ a layered architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of an electronic device is illustrated. Fig. 9 is a software structural block diagram of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. 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, etc.
The framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The framework layer includes some predefined functions. The framework layer can comprise double-card management and SIM card protocol, wherein the double-card management comprises double-card double-pass/double-standby, SIM card management, whole network management and hot plug management; the SIM card protocol includes a universal card protocol interface, a SIM card toolkit, and 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 is used for packaging the Linux kernel driver, providing an interface upwards and shielding the implementation details of the bottom hardware. In some examples, the hardware abstraction layer includes a wireless interface layer (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 comprises a 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, so as to complete related functions such as calling and short messages. The modem primarily handles digital signals, the encoding and decoding of speech signals, and the modem protocol, and typically also includes a smart card (smart card interface, SCI) driver. Among them, modem protocols, also referred to as Modem communication protocols, include modulation protocols (modul protocols), error control protocols (error control protocols), data compression protocols (datacompression protocols), file transfer protocols, and the like.
The RIL is an interface layer between a framework layer and a kernel layer, and belongs to a hardware abstraction layer. The RIL can abstract various services provided by the modem to interfaces provided by the application framework below. The RIL may provide communication services for upper layers, such as enabling applications for sms, talk, eSIM card management, etc. to communicate with the modem.
It should be noted that, although the embodiment of the present application is described taking the Android system as an example, the basic principle is equally applicable to electronic devices based on other operating systems.
In the following, for ease of understanding, a method for managing a SIM card according to an embodiment of the present application is described based on a hierarchical architecture shown in fig. 9. Referring to fig. 10, the flowchart of a method for managing a SIM card provided by the embodiments of the present application, where an eSIM card of an electronic device is in a working state, a card slot occupied by the eSIM card is a secondary card slot, and the method includes:
s1001: the kernel layer detects a card holder state transition event.
The card holder state change event includes a card holder insertion event and a card holder extraction event, and the specific detection method may be referred to the description in the above embodiment, which is not repeated herein.
S1002: the kernel layer reports the card support state transition event to the hardware abstraction layer.
When the kernel layer detects the card support state transformation event, the kernel layer can report the card support transformation event to the hardware abstraction layer.
S1003: and the hardware abstraction layer issues a first switching instruction to the kernel layer according to the card support state transformation event.
S1004: based on the first switching instruction, the kernel layer directs the switcher of the auxiliary card slot to the physical SIM card and detects whether the physical SIM card exists in the auxiliary card slot.
The first switching instruction is used for controlling the switcher on the auxiliary card slot to switch from pointing to the eSIM card to pointing to the physical SIM card. The switch may be a functional module for switching between an eSIM card and a physical SIM card on a card slot (e.g., a secondary card slot) occupied by the eSIM card, the electronic device enabling the eSIM card when the switch is directed to the eSIM card and enabling the physical SIM card when the switch is directed to the physical SIM card. The switch may have different implementations on different platforms. The first switching instruction may be carried in a conflict detection instruction, which is used for indicating the kernel layer to detect whether the eSIM card and the physical SIM card conflict, for example, whether the physical SIM card exists in a card slot occupied by the eSIM card. In some examples, the collision detection instruction may be a first switching instruction for instructing the switch to switch.
The initiation of the first switching instruction includes various modes, in this application, taking the direct initiation of the first switching instruction by the hardware abstraction layer as an example, the hardware abstraction layer can directly issue the first switching instruction to the kernel layer after detecting the card support state transition event, so as to realize the switching between the eSIM card and the entity SIM card. After the kernel layer receives the first switching instruction, the kernel layer executes the first switching instruction and reports a detection result of whether the physical SIM card exists in the card slot occupied by the eSIM card to the hardware abstraction layer.
It should be noted that, in other embodiments, the first switching instruction may also be initiated by the framework layer, for example, through an android.
S1005: the kernel layer reports the detection result to the hardware abstraction layer.
In some embodiments, after the kernel layer obtains the detection result, the timing of reporting to the hardware abstraction layer is different. For example, when the card holder conversion event is a card holder 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 holder conversion event is a card holder extraction event, after the kernel layer receives the conflict detection instruction, the kernel layer waits until a card holder insertion event occurs, acquires a detection result based on the conflict detection instruction, and reports the detection result to the hardware abstraction layer.
When the card holder insertion event occurs, the kernel layer controls the switcher on the auxiliary card slot to switch from pointing to the eSIM card to pointing to the physical SIM card based on the first switching instruction, the eSIM card drops off the network at the moment, and after the switcher points to the physical SIM card, the physical SIM card stays on the network, and a detection result of whether the auxiliary card slot has the physical SIM card in place is obtained and reported to the hardware abstraction layer.
S1006: the hardware abstraction layer sends a second switching instruction to the kernel layer.
S1007: the kernel layer directs the switcher of the auxiliary card slot to the eSIM card based on the second switching instruction so as to enable the eSIM card to reside on the network again.
The second switching instruction is used for controlling the switcher on the auxiliary card slot to switch from pointing to the physical SIM card to pointing to the 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 on the sub-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 drops from the network, and where the eSIM card resides again.
S1008: the hardware abstract layer passes 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 the detection result is transmitted to the application layer through the framework layer.
S1009: and when the application layer determines that the eSIM card and the entity SIM card conflict, presenting prompt information to a user.
S1010: the application layer generates a conflict elimination instruction according to a conflict elimination operation triggered by a user.
As shown in fig. 6A and 6C above, the user may trigger a conflict resolution operation based on the conflict resolution control, based on which the application layer generates conflict resolution instructions. For example, when the conflict resolution operation is an operation in which the user selects an eSIM card or a physical SIM card, the conflict resolution instructions may be used to instruct the kernel layer to direct the switch to the eSIM card or to the physical SIM card; when the conflict resolution operation is an operation in which the user selects a target card slot of the eSIM card, the conflict resolution instruction may be used to instruct the kernel layer to switch the card slot occupied by the eSIM card to the target card slot (e.g., the main card slot).
S1011: the application layer transparently transmits conflict elimination instructions to the kernel layer
In some examples, the application layer may first send the conflict resolution instruction to the framework layer, and after the framework layer receives the conflict resolution instruction, the conflict resolution instruction is transmitted to the hardware abstraction layer, and finally sent to the kernel layer by the hardware abstraction layer.
S1012: the kernel layer executes conflict resolution instructions.
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 pointing to the eSIM card to pointing to the physical SIM card based on the conflict resolution instruction, so that the electronic device enables the physical SIM card. When the user selects the effective SIM card as the eSIM card, the kernel layer does not control the switcher to switch, so that the eSIM card is kept in a working state.
When the conflict resolution instruction is a target card slot selected by the user for the eSIM card, for example, the target card slot may be a master card slot. The card slot occupied by the eSIM card is a sub-card slot, and when the physical SIM card exists in the sub-card slot, the physical SIM card and the eSIM card have conflict. The user can allocate the card slot for the eSIM card again based on the prompt information, for example, the card slot occupied by the eSIM card is switched to the main card slot, and for the multi-card multi-pass electronic equipment, the conflict between the eSIM card and the entity SIM card can be avoided, so that the eSIM card and the entity SIM card are enabled simultaneously.
Of course, in other embodiments, the user may also take the physical SIM card out of the secondary card slot and place it on the primary card slot, so as to avoid collision between the eSIM card and the physical SIM card, thereby implementing the simultaneous enabling of the eSIM card and the physical SIM card.
Based on the above description, the embodiments of the present application provide a method for managing a SIM card, where 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 which is selected to be effective by the user, and further enables the user to select the SIM card which is effective under the condition of the conflict, thereby meeting the requirements of the user; the electronic device can also receive the card slot reselected by the user for the eSIM card, so that under the condition of the conflict, the card slot occupied by the eSIM card is switched to the card slot selected by the user, 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, each of which may be connected via 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 include instructions that can be used to perform the various steps in the method embodiments described above. Of course, the electronic device shown in FIG. 11 may also include a display 1101. In some examples, the electronic device presents a conflict resolution interface to the user through the display 1101, receives a conflict resolution operation triggered by the user on a conflict resolution control, and the like.
The embodiment of the application may also divide the functional modules of the electronic device according to the above 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 modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
The present embodiment also provides a computer-readable storage medium including instructions therein, which when executed on an electronic device, cause the electronic device to perform a method of managing a SIM card.
The present embodiment also provides a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of the above embodiments.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
In the several embodiments provided in this embodiment, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present embodiment may be integrated in one processing unit, each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present embodiment may be essentially or a part contributing 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, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in the respective embodiments. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely a specific embodiment of the present application, but the protection 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 in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method for managing a SIM card, the method being applied to an electronic device, the method comprising:
when the electronic equipment detects a card holder state transition event, a conflict detection instruction is generated, wherein the conflict detection instruction is used for indicating a kernel layer of the electronic equipment to detect whether a conflict exists between an eSIM card and an entity SIM card; the conflict detection instruction comprises a first switching instruction, wherein the first switching instruction is used for controlling a switcher corresponding to a card slot occupied by an eSIM card, and switching from pointing to the eSIM card to pointing to an entity SIM card, so that the electronic equipment is switched from enabling the eSIM card to enabling the entity SIM card, and whether the eSIM card and the entity SIM card have conflict or not is detected;
the electronic equipment generates a second switching instruction, wherein the second switching instruction is used for controlling a switcher corresponding to a card slot occupied by the eSIM card, and the switcher is switched from pointing to the entity SIM card to pointing to the eSIM card so as to enable the electronic equipment to switch from enabling the entity SIM card to enabling the eSIM card;
the electronic equipment acquires a detection result corresponding to the conflict detection instruction, wherein the detection result is used for identifying whether a card slot occupied by the eSIM card is provided with an entity SIM card or not, and presenting a conflict elimination interface to a user, and 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 for the conflict resolution control comprises an operation of the user-selected eSIM card or a physical SIM card; the electronic device eliminates the conflict between the eSIM card and the entity SIM card according to the conflict elimination operation, and 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 for the conflict resolution control comprises an operation by the user to select a target card slot for the eSIM card; the electronic device eliminates the conflict between the eSIM card and the entity SIM card according to the conflict elimination operation, and comprises the following steps:
and the electronic equipment switches the card slot occupied by the eSIM card into the target card slot.
4. A method according to any one of claims 1-3, wherein the conflict resolution interface further comprises a prompt; the electronic device receiving a conflict resolution operation triggered by the user on the conflict resolution control, including:
And the electronic equipment receives conflict elimination operation triggered by the conflict elimination control based on the prompt information.
5. The method of claim 4, wherein the prompting message is further used to prompt the user to replace a card slot of the physical SIM card.
6. A method for managing a SIM card, the method being applied to an electronic device, the electronic device including a kernel layer, a hardware abstraction layer, and an application layer, the method comprising:
the hardware abstraction layer receives the card support 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 conflict detection instruction is used for indicating the kernel layer to detect whether the eSIM card and the entity SIM card have conflict or not; the conflict detection instruction comprises a first switching instruction, wherein the first switching instruction is used for indicating a switcher corresponding to a card slot occupied by the kernel layer control eSIM card, and switching from pointing to the eSIM card to pointing to an entity SIM card, so that the electronic equipment is switched from enabling the eSIM card to enabling the entity SIM card, and whether the eSIM card and the entity SIM card conflict is detected;
The hardware abstraction layer sends a second switching instruction to the kernel layer, so that the kernel layer controls a switcher corresponding to a card slot occupied by an eSIM card based on the second switching instruction to switch from pointing to the entity SIM card to pointing to the eSIM card, and the electronic equipment is enabled to enable the eSIM card from enabling the entity SIM card;
the hardware abstraction layer receives a detection result obtained by the kernel layer based on the conflict detection instruction, wherein the detection result is used for identifying whether a physical 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 elimination instruction to the kernel layer so that the kernel layer executes the conflict elimination instruction.
7. The method of claim 6, wherein the conflict resolution instruction comprises the user-selected SIM card; the hardware abstraction layer sending the conflict resolution instruction to the kernel layer to cause the kernel layer to execute the conflict resolution instruction, comprising:
and the hardware abstraction layer sends the conflict elimination instruction to the kernel layer so that the kernel layer enables the SIM card selected by the user.
8. The method of claim 6, wherein the conflict resolution instruction comprises the user selected target card slot;
the hardware abstraction layer sending the conflict resolution instruction to the kernel layer to cause the kernel layer to execute the conflict resolution instruction, comprising:
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 claim 6, wherein the collet state transition event comprises a collet insert event.
10. The method of claim 6, wherein the collet state transition event comprises a collet extraction event; the hardware abstraction layer receives the detection result reported by the kernel layer, and the detection result comprises:
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 claim 6, wherein the conflict detection instructions are configured 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 steps of:
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 claim 6, 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 one of claims 6-12, wherein the prompting message is used for prompting 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 which, when run on an electronic device, perform the method of 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 CN114401508A (en) 2022-04-26
CN114401508B true 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)

Families Citing this family (2)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (3)

* 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
CN113423106B (en) * 2020-03-03 2023-08-22 华为技术有限公司 Mobile network hotspot sharing method and device and hotspot sharing equipment
CN113498124B (en) * 2020-03-20 2023-02-28 华为技术有限公司 SIM card and eSIM card switching method and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN114401508A (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN114401508B (en) SIM card management method and electronic equipment
CN109195189B (en) Dual-card switching method and device
US9985351B2 (en) Multi-band antenna and electronic device for supporting the same
CN113498124B (en) SIM card and eSIM card switching method and electronic equipment
CN114462560B (en) Analog card switching method, electronic equipment and communication system
EP2775739B1 (en) Near-field communications and routing
JP5149516B2 (en) IC card, portable terminal and control method of portable terminal
US10985786B2 (en) Method for multiband communication using single antenna and electronic device therefor
US11968150B2 (en) Method for controlling frequency band for communication and electronic device thereof
CN106849987A (en) A kind of antenna switching control method and terminal
JP2014207710A (en) Wireless internet module, user terminal, and wireless communication method
US11330655B2 (en) User terminal including plurality of subscriber identity modules
CN103988572A (en) Near field communications-triggering for wireless display/docking
KR102044677B1 (en) Wireless communication network registration method and terminal
US11503451B2 (en) Device and method for transmitting signals in plurality of frequency bands
CN102184446A (en) Mobile phone film card used for radio frequency-subscriber identity module (RF-SIM) card mobile phone payment
CN104010353B (en) A kind of information processing method and electronic equipment
CN105490697A (en) Electronic equipment and information processing method
EP2744249B1 (en) Method for activating insim chip in mobile terminal and mobile terminal therefor
CN103164371A (en) Data processing method, antenna supplying method and electronic devices
KR102207866B1 (en) Electronic device and method for providing communication service
CN112242863B (en) Communication device and antenna switching method
CN115278610B (en) Communication method, communication device, electronic apparatus, and readable storage medium
EP3641488B1 (en) Power sharing logic in a mobile terminal using a battery of a wireless communication module
CN109586755A (en) A kind of communication device, communication memory devices, switching method and terminal device

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