CN114727275B - Method and related device for processing active command - Google Patents

Method and related device for processing active command Download PDF

Info

Publication number
CN114727275B
CN114727275B CN202210298053.0A CN202210298053A CN114727275B CN 114727275 B CN114727275 B CN 114727275B CN 202210298053 A CN202210298053 A CN 202210298053A CN 114727275 B CN114727275 B CN 114727275B
Authority
CN
China
Prior art keywords
command
card
user identification
subscriber identity
identification card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210298053.0A
Other languages
Chinese (zh)
Other versions
CN114727275A (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.)
Xi'an Guanghetong Wireless Communication Co ltd
Original Assignee
Xi'an Guanghetong Wireless Communication 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 Xi'an Guanghetong Wireless Communication Co ltd filed Critical Xi'an Guanghetong Wireless Communication Co ltd
Priority to CN202210298053.0A priority Critical patent/CN114727275B/en
Publication of CN114727275A publication Critical patent/CN114727275A/en
Application granted granted Critical
Publication of CN114727275B publication Critical patent/CN114727275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

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

Abstract

The application provides a method and a related device for processing an active command, which are applied to an Application Processor (AP) in terminal equipment, wherein a user identification card is configured in the terminal equipment, and the method comprises the following steps: after a first command sent by the user identification card is received, sending an acquisition command to the user identification card, wherein the first command is used for indicating that the user identification card needs to report an active command, and the acquisition command is used for indicating that the user identification card reports the active command to the terminal equipment; receiving a first active command reported by the user identification card, wherein the first active command is used for indicating the terminal equipment to execute a first function program; and sending a first response command to the user identification card, wherein the first response command is used for indicating an execution result of the first functional program. The problem that the debugging and application of the user identification card cannot be supported due to the fact that the platform does not support the active command is effectively solved.

Description

