CN101364321A - Purse sharing method for logic ciphering card and CPU card in non-contact smart card - Google Patents

Purse sharing method for logic ciphering card and CPU card in non-contact smart card Download PDF

Info

Publication number
CN101364321A
CN101364321A CNA2007101199756A CN200710119975A CN101364321A CN 101364321 A CN101364321 A CN 101364321A CN A2007101199756 A CNA2007101199756 A CN A2007101199756A CN 200710119975 A CN200710119975 A CN 200710119975A CN 101364321 A CN101364321 A CN 101364321A
Authority
CN
China
Prior art keywords
card
cpu
wallet
logic encryption
data
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.)
Pending
Application number
CNA2007101199756A
Other languages
Chinese (zh)
Inventor
李昕
刘宏梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing CEC Huada Electronic Design Co Ltd
Original Assignee
Beijing CEC Huada Electronic Design Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing CEC Huada Electronic Design Co Ltd filed Critical Beijing CEC Huada Electronic Design Co Ltd
Priority to CNA2007101199756A priority Critical patent/CN101364321A/en
Publication of CN101364321A publication Critical patent/CN101364321A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to a method for operating an electronic wallet by using a non-contact smart card, in particular to an operation method, in which a logic encrypting card and a CPU card wallet exist in the non-contact smart card at the same time, and the consistency of the two items of wallet data is ensured when charging and deducting money from wallet data in the electronic wallet.

Description

