[go: up one dir, main page]

CN101819695B - Method for realizing synchronization of IC card/purse transaction and system accounting - Google Patents

Method for realizing synchronization of IC card/purse transaction and system accounting Download PDF

Info

Publication number
CN101819695B
CN101819695B CN2009102425132A CN200910242513A CN101819695B CN 101819695 B CN101819695 B CN 101819695B CN 2009102425132 A CN2009102425132 A CN 2009102425132A CN 200910242513 A CN200910242513 A CN 200910242513A CN 101819695 B CN101819695 B CN 101819695B
Authority
CN
China
Prior art keywords
card
money
transaction
client
record
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.)
Active
Application number
CN2009102425132A
Other languages
Chinese (zh)
Other versions
CN101819695A (en
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 Huada Zhibao Electronic System Co Ltd
Original Assignee
Beijing Huada Zhibao Electronic System 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 Huada Zhibao Electronic System Co Ltd filed Critical Beijing Huada Zhibao Electronic System Co Ltd
Priority to CN2009102425132A priority Critical patent/CN101819695B/en
Publication of CN101819695A publication Critical patent/CN101819695A/en
Application granted granted Critical
Publication of CN101819695B publication Critical patent/CN101819695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a method for realizing synchronization of IC card/purse transaction and system accounting, and mainly relates to the field of IC card application. The main technical scheme of the invention comprises prepaid record reading and over-the-counter verification. The method mainly comprises the steps of organizing data messages M1, generating identifiers of transaction tracks, sending identifying codes, earmarking and updating the backend database, and the like. Compared with the prior art, the invention has a positive and obvious effect, and has the advantages of providing a method for realizing synchronization of the IC card/purse transaction and the system accounting, which provides a positive reference for the IC card application departments, guarantees the smooth operation of the IC card application system, promotes the popularization and application of the IC card, and makes contribution to the integrated development of industrialization and information.

Description

A kind of IC-card purse transaction and synchronous method of system accounting of realizing
Technical field
The present invention relates to the IC-card application, relate in particular to a kind of IC-card purse transaction and synchronous method of system accounting of realizing of design.
Background technology
Current, owing to characteristics such as IC-card are convenient for carrying, data storage is safe and reliable, IC-card is used more and more universal, such as second generation resident identification card, fiscard, Bus Card card, social security card, grease card or the like.
The main composition of IC-card application system is: hardware includes: professional site computing machine (client), IC-card read write line, IC-card, the network facilities, application system backstage and database (backstage), key calculation equipment (encryption equipment) etc.; Software and function have: professional site client application software, mainly accomplish basic information management such as the IC-card user opens an account, IC-card purse transaction (as supplement with money, consumption etc.), cancellation is reported the loss, blocked to card; Business datum is inquired about, is gathered, statistics, report printing etc.
Application system backstage main processing is from the IC-card transaction request and the loopback result of client; As information inquiring request, IC-card wallet supplement with money, the key calculation of consumption etc. and checking etc.; And carry out respective record at background data base and handle, as x x month x day No. 12345 cards supplement 100 yuan etc. with money.
For aforesaid IC-card application system based on client/server (C/S) framework; In carrying out user's IC-card wallet operation (as supplementing with money) process, guarantee IC-card wallet and application system backstage account synchronously (index according to conforming synchronously, be not the processing time synchronously) renewal is most important; Say on the reason and not allow any difference; But the actual mostly performance in the IC-card system that moves is unsatisfactory, and most common failure is: user's IC-card Transaction Success; But because network failure or other reasons cause the but not success of operation of background update database; Cause the IC-card wallet that variation has taken place, but system's backstage account does not but have corresponding change, this mainly is because due to the defective that exists on the client entire I C card transaction operating process design implementation method.
If client software has a Bug again; Such as: user's IC-card carry out the 1st circle deposit transaction success but because network failure causes the backstage account to upgrade under the situation of failure, the failure of system prompt transaction Job Operations; Again click [beginning transaction] button, if the 2nd transaction operating process all completes successfully, then will produce: user's IC-card circle has been deposited the recharge amount of twice; Background data base has but write down one and has supplemented record with money; But the recharge amount of record remains the amount of money of input in advance, has filled twice like user's IC-card, and promptly so-called IC-card is supplemented double phenomenon with money.
This phenomenon of the failure once came across most IC-card application system in a large number, like social security card system, grease card system etc., had caused extra business processing work, had both increased the project operation maintenance cost, also can cause bad impression to the user.
Summary of the invention
The object of the invention is to propose a kind of IC-card purse transaction and synchronous method of system accounting of realizing.By the IC-card application system that this method realizes, greatly improved the reliability of system, for ensureing the even running of IC-card application system, promoting the IC-card popularization and application that useful reference is provided.
The technical scheme that the present invention adopts is following:
1.1 dot client begins to supplement with money;
1.2 read the transaction details record in user's IC-card, judge whether a up-to-date notes record is to supplement record with money:
If not supplement record with money, then change over to next step 1.3;
If supplement record with money, then extract this recharge amount, supplement the time with money, the current card wallet amount of money, supply operating personnel to examine, continue to supplement with money like needs, then change next step over to and 1.3 continue operation;
As being just to have supplemented with money and do not needed really to supplement with money again, then abandon supplementing with money operation through examining;
1.3 groups of clients organization data message M1 and trade date and time send to the application system backstage through network, said data message M1 comprises: sequence number, key and algorithm information, pseudo random number, authentication of message sign indicating number MAC1 conclude the business in wallet balances, the current card in the current card;
1.4 application system backstage maintenance data message M1 and trade date calculate authentication of message sign indicating number MAC2 by encryption equipment, and return to client through network;
1.5 client as data source, to its computing of making a summary, obtains transaction track sign with transaction sequence number four association in wallet balances, the current card in user's IC card numbers, system's current date, the current card;
1.6 client is organized into new message M2 with the current time in system with the authentication of message sign indicating number MAC2 that receives, sends circle to user's IC-card and deposits instruction;
1.7 user's IC-card is carried out circle and is deposited instruction, if circle is deposited successfully, then returns transaction verification sign indicating number TAC and success status, otherwise, return error condition;
1.8 client is handled according to user's IC-card return state as follows:
If 1.8.1 error condition, then Client-Prompt is supplemented failure with money;
If 1.8.2 success status; Then tissue comprise transaction track sign, user's IC card numbers, fill preceding remaining sum, recharge amount, supplement the time with money, fill the back amount of money, client number node, terminating machine numbering, operation serial number formation transaction record; Earlier transaction record is kept in this machine of client, upgrades the application system background data base through network then;
1.9 if the update processing success is returned on the backstage, then the instant deletion of client is kept at the transaction record in this machine, and the prompting successful recharging; If the backstage is returned update processing and failed, then client is sent IC-card and is write success, and background data base upgrades the prompting of failure, and continues to carry out renewal transaction record step.
In the technique scheme, the renewal transaction record step in the said step 1.9 is that the transaction record that is kept in this machine of client is sent to the application system backstage once more, upgrades the application system background data base.
In the technique scheme, said data message M1 is the instruction that has key information, the amount of money that will supplement with money, terminating machine numbering data through sending to user's IC-card, and user's IC-card spreads out of after carrying out corresponding operating.
In the technique scheme, in the said step 1.3, after abandoning supplementing operation with money, can continue to change over to " inquiry consistency operation ", if the backstage have above-mentioned point out supplement record with money, then finish the process of supplementing with money; If the backstage do not have above-mentioned point out supplement record with money, " upgrading the transaction record step " in the execution in step 1.9 then.
The present invention and prior art contrast; Effect is actively with tangible; It is advantageous that a kind of IC-card purse transaction and synchronous method of system accounting of realizing that propose; For vast IC-card application department provides positive reference, thereby ensure the even running of IC-card application system, promote the IC-card popularization and application, for industrialization and information-based fusion development make a due contribution.
Description of drawings
Shown in Figure 1 is the process flow diagram that the inventive method realizes.
Embodiment
In order to ensure realizing that IC-card purse transaction and system accounting are synchronous, guarantee card, account balance, the application has provided a fairly perfect design of transaction operating process and an implementation method.The application is an example with IC-card wallet recharging payment, and other that relate to require IC-card and the synchronous operation of system accounting, and flow process realizes identical.
1.1 operation dot client application software is selected [supplementing with money] function; The input recharge amount is as 100 yuan; User's IC-card is inserted the IC-card read write line; Click [beginning to supplement with money] button;
1.2 read the transaction details record in user's IC-card, judge whether a up-to-date notes record is to supplement record with money:
If not supplement record with money, then change over to next step 1.3;
If supplement record with money, then extract this recharge amount, supplement the time with money, the current card wallet amount of money, supply operating personnel to examine, continue to supplement with money like needs, then change next step over to and 1.3 continue operation;
As being just to have supplemented with money and do not needed really to supplement with money again, then abandon supplementing with money operation through examining;
In this step, can also further do following design: after promptly abandoning supplementing operation with money, can continue to change over to " inquiry consistency operation ", if the backstage have above-mentioned point out supplement record with money, then finish the process of supplementing with money; If the backstage do not have above-mentioned point out supplement record with money, " upgrading the transaction record step " in the execution in step 1.9 then.
1.3 groups of clients organization data message M1 and trade date and time send to the application system backstage through network, said message data M1 comprises: sequence number, key and algorithm information, pseudo random number, authentication of message sign indicating number MAC1 conclude the business in wallet balances, the current card in the current card; Said data message M1 is the instruction that has key information, the amount of money that will supplement with money, terminating machine numbering data through sending to user's IC-card, and user's IC-card spreads out of after carrying out corresponding operating.
1.4 application system backstage utilization message M1 and trade date calculate authentication of message sign indicating number MAC2 by encryption equipment, and return to client through network;
1.5 client as data source, to its computing of making a summary, obtains transaction track sign with transaction sequence number four association in wallet balances, the current card in user's IC card numbers, system's current date, the current card;
1.6 client is organized into new message M2 with the current time in system with the authentication of message sign indicating number MAC2 that receives, sends circle to user's IC-card and deposits instruction;
1.7 user's IC-card is carried out circle and is deposited instruction, if circle is deposited successfully, then returns transaction verification sign indicating number TAC and success status, otherwise, return error condition;
1.8 client is handled according to user's IC-card return state as follows:
If 1.8.1 error condition, then Client-Prompt is supplemented failure with money;
If 1.8.2 success status; Then tissue comprise transaction track sign, user's IC card numbers, fill preceding remaining sum, recharge amount, supplement the time with money, fill the back amount of money, client number node, terminating machine numbering, operation serial number formation transaction record; Earlier transaction record is kept in this machine of client, upgrades the application system background data base through network then;
1.9 if the update processing success is returned on the backstage, then the instant deletion of client is kept at the transaction record in this machine, and the prompting successful recharging; If the update processing failure is returned on the backstage; Then client is sent IC-card and is write success, and background data base upgrades the prompting of failure, and continues to carry out renewal transaction record step; The transaction record that is about to be kept in this machine of client sends to the application system backstage once more, upgrades the application system background data base.
The function of above-mentioned renewal transaction record can be independent of in design supplements function with money, can conveniently handle the synchronous needs that delay of network temporary fault initiation like this.
The application is an example with IC-card wallet recharging payment, and other that relate to require IC-card and the synchronous operation of system accounting, and flow process realizes identical.

Claims (4)

1. realize IC-card purse transaction and the synchronous method of system accounting for one kind, it is characterized in that said method comprises the steps:
1.1 dot client begins to supplement with money;
1.2 read the transaction details record in user's IC-card, judge whether a up-to-date notes record is to supplement record with money:
If not supplement record with money, then change over to next step 1.3;
If supplement record with money, then extract this recharge amount, supplement the time with money, the current card wallet amount of money, supply operating personnel to examine, continue to supplement with money like needs, then change next step over to and 1.3 continue operation;
As being just to have supplemented with money and do not needed really to supplement with money again, then abandon supplementing with money operation through examining;
1.3 groups of clients organization data message M1 and trade date and time send to the application system backstage through network, said data message M1 comprises: sequence number, key and algorithm information, pseudo random number, authentication of message sign indicating number MAC1 conclude the business in wallet balances, the current card in the current card;
1.4 application system backstage maintenance data message M1 and trade date calculate authentication of message sign indicating number MAC2 by encryption equipment, and return to client through network;
1.5 client as data source, to its computing of making a summary, obtains transaction track sign with transaction sequence number four association in wallet balances, the current card in user's IC card numbers, system's current date, the current card;
1.6 client is organized into new message M2 with the current time in system with the authentication of message sign indicating number MAC2 that receives, sends circle to user's IC-card and deposits instruction;
1.7 user's IC-card is carried out circle and is deposited instruction, if circle is deposited successfully, then returns transaction verification sign indicating number TAC and success status, otherwise, return error condition;
1.8 client is handled according to user's IC-card return state as follows:
If 1.8.1 error condition, then Client-Prompt is supplemented failure with money;
If 1.8.2 success status; Then tissue comprise transaction track sign, user's IC card numbers, fill preceding remaining sum, recharge amount, supplement the time with money, fill the back amount of money, client number node, terminating machine numbering, operation serial number formation transaction record; Earlier transaction record is kept in this machine of client, upgrades the application system background data base through network then;
1.9 if the update processing success is returned on the backstage, then the instant deletion of client is kept at the transaction record in this machine, and the prompting successful recharging; If the backstage is returned update processing and failed, then client is sent IC-card and is write success, and background data base upgrades the prompting of failure, and continues to carry out renewal transaction record step.
2. a kind of IC-card purse transaction and synchronous method of system accounting of realizing according to claim 1; It is characterized in that: said renewal transaction record step is that the transaction record that is kept in this machine of client is sent to the application system backstage once more, upgrades the application system background data base.
3. a kind of IC-card purse transaction and synchronous method of system accounting of realizing according to claim 1; It is characterized in that: said data message M1 is the instruction that has key information, the amount of money that will supplement with money, terminating machine numbering data through sending to user's IC-card, and user's IC-card spreads out of after carrying out corresponding operating.
4. a kind of IC-card purse transaction and synchronous method of system accounting of realizing according to claim 1 and 2; It is characterized in that: in the said step 1.3; After abandoning supplementing operation with money; Can continue to change over to " inquiry consistency operation ", if the backstage have above-mentioned point out supplement record with money, then finish the process of supplementing with money; If the backstage do not have above-mentioned point out supplement record with money, " upgrading the transaction record step " in the execution in step 1.9 then.
CN2009102425132A 2009-12-15 2009-12-15 Method for realizing synchronization of IC card/purse transaction and system accounting Active CN101819695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102425132A CN101819695B (en) 2009-12-15 2009-12-15 Method for realizing synchronization of IC card/purse transaction and system accounting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102425132A CN101819695B (en) 2009-12-15 2009-12-15 Method for realizing synchronization of IC card/purse transaction and system accounting

Publications (2)

Publication Number Publication Date
CN101819695A CN101819695A (en) 2010-09-01
CN101819695B true CN101819695B (en) 2012-01-25

Family

ID=42654782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102425132A Active CN101819695B (en) 2009-12-15 2009-12-15 Method for realizing synchronization of IC card/purse transaction and system accounting

Country Status (1)

Country Link
CN (1) CN101819695B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129745A (en) * 2010-10-25 2011-07-20 上海复展照明科技有限公司 Charging method and system for rechargeable card and application method and management system for rechargeable card
KR20140045497A (en) * 2011-06-09 2014-04-16 엑셀스 테크놀로지스 (2009), 엘티디. A transaction system and method for use with a mobile device
CN102289772A (en) * 2011-08-02 2011-12-21 南京联创科技集团股份有限公司 Method for automatically clearing account of card in integration mode
CN103559577A (en) * 2013-11-04 2014-02-05 广西天涌节能科技股份有限公司 Top-up data analysis system
CN106980889A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 Analogy method, device and the analogue means of non-contact IC card
CN112667650B (en) * 2020-12-28 2024-05-28 北京华大智宝电子系统有限公司 Database updating method and device
CN116228225B (en) * 2023-05-09 2023-07-14 万联易达物流科技有限公司 Matching method and system for automatic matching wallet by online recharging

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1575003A8 (en) * 2004-03-10 2005-11-02 Proton World International N.V. Updating a value counter of an IC card
CN1811834A (en) * 2004-05-05 2006-08-02 法国无线电话公司 Method for recharging a subscription card using wireless equipment
CN1938725A (en) * 2004-04-01 2007-03-28 松下电器产业株式会社 Ticket management system, terminal device, ticket management server, register device, value conversion method, computer program, and recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1575003A8 (en) * 2004-03-10 2005-11-02 Proton World International N.V. Updating a value counter of an IC card
CN1938725A (en) * 2004-04-01 2007-03-28 松下电器产业株式会社 Ticket management system, terminal device, ticket management server, register device, value conversion method, computer program, and recording medium
CN1811834A (en) * 2004-05-05 2006-08-02 法国无线电话公司 Method for recharging a subscription card using wireless equipment

Also Published As

Publication number Publication date
CN101819695A (en) 2010-09-01

Similar Documents

Publication Publication Date Title
CN101819695B (en) Method for realizing synchronization of IC card/purse transaction and system accounting
KR101848896B1 (en) Prepaid electricity sales and power usage method using block chain
CN103247085B (en) A kind of muzzle-loading online publishing system of ETC vehicle carried electronic label and method
CN102693168B (en) A method, a system and a service node for data backup recovery
CN109726229A (en) A kind of block chain date storage method and device
CN203386245U (en) Electronic toll collection (ETC) on board unit on-line issuing system combining mobile terminal
EP3779760B1 (en) Blockchain-based data processing method and apparatus, and electronic device
CN106372994A (en) Method and system for processing orders
CN101261701A (en) Score settlement system and method for track transportation tick business
CN110910230A (en) Accounting method, accounting system and storage medium
CN110084655B (en) Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN100498854C (en) Tax control collector and its collecting method
CN111340639A (en) Settlement data processing method and device
CN107146124A (en) A kind of implementation method, system and the device of electronics one-way ticket
CN102857529A (en) Offline application system based on timestamp
CN109961359A (en) A kind of fund management method and capital management platform
CN110276614A (en) The update method and device of ledger
CN102819809B (en) A kind of acquisition method of tax-control data and system
CN106327192B (en) Payment method and system realized based on cloud server and payment server
CN112750043B (en) Service data pushing method, device and server
CN110417917A (en) Method, system, computer equipment and medium for bill circulation
CN103473850A (en) Offline loading method and system
CN203386246U (en) Electronic toll collection (ETC) vehicle-mounted electronic label on-line issuing system
CN113318452A (en) Resource updating method and device, computer readable medium and electronic equipment
CN106204263A (en) Transaction progress control method and device

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