CN107547737B - Data processing method and Subscriber Identity Module (SIM) shield thereof - Google Patents

Data processing method and Subscriber Identity Module (SIM) shield thereof Download PDF

Info

Publication number
CN107547737B
CN107547737B CN201710722979.7A CN201710722979A CN107547737B CN 107547737 B CN107547737 B CN 107547737B CN 201710722979 A CN201710722979 A CN 201710722979A CN 107547737 B CN107547737 B CN 107547737B
Authority
CN
China
Prior art keywords
sim
shield
target service
terminal equipment
service data
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
CN201710722979.7A
Other languages
Chinese (zh)
Other versions
CN107547737A (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.)
Beijing Huada Zhibao Electronic System Co Ltd
Original Assignee
Beijing Huada Zhibao Electronic System 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 Beijing Huada Zhibao Electronic System Co Ltd filed Critical Beijing Huada Zhibao Electronic System Co Ltd
Priority to CN201710722979.7A priority Critical patent/CN107547737B/en
Publication of CN107547737A publication Critical patent/CN107547737A/en
Application granted granted Critical
Publication of CN107547737B publication Critical patent/CN107547737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a data processing method and a Subscriber Identity Module (SIM) shield, which are used for carrying out data interaction through target service data stored at the moment of an incoming call after the incoming call is ended. The method in the embodiment of the application comprises the following steps: establishing connection between a Subscriber Identity Module (SIM) shield and terminal equipment; when the terminal equipment acquires an incoming call instruction, the SIM shield acquires a first notification message sent by the terminal equipment; the SIM shield stores target service data of data interaction performed by the SIM shield according to the first notification message, wherein the target service data are an executed instruction and generated data when the SIM shield is in a call; when the terminal equipment acquires an incoming call ending instruction, the SIM shield acquires a second notification message sent by the terminal equipment; the SIM shield extracts the target service data according to the second notification message; and the SIM shield performs the data interaction according to the target service data.

Description

