# US 2008/0313400 A1 · Data accessing system, controller and storage device having the same, and operation method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0313400 A1
- Document ID: US20080313400A1
- Status: Published application
- Kind: A1
- Application number: 11/840,678
- Filed: 2007-08-17
- Published: 2008-12-18
- Earliest claimed: 2007-06-13
- Assignees: Phison Electronics Corp.
- Inventors: Ching-Wen Chang
- Web page: https://patentgrep.com/patent/US20080313400A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G11C 16/349: {Arrangements for evaluating degradation, retention or wearout, e.g. by counting erase cycles}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A data accessing system for interfacing between a smart card and a non-volatile memory is provided. The non-volatile memory has a smart card exclusive area accessible to a plurality of smart card applications. The smart card exclusive area includes a plurality of record unit sets respectively having a plurality of record units. The data accessing system has a buffer for temporarily storing data to be written into the smart card exclusive area and a data accessing protocol including an access parameter table, a plurality of application information tables, and a plurality of record unit set link tables. The smart card applications access the smart card exclusive area in a unit of record unit set, and the size of a record unit set is a multiple of an access unit of the non-volatile memory. Accordingly, the number of accesses to the non-volatile memory is reduced and data security is increased.

## Claims

### Claim 1

A data accessing system for interfacing between a non-volatile memory and a smart card, the non-volatile memory having a smart card exclusive area accessible to a plurality of smart card applications in the smart card, wherein the smart card exclusive area comprises a plurality of record unit sets respectively having a plurality of record units, the data accessing system comprising:
a buffer, for temporarily storing the data to be written into the smart card exclusive area by the smart card applications; and
a data accessing protocol, comprising:
an access parameter table, for recording the information of the smart card exclusive area, the access parameter table comprising a record unit size field and a record unit set size field, the record unit size field recording the size of each record unit, and the record unit set size field recording the number of record units in each record unit set;
a plurality of application information tables, for respectively recording the information of each smart card application and the information of record units corresponding to each smart card application; and
a plurality of record unit set link tables, for respectively recording the links of each record unit set so that the smart card applications can access data accordingly,
wherein when each of the smart card applications is about to write a data into the smart card exclusive area, the data accessing system temporarily stores the data into the buffer and then writes the data into the smart card exclusive area in a unit of the record unit set, and
wherein the size of the record unit set is a multiple of an access unit of the non-volatile memory.

### Claim 2 (depends on 1)

The data accessing system according to claim 1, wherein when a new smart card application is enabled, the data accessing system appoints at least one of the record unit sets to the new smart card application and records the related information of the new smart card application into the application information table corresponding to the new smart card application.

### Claim 3 (depends on 2)

The data accessing system according to claim 2, wherein each of the smart card applications can only access the appointed record unit sets.

### Claim 4 (depends on 1)

The data accessing system according to claim 1, wherein the non-volatile memory is a flash memory.

### Claim 5 (depends on 4)

The data accessing system according to claim 4, wherein the flash memory is a single level cell (SLC) NAND flash memory or a multi level cell (MLC) NAND flash memory.

### Claim 6 (depends on 5)

The data accessing system according to claim 5, wherein the access unit of the NAND flash memory is a page or a block.

### Claim 7 (depends on 1)

The data accessing system according to claim 1, wherein the access parameter table further comprises:
a version field, for recording a version information of the data accessing system;
an encryption/decryption algorithm field, for recording an encryption/decryption algorithm for the smart card exclusive area;
a personal password field, for recording a personal password;
a card status field, for recording a status of the smart card;
an unlock password field, for recording an unlock password;
an application information table size field, for recording the sizes of the application information tables; and
an application information table entry field, for recording the addresses of the application information tables.

### Claim 8 (depends on 1)

The data accessing system according to claim 1, wherein each of the application information tables comprises:
an application identification code field, for recording an identification code of each smart card application;
a first key field, for recording a first key used for encrypting/decrypting the data transmitted between the smart card and the data accessing system;
a second key field, for recording a second key used for encrypting/decrypting the data transmitted between the smart card and the data accessing system;
a record entry field, recording the addresses of record unit sets corresponding to each smart card application; and
an application size field, recording the number of record unit sets corresponding to each smart card application.

### Claim 9 (depends on 1)

The data accessing system according to claim 1, wherein each of the record unit set link tables comprises:
a previous record unit set address field, for recording an address of a previous record unit set linked to a current record unit set;
a next record unit set address field, for recording an address of a next record unit set linked to the current record unit set; and
an available record unit number field, recording the number of available record units in the current record unit set.

