Physical SIM card detection method and device, electronic equipment and storage medium

By judging the current operation type and keeping power on in the eSIM card enabled state, the problem of failure of profile operation caused by power off the eSIM card is solved, and the security detection of the physical SIM card is realized.

CN119767339AActive Publication Date: 2025-04-04HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311290098.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-04-04
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

When the eSIM card is enabled, when the physical SIM card is detecting, the eSIM card is performing a profile operation, and the power off causes the profile operation to fail.

Method used

When the card insertion operation is detected in the eSIM card enabled state, the current operation type information of the eSIM card is obtained. If the eSIM card is performing a profile operation, keep the eSIM card powered up and do not perform the detection operation of the physical SIM card until the profile operation is completed.

Benefits of technology

Avoid the failure of profile operation caused by power-off of the eSIM card, and ensure that the profile operation performed by the eSIM card can be completed normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119767339A_ABST
    Figure CN119767339A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a physical SIM card detection method and device, electronic equipment and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: detecting card insertion operation on a card slot under the condition that an eSIM card on the card slot is in an enabled state; when a card insertion operation is detected on the card slot, obtaining operation type information of an operation currently executed by the eSIM card; when the operation type information indicates that the operation currently executed by the eSIM card is profile operation, the eSIM card is kept powered on, and detection operation on a physical SIM card on the card slot is not executed. According to the embodiment of the invention, when the eSIM card on the card slot is in the enabled state and the card insertion operation is detected on the card slot, whether the eSIM card currently executes the profile operation is judged, and when the eSIM card currently executes the profile operation, the eSIM card is not powered off, so that normal execution of the profile operation can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a detection method, device, electronic device and storage medium for a physical SIM (Subscriber Identity Module) card. Background Art

[0002] The eSIM (embeded Subscriber Identity Module) card is a virtual SIM card that can be downloaded to electronic devices via the Internet. The functionality of an eSIM card is the same as that of an ordinary physical SIM card, allowing users to use electronic devices to make calls, send and receive text messages, access the Internet, etc. without inserting a physical SIM card. For electronic devices, the same card slot can correspond to a physical SIM card and an eSIM card, but the physical SIM card and the eSIM card cannot be enabled at the same time. When the eSIM card is enabled, when a card insertion operation is detected on the card slot corresponding to the eSIM card, it will trigger an operation to detect whether there is a physical SIM card in the card slot. If there is a physical SIM card in the card slot, a pop-up window will prompt that the eSIM card and the physical SIM card cannot be used at the same time.

[0003] In the related art, when detecting whether there is a physical SIM card in the card slot corresponding to the eSIM card, it is necessary to first power off the eSIM card and then power on the physical SIM card. If the physical SIM card is powered on successfully, it is determined that there is a physical SIM card in the card slot.

[0004] However, during the above detection process, if the eSIM card is performing a profile operation, such as downloading, activating, deactivating, deleting, etc., the profile operation performed by the eSIM card fails because the eSIM card has been powered off. Summary of the invention

[0005] The embodiments of the present application provide a physical SIM card detection method, device, electronic device, and storage medium, which can avoid the failure of a profile operation performed by an eSIM card when performing physical SIM card detection when an eSIM card is enabled.

[0006] An embodiment of the present application provides a SIM card detection method, the method comprising: when an eSIM card in the card slot is in an enabled state, the electronic device detects a card insertion operation on the card slot, when the card insertion operation is detected on the card slot, obtaining operation type information of the operation currently performed by the eSIM card, when the operation type information indicates that the operation currently performed by the eSIM card is a profile operation, the electronic device keeps the eSIM card powered on, and does not perform a detection operation on the physical SIM card in the card slot.

[0007] The operation type includes profile operation and non-profile operation, etc. The operation type information is information that can indicate the operation currently being performed by the electronic identification.

[0008] The method provided in the embodiment of the present application does not forcibly power off the eSIM card when the eSIM card in the card slot is in an enabled state and a card insertion operation is detected in the card slot. Instead, it determines whether the eSIM card is currently executing a profile operation. If the eSIM card is currently executing a profile operation, the eSIM card is kept powered on, thereby avoiding the failure of the executed profile operation due to the power-off of the eSIM card.

[0009] In a possible implementation of the present application, after the electronic device keeps the eSIM card powered on and does not perform a detection operation on the physical SIM card in the card slot, the LPA (Local Profile Assistant) in the electronic device will also detect whether the profile operation performed by the eSIM card is completed. When it is detected that the eSIM card has completed the profile operation, updated operation type information is generated, and the electronic device obtains the updated operation type information of the eSIM card. In response to the updated operation type information indicating that the eSIM card is not currently performing the profile operation, the electronic device powers off the eSIM card, and in response to the eSIM card being powered off successfully, the electronic device performs a detection operation on the physical SIM card in the card slot.

[0010] The method provided in the embodiment of the present application continuously detects the profile operation currently executed by the eSIM card after the eSIM card currently executes the profile operation without powering off the eSIM card. When it is detected that the eSIM card has completed the profile operation, the operation type information of the eSIM card is updated, so that the electronic device can control the eSIM card to power off based on the updated operation type information, thereby realizing the detection of the physical SIM card.

