CN103578207B - A kind of data processing method, device, system and relevant device - Google Patents

A kind of data processing method, device, system and relevant device Download PDF

Info

Publication number
CN103578207B
CN103578207B CN201210254773.3A CN201210254773A CN103578207B CN 103578207 B CN103578207 B CN 103578207B CN 201210254773 A CN201210254773 A CN 201210254773A CN 103578207 B CN103578207 B CN 103578207B
Authority
CN
China
Prior art keywords
data
empty
pos terminal
request
bulk
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
CN201210254773.3A
Other languages
Chinese (zh)
Other versions
CN103578207A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201210254773.3A priority Critical patent/CN103578207B/en
Publication of CN103578207A publication Critical patent/CN103578207A/en
Application granted granted Critical
Publication of CN103578207B publication Critical patent/CN103578207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of data processing method, device, system and relevant device, in order in electronic cash account closing process, process electronic cash account balance, ensures the safety of electronic cash account.The data processing method that the embodiment of the present invention provides, comprising: receive the first data that POS terminal sends and empty request, described first data empty in request and carry unification user mark, and described unification user is designated that described POS terminal obtains from smart card; Data mode corresponding for described unification user mark is revised as and treats empty; Data flush instructions is sent to described POS terminal; When the data that described POS terminal returns if receive empty result, empty result according to described data and judge that data empty whether success; If so, data bulk corresponding to local that store, described unification user mark is emptied; If not, data mode corresponding for described unification user mark is revised as normal condition.

Description

