CN102479361A - Method for removing abnormal conditions of terminals of non-contact smart cards - Google Patents

Method for removing abnormal conditions of terminals of non-contact smart cards Download PDF

Info

Publication number
CN102479361A
CN102479361A CN2010105595227A CN201010559522A CN102479361A CN 102479361 A CN102479361 A CN 102479361A CN 2010105595227 A CN2010105595227 A CN 2010105595227A CN 201010559522 A CN201010559522 A CN 201010559522A CN 102479361 A CN102479361 A CN 102479361A
Authority
CN
China
Prior art keywords
transaction
wallet
smart card
terminal
stateful
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
CN2010105595227A
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.)
TIANJIN ZHONGXING SOFTWARE Co Ltd
Original Assignee
TIANJIN ZHONGXING SOFTWARE 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 TIANJIN ZHONGXING SOFTWARE Co Ltd filed Critical TIANJIN ZHONGXING SOFTWARE Co Ltd
Priority to CN2010105595227A priority Critical patent/CN102479361A/en
Publication of CN102479361A publication Critical patent/CN102479361A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a terminal of non-contact smart cards and a method for removing abnormal conditions of the terminal of non-contact smart cards, which includes steps of setting and/or backing up wallet information of the smart cards and setting the trading states of wallets into trading initial states when in the consumption initializing process of the terminal; updating the trading states of the wallets gradually during trading process of the terminal and recording trading of the wallets; recovering the normal trading or stopping the abnormal trading according to the trading states when the terminal or the smart cards are abnormal in trading. When the terminal or the smart cards are abnormal, the terminal can begin handling from the steps indicated according to the trading states and then recover corresponding data, so that trading can be continued after abnormal conditions are removed.

Description