[0011] In another possible implementation of the present application, when the operation type information indicates that the eSIM card is not currently performing a profile operation, the electronic device powers off the eSIM card. In response to the eSIM card being powered off successfully, the electronic device performs a detection operation on the physical SIM card in the card slot.

[0012] The method provided in the embodiment of the present application controls the eSIM card to be powered off when the eSIM card is not currently performing a profile operation, thereby realizing detection of the physical SIM card.

[0013] In another possible implementation of the present application, when the electronic device obtains the operation type information of the operation currently performed by the eSIM card, it can receive an indication message sent by the LPA containing the operation type information of the operation currently performed by the eSIM card, and then obtain it from the indication message; the electronic device can also query the parameter value of the target configuration parameter of the LPA, and then determine the operation type information of the operation currently performed by the eSIM card according to the parameter value of the target configuration parameter.

[0014] The target configuration parameter may be a parameter of the prop item. LPA is used to manage the eSIM card. By interacting with LPA, the operation type information of the operation currently performed by the eSIM card can be obtained, so as to determine whether to power off the eSIM card based on the operation type information of the operation currently performed by the eSIM card, so as to avoid the profile operation being unable to be performed normally due to the power off of the eSIM card.

[0015] In another possible implementation of the present application, the electronic device determines the operation type information of the operation currently performed by the eSIM card based on the parameter value of the target configuration parameter. Specifically, when the parameter value of the target configuration parameter is a first value, the electronic device determines that the operation type information of the operation currently performed by the eSIM card is profile operation information; when the parameter value of the target configuration parameter is a second value, the electronic device determines that the operation type information of the operation currently performed by the eSIM card is non-profile operation information.

[0016] The first value and the second value can be set by a technician and can be in the form of a string, for example, the first value is true and the second value is false; they can also be in the form of a number, for example, the first value can be 1 and the second value can be 2, etc.

[0017] The method provided in the embodiment of the present application sets different parameter values ​​for the target configuration items and assigns different meanings to different parameter values, so that the electronic device can determine the operation currently performed by the electronic device according to the parameter value of the target configuration parameter.

[0018] In another possible implementation of the present application, when the electronic device performs a detection operation on the physical SIM card on the card slot, the electronic device first switches the enabling card on the card slot to the physical SIM card. In response to the enabling card on the card slot being successfully switched to the physical SIM card, the electronic device then powers on the physical SIM card. In response to the successful power-on of the physical SIM card, the electronic device determines that there is a physical SIM card in the card slot, and then powers off the physical SIM card. In response to the successful power-off of the physical SIM card, the electronic device switches the enabling card on the card slot to the eSIM card. In response to the successful switching of the enabling card on the card slot to the eSIM card, the electronic device powers on the eSIM card to enable the eSIM card.

[0019] The method provided in the embodiment of the present application detects whether there is a physical SIM card in the card slot by powering on the physical SIM card. If there is a physical SIM card in the card slot, the physical SIM card can be powered on successfully. Otherwise, even if the enabling card in the card slot is switched to a physical SIM card, if there is no physical SIM card in the card slot, the physical SIM card cannot be powered on successfully, thereby providing a method for detecting a physical SIM card.

[0020] In another possible implementation of the present application, when the electronic device detects that there is a physical SIM card in the card slot and powers on the eSIM card, it will also generate a prompt message, which is used to prompt that the physical SIM card and the eSIM card cannot be used at the same time.

[0021] The method provided in the embodiment of the present application, when the eSIM card is in an enabled state, if it is detected that a physical SIM card is inserted into the card slot, the cards required to be enabled at this time include not only the eSIM card but also the physical SIM card. Since the eSIM card and the physical SIM card on the same card slot cannot be enabled at the same time, a prompt message is generated to remind the user that the physical SIM card and the eSIM card cannot be used at the same time, so that the user can choose one to use to obtain the corresponding service.

[0022] In a second aspect, a physical SIM card detection device is provided. The device includes at least one module. The at least one module is used to implement the physical SIM card detection method provided by the first aspect and possible implementations thereof.

[0023] In a third aspect, an electronic device is provided, comprising a processor and a memory; the memory stores at least one program code; the at least one program code is used to be called and executed by the processor to implement the detection method of the physical identity module SIM card described in the first aspect.

[0024] In a fourth aspect, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and when the at least one computer program is executed by a processor, the method for detecting a physical identity module SIM card described in the first aspect can be implemented.

[0025] In a fifth aspect, a computer program product is provided, the computer program product comprising a computer program, and when the computer program is executed by a processor, the method for detecting a physical identity module SIM card described in the first aspect can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

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

[0028] Figure 2 It is a flow chart of a method for detecting a physical SIM card in a related art;

[0029] Figure 3 is a flow chart of a method for detecting a physical SIM card provided by an exemplary embodiment of the present application;

[0030] Figure 4 is a flow chart of a method for detecting a physical SIM card provided by another exemplary embodiment of the present application;

[0031] Figure 5 is a flow chart of a method for detecting a physical SIM card provided by another exemplary embodiment of the present application;

[0032] Figure 6 It is a schematic diagram of the structure of a detection device for a physical SIM card provided by an exemplary embodiment of the present application;

[0033] Figure 7 It is a structural schematic diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0035] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0036] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0037] Before executing the embodiments of the present application, the terms involved in the embodiments of the present application are first explained.

