CN109219038B - eSIM card operation method, mobile terminal and eSIM card device - Google Patents

eSIM card operation method, mobile terminal and eSIM card device Download PDF

Info

Publication number
CN109219038B
CN109219038B CN201811137090.3A CN201811137090A CN109219038B CN 109219038 B CN109219038 B CN 109219038B CN 201811137090 A CN201811137090 A CN 201811137090A CN 109219038 B CN109219038 B CN 109219038B
Authority
CN
China
Prior art keywords
esim card
mobile terminal
esim
apdu
apdu message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811137090.3A
Other languages
Chinese (zh)
Other versions
CN109219038A (en
Inventor
何坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811137090.3A priority Critical patent/CN109219038B/en
Publication of CN109219038A publication Critical patent/CN109219038A/en
Application granted granted Critical
Publication of CN109219038B publication Critical patent/CN109219038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier

Abstract

The invention discloses an eSIM card operation method, which comprises the following steps: when an eSIM card operating instruction triggered by a user is detected, converting the eSIM card operating instruction into a corresponding first APDU message through the LPA; and sending the first APDU message to the eSIM card equipment, converting the first APDU message into a corresponding eSIM card operating instruction by the eSIM card equipment through the application processor, and executing an operation corresponding to the eSIM card operating instruction on the eSIM card through the baseband processor. The invention also discloses the mobile terminal and the eSIM card equipment. The invention can effectively improve the universality of the operation of the eSIM card.

Description

eSIM card operation method, mobile terminal and eSIM card device
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to an eSIM card operating method, a mobile terminal, and an eSIM card device.
Background
With the continuous development and improvement of an eSIM (Embedded Subscriber identity Module) technology, terminal products implemented by the eSIM technology are gradually favored by users. At present, in an existing eSIM terminal product, management and operation of an eSIM card are integrated in an eSIM card accessory device including the eSIM card, and an eSIM card in the eSIM card accessory device can be operated only by connecting other main devices, such as a mobile terminal, with the eSIM card accessory device, and transmission of an operation instruction is implemented between the eSIM card device and the main device through a private communication protocol, so that the main device can only be connected with a specific eSIM card accessory device, and can only operate the eSIM card in the specific eSIM card accessory device, and the universality of eSIM card operation is poor. Therefore, how to improve the versatility of the eSIM card operation is a problem to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide an eSIM card operating method, a mobile terminal and an eSIM card device, aiming at improving the universality of eSIM card operation.
In order to achieve the above object, the present invention provides an eSIM card operating method, in which the mobile terminal includes a local provisioning component LPA disposed in an application layer of an operating system, the eSIM card is disposed in an eSIM card device, the eSIM card device includes an application processor and a baseband processor, and the eSIM card operating method includes the steps of:
when an eSIM card operating instruction triggered by a user is detected, converting the eSIM card operating instruction into a corresponding first APDU message through the LPA;
and sending the first APDU message to the eSIM card equipment, converting the first APDU message into a corresponding eSIM card operating instruction by the eSIM card equipment through the application processor, and executing an operation corresponding to the eSIM card operating instruction on the eSIM card through the baseband processor.
Optionally, before the step of sending the first APDU message to the eSIM card device, the method further includes:
when an eSIM card operation instruction triggered by a user is detected, detecting whether the eSIM card equipment is connected with the mobile terminal;
If the eSIM card equipment is not connected with the mobile terminal, determining whether the eSIM card equipment is in a connectable area of the mobile terminal;
and if the eSIM card equipment is in the connectable area of the mobile terminal, establishing the connection between the eSIM card equipment and the mobile terminal.
Optionally, after the step of determining whether the eSIM card device is within a connectable area of the mobile terminal, the method further includes:
and if the eSIM card equipment is not in the connectable area of the mobile terminal, the mobile terminal displays connection reminding information.
Optionally, before the step of establishing the connection between the eSIM card device and the mobile terminal, the method further includes:
if the eSIM card equipment is in a connectable area of the mobile terminal, determining whether the eSIM card equipment and the mobile terminal are paired;
if the eSIM card equipment is not paired with the mobile terminal, displaying pairing reminding information, otherwise, establishing the connection between the eSIM card equipment and the mobile terminal.
Optionally, the connection mode of the eSIM card device and the mobile terminal includes an NFC connection and a bluetooth connection.
Optionally, the application processor includes a communication module, the baseband processor includes a SIM card driver module, the application processor is connected to the SIM card driver module in the baseband processor through the communication module, and the baseband processor is connected to the eSIM card.
Optionally, after the eSIM card device executes an operation corresponding to the eSIM card operation instruction, acquiring execution result information, generating a second APDU message according to the execution result information through the baseband processor, sending the second APDU message to the mobile terminal, and sending the first APDU message to the eSIM card device, the method further includes:
and receiving a second APDU message sent by the eSIM card equipment, analyzing the second APDU message through the LPA to obtain execution result information, and displaying the execution result information.
Optionally, the analyzing, by the LPA, the second APDU packet to obtain execution result information, and the displaying the execution result information includes:
analyzing the second APDU message through the LPA to obtain a first state value, a second state value and response data, and determining a third state value according to the first state value and the second state value;
and inquiring a mapping relation table between the pre-stored state value and the command execution result, acquiring the command execution result corresponding to the third state value, and displaying the response data and the command execution result.
In addition, in order to achieve the above object, the present invention further provides a mobile terminal, where the mobile terminal includes a local configuration component LPA disposed in an application layer of an operating system, a user interface, and a client, where the LPA is connected to the client, and the user interface is used for a user to trigger an eSIM card operating instruction;
the LPA is used for converting an eSIM card operating instruction triggered by a user into a corresponding first APDU message and transmitting the first APDU message to the client;
the client is used for sending the first APDU message to an eSIM card device, wherein the eSIM card device converts the first APDU message into a corresponding eSIM card operating instruction and executes an operation corresponding to the eSIM card operating instruction on the eSIM card.
The invention also provides an eSIM card device, which comprises an application processor, a baseband processor and an eSIM card, wherein the application processor comprises a communication module and a service end, the baseband processor comprises an SIM card driving module, the application processor is connected with the SIM card driving module in the baseband processor through the communication module, the baseband processor is connected with the eSIM card, and the service end is used for receiving a first APDU message sent by a mobile terminal and transmitting the first APDU message to the communication module;
The communication module is used for converting the first APDU message into a corresponding eSIM card operating instruction and transmitting the eSIM card operating instruction to the SIM card driving module;
the SIM card driving module is used for executing the operation corresponding to the operation instruction of the eSIM card on the eSIM card.
The invention provides an eSIM card operating method, a mobile terminal and an eSIM card device, when detecting an eSIM card operating instruction triggered by a user, the mobile terminal containing a Local configuration component LPA converts the eSIM card operating instruction into an Application Protocol Data Unit (APDU) message through the LPA and sends the APDU message to the eSIM card device, an Application processor in the eSIM card device converts the APDU message into an eSIM card operating instruction and transmits the eSIM card operating instruction to a baseband processor, the baseband processor executes an operation corresponding to the eSIM card operating instruction on the eSIM card, because the eSIM card operating instruction is transmitted between the mobile terminal and the eSIM card device through a standard APDU message, the mobile terminal can be compatible with the eSIM card device and can be connected with the eSIM card devices of different types and operate the eSIM cards of different types in the eSIM card devices of different types, the universality of the operation of the eSIM card is effectively improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a diagram illustrating a communication network architecture according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an eSIM card operating method according to a first embodiment of the present invention;
fig. 4 is a schematic architecture diagram of a mobile terminal and an eSIM card device according to a first embodiment of the present invention;
fig. 5 is a flowchart illustrating an eSIM card operating method according to a second embodiment of the present invention;
fig. 6 is a functional block diagram of a mobile terminal according to a first embodiment of the present invention;
fig. 7 is a functional block diagram of an eSIM card device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following specifically describes the components of the mobile terminal with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, without limitation.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module and a local configuration component LPA, etc., which are not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. The eNodeB2021 may be connected with other eNodeB2022 via backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the eSIM card operating method.
Referring to fig. 3, fig. 3 is a flowchart illustrating an eSIM card operating method according to a first embodiment of the present invention.
In this embodiment, the eSIM card operating method includes:
step S101, when an eSIM card operation instruction triggered by a user is detected, converting the eSIM card operation instruction into a corresponding first APDU message through an LPA;
in this embodiment, the eSIM card operating method is applied to a mobile terminal, as shown in fig. 4, the mobile terminal includes a user interface, an LPA (Local Profile identifier) and a client, the user interface is connected to the Local Profile identifier LPA, the Local Profile identifier LPA is connected to the client, and the Local Profile identifier LPA is disposed in an application layer of an operating system; the eSIM card equipment comprises an application processor, a baseband processor and an eSIM card, wherein the application processor comprises a service end and a communication module, the baseband processor comprises an SIM card driving module, the service end is connected with the communication module, the communication module is connected with the SIM card driving module in the baseband processor, the baseband processor is connected with the eSIM card, the communication between the mobile terminal and the eSIM card equipment is realized through a client of the mobile terminal and the service end in the eSIM card equipment, and the eSIM card equipment is responsible for transmitting an APDU message issued by a local configuration component LPA.
In this embodiment, a user operates in a user interface of a mobile terminal, so as to trigger different eSIM card operation instructions, such as an eSIM card activation instruction, an eSIM card information reading instruction, an eSIM card Profile switching instruction, and the like, when an eSIM card operation instruction triggered by the user through the user interface is detected, the eSIM card operation instruction is transmitted to a local configuration component LPA, and the eSIM card operation instruction is converted into a corresponding first APDU message through the local configuration component LPA. The first APDU message is a command APDU message and consists of a command header and a command body, wherein the command header comprises CLA, INS, P1 and P2, the command body comprises Lc, DATA and Le, the CLA is the command type of the command message, the INS is the instruction code, the P1 is the instruction parameter 1, the P2 is the instruction parameter 2, the Lc is the byte number existing in the command DATA field, the DATA is the DATA bit string sent by the command, and the Le is the maximum DATA byte number expected in the response DATA field. In specific implementation, the triggering manner of the eSIM card operation instruction includes, but is not limited to, a scan trigger, a touch trigger, and a voice trigger.
The specific method for converting the eSIM card operating instruction into the APDU message is to query a mapping relation table of a prestored eSIM card operating instruction and an APDU message parameter, obtain an APDU message parameter corresponding to the eSIM card operating instruction, and assemble the APDU message according to the APDU message parameter and an APDU message format, wherein the APDU message parameter is CLA, INS, P1, P2, Lc, DATA and Le, that is, a command type, a command code, a command parameter 1, a command parameter 2, the number of bytes existing in a command DATA field, a DATA bit string sent by a command, and the maximum number of DATA bytes expected in a response DATA field.
Step S102, the first APDU message is sent to the eSIM card equipment, the eSIM card equipment converts the first APDU message into a corresponding eSIM card operating instruction through the application processor, and the baseband processor executes an operation corresponding to the eSIM card operating instruction on the eSIM card.
In this embodiment, after converting an eSIM card operation instruction into a corresponding first APDU message, the mobile terminal transmits the first APDU message to the client, the client transmits the first APDU message to the eSIM card device, the eSIM card device receives the first APDU message transmitted by the mobile terminal through the client through the server, and converts the first APDU message into a corresponding eSIM card operation instruction through the application processor, that is, the first APDU message is transmitted to the communication module in the application processor, the communication module converts the first APDU message into a corresponding eSIM card operation instruction, specifically, reads the APDU message parameters in the first APDU message, that is, the command type, the command code, the command parameter 1, the command parameter 2, the byte number existing in the command data field, the data bit string sent by the command, and the maximum data expected in the response data field, and then queries the mapping relationship table between the prestored eSIM card operation instruction and the APDU message parameters, and acquiring an eSIM card operating instruction corresponding to the APDU message parameters. The eSIM card device transmits the converted eSIM card operation instruction to the baseband processor, and executes an operation corresponding to the eSIM card operation instruction on the eSIM card through the baseband processor, that is, the converted eSIM card operation instruction is transmitted to the SIM card driver module in the baseband processor through the communication module, and the SIM card driver module in the baseband processor executes an operation corresponding to the eSIM card operation instruction on the eSIM card.
For example, if the eSIM card operating instruction is an eSIM card activation instruction, an eSIM card in the eSIM card device is activated, specifically, according to the eSIM card activation instruction, an Electronic IDentity (EID) and an International Mobile Equipment IDentity (IMEI) of the eSIM card are read, the EID and the IMEI are transmitted to the Mobile terminal in an APDU message, the Mobile terminal analyzes the EID and the IMEI from the APDU message and uploads the EID and the IMEI to the server for verification, after the verification is passed, an activation page is displayed in the Mobile terminal, activation of the eSIM card is completed through the activation page, that is, profile information of the eSIM card is transmitted to the eSIM card device in an APDU message, and is written into the eSIM card in the eSIM card device, so that the eSIM card is activated.
Further, in this embodiment, after step S103, the method further includes
And a, receiving a second APDU message sent by the eSIM card equipment, analyzing the second APDU message through the LPA to obtain execution result information, and displaying the execution result information.
In this embodiment, the second APDU message is a response APDU message, and is composed of a condition body and a necessary state value, the condition body is DATA, the necessary state value includes SW1 and SW2, DATA is a DATA bit string received in the response, SW1 is a command processing state, and SW2 is a command processing limit. And after the eSIM card equipment executes the operation corresponding to the eSIM card operation instruction, acquiring execution result information including a command execution result and response data, generating a second APDU message according to the execution result information through the application processor, and sending the second APDU message to the mobile terminal. Specifically, a command execution result is read from the execution result information, a mapping relation table between the prestored command execution result and a state value group is queried, a state value group corresponding to the command execution result is obtained, then a state value corresponding to the command processing state and a state value corresponding to the command processing limit are obtained from the state value group, and the second APDU message is generated according to the APDU message format, the response data, the state value corresponding to the command processing state and the state value corresponding to the command processing limit.
And the mobile terminal receives a second APDU message sent by the eSIM card equipment, analyzes the second APDU message through the LPA to acquire execution result information, namely analyzes and acquires the second APDU message through the LPA to acquire the execution result information, displays the execution result information and displays the execution result information. Specifically, the second APDU message is parsed by the LPA, the first state value, the second state value and the response DATA, that is, SW1, SW2 and DATA, are obtained, and according to the first state value and the second state value, the third state value is determined, that is, the third state value is formed by combining the first state value and the second state value, and the combination mode is that the first state value is before and the second state value is after, then the mapping relation table between the pre-stored state value and the command execution result is queried, the command execution result corresponding to the third state value is obtained, and the response DATA and the command execution result are displayed.
In this embodiment, for a mobile terminal including a Local configuration component LPA, when an eSIM card operation instruction triggered by a user is detected, the Local configuration component LPA converts the eSIM card operation instruction into an APDU (Application Protocol Data Unit) message and sends the APDU message to an eSIM card device, an Application processor in the eSIM card device converts the APDU message into an eSIM card operation instruction and transmits the eSIM card operation instruction to a baseband processor, the baseband processor executes an operation corresponding to the eSIM card operation instruction on the eSIM card, and the mobile terminal is compatible with and connectable to different types of eSIM card devices by transmitting the eSIM card operation instruction through a standard APDU message between the mobile terminal and the eSIM card devices, the universality of the operation of the eSIM card is effectively improved.
Further, referring to fig. 5, a second embodiment of the eSIM card operating method of the present invention is proposed based on the first embodiment, and is different from the foregoing embodiment in that before step S102, the method further includes:
step S103, when an eSIM card operation instruction triggered by a user is detected, detecting whether an eSIM card device is connected with the mobile terminal;
in this embodiment, a user operates in a user interface of a mobile terminal to trigger different eSIM card operation instructions, such as an eSIM card activation instruction, an eSIM card information reading instruction, an eSIM card Profile switching instruction, and the like, and when an eSIM card operation instruction triggered by the user through the user interface is detected, whether an eSIM card device is connected to the mobile terminal is detected.
Step S104, if the situation that the eSIM card equipment is not connected with the mobile terminal is detected, whether the eSIM card equipment is in a connectable area of the mobile terminal is determined;
in this embodiment, if it is detected that the eSIM card device is not connected to the mobile terminal, it is further determined whether the eSIM card device is located in a connectable area of the mobile terminal, where the connectable area is divisible into an NFC connectable area and a bluetooth connectable area according to a connection manner of the eSIM card device to the mobile terminal, specifically, it may be determined whether the eSIM card device is located in the NFC connectable area first, and if the eSIM card device is not located in the NFC connectable area, it is further determined whether the eSIM card device is located in the bluetooth connectable area, that is, it is determined whether the mobile terminal can search for a bluetooth signal of the eSIM card device, if a bluetooth signal of the eSIM card device can be searched, it is determined that the eSIM card device is located in the bluetooth connectable area, and if a bluetooth signal of the eSIM card device is not searched, it is determined that the eSIM card device is not located in the bluetooth connectable area. In a specific implementation, if the connection of the mobile terminal of the eSIM card device is detected, the eSIM card operation instruction is converted into a corresponding first APDU message through the LPA, and the first APDU message is sent to the eSIM card device.
Step S105, if the eSIM card equipment is in the connectable area of the mobile terminal, establishing the connection between the eSIM card equipment and the mobile terminal.
In this embodiment, if the eSIM card device is located in the connectable area of the mobile terminal, the connection between the eSIM card device and the mobile terminal is established, and if the eSIM card device is not located in the connectable area of the mobile terminal, that is, the eSIM card device is neither located in the NFC connectable area nor located in the bluetooth connectable area, the connection prompt message is displayed.
Further, if the eSIM card device is within the bluetooth connectable area of the mobile terminal, determining whether the eSIM card device is paired with the mobile terminal, if the eSIM card device is not paired with the mobile terminal, displaying a pairing reminding message to remind a user to manually complete bluetooth pairing of the eSIM card device and the mobile terminal, and then establishing connection between the eSIM card device and the mobile terminal after successful pairing.
In this embodiment, before the transmission operation of the eSIM card operation instruction is performed, whether the mobile terminal is connected to the eSIM card device is detected, and when the mobile terminal is not connected and the eSIM card device is located in a connectable area of the mobile terminal, the connection between the eSIM card device and the mobile terminal is automatically established, so that the problem that the eSIM card operation instruction cannot be transmitted in time after the eSIM card operation instruction is triggered is prevented.
The invention also provides a mobile terminal.
Referring to fig. 6, fig. 6 is a functional module diagram of a mobile terminal according to a first embodiment of the present invention.
As shown in fig. 6, the mobile terminal includes a local configuration component LPA, a user interface and a client, where the local configuration component LPA is disposed in an application layer of an operating system of the mobile terminal, and the LPA is connected to the client, where the user interface is used for a user to trigger an eSIM card operating instruction;
the LPA is used for converting an eSIM card operating instruction triggered by a user into a corresponding first APDU message and transmitting the first APDU message to the client;
the client is used for sending the first APDU message to an eSIM card device, wherein the eSIM card device converts the first APDU message into a corresponding eSIM card operating instruction and executes an operation corresponding to the eSIM card operating instruction on the eSIM card.
Further, the mobile terminal further includes:
the detection module is used for detecting whether the eSIM card equipment is connected with the mobile terminal or not when an eSIM card operation instruction triggered by a user is detected;
the detection module is further configured to determine whether the eSIM card device is in a connectable area of the mobile terminal if it is detected that the eSIM card device is not connected to the mobile terminal;
The client is further configured to establish a connection between the eSIM card device and the mobile terminal if the eSIM card device is located in a connectable area of the mobile terminal.
Further, the mobile terminal further includes:
a first display module, configured to display a connection prompting message by the mobile terminal if the eSIM card device is not located in a connectable area of the mobile terminal.
Further, the mobile terminal further includes:
a determining module, configured to determine whether the eSIM card device is paired with the mobile terminal if the eSIM card device is within a connectable area of the mobile terminal;
and if the eSIM card equipment is not paired with the mobile terminal, displaying pairing reminding information through a second display module, otherwise, establishing the connection between the eSIM card equipment and the mobile terminal through the client.
Further, the mobile terminal further includes:
the client is also used for receiving a second APDU message sent by the eSIM card equipment;
the LPA is further configured to parse the second APDU packet to obtain execution result information;
and the third display module is used for displaying the execution result information.
The function implementation of each module in the mobile terminal corresponds to each step in the embodiment of the eSIM card operation method, and the functions and implementation processes are not described in detail herein.
The invention also provides an eSIM card device.
Referring to fig. 7, fig. 7 is a functional module diagram of a first embodiment of an eSIM card device of the present invention.
As shown in fig. 7, the eSIM card device includes an application processor, a baseband processor, and an eSIM card, where the application processor includes a communication module and a service end, the baseband processor includes an SIM card driver module, the application processor is connected to the SIM card driver module in the baseband processor through the communication module, and the baseband processor is connected to the eSIM card, where the service end is configured to receive a first APDU message sent by a mobile terminal and transmit the first APDU message to the communication module; the communication module is used for converting the first APDU message into a corresponding eSIM card operating instruction and transmitting the eSIM card operating instruction to the SIM card driving module; the SIM card driving module is used for executing the operation corresponding to the operation instruction of the eSIM card on the eSIM card.
Further, after the eSIM card device executes an operation corresponding to the eSIM card operation instruction, obtaining execution result information, generating a second APDU message according to the execution result information through the application processor, and sending the second APDU message to the mobile terminal.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an eSIM card operating program is stored on the computer-readable storage medium, and when the eSIM card operating program is executed by a processor, the following steps are implemented:
when an eSIM card operating instruction triggered by a user is detected, converting the eSIM card operating instruction into a corresponding first APDU message through the LPA;
and sending the first APDU message to the eSIM card equipment, converting the first APDU message into a corresponding eSIM card operating instruction by the eSIM card equipment through the application processor, and executing an operation corresponding to the eSIM card operating instruction on the eSIM card through the baseband processor.
Further, when executed by a processor, the eSIM card operating program further implements the steps of:
when an eSIM card operation instruction triggered by a user is detected, detecting whether the eSIM card equipment is connected with the mobile terminal;
If the eSIM card equipment is not connected with the mobile terminal, determining whether the eSIM card equipment is in a connectable area of the mobile terminal;
and if the eSIM card equipment is in the connectable area of the mobile terminal, establishing the connection between the eSIM card equipment and the mobile terminal.
Further, when executed by a processor, the eSIM card operating program further implements the steps of:
and if the eSIM card equipment is not in the connectable area of the mobile terminal, the mobile terminal displays connection reminding information.
Further, when executed by a processor, the eSIM card operating program further implements the steps of:
if the eSIM card equipment is in a connectable area of the mobile terminal, determining whether the eSIM card equipment and the mobile terminal are paired;
if the eSIM card equipment is not paired with the mobile terminal, displaying pairing reminding information, otherwise, establishing the connection between the eSIM card equipment and the mobile terminal.
Further, the connection mode of the eSIM card device and the mobile terminal includes NFC connection and bluetooth connection.
Further, the application processor includes a communication module, the baseband processor includes a SIM card driver module, the application processor is connected with the SIM card driver module in the baseband processor through the communication module, and the baseband processor is connected with the eSIM card.
Further, after the eSIM card device executes an operation corresponding to the eSIM card operation instruction, acquiring execution result information, generating a second APDU message according to the execution result information by the application processor, and sending the second APDU message to the mobile terminal, where the eSIM card operation program further implements the following steps when executed by the processor:
and the mobile terminal receives a second APDU message sent by the eSIM card equipment, analyzes the second APDU message through the LPA to acquire execution result information, and displays the execution result information.
Further, when executed by a processor, the eSIM card operating program further implements the steps of:
analyzing the second APDU message through the LPA to obtain a first state value, a second state value and response data, and determining a third state value according to the first state value and the second state value;
and inquiring a mapping relation table between the pre-stored state value and the command execution result, acquiring the command execution result corresponding to the third state value, and displaying the response data and the command execution result.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the eSIM card operating method described above, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. An embedded Subscriber Identity Module (SIM) card operating method is applied to a mobile terminal, and is characterized in that the mobile terminal comprises a local configuration component (LPA) arranged in an application layer of an operating system, the eSIM card is arranged in an eSIM card device, the eSIM card device comprises an application processor and a baseband processor, and the eSIM card operating method comprises the following steps:
when an eSIM card operating instruction triggered by a user is detected, converting the eSIM card operating instruction into a corresponding first APDU message through the LPA;
sending the first APDU message to the eSIM card equipment, receiving a second APDU message sent by the eSIM card equipment, analyzing the second APDU message through the LPA, acquiring a first state value, a second state value and response data, and determining a third state value according to the first state value and the second state value; and querying a mapping relation table between pre-stored state values and command execution results, obtaining command execution results corresponding to the third state values, and displaying the response data and the command execution results, wherein the eSIM card device converts the first APDU messages into corresponding eSIM card operation instructions through the application processor, and executes operations corresponding to the eSIM card operation instructions on the eSIM card through the baseband processor, wherein the eSIM card device obtains execution result information after executing operations corresponding to the eSIM card operation instructions, generates second APDU messages according to the execution result information through the application processor, and sends the second APDU messages to the mobile terminal.
2. The method for operating an eSIM card according to claim 1, wherein prior to the step of sending the first APDU message to the eSIM card device, the method further comprises:
when an eSIM card operating instruction triggered by a user is detected, detecting whether the eSIM card equipment is connected with the mobile terminal;
if the eSIM card equipment is not connected with the mobile terminal, determining whether the eSIM card equipment is in a connectable area of the mobile terminal;
and if the eSIM card equipment is in the connectable area of the mobile terminal, establishing the connection between the eSIM card equipment and the mobile terminal.
3. The method of operating an eSIM card of claim 2, wherein the step of determining whether the eSIM card device is within a connectable area of the mobile terminal is followed by further comprising:
and if the eSIM card equipment is not in the connectable area of the mobile terminal, the mobile terminal displays connection reminding information.
4. The method of operating an eSIM card of claim 2, wherein the step of establishing a connection of the eSIM card device with the mobile terminal is preceded by:
if the eSIM card equipment is in a connectable area of the mobile terminal, determining whether the eSIM card equipment and the mobile terminal are paired;
If the eSIM card equipment is not paired with the mobile terminal, displaying pairing reminding information, otherwise, establishing the connection between the eSIM card equipment and the mobile terminal.
5. The method of operating an eSIM card of claim 2, wherein the eSIM card device is connected to the mobile terminal in a manner that includes an NFC connection and a bluetooth connection.
6. The method of any of claims 1-5, wherein the application processor comprises a communication module, wherein the baseband processor comprises a SIM card driver module, wherein the application processor is connected to the SIM card driver module in the baseband processor via the communication module, and wherein the baseband processor is connected to the eSIM card.
7. A mobile terminal is characterized by comprising a local configuration component (LPA) arranged at an application layer of an operating system, a user interface and a client, wherein the LPA is connected with the client, and the user interface is used for triggering an eSIM card operating instruction by a user;
the LPA is used for converting an eSIM card operating instruction triggered by a user into a corresponding first APDU message and transmitting the first APDU message to the client;
The client is used for sending the first APDU message to an eSIM card device, receiving a second APDU message sent by the eSIM card device, analyzing the second APDU message through the LPA, acquiring a first state value, a second state value and response data, and determining a third state value according to the first state value and the second state value; and querying a mapping relation table between pre-stored state values and command execution results, obtaining command execution results corresponding to the third state values, and displaying the response data and the command execution results, wherein the eSIM card device converts the first APDU messages into corresponding eSIM card operation instructions through an application processor, and executes operations corresponding to the eSIM card operation instructions on the eSIM card through a baseband processor, wherein the eSIM card device obtains execution result information after executing operations corresponding to the eSIM card operation instructions, generates second APDU messages according to the execution result information through the application processor, and sends the second APDU messages to the mobile terminal.
8. The eSIM card equipment is characterized by comprising an application processor, a baseband processor and an eSIM card, wherein the application processor comprises a communication module and a service end, the baseband processor comprises an SIM card driving module, the application processor is connected with the SIM card driving module in the baseband processor through the communication module, the baseband processor is connected with the eSIM card, and the service end is used for receiving a first APDU message sent by a mobile terminal and transmitting the first APDU message to the communication module;
The communication module is used for converting the first APDU message into a corresponding eSIM card operating instruction and transmitting the eSIM card operating instruction to the SIM card driving module;
the SIM card driving module is used for executing the operation corresponding to the eSIM card operation instruction on the eSIM card;
and after the eSIM card equipment executes the operation corresponding to the eSIM card operation instruction, acquiring execution result information, generating a second APDU message according to the execution result information through the application processor, and sending the second APDU message to the mobile terminal.
CN201811137090.3A 2018-09-27 2018-09-27 eSIM card operation method, mobile terminal and eSIM card device Active CN109219038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811137090.3A CN109219038B (en) 2018-09-27 2018-09-27 eSIM card operation method, mobile terminal and eSIM card device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811137090.3A CN109219038B (en) 2018-09-27 2018-09-27 eSIM card operation method, mobile terminal and eSIM card device

Publications (2)

Publication Number Publication Date
CN109219038A CN109219038A (en) 2019-01-15
CN109219038B true CN109219038B (en) 2022-06-10

Family

ID=64982103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811137090.3A Active CN109219038B (en) 2018-09-27 2018-09-27 eSIM card operation method, mobile terminal and eSIM card device

Country Status (1)

Country Link
CN (1) CN109219038B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1965596A1 (en) * 2007-02-27 2008-09-03 Gemplus A personal token having enhanced communication abilities for a hosted application
CN102202306A (en) * 2011-06-13 2011-09-28 中国电信股份有限公司 Mobile security authentication terminal and method
CN103874054A (en) * 2012-12-07 2014-06-18 中国移动通信集团公司 Data transmission method, mobile terminal and SIM card
CN106416331A (en) * 2014-05-30 2017-02-15 苹果公司 Electronic subscriber identity module selection
CN108293043A (en) * 2015-11-13 2018-07-17 三星电子株式会社 Method and apparatus for the profile for downloading the universal embedded integrated circuit card about terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11282056B2 (en) * 2016-04-20 2022-03-22 Thales Dis Usa, Inc. Method, servers and system for downloading an updated profile

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1965596A1 (en) * 2007-02-27 2008-09-03 Gemplus A personal token having enhanced communication abilities for a hosted application
CN102202306A (en) * 2011-06-13 2011-09-28 中国电信股份有限公司 Mobile security authentication terminal and method
CN103874054A (en) * 2012-12-07 2014-06-18 中国移动通信集团公司 Data transmission method, mobile terminal and SIM card
CN106416331A (en) * 2014-05-30 2017-02-15 苹果公司 Electronic subscriber identity module selection
CN108293043A (en) * 2015-11-13 2018-07-17 三星电子株式会社 Method and apparatus for the profile for downloading the universal embedded integrated circuit card about terminal

Also Published As

Publication number Publication date
CN109219038A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN109257740B (en) Profile downloading method, mobile terminal and readable storage medium
CN109379735B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN107038245B (en) Page switching method, mobile terminal and storage medium
CN107423238B (en) Screen projection connection method and device and computer readable storage medium
CN107172605B (en) Emergency call method, mobile terminal and computer readable storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN111190559A (en) Screen projection control synchronization method, mobile terminal and computer readable storage medium
CN107707755B (en) Key using method, terminal and computer readable storage medium
CN108629863B (en) Method for automatically signing in application program, mobile terminal and readable storage medium
CN108260009B (en) Video processing method, mobile terminal and computer readable storage medium
CN108040116B (en) Message pushing method, router and computer readable storage medium
CN107809527B (en) Method for presenting shortcut operation and electronic equipment
CN109089258B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109219039B (en) eSIM card operation method, mobile terminal and eSIM card device
CN108183833B (en) Response processing method and device and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN111931155A (en) Verification code input method, verification code input equipment and storage medium
CN109068314B (en) Operator configuration file switching method, intelligent device and readable storage medium
CN109062688B (en) Memory allocation method, server and mobile terminal
CN108845821B (en) Application program updating method, terminal and computer readable storage medium
CN109104722B (en) Terminal access method, device and computer readable storage medium
CN108650404B (en) Port starting circuit, device and mobile terminal
CN108040330B (en) WiFi directional transmission method, mobile terminal and readable storage medium

Legal Events

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