A kind of to the unusual method of contact type intelligent card processing
Technical field
The present invention relates to the applying in radio frequency identification technical field, relate in particular to the terminal of contact type intelligent card and handle unusual method.
Background technology
Present consumption smart card has a variety of, and radio-frequency SIM card (RFSIM) is arranged, and is the mobile phone intelligent card of wireless near field communication in can realizing; Contactless CPU card is arranged, and is a kind of contactless IC-card, can realize short-range communication, or the like.In addition; Also have a kind of contactless logic encryption card, the difference of it and smart card is: in smart card, have microprocessor (MPU owing to there is one; Micro-Processor Unit) integrated circuit; So except having bigger memory capacity, also possess certain data processing capability, it is higher to use safety of data; And contactless logic encryption card only has data storage function, does not possess data-handling capacity, and its security is prone to be cracked, just because its cost is lower, so still do not substituted by smart card fully at present.
Along with the development of technology of Internet of things, the application scenarios of REID becomes increasingly complex, for example with application of IC cards in all kinds of consumption, various intelligent cards will progressively substitute original contactless logic encryption card.Simultaneously, in order to satisfy various consumption demands, the situation of combination wallet in a sheet smart card sheet has appearred; For example in enterprise; The wallet that is used for dining room consumption in employee's the smart card has two, and one is to be used to deposit the subsidy that enterprise provided in every month, and one is to be used to deposit individual recharge amount etc.In addition, also have the situation that multiple wallet is arranged in the sheet smart card, for example be used for the mass transit card of transit riding consumption, simultaneously can be in some supermarkets purchase and consumption etc.In patent 200910092488.4, once mentioned the application problem that smart card is set up many wallets, but this patent is only to tell about how to expand many wallets from the angle of smart card.
In real world applications, the mode that the common utilization smart card of people is consumed has two kinds, and a kind of is on-line transaction, and another kind then is an offline transaction.Wherein, The accounts information of on-line transaction is to be stored in background server; The user is the unique identification (card number of smart card) through smart card when concluding the business; Confirm the accounts information on its background server, so the terminal need not to be equipped with consumption safety access module (PSAM, Purchase Secure Access Module); The accounts information of offline transaction is to be stored in the smart card, so just need on the terminal, be equipped with PSAM, is used for the data of transaction are carried out safety certification, and is as shown in Figure 1.Because the terminal need not as on-line transaction, frequently to carry out alternately with background server in carrying out process of exchange, so the range of application of offline transaction consumption is more more wide than on-line transaction.
As can be seen from Figure 1; Smart card and terminal communicate through eating dishes without rice or wine, because transaction relates to the reimbursement of expense problem, so; Safety certification need be carried out to data through PSAM in the terminal in process of exchange, and all data of transaction at last can be through Network Transmission to background server.
Contact type intelligent card may run into following problem in carrying out transaction communications process:
The first, in process of consumption, terminal works is normal, but smart card may leave the induction zone at terminal unusually;
At this moment, the terminal notifies the user that smart card is put back on the induction zone at terminal again, treats that the terminal searches this smart card again; And confirm as be just employed smart card after, obtain the second required message authentication code of verification msg (MAC2, MessageAuthentication Code 2) information through the smart card verification command of PSAM from smart card; With the legitimacy of checking transaction, if MAC2 Information Authentication success explains that transaction takes place; Promptly corresponding fund is detained in the accounts information of smart card; This moment, the terminal was in the database of this recording storage to the terminal, and PSAM will generate new transaction journal number, accomplish and conclude the business.
The second, in process of consumption, the terminal may sudden power;
At this moment, if the mode of leaving the induction zone at terminal unusually according to above-mentioned smart card prevents pulling out processing, then can't be through the checking of PSAM, reason is that the initialization information of former PSAM is lost when having cut off the power supply at the terminal.And not only current transaction can't confirm, makes up purse transaction simultaneously and also can't confirm to which in step.
At this, the terminal is prevented pulling out processing and is meant when the transaction abnormal ending in process of exchange, occurring, guarantees the conforming way of concluding the business.The consistance of transaction is meant that the processing through the terminal makes that the Transaction Information on the smart card is consistent with the Transaction Information on the background server.
In patent CN01130114.7 and patent CN200510025030.9; Described the anti-disposal route of pulling out of contactless logic encryption card, but still can't solve the above-mentioned root problem of concluding the business and can't proceed of occurring causing unusually at process of exchange owing to there is following problem in it:
(1) these two patents are described all is the anti-disposal route or the data reconstruction method of pulling out of contactless logic encryption card; Rather than the anti-disposal route of pulling out of smart card or radio-frequency SIM card; Because the difference of the structure of two types of cards is so the former processing mode can not be transplanted to the latter.
(2) these two patents are only told about is that contactless logical encrypt cacaine is rocked the processing that the transaction that caused behind the induction region that shifts out the terminal is carried out unusually, and do not comprise for the terminal unusual under the electrifying condition and at the terminal unusual anti-during sudden power pull out processing.
(3) these two patents are not all mentioned the anti-disposal route of pulling out that a sheet smart card has the terminal of many wallet consumption.
This shows, the terminal of existing contact type intelligent card and handle unusual method and need improve, make its can be directed against smart card, terminal carry out unusually anti-ly accordingly pull out processing, and can be adapted to easily in the terminal of the many purse transactions of a card.
Summary of the invention
Technical matters to be solved by this invention provide a kind of to contact type intelligent card the terminal and handle unusual method, what can be directed against smart card, terminal prevents pulling out processing unusually.
In order to solve the problems of the technologies described above, the invention provides a kind of unusual method of terminal processes to contact type intelligent card, comprising:
The terminal is provided with and/or backs up the wallet information of said smart card when the initialization process of consuming, and it is initial to be set to transaction to the stateful transaction of major general's wallet;
The stateful transaction of wallet is progressively upgraded at the terminal in carrying out process of exchange, and carries out the transaction record of wallet; If in process of exchange, the terminal occurs or smart card is unusual, then recover to conclude the business normally or stop unusual transaction according to stateful transaction.
Further; Through the wallet information in a tree form data structure setting and/or the backup intelligence card, the root node of this tree structure is the wallet type, and following node is followed successively by one or more wallet types; One or n wallet under each wallet type, wherein n is the integer greater than 1; Wallet information in the said smart card also comprises in said wallet type, wallet serial number, smart card required wallet number, total dealing money and the smartcard identification information one or more except that the stateful transaction of said wallet.
Further, the terminal is carried out process of exchange and is comprised:
After stateful transaction is set to the transaction beginning, sends transaction request to smart card, and after this smart card security checking is passed through, receive the transaction response that this smart card returns;
Second message authentication code (MAC2) information transmission that to conclude the business among the result of response in the terminal is given consumption safety access module (PSAM), and the legal checking result of transaction who returns according to this PSAM is updated to transaction with the stateful transaction of wallet and accomplishes.
Further; The terminal occurs in process of exchange under the situation of induction zone that smart card leaves the terminal unusually, search this smart card again after, read and verify the legitimacy of MAC 2 information wherein through PSAM; Legally think that then transaction accomplishes, generate new transaction record; Otherwise think that transaction does not take place,, then reexchange to other wallet if further judge other wallet that has in the smart card in the combination wallet.
Further, the terminal the unusual of outage occur and powering in said process of exchange after, read the stateful transaction of the wallet of backup; If judging transaction accomplishes; Then according to transaction record if judging this wallet is in during transaction carries out, then prompting is reentered into this smart card in the said induction region, accomplishes if continue to judge the current transaction of this wallet; Then the unusual record of store transaction stops the transaction of follow-up wallet simultaneously; There is the combination purse transaction if judge smart card, then stores the completed transaction record of other wallet of smart card, for other wallet of incomplete transaction initialized processing of then reexchanging.
In order to solve the problems of the technologies described above, the invention provides a kind of terminal to contact type intelligent card, comprise that transaction initiation module, DBM, transaction carry out module and abnormality processing module, wherein:
The transaction initiation module is used for when the initialization process of consuming, and with the wallet information setting of smart card and/or backup in the DBM, it is initial wherein to be set to transaction to the stateful transaction of major general's wallet, carries out module output transaction order to transaction;
DBM, the wallet information that is used to store the smart card that is provided with and/or backs up;
Module is carried out in transaction, and be used for concluding the business, and in carrying out process of exchange, progressively upgrade the stateful transaction of wallet according to the transaction order of transaction initiation module output, and the transaction record that carries out wallet;
The abnormality processing module is used for the terminal occurring or said smart card is unusual at process of exchange, then recovers to conclude the business normally or stop unusual transaction according to stateful transaction.
Further,
The transaction initiation module is through the wallet information in a tree form data structure setting and/or the backup intelligence card; Root node in tree structure is the wallet type; Following node is followed successively by one or more wallet types; One or n wallet under each wallet type, wherein n is the integer greater than 1; Wallet information in the smart card also comprises in wallet type, wallet serial number, smart card required wallet number, total dealing money and the smartcard identification information one or more except that the stateful transaction of wallet.
Further, transaction is carried out module and is contained consumption safety access module (PSAM), wherein:
Transaction is carried out after the module stateful transaction is set to transaction beginning; Send transaction request to smart card; And this smart card carried out after safety verification passes through, second message authentication code (MAC2) information among the result of the transaction response that smart card is returned is through the conclude the business checking of legitimacy of this PSAM, the checking result legal according to the transaction of this PSAM; The consumption status of the wallet of storing in the change DBM is accomplished for consumption, and generates new transaction record.
Further, the abnormality processing module comprises first exception processing unit, wherein:
First exception processing unit is used to handle said smart card and leaves the unusual of terminal induction district, indicates said transaction to carry out module and carries out non-outage abnormality processing;
The indication of module according to the non-outage abnormality processing of first exception processing unit carried out in transaction, after searching this smart card again, reads and verify the legitimacy of MAC2 information wherein through PSAM, legally thinks that then transaction accomplishes, and generates new transaction record; Do not conform to rule and think that transaction does not take place,, then reexchange to this wallet if further judge other wallet that has in the smart card in the combination wallet.
Further, the abnormality processing module also comprises second exception processing unit, wherein:
Second exception processing unit; Being used for carrying out module in said transaction takes place to cut off the power supply unusually and the stateful transaction information of the wallet that the reading of data library module backs up after powering on again; If judging transaction accomplishes; Then judging according to transaction record whether current wallet is in transaction and carries out, is then to indicate transaction to carry out module to carry out the first outage abnormality processing; Have the combination purse transaction if judge smart card, then the indication transaction is carried out module and is carried out the second outage abnormality processing;
The indication of module according to the first outage abnormality processing carried out in transaction, and prompting is reentered into smart card in the induction region, continues to judge whether the current transaction of this wallet is accomplished, and is the unusual record of store transaction then, stops the transaction of follow-up wallet simultaneously; And/or according to the indication of the second outage abnormality processing, storage other wallet of smart card completed transaction record is for the initialized processing of then reexchanging of other wallet of incomplete transaction.
Of the present invention to contact type intelligent card the terminal and handle unusual method; Carry out the data necessary backup during to intelligent card initialization through consumption terminal; Comprise total charge, the smartcard identification information such as (such as smart card serial number) of the wallet number of stateful transaction, wallet type, needs, current wallet serial number, each transaction, and in process of exchange, revise stateful transaction and corresponding data thereof step by step; Thus, make the terminal can begin to handle after unusual unusual terminal or smart card occurring, and recover corresponding data, thereby make transaction to go in unusual removal continued from the step shown in the stateful transaction.
Description of drawings
Fig. 1 is the system architecture synoptic diagram of existing application of IC cards in the offline transaction of consumption;
Fig. 2 is the data structure embodiment synoptic diagram that the present invention is used for the smart card information storage of the many wallets of a card;
Fig. 3 is the embodiment process flow diagram of method of commerce of the present invention;
Fig. 4 is the anti-disposal route embodiment flow process of pulling out that does not have outage of the present invention;
Fig. 5 is the anti-disposal route embodiment flow process of pulling out after outage of the present invention re-powers;
Fig. 6 is the structural representation that the present invention is directed to the terminal embodiment of contact type intelligent card.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment technical scheme of the present invention is at length set forth.The embodiment that below gives an example only is used for explanation and explains the present invention, and does not constitute the restriction to technical scheme of the present invention.
As shown in Figure 2, be an embodiment of data structure who is used for the smart card wallet information stores of the many wallets of a card provided by the invention, it is a tree structure.Wherein, one or more concrete wallet types can be arranged under the wallet type node, for example be the wallet Class1 of characteristics, be the wallet type 2 of characteristics with the consumption number of times with the consumption amount of money; Under the node of wallet Class1, can comprise one or more wallets again, No. 1 wallet that for example is the main body, with No. 2 wallets of enterprise's consumption subsidy with enterprise's consumption, or the like.Certainly, except adopting tree structure, the present invention can also adopt figure shape structure or reticulate texture etc. to the data structure of wallet information stores.
As shown in Figure 3, for the smart card that is applied to the many wallets of a card provided by the invention carries out the embodiment flow process of transaction method, comprise the steps:
201,202: terminating machine sends the initialization requests of transaction to wallet on the smart card to smart card, and waits for the initialization response that smart card returns;
203,204: if the initialization response result that smart card returns is that this wallet balances deficiency or remaining sum are expired; And this card can be in many wallets consumption condition (being under a wallet type node a plurality of branches to be arranged in the tree structure shown in Figure 2); Then other wallet of this card is also sent the initialization requests of transaction to smart card; And verify according to the initialization response result that smart card is returned, confirm whether this smart card can carry out many wallets consumption in combination.
The present invention in time prevents pulling out processing in order to make the terminal after smart card or terminal appearance unusually, propose to carry out data backup, and it is the requisite link of consistance that guarantees data.And back up which data, and when back up, then directly affect the processing time at terminal.
The present invention adopts tree structure as shown in Figure 2 in the management to the wallet in the smart card, this structure improves terminal processes under the prerequisite in the space that can save the storage data time.Need be in this tree form data structure backed up data as shown in table 1 below.
The Backup Data of table 1 smart card
Stateful transaction The wallet type The wallet number Current wallet serial number The transaction total charge Smartcard identification
1 byte 1 byte 1 byte 2 bytes 4 bytes 6 bytes
At first marquis when initialized is being consumed at the terminal; The stateful transaction, wallet type, the wallet number that needs of wallet in the smart card, the information such as total charge, smartcard identification (for example the application sequence through smart card number realize) of concluding the business at every turn can be set; Wherein, stateful transaction is set to transaction initially.Stateful transaction can progressively be revised in the terminal in process of exchange, so that the terminal begins to handle from the step shown in the stateful transaction after occurring unusually, and according to information such as Backup Data recovery wallet serial number, wallet number and transaction total charges.
205,206: process of consumption begins, and at first terminating machine sends initialization requests to PSAM, in the initialization response that returns, carries the needed authorization information MAC1 of transaction by PSAM;
207~209: terminating machine sends transaction request to smart card, and after smart card security checking passed through, smart card returned the transaction response;
To wallet type, the wallet serial number of smart card, information such as the wallet number that needs, total dealing money and smartcard identification have been carried out the initialization setting in the terminating machine step in front; Before sending transaction request to smart card, need elder generation's stateful transaction to be set to the transaction beginning, send transaction request then.
210,211: the MAC2 that terminating machine is concluded the business smart card in the response results is transferred to PSAM, receives the checking result of the transaction legitimacy of PSAM subsequently, and terminating machine then is updated to transaction with stateful transaction and accomplishes.
Transaction can be at first under the determined wallet type branch that minimum wallet of sequence number begin, perhaps opposite, perhaps the wallet from any sequence number begins.
Respond generation before unusually if return transaction at above-mentioned steps 209 smart cards, the present invention takes place to cut off the power supply these two types unusually according to induction zone or the terminating machine that smart card leaves terminating machine, carries out preventing pulling out as follows processing respectively:
(1) terminal cuts off the power supply, and it is anti-, and to pull out the method embodiment flow process of processing as shown in Figure 4, comprises the steps:
301: terminating machine is searched smart card always, and till seeking former card, perhaps the operator shuts the book by force;
302,303: read former smart card MAC2 information, and the legitimacy of checking MAC2 information, legal then execution in step 304, otherwise execution in step 305;
304: transaction is accomplished, and generates new transaction record, process ends;
305~307: transaction does not take place, and further judges in the smart card whether be No. 2 wallets in the combination wallet this moment, is then to reexchange to this wallet, otherwise process ends.
(2) terminal cuts off the power supply, and it is anti-, and to pull out the method embodiment flow process of processing as shown in Figure 5, comprises the steps:
401: re-power after the terminating machine outage, at first read backup file;
From backup file, obtain backup information, its content is as shown in table 1.
402: according to the stateful transaction in the backup file that reads, judging whether transaction is accomplished, is execution in step 403 then, otherwise process ends;
403: accomplished the judgement anti-processing of pulling out of need cutting off the power supply according to transaction;
404~406: judge wallet according to transaction record and whether be in during transaction carries out; If this wallet is to be in transaction to carry out; Then pointing out smart card is reentered in the induction region, judge further whether the current transaction of this wallet is accomplished in the smart card, is the unusual record of store transaction then; Stop the transaction of follow-up wallet simultaneously, otherwise process ends.
Terminating machine judges whether the current transaction of this wallet is accomplished in the smart card, is the wallet of confirming current use according to current wallet type, and reads the authorization information MAC2 of this record in the smart card through serial number.If authorization information reads success; Explain that then smart card deducts fees; And the transaction record of record in should blocking and terminating machine is inconsistent, and this moment is not because the outage of terminating machine keeps the initialization information among the former PSAM, so can't this transaction be verified; Thereby can't generate new transaction journal number, then terminating machine prompting transaction is unusual.If this wallet be not in transaction carry out in (promptly not having transaction record), prompting transaction takes place, and process ends.
407~410: if there is the combination purse transaction, then store the completed transaction record of other wallet of smart card (n-1, n is the integer greater than 1), for the initialized processing of then reexchanging of other wallet of incomplete transaction, particularly:
407: under the situation that judge to have the combination purse transaction, be in during transaction carries out if continue to judge next wallet (for example No. two wallets);
408: continue judging whether this transaction is accomplished, is execution in step 409 then, otherwise execution in step 410;
409: store unusual transaction record, process ends;
410: to this wallet initialization operation of reexchanging, process ends.
Other No. three wallets ... but (n-1) the processing repeating step 407~410 of individual wallet.
The present invention is directed to said method embodiment; A kind of terminal embodiment of contact type intelligent card is correspondingly also proposed; Its structure is as shown in Figure 6; Module 530 and abnormality processing module 550 are carried out in the transaction that this terminal 500 comprises transaction initiation module 510, DBM 520, contain PSAM, wherein:
Transaction initiation module 510; Be used for when the initialization process of consuming; With the wallet information setting of smart card and/or backup in the DBM 520, it is initial wherein to be set to transaction to the stateful transaction of major general's wallet, carries out module 530 output transaction orders to transaction;
Transaction initiation module 510 can be confirmed the required information such as wallet number, total dealing money and smartcard identification of purse transaction state, wallet type, wallet serial number, smart card of this smart card according to a tree form data structure (or other data structure) of the wallet information of smart card, and is as shown in table 1.
DBM 520 is used to store the above-mentioned backup information of smart card;
Module 530 is carried out in transaction, and be used for concluding the business, and in carrying out process of exchange, progressively upgrade the stateful transaction of said wallet according to the transaction order of transaction initiation module 510 outputs, and the transaction record that carries out wallet;
Transaction is carried out after module 530 stateful transactions are set to transaction beginning; Send transaction request to smart card; And smart card carried out after safety verification passes through, the MAC2 in the transaction response that smart card is returned is through the conclude the business checking of legitimacy of PSAM, the legal checking result of transaction who returns according to PSAM; The consumption status of the wallet of the storage in the change DBM 520 is accomplished for consumption, and generates new transaction record.
Abnormality processing module 540 is used for carrying out module 530 in monitoring transaction and carries out process of exchange and smart card or terminal occur and cut off the power supply when unusual, carries out the anti-accordingly processing of pulling out according to the stateful transaction of the current wallet of smart card that reads from DBM 520.
Abnormality processing module 540 comprises first exception processing unit 5401 and/or second exception processing unit 5402, wherein:
First exception processing unit 5401 is used to handle smart card and leaves the unusual of terminal induction district, i.e. indication transaction is carried out module 530 and carried out non-outage abnormality processing;
Second exception processing unit 5402; Being used to handle transaction carries out module 530 and pulls out processing in that unusual anti-of outage taken place; The stateful transaction of smart card Backup Data in the reading of data library module 520 after promptly powering on; Accomplishing if judge transaction, then judge according to transaction record whether current wallet is in during transaction carries out, is then to indicate transaction to carry out module 530 to carry out first abnormality processing of cutting off the power supply; Have the combination purse transaction if judge smart card, then the indication transaction is carried out module 530 and is carried out the second outage abnormality processing;
The indication of module 530 according to the non-outage abnormality processing of first exception processing unit 5401 carried out in transaction; After searching former smart card again; Read and verify the legitimacy of MAC2 information wherein through PSAM, legally think that then transaction accomplishes, generate new transaction record; Do not conform to rule and think that transaction does not take place,, then reexchange to this wallet if further judge other wallet that has in the smart card in the combination wallet.
The indication of module 530 according to the first outage abnormality processing of second exception processing unit 5402 carried out in transaction; Prompting is reentered into smart card in the induction region; Continuing to judge whether the current transaction of this wallet is accomplished, is the unusual record of store transaction then, stops the transaction of follow-up wallet simultaneously; According to the indication of the second outage abnormality processing of second exception processing unit 5402, storage other wallet of smart card completed transaction record is for the initialized processing of then reexchanging of other wallet of incomplete transaction.
The present invention carries out the data necessary backup during to intelligent card initialization through consumption terminal; Comprise total charge, the smartcard identification information such as (such as smart card serial number) of the wallet number of stateful transaction, wallet type, needs, current wallet serial number, each transaction, and in process of exchange, revise stateful transaction and corresponding data thereof step by step; Make the terminal after occurring unusually, can begin to handle thus, and recover corresponding data, thereby make transaction to go in the unusual continued of removing from the step shown in the stateful transaction.
The appended embodiment of this instructions is some exemplary that embody the present invention's design, does not get rid of and uses other embodiment that embody design proposal of the present invention.Under the situation that does not deviate from spirit of the present invention and essence thereof, those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (5)

1. unusual method of terminal processes to contact type intelligent card comprises:
Said terminal is provided with and/or backs up the wallet information of said smart card when the initialization process of consuming, and it is initial to be set to transaction to the stateful transaction of major general's wallet;
The stateful transaction of said wallet is progressively upgraded at said terminal in carrying out process of exchange, and carries out the transaction record of wallet; If said terminal of appearance or said smart card are unusual in said process of exchange, then recover to conclude the business normally or stop unusual transaction according to said stateful transaction.
2. according to the described method of claim 1; It is characterized in that; Through a tree form data structure setting and/or back up the wallet information in the said smart card, the root node of said tree structure is the wallet type, and following node is followed successively by one or more wallet types; One or n wallet under each wallet type, wherein n is the integer greater than 1; Wallet information in the said smart card also comprises in said wallet type, wallet serial number, smart card required wallet number, total dealing money and the smartcard identification information one or more except that the stateful transaction of said wallet.
3. according to claim 1 or 2 described methods, it is characterized in that said terminal is carried out process of exchange and comprised:
After said stateful transaction is set to the transaction beginning, sends transaction request to said smart card, and after this smart card security checking is passed through, receive the transaction response that this smart card returns;
Consumption safety access module (PSAM) is given with second message authentication code (MAC2) information transmission among the result of said transaction response in said terminal, and the legal checking result of transaction who returns according to said PSAM is updated to transaction with the stateful transaction of wallet and accomplishes.
4. according to the described method of claim 3; It is characterized in that; Said terminal occurs in said process of exchange under the situation of induction zone that said smart card leaves said terminal unusually, search this smart card again after, read and verify the legitimacy of said MAC 2 information wherein through said PSAM; Legally think that then transaction accomplishes, generate new transaction record; Otherwise think that transaction does not take place,, then reexchange to said other wallet if further judge other wallet that has in the smart card in the combination wallet.
5. according to the described method of claim 3, it is characterized in that, said terminal the unusual of outage occur and powering in said process of exchange after; Read the stateful transaction of the said wallet of backup, accomplish, then be in during transaction carries out if judge this wallet according to transaction record if judge transaction; Then prompting is reentered into this smart card in the said induction region; If continuing to judge the current transaction of this wallet accomplishes, then the unusual record of store transaction stops the transaction of follow-up other wallet simultaneously then; There is the combination purse transaction if judge smart card, then stores the completed transaction record of other wallet of said smart card, for other wallet of incomplete transaction initialized processing of then reexchanging.
CN2010105595227A 2010-11-23 2010-11-23 Method for removing abnormal conditions of terminals of non-contact smart cards Pending CN102479361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105595227A CN102479361A (en) 2010-11-23 2010-11-23 Method for removing abnormal conditions of terminals of non-contact smart cards

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105595227A CN102479361A (en) 2010-11-23 2010-11-23 Method for removing abnormal conditions of terminals of non-contact smart cards

Publications (1)

Publication Number Publication Date
CN102479361A true CN102479361A (en) 2012-05-30

Family

ID=46091996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105595227A Pending CN102479361A (en) 2010-11-23 2010-11-23 Method for removing abnormal conditions of terminals of non-contact smart cards

Country Status (1)

Country Link
CN (1) CN102479361A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107004189A (en) * 2014-09-22 2017-08-01 万事达卡国际股份有限公司 Payment system and the method used for managing payment card
CN114756440A (en) * 2022-03-31 2022-07-15 星汉智能科技股份有限公司 Data writing method, device and equipment of smart card and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107004189A (en) * 2014-09-22 2017-08-01 万事达卡国际股份有限公司 Payment system and the method used for managing payment card
US11455612B2 (en) 2014-09-22 2022-09-27 Mastercard International Incorporated Payment systems and methods for managing payment card use
CN114756440A (en) * 2022-03-31 2022-07-15 星汉智能科技股份有限公司 Data writing method, device and equipment of smart card and storage medium
CN114756440B (en) * 2022-03-31 2023-04-18 星汉智能科技股份有限公司 Data writing method, device and equipment of smart card and storage medium

Similar Documents

Publication Publication Date Title
CN101807320A (en) Terminal aiming at non-contact intelligent card and method thereof for processing abnormality
US8469277B2 (en) Methods, systems and computer program products for wireless payment transactions
EP1076875B1 (en) Methods and apparatus for dynamic smartcard synchronization and personalization
US10133773B2 (en) Methods and systems for indirectly retrieving account data from data storage devices
CN102376134B (en) Point of sale (POS) machine, POS machine card-punching system and card-punching transaction method thereof
CN103810597B (en) mobile device, payment transaction system and payment transaction method
CN102044114B (en) Method for consuming electronic wallet
CN101894337A (en) Method, system and related device for processing network transaction of intelligent value card
CN100587740C (en) Tax-control data declaration, checking treatment method of network tax-control system
CN101872454A (en) Sales terminal transaction processing method, equipment and mobile terminal transaction processing method
CN106296178A (en) Method of payment based on NFC and device
US8571938B2 (en) Updating dynamic information within an intelligent controller utilizing a smart card
CN111311360A (en) Resource return method and device, storage medium and electronic device
WO2001084474A2 (en) Stored electronic value method for smart cards
CN102479361A (en) Method for removing abnormal conditions of terminals of non-contact smart cards
CN108876388A (en) A kind of identity identifying method, device and terminal device
JP4692446B2 (en) Electronic money system and control method thereof
CN1845184B (en) Intelligent key apparatus with electronic purse function
CN104778527A (en) Novel membership card management system
CN1845183B (en) Intelligent key apparatus with debit/credit function
CN103309758B (en) A kind of mthods, systems and devices blocking application and download
CN108038403A (en) A kind of card reading method and client based on NFC technique
TWM618366U (en) Online transaction system and bank server
CN104978653A (en) Method and system for carrying out verification and ticket collection through payment equipment
CN108292400A (en) It updates the method and system of contact type intelligent card and executes the computer-readable medium of the method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120530