[0038] As the core module for managing profiles on the eUICC (embedded Universal Integrated Circuit Card), LPA is responsible for downloading encrypted profiles to the eUICC and providing users with a local management user interface so that users can manage the profile status on the eUICC.

[0039] Profile, also known as a configuration file, refers to a collection of various data and applications used on the eUICC to provide various services, such as voice services or data services. According to some embodiments, the profile is signed or subscribed by the user and the relevant mobile operator to provide user network services. According to some embodiments, the profile may include system files, such as MF, EF, DF; applications, such as network access applications NAA, security domain names Security Domain and other non-communication services; and profile metadata, such as Profile Policy Rules; and the mobile network operator's security domain name Mobile Network Operator-SD, such as providing OTA services.

[0040] Modem: Modem, commonly known as "cat", is a communication module used in electronic devices. In some embodiments, the modem sends instructions (usually standard AT commands) through the upper-level processing system to realize data transmission with the wireless network. In some embodiments, the network standards (GSM, CDMA, WCDMA, TD-SCDMA, etc.) supported by the electronic device are determined by it. In some embodiments, the modem in the electronic device can be understood as the baseband chip in the electronic device. In some implementations, the modem can also be understood as the control software corresponding to the baseband chip in the electronic device, such as the modem protocol stack. In some embodiments, the modem described in the present application can be a physical chip, such as integrated on a baseband chip or a baseband processor, or it can be implemented in software through an operating system, an eSIM management module, etc.

[0041] The Qcril module is developed by various chip manufacturers and specifies the specific processing logic of each chip manufacturer for upper layer requests. For example, some chip manufacturers convert upper layer requests into AT commands and send them to the modem for processing through AT Channel. Other chip manufacturers encapsulate the requests from the upper layer into qmi messages and then send the qmi messages to the modem for processing.

[0042] Please refer to Figure 1 , which shows a system architecture diagram of an electronic device provided in an embodiment of the present application, the electronic device is configured with at least one card slot, the card slot supports a physical SIM card and an eSIM card, and the electronic device can be a smart phone, a smart TV, a wearable device, a tablet computer, a laptop computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle terminal, etc. The electronic device includes a SIM card management module, an LPA, a Qcril module, a Modem, etc. Among them, the SIM card management module and the LPA belong to the upper-layer functional modules, and the Qcril module and the Modem belong to the lower-layer functional modules.

[0043] Specifically, the SIM card management module is used to manage the SIM cards supported by each card slot of the electronic device, and the SIM cards include physical SIM cards and / or eSIM cards. The management refers to determining the enabled card on the card slot based on the user's touch operation on the switch option of the physical SIM card or the switch option of the eSIM card corresponding to any card slot on the SIM card management interface; and performing corresponding profile operations based on the user's touch operation on the profile operation option corresponding to the eSIM card. Among them, the profile operation options include profile download options, profile activation options, profile deactivation options, profile deletion options, etc. The profile download option is used to download the profile corresponding to the eSIM card; the profile activation option is used to activate the downloaded profile so that the eSIM card can be used normally; the profile deactivation option is used to deactivate the activated profile to invalidate the downloaded profile; the profile deletion option is used to delete the downloaded profile.

[0044] The LPA is used to manage the profiles related to the eSIM card, including receiving a profile operation request sent by the SIM card management module and performing corresponding profile operations. For example, the SIM card management module detects a user's touch operation on a profile download option, generates a profile download request, and sends the profile download request to the LPA. In response to the profile download request, the LPA performs a profile download operation; the SIM card management module detects a user's touch operation on a profile activation option, generates a profile activation request, and sends the profile activation request to the LPA. In response to the profile activation request, the LPA performs a profile activation operation; the SIM card management module detects a user's touch operation on a profile deactivation option, generates a profile deactivation request, and sends the profile deactivation request to the LPA. In response to the profile deactivation request, the LPA performs a profile deactivation operation; the SIM card management module detects a user's touch operation on a profile deletion option, generates a profile deletion request, and sends the profile deletion request to the LPA. In response to the profile deletion request, the LPA performs a profile deletion operation. LPA is also used to indicate the operation type information of the operation currently performed by the eSIM card to the underlying Qcril module. When indicating the operation type information of the operation currently performed by the eSIM card, LPA can send an indication message to the Qcril module so that the underlying Qcril module can obtain the operation type information of the operation currently performed by the eSIM card; LPA can also set different parameter values ​​for the target configuration parameters according to the operation currently performed by the eSIM card, so that the Qcril module can query the parameter value of the target configuration parameter to obtain the operation type information of the operation currently performed by the eSIM card. By indicating the operation type information of the operation currently performed by the eSIM card, the underlying Qcril module can determine whether to power off the eSIM card based on the received operation type information to execute the detection process of the physical SIM card.

[0045] As a communication bridge between LPA and Modem, the Qcril module can receive the indication message sent by LPA, and then determine whether to power off the eSIM card based on the received indication message to execute the detection process of the physical SIM card; it can also query the parameter value of the target configuration parameter of LPA, and then determine whether to power off the eSIM card based on the parameter value of the queried target configuration parameter to execute the detection process of the physical SIM card.