### Claim 10 (depends on 1)

The data accessing system according to claim 1, wherein the record unit set link tables are respectively stored in one of the record units of the record unit sets.

### Claim 11 (depends on 7)

The data accessing system according to claim 7, wherein the smart card cannot be operated when the smart card is in a locked status.

### Claim 12 (depends on 11)

The data accessing system according to claim 11, wherein the data accessing system can unlock the smart card by using the unlock password.

### Claim 13 (depends on 7)

The data accessing system according to claim 7, wherein the data accessing system can encrypt the smart card exclusive area by using the encryption/decryption algorithm recorded in the encryption/decryption algorithm field of the access parameter table.

### Claim 14 (depends on 1)

The data accessing system according to claim 1, wherein the smart card exclusive area further comprises an idle information record area for recording idle record unit sets.

### Claim 15

A controller for a storage device, a non-volatile memory in the storage device having a smart card exclusive area accessible to a plurality of smart card applications in a smart card, wherein the smart card exclusive area comprises a plurality of record unit sets respectively having a plurality of record units, the controller comprising:
a smart card interface, for communicating with the smart card;
a non-volatile memory interface, for accessing the non-volatile memory; and
a data accessing system, for accessing data between the non-volatile memory and the smart card, the data accessing system comprising:
a buffer, for temporarily storing the data to be written into the smart card exclusive area by the smart card applications; and
a data accessing protocol, comprising:
an access parameter table, for recording the information of the smart card exclusive area, the access parameter table comprising a record unit size field and a record unit set size field, the record unit size field recording the size of each record unit, and the record unit set size field recording the number of record units in each record unit set;
a plurality of application information tables, for respectively recording the information of each smart card application and the information of record units corresponding to each smart card application; and
a plurality of record unit set link tables, for respectively recording the links of each record unit set so that the smart card applications can access data accordingly,
wherein when each smart card application is about to write a data into the smart card exclusive area, the data accessing system temporarily stores the data into the buffer and then writes the data into the smart card exclusive area in a unit of the record unit set, and
wherein the size of the record unit set is a multiple of an access unit of the non-volatile memory.

### Claim 16 (depends on 15)

The controller according to claim 15, wherein when a new smart card application is enabled, the data accessing system appoints at least one of the record unit sets to the new smart card application and records the related information of the new smart card application into the application information table corresponding to the new smart card application.

### Claim 17 (depends on 16)

The controller according to claim 16, wherein each of the smart card applications can only access the appointed record unit sets.

### Claim 18 (depends on 15)

The controller according to claim 15, wherein the non-volatile memory is a flash memory.

### Claim 19 (depends on 18)

The controller according to claim 18, wherein the flash memory is a SLC NAND flash memory or a MLC NAND flash memory.

### Claim 20 (depends on 19)

The controller according to claim 19, wherein the access unit of the NAND flash memory is a page or a block.

### Claim 21 (depends on 15)

The controller according to claim 15, wherein the access parameter table further comprises:
a version field, for recording a version information of the data accessing system;
an encryption/decryption algorithm field, for recording an encryption/decryption algorithm for the smart card exclusive area;
a personal password field, for recording a personal password;
a card status field, for recording a status of the smart card;
an unlock password field, for recording an unlock password;
an application information table size field, for recording the sizes of the application information tables; and
an application information table entry field, for recording the addresses of the application information tables.

### Claim 22 (depends on 15)

The controller according to claim 15, wherein each of the application information tables comprises:
an application identification code field, for recording an identification code of each smart card application;
a first key field, for recording a first key used for encrypting/decrypting the data transmitted between the smart card and the data accessing system;
a second key field, for recording a second key used for encrypting/decrypting the data transmitted between the smart card and the data accessing system;
a record entry field, for recording the addresses of record unit sets corresponding to each smart card application; and
an application size field, for recording the number of record unit sets corresponding to each smart card application.

### Claim 23 (depends on 15)

The controller according to claim 15, wherein each of the record unit set link tables comprises:
a previous record unit set address field, for recording an address of a previous record unit set linked to a current record unit set;
a next record unit set address field, for recording an address of a next record unit set linked to the current record unit set; and
an available record unit number field, for recording the number of available record units in the current record unit set.

### Claim 24 (depends on 15)

The controller according to claim 15, wherein the record unit set link tables are respectively stored in one of the record units of the record unit sets.

### Claim 25 (depends on 21)

The controller according to claim 21, wherein the smart card cannot be operated when the smart card is in a locked status.

### Claim 26 (depends on 25)