Method and related device for processing active command
Technical Field
The present disclosure relates to the field of computers, and more particularly, to a method and apparatus for processing proactive commands.
Background
With the rapid development of electronic communications, subscriber identification cards of various large mobile communication operators, including subscriber identity cards (Subscriber Identification Module, SIM cards) and electronic SIM cards (eSIM cards), are certainly the keys of mobile communications.
According to the third generation partnership project (3rd Generation Partnership Project,3GPP) specifications, the subscriber identity card may request the terminal device to execute a corresponding program, such as dialing a telephone number stored in the SIM card, displaying a welcome corresponding to the operator of the subscriber identity card, etc., through an proactive command of the AT commands. In general, the baseband processor in the terminal device triggers the active command of the terminal device with the subscriber identity card and the baseband processor in the terminal device interacts with the active command.
However, in some platforms, the baseband processor may not support triggering proactive commands, for example, due to low compatibility, the baseband processor of the fourth generation mobile communication technology (the 4th generation mobile communication technology,4G) platform supports proactive commands for the subscriber identification card, and the baseband processor of the fifth generation mobile communication technology (5 th-Generation Mobile Communication Technology, 5G) platform does not support proactive commands for the subscriber identification card. And most of baseband processors are in a state of no open source, and the baseband processors cannot support active commands by modifying the baseband processors, so that the application of the subscriber identity module card is limited to a certain extent.
Disclosure of Invention
In a first aspect, the present application provides a method for processing an active command, applied to an application processor AP in a terminal device, where a user identification card is configured in the terminal device, the method includes: after a first command sent by the user identification card is received, sending an acquisition command to the user identification card, wherein the first command is used for indicating that the user identification card needs to report an active command, and the acquisition command is used for indicating that the user identification card reports the active command to the terminal equipment; receiving a first active command reported by the user identification card, wherein the first active command is used for indicating the terminal equipment to execute a first function program; and sending a first response command to the user identification card, wherein the first response command is used for indicating an execution result of the first functional program.
Illustratively, the subscriber identity card is a pluggable subscriber identity SIM card or an embedded subscriber identity eSIM card. The first command is a status word 91xx command in the AT command, the get command is a fetch command in the AT command, the proactive command is a proactive command command in the AT command, and the first response command is a terminal response command.
By adopting the method for processing the active command, which is provided by the embodiment of the application, an Application Processor (AP) in the terminal equipment triggers the active command interaction flow and the AP and the user identification card complete the active command interaction flow, the problem that the debugging and the application of the user identification card cannot be supported because the platform does not support the active command can be effectively avoided, the development of excessively dependent platforms is further avoided, and the barriers are reduced for the application of the user identification card.
In one possible implementation, before the sending the acquisition command to the subscriber identity card, the method further includes: determining whether a baseband processor in the terminal device supports processing of active commands; the sending the acquisition command to the user identification card comprises the following steps: and sending an acquisition command to the user identification card under the condition that the baseband processor is not supported to process the active command.
It can be understood that the baseband processors of some platforms support active commands, and the baseband processors of some platforms do not support active commands. If the baseband processor supports the user identification card, the baseband processor sends an acquisition command to the user identification card, so that the user identification card has strong adaptability.
It will be appreciated that communication between the AP and the subscriber identity card needs to be forwarded via a baseband processor in the terminal device.
In an exemplary implementation manner, after receiving the first command sent by the subscriber identity card, sending an acquisition command to the subscriber identity card includes: receiving the first command sent by a baseband processor in the terminal equipment, wherein the first command is sent by the user identification card to the baseband processor; transmitting the acquisition command to the baseband processor so that the acquisition command is transmitted to the user identification card through the baseband processor; the receiving the first active command reported by the user identification card comprises the following steps: receiving the first active command sent by the baseband processor, wherein the first active command is reported to the baseband processor by the user identification card; the sending the first response command to the user identification card comprises the following steps: and sending the first response command to the baseband processor, so that the first response command is sent to the user identification card through the baseband processor.
In one possible implementation manner, the subscriber identity card is an embedded subscriber identity eSIM card, the eSIM card corresponds to at least two integrated circuit card identifiers ICCIDs, the eSIM card only supports one ICCID of the at least two ICCIDs in a use state at a same time, and before the first command sent by the subscriber identity card is received and the acquisition command is sent to the subscriber identity card, the method further includes: sending a card cutting instruction to the user identification card, wherein the card cutting instruction comprises a first ICCID; after said sending the first response command to the subscriber identity card, the method further comprises: receiving a second response command sent by the user identification card, wherein the second response command is used for indicating that the user identification card is in a card cutting ready state; and sending a restarting instruction to the user identification card, wherein the restarting instruction is used for enabling the first ICCID to be in a use state.
In one possible implementation manner, the first proactive command includes cut card data, the first functional program is configured to determine target display content according to the cut card data, where the target display content includes an operator name of a first number corresponding to the first ICCID and a mobile communication network type supported by the first number, and after the sending a restart instruction to the subscriber identity card, the method further includes: and outputting the target display content.
In one possible implementation, the subscriber identity card is a pluggable subscriber identity SIM card or an embedded subscriber identity eSIM card.
In one possible implementation manner, the subscriber identity card is an embedded subscriber identity eSIM card, the first functional program includes that the terminal device sends a device identifier of the terminal device to the subscriber identity card, the first response command includes the device identifier of the terminal device, and before the first command sent by the subscriber identity card is received and the acquisition command is sent to the subscriber identity card, the method further includes: transmitting a device binding instruction to the user identification card; after said sending the first response command to the subscriber identity card, the method further comprises: and receiving a third response command sent by the user identification card, wherein the third response command is used for indicating that the user identification card stores the equipment identification information of the terminal equipment.
In a second aspect, the present application provides an apparatus for processing an active command, which is applied to an application processor AP in a terminal device, where a subscriber identity card is configured, and the apparatus includes: the receiving and transmitting unit is used for transmitting an acquisition command to the user identification card after receiving a first command transmitted by the user identification card, wherein the first command is used for indicating that the user identification card needs to report an active command, and the acquisition command is used for indicating the user identification card to report the active command to the terminal equipment; the receiving and transmitting unit is further configured to receive a first active command reported by the subscriber identity module card, where the first active command is used to instruct the terminal device to execute a first function program; the receiving and transmitting unit is further configured to send a first response command to the subscriber identity module card, where the first response command is used to indicate an execution result of the first function program.
In one possible implementation, the apparatus further includes: a determining unit, configured to determine, before the sending of the acquisition command to the subscriber identity module, whether a baseband processor in the terminal device supports processing of an active command; the receiving and transmitting unit is specifically configured to send an acquisition command to the subscriber identity module card when it is determined that the baseband processor does not support processing of the active command.
In a third aspect, the present application provides an electronic device, comprising: a memory, a processor, wherein the memory stores program instructions; the program instructions, when executed by the processor, cause the processor to perform the method as described in the first aspect and any possible implementation of the first aspect.
In a fourth aspect, embodiments of the present application provide a chip system, which is applied to an electronic device, the chip system including one or more processors configured to invoke computer instructions to cause the electronic device to perform the method shown in the first aspect or any possible implementation manner of the first aspect.
In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored therein; the computer program, when run on one or more processors, causes the terminal device to perform the method as described in the first aspect and any possible implementation of the first aspect.
In a sixth aspect, the present application provides a computer program product comprising instructions which, when run on a terminal device, cause the terminal device to perform a method as described in the first aspect and any possible implementation of the first aspect.
It will be appreciated that the apparatus for processing an proactive command provided in the second aspect, the electronic device provided in the third aspect, the chip system provided in the fourth aspect, the computer storage medium provided in the fifth aspect, and the computer program product provided in the sixth aspect described above are all configured to perform the method shown in the first aspect or any implementation manner of the first aspect of the embodiments of the present application. Therefore, the advantages achieved by the method can be referred to as the advantages of the corresponding method, and will not be described herein.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below.
FIG. 1 is a flow chart of a method for processing proactive commands according to one embodiment of the present disclosure;
FIG. 2 is a flow chart of a method for processing proactive commands according to one embodiment of the present application;
FIG. 3 is a schematic structural diagram of an apparatus for processing proactive commands according to one embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of another device for processing proactive commands according to embodiments of the present application;
fig. 5 is a schematic structural diagram of another apparatus for processing an active command according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the accompanying drawings.
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary.
In the present application, "at least one (item)" means one or more, "a plurality" means two or more, and "at least two (items)" means two or three or more, and/or "for describing an association relationship of an association object, three kinds of relationships may exist, for example," a and/or B "may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of (a) or a similar expression thereof means any combination of these items. For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c".
Embodiments of the present application provide a method for processing proactive commands, and in order to more clearly describe the aspects of the present application, some knowledge related to proactive commands of the present application will be described below.
1. User identification card
In the embodiment of the application, a subscriber identity card (Subscriber Identification Module, SIM card) and an electronic SIM card (eSIM card) are collectively referred to as a subscriber identity card. It is to be appreciated that other names besides subscriber identification cards may be employed such as, but not limited to, smart cards or cell phone cards.
The SIM card is an external physical card and can be inserted into a card slot of the terminal equipment for use. A SIM card corresponds to only a fixed integrated circuit card identification code (Integrate circuit card identity, ICCID) and a telephone number, which are already determined at the factory and cannot be modified by the user in subsequent use.
An eSIM card is a built-in (embedded) virtual card, one eSIM card can correspond to multiple integrated circuit card identification codes (Integrate circuit card identity, ICCIDs) and corresponding multiple phone numbers, but at the same time, one eSIM card only supports one of the multiple ICCIDs in use. An eSIM card may initially be an empty card that does not contain any data content other than a unique identification (e.g., eID). The eSIM card supports over-the-air card writing, and the ICCID can be written to the eSIM card in an online transaction manner. In case at least two ICCIDs are stored in an eSIM card, the eSIM card supports cut cards, i.e. switches from one ICCID to another ICCID for use.
2. AT command, proactive command
The AT command is an instruction applied to connection and communication between the Terminal device and a Terminal Adapter (TA), for example, the TA is a subscriber identity module (sim). Through the AT command, the terminal device can operate the application in the user identification card, and the user identification card can also enable the terminal device to execute the designated operation. For example, the terminal device may access or dial a contact phone number stored in the subscriber identity card via an AT command. For example, the subscriber identity card may cause, by means of the AT instruction, the ejection of the welcome of the operator to which the subscriber identity card corresponds when the subscriber identity card is inserted in the terminal device.
The AT instruction which is related to the user identification card request terminal equipment to execute the corresponding operation is an active command; that is, the user identification card and the terminal device can perform data interaction through the active command, so that the terminal device performs the task of delivering the user identification card.
Illustratively, there are the following proactive commands:
terminal profile: and when the terminal equipment is started and initialized, sending the terminal profile configuration file to the user identification card so as to enable the AT command capability supported by the terminal equipment to be notified to the user identification card.
91xx: when the status words SW1 and SW2 sent by the subscriber identity card to the terminal device are 91xx respectively, it indicates that the subscriber identity card has an active command to report. In this application, the 91xx instruction may also be referred to as a first command, which is not limited herein.
And (3) fetch: acquiring a command; when the terminal device receives the status word 91xx sent by the user identification card, the terminal device obtains an active command of the user identification card through the fetch command, where the fetch command is specifically a status word SW1 and SW2, where the values of SW1 and SW2 correspond to the values of 91xx, and are specifically determined according to a related protocol of the active command, which is not limited herein.
proactive command: an active command; and the operation result of the fetch instruction. The proactive command is used to indicate that the subscriber identity module card requests the terminal device to perform a corresponding task. Illustratively, proactive command includes information for instructing the terminal device to interact with the subscriber identity card via a designated channel.
terminal response: responding to the command; the terminal equipment acquires data area data in the operation result of the fetch instruction, and sends terminal response instruction to the user identification card, wherein the data area data is used for indicating that the terminal equipment has received the active instruction and is in execution or has been executed successfully.
response: responding to the command; after receiving the terminal response instruction sent by the terminal equipment, the user identification card sends a response to the terminal equipment, wherein the response is used for indicating that the active command interaction is successful.
3. Application processor and baseband processor
It will be appreciated that the terminal device runs the operating system of the terminal device and the application of the terminal device via an application processor (application process, AP). A baseband processor (baseband), i.e. a modem (modem) in the terminal device, is used to run the radio frequency communication control software of the terminal device, and is responsible for transmitting and receiving data.
Generally, the baseband processor in the terminal device performs an active command interaction procedure with the subscriber identity module card.
Example 1:
the method for processing an active command according to the embodiment of the present application is described in detail below with reference to the flowchart of the method shown in fig. 1.
As shown in fig. 1 below, the method for processing an active command provided in the embodiment of the present application is applied to an application processor AP in a terminal device, where a user identification card is configured, and the method includes the following steps:
s101, after receiving a first command sent by a user identification card, an application program processor AP sends an acquisition command to the user identification card.
In this embodiment of the present application, the first command is used to indicate that the user identification card needs to report an active command, and the obtaining command is used to instruct the user identification card to report the active command to the terminal device. It can be appreciated that the first command is a status word 91xx command and the acquire command is a fetch command.
For example, the 91xx command indicates that the subscriber identity card has an active command to be reported to the terminal device, where "xx" in 91xx is a hexadecimal value, and the 91xx may include a storage location of the active command to be reported in the subscriber identity card. The terminal device may obtain the corresponding active command data according to the storage location. Illustratively, the above-described fetch command includes a status word corresponding to the 91xx to access data corresponding to the storage location in the user identification card.
It can be understood that the baseband processor (modem) in the terminal device receives the 91xx command sent by the subscriber identity module, and then the modem sends the 91xx command to the AP. After receiving the 91xx command, the AP triggers an active command flow, that is, sends an acquisition command (fetch) to the subscriber identity card. It can be understood that the data intercommunication between the modem in the terminal device and the AP, that is, the user identification card sends the target command to the modem in the terminal device, and the AP may also receive the target command, except that the order of receiving the target command is that the modem is behind the previous AP.
In the embodiment of the application, the Application Processor (AP) is an AP in the terminal device configured with the subscriber identity card. The method provided by the embodiment of the application is executed by the AP in the terminal equipment. That is, the AP in the terminal device performs an active command interaction flow with the subscriber identity module card.
In some active command interaction flows, after receiving a 91xx command sent by a subscriber identity card, a baseband processor (modem) in a terminal device triggers the active command interaction flow, so that the modem sends a fetch command to the subscriber identity card. In the active command interaction flow in the embodiment of the present application, after receiving the 91xx command sent by the user identification card, the modem in the terminal device cannot trigger the active command interaction flow, and the modem forwards the 91xx command to the AP, and after receiving the 91xx command, the AP triggers the active command interaction flow and sends the fetch command to the user identification card through the modem.
S102, the application program processor AP receives a first active command reported by the user identification card.
In this embodiment of the present application, the first proactive command is configured to instruct the terminal device to execute a first function procedure.
In the active command interaction flow, after receiving a fetch command sent by an AP, a user identification card reports the first active command to a terminal device.
Illustratively, the data area (data area) of the first active command includes channel information for instructing the terminal device to perform data communication with the subscriber identity card through the designated channel. For example, the first function program is that the terminal device performs data communication with the subscriber identity card through the designated channel.
S103, the application program processor AP sends a first response command to the user identification card.
In this embodiment of the present application, the first response command is used to indicate an execution result of the first functional program.
It can be understood that the first response command is terminal response, which is used to indicate that the terminal device has received the first proactive command, is executing, or has completed executing.
In general, the active command flow is triggered by a modem in the terminal device, whereas in some platforms, such as the custom 5G platform, the at+csim instruction is not supported by the modem, and the modem is generally not active. Thus, if one wants to trigger an active command by modifying the modem so that the modem supports it, the modification task is cumbersome. For example, the requirement time is long, the compatibility is low, the requirement of a customer cannot be met, and even if the function is realized later, the user identification card of other manufacturers is difficult to adapt, and the flexible adaptation cannot be realized.
However, by adopting the method for processing the active command provided by the embodiment of the application, the Application Processor (AP) in the terminal equipment triggers the active command interaction flow and the AP and the user identification card complete the active command interaction flow, so that the problem that the debugging of the user identification card cannot be supported because the platform does not support the active command can be effectively avoided, the development of excessively dependent platform is further avoided, and the obstacle is reduced for the application of the user identification card.
In one possible implementation manner, after receiving the first command sent by the user identification card, sending an acquisition command to the user identification card includes: receiving the first command sent by a baseband processor in the terminal equipment, wherein the first command is sent by the user identification card to the baseband processor; transmitting the acquisition command to the baseband processor so that the acquisition command is transmitted to the user identification card through the baseband processor; the receiving the first active command reported by the user identification card comprises the following steps: receiving the first active command sent by the baseband processor, wherein the first active command is reported to the baseband processor by the user identification card; the sending the first response command to the subscriber identity module card comprises: and sending the first response command to the baseband processor, so that the first response command is sent to the user identification card through the baseband processor.
In one possible implementation, before the sending the acquisition command to the subscriber identity card, the method further includes: determining whether a baseband processor in the terminal device supports processing of active commands; the sending the acquisition command to the subscriber identity module card comprises the following steps: and sending an acquisition command to the user identification card under the condition that the baseband processor is not supported to process the active command.
Example 2:
in one possible implementation manner, the subscriber identity card is an embedded subscriber identity eSIM card, where the eSIM card corresponds to at least two integrated circuit card identifiers ICCIDs, and the eSIM card only supports one ICCID of the at least two ICCIDs in a use state in the same time, and before the first command sent by the subscriber identity card is received in step S101 and the acquisition command is sent to the subscriber identity card, the method further includes: sending a card cutting instruction to the user identification card, wherein the card cutting instruction comprises a first ICCID; after said sending the first response command to the subscriber identity card, the method further comprises: receiving a second response command sent by the user identification card, wherein the second response command is used for indicating that the user identification card is in a card cutting ready state; and sending a restarting instruction to the user identification card, wherein the restarting instruction is used for enabling the first ICCID to be in a use state.
In one possible implementation manner, the first proactive command includes cut card data, the first functional program is configured to determine target display content according to the cut card data, where the target display content includes an operator name of a first number corresponding to the first ICCID and a mobile communication network type supported by the first number, and after the sending a restart instruction to the subscriber identity card, the method further includes: and outputting the target display content.
The method for processing the active command provided in the embodiment of the present application is described in detail below with reference to the flowchart of the method described in connection with fig. 1, taking the user identification card as an eSIM card and the active command interaction flow as a cut card flow.
As shown in fig. 2, the method for processing the proactive command includes the following steps:
s201, an application program processor (AP) sends a card cutting instruction to an eSIM card, and correspondingly, the eSIM card receives the card cutting instruction sent by the AP.
Illustratively, the card-cutting instruction includes a first integrated circuit card identification code (Integrate circuit card identity, ICCID), and the card-cutting instruction is used for instructing the eSIM card to switch the currently effective ICCID to the first ICCID. For example, the eSIM card modifies configuration information of a usage state corresponding to the first ICCID in the usage state to a state value 1 (e.g., state value 1 indicates that the usage state is in use), and modifies configuration information of usage states of other ICCIDs stored in the eSIM card except for the first ICCID to a state value 0 (e.g., state value 0 indicates that the usage state is unused). It is understood that the cut card instruction is also an AT command.
Illustratively, the function parameters of the carrier, telephone number and supported mobile network (4 g, 5g network) corresponding to the ICCID can be obtained from the ICCID. It can be appreciated that the eSIM card corresponds to at least two ICCIDs, and that the eSIM card only supports one of the at least two ICCIDs in use at a time.
The terminal device obtains the card cutting instruction after receiving the card cutting instruction initiated by the user at the card cutting interface, and sends the card cutting instruction to the eSIM card, so as to confirm whether the eSIM card has a card cutting condition (for example, whether the eSIM card stores the first ICCID) or not, and inquire whether the eSIM card has card cutting data to report (for example, operator content or welcome language content which needs to be displayed after the card cutting is successful or not).
S202, the eSIM card sends a status word 91xx command to the AP, and correspondingly, the AP receives the status word 91xx command sent by the eSIM card.
It can be appreciated that the status word 91xx is used to indicate that the eSIM card meets the card cutting condition, and that there is an active command for the eSIM card that needs to be reported.
S203, the AP sends a corresponding fetch command to the eSIM card according to the status word 91xx, and the eSIM card receives the fetch command sent by the AP.
The fetch command is also a status word SW1 and SW2, and the values of the SW1 and SW2 correspond to the status word 91 xx. So as to acquire the active command which needs to be reported and corresponds to the eSIM card.
S204, the eSIM card sends a response data command to the AP, and correspondingly, the AP receives the response data command sent by the eSIM.
The response data is data in a data area in the active command. The response data includes channel information, operator content to be displayed after the card is successfully cut, welcome language, and other data content.
For example, the response data includes cut card data, and the AP determines, according to the cut card data, a target display content (which may also be understood as a first function program), where the target display content includes an operator name of a first number corresponding to the first ICCID and a mobile communication network type supported by the first number.
S205, the AP sends terminal response a command to the eSIM card, and correspondingly, the eSIM card receives terminal response a command sent by the AP.
For example, terminal response is used to indicate that the AP has received response data sent by the eSIM card, and execute a corresponding procedure according to the response data. For example, the specified communication channel is used to send data to the eSIM card to determine the target display content.
S206, the eSIM card sends a response command to the AP, and correspondingly, the AP receives the response command sent by the eSIM card.
Illustratively, the response command is used to indicate that the eSIM card is already in a cut card ready state.
S207, the AP sends a restarting instruction to the eSIM card, and correspondingly, the eSIM card receives the restarting instruction sent by the AP.
It can be understood that, after the eSIM card modifies the configuration information of the usage state corresponding to the first ICCID into a state value in use and modifies the configuration information of the usage states of other ICCIDs stored in the eSIM card except for the first ICCID into an unused state value, a power-on and power-off operation (which can also be understood as a reboot) is also required to be performed on the eSIM card, so that the modified configuration information can be validated.
After receiving the restart instruction, the eSIM card executes a restart operation, namely, performs power-on and power-off operations on the eSIM card, so that the card cutting process is completed.
It will be appreciated that the communication between the AP and the eSIM card is forwarded via a baseband processor (modem) in the terminal device, i.e., the AP communicates with the eSIM card via the modem. For eSIM cards, the eSIM card communicates with the AP as the eSIM card communicates with the terminal device, embodiments of the present application facilitate understanding that the communication of the eSIM card with the terminal device is described as the eSIM card communicating with the AP (e.g., the eSIM card sends data to the AP).
Therefore, the AP in the terminal equipment and the eSIM card complete the active command interaction flow in the card cutting flow, so that the problem that the debugging of the eSIM card cannot be supported because the platform does not support the active command can be effectively avoided, development excessively depending on the platform is further avoided, and the obstruction is reduced for the application of the eSIM card.
The data communication device provided by the embodiment of the invention will be described below.
Referring to fig. 3, a schematic structural diagram of an apparatus for processing an active command is provided in an embodiment of the invention. As shown in fig. 3, an apparatus for processing an active command according to an embodiment of the present invention may include:
the transceiver 301 is configured to send an acquisition command to the subscriber identity card after receiving a first command sent by the subscriber identity card, where the first command is used to indicate that the subscriber identity card needs to report an active command, and the acquisition command is used to instruct the subscriber identity card to report the active command to the terminal device;
the transceiver 301 is further configured to receive a first proactive command reported by the subscriber identity module card, where the first proactive command is used to instruct the terminal device to execute a first function program;
the transceiver 301 is further configured to send a first response command to the subscriber identity module card, where the first response command is used to indicate an execution result of the first function program.
In one possible implementation, as shown in fig. 4, the apparatus for processing an active command further includes:
a determining unit 302, configured to determine, before the sending of the acquisition command to the subscriber identity module, whether a baseband processor in the terminal device supports processing of an active command; the transceiver unit 301 is specifically configured to send an acquisition command to the subscriber identity card if it is determined that the baseband processor does not support processing an active command.
In a possible implementation manner, the transceiver unit 301 is specifically configured to send, after receiving the first command sent by the subscriber identity card, a card cutting instruction to the subscriber identity card before sending an acquisition command to the subscriber identity card, where the card cutting instruction includes a first ICCID; after the first response command is sent to the user identification card, receiving a second response command sent by the user identification card, wherein the second response command is used for indicating that the user identification card is in a card-cutting ready state; and sending a restarting instruction to the user identification card, wherein the restarting instruction is used for enabling the first ICCID to be in a use state.
In one possible implementation manner, the apparatus for processing an proactive command further includes:
and an output unit 303, configured to output the target display content after the restart instruction is sent to the subscriber identity module card.
It should be noted that, the specific implementation process may refer to the specific description of the method embodiment shown in fig. 1 or fig. 2, and will not be described herein.
It will be appreciated that the device for processing proactive commands shown in fig. 3 or fig. 4 described above may have a variety of product configurations. The means for processing the proactive command may also be, for example, a processor, a communication interface, a memory, and a means for processing the proactive command as shown in fig. 5. Specifically, as shown in fig. 5, the apparatus 50 for processing an active command may include:
at least one processor 501, such as a CPU, at least one communication interface 503, a memory 504, at least one communication bus 502. Wherein a communication bus 502 is used to enable connected communications between these components. The communication interface 503 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface or bluetooth interface, etc.). The memory 504 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 504 may also optionally be at least one storage device located remotely from the aforementioned processor 501. As shown in FIG. 5, an operating system and program instructions may be included in memory 504, which is a type of computer storage medium.
By way of example, the communication interface 501 may be used to implement the steps or functions performed by the transceiver unit 301, the output unit 303, etc. in fig. 3. The processor 501 may be used to implement the steps or functions performed by the determining unit 302 described above, etc. The communication interface 501 may be a pin of a chip or a transceiver.
In the apparatus 50 for processing proactive commands shown in fig. 5, a processor 501 may be configured to load program instructions stored in a memory 504 and specifically perform the following operations:
after a first command sent by the user identification card is received, sending an acquisition command to the user identification card, wherein the first command is used for indicating that the user identification card needs to report an active command, and the acquisition command is used for indicating that the user identification card reports the active command to the terminal equipment;
receiving a first active command reported by the user identification card, wherein the first active command is used for indicating the terminal equipment to execute a first function program;
and sending a first response command to the user identification card, wherein the first response command is used for indicating an execution result of the first functional program.
It should be noted that, the specific implementation process may refer to the specific description of the embodiment shown in fig. 1 or fig. 2, which is not described herein.
The embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are adapted to be loaded by a processor and execute the method steps of the embodiment shown in fig. 1-2, and the specific execution process may refer to the specific description of the embodiment shown in fig. 1-2, which is not repeated herein.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces, in whole or in part, a flow or function consistent with embodiments of the present application. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (8)