Data processing method and Subscriber Identity Module (SIM) shield thereof
Technical Field
The present application relates to the field of communications, and in particular, to a data processing method and a SIM shield for a subscriber identity module thereof.
Background
With the development of mobile communication technology, intelligent mobile terminals have become indispensable devices for people, and are no longer simple voice communication tools at present, because of the processing capability and network function of computers, the intelligent mobile terminals have been widely applied in social contact, finance, transportation, shopping and other aspects, have penetrated into various aspects of life, and have increasingly increased requirements for processing important services, so that the intelligent mobile terminals become attack targets of viruses such as malicious software and trojans. In order to facilitate the secure payment of the intelligent mobile terminal, the security device provider further develops a bluetooth SIM shield capable of performing secure payment on the mobile terminal.
When payment is carried out on the intelligent mobile terminal, a Bluetooth Subscriber Identity Module (SIM) shield plays a great role in enhancing security and preventing virus attacks such as malicious software, trojan horse and the like. A conventional web shield, such as a bluetooth shield, is an individual independent from an intelligent mobile terminal, and is connected to the intelligent mobile terminal through a Universal Serial Bus (USB) interface, so as to implement security verification during payment. The SIM card has security engineering (SE, SaleEngineer) but only serves as identity authentication, and the existing Bluetooth SIM shield does not need to carry a separate authentication device through integration with a mobile phone, and meanwhile, unlike the audio shield which needs to be connected with the intelligent mobile terminal through an audio socket when in use, the SIM card does not need to occupy an audio jack to influence the passing quality. In the process of realizing the safe payment, the transaction information is displayed by calling a user identification application development Tool (STK) menu of the SIM card, for example, when signature authentication is realized, a Bluetooth SIM shield calls the STK menu of the SIM card, so that the character menu information of the signature authentication is displayed on the intelligent mobile terminal, and a user operates according to the character menu information to realize the signature authentication.
In the process of realizing safe payment, the intelligent terminal can display transaction information through an STK menu called by an SIM card, at the moment, when the intelligent mobile terminal detects incoming call information, the incoming call information has the first priority in the intelligent mobile terminal, the intelligent mobile terminal can process the incoming call information preferentially, at the moment, the STK menu is flashed back, so that the transaction information for carrying out safe payment is lost, and after the incoming call is finished, the transaction information needs to be rebuilt.
Disclosure of Invention
The embodiment of the application provides a data processing method and terminal equipment, which are used for carrying out data interaction through target service data stored at the moment of an incoming call after the incoming call is ended.
The first aspect of the application embodiments provides a data processing method:
establishing connection between a Subscriber Identity Module (SIM) shield and terminal equipment;
when the terminal equipment acquires an incoming call instruction, the SIM shield acquires a first notification message sent by the terminal equipment;
the SIM shield stores target service data of data interaction performed by the SIM shield according to the first notification message, wherein the target service data are an executed instruction and generated data when the SIM shield calls;
when the terminal equipment acquires an incoming call ending instruction, the SIM shield acquires a second notification message sent by the terminal equipment;
the SIM shield extracts the target service data according to the second notification message;
and the SIM shield performs the data interaction according to the target service data.
Based on the first aspect, in a first implementation manner of the first aspect of the embodiment of the present application, the performing, by the SIM shield, the data interaction according to the target service data includes:
and the SIM shield carries out the data interaction by calling a subscriber identification application development tool (STK) menu according to the target service data.
Based on the first implementation manner of the first aspect, in a second implementation manner of the first aspect of the embodiment of the present application, the performing, by the SIM shield, the data interaction by invoking a subscriber identity module (STK) menu according to the target service data includes:
the SIM shield determines a target step of the data interaction according to the instruction in the target service data;
and the SIM shield executes the target step of the data interaction by calling an STK menu according to the data in the target service data.
A second aspect of the application provides a data processing method:
the terminal equipment establishes connection with a Subscriber Identity Module (SIM) shield;
when the terminal equipment acquires an incoming call instruction, the terminal equipment sends a first notification message to the SIM shield, wherein the first notification message is used for indicating the SIM shield to store target service data, and the target service data are the executed instruction and the generated data when the SIM shield receives the incoming call;
and when the terminal equipment acquires an incoming call ending instruction, the terminal equipment sends a second notification message to the SIM shield, wherein the second notification message is used for indicating the SIM shield to extract the target service data and carry out data interaction according to the target service data.
In a first implementation manner of the second aspect of the embodiments of the present application, based on the second aspect, the method further includes:
when the terminal equipment acquires the incoming call instruction, the terminal equipment triggers a timer of the terminal equipment to start timing;
when the terminal equipment acquires the incoming call ending instruction, the terminal equipment triggers a timer of the terminal equipment to stop timing;
the terminal device obtains a target time length, wherein the target time length is the time length from the time when the timer starts to time to the time when the timer stops timing.
Based on the first implementation manner of the second aspect, in a second implementation manner of the second aspect of this embodiment of the present application, before the terminal device sends the second notification message to the SIM shield, the method further includes:
the terminal equipment judges whether the target time length exceeds a preset time length or not;
if not, triggering the terminal equipment to send a second notification message to the SIM shield;
and if so, displaying the overtime reminding information by the terminal equipment.
A third aspect of the embodiments of the present application provides a SIM shield for a subscriber identity module:
the connection unit is used for establishing connection with the terminal equipment;
the first obtaining unit is used for obtaining a first notification message sent by the terminal equipment when the terminal equipment obtains the incoming call instruction;
the storage unit is used for storing target service data of data interaction of the SIM shield according to the first notification message, wherein the target service data are an executed instruction and generated data when the SIM shield is in a call;
the second obtaining unit is used for obtaining a second notification message sent by the terminal equipment when the terminal equipment obtains the incoming call ending instruction;
an extracting unit, configured to extract the target service data according to the second notification message;
and the processing unit is used for carrying out the data interaction according to the target service data.
Based on the third aspect, in a first implementation manner of the third aspect of the embodiments of the present application, the processing unit includes:
the determining module is used for determining a target step of the data interaction according to the instruction in the target service data;
and the calling module is used for executing the target step of the data interaction by calling the STK menu according to the data in the target service data.
A fourth aspect of the embodiments of the present application provides a terminal device:
the connection unit is used for establishing connection with a Subscriber Identity Module (SIM) shield;
the terminal equipment comprises a first sending unit, a second sending unit and a third sending unit, wherein the first sending unit is used for sending a first notification message to the SIM shield when the terminal equipment acquires an incoming call instruction, the first notification message is used for indicating the SIM shield to store target service data, and the target service data are an executed instruction and generated data when the SIM shield receives an incoming call;
and the second sending unit is used for sending a second notification message to the SIM shield when the terminal equipment acquires the incoming call ending instruction, wherein the second notification message is used for indicating the SIM shield to extract the target service data and carry out data interaction according to the target service data.
Based on the fourth aspect, in a first implementation manner of the fourth aspect of the embodiment of the present application, the terminal device further includes:
the first triggering unit is used for triggering a timer of the terminal equipment to start timing when the terminal equipment acquires the incoming call instruction;
the second triggering unit is used for triggering a timer of the terminal equipment to stop timing when the terminal equipment acquires the incoming call ending instruction;
and the acquisition unit is used for acquiring a target time length, wherein the target time length is the time length from the time when the timer starts to time to the time when the timer stops timing.
A fifth aspect of the present application provides a SIM shield, which may include:
the system comprises a processor, a memory, a bus and an input/output interface, wherein the processor, the memory and the input/output interface are connected through the bus;
the memory for storing program code;
the processor executes the method according to the first aspect and any one of the first to second implementation manners of the first aspect when calling the program code in the memory.
A sixth aspect of the present application provides a terminal device, which may include:
the system comprises a processor, a memory, a bus and an input/output interface, wherein the processor, the memory and the input/output interface are connected through the bus;
the memory for storing program code;
the processor, when calling the program code in the memory, executes the method according to the second aspect and any one of the first to second implementations of the second aspect.
A seventh aspect of embodiments of the present application provides a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform a method as any one of the first aspect and the first to second implementation manners of the first aspect, the first to second implementation manners of the second aspect and the first to second implementation manners of the second aspect, the third aspect and the first implementation manners of the third aspect, the fourth aspect and the first implementation manners of the third aspect.
An eighth aspect of embodiments of the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to perform the method as described in the first aspect and any one of the first to second implementation manners of the first aspect, the first to second implementation manners of the second aspect and the second aspect, the third aspect and any one of the first implementation manners of the third aspect, the fourth aspect and the first implementation manner of the third aspect.
According to the technical scheme, the embodiment of the application has the following advantages: when the terminal equipment acquires an incoming call instruction, the SIM shield acquires a first notification message sent by the terminal equipment and stores target service data for data interaction, and when the terminal equipment acquires an incoming call ending instruction, the SIM shield continues to perform the data interaction according to the stored target service data. In this embodiment, by storing the target service data when the call is coming, the SIM shield can perform data interaction according to the target service data after the call is ended.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a data processing method of the present application;
FIG. 2 is a schematic diagram of another embodiment of the data processing method of the present application;
FIG. 3 is a schematic diagram of another embodiment of the data processing method of the present application;
FIG. 4 is a schematic diagram of another embodiment of the data processing method of the present application;
FIG. 5 is a schematic diagram of an embodiment of a SIM shield of the present application;
FIG. 6 is a schematic diagram of another embodiment of the SIM shield of the present application;
FIG. 7 is a schematic diagram of an embodiment of a terminal device according to the present application;
FIG. 8 is a schematic diagram of another embodiment of a terminal device according to the present application;
FIG. 9 is a schematic view of another embodiment of the SIM shield of the present application;
fig. 10 is a schematic diagram of another embodiment of the terminal device of the present application.
Detailed Description
In this embodiment, the terminal device may be a mobile phone, or may also be a mobile smart device such as a Tablet PC (for short, Tablet Personal Computer), or a non-mobile smart device such as a desktop Computer, and the details of the terminal device are not limited herein.
In this embodiment, the SIM shield may have a communication function and a storage function such as making a call and a Personal Identification Number (PIN) as a general mobile phone SIM card, and may also have a Public Key and a private Key, and may use the SIM card as a security carrier to digitally sign the service Key data based on a Public Key Infrastructure (PKI) technology.
In this embodiment, the SIM shield performs signature authentication in a manner that the SIM shield is a SIM card with security authentication data, and the security authentication data is used for authenticating the identity of the user. The authentication function can be used after the certificate is issued by the operator.
The embodiment of the application provides a data processing method and a Subscriber Identity Module (SIM) shield, which can perform data interaction according to target service data after an incoming call is ended by storing the target service data.
Referring to fig. 1, an embodiment of a data method in the embodiment of the present application includes:
101. establishing connection between a Subscriber Identity Module (SIM) shield and terminal equipment;
and the SIM shield of the client identification module is connected with the terminal equipment to realize data interaction.
In this embodiment, the connection between the SIM shield and the terminal device may be established by using bluetooth or a Wireless local area network (Wifi, english acronym: Wireless Fidelity), and the specific details are not limited herein.
102. When the terminal equipment acquires an incoming call instruction, the SIM shield acquires a first notification message sent by the terminal equipment;
in this embodiment, when the terminal device obtains the incoming call instruction, the SIM shield obtains a first notification message sent by the terminal device, where the first notification message is used to instruct the SIM shield to store the instruction executed and the data generated at the SIM shield end in the process of data interaction between the current SIM shield and the terminal device.
In this embodiment, the manner in which the terminal device obtains the incoming call instruction may be that the terminal device implements a monitoring function on the incoming call condition through a monitoring module of the terminal device, and the terminal device determines whether to obtain the incoming call instruction by analyzing the monitoring information.
In this embodiment, the monitoring module may be located on an APP of the terminal device, and is not limited herein.
In this embodiment, the terminal device may determine whether to acquire the incoming call instruction through the monitoring information, where the terminal device acquires the monitoring information, where the monitoring information is used to indicate a start of a call or an end of the call, and the incoming call processing module of the terminal device acquires the monitoring information and performs analysis processing, then determines whether the terminal device is at a call start time according to the monitoring information, and if the terminal device is at the call start time, determines that the terminal device acquires the incoming call instruction, and if the terminal device is at the call end time, determines that the terminal device acquires the incoming call end instruction, where this specific example is not limited here.
In this embodiment, the manner for analyzing and processing the monitoring information by the incoming call processing module of the terminal device may be to perform an a/D conversion on the acquired analog signal to convert the analog signal into a digital signal that can be recognized by the terminal device, which is not limited herein. A specific scenario will be described as an example.
The monitoring module is in a working state and performs data interaction with the incoming call processing module, the incoming call processing module analyzes an analog signal transmitted by the monitoring module to realize analog-to-digital conversion, if the obtained digital signal is high level 1, it is determined that the terminal device obtains an incoming call instruction, and if the obtained digital signal is low level 0, it is determined that the terminal device obtains an incoming call ending instruction.
103. The SIM stores the target service data of the SIM for data interaction according to the first notification message;
in this embodiment, after the SIM shield obtains the first notification message, the SIM shield parses the message and executes a command of the message, then the SIM shield stores target service data generated during data interaction with the terminal device at the time of the incoming call, where the target service data is an executed instruction and generated data of the SIM shield when the incoming call comes during the data interaction, and then the terminal device starts to process the incoming call instruction, and the STK menu flashes back.
In this embodiment, after obtaining the target service data, the SIM shield stores the target service data in the storage unit, so that the SIM shield can call the target service data after the incoming call is ended.
In this embodiment, the storage unit may be a state register module, and is not limited herein.
In this embodiment, the status register module may be located inside the SIM shield, and is a necessary module constituting the SIM shield, and is not limited herein.
104. When the terminal equipment acquires the incoming call ending instruction, the SIM shield acquires a second notification message sent by the terminal equipment;
and when the terminal equipment acquires the incoming call ending instruction, the SIM shield acquires a second notification message sent by the terminal equipment, wherein the second notification message is different from the first notification message and is used for indicating the SIM shield to call the target service data so as to carry out data interaction.
In this embodiment, a manner in which the terminal device obtains the incoming call end instruction is similar to the manner in which the terminal device obtains the incoming call instruction in step 102, and details are not described here.
105. The SIM shield extracts target service data according to the second notification message;
after receiving the second notification message, the SIM shield analyzes the message and executes a command of the message, and then extracts target service data stored at the time of incoming call, wherein the target service data are an executed instruction and generated data of the SIM shield when the SIM shield receives the incoming call in the data interaction process.
In this embodiment, the manner of extracting the target service data by the SIM shield may be that the SIM shield sends a target message to the state registering module, and then the state registering module sends a corresponding response message to the SIM shield, where the response message carries the target service data, and the specific details are not limited herein.
106. And the SIM shield performs data interaction according to the target service data.
In this embodiment, after the SIM shield extracts the target service data, data interaction is performed according to the target service data.
In this embodiment, the data interaction by the SIM shield according to the target service data may be performed by the SIM shield displaying interface information of data interaction being performed by the SIM shield at the incoming call time by calling a subscriber identity module (STK) menu according to the target service data, and then performing data interaction with the terminal device by the SIM shield according to the interface information, which is not limited herein.
In the implementation, the SIM shield stores the target service data for data interaction at the time of incoming call, and when the terminal device obtains the incoming call ending instruction, the target service data can be extracted for data interaction, so that the SIM shield target service data is prevented from being lost when the incoming call is received, and when the incoming call is ended, the data interaction cannot be continued on the basis of the target service data.
In this embodiment, the data interaction performed by the SIM shield according to the target service data may be performed after determining a target step of the data interaction, please refer to fig. 2, which will be described below.
201. Establishing connection between a Subscriber Identity Module (SIM) shield and terminal equipment;
202. when the terminal equipment acquires an incoming call instruction, the SIM shield acquires a first notification message sent by the terminal equipment;
203. the SIM stores the target service data of the SIM for data interaction according to the first notification message;
204. when the terminal equipment acquires the incoming call ending instruction, the SIM shield acquires a second notification message sent by the terminal equipment;
205. the SIM shield extracts target service data according to the second notification message;
in this embodiment, steps 201 to 205 are similar to steps 101 to 105 in the embodiment shown in fig. 1, and detailed description thereof is omitted here.
206. The SIM shield determines a target step of data interaction according to an instruction in target service data;
in this embodiment, after the SIM shield extracts the target service data, a target step may be determined according to an instruction in the target service data, where the target step is a step that the SIM shield is executing when the terminal device obtains the incoming call instruction.
In this embodiment, the manner of determining the target step according to the instruction in the target service data may be that the SIM shield determines a return value of the instruction, and then determines the target step according to the return value, which is not limited herein.
207. And the SIM shield executes a target step of data interaction according to the target service data.
And after the SIM shield determines the target step, the target step is executed by combining the target service data.
In this embodiment, the manner of the SIM shield executing the target step in combination with the target service data may be that the SIM shield displays the transaction information of the incoming call time by calling the STK menu of the subscriber identity module application development tool according to the target service data, and then executes the target step, which is not limited herein.
In this embodiment, the target step may be a signature authentication step, and is not limited herein.
The target step is determined as a signature authentication step, and an implementation of the embodiment will be described with reference to a specific application scenario by taking personal transfer remittance as an example.
The APP of a mobile phone bank is installed at the mobile phone end, and the mobile phone carries out data interaction with the SIM shield through the APP. The user opens the APP, and after entering the remittance page, the first step is: filling remittance information including the name, account, remittance amount and the like of the receiver, clicking an APP confirmation button after the completion of the filling, and the second step: after the user confirms, the mobile phone communicates with the SIM shield, after the communication is successful, the mobile phone interface pops up an input password frame, if the mobile phone receives an incoming call instruction, the STK menu flashes back to lose the transaction information, the mobile phone bank APP returns to the background to run, at the moment, the SIM shield stores all target service information from the first step to the second step, when the mobile phone receives an incoming call ending instruction, the SIM shield extracts the stored target service information, because the target service information comprises the instruction, the SIM shield returns to the second step according to the instruction, calls the STK menu to display a transaction information interface at the incoming call moment according to data combined with the target service information, and then the SIM shield continues to perform the transaction according to the interface.
In this embodiment, one case of the target step is a step in which the SIM shield is going to perform at the time of the incoming call, and another case of the target step is an end time of the incoming call, which is one of the previous steps that must be performed to continue to perform the step in which the SIM shield is going to perform at the time of the incoming call, and another case of the target step will be described below, and another implementation manner of this embodiment is:
the APP of a mobile phone bank is installed at the mobile phone end, and the mobile phone carries out data interaction with the SIM shield through the APP. The user opens the APP, and after entering the remittance page, the first step is: filling remittance information including a payee name, an account, a remittance amount and the like, and clicking an APP confirmation button after the completion of the filling; the second step is that: after the user confirms, the mobile phone is communicated with the SIM shield, and after the communication is successful, an input password box is popped up on the interface of the mobile phone to finish the verification of the PIN code of the SIM shield; the third step: inputting a password, and prompting that the password is correct after verification; the fourth step: and popping up a signature interface by the SIM shield, displaying transaction information, waiting for confirmation, and checking the built-in digital certificate by the SIM card to perform signature authentication. If the mobile phone receives an incoming call instruction, the STK menu flashes back to lose the transaction information, the mobile phone bank APP returns to the background to run, the SIM shield stores all target service information from the first step to the fourth step, when the mobile phone receives an incoming call ending instruction, the SIM shield extracts the stored target service information, the target service information comprises the instruction, the SIM shield is analyzed and found to ensure the security of an execution environment, the fourth step is executed on the premise that the PIN code of the second step passes verification and needs to be re-verified, the PIN needs to be re-verified in the second step, the SIM shield calls the STK menu to execute the second step of the transaction according to data in target service data, and the subsequent steps are performed after the second step is executed.
In this embodiment, in the process of implementing signature authentication, the SIM shield has data interaction with the banking system, and 1, the user opens the APP to access the banking system. 2. The service system submits an authentication request, the signing platform forwards the request to the mobile phone, and the SIM shield signs data of the data to be signed by using a private key and returns a signing result. 3. The signature platform forwards the signature result to the service system, and the service system executes passing or failing operation on the user.
In this embodiment, after the target step is determined by the instruction in the target service data, the SIM shield can continue to execute from the target step according to the target step in combination with the data information in the target service data.
Fig. 1 and 2 illustrate the data processing method from the perspective of the SIM shield, and refer to fig. 3, the data processing method will be described from the perspective of the terminal device.
301. The terminal equipment establishes connection with a Subscriber Identity Module (SIM) shield;
and the terminal equipment establishes connection with a Subscriber Identity Module (SIM) shield to realize data interaction.
In this embodiment, the connection between the terminal device and the SIM shield may be established by the SIM shield and the terminal device through bluetooth or a short-range wireless Communication technology (abbreviated as NFC), which is not limited herein.
302. When the terminal equipment acquires an incoming call instruction, the terminal equipment sends a first notification message to the SIM shield;
when the terminal device obtains an incoming call instruction, the STK menu is flashed off, in order to avoid target service data loss, the terminal device sends a first notification message to the SIM shield, and then the SIM shield stores the target service data after identifying the first notification message, wherein the target service data are data generated and executed instructions when the SIM shield calls in the data interaction process at the time of the incoming call.
In this embodiment, a manner of acquiring the incoming call instruction by the terminal device is similar to step 102 in the embodiment of fig. 1, and is not described herein again.
303. And when the terminal equipment acquires the incoming call ending instruction, the terminal equipment sends a second notification message to the SIM shield.
In this embodiment, when the terminal device obtains the incoming call end instruction, the terminal device sends a second notification message to the SIM shield, where the second notification message is used to instruct the SIM shield to extract target service data stored at the incoming call time, and perform data interaction according to the target service data.
In this embodiment, a manner in which the terminal device obtains the incoming call end instruction is similar to the manner in which the terminal device obtains the incoming call end instruction in step 104, and details are not described here.
In this embodiment, the terminal device sends the first notification message to the SIM shield when an incoming call arrives, so that the SIM shield stores target service data for performing data interaction, and when the terminal device obtains an incoming call ending instruction, the SIM shield extracts the target service data and performs data interaction according to the target service data.
In this embodiment, the terminal device calculates a time difference between the incoming call instruction and the incoming call ending instruction, and determines whether the time difference exceeds a preset time length, and if not, performs subsequent operations, please refer to fig. 4, which will be described below.
401. The terminal equipment establishes connection with the SIM shield;
402. when the terminal equipment acquires an incoming call instruction, the terminal equipment sends a first notification message to the SIM shield;
in this embodiment, the manner of establishing the connection between the terminal device and the SIM shield in step 401 and the manner of sending the first notification message to the SIM shield by the terminal device in step 402 are similar to steps 301 and 302, and are not described herein again specifically.
403. When the terminal equipment acquires the incoming call instruction, the terminal equipment triggers a timer of the terminal equipment to start timing;
in this embodiment, a manner of acquiring the incoming call instruction by the terminal device is similar to the manner of acquiring the incoming call instruction by the terminal device in step 302, and details are not described here.
In this embodiment, the implementation manner of the timer may call its clock function as the timer for the terminal device, or may also be that the APP of the terminal device carries a timing function as the timer in the process of performing data interaction for the terminal device, and when the terminal device acquires the incoming call instruction, the timer of the APP starts timing, and then the terminal device processes the incoming call instruction, and the APP moves back to the background for operation, which is not limited specifically here.
404. The SIM shield stores target service data for data interaction;
in this embodiment, the step 403 and the step 404 have no fixed sequence, and the step 403 may be executed first, or the step 404 may be executed first.
405. When the terminal equipment acquires the incoming call ending instruction, the terminal equipment triggers a timer of the terminal equipment to stop timing, and the target duration is acquired;
in this embodiment, a manner of acquiring the incoming call ending instruction by the terminal device is similar to the manner of acquiring the incoming call ending instruction by the terminal device in step 303, and details are not described here.
In this embodiment, the implementation manner of the timer is similar to that in step 403 above, and details are not described here.
In this embodiment, the terminal device stops timing by the timer at the time of acquiring the incoming call ending instruction, and acquires the target time length, where the target time length is a difference between a time point at which the timer starts timing and a time point at which the timer stops timing.
406. The terminal equipment judges whether the target time length exceeds a preset time length, if not, step 407 is executed, and if yes, step 408 is executed;
in this embodiment, the SIM card is configured with a preset time duration, for example, 20 minutes, and is not limited herein.
In this embodiment, after acquiring the target duration, the terminal device compares the target duration with a preset duration to determine whether the target duration exceeds the preset duration.
407. If the target time length does not exceed the preset time length, the terminal equipment sends a second notification message to the SIM shield;
in this embodiment, after determining that the target duration does not exceed the preset duration, the terminal device sends a second notification message to the SIM shield, where the second notification message is used to instruct the SIM shield to extract the stored target service data.
408. And if the target time length exceeds the preset time length, the terminal equipment displays the overtime reminding information.
In this embodiment, when it is determined that the target duration exceeds the preset duration, the terminal device may display the timeout reminding information.
In this embodiment, the manner of displaying the timeout reminding information by the terminal device may be that after the terminal device determines that the target duration exceeds a preset duration, the terminal device sends a third notification message to the SIM shield, and the SIM shield invokes an STK menu to pop up the timeout reminding information, which is not limited herein.
In this embodiment, the specific content of the timeout reminding information may be: if the transaction is overtime, please restart the transaction flow. And is not particularly limited herein.
409. The SIM shield extracts target service data;
410. and the SIM shield performs data interaction according to the target service data.
In this embodiment, the target duration is obtained by setting a timer, so that the terminal device sends the second notification to the SIM shield only when the target duration does not exceed the preset duration, and the SIM shield extracts the stored target service data to perform data interaction.
The above describes a data interaction method of the present embodiment in detail, and please refer to fig. 5, which will be described below with reference to a SIM shield of the present embodiment.
A connection unit 501, configured to establish a connection with a terminal device;
a first obtaining unit 502, configured to obtain a first notification message sent by the terminal device when the terminal device obtains an incoming call instruction;
a storage unit 503, configured to store target service data for data interaction performed by the SIM shield according to the first notification message, where the target service data is an executed instruction and generated data when the SIM shield receives an incoming call;
a second obtaining unit 504, configured to obtain, when the terminal device obtains the incoming call ending instruction, a second notification message sent by the terminal device;
an extracting unit 505, configured to extract the target service data according to the second notification message;
a processing unit 506, configured to perform the data interaction according to the target service data.
In this embodiment, after the connection unit 501 establishes a connection with the terminal device, when the terminal device obtains an incoming call instruction, the first obtaining unit 502 obtains a first notification message, the storage unit 503 stores target service data for performing data interaction according to the first notification message, then when the terminal device obtains an incoming call end instruction, the second obtaining unit 504 obtains a second notification message for instructing the extracting unit 505 to extract the stored target service data, and then the processing unit 506 performs data interaction according to the target service data.
In this embodiment, the target service data is an executed instruction and generated data when the SIM shield receives an incoming call, and the SIM shield may locate the target step according to the executed instruction, please refer to fig. 6, which will be described below.
A connection unit 601, configured to establish connection with a terminal device;
a first obtaining unit 602, configured to obtain a first notification message sent by the terminal device when the terminal device obtains an incoming call instruction;
a storage unit 603, configured to store target service data for data interaction performed by the SIM shield according to the first notification message, where the target service data is an executed instruction and generated data when the SIM shield receives an incoming call;
a second obtaining unit 604, configured to obtain a second notification message sent by the terminal device when the terminal device obtains the incoming call ending instruction;
an extracting unit 605, configured to extract the target service data according to the second notification message;
the processing unit 606 is configured to perform the data interaction according to the target service data.
Wherein, the processing unit includes:
a determining module 6061, configured to determine a target step of the data interaction according to the instruction in the target service data;
a calling module 6062, configured to execute a target step of the data interaction by calling an STK menu according to the data in the target service data.
In this embodiment, after the processing module 6061 determines the target step of data interaction according to the instruction in the target service data, the calling module 6062 executes the target step of data interaction according to the data in the target service data by calling the STK menu, so that after the incoming call is ended, the SIM shield can continue to execute the target step being executed at the moment of the incoming call.
The SIM shield of the present embodiment is described above, and referring to fig. 7, the terminal device of the present embodiment will be described below.
A connection unit 701, configured to establish a connection with a SIM shield of a subscriber identity module;
a first sending unit 702, configured to send a first notification message to the SIM shield when the terminal device obtains an incoming call instruction, where the first notification message is used to instruct the SIM shield to store target service data, and the target service data is an executed instruction and generated data when the SIM shield receives an incoming call;
a second sending unit 703, configured to send a second notification message to the SIM shield when the terminal device obtains the incoming call ending instruction, where the second notification message is used to instruct the SIM shield to extract the target service data and perform the data interaction according to the target service data.
In this embodiment, after the connection unit 701 establishes connection with the SIM shield, the first sending unit 702 sends a first notification message to the SIM shield when obtaining the incoming call instruction, so that the SIM shield stores target service data for data interaction, and the second sending unit 703 sends a second notification message to the SIM shield when obtaining the incoming call end instruction, so that the SIM shield extracts the target service data and performs data interaction.
In this embodiment, the terminal device calculates the call duration from the incoming call time to the incoming call ending time, please refer to fig. 8, which will be described below.
A connection unit 801, configured to establish a connection with a SIM shield;
a first sending unit 802, configured to send a first notification message to the SIM shield when the terminal device obtains an incoming call instruction, where the first notification message is used to instruct the SIM shield to store target service data, and the target service data is an executed instruction and generated data when the SIM shield receives an incoming call;
a second sending unit 806, configured to send a second notification message to the SIM shield when the terminal device obtains the incoming call ending instruction, where the second notification message is used to instruct the SIM shield to extract the target service data and perform the data interaction according to the target service data.
Wherein, terminal equipment still includes:
a first triggering unit 803, configured to trigger a timer of the terminal device to start timing when the terminal device obtains the incoming call instruction;
a second triggering unit 804, configured to trigger a timer of the terminal device to stop timing when the terminal device obtains the incoming call ending instruction;
an obtaining unit 805 is configured to obtain a target duration, where the target duration is a duration from when the timer starts to count to when the timer stops counting.
In this embodiment, the first triggering unit 803 triggers the timer to start timing, the second triggering unit 804 triggers the timer to stop timing, and the obtaining unit 805 obtains the target time length, so as to achieve the purpose of calculating the call time length.
Fig. 9 is a schematic diagram of a SIM shield 900, which may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 922 (e.g., one or more processors) and a memory 932, and one or more storage media 930 (e.g., one or more mass storage devices) storing applications 942 or data 944. Memory 932 and storage media 930 can be, among other things, transient storage or persistent storage. The program stored on the storage medium 930 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the SIM shield. Still further, the central processor 922 may be arranged to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the SIM shield 900.
The central processor 922 can perform the following steps according to the instruction operation:
establishing connection with the terminal equipment;
when the terminal equipment acquires an incoming call instruction, acquiring a first notification message sent by the terminal equipment;
storing target service data for data interaction of the terminal equipment according to the first notification message, wherein the target service data are executed instructions and generated data when the terminal equipment calls;
when the terminal equipment acquires the incoming call ending instruction, acquiring a second notification message sent by the terminal equipment;
extracting target service data according to the second notification message;
and carrying out data interaction according to the target service data.
In this embodiment, when the incoming call instruction is obtained, the central processing unit 922 stores the target service data, so that when the incoming call ending instruction is obtained, the central processing unit 922 can perform data interaction according to the target service data.
The SIM shield 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, and/or one or more operating systems 941, such as Windows server (tm), Mac OS XTM, UnixTM, &lttttranslation = L "&tttl/t &tttinuxtm, FreeBSDTM, and the like.
The steps performed by the SIM shield in the above embodiments may be based on the SIM shield structure shown in fig. 9.
Fig. 10 is a schematic diagram of a terminal device according to an embodiment of the present disclosure, where the terminal device 1000 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1022 (e.g., one or more processors) and a memory 1032, and one or more storage media 1030 (e.g., one or more mass storage devices) storing an application 1042 or data 1044. Memory 1032 and storage medium 1030 may be, among other things, transient or persistent storage. The program stored in the storage medium 1030 may include one or more modules (not shown), each of which may include a series of instruction operations in the terminal device. Further, the central processor 1022 may be provided to communicate with the storage medium 1030, and execute a series of instruction operations in the storage medium 1030 on the terminal device 1000.
The central processor 1022 may perform the following steps according to the instruction operation:
establishing connection with a Subscriber Identity Module (SIM) shield;
when an incoming call instruction is obtained, sending a first notification message to an SIM shield, wherein the first notification message is used for indicating the SIM shield to store target service data, and the target service data are an executed instruction and generated data when the SIM shield is in an incoming call;
and when the incoming call ending instruction is obtained, sending a second notification message to the SIM shield, wherein the second notification message is used for indicating the SIM shield to extract the target service data and carrying out data interaction according to the target service data.
In this embodiment, in the embodiment, when the incoming call instruction is obtained, the central processing unit 1022 enables the SIM shield to store the target service data by sending the first notification message, and when the central processing unit 1022 obtains the incoming call ending instruction, the SIM shield can perform data interaction according to the target service data.
The terminal device 1000 may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input-output interfaces 1058, and/or one or more operating systems 1041, such as Windows ServerTM, Mac OS XTM, UnixTM, &lTtTtranslation = L "&tttL/T &gttgttinuxTM, FreeBSDTM, and the like.
The steps performed by the terminal device in the above-described embodiment may be based on the terminal device structure shown in fig. 10.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or all or part of the technical solution that contributes to the prior art in essence may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of fig. 1 to 4 of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A data processing method, comprising:
establishing connection between a Subscriber Identity Module (SIM) shield and terminal equipment;
when the terminal equipment acquires an incoming call instruction, the SIM shield acquires a first notification message sent by the terminal equipment;
the SIM shield stores target service data of data interaction performed by the SIM shield according to the first notification message, wherein the target service data are an executed instruction and generated data when the SIM shield is in a call;
when the terminal equipment acquires an incoming call ending instruction, the SIM shield acquires a second notification message sent by the terminal equipment;
the SIM shield extracts the target service data according to the second notification message;
and the SIM shield carries out the data interaction by calling a subscriber identification application development tool (STK) menu according to the target service data.
2. The method of claim 1, wherein the SIM shield performing the data interaction by invoking a subscriber identity application development tool (STK) menu according to the target service data comprises:
the SIM shield determines a target step of the data interaction according to the instruction in the target service data;
and the SIM shield executes the target step of the data interaction by calling an STK menu according to the data in the target service data.
3. A data processing method, comprising:
the terminal equipment establishes connection with a Subscriber Identity Module (SIM) shield;
when the terminal device obtains an incoming call instruction, the terminal device sends a first notification message to the SIM shield, wherein the first notification message is used for indicating the SIM shield to store target service data, and the target service data are an executed instruction and generated data when the SIM shield is in an incoming call, and the SIM shield stores the target service data for data interaction of the SIM shield according to the first notification message;
when the terminal equipment acquires an incoming call ending instruction, the terminal equipment sends a second notification message to the SIM shield, wherein the second notification message is used for indicating the SIM shield to extract the target service data and carry out data interaction according to the target service data, so that the SIM shield carries out the data interaction by calling a subscriber identity module (STK) menu according to the target service data.
4. The method of claim 3, further comprising:
when the terminal equipment acquires the incoming call instruction, the terminal equipment triggers a timer of the terminal equipment to start timing;
when the terminal equipment acquires the incoming call ending instruction, the terminal equipment triggers a timer of the terminal equipment to stop timing;
the terminal equipment acquires a target time length, wherein the target time length is the time length from the time when the timer starts to time to the time when the timer stops timing.
5. The method of claim 4, wherein before the terminal device sends the second notification message to the SIM shield, the method further comprises:
the terminal equipment judges whether the target time length exceeds a preset time length or not;
if not, triggering the terminal equipment to send a second notification message to the SIM shield;
and if so, displaying the overtime reminding information by the terminal equipment.
6. A subscriber identity module, SIM, shield, comprising:
the connection unit is used for establishing connection with the terminal equipment;
the first obtaining unit is used for obtaining a first notification message sent by the terminal equipment when the terminal equipment obtains an incoming call instruction;
the storage unit is used for storing target service data of data interaction of the SIM shield according to the first notification message, wherein the target service data are an executed instruction and generated data when the SIM shield is in a call;
the second obtaining unit is used for obtaining a second notification message sent by the terminal equipment when the terminal equipment obtains the incoming call ending instruction;
an extracting unit, configured to extract the target service data according to the second notification message;
a determining module, configured to determine a target step of the data interaction according to the instruction in the target service data;
and the calling module is used for executing the target step of data interaction by calling an STK menu according to the data in the target service data.
7. A terminal device, comprising:
the connection unit is used for establishing connection with a Subscriber Identity Module (SIM) shield;
the terminal device comprises a first sending unit and a second sending unit, wherein the first sending unit is used for sending a first notification message to the SIM shield when the terminal device obtains an incoming call instruction, the first notification message is used for indicating the SIM shield to store target service data, and the target service data are an executed instruction and generated data when the SIM shield is in an incoming call, and the SIM shield stores the target service data of data interaction of the SIM shield according to the first notification message;
and the second sending unit is used for sending a second notification message to the SIM shield when the terminal equipment obtains the call ending instruction, wherein the second notification message is used for indicating the SIM shield to extract the target service data and carry out data interaction according to the target service data, so that the SIM shield carries out the data interaction by calling a subscriber identity module (STK) menu according to the target service data.
8. The terminal device according to claim 7, wherein the terminal device further comprises:
the first triggering unit is used for triggering a timer of the terminal equipment to start timing when the terminal equipment acquires the incoming call instruction;
the second triggering unit is used for triggering a timer of the terminal equipment to stop timing when the terminal equipment acquires the incoming call ending instruction;
the acquisition unit is used for acquiring a target time length, wherein the target time length is the time length from the time when the timer starts to time to the time when the timer stops timing.
CN201710722979.7A 2017-08-21 2017-08-21 Data processing method and Subscriber Identity Module (SIM) shield thereof Active CN107547737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710722979.7A CN107547737B (en) 2017-08-21 2017-08-21 Data processing method and Subscriber Identity Module (SIM) shield thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710722979.7A CN107547737B (en) 2017-08-21 2017-08-21 Data processing method and Subscriber Identity Module (SIM) shield thereof

