CN1848182A - Non-contact type smart card multi-wallet recovery method - Google Patents
Non-contact type smart card multi-wallet recovery method Download PDFInfo
- Publication number
- CN1848182A CN1848182A CN 200510025030 CN200510025030A CN1848182A CN 1848182 A CN1848182 A CN 1848182A CN 200510025030 CN200510025030 CN 200510025030 CN 200510025030 A CN200510025030 A CN 200510025030A CN 1848182 A CN1848182 A CN 1848182A
- Authority
- CN
- China
- Prior art keywords
- wallet
- piece
- block
- procedure
- backup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present invention relates to anon-contact intelligent card multi-purse recovery method. Said method is implemented by adopting the following several steps: modifying purse mark block into the purse mark to be operated, writing purse mark block of process file; changing process mark of process block into start operation, writing process block; operating purse block; changing the process mark of process block into operation completion, writing process block; remaining the information of operation record, etc. in card; using purse block information to update standby purse block information; and using process block information to update standby process block information.
Description
Technical field
The present invention relates to contactless smart (IC) card field, relate in particular to this and be stuck in wallet recovery method in the use.
Background technology
In general non-contact IC card Data Structure Design process, normally define a wallet file and procedure file.The wallet file has comprised two pieces---wallet piece and standby wallet piece, and procedure file also includes two pieces---procedure block and alternate processes piece.Simultaneously, make the flow process of a cover operation, be used for solving the non-contact IC equipment of the being stuck in process of swiping the card and occur pulling out card midway, transaction is not finished as yet, next time the Restoration Mechanism in the process of exchange.
Wallet file and procedure file data structure definition such as following table in the general card data structure:
The piece internal information | |||||||
The wallet piece | Wallet (positive sign indicating number) | Wallet (radix-minus-one complement) | Wallet (positive sign indicating number) | The address | Ground The location | The address | Ground The location |
Standby wallet piece | Standby wallet (positive sign indicating number) | Standby wallet (radix-minus-one complement) | Standby wallet (positive sign indicating number) | The address | Ground The location | The address | Ground The location |
Wherein:
The addressThe radix-minus-one complement of presentation address byte, below identical.
The piece internal information | |||
Procedure block | Process tag | Other information | Verification |
The alternate processes piece | The standby process sign | Other information | Verification |
Generally speaking the card operating process is realized as follows:
1. the process tag of change procedure piece is write procedure block for beginning operation;
2. operate the wallet piece;
3. the process tag of change procedure piece is finished for operation, writes procedure block;
4. information such as reservation operations record in card;
5. the standby wallet block message of the enclosed mass information updating of spending money;
6. with procedure block information updating alternate processes block message.
If step 2 success, if Transaction Success is also can be regarded as in any one step failure so backward, uncompleted step is continued to finish by next equipment.
By such flow process, after last time, operation was pulled out card midway for contactless IC card, information by procedure block and alternate processes piece, wallet piece and standby wallet piece, can be easy to judge and operate last time in which step, operation last time is as finishing still incomplete transaction, thereby decision is the operation that continues to finish last time, still recovers the operation finished last time, as following table:
State | Phenomenon | Reason | Subsequent operation | Operation last time |
1 | Legal procedure block=the backup procedure of all data yuan enclosed mass=backup wallet piece | Be finished last time | Do not have | Success |
2 | The illegal wallet piece of procedure block=backup wallet piece | Step 1 failure | With backup procedure piece rejuvenation piece | Not success |
3 | The process tag of the illegal procedure block of wallet piece=backup procedure piece procedure block is for beginning operation | Step 2 failure | With backup wallet recovery wallet piece backup procedure piece rejuvenation piece | Not success |
4 | An illegal wallet piece of procedure block!=backup wallet piece | Step 3 failure | The process tag of procedure block changes to operation and finishes, and copies to the backup procedure piece.The information updating of wallet piece is to backup wallet piece. | Success |
5 | The backup wallet is illegal | Step 5 failure | The wallet piece is updated to backup wallet piece procedure block and is updated to the backup procedure piece | Success |
6 | The backup procedure piece is illegal | Step 6 failure | Procedure block is updated to the backup procedure piece | Success |
7 | The process tag of the legal procedure block of all data is for beginning to operate wallet piece=backup wallet piece | Stop after step 1 success | With backup procedure piece rejuvenation piece | Not success |
8 | The process tag of the legal procedure block of all data is for beginning to operate the wallet piece!=backup wallet piece | Stop after step 2 success | The process tag that the wallet piece is updated to backup wallet piece procedure block changes to complete operation, is updated to the backup procedure piece | Success |
9 | The process tag of the legal procedure block of all data is a complete operation wallet piece!=backup wallet piece | Step 3 stops after finishing | The wallet piece is updated to backup wallet piece procedure block and is updated to the backup procedure piece | Success |
10 | The process tag of the legal procedure block of all data is complete operation wallet piece=backup wallet piece procedure block!=backup procedure piece | Step 5 stops after finishing | Procedure block is updated to the backup procedure piece | Success |
But, on a card, exist simultaneously under the situation of a plurality of wallets, if a procedure file only is provided, comprise procedure block and backup procedure piece, this operating process has some defectives for the recovery under the situation of many wallets.
For example: when first operation of equipment wallet 1, to the failure of the 3rd step.A back like this equipment need remove to travel through card and go up all wallet files, and which wallet file what determine last operation by relatively wallet piece and backup wallet piece is, thereby recovers.If equipment is unfamiliar with card structure in advance, equipment just can't recover like this.
Summary of the invention
The technical issues that need to address of the present invention have provided a kind of non-contact type smart card multi-wallet recovery method, are intended to solve above-mentioned defective.
In order to solve the problems of the technologies described above, the present invention realizes by following steps:
1. revise the wallet sign of wallet attribute block, write the wallet attribute block of procedure file for operating;
2. the process tag of change procedure piece is write procedure block for beginning operation;
3. operate the wallet piece;
4. the process tag of change procedure piece is finished for operation, writes procedure block;
5. information such as reservation operations record in card;
6. the standby wallet block message of the enclosed mass information updating of spending money;
7. with procedure block information updating alternate processes block message;
Compared with prior art, the invention has the beneficial effects as follows: by the information on the card can be very fast which wallet file what judge last time operation be, solved the recovery flow process of many wallets, accomplished one card for multiple uses.
Embodiment
Below in conjunction with embodiment the present invention is described in further detail:
The present invention realizes by following steps:
Revise the wallet sign of wallet attribute block, write the wallet attribute block 1 of procedure file for operating;
The process tag of change procedure piece is write procedure block 2 for beginning operation;
Operation wallet piece 3;
The process tag of change procedure piece is finished for operation, writes procedure block 4;
Information 5 such as reservation operations record in card;
The standby wallet block message 6 of the enclosed mass information updating of spending money;
With procedure block information updating alternate processes block message 7;
Wherein: be to determine the wallet file mark of last time operation in the step 1 by reading the wallet attribute block;
Amended procedure file has increased by one, is used for the wallet of flag operation, as following table:
The piece internal information | |||
The wallet attribute block | The wallet sign | Verification | |
Procedure block | Process tag | Other information | Verification |
The alternate processes piece | The standby process sign | Other information | Verification |
If step 3 success, if Transaction Success is also can be regarded as in any one step failure so backward, uncompleted step is continued to finish by next equipment.
At first recover flow process in the process of Card Reader, determine the wallet file mark of operation last time, carry out the recovery of card then according to following recovery flow process by reading the wallet attribute block.
State | Phenomenon | Reason | Subsequent operation | Operation last time |
1 | If wallet attribute block data are illegal | Step 1 failure | Do not have | Not success |
2 | Legal procedure block=the backup procedure of all data yuan enclosed mass=backup wallet piece | Be finished last time | Do not have | Success |
3 | The illegal wallet piece of procedure block=backup wallet piece | Step 1 failure | With backup procedure piece rejuvenation piece | Not success |
4 | The process tag of the illegal procedure block of wallet piece=backup procedure piece procedure block is for beginning operation | Step 2 failure | With backup wallet recovery wallet piece backup procedure piece rejuvenation piece | Not success |
5 | An illegal wallet piece of procedure block!=backup wallet piece | Step 3 failure | The process tag of procedure block changes to operation and finishes, and copies to the backup procedure piece.The information updating of wallet piece is to backup wallet piece. | Success |
6 | The backup wallet is illegal | Step 5 failure | The wallet piece is updated to backup wallet piece procedure block and is updated to the backup procedure piece | Success |
7 | The backup procedure piece is illegal | Step 6 failure | Procedure block is updated to the backup procedure piece | Success |
8 | The process tag of the legal procedure block of all data is for beginning to operate wallet piece=backup wallet piece | Stop after step 1 success | With backup procedure piece rejuvenation piece | Not success |
9 | The process tag of the legal procedure block of all data is for beginning to operate the wallet piece!=backup wallet piece | Stop after step 2 success | The process tag that the wallet piece is updated to backup wallet piece procedure block changes to complete operation, is updated to the backup procedure piece | Success |
10 | The process tag of the legal procedure block of all data is a complete operation wallet piece!=backup wallet piece | Step 3 stops after finishing | The wallet piece is updated to backup wallet piece procedure block and is updated to the backup procedure piece | Success |
11 | The process tag of the legal procedure block of all data is complete operation wallet piece=backup wallet piece procedure block!=backup procedure piece | Step 5 stops after finishing | Procedure block is updated to the backup procedure piece | Success |
Claims (2)
1. non-contact type smart card multi-wallet recovery method, the present invention realizes by following steps:
Revise the wallet sign of wallet attribute block, write the wallet attribute block (1) of procedure file for operating;
The process tag of change procedure piece is write procedure block (2) for beginning operation;
Operation wallet piece (3);
The process tag of change procedure piece is finished for operation, writes procedure block (4);
Information (5) such as reservation operations record in card;
The standby wallet block message of the enclosed mass information updating of spending money (6);
With procedure block information updating alternate processes block message (7).
2. non-contact type smart card multi-wallet recovery method according to claim 1, wherein: be to determine the wallet file mark of last time operation in the step (1) by reading the wallet attribute block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100250309A CN100568302C (en) | 2005-04-13 | 2005-04-13 | The many wallet operating methods of contact type intelligent card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100250309A CN100568302C (en) | 2005-04-13 | 2005-04-13 | The many wallet operating methods of contact type intelligent card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1848182A true CN1848182A (en) | 2006-10-18 |
CN100568302C CN100568302C (en) | 2009-12-09 |
Family
ID=37077732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100250309A Active CN100568302C (en) | 2005-04-13 | 2005-04-13 | The many wallet operating methods of contact type intelligent card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100568302C (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103646467A (en) * | 2013-12-24 | 2014-03-19 | 拉卡拉支付有限公司 | Off-line transaction data processing method and device of logic encryption card |
CN106855976A (en) * | 2016-11-17 | 2017-06-16 | 飞天诚信科技股份有限公司 | A kind of encryption storage card and its method of work with Restoration Mechanism |
-
2005
- 2005-04-13 CN CNB2005100250309A patent/CN100568302C/en active Active
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103646467A (en) * | 2013-12-24 | 2014-03-19 | 拉卡拉支付有限公司 | Off-line transaction data processing method and device of logic encryption card |
CN103646467B (en) * | 2013-12-24 | 2019-07-23 | 拉卡拉支付股份有限公司 | A kind of logic encryption card offline transaction data processing method and device |
CN106855976A (en) * | 2016-11-17 | 2017-06-16 | 飞天诚信科技股份有限公司 | A kind of encryption storage card and its method of work with Restoration Mechanism |
CN106855976B (en) * | 2016-11-17 | 2020-09-15 | 飞天诚信科技股份有限公司 | Encrypted memory card with recovery mechanism and working method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN100568302C (en) | 2009-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8321481B2 (en) | Method for incremental anti-tear garbage collection | |
CN104040481B (en) | Method and system for merging, storing and retrieving incremental backup data | |
CN102541757B (en) | Write cache method, cache synchronization method and device | |
CN100573464C (en) | Recover device, the system and method for multivolume data set | |
CN101515276B (en) | Method for write operation of file data, and recovery method and recovery system for file data | |
CN102609337A (en) | Rapid data recovery method for memory database | |
US9916211B2 (en) | Relational database recovery | |
US9495286B2 (en) | Method and arrangement for completion or recovery of data transactions in a flash type memory device using a commit process | |
CN105787109A (en) | Account checking method and device of payment and clearing system | |
CN103092903A (en) | Database Log Parallelization | |
CN110555770B (en) | Block chain world state checking and recovering method based on incremental hash | |
US20050138090A1 (en) | Method and apparatus for performing a backup of data stored in multiple source medium | |
CN1936853B (en) | Data cut-off protection and repairing method of inlaid apparatus | |
CN103064760A (en) | Backup method and backup device | |
AU762634B2 (en) | System and method for extracting index key data fields | |
CN102629250A (en) | Recovery method of redo log files for main memory database | |
US8156084B2 (en) | Transfer of data from positional data sources to partitioned databases in restartable environments | |
CN1848182A (en) | Non-contact type smart card multi-wallet recovery method | |
CN105068941A (en) | Cache page replacing method and cache page replacing device | |
US9952771B1 (en) | Method and system for choosing an optimal compression algorithm | |
CN101650692A (en) | Method and device for modifying data in memory | |
CN102013029B (en) | Safe card signing method for intelligent card database application system | |
CN102929563B (en) | Transaction data processing method and device | |
JPS62245348A (en) | Method and device for updating data base | |
CN106971339A (en) | A kind of method and device for business processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee |
Owner name: SHANGHAI HUAHONG JT SMART CARD SYSTEM CO., LTD. Free format text: FORMER NAME: HUAHONG JITONG INTELLIGNE CARD SYSTEM CO., LTD., SHANGHAI |
|
CP01 | Change in the name or title of a patent holder |
Address after: 200051, No. 1291 West Zhongshan Road, Shanghai, building 5 Patentee after: Shanghai Huahong Jitong Smart System Co., Ltd. Address before: 200051, No. 1291 West Zhongshan Road, Shanghai, building 5 Patentee before: Huahong Jitong Intelligne Card System Co., Ltd., Shanghai |