1. A method of processing proactive commands, applied to an application processor AP in a terminal device, the terminal device having a subscriber identity card configured therein, the terminal device comprising a baseband processor, the method comprising:
receiving a first command sent by the user identification card;
under the condition that the baseband processor does not support processing of the active command, sending an acquisition command to the user identification card, wherein the first command is used for indicating that the user identification card needs to report the active command, and the acquisition command is used for indicating that the user identification card reports the active command to the terminal equipment;
receiving a first active command reported by the user identification card, wherein the first active command is used for indicating the terminal equipment to execute a first function program;
and sending a first response command to the user identification card, wherein the first response command is used for indicating an execution result of the first functional program.
2. The method of claim 1, wherein the subscriber identity card is an embedded subscriber identity eSIM card, the eSIM card corresponding to at least two integrated circuit card identification codes ICCIDs, the eSIM card supporting only one ICCID of the at least two ICCIDs in use at a time,
before the receiving the first command sent by the user identification card, the method further comprises:
sending a card cutting instruction to the user identification card, wherein the card cutting instruction comprises a first ICCID;
after said sending the first response command to the subscriber identity card, the method further comprises:
receiving a second response command sent by the user identification card, wherein the second response command is used for indicating that the user identification card is in a card cutting ready state;
and sending a restarting instruction to the user identification card, wherein the restarting instruction is used for enabling the first ICCID to be in a use state.
3. The method of claim 2, wherein the first proactive command includes cut card data, wherein the first functional program is configured to determine target display content based on the cut card data, wherein the target display content includes an operator name of a first number corresponding to the first ICCID and a mobile communication network type supported by the first number,
after the sending the restart instruction to the subscriber identity module card, the method further comprises:
and outputting the target display content.
4. The method according to claim 1 or 2, characterized in that the subscriber identity card is a pluggable subscriber identity SIM card or an embedded subscriber identity eSIM card.
5. The method according to claim 1 or 2, wherein said sending an acquisition command to the subscriber identity card after receiving the first command sent by the subscriber identity card comprises:
receiving the first command sent by a baseband processor in the terminal equipment, wherein the first command is sent by the user identification card to the baseband processor;
transmitting the acquisition command to the baseband processor so that the acquisition command is transmitted to the user identification card through the baseband processor;
the receiving the first active command reported by the user identification card comprises the following steps:
receiving the first active command sent by the baseband processor, wherein the first active command is reported to the baseband processor by the user identification card;
the sending the first response command to the user identification card comprises the following steps:
and sending the first response command to the baseband processor, so that the first response command is sent to the user identification card through the baseband processor.
6. An apparatus for processing an active command, characterized by an application processor AP applied in a terminal device, said terminal device being provided with a subscriber identity card, said apparatus comprising:
the receiving and transmitting unit is used for receiving a first command sent by the user identification card;
the receiving and transmitting unit is further configured to send an acquisition command to the subscriber identity module card when the baseband processor does not support processing of the active command, where the first command is used to indicate that the subscriber identity module card needs to report the active command, and the acquisition command is used to instruct the subscriber identity module card to report the active command to the terminal device;
the receiving and transmitting unit is further configured to receive a first active command reported by the subscriber identity module card, where the first active command is used to instruct the terminal device to execute a first function program;
the receiving and transmitting unit is further configured to send a first response command to the subscriber identity module card, where the first response command is used to indicate an execution result of the first function program.
7. An electronic device, comprising: a memory, a processor, wherein the memory stores program instructions; the program instructions, when executed by the processor, cause the processor to perform the method of any of claims 1-5.
8. A computer-readable storage medium, wherein the computer-readable storage medium has a computer program stored therein; the method of any of claims 1-5, when the computer program is run on one or more processors.
CN202210298053.0A 2022-03-24 2022-03-24 Method and related device for processing active command Active CN114727275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210298053.0A CN114727275B (en) 2022-03-24 2022-03-24 Method and related device for processing active command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210298053.0A CN114727275B (en) 2022-03-24 2022-03-24 Method and related device for processing active command