The controller according to claim 25, wherein the data accessing system can unlock the smart card by using the unlock password.

### Claim 27 (depends on 21)

The controller according to claim 21, wherein the data accessing system can encrypt the smart card exclusive area by using the encryption/decryption algorithm recorded in the encryption/decryption algorithm field of the access parameter table.

### Claim 28 (depends on 15)

The controller according to claim 15, wherein the smart card interface is an ISO 7816 interface.

### Claim 29 (depends on 15)

The controller according to claim 15, wherein the smart card exclusive area further comprises an idle information record area for recording idle record unit sets.

### Claim 30

A storage device, comprising:
a data transmission interface, for communicating with a host;
a non-volatile memory, comprising a smart card exclusive area accessible to a plurality of smart card applications in a smart card, wherein the smart card exclusive area comprises an application data area, an application information area, and an access parameter area, and the application data area comprises a plurality of record unit sets respectively having a plurality of record units; and
a controller, for controlling the operation of the storage device, the controller comprising:
a smart card interface, for communicating with the smart card;
a non-volatile memory interface, for accessing the non-volatile memory; and
a data accessing system, for accessing data between the non-volatile memory and the smart card, the data accessing system comprising:
a buffer, for temporarily storing the data to be written into the smart card exclusive area by the smart card applications; and
a data accessing protocol, for defining a data structure of the smart card exclusive area,
wherein when each smart card application is about to write a data into the smart card exclusive area, the data accessing system temporarily stores the data into the buffer and then writes the data into the smart card exclusive area in a unit of the record unit set, and
wherein the size of the record unit set is a multiple of an access unit of the non-volatile memory.

### Claim 31 (depends on 30)

The storage device according to claim 30, wherein the data accessing protocol includes:
an access parameter table, stored in the access parameter area for recording the information of the smart card exclusive area, the access parameter table comprising a record unit size field and a record unit set size field, wherein the record unit size field records the size of each record unit, and the record unit set size field records the number of record units in each record unit set;
a plurality of application information tables, stored in the application information area for respectively storing the information of each smart card application and the information of record units corresponding to each smart card application; and
a plurality of record unit set link tables, stored in the application data area for respectively storing the links of each record unit set so that the smart card applications can access data accordingly.

### Claim 32 (depends on 31)

The storage device according to claim 31, wherein when a new smart card application is added, the data accessing system appoints at least one of the record unit sets to the new smart card application and records the related information of the new smart card application into the application information table corresponding to the new smart card application.

### Claim 33 (depends on 32)

The storage device according to claim 32, wherein each of the smart card applications can only access the appointed record unit sets.

### Claim 34 (depends on 30)

The storage device according to claim 30, wherein the non-volatile memory is a flash memory.

### Claim 35 (depends on 34)

The storage device according to claim 34, wherein the flash memory is a SLC NAND flash memory or a MLC NAND flash memory.

### Claim 36 (depends on 35)

The storage device according to claim 35, wherein the access unit of the NAND flash memory is a page or a block.

### Claim 37 (depends on 31)

The storage device according to claim 31, wherein the access parameter table further comprises:
a version field, for recording a version information of the data accessing system;
an encryption/decryption algorithm field, for recording an encryption/decryption algorithm for the smart card exclusive area;
a personal password field, for recording a personal password;
a card status field, for recording a status of the smart card;
an unlock password field, for recording an unlock password;
an application information table size field, for recording the sizes of the application information tables; and
an application information table entry field, for recording the addresses of the application information tables.

### Claim 38 (depends on 31)

The storage device according to claim 31, wherein each of the application information tables comprises:
an application identification code field, for recording an identification code of each smart card application;
a first key field, for recording a first key used for encrypting/decrypting the data transmitted between the smart card and the data accessing system;
a second key field, for recording a second key used for encrypting/decrypting the data transmitted between the smart card and the data accessing system;
a record entry field, for recording the addresses of record unit sets corresponding to each smart card application; and
an application size field, recording the number of record unit sets corresponding to each smart card application.

### Claim 39 (depends on 31)

The storage device according to claim 31, wherein each of the record unit set link tables comprises:
a previous record unit set address field, for recording an address of a previous record unit set linked to a current record unit set;
a next record unit set address field, for recording an address of a next record unit set linked to the current record unit set; and
an available record unit number field, for recording the number of available record units in the current record unit set.

### Claim 40 (depends on 31)

The storage device according to claim 31, wherein the record unit set link tables are respectively stored in one of the record units of the record unit sets.

### Claim 41 (depends on 37)