A kind of data processing method, device, system and relevant device
Technical field
The present invention relates to mobile payment technical field, particularly relate to a kind of data processing method, device, system and relevant device.
Background technology
Electronic cash account is a kind of financial IC card application related to for convenience of the on-the-spot small amount consumption of holder, the functions such as its supports to supplement with money, consume, inquiry into balance and transaction detail query.
Along with wireless near field communication (NFC,) development of technology and mobile payment technology and technological incorporation, financial IC card can be the smart card possessing non-contact function, such as, USIM(universal subscriber identity module in mobile terminal) block and SIM(user identification module) card, the mobile terminal being built-in with non-contact function smart card is called NFC terminal.
After user opens electronic cash account, before using electronic cash account off-line consumption, needing by other accounts is that electronic cash account is supplemented with money, when trade company's disposal environment allows, user can choice for use electronic cash account consume fast, without the need to authentication password, spending amount is directly deducted from the electronic cash account balance that mobile terminal the core of the card sheet records.If during user log off electronic cash account, its electronic cash account balance needs to turn back in the account for using during electronic cash account charging.
At present, prior art not yet provides solution to the account used when how electronic cash account balance being turned back to electronic cash account charging, the data stored in electronic cash account are caused to there is certain security risks, therefore, in electronic cash account closing process, how to process electronic cash account balance, ensure the safety of electronic cash account, become one of technical matters urgently to be resolved hurrily in prior art.
Summary of the invention
The embodiment of the present invention provides a kind of data processing method, device, system and relevant device, and in order in electronic cash account closing process, process electronic cash account balance, ensures the safety of electronic cash account.
The embodiment of the present invention provides a kind of data processing method, comprising:
Receive the first data that POS terminal sends and empty request, described first data empty in request and carry unification user mark, and described unification user is designated that described POS terminal obtains from smart card;
Data mode corresponding for described unification user mark is revised as and treats empty;
Data flush instructions is sent to described POS terminal;
When the data that described POS terminal returns if receive empty result, empty result according to described data and judge that data empty whether success;
If so, data bulk corresponding to local that store, described unification user mark is emptied;
If not, data mode corresponding for described unification user mark is revised as normal condition.
The embodiment of the present invention provides a kind of data processing equipment, comprising:
Receiving element, the first data sent for receiving POS terminal empty request, described first data empty in request and carry unification user mark, and described unification user is designated that described POS terminal obtains from smart card;
Amendment unit, treats empty for data mode corresponding for described unification user mark being revised as; And when the judged result of the first judging unit is no, data mode corresponding for described unification user mark is revised as normal condition.
Transmitting element, for sending data flush instructions to described POS terminal;
First judging unit, if when the data returned for receiving described POS terminal emptying result, emptying result according to described data and judging whether data empty successful;
Emptying unit, when the judged result of the first judging unit is for being, emptying the data bulk that local that store, described unification user mark is corresponding.
The embodiment of the present invention provides a kind of network side server, comprises above-mentioned data processing equipment.
The embodiment of the present invention provides another data processing method, comprising:
Obtain the unification user mark of smart card and data bulk to be emptied;
Send data to network side server and empty request, described data empty in request the unification user mark and data bulk to be emptied that carry acquisition;
Receive the data flush instructions that described network side server sends;
Described data flush instructions is forwarded to described smart card; And
When the data that described smart card returns if receive empty result, forward described data to described network side server and empty result.
The embodiment of the present invention provides another data processing equipment, comprising:
Acquiring unit, for obtaining the unification user mark of smart card and data bulk to be emptied;
Transmitting element, empties request for sending data to network side server, and described data empty in request the unification user mark and data bulk to be emptied that carry acquisition;
Receiving element, for receiving the data flush instructions that described network side server sends;
Retransmission unit, for forwarding described data flush instructions to described smart card; And if receive data that described smart card returns when emptying result, forward described data to described network side server and empty result.
The embodiment of the present invention provides a kind of POS terminal, comprises above-mentioned data processing equipment.
The embodiment of the present invention provides a kind of data handling system, comprises smart card, POS terminal and network side server, wherein:
Described POS terminal, for when carrying out data and emptying, obtains unification user mark and first data volume to be emptied of described smart card; And send the first data to network side server and empty request, described first data empty in request the unification user mark and the first data volume to be transferred that carry acquisition; And receive the data flush instructions that described network side server issues after receiving described first data and emptying request, carry in described flush instructions and empty script; And forward described data flush instructions to smart card; And if receive data that described smart card returns when emptying result, forward described data to described network side server and empty result;
Described smart card, for providing self unification user mark and the first data volume to be emptied to described POS terminal; And after the data flush instructions receiving the forwarding of described POS terminal, empty the data of self, and empty result to described POS terminal return data;
Described network side server, after emptying request in the first data receiving the transmission of described POS terminal, is revised as data mode corresponding for described unification user mark and treats empty; And send data flush instructions to described POS terminal; And if receive data that described POS terminal returns when emptying result, empty result according to described data and judge that data empty whether success; If so, data bulk corresponding to local that store, described unification user mark is emptied; If not, data mode corresponding for described unification user mark is revised as normal condition.
The data processing method that the embodiment of the present invention provides, the data that network side server receives POS terminal transmission empty request, empty in request in these data and carry unification user mark, this unification user is designated that POS terminal obtains from smart card, the data mode of its correspondence to be revised as according to this unification user mark by network side server treats empty, and send data flush instructions to POS terminal, and according to POS terminal return data empty result and judge that data empty whether success, if success, then empty local to store, the data bulk that this unification user mark is corresponding, if failure, data mode corresponding for this unification user mark is revised as normal condition.By said process, achieve the process treated and empty data, simultaneously, due to the change of data mode in network side server record data cleanup process, when data empty unsuccessfully, data mode to be emptied is reverted to normally, thus ensure that the security in data handling procedure.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Fig. 1 is in the embodiment of the present invention, the implementing procedure schematic diagram of webserver side implementation data disposal route;
Fig. 2 is in the embodiment of the present invention, the implementing procedure schematic diagram of POS terminal side implementation data disposal route;
Fig. 3 is in the embodiment of the present invention, electronic cash account closing schematic flow sheet;
Fig. 4 is in the embodiment of the present invention, flow chart of data processing schematic diagram when data processing is abnormal;
Fig. 5 is in the embodiment of the present invention, and smart card electronic cash account balance is not 0, and the electronic cash account status of network side server record is for when the empty, flow chart of data processing schematic diagram;
Fig. 6 is in the embodiment of the present invention, and smart card electronic cash account balance is 0, and the electronic cash account status of network side server record is for when the empty, flow chart of data processing schematic diagram;
Fig. 7 is in the embodiment of the present invention, and smart card electronic cash account balance is 0, and when the electronic cash account status of network side server record is transfering state, flow chart of data processing schematic diagram;
Fig. 8 is in the embodiment of the present invention, and smart card electronic cash account balance is 0, and when the electronic cash account status of network side server record is exit state, flow chart of data processing schematic diagram;
Fig. 9 is in the embodiment of the present invention, the structural representation of network side data treating apparatus;
Figure 10 is in the embodiment of the present invention, the structural representation of terminal side data treating apparatus;
Figure 11 is in the embodiment of the present invention, the structural representation of data handling system.
Embodiment
The embodiment of the present invention provides a kind of data processing method, and in order in electronic cash account closing process, process electronic cash account balance, ensures electronic cash account safety.
Below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein is only for instruction and explanation of the present invention, be not intended to limit the present invention, and when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
The smart card related in the embodiment of the present invention can be paste card, also can be the card being embedded in NFC terminal, can also be the various ways such as Standard Bank card, certainly be not limited to above several form, every can the card of carry data information all passable.
Embodiment one
As shown in Figure 1, be the implementing procedure schematic diagram of webserver side implementation data disposal route, comprise the following steps:
The first data that S101, network side server receive the transmission of POS terminal (point of sale) terminal empty request;
During concrete enforcement, the first data empty in request and carry unification user mark, and this unification user is designated that POS terminal obtains from smart card.
Data mode corresponding for this unification user mark is revised as by S102, network side server treats empty;
S103, network side server send data flush instructions to POS terminal;
During concrete enforcement, network side server is after receiving data and emptying request, and assembling empties script, and in the data flush instructions returned to POS terminal, carries this empty script.
If S104 receives data that POS terminal returns when emptying result, empty result according to these data and judge that data empty whether success, if so, perform step S105, otherwise, perform step S106;
S105, network side server empty local that store, that this unification user mark is corresponding data bulk;
Data mode corresponding for this unification user mark is revised as normal condition by S106, network side server.
During concrete enforcement, the first data that network side server receives empty in request to carry and need to empty data bulk, and this data bulk to be emptied is that POS terminal obtains from smart card.
During concrete enforcement, in order to solve due to reasons such as network delays, cause network side server in certain hour section to receive described data that POS terminal returns empty the problem that result causes processing bottleneck, network side server according to the feedback of POS terminal, can process according to following two kinds of modes:
The second data that mode one, network side server receive POS terminal transmission empty request
Wherein, empty in request in these data and carry unification user mark and the second data bulk to be emptied, this second data bulk to be emptied is that POS terminal obtains again from smart card.In this situation, network side server can process in such a way: network side server obtains the data mode of this unification user mark correspondence of local record; If the second data bulk to be emptied is non-vanishing and the unification user of local record identifies corresponding data mode for treating empty, again send data flush instructions to POS terminal; If the second data bulk to be emptied is zero and unification user identifies corresponding data mode for treating empty, empty local data bulk that store, unification user mark correspondence.
The data that mode two, network side server receive POS terminal transmission empty the request of cancelling
In this case, data mode corresponding for this unification user mark can be revised as normal condition by network side server.
During concrete enforcement, network side server is after complete data null clear operation, concrete, local to store can be emptied at network side server, after the data volume that this unification user mark is corresponding, need with third-party server mutual, carry out data transfer operation.Wherein, data transfer operation can comprise the following steps:
Step 1, network side server send data transfer request to third-party server;
Carry unification user mark and data bulk to be transferred in this data transfer request, wherein, data bulk to be transferred is identical with described first data bulk to be emptied.
Data mode corresponding for this unification user mark is revised as transfering state by step 2, network side server;
The data batchmove success message that step 3, network side server reception third-party server returns or data batchmove failed message;
If step 4 receives data batchmove success message, data mode corresponding for this unification user mark is revised as exit state by network side server, and shifts successful confirmation message to POS terminal return data;
If step 5 receives data batchmove failure, to the acknowledge message that the transfer of POS terminal return data is failed.
During concrete enforcement, if data batchmove failure, network side can also send data transfer request to third-party server again, and after the failure of data batchmove again, then to the failed acknowledge message of POS terminal return data transfer.
During concrete enforcement, if POS terminal is when specifying in duration the acknowledge message not receiving data batchmove success that network side server returns or data batchmove failure, in order to ensure the security of data processing, in the embodiment of the present invention, network side server can have following two kinds of processing modes according to the feedback of POS terminal:
The 3rd data that mode one network side server receives POS terminal transmission empty request
Wherein, empty in request in the 3rd data and carry unification user mark and the 3rd data bulk to be emptied, treat that the 3rd data bulk to be emptied is POS terminal in appointment duration, when not receiving data batchmove success or failed acknowledge message, again obtain to smart card.In this case, network side server can process in such a way: that network side server obtains local record, that this unification user mark is corresponding data mode, if the 3rd data bulk to be emptied is zero and the current data state of local record is exit state, to the confirmation message that the transfer of POS terminal return data is successful; If the 3rd data bulk to be emptied is zero and the current data state of local record is transfering state, judge that whether data batchmove is successful; When judged result is for being, data mode corresponding for the described unification user mark of local record is revised as exit state; When judged result is no, sends data recovery request to third-party server, in this data recovery request, carry the first data bulk to be emptied; After receiving date restoring success message, again send data transfer request to third-party server, wherein, date restoring success message is that described third-party server sends after emptying data bulk and recovering data according to first.
The data that mode two network side server receives POS terminal transmission empty the request of cancelling
In this case, network side server can process according to following steps:
Step 1, network side server judge that whether data batchmove is successful, when judged result is for being, perform step 2, otherwise perform step 4;
Step 2, network side server send data recovery request to third-party server;
During concrete enforcement, in data recovery request, carry the first data bulk to be emptied.
Step 3, network side server are after receiving the date restoring success message that described third-party server returns, and data mode corresponding for described unification user mark is revised as normal condition, and flow process terminates;
Wherein, date restoring success message is send after described third-party server recovers data according to the first data volume to be emptied.
Step 4, data mode corresponding for described unification user mark is revised as normal condition.
Embodiment two
Embodiment two describes in data handling procedure, the implementing procedure schematic diagram of POS terminal side data disposal route, as shown in Figure 2, can comprise the following steps:
S201, POS terminal obtain the unification user mark of smart card and data bulk to be emptied;
S202, POS terminal send data to network side server and empty request;
Wherein, the unification user mark and data bulk to be emptied that carry acquisition is emptied in request in the data sent;
S203, POS terminal receive the data flush instructions that network side server sends;
During concrete enforcement, carry in this data flush instructions and empty script.
S204, POS terminal forward this data flush instructions to smart card;
During concrete enforcement, smart card, after receiving data flush instructions, empties the data self stored, and empties result to POS terminal return data.
If S205 POS terminal receives these data when emptying result, forward these data to network side server and empty result.
During concrete enforcement, network side server is after the data receiving POS terminal transmission empty result, if empty result determination data according to these data to empty successful words, data transfer request will be sent to third-party server, and after data batchmove flow process completes, shift successfully or failed acknowledge message to POS terminal return data.
During concrete enforcement, in above process, POS terminal does not likely receive data that smart card returns and empties result or do not receive the data batchmove success or failed acknowledge message that network side server sends specifying in duration, now, POS terminal can point out user the need of again carrying out data null clear operation, if user selects no, POS terminal obtains the data bulk of smart card again, if the data bulk obtained is zero, then can direct process ends; If the data bulk obtained is non-vanishing, sends data to network side server and empty the request of cancelling; If when user selects to be, POS terminal needs again to resend data to network side server and empties request.
Embodiment three
In order to understand the embodiment of the present invention better, below with in electronic cash wallet cancellation process, the method processed the remaining sum in electronic cash account is example, is described the embodiment of the present invention.In practical application, for the needs to flow chart of data processing, between POS terminal and network side server, also there is the front-end system (POSP, POS terminal Proxy) of a POS terminal.In the embodiment of the present invention, POSP does not process the data received, and just forwards.
As shown in Figure 3, in electronic cash account closing process, the remaining sum in electronic cash account carries out the implementing procedure schematic diagram processed, and comprises the following steps:
The cancellation application of S301, POS terminal accepted user;
During concrete enforcement, when user needs to nullify electronic cash account, can propose cancellation application, salesman can the cancellation application of accepted user in POS terminal.
S302, POS terminal read smart card information;
User is by smart card near POS terminal, and POS terminal reads smart card information and comprises joint name card card number and electronic cash account balance, and wherein joint name card card number is the unified card number of user's credit account, debit account and electronic cash account.
S303, smart card return card number and electronic cash account balance;
S304, POS terminal will send data to POSP and empty request;
Wherein, the card number and electronic cash account balance that carry acquisition is emptied in request in data.
S305, POSP empty request to network side server forwarding data;
S306, network side server carry out authentication to electronic cash account, and when authentication is passed through, electronic cash account are revised as and treat empty, and assemble clear 0 script of remaining sum;
During concrete enforcement, if authentication is not passed through, the response message of failed authentication will be returned to POS terminal by POSP.
S307, network side server send data flush instructions to POSP;
0 script is clearly carried in this data flush instructions.
S308, POSP forward this data flush instructions to POS terminal;
S309, POS terminal forward this data flush instructions to smart card;
S310, smart card return data empty response message;
Wherein, it both can be that data empty successful message that data empty response message, also can be that data empty failure, during concrete enforcement, smart card, after receiving data flush instructions, empties the remaining sum in electronic cash account, if empty successfully, then empty successful message to POS terminal return data, otherwise return data empties failure.
S311, POS terminal send data to POSP and empty result;
S312, POSP empty result to network side server forwarding data;
S313, network side server according to data empty result determination data empty successfully time, continue to perform step S314, otherwise electronic cash account status is revised as normal condition by network side server;
Remaining sum in the electronic cash account that S314, network side server deduction stores self;
By this step, the remaining sum in the electronic cash account self stored empties by network side server.
S315, network side server send data transfer request to third-party server;
Concrete, network side server carries card number and remaining sum in this data transfer request;
S316, third party's service by balance transfer under credit account corresponding to this card number;
S317, third-party server are to network side server return data transfer result;
If the success of S318 data batchmove, electronic cash account status is revised as exit state by network side server;
S319, network side server are to POSP return data transfer result;
S320, POSP are to POS terminal forwarding data transfer result;
S321, POS terminal display data batchmove result.
Embodiment four
In concrete enforcement, due to reasons such as network qualities, in the process that data empty with data batchmove, likely there is the situation of data processing exception, such as, when step S308, step S309, step S310 and step S320 etc. occur abnormal, will cause POS terminal specifying in duration and cannot respond, and then cause cannot normal process electronic cash account closing application.In order to solve this problem, can process in the following ways in the embodiment of the present invention: when POS terminal does not respond for a long time, user can be pointed out whether again to carry out data empty and data transfer operation, following two kinds of situations can be had according to the selection of user, as shown in Figure 4, for flow chart of data processing schematic diagram during data processing exception, normal processing steps shown in Fig. 4 comprises step S320 and data processing step before, i.e. step S401 ~ step S420 is identical with step S301 ~ step S302, repeats no more here.
Again whether S421, prompting user initiation data empty and data transfer operation;
According to the selection of user, following two kinds of situations can be had:
One, user selects is namely re-start data and empty and data transfer operation
In this case, as shown in Figure 4, lower two steps can also be comprised:
Step 1, printing failure Trouble ticket;
Step 2, again initiation data null clear operation.
Two, user selects no, namely no longer carries out data and empties and data transfer operation
In this case, as shown in Figure 4, can also comprise the following steps:
Step 1, printing failure Trouble ticket;
Step 2, POS terminal read smart card electronic cash account balance;
Step 3, smart card return electron cash account balance;
Step 4, POS terminal judge whether remaining sum is 0, if be 0, then and can direct process ends; If be not 0, perform step 5;
Step 5, POS terminal send data to POSP and empty the request of cancelling;
Step 6, POSP forward these data to network side server and empty the request of cancelling;
Electronic cash account status is revised as normal condition by step 7, network side server;
Step 8, network side server send electronic cash account balance acknowledge message to third-party server;
If step 9 third-party server confirms to carry out data transfer operation, then recover the remaining sum of electronic cash account and credit account respectively;
Step 10, third-party server return confirmation result to network side server;
Step 11, network side server return confirmation result to POSP;
Step 12, POSP forward and confirm that result is to POS terminal.
During concrete enforcement, if user selects, namely when initiation data empty with data transfer operation again, owing to carrying out data and data transfer operation first before, may cause smart card electronic cash account balance and network side server electronic cash account balance inconsistent, simultaneously, also multiple possibility may be there is in the electronic cash account status of network side server record, such as, 1) if step S308 and step S309 occurs that the abnormal POS terminal time-out that causes is without when responding, because smart card does not receive data flush instructions, thus, smart card electronic cash account balance is not 0, the electronic cash account status of network side server record is for treating empty, 2) if step S310 occurs that the abnormal POS terminal time-out that causes is without when responding, receive data flush instructions due to NFC and emptied the electronic cash account balance self stored, now, smart card electronic cash account balance is 0, and the electronic cash account status of network side server record is for treating empty, 3) if step S315 ~ step S317 is arbitrary walk out of existing exception, cause network side server cannot shift result to POS terminal return data, and then cause POS terminal time-out without response, now, smart card electronic cash account balance is 0, and the electronic cash account status of network side server record is for treating empty, 4) if step S320 occurs that the abnormal POS terminal time-out that causes is without when responding, receive data flush instructions due to NFC and emptied the electronic cash account balance self stored, and network side server sends data transfer request to third-party server, now, smart card electronic cash account balance is 0, and the electronic cash account status of network side server record is exit state,
Based on this, in the embodiment of the present invention, again initiate data and empty and data transfer operation, can process according to the electronic cash account status of smart card electronic cash account balance and network side server record, introduce it respectively below.
Embodiment five
One, smart card electronic cash account balance is not 0, and the electronic cash account status of network side server record is for treating empty (step S308 or step S309 occurs abnormal)
In this case, can again initiate data null clear operation and data transfer operation, as shown in Figure 5, for it implements schematic flow sheet, can comprise the following steps:
The cancellation application of S501, POS terminal accepted user;
S502, POS terminal read smart card information;
S503, smart card return card number and electronic cash account balance;
S504, POS terminal will send data to POSP and empty request;
S505, POSP empty request to network side server forwarding data;
S506, network side server determination smart card electronic cash account balance be not 0 and self store electronic cash account status for treating empty;
Clear 0 script of S507, network side server assembling remaining sum;
Because the enforcement of step S508 ~ step S522 is identical with step S307 ~ step S321, repeat no more here.
Embodiment six
Two, NFC electronic cash account balance is 0, and the electronic cash account status of network side server record is for treating empty (step S310 occurs abnormal)
In this case, illustrate that smart card electronic cash account balance empties, just POS terminal receives data and empties result time-out, now, network side server only need deduct the local electronic cash account balance stored, and continues follow-up data transfer operation step (step S315 ~ step S321), as shown in Figure 6, for it implements schematic flow sheet, can comprise the following steps:
The cancellation application of S601, POS terminal accepted user;
S602, POS terminal read smart card information;
S603, smart card return card number and electronic cash account balance;
S604, POS terminal will send data to POSP and empty request;
S605, POSP empty request to network side server forwarding data;
S606, network side server determination smart card electronic cash account balance be 0 and self store electronic cash account status for treating empty;
Remaining sum in the electronic cash account that S607, network side server deduction stores self;
During concrete enforcement, due to step S608 ~ step S614 enforcement and step S315 ~ step S321 is identical, repeat no more here.
Embodiment seven
Three, NFC electronic cash account balance is 0, and the electronic cash account status of network side server record is transfering state (step S315 ~ step S317 occurs abnormal)
In this case, illustrate that smart card electronic cash account empties, data batchmove flow process occurs abnormal, now, first network side server will judge that whether data batchmove is successful, if data batchmove success, the electronic cash account status of local record directly can be revised as exit state by network side server, and continues to perform step S319 ~ step S321; If data batchmove failure, first network side server sends data recovery request to third-party server at needs, carries the first data bulk to be emptied in this data recovery request; After receiving date restoring success message, again data transfer request is sent to third-party server, wherein, date restoring success message is that third-party server sends after emptying data bulk and recovering data according to first, as shown in Figure 7, for it implements schematic flow sheet, can comprise the following steps:
The cancellation application of S701, POS terminal accepted user;
S702, POS terminal read smart card information;
S703, smart card return card number and electronic cash account balance;
S704, POS terminal will send data to POSP and empty request;
S705, POSP empty request to network side server forwarding data;
S706, network side server determination smart card electronic cash account balance be 0 and self store electronic cash account status be transfering state;
S707, network side server judge that whether data batchmove is successful;
Wherein, when balance transfer is unsuccessful, perform step S708 ~ step S716:
S708, network side server send data recovery request to third-party server;
The first data bulk to be emptied is carried in this data recovery request.
S709, third-party server are successfully recovered result to network side server return data;
Wherein, third-party server recovers data according to the first data bulk to be emptied.
During concrete enforcement, due to step S710 ~ step S716 enforcement and step S315 ~ step S321 is identical, repeat no more here.
When balance transfer success, perform step S717 ~ step S720:
Electronic cash account status is revised as exit state by S717, network side server;
S718, network side server are to POSP return data transfer result;
S719, POSP are to POS terminal forwarding data transfer result;
S720, POS terminal display data batchmove result.
Embodiment eight
Four, NFC electronic cash account balance is 0, and the electronic cash account status of network side server record is exit state (step S320 occurs abnormal)
In this case, data batchmove success is described, network side server shifts successful confirmation message directly to POS terminal return data, as shown in Figure 8, is the implementing procedure schematic diagram that it is concrete, can comprises the following steps:
The cancellation application of S801, POS terminal accepted user;
S802, POS terminal read smart card information;
S803, smart card return card number and electronic cash account balance;
S804, POS terminal will send data to POSP and empty request;
S805, POSP empty request to network side server forwarding data;
S806, network side server determination smart card electronic cash account balance be 0 and self store electronic cash account status be exit state;
S807, network side server are to POSP return data transfer result;
S808, POSP are to POS terminal forwarding data transfer result;
S809, POS terminal display data batchmove result.
It should be noted that, the process of above-mentioned four kinds of situations is owing to being all again initiate data to empty and data transfer operation, therefore, step S301 shown in Fig. 3 ~ step S305 all needs to perform in the treatment scheme of above-mentioned various situation, just performs different operations at follow-up treatment step separately according to the electronic cash account status of smart card electronic closing balance and network side server record.
Based on same inventive concept, a kind of network side data treating apparatus, terminal side data treating apparatus, data handling system and relevant device is additionally provided in the embodiment of the present invention, the principle of dealing with problems due to said apparatus, equipment and system is similar to data processing method, therefore the enforcement of said apparatus, equipment and system see the enforcement of method, can repeat part and repeats no more.
Embodiment nine
As shown in Figure 9, be the structural representation of the network side data treating apparatus that the embodiment of the present invention provides, comprise:
Receiving element 901, the first data sent for receiving point of sale POS terminal empty request, and described first data empty in request and carry unification user mark, and described unification user is designated that described POS terminal obtains from smart card;
Amendment unit 902, treats empty for data mode corresponding for described unification user mark being revised as; And when the judged result of the first judging unit is no, data mode corresponding for described unification user mark is revised as normal condition.
Transmitting element 903, for sending data flush instructions to described POS terminal;
First judging unit 904, if when the data returned for receiving described POS terminal emptying result, emptying result according to described data and judging whether data empty successful;
Emptying unit 905, when the judged result of the first judging unit is for being, emptying the data bulk that local that store, described unification user mark is corresponding.
Wherein, the first data empty in request and also carry the first data bulk to be emptied, and described first data bulk to be emptied is that described POS terminal obtains from smart card; And
Above-mentioned data processing equipment, can also comprise acquiring unit, wherein:
Receiving element 901, if when the described data also returned for not receiving described POS terminal empty result, the second data receiving the transmission of described POS terminal empty request, described second data empty in request and carry described unification user mark and the second data bulk to be emptied, and described second data bulk to be emptied is that described POS terminal obtains again from smart card;
Acquiring unit, the data mode that the described unification user mark for obtaining local record is corresponding;
Transmitting element 903, if also non-vanishing for described second data bulk to be emptied and the data mode that described unification user mark is corresponding, for treating empty, sends data flush instructions to described POS terminal again;
Empty unit 905, if be also zero for described second data bulk to be emptied and data mode corresponding to described unification user mark for treating empty, empty the data bulk that local that store, described unification user mark is corresponding.
During concrete enforcement, receiving element 901, if the described data also returned for not receiving described POS terminal empty result, the data receiving the transmission of described POS terminal empty the request of cancelling;
Amendment unit 902, also for data mode corresponding for described unification user mark is revised as normal condition.
During concrete enforcement, transmitting element 903, also for after emptying unit 905 and emptying data bulk corresponding to local that store, described unification user mark, data transfer request is sent to third-party server, carry described unification user mark and data bulk to be transferred in this data transfer request, this data bulk to be transferred is identical with described first data bulk to be emptied; And if data batchmove is successful, to the confirmation message that described POS terminal return data transfer is successful; If data batchmove failure, to the acknowledge message that the transfer of POS terminal return data is failed;
Amendment unit 902, also for when emptying local that store, that this unification user mark is corresponding data bulk, is revised as transfering state by data mode corresponding for this unification user mark; And if data batchmove is successful, data mode corresponding for this unification user mark is revised as exit state;
Receiving element 901, also for receiving the data batchmove success message and data batchmove failed message that third-party server returns.
During concrete enforcement, network side data treating apparatus, can also comprise the second judging unit, wherein:
Receiving element 901, the 3rd data sent for receiving POS terminal empty request, 3rd data empty in request and carry described unification user mark and the 3rd data bulk to be emptied, and it is that POS terminal sends when not receiving data batchmove success or failed acknowledge message that the 3rd data empty request;
Acquiring unit, also for obtaining the data mode of this unification user mark correspondence of local record;
Transmitting element 903, if be also zero for the 3rd data bulk to be emptied and the current data state of local record is exit state, to the confirmation message that the transfer of POS terminal return data is successful; And when the judged result of the second judging unit is no, sends data recovery request to third-party server, in this data recovery request, carry the first data bulk to be emptied; And after receiving date restoring success message, again send data transfer request to third-party server, wherein, data recovery request success message is that described third-party server sends after emptying data bulk and recovering data according to described first;
Second judging unit, if be also zero for the 3rd data bulk to be emptied and the current data state of local record is transfering state, judges data batchmove whether success;
Amendment unit 902, also for when the judged result of the second judging unit is for being, is revised as exit state by data mode corresponding for this unification user of local record mark.
During concrete enforcement, the network side data treating apparatus that the embodiment of the present invention provides can also comprise the 3rd judging unit, wherein:
Receiving element 901, the data also sent for receiving POS terminal empty the request of cancelling, and it is that POS terminal sends when not receiving data batchmove success or failed acknowledge message that these data empty the request cancelled;
3rd judging unit, also for judging that whether data batchmove is successful;
Transmitting element 903, also for when the judged result of the 3rd judging unit is for being, sending data recovery request to third-party server, carrying the first data volume to be emptied in this data recovery request;
Amendment unit 902, also for after receiving the date restoring success message that third-party server returns or when the judged result of the 3rd judging unit is no, data mode corresponding for unification user mark is revised as normal condition, and date restoring success message is send after third-party server recovers data according to described first data volume to be emptied.
During concrete enforcement, the network side data treating apparatus that the embodiment of the present invention provides can be arranged in network side server.It should be noted that, the network side server related in the embodiment of the present invention, except comprising said units module, can also comprise following functions module: payment processes module, for realizing remote payment management function and on-site payment management function; Payment management module, for realizing user management and trade company's management function; Account management module, for realizing main account, electronic cash account and electronic cash account account management function; Reconciliation clearance module, clears function for realizing with third-party server reconciliation; Also should comprise preposition module, such as access gateway, payment gateway and Portal etc.
Embodiment ten
As shown in Figure 10, be the structural representation of the terminal side data treating apparatus that the embodiment of the present invention provides, comprise:
Acquiring unit 1001, for obtaining the unification user mark of smart card and data bulk to be emptied;
Transmitting element 1002, empties request for sending data to network side server, and these data empty in request the unification user mark and data bulk to be emptied that carry acquisition;
Receiving element 1003, for receiving the data flush instructions that described network side server sends;
Retransmission unit 1004, for forwarding described data flush instructions to smart card; And if receive data that smart card returns when emptying result, forward described data to network side server and empty result.
During concrete enforcement, terminal side data treating apparatus can also comprise:
Receiving element, for receiving the data batchmove success of described network side server transmission or failed acknowledge message.
During concrete enforcement, terminal side data treating apparatus can also comprise Tip element and control module, wherein:
Tip element, if in appointment duration, do not receive data that described smart card returns when emptying result or do not receive data batchmove success or failed acknowledge message that network side server sends, whether prompting carries out data null clear operation again;
Acquiring unit 1001, if also for receive no longer carry out data empty instruction time, again obtain the data bulk of smart card;
Transmitting element 1002, if the data bulk also again obtained for acquiring unit is non-vanishing, sends data to network side server and empties the request of cancelling; And if receive and again carry out data when emptying instruction, resend data to described network side server and empty request;
Control module, if the data bulk again obtained for acquiring unit 1001 is zero, process ends.
The terminal side data treating apparatus that the embodiment of the present invention provides can be arranged in POS terminal, need illustrate time, the POS terminal related in the embodiment of the present invention is special POS terminal, it is except possessing below said units module, at least comprising following functions module: terminal transaction module, for realizing supplementing with money, information inquiry, the function such as consuming, empty remaining sum and cancelling; Termination management module, for realizing application management, system management and operating personnel's management function; Judge module, for POS terminal, whether time-out response judges, when specifically implementing, POS terminal also should possess conventional access module, such as, GPRS module, contactless communication module and printer etc.
Embodiment 11
As shown in figure 11, be the structural representation of the data handling system that the embodiment of the present invention provides, comprise smart card 1101, POS terminal 1102 and network side server 1103, wherein:
POS terminal 1102, for when carrying out data and emptying, obtains unification user mark and first data volume to be emptied of smart card 1101; And send the first data to network side server 1103 and empty request, these first data empty in request the unification user mark and the first data volume to be transferred that carry acquisition; And the data flush instructions that reception network side server 1103 issues after receiving the first data and emptying request, carry in described flush instructions and empty script; And forward described data flush instructions to smart card 1101; And if receive data that smart card 1101 returns when emptying result, forward these data to network side server and empty result;
Smart card 1101, for providing self unification user mark and the first data volume to be emptied to POS terminal 1102; And after the data flush instructions receiving POS terminal 1102 forwarding, empty the data of self, and empty result to institute's POS terminal 1102 terminal return data;
Network side server 1103, after emptying request in the first data receiving POS terminal 1102 transmission, is revised as data mode corresponding for this unification user mark and treats empty; And send data flush instructions to POS terminal 1102; And if receive data that POS terminal 1102 returns when emptying result, empty result according to data and judge that data empty whether success; If so, local that store, that unification user mark is corresponding data bulk is emptied; If not, data mode corresponding for this unification user mark is revised as normal condition.
During concrete enforcement, POS terminal 1102, can also be used for specify in duration do not receive data that smart card 1101 returns empty result time, whether prompting carries out data null clear operation again; No longer carry out data if receive when emptying instruction, again obtain the data bulk of smart card 1101, if the data bulk again obtained is zero, process ends; If the data bulk again obtained is non-vanishing, sends data to network side server 1103 and empty the request of cancelling;
Network side server 1103, also for after receiving data that POS terminal 1102 sends and emptying the request of cancelling, is revised as normal condition by data mode corresponding for this unification user mark.
During concrete enforcement, POS terminal 1102, if can also be used for receive again carry out data empty instruction time, send the second data to network side server 1103 and empty request;
Network side server 1103, after the second data also sent for receiving POS terminal 1102 empty request, obtains the data mode that the unification user mark of local record is corresponding; If the second data bulk to be emptied is non-vanishing and unification user identifies corresponding data mode for treating empty, again send data flush instructions to POS terminal 1102; If the second data bulk to be emptied is zero and unification user identifies corresponding data mode for treating empty, empty the data bulk of local that store, described unification user mark correspondence.
During concrete enforcement, the data handling system that the embodiment of the present invention provides, can also comprise third-party server 1104, wherein:
Network side server 1103, can also be used for after emptying data bulk corresponding to local that store, described unification user mark, data transfer request is sent to third-party server 1104, carry described unification user mark and data bulk to be transferred in this data transfer request, this data bulk to be transferred is identical with the first data bulk to be emptied; And data mode corresponding for unification user mark is revised as transfering state; If data batchmove success, to the confirmation message that the transfer of POS terminal 1102 return data is successful, and data mode corresponding for described unification user mark is revised as exit state; If data batchmove failure, to the acknowledge message that the transfer of POS terminal 1102 return data is failed;
POS terminal 1102, also in appointment duration, when receiving the data batchmove success of network side server 1103 transmission or failed acknowledge message, process ends.
During concrete enforcement, POS terminal 1102, if also in appointment duration, when not receiving the data batchmove success of described network side server transmission or failed acknowledge message, whether prompting carries out data null clear operation again; Receive and no longer carry out data when emptying instruction, again obtain the data bulk of smart card 1101; If the data bulk again obtained is zero, process ends; If the data bulk again obtained is non-vanishing, sends data to network side server 1103 and empty the request of cancelling;
Network side server 1103, also for receiving after data empty the request of cancelling, judges data batchmove whether success; If, data recovery request is sent to third-party server 1104, the first data bulk to be emptied is carried in this data recovery request, after receiving the date restoring success message that described third-party server 1104 returns, data mode corresponding for this unification user mark is revised as normal condition, wherein, date restoring success message is send after third-party server 1104 recovers data according to described first data volume to be emptied; If not, data mode corresponding for this unification user mark is revised as normal condition;
Third-party server 1104, also for after the data recovery request receiving network side server 1103 transmission, recovers data according to the first data bulk to be emptied; And after date restoring success, be successfully recovered message to network side server 1103 return data.
During concrete enforcement, POS terminal 1102, receive if can also be used for and again carry out data when emptying instruction, send the 3rd data empty request to network side server 1103, the 3rd data empty in request and carry unification user mark and the 3rd data bulk to be emptied;
Network side server 1103, can also be used for after receiving the 3rd data and emptying request, obtains the data mode that the described unification user mark of local record is corresponding; If the 3rd data bulk to be emptied is zero and the current data state of local record is exit state, to the confirmation message that the transfer of POS terminal 1102 return data is successful; 3rd data bulk to be emptied is zero and the current data state of local record is transfering state, judges that whether data batchmove is successful; If so, data mode corresponding for the described unification user mark of local record is revised as exit state; If not, send data recovery request to third-party server, carry the first data bulk to be emptied in this data recovery request and recover data; And after receiving date restoring success message, again send data transfer request to third-party server;
Third-party server 1104, also for after the data recovery request receiving network side server 1103 transmission, recovers data according to the first data bulk to be emptied; And after date restoring success, be successfully recovered message to described network side server return data.
The data processing method that the embodiment of the present invention provides, the data that network side server receives POS terminal transmission empty request, empty in request in these data and carry unification user mark, this unification user is designated that POS terminal obtains from smart card, the data mode of its correspondence to be revised as according to this unification user mark by network side server treats empty, and send data flush instructions to POS terminal, and according to POS terminal return data empty result and judge that data empty whether success, if success, then empty local to store, the data bulk that this unification user mark is corresponding, if failure, data mode corresponding for this unification user mark is revised as normal condition.By said process, achieve the process treated and empty data, simultaneously, due to the change of data mode in network side server record data cleanup process, when data empty unsuccessfully, data mode to be emptied is reverted to normally, thus ensure that the security in data handling procedure.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (26)

