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

Method for processing CAP file by intelligent card

A smart card and file technology, applied in the field of smart cards, can solve the problems of occupying smart card resources, increasing storage management costs, and not being able to guarantee the integrity of CAP files, etc.

Active Publication Date: 2012-07-18
FEITIAN TECHNOLOGIES
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, the smart card processing CAP file specification does not provide a method for processing component data in the CAP file according to the characteristics of each component, and stores the CAP file in the smart card. However, the defect of this method is that it takes up a large amount of resources of the smart card, Increase storage management costs, reduce the download speed of CAP files, and cannot guarantee the integrity of CAP files

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 for processing CAP file by intelligent card
  • Method for processing CAP file by intelligent card
  • Method for processing CAP file by intelligent card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0129] Embodiment 1 of the present invention provides a kind of method for smart card processing CAP file; figure 1 Described method is introduced, concrete steps are as follows:

[0130] Step 101: establish a connection between the smart card and an external terminal, and perform initialization;

[0131] Preferably, in this embodiment, the first status flag is 0 after the smart card is initialized;

[0132] Step 102: the smart card receives the APDU command corresponding to the CAP file, and stores the data contained in the APDU command into the communication buffer;

[0133] Step 103: The smart card judges the value of the first state flag, and when the value of the first state flag is the first preset value, step 104 is executed; when the value of the first state flag is is the second preset value, then execute step 105; when the value of the first status flag is the third preset value, then execute step 106; when the value of the first status flag is the fourth preset s...

Embodiment 2

[0307] Embodiment 2 of the present invention provides another method for smart cards to process CAP files, combined below Figure 4 Described method is introduced, concrete steps are as follows:

[0308] Step 401: establish a connection between the smart card and an external interrupt, and perform initialization;

[0309] Step 402: the smart card receives the APDU command corresponding to the CAP file, and stores the data contained in the APDU command into the communication buffer;

[0310] Step 403: The smart card judges the status parameter in the APDU command, if the value of the status parameter is the first preset value, then perform step 404; if the value of the status parameter is the second preset value set value, then perform step 405; if the value of the state parameter is the third preset value, then perform step 406; if the value of the state parameter is the fourth preset value, then perform step 407; if the If the value of the state parameter is the fifth prese...

Embodiment 3

[0424] Embodiment 3 of the present invention provides a method for a smart card to download and parse constant pool components, combined below Figure 7 For an introduction, the specific steps are as follows:

[0425] Step 701: the smart card obtains the size information of the constant pool component from the directory array;

[0426] In this embodiment, the smart card obtains the size information of 12 components from the directory component when downloading and parsing the directory component, and stores it in the directory array;

[0427] Step 702: The smart card judges whether the constant pool component is smaller than the storage space of the first memory, if yes, execute step 703; otherwise, execute step 704;

[0428] In this embodiment, the first memory is a random access memory;

[0429] Step 703: The smart card reads the constant pool component data from the communication buffer and stores it in the first memory, and executes Step 705;

[0430] Step 704: The smar...

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 for processing a CAP file by an intelligent card. The method comprises the following steps of: establishing connection of the intelligent card and an external terminal; carrying out initialization; receiving an APDU (Application Protocol Data Unit) command corresponding to the CAP file; storing data contained in the APDU command into a communication buffer; judging a value of a first state zone bit of the card; and carrying out different operations according to values of different second state zone bits. According to the method for processing the CAP file by the intelligent card, which is disclosed by the invention, resources can be effectively stored by the intelligent card, the uploading speed of the CAP file is improved and the integrity of contents in the CAP file and the intelligent card in the uploading process is ensured.

Description

technical field [0001] The invention relates to the field of smart cards, in particular to a method for a smart card to process CAP files. Background technique [0002] A smart card is a card with a microchip embedded in the card. At present, smart card technology is widely used in identification, payment tools, encryption / decryption, information technology and other aspects. [0003] However, due to the limited resources of the smart card platform, such as the Java Card virtual machine platform, the class files cannot be directly stored in the smart card. Before the Java program class is imported into the smart card device, it needs to be converted into a file format specific to the smart card through a conversion device, that is, suffixed with CAP compressed file. [0004] In the prior art, the smart card processing CAP file specification does not provide a method for processing component data in the CAP file according to the characteristics of each component, and stores...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/00G06K19/07
CPCG06F9/445G06Q20/3563G06Q20/3552G06Q20/3576G06F8/654G06F16/1847G06F16/134
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