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

Method and device for data processing of JAVA card

A data processing and memory technology, applied in the field of smart cards, to achieve the effect of improving efficiency

Active Publication Date: 2012-07-18
BEIJING WATCH DATA SYST
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by this application is to provide a JAVA card data processing method and device to solve the problem of how to improve the efficiency of JAVA card development and JAVA program execution

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 data processing of JAVA card
  • Method and device for data processing of JAVA card
  • Method and device for data processing of JAVA card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Reference figure 2 , Shows a flowchart of the steps of a JAVA card data processing method according to the first embodiment of the application.

[0032] The data processing method of the JAVA card of this embodiment is used to access static global variables in the memory, and includes the following steps:

[0033] Step S202: Set memory attributes for static global variables.

[0034] Wherein, the memory attribute is used to instruct the static global variable to be processed corresponding to the memory attribute in the internal memory of the JAVA card.

[0035] In this step, for those static global variables that do not need to be stored for a long time or permanently, set the memory attributes for them to indicate that the processing (such as reading, writing, deleting, modifying, etc.) is performed in the memory, no more Access EEPROM many times and repeatedly.

[0036] Step S204: Determine the memory address of the static global variable in the memory of the JAVA card accord...

Embodiment 2

[0041] Reference image 3 , Shows a step flow chart of a JAVA card data processing method according to the second embodiment of the present application.

[0042] The data processing method of the JAVA card of this embodiment is used to access static global variables in the memory, and includes the following steps:

[0043] Step S302: Set memory attributes for multiple static global variables.

[0044] Step S304: Use an array to place multiple static global variables.

[0045] The array has an array identifier, such as an array ID.

[0046] It should be noted that when there are many static global variables, multiple arrays can be used, and each array has an array identifier. Preferably, a temporary array is used, which can meet actual needs without occupying space for a long time.

[0047] Step S306: Store the array in the EEPROM in the form of an object.

[0048] Among them, the array object stores the offset address of each static global variable in the array in the memory of the JAVA ...

Embodiment 3

[0063] Reference Figure 5 , Shows a flow chart of the steps of a JAVA card data processing method according to the third embodiment of the application.

[0064] This embodiment takes specific JAVA development as an example to illustrate the data processing method of a JAVA card, including the following steps:

[0065] Step S502: Set memory attributes for static global variables.

[0066] First, add an annotation attribute (memory attribute) to the field (field, which is a field in the form of a static global variable). The value of the attribute is COD (clear_on_deselect) or COR (clear_on_reset). The COD or COR attribute makes the COD value or COR value appear in the annotation attribute of the declared field when the JAVA file is generated.

[0067] Generally, in a JAVA file, an attribute is represented by an attribute_info (attribute information) structure, which is as follows:

[0068]

[0069] When setting the memory attribute, that is, the annotation attribute, you can add a Runt...

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 provides a method and a device for data processing of a JAVA card. The method for data processing of the JAVA card is used for accessing to static global variables in a memory and includes: setting the memory attribute for the static global variable to indicate processing of the static global variable in the memory of the JAVA card corresponding to the processing of the memory attribute; determining a memory address of the static global variable in the memory of the JAVA card according to the memory attribute; and accessing to the static global variable in the memory of the JAVA card according to the memory address. By means of the method and the device for data processing of the JAVA card, time consumption and low efficiency caused by repeatedly accessing to an EEPROM (electrically erasable programmable read-only memory) can be avoided, and JAVA card development and JAVA program execution efficiency can be improved.

Description

Technical field [0001] This application relates to the technical field of smart cards, and in particular to a data processing method and device for JAVA cards. Background technique [0002] JAVA card is a CPU smart card that can run JAVA programs. Through the JAVA card, developers can choose any development tools they are familiar with and like. Since the programming of JAVA cards is in JAVA language, almost all popular JAVA development environments, such as VJ++, Vcafe, etc., can be used for the development of JAVA cards, which makes it possible to quickly complete and debug JAVA card applications. For possible. In addition, it also enables any JAVA developer to become a JAVA card developer, providing a strong talent guarantee and better application prospects for the development of smart cards. [0003] At present, in the development process of JAVA smart cards, developers need to define a large number of static global variables (ie, static member variables) in the JAVA layer. ...

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): G06F12/02
Inventor 董吉昌
Owner BEIJING WATCH DATA SYST
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