1. a data processing method, is characterized in that, comprising:
Receive the first data that point of sale POS terminal sends and empty request, described first data empty in request and carry unification user mark, and described unification user is designated that described POS terminal obtains from smart card;
Revise data mode corresponding to described unification user mark for treating empty;
Data flush instructions is sent to described POS terminal;
When the data that described POS terminal returns if receive empty result, empty result according to described data and judge that data empty whether success;
If so, data bulk corresponding to local that store, described unification user mark is emptied;
If not, the data mode revising described unification user mark corresponding is normal condition.
2. the method for claim 1, is characterized in that, described first data empty in request and also carry the first data bulk to be emptied, and described first data bulk to be emptied is that described POS terminal obtains from smart card; And
When the described data that described POS terminal returns if do not receive empty result, described method, also comprises:
The second data receiving the transmission of described POS terminal empty request, and described second data empty in request and carry described unification user mark and the second data bulk to be emptied, and described second data bulk to be emptied is that described POS terminal obtains again from smart card;
Obtain the data mode that the described unification user mark of local record is corresponding;
If described second data bulk to be emptied is non-vanishing and described unification user identifies corresponding data mode for treating empty, again send data flush instructions to described POS terminal;
If described second data bulk to be emptied is zero and described unification user identifies corresponding data mode for treating empty, empty the data bulk of local that store, described unification user mark correspondence.
3. the method for claim 1, is characterized in that, when the described data that described POS terminal returns if do not receive empty result, also comprises:
The data receiving the transmission of described POS terminal empty the request of cancelling;
Data mode corresponding for described unification user mark is revised as normal condition.
4. method as claimed in claim 2, is characterized in that, also comprise:
After emptying data bulk corresponding to local that store, described unification user mark, data transfer request is sent to third-party server, carry described unification user mark and data bulk to be transferred in described data transfer request, described data bulk to be transferred is identical with described first data bulk to be emptied;
Data mode corresponding for described unification user mark is revised as transfering state;
Receive data batchmove success message or data batchmove failed message that described third-party server returns;
If data batchmove success, data mode corresponding for described unification user mark is revised as exit state, to the confirmation message that described POS terminal return data transfer is successful;
If data batchmove failure, to the acknowledge message that described POS terminal return data transfer is failed.
5. method as claimed in claim 4, is characterized in that, also comprise:
The 3rd data receiving the transmission of described POS terminal empty request, described 3rd data empty in request and carry described unification user mark and the 3rd data bulk to be emptied, and it is that described POS terminal sends when not receiving data batchmove success or failed acknowledge message that the 3rd data empty request;
Obtain the data mode that the described unification user mark of local record is corresponding;
If the 3rd data bulk to be emptied is zero and the current data state of local record is exit state, to the confirmation message that described POS terminal return data transfer is successful;
If the 3rd data bulk to be emptied is zero and the current data state of local record is transfering state, judge that whether data batchmove is successful; When judged result is for being, data mode corresponding for the described unification user mark of local record is revised as exit state; When judged result is no, sends data recovery request to third-party server, in described data recovery request, carry the first data bulk to be emptied; After receiving date restoring success message, again send data transfer request to third-party server, wherein, date restoring success message is that described third-party server sends after emptying data bulk and recovering data according to described first.
6. method as claimed in claim 4, is characterized in that, also comprise:
The data receiving the transmission of described POS terminal empty the request of cancelling, and it is that described POS terminal sends when not receiving data batchmove success or failed acknowledge message that described data empty the request cancelled;
Judge that whether data batchmove is successful;
If, data recovery request is sent to third-party server, the first data bulk to be emptied is carried in described data recovery request, after receiving the date restoring success message that described third-party server returns, data mode corresponding for described unification user mark is revised as normal condition, and described date restoring success message is send after described third-party server recovers data according to described first data volume to be emptied;
If not, data mode corresponding for described unification user mark is revised as normal condition.
7. a data processing equipment, is characterized in that, comprising:
Receiving element, the first data sent for receiving point of sale POS terminal empty request, and described first data empty in request and carry unification user mark, and described unification user is designated that described POS terminal obtains from smart card;
Amendment unit, treats empty for data mode corresponding for described unification user mark being revised as; And when the judged result of the first judging unit is no, data mode corresponding for described unification user mark is revised as normal condition;
Transmitting element, for sending data flush instructions to described POS terminal;
First judging unit, if when the data returned for receiving described POS terminal emptying result, emptying result according to described data and judging whether data empty successful;
Emptying unit, when the judged result of the first judging unit is for being, emptying the data bulk that local that store, described unification user mark is corresponding.
8. device as claimed in claim 7, it is characterized in that, described first data empty in request and also carry the first data bulk to be emptied, and described first data bulk to be emptied is that described POS terminal obtains from smart card; And
Described device, also comprises acquiring unit, wherein:
Described receiving element, if when the described data also returned for not receiving described POS terminal empty result, the second data receiving the transmission of described POS terminal empty request, described second data empty in request and carry described unification user mark and the second data bulk to be emptied, and described second data bulk to be emptied is that described POS terminal obtains again from smart card;
Acquiring unit, the data mode that the described unification user mark for obtaining local record is corresponding;
Described transmitting element, if also non-vanishing for described second data bulk to be emptied and the data mode that described unification user mark is corresponding, for treating empty, sends data flush instructions to described POS terminal again;
Describedly empty unit, if be also zero for described second data bulk to be emptied and data mode corresponding to described unification user mark for treating empty, empty the data bulk that local that store, described unification user mark is corresponding.
9. device as claimed in claim 7, is characterized in that,
Described receiving element, if the described data also returned for not receiving described POS terminal empty result, the data receiving the transmission of described POS terminal empty the request of cancelling;
Described amendment unit, also for data mode corresponding for described unification user mark is revised as normal condition.
10. device as claimed in claim 8, is characterized in that,
Described transmitting element, also for emptying after unit empties data bulk corresponding to local that store, described unification user mark described, data transfer request is sent to third-party server, carry described unification user mark and data bulk to be transferred in described data transfer request, described data bulk to be transferred is identical with described first data bulk to be emptied; And if data batchmove is successful, to the confirmation message that described POS terminal return data transfer is successful; If data batchmove failure, to the acknowledge message that described POS terminal return data transfer is failed;
Described amendment unit, also for when emptying the data bulk of local that store, described unification user mark correspondence, is revised as transfering state by data mode corresponding for described unification user mark; And if data batchmove is successful, data mode corresponding for described unification user mark is revised as exit state;
Described receiving element, also for receiving the data batchmove success message and data batchmove failed message that described third-party server returns.
11. devices as claimed in claim 10, is characterized in that, also comprise the second judging unit, wherein:
Described receiving element, the 3rd data sent for receiving described POS terminal empty request, described 3rd data empty in request and carry described unification user mark and the 3rd data bulk to be emptied, and it is that described POS terminal sends when not receiving data batchmove success or failed acknowledge message that the 3rd data empty request;
Described acquiring unit, also for obtaining the data mode of the described unification user mark correspondence of local record;
Described transmitting element, if be also zero for the 3rd data bulk to be emptied and the current data state of local record is exit state, to the confirmation message that described POS terminal return data transfer is successful; And when the judged result of described second judging unit is no, sends data recovery request to third-party server, in described data recovery request, carry the first data bulk to be emptied; And after receiving date restoring success message, again send data transfer request to third-party server, wherein, data recovery request success message is that described third-party server sends after emptying data bulk and recovering data according to described first;
Described second judging unit, if be also zero for the 3rd data bulk to be emptied and the current data state of local record is transfering state, judges data batchmove whether success;
Described amendment unit, also for when the judged result of described second judging unit is for being, is revised as exit state by data mode corresponding for the described unification user mark of local record.
12. devices as claimed in claim 11, is characterized in that, also comprise the 3rd judging unit, wherein:
Described receiving element, the data also sent for receiving described POS terminal empty the request of cancelling, and it is that described POS terminal sends when not receiving data batchmove success or failed acknowledge message that described data empty the request cancelled;
Described 3rd judging unit, also for judging that whether data batchmove is successful;
Described transmitting element, also for when the judged result of described 3rd judging unit is for being, sending data recovery request to third-party server, carrying the first data volume to be emptied in described data recovery request;
Described amendment unit, also for after receiving the date restoring success message that described third-party server returns or when the judged result of described 3rd judging unit is no, data mode corresponding for described unification user mark is revised as normal condition, and described date restoring success message is send after described third-party server recovers data according to described first data volume to be emptied.
13. 1 kinds of servers, is characterized in that, comprise the device described in the arbitrary claim of claim 7 ~ 12.
14. 1 kinds of data processing methods, is characterized in that, comprising:
Obtain the unification user mark of smart card and data bulk to be emptied;
Send data to network side server and empty request, described data empty in request the unification user mark and data bulk to be emptied that carry acquisition, described network side server receive described data empty request after data mode corresponding to amendment described unification user mark for treating empty;
Receive the data flush instructions that described network side server sends;
Described data flush instructions is forwarded to described smart card; And
When the data that described smart card returns if receive empty result, forward described data to described network side server and empty result, described network side server according to the data received empty result determination data empty successfully time, network side server empties local that store, that this unification user mark is corresponding data bulk; And described network side server according to the data received empty result determination data empty unsuccessfully time, data mode corresponding for this unification user mark is revised as normal condition by network side server.
15. methods as claimed in claim 14, is characterized in that, also comprise:
Receive the data batchmove success of described network side server transmission or failed acknowledge message.
16. methods as claimed in claim 14, is characterized in that, also comprise:
If in appointment duration, do not receive data that described smart card returns when emptying result or do not receive data batchmove success or failed acknowledge message that network side server sends, whether prompting carries out data null clear operation again;
No longer carry out data if receive when emptying instruction, again obtain the data bulk of described smart card; If the data bulk again obtained is zero, process ends; If the data bulk again obtained is non-vanishing, sends data to described network side server and empty the request of cancelling;
Again carry out data if receive when emptying instruction, resend data to described network side server and empty request.
17. 1 kinds of data processing equipments, is characterized in that, comprising:
Acquiring unit, for obtaining the unification user mark of smart card and data bulk to be emptied;
Transmitting element, request is emptied for sending data to network side server, described data empty in request the unification user mark and data bulk to be emptied that carry acquisition, described network side server receive described data empty request after data mode corresponding to amendment described unification user mark for treating empty;
Receiving element, for receiving the data flush instructions that described network side server sends;
Retransmission unit, for forwarding described data flush instructions to described smart card; And if receive data that described smart card returns when emptying result, forward described data to described network side server and empty result, described network side server according to the data received empty result determination data empty successfully time, network side server empties local that store, that this unification user mark is corresponding data bulk; And described network side server according to the data received empty result determination data empty unsuccessfully time, data mode corresponding for this unification user mark is revised as normal condition by network side server.
18. devices as claimed in claim 17, is characterized in that, also comprise:
Receiving element, for receiving the data batchmove success of described network side server transmission or failed acknowledge message.
19. devices as claimed in claim 17, is characterized in that, also comprise Tip element and control module, wherein:
Described Tip element, if in appointment duration, do not receive data that described smart card returns when emptying result or do not receive data batchmove success or failed acknowledge message that network side server sends, whether prompting carries out data null clear operation again;
Described acquiring unit, if also for receive no longer carry out data empty instruction time, again obtain the data bulk of described smart card;
Described transmitting element, if the data bulk also again obtained for acquiring unit is non-vanishing, sends data to described network side server and empties the request of cancelling; And if receive and again carry out data when emptying instruction, resend data to described network side server and empty request;
Described control module, if the data bulk again obtained for described acquiring unit is zero, process ends.
20. 1 kinds of point of sale POS terminal, is characterized in that, comprise the device described in claim 17,18 or 19.
21. 1 kinds of data handling systems, is characterized in that, comprise smart card, point of sale POS terminal and network side server, wherein:
Described POS terminal, for when carrying out data and emptying, obtains unification user mark and first data volume to be emptied of described smart card; And send the first data to network side server and empty request, described first data empty in request the unification user mark and the first data volume to be transferred that carry acquisition; And receive the data flush instructions that described network side server issues after receiving described first data and emptying request, carry in described data flush instructions and empty script; And forward described data flush instructions to smart card; And if receive data that described smart card returns when emptying result, forward described data to described network side server and empty result;
Described smart card, for providing self unification user mark and the first data volume to be emptied to described POS terminal; And after the data flush instructions receiving the forwarding of described POS terminal, empty the data of self, and empty result to described POS terminal return data;
Described network side server, after emptying request in the first data receiving the transmission of described POS terminal, is revised as data mode corresponding for described unification user mark and treats empty; And send data flush instructions to described POS terminal; And if receive data that described POS terminal returns when emptying result, empty result according to described data and judge that data empty whether success; If so, data bulk corresponding to local that store, described unification user mark is emptied; If not, data mode corresponding for described unification user mark is revised as normal condition.
22. systems as claimed in claim 21, is characterized in that,
Described POS terminal, when the data also returned for not receiving described smart card in appointment duration empty result, whether prompting carries out data null clear operation again; No longer carry out data if receive when emptying instruction, again obtain the data bulk of described smart card, if the data bulk again obtained is zero, process ends; If the data bulk again obtained is non-vanishing, sends data to described network side server and empty the request of cancelling;
Described network side server, also for after receiving data that described POS terminal sends and emptying the request of cancelling, is revised as normal condition by data mode corresponding for described unification user mark.
23. the system as claimed in claim 22, is characterized in that,
Described POS terminal, if also for receive again carry out data empty instruction time, send the second data to described network side server and empty request;
Described network side server, after the second data also sent for receiving described POS terminal empty request, obtains the data mode that the described unification user mark of local record is corresponding; If the second data bulk to be emptied is non-vanishing and described unification user identifies corresponding data mode for treating empty, again send data flush instructions to described POS terminal; If described second data bulk to be emptied is zero and described unification user identifies corresponding data mode for treating empty, empty the data bulk of local that store, described unification user mark correspondence.
24. systems as described in claim 22 or 23, is characterized in that, also comprise third-party server, wherein:
Described network side server, also for after emptying data bulk corresponding to local that store, described unification user mark, data transfer request is sent to described third-party server, carry described unification user mark and data bulk to be transferred in described data transfer request, described data bulk to be transferred is identical with described first data bulk to be emptied; And data mode corresponding for described unification user mark is revised as transfering state; If data batchmove success, to the confirmation message that described POS terminal return data transfer is successful, and data mode corresponding for described unification user mark is revised as exit state; If data batchmove failure, to the acknowledge message that described POS terminal return data transfer is failed;
Described POS terminal, also in appointment duration, when receiving the data batchmove success of described network side server transmission or failed acknowledge message, process ends.
25. systems as claimed in claim 24, is characterized in that,
If described POS terminal is also in appointment duration, when not receiving the data batchmove success of described network side server transmission or failed acknowledge message, whether prompting carries out data null clear operation again; Receive and no longer carry out data when emptying instruction, again obtain the data bulk of described smart card; If the data bulk again obtained is zero, process ends; If the data bulk again obtained is non-vanishing, sends data to described network side server and empty the request of cancelling;
Described network side server, also for receiving after described data empty the request of cancelling, judges data batchmove whether success; If, data recovery request is sent to third-party server, the first data bulk to be emptied is carried in described data recovery request, after receiving the date restoring success message that described third-party server returns, data mode corresponding for described unification user mark is revised as normal condition, and described date restoring success message is send after described third-party server recovers data according to described first data volume to be emptied; If not, data mode corresponding for described unification user mark is revised as normal condition;
Described third-party server, also for after the data recovery request receiving the transmission of described network side server, recovers data according to described first data bulk to be emptied; And after date restoring success, be successfully recovered message to described network side server return data.
26. systems as claimed in claim 25, is characterized in that,
Described POS terminal, if also for receive again carry out data empty instruction time, send the 3rd data to described network side server and empty request, described 3rd data empty in request and carry described unification user mark and the 3rd data bulk to be emptied;
Described network side server, also for after receiving the 3rd data and emptying request, obtains the data mode that the described unification user mark of local record is corresponding; If the 3rd data bulk to be emptied is zero and the current data state of local record is exit state, to the confirmation message that described POS terminal return data transfer is successful; 3rd data bulk to be emptied is zero and the current data state of local record is transfering state, judges that whether data batchmove is successful; If so, data mode corresponding for the described unification user mark of local record is revised as exit state; If not, send data recovery request to third-party server, carry the first data bulk to be emptied in this data recovery request and recover data; And after receiving date restoring success message, again send data transfer request to third-party server;
Described third-party server, also for after the data recovery request receiving the transmission of described network side server, recovers data according to described first data bulk to be emptied; And after date restoring success, be successfully recovered message to described network side server return data.
CN201210254773.3A 2012-07-20 2012-07-20 A kind of data processing method, device, system and relevant device Active CN103578207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210254773.3A CN103578207B (en) 2012-07-20 2012-07-20 A kind of data processing method, device, system and relevant device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210254773.3A CN103578207B (en) 2012-07-20 2012-07-20 A kind of data processing method, device, system and relevant device