The storage device according to claim 37, wherein the smart card cannot be operated when the smart card is in a locked status.

### Claim 42 (depends on 41)

The storage device according to claim 41, wherein the data accessing system can unlock the smart card by using the unlock password.

### Claim 43 (depends on 37)

The storage device according to claim 37, wherein the data accessing system can encrypt the smart card exclusive area by using the encryption/decryption algorithm recorded in the encryption/decryption algorithm field of the access parameter table.

### Claim 44 (depends on 30)

The storage device according to claim 30, wherein the data transmission interface comprises a universal serial bus (USB) interface, an IEEE 1394 interface, a SATA interface, a PCI Express interface, a memory stick (MS) interface, a multi media card (MMC) interface, a secure digital (SD) card interface, a compact flash (CF) card interface, or an integrated drive electronics (IDE) interface.

### Claim 45 (depends on 30)

The storage device according to claim 30, wherein the non-volatile memory further comprises a data storage area to be accessed by the host.

### Claim 46 (depends on 30)

The storage device according to claim 30, wherein the smart card interface is an ISO 7816 interface.

### Claim 47 (depends on 30)

The storage device according to claim 30, wherein the smart card exclusive area further comprises an idle information record area for recording idle record unit sets.

### Claim 48

An operation method for accessing data between a non-volatile memory and a smart card, the non-volatile memory having a smart card exclusive area accessible to a plurality of smart card applications in the smart card, wherein the smart card exclusive area comprises a plurality of record unit sets respectively having a plurality of record units, the operation method comprising:
appointing at least one of the record unit sets to a new smart card application and recording the related information of the new smart card application into an application information table corresponding to the new smart card application;
temporarily storing a data to be written into the smart card exclusive area by the smart card application into a buffer and then writing the data into the record unit sets corresponding to the smart card application in a unit of the record unit set; and
accessing the record unit sets corresponding to the smart card application according to an application information table corresponding to the smart card application when the smart card application is about to read a data recorded in the smart card exclusive area,
wherein the size of the record unit set is a multiple of an access unit of the non-volatile memory.

### Claim 49 (depends on 48)

The operation method according to claim 48, wherein the non-volatile memory is a flash memory.

### Claim 50 (depends on 49)

The operation method according to claim 49, wherein the flash memory is a SLC NAND flash memory or a MLC NAND flash memory.

### Claim 51 (depends on 50)

The operation method according to claim 50, wherein the access unit of the NAND flash memory is a page or a block.

### Claim 52 (depends on 48)

The operation method according to claim 48, wherein the access parameter table comprises:
a record unit size field, for recording the size of each record unit;
a record unit set size field, for recording the number of record units in each record unit set;
a version field, for recording a version information of the data accessing system;
an encryption/decryption algorithm field, for recording an encryption/decryption algorithm for the smart card exclusive area;
a personal password field, for recording a personal password;
a card status field, for recording a status of the smart card;
an unlock password field, for recording an unlock password;
an application information table size field, for recording the sizes of the application information tables; and
an application information table entry field, for recording the addresses of the application information tables.

### Claim 53 (depends on 48)

The operation method according to claim 48, wherein each of the application information tables comprises:
an application identification code field, for recording an identification code of each smart card application;
a first key field, for recording a first key used for encrypting/decrypting the data transmitted between the smart card and the data accessing system;
a second key field, for recording a second key used for encrypting/decrypting the data transmitted between the smart card and the data accessing system;
a record entry field, for recording the addresses of record unit sets corresponding to each smart card application; and
an application size field, for recording the number of record unit sets corresponding to each smart card application.

### Claim 54 (depends on 48)

The operation method according to claim 48, wherein each of the record unit set link tables comprises:
a previous record unit set address field, for recording the address of a previous record unit set linked to a current record unit set;
a next record unit set address field, for recording the address of a next record unit set linked to the current record unit set; and
an available record unit number field, for recording the number of available record units in the current record unit set.

### Claim 55 (depends on 52)

The operation method according to claim 52, further comprising comparing the personal password recorded in the access parameter table and a password transmitted by the smart card in order to identify a user.

### Claim 56 (depends on 52)

The operation method according to claim 52, further comprising unlocking the smart card using the unlock password when the smart card is in a locked status.

### Claim 57 (depends on 53)

The operation method according to claim 53, further comprising encrypting/decrypting a data read from the smart card exclusive area using the first key and the second key.

### Claim 58 (depends on 53)

The operation method according to claim 53, further comprising encrypting/decrypting a data to be written into the smart card exclusive area using the first key and the second key.