Publications (2)

Publication Number Publication Date
CN114727275A CN114727275A (en) 2022-07-08
CN114727275B true CN114727275B (en) 2023-12-29

Family

ID=82240183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210298053.0A Active CN114727275B (en) 2022-03-24 2022-03-24 Method and related device for processing active command

Country Status (1)

Country Link
CN (1) CN114727275B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361467B (en) * 2022-08-19 2023-09-05 中移互联网有限公司 Message display method and terminal equipment
CN117835394A (en) * 2022-09-30 2024-04-05 华为技术有限公司 Communication method and device
CN115915102B (en) * 2022-10-31 2024-03-29 中国联合网络通信集团有限公司 USAT characteristic updating method, eUICC, terminal, equipment and medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150816A (en) * 2007-10-29 2008-03-26 中兴通讯股份有限公司 Method and device for realizing SIM card application packet function on data card
CN101335758A (en) * 2008-07-24 2008-12-31 中兴通讯股份有限公司 Method and system for access service in SIM card by dual-processor terminal
CN101594614A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 Data download method and terminal
CN101977412A (en) * 2010-07-23 2011-02-16 展讯通信(上海)有限公司 Application processor, modem and communication method therebetween
CN102497630A (en) * 2011-11-25 2012-06-13 北京握奇数据***有限公司 Machine to machine (M2M) equipment, method for realizing service, intelligent card and communication module
CN102685859A (en) * 2008-02-27 2012-09-19 联发科技股份有限公司 Electronic system for handling proactive commands in a mobile system
CN105263182A (en) * 2015-09-17 2016-01-20 小米科技有限责任公司 Equipment control method, device and terminal
CN107318098A (en) * 2016-04-27 2017-11-03 中国电信股份有限公司 A kind of terminal control method, SIM cards, communication module and terminal
CN108628781A (en) * 2018-05-14 2018-10-09 星汉智能科技股份有限公司 Smart card proactive command sending method, device, smart card and terminal device
CN109089258A (en) * 2018-09-27 2018-12-25 努比亚技术有限公司 ESIM card operating method, mobile terminal and eSIM card apparatus
CN109379735A (en) * 2018-09-27 2019-02-22 努比亚技术有限公司 ESIM card operating method, mobile terminal and eSIM card apparatus
CN111107543A (en) * 2018-10-29 2020-05-05 苹果公司 Cellular service account transfer and authentication
CN113837338A (en) * 2021-09-29 2021-12-24 展讯通信(上海)有限公司 Detection method, terminal, user identification card, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080121687A1 (en) * 2006-11-28 2008-05-29 Motorola, Inc. Method and system for detecting an end of transaction for contactless transactions on a mobile device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150816A (en) * 2007-10-29 2008-03-26 中兴通讯股份有限公司 Method and device for realizing SIM card application packet function on data card
CN102685859A (en) * 2008-02-27 2012-09-19 联发科技股份有限公司 Electronic system for handling proactive commands in a mobile system
CN101335758A (en) * 2008-07-24 2008-12-31 中兴通讯股份有限公司 Method and system for access service in SIM card by dual-processor terminal
CN101594614A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 Data download method and terminal
CN101977412A (en) * 2010-07-23 2011-02-16 展讯通信(上海)有限公司 Application processor, modem and communication method therebetween
CN102497630A (en) * 2011-11-25 2012-06-13 北京握奇数据***有限公司 Machine to machine (M2M) equipment, method for realizing service, intelligent card and communication module
CN105263182A (en) * 2015-09-17 2016-01-20 小米科技有限责任公司 Equipment control method, device and terminal
CN107318098A (en) * 2016-04-27 2017-11-03 中国电信股份有限公司 A kind of terminal control method, SIM cards, communication module and terminal
CN108628781A (en) * 2018-05-14 2018-10-09 星汉智能科技股份有限公司 Smart card proactive command sending method, device, smart card and terminal device
CN109089258A (en) * 2018-09-27 2018-12-25 努比亚技术有限公司 ESIM card operating method, mobile terminal and eSIM card apparatus
CN109379735A (en) * 2018-09-27 2019-02-22 努比亚技术有限公司 ESIM card operating method, mobile terminal and eSIM card apparatus
CN111107543A (en) * 2018-10-29 2020-05-05 苹果公司 Cellular service account transfer and authentication
CN113837338A (en) * 2021-09-29 2021-12-24 展讯通信(上海)有限公司 Detection method, terminal, user identification card, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Dan Meng ; et al.Built-in Security Computer: Deploying Security-First Architecture Using Active Security Processor.《IEEE Transactions on Computers》.2020,全文. *
MTK通用-基带处理器间通信机制的研究;白雪;《中国优秀硕士学位论文辑》;全文 *