[0046] The modem is used to detect a card insertion operation on any card slot, and when a card insertion operation on any card slot is detected, a card insertion message is generated and reported, thereby triggering the execution of a detection process for a physical SIM card.

[0047] It should be noted that although the system architecture diagram of the electronic device provided by the relevant technology may also include Figure 1 The various functional modules shown in the figure, but the functions that can be implemented by the various functional modules in the related art are different from those in the embodiments of the present application, especially the Qcril module, which does not directly power off the eSIM card after receiving the card insertion message sent by the Modem, but determines whether to power off the eSIM card according to the operation currently performed by the eSIM card, thereby executing the detection process of the physical SIM card. It is precisely because of the execution of the above judgment logic that the failure of the profile operation due to the power off of the eSIM card is avoided, thereby ensuring the smooth execution of the profile operation.

[0048] Regarding the physical SIM card detection process of the related technology, the following will be combined with Figure 2 See Figure 2, a card slot (e.g., SIM2 card slot) of an electronic device supports a physical SIM card and an eSIM card, wherein the eSIM card is in an enabled state on the card slot, and the eSIM card is performing a profile operation (e.g., downloading, activating, deactivating, deleting, etc.). When the eSIM card is in an enabled state, the modem detects a card insertion operation on the card slot, generates a card insertion message, and reports the card insertion message to the Qcril module. After receiving the card insertion message, the Qcril module triggers the execution of a detection operation on the physical card in the card slot. Specifically, the Qcril module sends an eSIM card power-off message to the Modem. In response to the received eSIM card power-off message, the Modem performs the eSIM card power-off operation. When the eSIM card is successfully powered off, the Modem generates an eSIM card power-off success message and sends the eSIM card power-off success message to the Qcril module. In response to the received eSIM card power-off success message, the Qcril module sends a physical SIM card switching message to the Modem. In response to the physical SIM card switching message, the Modem switches the enabling card on the card slot to the physical SIM card. After the switch is successful, the Modem generates The Qcril module receives a switching success message, and sends the switching success message to the Qcril module. In response to the switching success message, the Qcril module sends a physical SIM card power-on message to the Modem. In response to the received physical SIM card power-on message, the Modem powers on the physical SIM card. After the power-on is successful, the Modem generates a physical SIM card power-on success message, and sends the physical SIM card power-on success message to the Qcril module. In response to the received physical SIM card power-on success message, the Qcril module can determine that there is a physical SIM card on the card slot, and then the Qcril module restores the eSIM card enabled state. Specifically, the Qcril module sends an eSIM card switching message to the Modem. In response to the eSIM card switching message, the Modem switches the enabled card on the card slot to the eSIM card. After the switching is successful, the Modem generates a switching success message, and sends the switching success message to the Qcril module. In response to the switching success message, the Qcril module sends an eSIM card power-on message to the Modem. In response to the received eSIM card power-on message, the Modem powers on the eSIM card.

[0049] During the above-mentioned detection process of the physical SIM card, after the Qcril module receives the card insertion message, it immediately triggers the power-off operation of the eSIM card. At this time, the eSIM card is executing the profile operation. After the eSIM card is powered off, the profile operation fails due to lack of power supply.

[0050] An exemplary embodiment of the present application provides a detection method for a SIM card. Figure 1The electronic device shown in the figure performs the embodiment of the present application as an example. The electronic device is configured with at least one card slot. All or part of the at least one card slot supports physical SIM cards and eSIM cards. The method provided in the embodiment of the present application is for the card slot that can support physical SIM cards and eSIM cards. See Figure 3 , the method flow provided in the embodiment of the present application includes:

[0051] 301. When an embedded identity recognition module eSIM card in a card slot is in an enabled state, the electronic device detects a card insertion operation in the card slot.

[0052] In an embodiment of the present application, the SIM card management interface of the electronic device displays at least one SIM card slot configured in the electronic device, the physical SIM card and / or eSIM card supported by each card slot, and the switch option of the eSIM card. When the physical SIM card is not inserted in the card slot, the eSIM card can be switched between an enabled state and a disabled state by touching the switch option of the eSIM card. For example, if a physical SIM card is not inserted in a card slot, if the switch option of the eSIM card corresponding to the card slot is in a closed state, the eSIM card is in a disabled state at this time. When a touch operation on the switch option is detected, the switch option is in an open state, and the eSIM card is in an enabled state on the card slot. It should be noted that the so-called enabled state refers to the state in which the card slot circuit supplies power to the SIM card circuit. For example, the eSIM enabled state refers to the state in which the card slot circuit supplies power to the eSIM card circuit; the physical SIM enabled state refers to the state in which the card slot circuit supplies power to the physical SIM card circuit.

[0053] In the embodiment of the present application, the modem in the electronic device detects the card insertion operation on the card slot, including but not limited to: detecting the card insertion operation on the card slot based on a sensor provided on the card slot.

[0054] 302. When a card insertion operation is detected in the card slot, the electronic device obtains operation type information of the operation currently performed by the eSIM card.

[0055] The operation type includes a profile operation and a non-profile operation. The operation type information is information that can indicate the operation type. When the modem detects a card insertion operation on the card slot, it generates a card insertion message and sends the card insertion message to the Qcril module. In response to the card insertion message, the Qcril module obtains the operation type information of the operation currently performed by the eSIM card. Specifically, when the Qcril module obtains the operation type information of the operation currently performed by the eSIM card, multiple methods can be used.