Publications (2)

Publication Number Publication Date
CN107547737A CN107547737A (en) 2018-01-05
CN107547737B true CN107547737B (en) 2020-07-10

Family

ID=60958931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710722979.7A Active CN107547737B (en) 2017-08-21 2017-08-21 Data processing method and Subscriber Identity Module (SIM) shield thereof

Country Status (1)

Country Link
CN (1) CN107547737B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696602A (en) * 2018-05-15 2018-10-23 北京华大智宝电子系统有限公司 A kind of client's recognition methods and system
CN109951604B (en) * 2019-02-27 2021-10-15 维沃移动通信有限公司 Message processing method, mobile terminal and user identity identification module
CN114980095B (en) * 2021-05-08 2023-10-27 中移互联网有限公司 Data access method and data access device
CN118034592B (en) * 2024-02-05 2024-07-23 北京知柏科技有限公司 Performance optimization and multifunctional integration method and system based on SIM shield

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201853248U (en) * 2010-09-28 2011-06-01 上海赞润微电子科技有限公司 Intelligent card of mobile phone
CN104869206A (en) * 2014-02-20 2015-08-26 华为终端有限公司 Communication method and terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002337221A1 (en) * 2001-07-25 2003-02-17 Credit Lyonnais Method and system for formal guarantee of a payment, using a portable telephone
JP2005328321A (en) * 2004-05-14 2005-11-24 Casio Comput Co Ltd Communication terminal device and program for communication control processing
KR100595684B1 (en) * 2004-10-26 2006-07-03 엘지전자 주식회사 Method for executing voice call during java application execution in mobile communication terminal
CN101345961A (en) * 2008-08-04 2009-01-14 中兴通讯股份有限公司 Method for implementing multimedia engine concurrency control on mobile terminal
CN101895537B (en) * 2010-06-30 2014-07-30 北京握奇数据系统有限公司 Method for establishing data exchange channels and system thereof comprising smart card and server
CN102420895A (en) * 2010-09-28 2012-04-18 上海赞润微电子科技有限公司 Mobile phone intelligent card and working method thereof
KR102318877B1 (en) * 2014-10-02 2021-10-29 삼성전자주식회사 Apparatus and method for displaying user interface
CN105163303B (en) * 2015-09-22 2018-12-21 中国联合网络通信集团有限公司 The management method and user terminal of SIM card application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201853248U (en) * 2010-09-28 2011-06-01 上海赞润微电子科技有限公司 Intelligent card of mobile phone
CN104869206A (en) * 2014-02-20 2015-08-26 华为终端有限公司 Communication method and terminal