Publications (2)

Publication Number Publication Date
CN103578207A CN103578207A (en) 2014-02-12
CN103578207B true CN103578207B (en) 2015-12-02

Family

ID=50049915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210254773.3A Active CN103578207B (en) 2012-07-20 2012-07-20 A kind of data processing method, device, system and relevant device

Country Status (1)

Country Link
CN (1) CN103578207B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817381A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 Data processing method and device
CN110599330B (en) * 2019-09-12 2023-04-07 中国工商银行股份有限公司 Bank universal anti-transaction device, method and system
CN112395012B (en) * 2020-11-03 2024-02-27 南方电网数字电网科技(广东)有限公司 Data emptying method and device based on double-core intelligent ammeter and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1269041A (en) * 1997-06-27 2000-10-04 瑞士电信公司 Transaction method carried out with a mobile apparatus
JP2002149454A (en) * 2000-08-30 2002-05-24 Internatl Business Mach Corp <Ibm> Transaction support on logical disk
JP2003162698A (en) * 2001-11-27 2003-06-06 Dainippon Printing Co Ltd Portable information record medium
CN101510870A (en) * 2008-04-23 2009-08-19 北京德瑞海普科技有限公司 Method for simulating, verifying and organizing code grade network protocol based on script and module drive
CN101719247A (en) * 2009-11-30 2010-06-02 刘宜云 System and method for payment based on non-contact handheld payment terminal
CN102360478A (en) * 2011-10-14 2012-02-22 快钱支付清算信息有限公司 Mobile terminal-based payment method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1269041A (en) * 1997-06-27 2000-10-04 瑞士电信公司 Transaction method carried out with a mobile apparatus
JP2002149454A (en) * 2000-08-30 2002-05-24 Internatl Business Mach Corp <Ibm> Transaction support on logical disk
CN1365056A (en) * 2000-08-30 2002-08-21 国际商业机器公司 Apparatus and method for support data affairs
JP2003162698A (en) * 2001-11-27 2003-06-06 Dainippon Printing Co Ltd Portable information record medium
CN101510870A (en) * 2008-04-23 2009-08-19 北京德瑞海普科技有限公司 Method for simulating, verifying and organizing code grade network protocol based on script and module drive
CN101719247A (en) * 2009-11-30 2010-06-02 刘宜云 System and method for payment based on non-contact handheld payment terminal
CN102360478A (en) * 2011-10-14 2012-02-22 快钱支付清算信息有限公司 Mobile terminal-based payment method and system