The purse sharing method of logic encryption card and CPU card in the contactless smart card
Technical field
The present invention relates to a kind of method of using contact type intelligent card to carry out e-wallet implementation, especially relate to a kind of in contact type intelligent card, when having logic encryption card and CPU card wallet simultaneously, when the wallet data in the stored value card with money such as are supplemented, withhold at operation, ensure the conforming method of operating of two wallet data.
Background technology
Smart card claims integrated circuit (IC) card again.It is embedded in an integrated circuit (IC) chip in the plastic substrate, is packaged into the form of card.It has little, the advanced ic core chip technology of volume, special secrecy provision and the characteristics that can't be decrypted and copy.The IC-card technology combines microelectric technique and computer technology, is applied to a plurality of industries such as finance, traffic, medical treatment, social security and proof of identification, has improved the up-to-dateness of people's live and works.The IC-card chip has the ability of data of writing and storage data, and the content in the IC-card storer can read and supply the usefulness of internal information processing and judgement as required conditionally for the outside.
Difference according to the integrated circuit of being inlayed in the card can be divided into following three classes:
1. memory card: the integrated circuit in the card is EEPROM (but programmable read only memory that electricity consumption is wiped).
2. logic encryption card: the integrated circuit in the card has encryption logic and EEPROM.
3.CPU card: the integrated circuit in the card comprises central processor CPU, EEPROM, random access memory ram and is solidificated in chip operating system COS (Chip Operating System) in the read only memory ROM.Strictly say to have only the CPU card to be only real smart card.
Smart card can be divided into two kinds of Contact Type Ic Card and non-contact IC cards according to the mode that transmits with extraneous data.The chip of Contact Type Ic Card has 8 contacts to contact with the external world.The integrated circuit of non-contact IC card is not outwards drawn the contact, therefore it is except the circuit that comprises aforementioned three kinds of IC-cards, also have RF transmit-receive circuit and interlock circuit thereof, read write line is contactless to the read-write of card, thereby claims that this IC-card is contactless or induction type IC card (RF radio-frequency card).
At present, contactless logical encrypt is stuck in public transport, refuel, fields such as ammeter have a wide range of applications, continuous development along with smart card techniques, contactless logic encryption card is just progressively to the contactless CPU card transition with greater security and dirigibility, in order to make this transition more steady, and compatible original logic encryption card, need be on the CPU card function of retention logic encrypted card, this will appear in the same application of same sheet smart card, there are two wallets of CPU card and logic encryption card simultaneously, if two wallets are independent mutually, when supplementing with money at every turn or consume, the user all must understand it oneself is to operate on the terminal of logic encryption card or on the terminal of CPU card, operating, in addition, must know on oneself two wallets how much is respectively arranged, this is very inconvenient for the user, therefore, two wallets are connected, make the user to use just as a wallet, this just needs a kind of method to make two wallets synchronous.
Summary of the invention
The technical problem to be solved in the present invention is, provide a kind of in contact type intelligent card, simultaneous logic encryption card and CPU card wallet are carried out the method for e-wallet implementation, it has the function that the wallet data are recovered automatically, prevent the damage of the wallet data that may occur in the operating process, and ensure two purse transaction results' consistance.
For solving above technical matters, logic encryption card in the contact type intelligent card of the present invention and CPU card wallet uniform operation method are to be achieved through the following technical solutions.
In contact type intelligent card, based on the wallet in the logic encryption card, wallet content in the CPU card is for pointing to the address of logic encryption card wallet, this address is to write when using hair fastener, when the user concludes the business, just revise the content of logic encryption card wallet on logic encryption card terminal; When the user when terminal cpu is concluded the business, the COS of CPU card obtains the address of logic encryption card wallet by CPU card wallet, checks whether wallet district data meet the demands, and the data of mistake are repaired, when the wallet data can not be repaired, CPU card COS withdrawed from transaction, and reason is returned to terminal; If the wallet data are correct, before revising the wallet data, COS need back up upgrading back bag data and other critical datas, and safeguard a Backup Data state, behind the Backup end, revise the Backup Data state and be Status of Backups, upgrade the wallet data then, and write down transaction details in the CPU user data area, COS calculates a MAC or/and TAC, the transaction operation is finished, at this moment, it is the no datat Status of Backups that COS revises the Backup Data state, if in the above in Jiao Yi any process, meet accident, after re-powering, smart card can trigger Restoration Mechanism automatically, is triggered by logic encryption card terminal if this time powers on, card can be checked the Backup Data state of logical encrypt card portion, if the Backup Data state is for backing up, at this moment, backed up data can at first be used for repairing the data of the wallet data block of logic encryption card, revise the Backup Data state then and be Status of Backups not, carry out the operation of terminal request at last; If powering on, this time trigger by CPU card terminal, card can be checked the Backup Data state of CPU card portion, if the Backup Data state is for backing up, at this moment, backed up data can at first be used for repairing the data of the wallet data block of CPU card critical data and logic encryption card, revise the Backup Data state then and be Status of Backups not, carry out the operation of terminal request at last.
Because adopt said method, when beginning to operate among the present invention, CPU card and logic encryption card are at a shared wallet in fact, thereby reach CPU card and the synchronous purpose of logic encryption card wallet; In addition, the Backup Data state makes on logic encryption card and the CPU card at any time, take place under the situation of anything unexpected, transaction results can both be consistent, that is, conclude the business on CPU, transaction is not finished, power on once more, no matter still hold at CPU at the logic encryption card end, the data that obtain the last transaction result all are consistent.
Description of drawings
Fig. 1 has described the process of exchange under the cpu model.
Fig. 2 has described the rejuvenation under the cpu model.
Fig. 3 has described the process of exchange under the logical encrypt mode card.
Embodiment
When logic encryption card terminal was operated, logic encryption card earlier checked whether mirror image data is arranged, if do not have, the order of sending out according to terminal adds money or operation such as withhold; If have, first restore data adds money or the operation of withholing again; When CPU card terminal was operated, the COS on the CPU card checked whether mirror image data is arranged earlier, if having, and first restore data; If no, continue operation; Block the order according to terminal then, row adds money or operation such as withhold to sticking into.The CPU card obtains the address of wallet data block in the logic encryption card, checks wallet data content in the logic encryption card, if make mistakes, then returns error code, end operation; If the wallet data are normal, earlier the wallet data are backuped to the MIRROR SITE in the card, according to the order of terminal, wallet is added money or withholds operation again.In order to realize above-mentioned functions, need two Status Flags: mirrored state sign and stateful transaction sign.The mirrored state sign has three states: " transaction mirror image ", " transaction record mirror image " and " no mirror image "; The stateful transaction sign has two states: " transaction starts " and " closing the transaction ".
" transaction mirror image " state is meant that MIRROR SITE has the mirror image data of wallet and transaction record, and last transaction process accidental interruption is described, re-powering needs to trigger the image recovery process.
" transaction record mirror image " state is meant that MIRROR SITE has the mirror image data of transaction record, and last transaction process accidental interruption is described, re-powering needs to trigger the image recovery process.
" no mirror image " state is meant that MIRROR SITE does not have mirror image data, re-powers and need not trigger the image recovery process.
" transaction start " state is meant that last transaction do not finish.
" closing the transaction " state is meant that last transaction finishes.
The present invention mainly is divided into two parts, process of exchange and rejuvenation, and wherein process of exchange is divided into cpu model and logical encrypt mode card again, and rejuvenation also is divided into cpu model and logical encrypt mode card.
As shown in Figure 1, in the process of exchange under the cpu model, the COS on the CPU card checks earlier whether mirror image data is arranged, if have, first restore data is not if having, CPU card wallet obtains the address of logic encryption card wallet, and check whether wallet district's data and remaining sum meet the demands, if wallet format error this moment or Sorry, your ticket has not enough value, the COS on the CPU card repairs the data of mistake, when the wallet data can not be repaired, CPU card COS withdraws from transaction, the output error sign indicating number, and reason returned to terminal; If this moment, wallet form or remaining sum met the demands, then CPU card COS is changed to the stateful transaction sign " transaction starts ", and before upgrading wallet and transaction record, CPU card COS need back up upgrading other critical datas such as back bag data and transaction record, CPU card COS calculates a MAC or/and TAC is changed to the mirrored state sign " transaction mirror image " then.If in Jiao Yi any process, meet accident in the above, after re-powering, smart card can trigger Restoration Mechanism automatically.After renewal wallet and transaction record operation were finished, CPU card COS was changed to " closing the transaction " with the stateful transaction sign, the mirrored state sign is changed to " no mirror image ".
As shown in Figure 2, in the image recovery process under cpu model, CPU card COS judges whether the mirrored state sign is " transaction mirror image " earlier, if the mirrored state sign is " a transaction mirror image ", and the stateful transaction sign is " closing the transaction ", and CPU card COS can be made as the mirrored state sign " no mirror image " so; If the mirrored state sign is " a transaction mirror image ", and the stateful transaction sign is not " closing the transaction ", and CPU card COS can recover wallet data and transaction record and other critical datas; On the contrary, if the mirrored state sign is not " a transaction mirror image ", CPU card COS can judge then whether the mirrored state sign is " transaction record mirror image ", if the mirrored state sign is " a transaction record mirror image ", the CPU card can recover transaction record, then the mirrored state sign is made as " no mirror image ", withdraws from transaction afterwards; If the mirrored state sign is not " a transaction mirror image ", and the mirrored state sign is not " transaction record mirror image ", and image recovery finishes.
As shown in Figure 3, in the image recovery process under the logical encrypt mode card, CPU card COS judges whether the mirrored state sign is " transaction mirror image " earlier, if the mirrored state sign is " a transaction mirror image ", and the stateful transaction sign is " closing the transaction ", CPU card COS can be set to " no mirror image ", closing the transaction then by the mirrored state sign; If the mirrored state sign is " a transaction mirror image ", and the stateful transaction sign is not " closing the transaction ", CPU card COS can recover wallet data and transaction record and other critical datas, and the mirrored state sign is set to " transaction record mirror image " then, and transaction subsequently just finishes; If the mirrored state sign is not " a transaction mirror image ", the image recovery process finishes.