Also Published As

Publication number Publication date
CN107547737A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107547737B (en) Data processing method and Subscriber Identity Module (SIM) shield thereof
CN104574057B (en) Online payment method and related equipment and system
KR101984679B1 (en) System and method for implementing verification during data transfer
EP3055978B1 (en) Systems, methods, and computer program products for managing communications
US20160210632A1 (en) Secured payment method and relevant device and system
CN104636924B (en) Secure payment method, server and system
US9569607B2 (en) Security verification method and apparatus
CN105427169B (en) Security information interaction method for resource transfer
CN105989485B (en) Service management method and device
WO2017084442A1 (en) Mobile payment method and apparatus
CN104683104B (en) The method, apparatus and system of authentication
EP3734904B1 (en) Method and device for verifying user behaviour in mobile scenario
US20170243023A1 (en) Electronic device and operating method thereof
EP3179751B1 (en) Information sending method and apparatus, terminal device, and system
TWI619042B (en) System and method for online transaction security, SIM card, mobile phone and online transaction system realized by the method
US10334441B2 (en) Working method of NFC token
CN109981585B (en) Business handling method and equipment
CN108900525B (en) Processing method and device for verification code request
CN114819953A (en) Digital currency transaction method and device
CN105916135A (en) Method for carrying out NFC payment in virtual card terminal and virtual card terminal
TWI657389B (en) Mobile terminal and its transaction confirmation method and device
WO2012062192A1 (en) Method and device for identifying user card
EP2988262A1 (en) Application purchase method and terminal
CN112532458B (en) Cooperative configuration method and device for Internet of things equipment and electronic equipment
WO2019009803A1 (en) Processing payments

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