[0056] The first method is that the Qcril module receives an indication message sent by the local configuration assistant LPA, and the indication message includes the operation type information of the operation currently performed by the eSIM card. Among them, the timing of the indication message sent by LPA can be sent when the eSIM card is detected to perform an operation, or when the Qcril module receives a card insertion message and sends a query request to LPA. When LPA receives the query request, it sends an indication message to the Qcril module. Of course, LPA can also send indication messages to the Qcril module at other times, which will not be explained here one by one. Among them, LPA can send the indication message through the AIDL interface when sending the indication message.

[0057] In the second method, the Qcril module queries the parameter value of the target configuration parameter of the LPA, and determines the operation type information of the operation currently performed by the eSIM card according to the parameter value of the target configuration parameter. Among them, the parameter value of the target configuration parameter includes a first value and a second value. When the parameter value of the target configuration parameter is the first value, the operation type information of the operation currently performed by the eSIM card is determined to be profile operation information; when the parameter value of the target configuration parameter is the second value, the operation type information of the operation currently performed by the eSIM card is determined to be non-profile operation information. For example, the target configuration parameter is a prop item, the first value is true, and the second value is false. When the Qcril module obtains the prop item as true, it is determined that the operation type information of the operation currently performed by the eSIM card is profile operation information; when the Qcril module obtains the prop item as false, it is determined that the operation type information of the operation currently performed by the eSIM card is non-profile operation information.

[0058] 303. When the operation type information indicates that the operation currently executed by the eSIM card is a profile operation, the electronic device keeps the eSIM card powered on and does not perform a detection operation on the physical SIM card in the card slot.

[0059] When the operation type information indicates that the operation currently performed by the eSIM card is a profile operation, the Qcril module keeps the eSIM card in a powered-on state and temporarily does not perform the detection operation of the physical SIM card in the card slot, thereby avoiding the failure of the profile operation due to lack of power function.

[0060] Furthermore, after determining that the eSIM card is currently executing a profile operation, the LPA in the electronic device will continue to detect the execution status of the profile operation. When it is detected that the eSIM card has completed the profile operation, the LPA generates updated operation type information. When the updated operation type information is generated, the LPA can actively send a new indication message to the Qcril module so that the Qcril module obtains the updated operation type information of the eSIM card; the LPA can also wait for the Qcril module to send a new indication message to the Qcril module when sending a query request again, so that the Qcril module obtains the updated operation type information of the eSIM card. If the operation type information is reflected by the parameter value of the target configuration parameter, after the LPA detects that the eSIM card has completed the profile operation, it can generate updated operation type information by changing the parameter value of the target configuration parameter, for example, changing the parameter value of the target configuration parameter from the first value to the second value. Accordingly, the Qcril module obtains the updated operation type information of the eSIM card by querying the parameter value of the target configuration parameter in the LPA.

[0061] Further, in response to the updated operation type information indicating that the eSIM card is not currently performing a profile operation, the Qcril module powers off the eSIM card. In response to the eSIM card being powered off successfully, a detection operation is performed on the physical SIM card in the card slot.

[0062] The above-mentioned detection operation of the physical SIM card on the card slot is implemented through the interaction between the Qcril module and the Modem, specifically including: the Qcril module sends a physical SIM card switching message to the Modem, and in response to the physical SIM card switching message, the Modem switches the enabled card on the card slot to the physical SIM card, and sends a switching success message to the Qcril module. In response to the successful switching of the enabled card on the card slot to the physical SIM card, the Qcril module sends a physical SIM card power-on message to the Modem, and in response to the physical SIM card power-on message, the Modem powers on the physical SIM card. After the power-on is successful, a power-on success message is generated and sent to the Qcril module. In response to the successful power-on of the physical SIM card, the Qcril module determines that there is a physical SIM card in the card slot. Since the eSIM card is in the enabled state at the beginning of the detection, the eSIM card is powered off and the physical SIM card is powered on in order to execute the physical SIM card detection process. When it is detected that there is a physical SIM card in the card slot, the eSIM card needs to be enabled again. Specifically, the Qcril module sends a physical SIM card power-off message to the Modem. In response to the received physical SIM card power-off message, the Modem powers off the physical SIM card. After the power-off is successful, a physical SIM card power-off success message is generated, and the physical SIM card power-off success message is sent to the Qcril module. In response to the physical SIM card power-off success message, the Qcril module sends an eSIM card switching message to the Modem. In response to the received eSIM card switching message, the Modem switches the enabling card on the card slot to the eSIM card. After the switching is successful, the Modem generates an eSIM card switching success message and sends the eSIM card switching success message to the Qcril module. In response to the eSIM card switching success message, the Qcril module sends an eSIM card power-on message to the Modem. In response to the eSIM card power-on message, the Modem powers on the eSIM card. After the power-on is successful, the generated eSIM card power-on success message is sent to the Qcril module. In response to the received eSIM card power-on success message, the Qcril module determines that the eSIM card is in an enabled state, and the entire detection process ends here.

[0063] In another embodiment of the present application, when the eSIM card on the card slot is in an enabled state, when a physical card is detected on the card slot, since the eSIM card and the physical SIM card cannot be enabled on the same card slot, the electronic device will generate a prompt message. The prompt information is used to remind the user that the physical SIM card and the eSIM card cannot be used at the same time. Based on the prompt message, the user can choose to enable the physical SIM card or the eSIM card according to his or her own usage needs, so as to obtain the required services.

[0064] An exemplary embodiment of the present application provides a detection method for a SIM card. Figure 1 The electronic device shown in the figure performs the embodiment of the present application as an example. The electronic device is configured with at least one card slot. All or part of the at least one card slot supports physical SIM cards and eSIM cards. The method provided in the embodiment of the present application is for the card slot that can support physical SIM cards and eSIM cards. See Figure 4 , the method flow provided in the embodiment of the present application includes:

[0065] 401. When the embedded identity recognition module eSIM card in the card slot is in an enabled state, the electronic device detects a card insertion operation in the card slot.

[0066] The implementation method of this step is the same as that of the above step 301. Please refer to the above step 301 for details and will not be repeated here.

[0067] 402. When a card insertion operation is detected in the card slot, the electronic device obtains operation type information of the operation currently performed by the eSIM card.

[0068] The implementation method of this step is the same as that of the above step 302. Please refer to the above step 302 for details, which will not be repeated here.

[0069] 403. When the operation type information indicates that the eSIM card is not currently performing a profile operation, the electronic device powers off the eSIM card.

[0070] When the operation type information indicates that the eSIM card is not currently performing a profile operation, the Qcril module directly sends an eSIM card power-off message to the Modem. In response to the received eSIM card power-off message, the Modem powers off the eSIM card.

[0071] 404. In response to the eSIM card being powered off successfully, the electronic device performs a detection operation on the physical SIM card in the card slot.

[0072] After the eSIM card is powered off, the modem generates an eSIM card power-off message and sends the eSIM card power-off message to the Qcril module. When receiving the eSIM card power-off message, the Qcril module determines that the eSIM card is powered off successfully. In response to the eSIM card being powered off successfully, the electronic device performs a detection operation on the physical SIM card on the card slot. For the detection operation of the physical SIM card on the card slot, please refer to the above embodiment, which will not be repeated here.

[0073] See also Figure 5, a card slot (for example, SIM2 card slot) of an electronic device supports physical SIM cards and eSIM cards, wherein the eSIM card is in an enabled state on the card slot, and the eSIM card is performing a profile operation (for example, any operation such as downloading, activating, deactivating, deleting, etc.), and after the LPA detects that the eSIM card is performing a profile operation, it sets the configuration item prop to true. When the eSIM card is in an enabled state, the modem detects a card insertion operation on the card slot, the modem generates a card insertion message, and reports the card insertion message to the Qcril module, the Qcril module reads the prop item, at which time the prop item is true, the Qcril module determines that the eSIM card is performing a profile operation, keeps the eSIM card powered on, and does not perform a detection operation on the physical SIM card. After the LPA detects that the eSIM card has completed the profile operation, it sets the prop item to false. The Qcril module reads the prop item again, at which time the prop item is set to false, the Qcril module determines that the eSIM card is not performing a profile operation, and then triggers the detection process for the physical SIM card. Specifically, the Qcril module sends an eSIM card power-off message to the Modem. In response to the received eSIM card power-off message, the Modem performs the eSIM card power-off operation. When the eSIM card is successfully powered off, the Modem generates an eSIM card power-off success message and sends the eSIM card power-off success message to the Qcril module. In response to the received eSIM card power-off success message, the Qcril module sends a physical SIM card switching message to the Modem. In response to the physical SIM card switching message, the Modem switches the enabling card on the card slot to the physical SIM card. After the switch is successful, the Modem generates The Qcril module receives a switching success message and sends the switching success message to the Qcril module. In response to the switching success message, the Qcril module sends a physical SIM card power-on message to the Modem. In response to the received physical SIM card power-on message, the Modem powers on the physical SIM card. After the power-on is successful, the Modem generates a physical SIM card power-on success message and sends the physical SIM card power-on success message to the Qcril module. In response to the received physical SIM card power-on success message, the Qcril module can determine that there is a physical SIM card in the card slot, and then the Qcril module restores the eSIM card enabled state.Specifically, the Qcril module sends an eSIM card switching message to the Modem. In response to the eSIM card switching message, the Modem switches the enabled card on the card slot to the eSIM card. After the switching is successful, the Modem generates a switching success message and sends the switching success message to the Qcril module. In response to the switching success message, the Qcril module sends an eSIM card power-on message to the Modem. In response to the received eSIM card power-on message, the Modem powers on the eSIM card. By adopting the method provided in the embodiment of the present application, when the eSIM card is in an enabled state on any card slot and a card insertion operation is detected on the card slot, the eSIM card can be temporarily powered off to ensure that the profile operation being executed by the eSIM card can be executed normally.

[0074] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method is also executed by different devices. In addition, in some processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed or executed in parallel in the order in which they appear in this article, and are only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations can be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit "first" and "second" to be different types.

[0075] Figure 6 A schematic diagram of a physical SIM card detection device provided by another exemplary embodiment of the present application. Figure 6 As shown, the device comprises:

[0076] The detection module 601 is used to detect a card insertion operation on the card slot when the embedded identity recognition module eSIM card on the card slot is in an enabled state;

[0077] The acquisition module 602 is used to acquire the operation type information of the operation currently performed by the eSIM card when a card insertion operation is detected in the card slot;

[0078] The detection module 603 is configured to keep the eSIM card powered on and not perform a detection operation on the physical SIM card in the card slot when the operation type information indicates that the operation currently executed by the eSIM card is a profile operation.

[0079] In another possible implementation of the present application, the device further includes:

[0080] The acquisition module is also used to obtain the operation type information of the eSIM card update, where the updated operation type information is generated after the local configuration assistant LPA detects that the eSIM card has completed the profile operation;

[0081] a power-off module, configured to power off the eSIM card in response to the updated operation type information indicating that the eSIM card is not currently performing a profile operation;

[0082] The detection module is used to perform a detection operation on the physical SIM card in the card slot in response to the eSIM card being powered off successfully.

[0083] In another possible implementation of the present application, the device further includes:

[0084] A power-off module, used to power off the eSIM card when the operation type information indicates that the eSIM card is not currently performing a profile operation;

[0085] The detection module is used to perform a detection operation on the physical SIM card in the card slot in response to the eSIM card being powered off successfully.

[0086] In another possible implementation of the present application, the acquisition module is used to receive an indication message sent by a local configuration assistant LPA, where the indication message includes operation type information of an operation currently performed by the eSIM card; or,

[0087] The acquisition module is used to query the parameter value of the target configuration parameter of the LPA; and determine the operation type information of the operation currently performed by the eSIM card according to the parameter value of the target configuration parameter.

[0088] In another possible implementation of the present application, the acquisition module is used to determine that the operation type information of the operation currently performed by the eSIM card is profile operation information when the parameter value of the target configuration parameter is a first value; and when the parameter value of the target configuration parameter is a second value, determine that the operation type information of the operation currently performed by the eSIM card is non-profile operation information.

[0089] In another possible implementation of the present application, the detection module is used to switch the enabling card on the card slot to a physical SIM card; in response to the enabling card on the card slot being successfully switched to the physical SIM card, power on the physical SIM card; in response to the physical SIM card being successfully powered on, determine that there is a physical SIM card in the card slot; power off the physical SIM card; in response to the physical SIM card being successfully powered off, switch the enabling card on the card slot to an eSIM card; in response to the enabling card on the card slot being successfully switched to the eSIM card, power on the eSIM card to enable the eSIM card.

[0090] In another possible implementation of the present application, the device further includes:

[0091] The generating module is used to generate a prompt message, where the prompt message is used to prompt that the physical SIM card and the eSIM card cannot be used at the same time.

[0092] The physical SIM card detection device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when detecting a physical SIM card. In practical applications, the above functional modules can be assigned to different functional modules according to requirements. In addition, the physical SIM card detection device provided in the above embodiment and the physical SIM card detection method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0093] The above describes the internal functions and structure of the detection device of the physical SIM card. Figure 7 As shown, in practice, the detection device of the physical SIM card can be implemented as an electronic device 100, and the electronic device 100 can be a mobile phone, a personal computer (PC), a tablet computer, an AR device, a VR device, a car computer, a wearable device, a smart home device, etc.

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

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

[0096] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (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. Different processing units may be independent devices or integrated into one or more processors.

[0097] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0098] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0099] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0100] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0101] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0102] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0103] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0104] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0105] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0106] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0107] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0108] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0109] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

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

[0111] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0112] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0113] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0114] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0115] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0116] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the 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 change display information.

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

[0118] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0119] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0120] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0121] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0122] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0123] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0124] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0125] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0126] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0127] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0128] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0129] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0130] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0131] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0132] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0133] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0134] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0135] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0136] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0137] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0138] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0139] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0140] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0141] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0142] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0143] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

[0144] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0145] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0146] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0147] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0148] An embodiment of the present application provides a computer-readable storage medium, wherein at least one computer program is stored in the computer-readable storage medium, and when the at least one computer program is executed by a processor, a SIM card detection method can be implemented.

[0149] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, a SIM card detection method can be implemented.

[0150] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for detecting a physical identity module SIM card, characterized in that: The method comprises: When the embedded identity module eSIM card on the card slot is in an enabled state, detecting a card insertion operation on the card slot; When a card insertion operation is detected on the card slot, obtaining operation type information of the operation currently performed by the eSIM card; When the operation type information indicates that the operation currently executed by the eSIM card is a profile operation, the eSIM card is kept powered on, and a detection operation on the physical SIM card in the card slot is not performed.

2. The method according to claim 1, characterized in that After the eSIM card is powered on and the detection operation of the physical SIM card in the card slot is not performed, the method further includes: Obtaining updated operation type information of the eSIM card, where the updated operation type information is generated after the local configuration assistant LPA detects that the eSIM card has completed the profile operation; In response to the updated operation type information indicating that the eSIM card is not currently performing a profile operation, powering off the eSIM card; In response to the eSIM card being powered off successfully, a detection operation is performed on the physical SIM card in the card slot.

3. The method according to claim 1, characterized in that The method further comprises: When the operation type information indicates that the eSIM card is not currently performing a profile operation, powering off the eSIM card; In response to the eSIM card being powered off successfully, a detection operation is performed on the physical SIM card in the card slot.