Claims (5)

1. the purse sharing method of logic encryption card and CPU card in the contactless smart card, it is characterized in that, when in contact type intelligent card, having logic encryption card and CPU card wallet simultaneously, to the operation such as supplement with money, withhold of the wallet data in the stored value card, the data of wallet can remain consistance in logic encryption card and the CPU card.
2. the purse sharing method of logic encryption card and CPU card in the contactless smart card as claimed in claim 1, it is characterized in that, when the stored value card in logic encryption card or the CPU card is prepared to operate, logic encryption card or CPU card check earlier whether mirror image data is arranged, if have, elder generation's restore data continues operation again; If no, the order of sending out according to logic encryption card or CPU card terminal adds money or operation such as withhold.
3. the purse sharing method of logic encryption card and CPU card in the contactless smart card as claimed in claim 1, it is characterized in that, when logic encryption card or CPU card terminal are operated, logic encryption card or CPU card terminal are checked the wallet data content, if make mistakes, then return error code, end operation; If the wallet data are normal,, wallet is added money or operation such as withhold again according to the order of logic encryption card or CPU card terminal.
4. the purse sharing method of logic encryption card and CPU card in the contactless smart card as claimed in claim 3, it is characterized in that, if the wallet data are normal, and be to operate at terminal cpu, earlier wallet data before upgrading and other critical datas are carried out mirror image, in order, wallet is added money or operation such as withhold according to CPU card terminal.
5. the purse sharing method of logic encryption card and CPU card in the contactless smart card as claimed in claim 1, it is characterized in that, the shared physically wallet data block of CPU card and logic encryption card, the wallet data block leaves in the user area of logic encryption card, and the wallet content of CPU card is for pointing to the address of logic encryption card wallet.
CNA2007101199756A 2007-08-06 2007-08-06 Purse sharing method for logic ciphering card and CPU card in non-contact smart card Pending CN101364321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101199756A CN101364321A (en) 2007-08-06 2007-08-06 Purse sharing method for logic ciphering card and CPU card in non-contact smart card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101199756A CN101364321A (en) 2007-08-06 2007-08-06 Purse sharing method for logic ciphering card and CPU card in non-contact smart card

