Management method of embedded subscriber identity module card and electronic equipment

By communicating directly with the eSIM card during the initialization phase of the electronic device, the risks of malicious attacks and low management efficiency caused by reliance on the OS in existing technologies are solved, thus achieving efficient and secure eSIM card management.

CN121547892APending Publication Date: 2026-02-17QUECTEL TELECOM TECH CHANGZHOU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511744002.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-25
Publication Date
2026-02-17

AI Technical Summary

Technical Problem

Existing embedded user identification module card (eSIM) management methods rely on operating systems (OS), which are susceptible to malware attacks, have high data download latency, complex interaction processes, and low management efficiency.

Method used

During the system initialization phase of the electronic device, the protocol interface management module is started, and it communicates with the eSIM card through a plug-and-play interface or a high-speed peripheral interconnect interface to realize the direct execution of operation commands, avoiding reliance on the OS network stack.

Benefits of technology

It improves communication efficiency and system response speed, ensures the security and management efficiency of eSIM cards, and solves the problems of high latency and poor flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121547892A_ABST
    Figure CN121547892A_ABST
Patent Text Reader

Abstract

The invention provides an embedded subscriber identity module card management method and electronic equipment, and the method comprises the steps: starting and operating a protocol interface management module in the electronic equipment in a system initialization stage of the electronic equipment; when the protocol interface management module runs, information of current equipment to be communicated with the electronic equipment is obtained, a target interface is determined according to the information of the current equipment, and the target interface is a plug-and-play interface or a high-speed peripheral interconnection interface in the electronic equipment; the current equipment is an embedded subscriber identity module card; and in response to an operation instruction which is input by a user and aims at the current equipment, establishing communication connection with the current equipment according to the operation instruction and the target interface, and communicating with the current equipment through the target interface based on the operation instruction. And the management safety and efficiency of the embedded subscriber identity module card are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of management of embedded subscriber identity module cards, in particular to a management method of an embedded subscriber identity module card and an electronic device. BACKGROUND

[0002] As a new type of solution in which user identity information is directly embedded in a chip, an embedded subscriber identity module card (eSIM) has the advantages of small size, non-removability, support for remote configuration and multi-operator switching, and has been widely used in notebook computers, tablets, Internet of Vehicles terminals, industrial routers and other types of electronic devices.

[0003] The existing management of eSIM cards is mainly managed using a Layered Process Audit (LPA) management method of a local configuration file assistant. However, the existing LPA management method needs to be implemented based on an Operating System (OS), and when the OS is started, there may be malicious software attacks, which may cause damage to the eSIM card. In addition, the existing LPA management method based on the OS needs to download data through the network stack of the OS, and therefore there may be a problem of data download delay. At the same time, the existing LPA management method also has the problems of complex interaction process and low management efficiency. SUMMARY

[0004] The present application aims to provide a management method of an embedded subscriber identity module card and an electronic device to improve the security and efficiency of the management of the embedded subscriber identity module card, in view of the deficiencies in the prior art.

[0005] To achieve the above-mentioned purpose, the technical solutions adopted by the embodiments of the present application are as follows: In a first aspect, the embodiments of the present application provide a management method of an embedded subscriber identity module card, which comprises: starting and running a protocol interface management module in the electronic device during a system initialization phase of the electronic device; acquiring information of a current device to be communicated with the electronic device, and determining a target interface according to the information of the current device, the target interface being a plug-and-play interface or a peripheral component interconnect express interface in the electronic device, and the current device being an embedded subscriber identity module card; in response to an operation instruction input by a user for the current device, establishing a communication connection between the electronic device and the current device according to the operation instruction and the target interface, and communicating with the current device based on the operation instruction and via the target interface.

[0006] Optionally, the information of the current device to be communicated with the electronic device comprises: reading a configuration file pre-stored in the electronic device; reading the information of the current device from the configuration file.

[0007] Optionally, the operation instruction comprises a download configuration file instruction, an embedded card identification obtaining instruction or a current device releasing instruction.