4. The method according to claim 1, characterized in that: The obtaining the operation type information of the operation currently performed by the eSIM card includes: receiving an indication message sent by a local configuration assistant LPA, where the indication message includes operation type information of an operation currently performed by the eSIM card; or, Querying a parameter value of a target configuration parameter of the LPA; and determining operation type information of an operation currently performed by the eSIM card according to the parameter value of the target configuration parameter.

5. The method according to claim 4, characterized in that The determining, according to the parameter value of the target configuration parameter, the operation type information of the operation currently performed by the eSIM card includes: When the parameter value of the target configuration parameter is a first value, determining that the operation type information of the operation currently performed by the eSIM card is profile operation information; When the parameter value of the target configuration parameter is a second value, it is determined that the operation type information of the operation currently executed by the eSIM card is non-profile operation information.

6. The method according to any one of claims 1 to 5, characterized in that The performing of the detection operation on the physical SIM card in the card slot includes: Switching the enabling card on the card slot to the physical SIM card; In response to the enabling card on the card slot being successfully switched to the physical SIM card, powering on the physical SIM card; In response to the physical SIM card being powered on successfully, determining that there is the physical SIM card in the card slot; Power off the physical SIM card; In response to the physical SIM card being powered off successfully, switching the enabling card on the card slot to the eSIM card; In response to the enabling card on the card slot being successfully switched to the eSIM card, the eSIM card is powered on to put the eSIM card in an enabled state.

7. The method according to claim 6, characterized in that After the eSIM card is powered on, the method further includes: A prompt message is generated, where the prompt message is used to prompt that the physical SIM card and the eSIM card cannot be used at the same time.

8. A detection device for a physical identity module SIM card, characterized in that: The device comprises: A detection module, used to detect a card insertion operation on the card slot when the embedded identity recognition module eSIM card on the card slot is in an enabled state; An acquisition module, configured to acquire operation type information of an operation currently performed by the eSIM card when a card insertion operation is detected on the card slot; The detection module is configured to keep the eSIM card powered on and not perform a detection operation on the physical SIM card in the card slot when the operation type information indicates that the operation currently executed by the eSIM card is a profile operation.

9. The device according to claim 8, characterized in that The device also includes: The acquisition module is further used to acquire the operation type information updated by the eSIM card, where the updated operation type information is generated after the local configuration assistant LPA detects that the eSIM card has completed the profile operation; a power-off module, configured to power off the eSIM card in response to the updated operation type information indicating that the eSIM card is not currently performing a profile operation; The detection module is used to perform a detection operation on the physical SIM card in the card slot in response to the eSIM card being powered off successfully.

10. The device according to claim 8, characterized in that The device also includes: a power-off module, configured to power off the eSIM card when the operation type information indicates that the eSIM card is not currently performing a profile operation; The detection module is used to perform a detection operation on the physical SIM card in the card slot in response to the eSIM card being powered off successfully.

11. The device according to claim 8, characterized in that The acquisition module is configured to receive an indication message sent by a local configuration assistant LPA, where the indication message includes operation type information of an operation currently performed by the eSIM card; or The acquisition module is used to query the parameter value of the target configuration parameter of the LPA; and determine the operation type information of the operation currently executed by the eSIM card according to the parameter value of the target configuration parameter.

12. The device according to claim 11, characterized in that The acquisition module is configured to determine, when the parameter value of the target configuration parameter is a first value, that the operation type information of the operation currently performed by the eSIM card is profile operation information; When the parameter value of the target configuration parameter is a second value, it is determined that the operation type information of the operation currently executed by the eSIM card is non-profile operation information.

13. The device according to any one of claims 8 to 12, characterized in that The detection module is used to switch the enabling card on the card slot to the physical SIM card; in response to the enabling card on the card slot being successfully switched to the physical SIM card, power on the physical SIM card; in response to the physical SIM card being successfully powered on, determine that there is the physical SIM card in the card slot; power off the physical SIM card; in response to the physical SIM card being successfully powered off, switch the enabling card on the card slot to the eSIM card; in response to the enabling card on the card slot being successfully switched to the eSIM card, power on the eSIM card to enable the eSIM card.

14. The device according to claim 13, characterized in that The device also includes: The generating module is used to generate a prompt message, wherein the prompt message is used to prompt that the physical SIM card and the eSIM card cannot be used at the same time.

15. An electronic device, characterized in that: It comprises a processor and a memory; the memory stores at least one program code; the at least one program code is used to be called and executed by the processor to implement the detection method of the physical identity module SIM card as described in any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and when the at least one computer program is executed by the processor, the method for detecting a physical identity module SIM card according to any one of claims 1 to 7 can be implemented.

17. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method for detecting a physical identity module SIM card according to any one of claims 1 to 7 can be implemented.

Citation Information

Patent Citations

  • Method for identifying embedded identity identification module eSIM card and terminal equipment

    CN113498052A

  • Vehicle-mounted video monitoring system based on eSIM and 5G and monitoring method thereof

    CN113852934A

  • Method for detecting embedded identity recognition module eSIM card and terminal equipment

    CN116709266A

  • Method for identifying embedded subscriber identity module (ESIM) card and terminal device

    WO2021185097A1

  • Camping method, electronic device, and system

    WO2022228210A1