Publications (1)

Publication Number Publication Date
CN101364321A true CN101364321A (en) 2009-02-11

Family

ID=40390674

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101199756A Pending CN101364321A (en) 2007-08-06 2007-08-06 Purse sharing method for logic ciphering card and CPU card in non-contact smart card

Country Status (1)

Country Link
CN (1) CN101364321A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011060662A1 (en) * 2009-11-20 2011-05-26 北京飞天诚信科技有限公司 Method for earmarking two electronic purses
CN103678043A (en) * 2013-12-26 2014-03-26 东信和平科技股份有限公司 Offline terminal transaction data backup method and system used in payment system
CN105593884A (en) * 2013-06-06 2016-05-18 万事达卡国际股份有限公司 Electronic authentication systems

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011060662A1 (en) * 2009-11-20 2011-05-26 北京飞天诚信科技有限公司 Method for earmarking two electronic purses
CN105593884A (en) * 2013-06-06 2016-05-18 万事达卡国际股份有限公司 Electronic authentication systems
CN103678043A (en) * 2013-12-26 2014-03-26 东信和平科技股份有限公司 Offline terminal transaction data backup method and system used in payment system

Similar Documents

Publication Publication Date Title
US20230316030A1 (en) Electronic transaction mechanism
US7341182B2 (en) Method and apparatus for integrating a mobile phone with a contactless IC card
TWI221957B (en) Automatic recovery of integrated circuit cards
CN101107635A (en) Secure credit card adapter
CN103295320B (en) The system and method that a kind of all-purpose card interconnects
CN101833676A (en) Method for controlling reading and writing of intelligent card with USBKEY module and reader thereof
CN100535935C (en) CPUCPU and logic encryption double-purpose smart card and its data synchronization method
CN101364321A (en) Purse sharing method for logic ciphering card and CPU card in non-contact smart card
CN102521746B (en) Safely-consuming smart card and method thereof
CN102567501B (en) File management system in small storage space
CN100362528C (en) Contactless CPU card compatible to logic encryption card
CN2768089Y (en) Data memory card and recognition system
CN201023356Y (en) Identification card
CN208335234U (en) A kind of contactless CPU card hair fastener charging system
CN202171815U (en) Novel electronic charging and information storing device
CN103824380B (en) A kind of method and device that M1 card in CPU card is closed
CN110363271A (en) The passive NFC anti-counterfeiting chip of anti-tamper detection is realized by detecting pin on-off
JP2006048462A (en) Non-contact ic card authentication system
CN110298431A (en) It is a kind of with the active NFC anti-counterfeiting chip for distorting dynamic detection function
CN101930553A (en) Encryption chip system
Ascariz et al. Multifunction System Based on a State-of-the-Art Microcontroller.
JP2004287984A (en) Non-contact ic card application system and its control unit
CN103559529A (en) Novel membership card and working method thereof
JPH0713056U (en) Non-contact type IC card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090211