[0008] Optionally, the establishing of the communication connection between the current device according to the operation instruction and the target interface comprises: if the operation instruction is the embedded card identification obtaining instruction, then in response to the embedded card identification obtaining instruction, a logical channel opening request is sent to the current device through the target interface; a logical channel identification returned by the current device is received, and a communication connection between the current device is established according to the logical channel identification.

[0009] Optionally, the establishing of the communication connection between the current device according to the logical channel identification comprises: the embedded card identification obtaining instruction is converted into a preset format obtaining instruction, the preset format obtaining instruction is sent to the current device through a logical channel corresponding to the logical channel identification, and feedback data returned by the current device is received through a logical channel corresponding to the logical channel identification.

[0010] Optionally, the establishing of the communication connection between the current device according to the operation instruction and the target interface comprises: if the operation instruction is the download configuration file instruction, then in response to the download configuration file instruction, a communication connection between a target operator device corresponding to the download configuration file instruction is established through the target interface, a target configuration file is obtained from the target operator device, and the target configuration file is downloaded; in response to a download completion instruction, a communication connection between the current device is established through the target interface, and the target configuration file is sent to the current device.

[0011] Optionally, the establishing of the communication connection between the current device according to the operation instruction and the target interface comprises: if the operation instruction is the current device releasing instruction, then the target interface is released.

[0012] Optionally, the establishing of the communication connection between the current device according to the operation instruction and the target interface comprises: If the operation instruction is an operator enabling instruction, a communication connection between the current device and the electronic device is established through the target interface, and the operator enabling instruction is sent to the current device through the target interface, so that the current device enables the target operator device in the operator enabling instruction.

[0013] Optionally, the establishing a communication connection between the current device and the electronic device according to the operation instruction and the target interface comprises: If the operation instruction is an operator non-enabling instruction, a communication connection between the current device and the electronic device is established through the target interface, and the operator non-enabling instruction is sent to the current device through the target interface, so that the current device does not enable the target operator device in the operator non-enabling instruction.

[0014] In a second aspect, the embodiments of the present application further provide a management device of an embedded subscriber identity module card, and the device comprises: a running module configured to start and run a protocol interface management module in the electronic device in a system initialization stage of the electronic device; a determining module configured to acquire information of a current device to be communicated with the electronic device when the protocol interface management module is running, and determine a target interface according to the information of the current device, the target interface being a plug-and-play interface or a peripheral component interconnect express interface in the electronic device, and the current device being an embedded subscriber identity module card; an establishing module configured to establish a communication connection between the current device and the electronic device according to an operation instruction input by a user for the current device and the target interface, and communicate with the current device based on the operation instruction and through the target interface.

[0015] Optionally, the acquiring module is configured to: read a configuration file pre-stored in the electronic device; read the information of the current device from the configuration file.

[0016] Optionally, the operation instruction comprises a download configuration file instruction, an embedded card identification acquiring instruction or a current device releasing instruction.

[0017] Optionally, the establishing module is specifically configured to: if the operation instruction is the embedded card identification acquiring instruction, send an open logical channel request to the current device through the target interface in response to the embedded card identification acquiring instruction; receive a logical channel identification returned by the current device, and establish a communication connection between the current device and the electronic device according to the logical channel identification.

[0018] Optionally, the establishing module is specifically configured to: convert the instruction for obtaining the identification of the embedded card into an obtaining instruction in a preset format, send the obtaining instruction in the preset format to the current device through a logical channel corresponding to a logical channel identification, and receive feedback data returned by the current device through the logical channel corresponding to the logical channel identification.

[0019] Optionally, the establishing module is specifically configured to: if the operation instruction is a download configuration file instruction, in response to the download configuration file instruction, establish a communication connection between the target operator device corresponding to the download configuration file instruction and the current device through the target interface, and obtain and download a target configuration file from the target operator device; in response to a download completion instruction, establish a communication connection between the current device and the target interface, and send the target configuration file to the current device.

[0020] Optionally, the establishing module is specifically configured to: if the operation instruction is a release current device instruction, release the target interface.