Also Published As

Publication number Publication date
CN103578207A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
AU739465B2 (en) Chip card
CN111080275B (en) Cross-region resource transfer method, device, equipment and storage medium
CN103150813B (en) Near-field communication equipment
CN101996445B (en) Method and system for remotely controlling intelligent card
CN103426013A (en) Device, system, and method for logging near field communications tag interactions
AU3022497A (en) Chipcard and method for communication between an external device and a chipcard
CN104574081A (en) Network payment method as well as related equipment and system
EP1717746A1 (en) Payment system, paying method and program
CN103578207B (en) A kind of data processing method, device, system and relevant device
CN102005089A (en) Method and system for remotely controlling intelligent card
CN101587615A (en) Information integrated platform of traffic IC card and bank card
CN103489028B (en) A kind of financial IC card, Multi-protocol communication system and method
KR20090121497A (en) Payment terminal, method and system using nfc mobile phone
CN102750187B (en) A kind of striding course exchange method and device
JP4924067B2 (en) Electronic money charge system, electronic money charge issuance management system, and electronic money business operator system
JP2016110321A (en) Fund transfer method, system, and program
CN102270326A (en) Authentication charging system and method based on intelligent network payment value added service
CN104573765A (en) Smart card information processing method and device
EP1429526A2 (en) Data processing apparatus
CN102346889B (en) POS (Point of Sale) terminal-based off-line transaction method, POS terminal-based off-line transaction system and related devices
KR101946330B1 (en) A payment method providing sharing of secure application modules and an appratus using it
CN103810517A (en) Contact-less card capable of independently enquiring balance and recharging and using method thereof
WO2005103917A1 (en) Data communication system, data communication method, and data communication apparatus
CN104182872B (en) Data handling system and method based on mobile communication terminal
WO2020006479A1 (en) Chip card socket communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant