JAVA card FLASH page wear balance management method

A wear leveling and management method technology, applied in the field of JAVA cards, can solve problems such as FLASH page damage, achieve the effect of prolonging the service life and realizing wear balance

Pending Publication Date: 2022-04-12
BEIJING HUAHONG INTEGRATED CIRCUIT DESIGN
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above analysis, the embodiment of the present invention aims to provide a JAVA card FLASH page wear leveling management method to solve the existing problem of using fixed addresses to store data easily causing FLASH page damage

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
  • JAVA card FLASH page wear balance management method
  • JAVA card FLASH page wear balance management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the application and together with the embodiments of the present invention are used to explain the principle of the present invention and are not intended to limit the scope of the present invention.

[0042] JAVA card stores data in the form of objects. The storage medium of the current JAVA card (smart card) is usually FLASH, and the object (data) is stored in a two-level table manner. There is only one level-1 table. For example, for FLASH with a page size of 512 bytes, every group of 4 bytes indicates whether the object in the level-2 table is full. 0xFF means it is full, and 0x00 means it is not full; The last three bytes store the physical address of the secondary table. The primary table can manage 128 secondary tables.

[0043] Table 1 Level 1 table

[0044] 1-4 bytes ...

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 JAVA card FLASH page wear balance management method. The method comprises the following steps: dividing an address management page and an object management page; the object management page is used for storing a logic address of the data object; the address management page is used for storing a mapping relation between the logic address and the effective data page; determining a logic address of the object according to the object size and the free space size when the object is created; determining an effective data page of the object according to the logic address and the mapping relation between the logic address and the effective data page, establishing the mapping relation between the logic address of the object and the effective data page, and writing the mapping relation into an address management page; writing the logic address of the object into an object management page; the physical address of the object is obtained according to the index of the object and the mapping relation between the logic address and the effective data page when the object is modified; and merging the content of the effective data page where the modified object and the physical address are located, writing the merged content into an idle page, taking the idle page as a new effective data page, establishing a mapping relation between the logic address and the new effective data page, and writing the mapping relation into an address management page.

Description

technical field [0001] The invention relates to the technical field of JAVA cards, in particular to a method for managing wear and tear of a JAVA card FLASH page. Background technique [0002] JAVA card, that is, JAVA smart card, based on the smart card hardware system, constructs a software / hardware system that supports JAVA program download, installation, and operation through software. Due to the introduction of virtual machine technology, JAVACard has hardware independence, that is, smart card application development is separated from the smart card hardware system, which simplifies the development process and improves the portability and reusability of applications. [0003] The hardware of the JAVA card is mainly composed of CPU, RAM, FLASH memory, hardware coprocessor and so on. The operating system of the JAVA card is mainly composed of a virtual machine-JCVM, an operating environment-JCRE, JAVA-api, and a low-level hardware management interface module. Among them,...

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/10G06F3/06
Inventor 刘青王卫东黄明董晓枫
Owner BEIJING HUAHONG INTEGRATED CIRCUIT DESIGN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products