Also Published As

Publication number Publication date
CN114727275A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN114727275B (en) Method and related device for processing active command
CN110225487B (en) Profile generating and acquiring method, related equipment and storage medium
KR101251439B1 (en) Automatical test system and method performance of smart phone using android debug bridge interface
KR101007739B1 (en) Method and system for providing fota service
KR20020034228A (en) Method for upgrading S/W using OTA service provision in mobile terminal and system for the same
KR100784331B1 (en) Apparatus and method for menu management under roaming in portable terminal
US20080261657A1 (en) Plug-In Device for Enabling Mobile Telephone to Execute Applications
CN107318098B (en) Terminal control method, SIM card, communication module and terminal
CN110543321A (en) OTA (over the air) upgrading method, device, terminal and computer readable storage medium
CN108156312B (en) Method, terminal and storage device for controlling SIM card function menu display
CN107295500B (en) SIM card data control method and device and computer equipment
KR100566975B1 (en) remote function changing system of the cellular-phone and controlling method therefore
JP2021002793A (en) Communication system and communication method
EP4084514A1 (en) Method for identifying embedded subscriber identity module (esim) card and terminal device
EP1576442B1 (en) System and method for software download to wireless communication device
KR101572060B1 (en) Apparatus and method for power saving using predictive polling in portable terminal
CN111488207A (en) Application process keep-alive method, device, network equipment and storage medium
CN113805705B (en) Terminal shortcut key operation method and device
KR100723715B1 (en) Method for providing a idle mode service in mobile terminal
EP1672938A1 (en) Portable radio communication equipment enabling a firmware update of a connected accesory over the air
WO2012053194A1 (en) Subscriber identity module and terminal device
CN108574503B (en) Setting method of interception setting option and related equipment
WO2008104601A2 (en) Method of managing command execution in an electronic token
US9973921B2 (en) Conflict detection
CN111581438A (en) File analysis method and terminal

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