[0021] Optionally, the establishing module is specifically configured to: if the operation instruction is an operator enable instruction, establish a communication connection between the current device and the target interface, and send the operator enable instruction to the current device through the target interface, so that the current device enables the target operator device in the operator enable instruction.

[0022] Optionally, the establishing module is specifically configured to: if the operation instruction is an operator disable instruction, establish a communication connection between the current device and the target interface, and send the operator disable instruction to the current device through the target interface, so that the current device disables the target operator device in the operator disable instruction.

[0023] In a third aspect, the embodiments of the present application further provide an electronic device, comprising a processor, a storage medium and a bus, the storage medium stores program instructions executable by the processor, when an application program runs, the processor and the storage medium communicate through the bus, and the processor executes the program instructions to execute the steps of the management method of the embedded subscriber identity module card in the first aspect.

[0024] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which has stored thereon a computer program, and the computer program reads and executes the steps of the management method of the embedded subscriber identity module card according to the first aspect.

[0025] The present application has the following beneficial effects: The management method of the embedded subscriber identity module card and the electronic device provided by the present application can establish a communication path for the embedded subscriber identity module card in the system initialization stage of the electronic device, and implement the operation on the embedded subscriber identity module card, without having to operate the embedded subscriber identity module card after the operating system is started as in the prior art. This significantly improves the communication efficiency, system response speed and interface adaptation intelligence level, and solves the problems of high delay and poor flexibility in the traditional communication mode. In addition, there is a hardware root of trust and a secure boot mechanism in the initialization stage, which can ensure that the embedded subscriber identity module card is not attacked when it is operated, and protect the security of the embedded subscriber identity module card. BRIEF DESCRIPTION OF DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as limiting the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.

[0027] Figure 1 A flowchart of a management method of an embedded subscriber identity module card provided by the embodiments of the present application; Figure 2 A flowchart of another management method of an embedded subscriber identity module card provided by the embodiments of the present application; Figure 3 A flowchart of another management method of an embedded subscriber identity module card provided by the embodiments of the present application; Figure 4 A flowchart of another management method of an embedded subscriber identity module card provided by the embodiments of the present application; Figure 5 FIG. 1 is a schematic diagram of a management device of an embedded subscriber identity module card according to an embodiment of the present application; Figure 6 FIG. 2 is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of description and illustration, and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn according to the actual proportions. The flowcharts show the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can not be implemented in sequence, and the steps without logical context relationship can be reversed in sequence or implemented simultaneously. In addition, one or more other operations can be added to the flowcharts or one or more operations can be removed from the flowcharts under the guidance of the content of the present application.

[0029] In addition, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0030] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0031] The existing LPA management needs to rely on a complete OS system network stack for configuration file download, resulting in high delay. In addition, the existing LPA management is downloaded only after entering the OS system, increasing the production process and time of the production line, causing an increase in cost.

[0032] Optionally, the management method of the embedded subscriber identity module card provided by the embodiments of the present application is applied to an electronic device, which can be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, a desktop computer, or other terminal devices with computing processing capability and display function, or can also be a server. It can be applied to an application program in a terminal device, for example, an application program (application, APP) of a mobile phone, an application system on a computer, etc.

[0033] The following will specifically explain the specific implementation process of the management of the embedded user identification module card provided in the embodiments of the present application.

[0034] Figure 1 A flowchart of a management method of an embedded user identification module card provided in the embodiments of the present application is shown in the figure. The execution subject of the method is the electronic device as described above. As shown in the figure, the method comprises the following steps. Figure 1 S101, starting and running a protocol interface management module in the electronic device in the system initialization stage of the electronic device.

[0035] The protocol interface management module is pre-deployed in the electronic device, and the protocol interface management module provides an interface for the management configuration of the embedded user identification module card, and the embedded user identification module card can be managed and configured through the protocol interface management module. Moreover, the protocol interface management module is a lightweight firmware component, which can be pre-integrated into the firmware image of the electronic device, for example, deployed in the Unified Extensible Firmware Interface (UEFI) driver or system management mode environment. The protocol interface management module has an independent running context and does not depend on the runtime service or network protocol stack provided by the operating system, and can directly access the underlying hardware resources and communication interfaces without OS intervention. The protocol interface management module can use EFI_QUEC_LPA_PROTOCOL.

[0036] The system initialization stage of the electronic device refers to the startup process after the electronic device is powered on and before the operating system is completely loaded, which corresponds to the UEFI stage or the execution stage of the Basic Input / Output System (BIOS). In this stage, the hardware platform completes the basic self-checking and resource initialization, and prepares for the subsequent system boot. In this initialization stage, the protocol interface management module is started when the operating system kernel and user space service have not been activated.

[0037] S102, obtaining the information of the current device to be communicated with the electronic device, and determining the target interface according to the information of the current device.

[0038] The target interface is the Universal Serial Bus (USB) or Peripheral Component Interconnect Express (PCIE) in the electronic device.

[0039] ​Optionally, the electronic device can be connected with multiple devices, wherein the device connected with the electronic device can be a device loaded with an embedded user identification module card, which is physically integrated in the electronic device. In the system initialization stage, the current device in communication with the electronic device needs to be acquired, which can be any one of the multiple devices connected with the electronic device. After the information of the current device is acquired, the target interface in communication with the current device is determined.

[0040] Specifically, if the device type in the information of the current device is the USB device type, the determined target interface is the USB interface, and the communication protocol EFI_USB_IO_PROTOCOL can be called through the USB interface; if the device type in the information of the current device is the PCIE device type, the determined target interface is the PCIE interface, and the communication protocol EFI_QUEC_MHI_PROTOCOL can be called through the PCIE interface.

[0041] S103, in response to the operation instruction input by the user for the current device, a communication connection between the protocol interface management module and the current device is established according to the operation instruction and the target interface, and the protocol interface management module communicates with the current device based on the operation instruction via the target interface.

[0042] Optionally, after the target interface is determined, the protocol interface management module can call the communication protocol corresponding to the target interface according to the determined target interface. The operation instruction refers to the operation instruction for the embedded user identification module card loaded in the current device.

[0043] Optionally, the user can input the operation instruction for the current device in the electronic device in advance. After the protocol interface management module determines the target interface in communication with the current device, the protocol interface management module and the current device can be connected in communication according to the operation instruction and the determined target interface in response to the operation instruction. Then, the protocol interface management module and the current device can be communicated based on the operation instruction and via the target interface, so that the action indicated by the operation instruction can be executed.

[0044] In the embodiment, in a system initialization stage of the electronic device, a protocol interface management module in the electronic device is started and run; and when the protocol interface management module is running, information of a current device to be communicated with the electronic device is acquired, and a target interface is determined according to the information of the current device; then, in response to an operation instruction input by a user for the current device, a communication connection between the electronic device and the current device is established according to the operation instruction and the target interface, and the electronic device communicates with the current device based on the operation instruction, so that an operation indicated by the operation instruction can be performed, and the operation on the embedded user identification module card is realized. In the system initialization stage of the electronic device, the communication path for the embedded user identification module card is established, and the operation on the embedded user identification module card is realized, without the need to operate the embedded user identification module card after the operating system is started as in the prior art, which significantly improves the communication efficiency, system response speed and interface adaptation intelligent level, and solves the problems of high delay and poor flexibility in the traditional communication mode. In addition, there is a hardware root of trust and a secure boot mechanism in the initialization stage, which can ensure that the embedded user identification module card is not attacked when the operation is performed, and the security of the embedded user identification module card is protected.

[0045] Optionally, the information of the current device to be communicated with the electronic device is acquired by: Specifically, the protocol interface management module reads a configuration file pre-stored in the electronic device, and reads the information of the current device from the configuration file. The information of the current device can include the type of the current device and the identification of the current device, and the type of the current device can be a USB device type or a PCIE device type.

[0046] The user can pre-write the information of the current device to be communicated with the electronic device at the current power-on in the configuration file when the electronic device is powered on once.

[0047] Optionally, the information of the current device to be communicated with the electronic device can also include: obtaining a device selection instruction input by the user, and parsing the information of the current device from the device selection instruction. In the system initialization stage of the electronic device, the user can input the device selection instruction, and when the protocol interface management module receives the device selection instruction, the device selection instruction can be parsed to obtain the information of the current device.

[0048] Optionally, the operation instruction can include: a download configuration file instruction, an embedded card identification obtaining instruction, or a current device releasing instruction.

[0049] Figure 2 Another flowchart of the management method of the embedded user identification module card provided by the embodiment is shown in the figure. Figure 2As shown, the establishing of the communication connection between the current device and the target interface according to the operation instruction in S103 can include: S201, if the operation instruction is an instruction for obtaining the identification of the embedded card, in response to the instruction for obtaining the identification of the embedded card, the current device is sent an open logical channel request through the target interface.

[0050] The instruction for obtaining the identification of the embedded card can be represented by getEid, for example, and specifically can refer to an instruction for obtaining the identification of the embedded user identification module card loaded on the current device. When the protocol interface management module receives the getEid instruction, the open logical channel request can be sent to the current device through the target interface determined previously, and specifically, the open logical channel request can be sent to the current device through the communication protocol corresponding to the target interface, where the open logical channel request can be represented by open channel, for example.

[0051] For example, if the target interface determined previously is a PCIE interface, the protocol interface management module can call the communication protocol EFI_QUEC_MHI_PROTOCOL corresponding to the PCIE interface, and the protocol interface management module can send the open logical channel request to the current device through EFI_QUEC_MHI_PROTOCOL.

[0052] For example, if the target interface determined previously is a USB interface, the protocol interface management module can call the communication protocol EFI_USB_IO_PROTOCOL corresponding to the USB interface, and the protocol interface management module can send the open logical channel request to the current device through EFI_USB_IO_PROTOCOL.

[0053] S202, receiving the logical channel identification returned by the current device, and establishing a communication connection between the current device and the target interface according to the logical channel identification.

[0054] Optionally, after the current device receives the open logical channel request, the current device returns the logical channel identification and opens the logical channel corresponding to the returned logical channel identification. After the protocol interface management module receives the logical channel identification returned by the current device, the protocol interface management module can establish a communication connection between the current device and the target interface according to the received logical channel identification.

[0055] In this embodiment, when the user needs to obtain the identifier of the embedded user identification module card in the current device, the communication connection between the current device can be established directly according to the communication protocol corresponding to the target interface determined in the foregoing, so that the identifier of the embedded user identification module card returned by the current device is received, so that the whole obtaining process is faster, does not need to rely on the network stack of the operating system, and the configuration efficiency of the embedded user identification module card in the current device is improved.

[0056] Optionally, the receiving of the logical channel identifier returned by the current device in S202 and the establishment of the communication connection between the current device according to the logical channel identifier and the target interface can include: The identifier obtaining instruction of the embedded card is converted into an obtaining instruction in a preset format, and the obtaining instruction in the preset format is sent to the current device through the logical channel corresponding to the logical channel identifier. After the current device receives the obtaining instruction in the preset format, the identifier of the embedded user identification module card loaded in the current device can be read, and the read identifier is returned to the protocol interface management module through the logical channel corresponding to the logical channel identifier. The protocol interface management module can receive the feedback data returned by the current device, that is, the identifier of the embedded user identification module card, through the logical channel corresponding to the logical channel identifier. The preset format refers to the format required by the embedded user module card specification.

[0057] Figure 3 Another flowchart of the management method of the embedded user identification module card provided by the embodiment of the application is shown in Figure 3 The establishment of the communication connection between the current device according to the logical channel identifier and the target interface in S202 can include: S301, if the operation instruction is a download configuration file instruction, a communication connection between the target operator device corresponding to the download configuration file instruction is established through the target interface in response to the download configuration file instruction, and a target configuration file is obtained from the target operator device and downloaded.

[0058] The download configuration file instruction includes the operator type of the configuration file to be downloaded and the configuration file identifier to be downloaded.

[0059] Specifically, when the protocol interface management module receives the download configuration file instruction, for example, getProfile, the download configuration file instruction is parsed to obtain the operator type in the download configuration file instruction, and then the protocol interface management module sends the download configuration file instruction to the target operator corresponding to the operator type through the communication protocol corresponding to the target interface; when the target operator receives the download configuration file instruction, the configuration file in the download configuration file instruction is sent to the protocol interface management module.

[0060] S302, in response to the download completion instruction, a communication connection between the target interface and the current device is established, and the target configuration file is sent to the current device.

[0061] Specifically, when the protocol interface management module receives the configuration file sent by the target operator, the received configuration file is downloaded, and after the download is completed, an opening logical channel request is sent to the current device through the communication protocol corresponding to the target interface. After the current device receives the opening logical channel request, the current device returns a logical channel identifier, and opens a logical channel corresponding to the returned logical channel identifier. After the protocol interface management module receives the logical channel identifier returned by the current device, the configuration file can be sent to the current device through the logical channel corresponding to the logical channel identifier.

[0062] In this embodiment, when downloading the configuration file, the protocol interface management module only needs to download the configuration file from the operator, and can directly establish a communication connection with the current device. Then the downloaded configuration file can be directly sent to the current device, avoiding the need for the network stack of the operating system in the prior art to download the configuration file, improving the download rate of the configuration file, thereby improving the production line process and reducing the production time.

[0063] Optionally, the communication connection between the target interface and the current device in S103 according to the operation instruction can include: Specifically, if the operation instruction is a release current device instruction, the protocol interface management module can directly release the target interface. Specifically, the communication protocol corresponding to the target interface can be released. After the protocol interface module releases the communication protocol corresponding to the called target interface, the protocol interface module disconnects the communication connection between the current device, thereby releasing the current device.

[0064] Optionally, the communication connection between the target interface and the current device in S103 according to the operation instruction can include: If the operation instruction is an operator enable instruction, a communication connection between the target interface and the current device is established, and the operator enable instruction is sent to the current device through the target interface, so that the current device enables the target operator device in the operator enable instruction.

[0065] The embedded subscriber identity module card can switch multiple different operators, so that the protocol interface management module can enable or switch the operator of the embedded subscriber identity module card.

[0066] Specifically, after determining the target interface, the protocol interface management module can send an open logical channel request to the current device through the communication protocol corresponding to the target interface after receiving the operator enabling instruction. After the current device receives the open logical channel request, the current device returns a logical channel identifier and opens the logical channel corresponding to the returned logical channel identifier. After the protocol interface management module receives the logical channel identifier returned by the current device, the protocol interface management module can send the operator enabling instruction to the current device through the logical channel corresponding to the logical channel identifier. After the current device receives the operator enabling instruction, the current device can enable the operator in the operator enabling instruction. If the embedded subscriber identity module card in the current device exists the currently used operator, after receiving the operator enabling instruction, the current device can first close the currently used operator, and then enable the operator in the operator enabling instruction. If the embedded subscriber identity module card in the current device does not exist the currently used operator, after receiving the operator enabling instruction, the current device can directly enable the operator in the operator enabling instruction.

[0067] Figure 4 An interaction schematic diagram of a management method of an embedded subscriber identity module card provided by an embodiment of the present application is shown in FIG. 1. In the interaction schematic diagram, the user, the protocol interface management module, the EFI_USB_IO_PROTOCOL, the EFI_QUEC_MHI_PROTOCOL, and the current device can be included. Figure 4

[0068] S401, a device selection instruction.

[0069] In the system initialization stage, the user can call the device selection instruction in the protocol interface management module.

[0070] S402, if the current device is a USB device, the EFI_USB_IO_PROTOCOL is called.

[0071] The protocol interface management module determines the target interface according to the device selection instruction. After determining the target interface, the communication protocol corresponding to the target interface can be called based on the target interface. Specifically, if the current device is a USB device, that is, the target interface is determined to be a USB interface, the EFI_USB_IO_PROTOCOL can be called.

[0072] S403, if the current device is a PCIE device, the EFI_QUEC_MHI_PROTOCOL is called.

[0073] If the current device is a PCIE device, the EFI_QUEC_MHI_PROTOCOL can be called when the target interface is determined to be a PCIE interface.

[0074] ​S404, acquire the identification instruction of the embedded card.

[0075] The acquisition instruction of the identification of the embedded card input by the user is received.

[0076] S405, send an open logical channel request of the current device.

[0077] When the protocol interface management module receives the identification instruction of the embedded card, the protocol interface management module sends an open logical channel request of the current device to the current device.

[0078] S406, return the logical channel identification.

[0079] The current device returns the logical channel identification to the protocol interface management module.

[0080] S407, send the acquisition instruction in a preset format.

[0081] After receiving the logical channel identification, the protocol interface management module converts the identification instruction of the embedded card into an acquisition instruction in a preset format, and then sends the acquisition instruction in a preset format to the current device through the logical channel corresponding to the logical channel identification.

[0082] S408, return the card identification.

[0083] The current device returns the identification of the embedded user identification module card.

[0084] S409, return the card identification to the user.

[0085] The protocol interface management module returns the received identification of the embedded user identification module card to the user.

[0086] Figure 5 A schematic diagram of an embedded user identification module card management device provided by an embodiment of the present application is shown in Figure 5 The device comprises: A running module 501, configured to start and run a protocol interface management module in an electronic device during a system initialization stage of the electronic device. An acquisition module 502, configured to acquire information of a current device to be communicated with the electronic device when the protocol interface management module is running, and determine a target interface according to the information of the current device, the target interface being a plug and play interface or a peripheral component interconnect express interface in the electronic device, and the current device being an embedded user identification module card. An establishment module 503, configured to, in response to an operation instruction input by a user and directed to the current device, establish a communication connection with the current device according to the operation instruction and the target interface, and communicate with the current device based on the operation instruction and via the target interface.

[0087] Optionally, the obtaining module 502 is configured to: read a configuration file pre-stored in the electronic device; read information of the current device from the configuration file.

[0088] Optionally, the operation instruction comprises a download configuration file instruction, an obtaining embedded card identification instruction or a current device releasing instruction.

[0089] Optionally, the establishing module 503 is configured to: if the operation instruction is the obtaining embedded card identification instruction, respond to the obtaining embedded card identification instruction and send an opening logical channel request to the current device through the target interface; receive a logical channel identification returned by the current device and establish a communication connection between the current device according to the logical channel identification.

[0090] Optionally, the establishing module 503 is configured to: convert the obtaining embedded card identification instruction into an obtaining instruction in a preset format, send the obtaining instruction in the preset format to the current device through a logical channel corresponding to the logical channel identification, and receive feedback data returned by the current device through a logical channel corresponding to the logical channel identification.

[0091] Optionally, the establishing module 503 is configured to: if the operation instruction is the download configuration file instruction, respond to the download configuration file instruction, establish a communication connection between the current device and a target operator device corresponding to the download configuration file instruction through the target interface, obtain a target configuration file from the target operator device and download the target configuration file; respond to a download completion instruction, establish a communication connection between the current device and the target operator device through the target interface, and send the target configuration file to the current device.

[0092] Optionally, the establishing module 503 is configured to: if the operation instruction is the current device releasing instruction, release the target interface.

[0093] Optionally, the establishing module 503 is configured to: if the operation instruction is an operator enabling instruction, establish a communication connection between the current device and the target operator device through the target interface, and send the operator enabling instruction to the current device through the target interface, so that the current device enables the target operator device in the operator enabling instruction.

[0094] Optionally, the establishing module 503 is specifically configured to: If the operation instruction is the operator non-enable instruction, a communication connection between the current device and the target device is established through the target interface, and the operator non-enable instruction is sent to the current device through the target interface, so that the current device does not enable the target operator device in the operator non-enable instruction.

[0095] Figure 6 A structural block diagram of an electronic device 600 is provided for the embodiments of the present application, which may, for example, be the management of the embedded subscriber identity module card described in the foregoing embodiments. As shown in the structural block diagram, the electronic device may, for example, include a processor 601 and a memory 602. Figure 6

[0096] Optionally, the electronic device 600 further includes a bus 603, wherein the memory 602 is configured to store machine readable instructions executable by the processor 601, and the processor 601 and the memory 602 are configured to communicate with each other through the bus 603 when the electronic device 600 is running, and the machine readable instructions are executed by the processor 601 to perform the method steps in the method embodiments described above.

[0097] The embodiments of the present application further provide a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to perform the method steps in the management method of the embedded subscriber identity module card described above.

[0098] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiments, and will not be described herein. In the several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented by other means. The device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some communication interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0099] ​In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. When the functions are realized in the form of software function units and sold or used as an independent product, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts that essentially contribute to the prior art or the parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0100] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application.

Claims

1. A management method for an embedded user identification module card, characterized in that, The method includes: During the system initialization phase of the electronic device, the protocol interface management module in the electronic device is started and run; When the protocol interface management module is running, it obtains information about the current device that needs to communicate with the electronic device, and determines the target interface based on the information of the current device. The target interface is a plug-and-play interface or a high-speed peripheral interconnect interface in the electronic device, and the current device is an embedded user identification module card. In response to a user-inputted operation command for the current device, a communication connection is established with the current device based on the operation command and the target interface, and communication is established with the current device based on the operation command and via the target interface.

2. The management method for the embedded user identification module card according to claim 1, characterized in that, The step of obtaining information about the current device to be communicated with the electronic device includes: Read the configuration file pre-stored in the electronic device; Read the information of the current device from the configuration file.

3. The management method for the embedded user identification module card according to claim 1, characterized in that, The operation instructions include: download configuration file instructions, obtain embedded card identifier instructions, or release current device instructions.

4. The management method for the embedded user identification module card according to claim 1, characterized in that, The step of establishing a communication connection with the current device based on the operation command and the target interface includes: If the operation instruction is to obtain the identification of the embedded card, then in response to the instruction to obtain the identification of the embedded card, a request to open the logical channel is sent to the current device through the target interface; Receive the logical channel identifier returned by the current device, and establish a communication connection with the current device based on the logical channel identifier.

5. The management method for the embedded user identification module card according to claim 4, characterized in that, The step of establishing a communication connection with the current device based on the logical channel identifier includes: The embedded card identification instruction is converted into an acquisition instruction in a preset format; the preset format acquisition instruction is sent to the current device through the logical channel corresponding to the logical channel identifier; and the feedback data returned by the current device is received through the logical channel corresponding to the logical channel identifier.

6. The management method for the embedded user identification module card according to claim 1, characterized in that, The step of establishing a communication connection with the current device based on the operation command and the target interface includes: If the operation instruction is a download configuration file instruction, then in response to the download configuration file instruction, a communication connection is established between the target operator device corresponding to the download configuration file instruction through the target interface, and the target configuration file is obtained from the target operator device and downloaded. In response to the download completion command, a communication connection is established with the current device through the target interface, and the target configuration file is sent to the current device.

7. The management method for the embedded user identification module card according to claim 1, characterized in that, The step of establishing a communication connection with the current device based on the operation instructions and the target interface includes: If the operation instruction is to release the current device, then the target interface will be released.

8. The management method for the embedded user identification module card according to claim 1, characterized in that, The step of establishing a communication connection with the current device based on the operation instructions and the target interface includes: If the operation instruction is a carrier enable instruction, a communication connection is established between the current device and the target interface, and the carrier enable instruction is sent to the current device through the target interface so that the current device enables the target carrier device in the carrier enable instruction.

9. The management method for the embedded user identification module card according to claim 1, characterized in that, The step of establishing a communication connection with the current device based on the operation instructions and the target interface includes: If the operation instruction is a carrier disabling instruction, a communication connection is established between the current device and the target interface, and the carrier disabling instruction is sent to the current device through the target interface, so that the current device disables the target carrier device in the carrier disabling instruction.

10. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program executable by the processor, and the processor executes the computer program to implement the steps of the management method for the embedded user identification module card according to any one of claims 1-9.