Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for reading record in smart card

A smart card and recording technology, which is applied in the field of communication, can solve the problems of long time consumption and large space occupied by the terminal, and achieve the effect of saving recording time

Active Publication Date: 2015-11-04
FEITIAN TECHNOLOGIES
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] During the communication process between the terminal and the smart card, the terminal needs to read the records in the smart card for offline data authentication, cardholder verification, terminal risk management, terminal behavior analysis and card behavior analysis. The recording method takes a long time and takes up a lot of space in the terminal

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for reading record in smart card
  • Method and device for reading record in smart card
  • Method and device for reading record in smart card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] Embodiment 1 of the present invention provides a method for reading records in a smart card, such as figure 1 shown, including:

[0031] Step 101: the terminal obtains the application file locator from the smart card;

[0032] Specifically, the terminal receives the data returned by the smart card and obtains the application file locator therefrom by sending the fetch processing option command to the smart card;

[0033] Specifically, the terminal judges the data of the first byte in the data returned by the smart card. If it is the first preset data, the terminal obtains the data of the next byte as the data length returned by the smart card. According to the data length returned by the smart card Calculate the length of the application file locator, the terminal starts from the 5th byte in the data returned by the smart card, obtains data according to the length of the application file locator, and uses the obtained data as the application file locator; if the data r...

Embodiment 2

[0094] Embodiment 2 of the present invention provides a method for reading records in a smart card, such as figure 2 shown, including:

[0095] Step 201: the terminal obtains the application file locator from the smart card;

[0096] Specifically, the terminal receives the data returned by the smart card and obtains the application file locator therefrom by sending the fetch processing option command to the smart card;

[0097] Specifically, the terminal judges the data of the first byte in the data returned by the smart card. If it is the first preset data, the terminal obtains the data of the next byte as the data length returned by the smart card. According to the data length returned by the smart card Calculate the length of the application file locator, the terminal starts from the 5th byte in the data returned by the smart card, obtains data according to the length of the application file locator, and uses the obtained data as the application file locator; if the data ...

Embodiment 3

[0146] Embodiment 3 of the present invention provides a method for reading records in a smart card, such as image 3 shown, including:

[0147] Step 301: the terminal obtains the application file locator from the smart card;

[0148] Specifically, the terminal receives the data returned by the smart card and obtains the application file locator therefrom by sending the fetch processing option command to the smart card;

[0149] Specifically, the terminal judges the data of the first byte in the data returned by the smart card. If it is the first preset data, the terminal obtains the data of the next byte as the data length returned by the smart card. According to the data length returned by the smart card Calculate the length of the application file locator, the terminal starts from the 5th byte in the data returned by the smart card, obtains data according to the length of the application file locator, and uses the obtained data as the application file locator; if the data r...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for reading a record in a smart card. The method comprises the following steps: obtaining an application file locator from the smart card by a terminal; obtaining current file data from an initial position of the application file locator; obtaining a current record number from the current file data; according to the current record number and a file identifier obtained according to the current file data, generating a record reading instruction, sending the record reading instruction to the smart card, receiving returned response data, and storing a current record in the response data; according to the current record number and a final record number in the current file data, judging whether the current record is a last record or not, and if the current record is not the last record, updating the current record number; if the current record is the last record, judging whether the data, which is positioned behind the current file data, of a first preset length is in the presence in the application file locator or not; and if the data of the first preset length is in the presence in the application file locator, taking the data, which is positioned behind the current file data, of the first preset length is taken as current updated file data, and otherwise, finishing a flow.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and device for reading records in a smart card. Background technique [0002] During the communication process between the terminal and the smart card, the terminal needs to read the records in the smart card for offline data authentication, cardholder verification, terminal risk management, terminal behavior analysis and card behavior analysis. The recording method takes a long time and takes up a lot of space in the terminal. Contents of the invention [0003] The object of the present invention is to overcome the deficiencies of the prior art, provide a method and device for reading the records in the smart card, and save the time for reading the records in the smart card and the space in the terminal. [0004] A method for reading records in a smart card provided by the present invention includes: [0005] Step S1: the terminal obtains the application file locator from ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06K7/00G06F17/30
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products