CN102592358A - Method, system and device for writing electronic data - Google Patents

Method, system and device for writing electronic data Download PDF

Info

Publication number
CN102592358A
CN102592358A CN2011100051122A CN201110005112A CN102592358A CN 102592358 A CN102592358 A CN 102592358A CN 2011100051122 A CN2011100051122 A CN 2011100051122A CN 201110005112 A CN201110005112 A CN 201110005112A CN 102592358 A CN102592358 A CN 102592358A
Authority
CN
China
Prior art keywords
electronic data
writes
processing equipment
request
last
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011100051122A
Other languages
Chinese (zh)
Inventor
乐祖晖
张雨廷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN2011100051122A priority Critical patent/CN102592358A/en
Publication of CN102592358A publication Critical patent/CN102592358A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a system and a device for writing electronic data. The method includes that an electronic data processing device receives electronic data writing request; the electronic data processing device judges if last electronic data are written successfully according to last electronic data writing information; on yes judgment, the electronic data processing device conducts writing processing on the electronic data of this time, and a command of writing the electronic data of this time is returned; and otherwise the electronic data processing device returns to information of writing failure of the last electronic data, and canceling operation is performed on a writing process of the last electronic data. In an embodiment of the method, the system and the device for writing the electronic data, by carrying written information of the last electronic data in the electronic data writing request, the electronic data processing device can find out whether the last electronic data are written successfully and conduct processing on the last electronic data when the last electronic data are written unsuccessfully, therefore writing success rate of the electronic data is increased.

Description

A kind of wiring method of electronic data, system and equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of wiring method, system and equipment of electronic data.
Background technology
It is an important development on the mobile communication technology that electronic data is used; Through at intelligent cards (IC (Integrated Circuit for example; Integrated circuit) card) goes up loading electronic data application program, adopt the short distance wireless communication technology, can a plurality of application integration be arrived together; Combine with the portability of portable terminal, formed the new focus of mobile communication technology.
In the prior art; In order to realize the application of electronic data; Need in SIM (Subscriber Identity Module, user identification module) card/IC-card, (in the electronic data application program like SIM) write electronic data, as shown in Figure 1; The flow process that writes for the electronic data between portable terminal (SIM) and the electronic data processing equipment (main frame) may further comprise the steps:
1, the user initiates initialization command through STK (SIM TOOL KIT, user identification application development instrument) menu input electronic data information to SIM, and forms electronic data according to the response that SIM returns and write request and send to main frame.
2, when receiving after electronic data writes request, the validity of host verification MAC1 (Message Authentication Code, message authentication code) if invalid then flow process finishes, otherwise produces MAC2, and carries out handled according to electronic data information.
3, main frame sends the execution electronic data to SIM and writes instruction.
4, when receiving after electronic data writes instruction, the validity of SIM checking MAC2 is if invalid then flow process finishes; Otherwise the in-line processing sequence number is added 1, in SIM, writes electronic data, and update processing is detailed, produce TAC (Transaction Authentication Code, transaction authentication code).
5, SIM writes the result to main frame return electron data.
6, main frame verification and preserve TAC.
In realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
In the existing technical scheme; Do not consider the abnormal conditions when writing electronic data, if it is success takes place to cause unusually not writing when the last time writes electronic data, then current when writing electronic data; Can't consider above-mentioned situation, thereby cause current ablation process to go wrong.
Summary of the invention
The embodiment of the invention provides a kind of wiring method, system and equipment of electronic data, to improve the success ratio that electronic data writes.
In order to achieve the above object, the embodiment of the invention provides a kind of wiring method of electronic data, comprising:
Electronic data processing equipment receives electronic data and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
The information that said electronic data processing equipment writes according to said last electronic data judges whether last electronic data writes success;
If said electronic data processing equipment writes processing according to the information that this electronic data writes to this electronic data, and return the instruction that writes this electronic data; Otherwise said electronic data processing equipment returns the information that last electronic data writes failure, and last electronic data ablation process is carried out the cancellation operation.
The embodiment of the invention provides a kind of writing system of electronic data, comprising:
Portable terminal is used for sending electronic data to electronic data processing equipment and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Electronic data processing equipment is used to receive said electronic data and writes request, and judges according to the information that said last electronic data writes whether last electronic data writes success; If the information that writes according to this electronic data writes processing to this electronic data, and return the instruction that writes this electronic data; Otherwise, return the information that last electronic data writes failure to said portable terminal, and last electronic data ablation process carried out the cancellation operation.
The embodiment of the invention provides a kind of electronic data processing equipment, comprising:
Receiver module is used to receive electronic data and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Judge module is used for judging according to the information that said last electronic data writes whether last electronic data writes success;
Writing module, be used for when judged result when being, the information that writes according to this electronic data writes processing to this electronic data; When judged result for not the time, last electronic data ablation process is carried out the cancellation operation;
Sending module, be used for when judged result when being, return the instruction that writes this electronic data; When judged result for not the time, return the information that last electronic data writes failure.
The embodiment of the invention provides a kind of portable terminal, comprising:
Sending module is used for sending electronic data to electronic data processing equipment and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Receiver module is used for when the information that said electronic data processing equipment writes according to said last electronic data judges that last electronic data writes successfully, receiving the instruction that writes this electronic data that said electronic data processing equipment returns; The information that writes according to said last electronic data when said electronic data processing equipment judges when last electronic data writes failure, receives the information that last electronic data that said electronic data processing equipment returns writes failure.
Compared with prior art, the present invention has the following advantages at least:
Through write the information that electronic data writes of carrying in the request once at electronic data; Make electronic data processing equipment can know whether last electronic data writes success; And write when failure on once electronic data handle, thereby improve the success ratio that electronic data writes.
Description of drawings
In order to be illustrated more clearly in technical scheme of the present invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 be in the prior art electronic data between portable terminal and the electronic data processing equipment write schematic flow sheet;
Fig. 2 is the processing synoptic diagram of message serial number in the embodiment of the invention;
Fig. 3 is the writing system configuration diagram of a kind of electronic data of providing of the embodiment of the invention one;
Fig. 4 is the structural representation of a kind of electronic data processing equipment of providing of the embodiment of the invention two;
Fig. 5 is the structural representation of a kind of portable terminal of providing of the embodiment of the invention three;
Fig. 6 is the wiring method schematic flow sheet of a kind of electronic data of providing of the embodiment of the invention four;
Fig. 7 is the wiring method schematic flow sheet of a kind of electronic data of providing of the embodiment of the invention five;
Fig. 8 is the wiring method schematic flow sheet of a kind of electronic data of providing of the embodiment of the invention six;
Fig. 9 is the wiring method schematic flow sheet of a kind of electronic data of providing of the embodiment of the invention seven.
Embodiment
To combine the accompanying drawing among the present invention below, the technical scheme among the present invention is carried out clear, intactly description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
In order more clearly to set forth the technical scheme that various embodiments of the present invention provide, at first the correlated characteristic to the message serial number is elaborated.The processing synoptic diagram of message serial number as shown in Figure 2, the electronic data on the portable terminal (containing SIM) uses and electronic data processing equipment (safeguarding a cover separately to each user) is respectively safeguarded a cover message serial number.Wherein, electronic data applicating maintenance message serial number CounterA (brief note is CA), the initial value of CA is 0, up note of every transmission (being sent to electronic data processing equipment) from the electronic data application, the value of CA adds 1; Electronic data processing equipment maintenance packet serial number Counter B (brief note is CB), the initial value of CB is 0, downlink short message of every transmission (being sent to electronic data from electronic data processing equipment uses), the value of CB adds 1; Carry the value of CA and CB in the uplink and downlink note; Electronic data is used the last look of preserving CB, and electronic data processing equipment is preserved the last look of CA; When CA reached maximal value, electronic data is used can't send up note; When CB reached maximal value, electronic data processing equipment can't send downlink short message.
Concrete; The treatment mechanism of message serial number includes but not limited to: when the electronic data application receives a downlink short message; If this note is passed through the MAC verification, the CB that then comprises in this downlink short message of electronic data application fetches, and the last look (being designated as CB ') of the local CB that preserves compares together: if CB≤CB '; Then electronic data is used and is abandoned this note, and does not carry out subsequent treatment; If CB>CB ', then electronic data is used and is accepted this note, and utilizes CB to upgrade CB ', and then carries out subsequent treatment.
In addition; When electronic data processing equipment receives a up note; If this note is through the MAC verification, then electronic data processing equipment extracts the CA that comprises in this up note, and compares with the last look (being designated as CA ') of the local CA that preserves: if CA≤CA '; Then electronic data processing equipment abandons this note, and does not carry out subsequent treatment; If CA>CA ', then electronic data processing equipment is accepted this note, and utilizes CA to upgrade CA ', and then carries out subsequent treatment.
The embodiment of the invention one provides a kind of writing system configuration diagram of electronic data, and system architecture as shown in Figure 3 comprises in this system: portable terminal (containing SIM), electronic data processing equipment and POS (Point of Sale, point of sale) machine etc.Wherein, the interface that relates in the system comprises: IF1: i.e. interface between portable terminal (containing SIM) and the electronic data processing equipment (can through short message mode realize), IF2: i.e. interface between interface between portable terminal (containing SIM) and the POS machine, IF3:POS machine and the electronic data processing equipment.Wherein:
Portable terminal is used for sending electronic data to electronic data processing equipment and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Electronic data processing equipment is used to receive said electronic data and writes request, and judges according to the information that said last electronic data writes whether last electronic data writes success; If the information that writes according to this electronic data writes processing to this electronic data, and return the instruction that writes this electronic data; Otherwise, return the information that last electronic data writes failure to said portable terminal, and last electronic data ablation process carried out cancellation operation (promptly last electronic data ablation process being carried out rolling back action).
In the embodiment of the invention, this POS machine is used for that the electronic data from said portable terminal is write request and is transmitted to said electronic data processing equipment; And the information that will write failure from the instruction that writes this electronic data or the last electronic data of said electronic data processing equipment is transmitted to said portable terminal.
Based on same inventive concept, the embodiment of the invention two provides a kind of electronic data processing equipment, and is as shown in Figure 4, comprising:
Receiver module 11 is used to receive electronic data and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Judge module 12 is used for judging according to the information that said last electronic data writes whether last electronic data writes success;
Writing module 13, be used for when judged result when being, the information that writes according to this electronic data writes processing to this electronic data; When judged result for not the time, last electronic data ablation process is carried out the cancellation operation;
Sending module 14, be used for when judged result when being, return the instruction that writes this electronic data; When judged result for not the time, return the information that last electronic data writes failure.
Said receiver module 11, the electronic data that specifically is used to receive from portable terminal writes request; Perhaps, the electronic data from said portable terminal of reception POS machine forwarding writes request.
Said write module 13 specifically is used for using to the electronic data of portable terminal and writes said this electronic data, and uses pairing data message according to the electronic data that the electronic data that this writes upgrades said portable terminal.
In the embodiment of the invention, said sending module 14 specifically is used for the instruction of this electronic data of said write is sent to portable terminal; Perhaps, the instruction of this electronic data of said write is sent to the POS machine, the instruction of this electronic data of said write is transmitted to said portable terminal by said POS machine;
The information that said last electronic data is write failure sends to portable terminal; Perhaps, the information that said last electronic data is write failure sends to the POS machine, by said POS machine the information that said last electronic data writes failure is transmitted to said portable terminal.
In the embodiment of the invention,, said electronic data writes request, is specially:
The electronic data that said electronic data processing equipment triggering mobile terminals is initiated writes request; Perhaps,
When existing the electronic data accomplished of being untreated to write request in the portable terminal, what said portable terminal was initiated accomplishes the electronic data that electronic data writes request and writes request again to said being untreated; Perhaps,
When existing the electronic data accomplished of being untreated to write request in the portable terminal, what said portable terminal was initiated accomplishes the electronic data cancellation that electronic data writes request and writes request to said being untreated.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Based on same inventive concept, the embodiment of the invention three provides a kind of portable terminal, and is as shown in Figure 5, comprising:
Sending module 21 is used for sending electronic data to electronic data processing equipment and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Receiver module 22 is used for when the information that said electronic data processing equipment writes according to said last electronic data judges that last electronic data writes successfully, receiving the instruction that writes this electronic data that said electronic data processing equipment returns; The information that writes according to said last electronic data when said electronic data processing equipment judges when last electronic data writes failure, receives the information that last electronic data that said electronic data processing equipment returns writes failure.
In the embodiment of the invention, said sending module 21 specifically is used for writing request according to the trigger message of said electronic data processing equipment to said electronic data processing equipment transmission electronic data; Perhaps,
When the electronic data that has the completion of being untreated in the portable terminal writes request, write request to the said completion electronic data that is untreated and write request again to said electronic data processing equipment transmission electronic data; Perhaps,
When the electronic data that has the completion of being untreated in the portable terminal writes request, write request to the said completion electronic data that is untreated and write request to the cancellation of said electronic data processing equipment transmission electronic data.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Based on said system and the same inventive concept of equipment, the embodiment of the invention four provides a kind of wiring method of electronic data, and is as shown in Figure 6, and this method may further comprise the steps:
Step 601, electronic data processing equipment receives electronic data and writes request.Wherein, this electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request.
It should be noted that this electronic data writes request, is specially: the electronic data that said electronic data processing equipment triggering mobile terminals is initiated writes request; Perhaps, when existing the electronic data accomplished of being untreated to write request in the portable terminal, what said portable terminal was initiated accomplishes the electronic data that electronic data writes request and writes request again to said being untreated; Perhaps, when existing the electronic data accomplished of being untreated to write request in the portable terminal, what said portable terminal was initiated accomplishes the electronic data cancellation that electronic data writes request and writes request to said being untreated.
In the embodiment of the invention, when portable terminal transmission electronic data writes request, can directly send to electronic data processing equipment by portable terminal, at this moment, the electronic data that electronic data processing equipment can receive from portable terminal writes request; Portable terminal can also write request with electronic data and send to the POS machine, is transmitted to electronic data processing equipment by the POS machine, and at this moment, the electronic data from portable terminal that electronic data processing equipment can receive the forwarding of POS machine writes request.
Step 602, the information that electronic data processing equipment writes according to last electronic data judge whether last electronic data writes success.If, execution in step 603, otherwise, execution in step 604.
Step 603, electronic data processing equipment writes processing according to the information that this electronic data writes to this electronic data, and returns the instruction that writes this electronic data.
It should be noted that; In the embodiment of the invention; The process that electronic data is write processing specifically comprises: electronic data processing equipment writes this electronic data in the electronic data of portable terminal is used, and uses pairing data message according to the electronic data of this electronic data that writes renewal portable terminal.
In the process of returning the instruction that writes this electronic data, the instruction that electronic data processing equipment will write this electronic data sends to portable terminal; Perhaps, the instruction that electronic data processing equipment will write this electronic data sends to the POS machine, and the instruction that will be write this electronic data by the POS machine is transmitted to portable terminal;
Step 604, electronic data processing equipment returns the information that last electronic data writes failure to portable terminal, and last electronic data ablation process is carried out cancellation operation (promptly last electronic data ablation process being carried out rolling back action).
Once electronic data writes in the process of information of failure on returning, and electronic data processing equipment sends to portable terminal with the information that last electronic data writes failure; Perhaps, electronic data processing equipment sends to the POS machine with the information that last electronic data writes failure, by the POS machine information that last electronic data writes failure is transmitted to portable terminal.
In sum; In the embodiment of the invention; Through write the information that electronic data writes of carrying in the request once at electronic data; Make electronic data processing equipment can know whether last electronic data writes success, and write when failure on once electronic data handle, thereby improve the success ratio that electronic data writes.
Need to prove; In the embodiment of the invention; Above-mentioned electronic data writes request can write request for the electronic data to electronic wallet application; In this case, electronic data use can for electronic wallet application, electronic data write request can for the charging request of electronic wallet application, information that electronic data writes can for the relevant information of supplementing with money, in electronic data is used, write electronic data can in stored value card, supplement with money, upgrade electronic data use pairing data message can be for deduction supplemented quantity accordingly with money from user's account, electronic data processing equipment can be the mobile-phone payment platform.
Certainly, in the practical application, above-mentioned processing procedure can also be applicable to application such as electronic bankbook; Describe for ease; With the electronic wallet application is example, supposes on the SIM of electronic wallet application in portable terminal, and being about to portable terminal (containing SIM) abstract is electronic wallet application; The embodiment of the invention is equally applicable to electronic wallet application in portable terminal on other parts.
In electronic wallet application; Electronic wallet application is the application of mobile e-business in payment technical field, through on intelligent cards, loading electronic wallet application, adopts the short distance wireless communication technology; Can be with a plurality of payments type application; As small amount payment use, public transport is used, purchase water purchases sector application such as electricity application and be incorporated into together, combines with the portability of portable terminal, has formed the new focus of mobile e-business.And in the prior art,, need write electronic data (being charging information) in the stored value card in SIM/IC-card in order to realize the application of stored value card; And in existing ablation process; Being based on last electronic data, can to write success be prerequisite, therefore in this electronic data ablation process, not can take into account on once the electronic data ablation process handle, last when once writing electronic data; If do not write success, then can cause current ablation process to go wrong.
Based on above-mentioned situation, the embodiment of the invention five provides a kind of wiring method of electronic data, and is as shown in Figure 7, and this method may further comprise the steps:
Step 1, POS machine send INITIALIZE FOR LOAD (being written into initialization) order to SIM (or IC-card), start electronic data ablation process (being process of exchange).
Step 2, after receiving INITIALIZE FOR LOAD order, SIM will carry out following operation:
The key index whether inspection comprises in supporting to order number, if do not support, return state sign indicating number ' 9403 ' (unsupported key index) and do not return other data then, and stop the process of commands process; Otherwise, produce a pseudo random number RAND, process key SESLK and a message and sign other sign indicating number (MAC1), for the legitimacy of host verification electronic data ablation process and SIM.
Step 3, SIM return to the POS machine with INITIALIZE FOR LOAD response message, if the status code of returning is not ' 9000 ', then the electronic data ablation process stops.
Step 4, after receiving INITIALIZE FOR LOAD command response message, the POS machine is given main frame (be electronic data processing equipment, comprise the mobile-phone payment platform) with data forwarding.
Step 5, main frame are carried out and are generated SESLK and confirm that whether MAC1 is effective, send the operations such as validity of data in the judgement.If MAC1 effectively and on send data effective, then the electronic data ablation process will continue to carry out according to step 8, otherwise the electronic data ablation process will continue to carry out according to step 6.
Step 6, main frame return error message and give the POS machine.
Step 7, POS machine show error message.
Step 8, after confirming to carry out the electronic data ablation process, main frame is reduced corresponding electronic data (promptly circle is deposited the amount of money) from holder's respective account, and produces a message and sign other sign indicating number (MAC2), is used for SIM main frame is carried out validity checking; After successfully having carried out electronic data ablation process (circle is deposited transaction), main frame adds 1 with stored value card on-line transaction sequence number.
Step 9, main frame being deposited transaction to POS machine transmission circle and accepting message, comprising information such as MAC2, trade date and exchange hours.
Step 10, POS machine receive that circle that main frame sends deposits after transaction accepts message, send CREDIT FORLOAD (being written into credit) and order more the neocaine wallet balances that powers on.
Step 11, after receiving CREDIT FOR LOAD order, SIM is confirmed the validity of MAC2.If MAC2 is invalid to POS machine loopback status code ' 9302 ' (MAC is invalid); Otherwise SIM adds 1 with stored value card on-line transaction sequence number, and dealing money is added on the remaining sum of stored value card, upgrades transaction details simultaneously and calculates TAC.
Step 12, SIM send to the POS machine through the response message of CREDIT FOR LOAD order with TAC.
Step 13, POS machine are submitted to main frame with TAC.
The validity of step 14, host verification TAC.
It should be noted that to above-mentioned treatment scheme to have the anti-treatment mechanism of pulling out.SIM can be in transaction processing in any case (as upgrading EEPROM (Electrically Erasable Programmable Read-Only Memory; EEPROM) situation of power down in the process); The integrality that keeps data; Promptly need before Updating Information, back up at every turn, and after powering up again, automatically trigger Restoration Mechanism data.When the POS machine was issued order of SIM with the renewal electronic purse balance amount, SIM can return a MAC or/and TAC takes place with the proof renewal.And SIM need more calculate MAC or/and TAC in case balance updates is successful, can obtain this MAC or/and TAC through GETTRANSCTION PROVE order before the new balance; Made remaining sum return to the numerical value before upgrading if prevent pulling out recovery, then relevant enciphered data needn't keep again.In addition, when receiving the order of change electronic purse balance amount, these enciphered datas possibly be dropped.
Further, if finish in the order executed, and portable terminal does not also receive before the response; SIM is extracted suddenly; Then portable terminal will be in the indeterminate state of not knowing whether SIM upgrades, and in this case, portable terminal can recover with GET TRANSACTION PROVE order.If extracted suddenly when SIM is being handled, then portable terminal can remind the holder to insert SIM again, and portable terminal will be checked card issuer sign and application sequence number afterwards, and whether the SIM of extracting with the SIM of confirming insertion and front is the same card.If the same card, then portable terminal can send GET TRANSACTIONPROVE order.If MAC is or/and TAC returns, then portable terminal is accomplished transaction processing; If MAC is or/and TAC can't return, then the remaining sum in the SIM is not modified, and transaction can restart with suitable initialization command.
The embodiment of the invention six provides a kind of wiring method of electronic data, further to explain to the e-voucher center process; Wherein, electronic data is used in (like electronic wallet application) and can be preserved following information:
(1) record of a nearest successful e-voucher center includes but not limited in this record: the last successful recharging payment type identification, the last successful recharging payment on-line transaction sequence number, the last successful recharging payment date, the last successful recharging payment time, the last successful recharging payment are supplemented preceding remaining sum with money, the last successful recharging payment is supplemented back remaining sum, the last successful recharging payment TAC with money.
(2) record of a nearest failure e-voucher center includes but not limited in this record: the last failure recharging payment type identification, the last failure recharging payment on-line transaction sequence number, the last failure recharging payment date, the last failure recharging payment time, the last failure recharging payment are supplemented preceding remaining sum with money, the last failure recharging payment is supplemented back remaining sum, the last failure recharging payment error code with money.
(3) the last time is supplemented the information of operation with money, includes but not limited in this record: recharge amount and payment cipher ciphertext.Wherein, after receiving wallet recharging result downlink message, can be with this erasing of information.
It should be noted that mobile phone wallet is used preserves above-mentioned information with the form of data element, and the external interface of direct these data of visit can be provided.
Based on above-mentioned situation, to portable terminal and the direct mutual process of electronic data processing equipment, schematic flow sheet as shown in Figure 8, this method may further comprise the steps:
Step 1, triggering charging request Charge_Request.In the embodiment of the invention, this trigger process can be following situation:
A) charging request initiatively initiated of user.Wherein, if there is the charging request of not receiving Charge_Result, then the user can select " retry " perhaps " cancellation "; If there is not the charging request of not receiving Charge_Result, then the user can import recharge amount and payment cipher, and then sends charging request.
B) charging request of electronic data processing equipment triggering.Wherein, if there is the charging request of not receiving Charge_Result, then electronic wallet application is initiated miscue, and the charging request that is this time triggered by electronic data processing equipment is not handled; If there is not the charging request of not receiving Charge_Result, then need not the user and import recharge amount and payment cipher, and directly send charging request by electronic wallet application.
C) if remain and do not receiving the charging request of Charge_Result, the user selects " retry ", then need not the user and imports recharge amount and payment cipher, and directly send a last charging request of not receiving Charge_Result by electronic wallet application.
D) if remain and do not receiving the charging request of Charge_Result, the user selects " cancellation ", then need not the user and imports recharge amount and payment cipher, and directly send a last cancellation request of supplementing with money of not receiving Charge_Result by electronic wallet application.
Certainly, in the practical application, other modes that triggers charging request Charge_Request can also be arranged, for example, the charging request that the charging request that electronic data processing equipment triggers is made mistakes and triggered repeats no more in the embodiment of the invention.
Step 2, electronic wallet application are sent charging request Charge_Request to electronic data processing equipment, and the information of carrying in this charging request includes but not limited to: the information of the information of message serial number information, wallet on-line transaction serial number information, MAC1, recharge amount information, key version number, algorithm sign, this relevant information of supplementing with money, the relevant information that the last time supplements with money, the last successful recharging payment, the last failure recharging payment etc.
Further, after electronic data processing equipment sends charging request, the STK menu will get into " hang-up " state, and the user can only select " retry " perhaps " cancellation ", and the STK menu is showed the information of transaction this moment " hang-up " to the user.
Need to prove that when " hang-up " state, the user can only select " retry " perhaps " cancellation " operation to portable terminal, and can not charging information be set, and for example changes operations such as recharge amount.
After step 3, electronic data processing equipment receive charging request, will carry out following treatment step:
A) the MAC value of verification note message, if the MAC mistake, then electronic data processing equipment abandons this note, flow process finishes;
B) validity of checking prediction message serial number CA, if CA is invalid, then electronic data processing equipment abandons this note, flow process finishes;
C) optional, the validity (judgment principle is set by electronic data processing equipment) of checking prediction message serial number CB, if CB is invalid, then electronic data processing equipment abandons this note, flow process finishes;
D) if finding charging request is " electronic data processing equipment triggers and supplements with money-make mistakes ", then write down corresponding information, and the prompting error reason, flow process finishes;
E) optional; The validity of verification TAC, electronic data processing equipment judge whether the TAC value of a last recharging payment that comprises in the note is effective, if invalid (the TAC value of preserving as electronic data processing equipment does not wait); Then electronic data processing equipment abandons this note, and flow process finishes;
F) validity of a failed transactions information in the verification;
G) payment cipher of verified users input whether correct (if the charging request that network side triggers is then ignored the verification of payment cipher), if mistake, then electronic data processing equipment returns miscue to the user, flow process finishes; Whether the account balance of verified users satisfies the amount of money that comprises in the charging request, if Sorry, your ticket has not enough value, then electronic data processing equipment returns miscue to the user, and flow process finishes;
H) validity of check key version number, algorithm sign, if invalid (can't discern like electronic data processing equipment), then electronic data processing equipment abandons this note, flow process finishes;
I) correctness of verification MAC1, if invalid, then electronic data processing equipment abandons this note, flow process finishes;
J) validity of verification on-line transaction sequence number; If the on-line transaction sequence number that the on-line transaction sequence number that comprises in the note is preserved than electronic data processing equipment is little by 1; Show that then electronic wallet application do not accomplish one and supplement operation with money; Supplement record with money for one in the electronic data processing equipment rollback, a last circle is deposited the amount of money return in user's the account; If the on-line transaction sequence number that the on-line transaction sequence number that comprises in the note is preserved with electronic data processing equipment equates, show that then the mobile phone wallet application has completed successfully one and supplemented operation with money, electronic data processing equipment continues to handle this charging request; If other situation, then the on-line transaction sequence number is invalid, and electronic data processing equipment abandons this note, and flow process finishes.
In the embodiment of the invention, when mistake occurring in the processing procedure in this step, execution in step 4; Otherwise, execution in step 5.
Step 4, electronic data processing equipment send to portable terminal and supplement response (as sending through way of short messages) and Charge_Result with money, wherein comprise the information of mistake.
Further, after the electronic wallet application of portable terminal receives Charge_Result, upgrade the information of the last failure recharging payment, " separate extensions " simultaneously STK menu, flow process end.
Step 5, electronic data processing equipment are handled below continuing to carry out: a) the corresponding recharge amount of deduction from user's account; B) calculate MAC2, TAC; C) the mobile phone wallet on-line transaction sequence number with the user adds 1; D) preserve this Transaction Information (type of transaction, on-line transaction sequence number and TAC).
Step 6, electronic data processing equipment are replied to portable terminal and are supplemented response Charge_Result with money, wherein comprise: trade date, exchange hour and MAC2, and error code ' 0000 '.
After the electronic wallet application of step 7, portable terminal is received and supplemented response with money, carry out following treatment step:
A) the MAC value of verification note, if the MAC mistake, electronic wallet application abandons this note, flow process finishes;
B) validity of checking prediction message serial number CB, if CB is invalid, electronic wallet application abandons this note, flow process finishes;
C) optional, the validity (judgment principle is set by electronic wallet application) of checking prediction message serial number CA, if CA is invalid, electronic wallet application abandons this note, flow process finishes;
D) validity of verification MAC2, if invalid, electronic data processing equipment abandons this note;
E) if occur mistake a)~d), electronic wallet application is upgraded the information of the last failure recharging payment, the STK menu of " separating extension " simultaneously, and skip to step 8;
F) generate TAC;
G) stored value card on-line transaction sequence number adds 1, upgrades electronic purse balance amount (this circle is deposited the amount of money+original remaining sum);
H) upgrade the transaction details file;
I) upgrade the information of the last successful recharging payment, the STK menu of " separating extension " simultaneously.
Step 8, electronic wallet application are returned TAC value or the error message that this circle is deposited transaction.
After step 9, electronic data processing equipment are received the response that comprises the TAC value, carry out following step:
A) the MAC value of verification note, if the MAC mistake, electronic data processing equipment abandons this note, flow process finishes;
B) validity of checking prediction message serial number CA, if CA is invalid, then electronic data processing equipment abandons this note, flow process finishes;
C) optional, the validity (judgment principle is set by electronic data processing equipment) of checking prediction message serial number CB, if CB is invalid, then electronic data processing equipment abandons this note, flow process finishes;
D) if error code is ' 9000 ', if the validity of verification TAC invalid, produces indicating risk;
E) as if non-' 9000 ' of error code, misregistration information;
F) revise state that this circle deposits transaction record for confirming.
In sum; In the embodiment of the invention; Portable terminal can write at electronic data and carry once the information that electronic data writes in the request, and directly sends to electronic data processing equipment, makes electronic data processing equipment can know whether last electronic data writes success; And write when failure on once electronic data handle, thereby improve the success ratio that electronic data writes.And solved the various abnormal conditions of supplementing with money in the air, solved the collision problem of supplementing with money in the air and solved circle and deposited the fund security problem in the process of exchange.
The embodiment of the invention seven provides a kind of wiring method of electronic data, to portable terminal, POS machine and the mutual process of electronic data processing equipment, and schematic flow sheet as shown in Figure 9, this method may further comprise the steps:
Step 1, POS machine send Initialize For Read order to electronic wallet application.
After step 2, electronic wallet application receive Initialize For Read order; Return a nearest Successful Transaction information, a nearest failed transactions information (if do not have nearest Successful Transaction information or a nearest failed transactions information, then respective field is filled ' 0 '), random number and MAC1.
Step 3, POS machine are committed to electronic data processing equipment with the electronic wallet application information (like application sequence number) and the response message of step 2.
After step 4, electronic data processing equipment received the information of POS machine submission, if the validity of verification MAC1 invalid, was then returned miscue to the POS machine, does not carry out subsequent treatment; Otherwise, execution in step 5.
Step 5, electronic data processing equipment return to the POS machine and handle date, processing time and MAC2.
Step 6, invalid as if MAC1, POS machine submittal error information, flow process finishes; If MAC1 is effective, the POS machine sends Credit For Read order to electronic wallet application.
After step 7, electronic wallet application were received Credit For Read order, if the validity of verification MAC2 invalid, was returned error message; If MAC2 is effective, and this moment, the STK menu was in " hang-up " state, then removed " hang-up " state, and removed the last operation information, generated TAC.
Step 8, electronic wallet application are returned error message or TAC sign indicating number to the POS machine; If the user selects the POS machine to supplement with money, then operative norm POS machine recharge procedure repeats no more in this process embodiment of the invention.
In sum; In the embodiment of the invention, portable terminal can write the information that electronic data writes of carrying in the request once at electronic data, this electronic data is write request send to the POS machine; And send to electronic data processing equipment by the POS machine; Make electronic data processing equipment can know whether last electronic data writes success, and write when failure on once electronic data handle, thereby improve the success ratio that electronic data writes.And solved the various abnormal conditions of supplementing with money in the air, solved supplement with money in the air, collision problem that the POS machine is supplemented with money and solved circle and deposit the fund security problem in the process of exchange.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (14)

1. the wiring method of an electronic data is characterized in that, comprising:
Electronic data processing equipment receives electronic data and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
The information that said electronic data processing equipment writes according to said last electronic data judges whether last electronic data writes success;
If said electronic data processing equipment writes processing according to the information that this electronic data writes to this electronic data, and return the instruction that writes this electronic data; Otherwise said electronic data processing equipment returns the information that last electronic data writes failure, and last electronic data ablation process is carried out the cancellation operation.
2. the method for claim 1 is characterized in that, said electronic data processing equipment receives electronic data and writes request, comprising:
The electronic data that said electronic data processing equipment receives from portable terminal writes request; Perhaps,
The electronic data from said portable terminal that said electronic data processing equipment receives the forwarding of POS machine writes request.
3. the method for claim 1 is characterized in that, said electronic data processing equipment writes processing according to the information that this electronic data writes to this electronic data, comprising:
Said electronic data processing equipment writes said this electronic data in the electronic data of portable terminal is used, and uses pairing data message according to the electronic data that the electronic data that this writes upgrades said portable terminal.
4. the method for claim 1 is characterized in that, saidly returns the instruction that writes this electronic data and comprises: said electronic data processing equipment sends to portable terminal with the instruction of this electronic data of said write; Perhaps, said electronic data processing equipment sends to the POS machine with the instruction of this electronic data of said write, by said POS machine the instruction of this electronic data of said write is transmitted to said portable terminal;
Said electronic data processing equipment returns the information that last electronic data writes failure and comprises: said electronic data processing equipment sends to portable terminal with the information that said last electronic data writes failure; Perhaps, said electronic data processing equipment sends to the POS machine with the information that said last electronic data writes failure, by said POS machine the information that said last electronic data writes failure is transmitted to said portable terminal.
5. like each described method of claim 1-4, it is characterized in that said electronic data writes request, is specially:
The electronic data that said electronic data processing equipment triggering mobile terminals is initiated writes request; Perhaps,
When existing the electronic data accomplished of being untreated to write request in the portable terminal, what said portable terminal was initiated accomplishes the electronic data that electronic data writes request and writes request again to said being untreated; Perhaps,
When existing the electronic data accomplished of being untreated to write request in the portable terminal, what said portable terminal was initiated accomplishes the electronic data cancellation that electronic data writes request and writes request to said being untreated.
6. the writing system of an electronic data is characterized in that, comprising:
Portable terminal is used for sending electronic data to electronic data processing equipment and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Electronic data processing equipment is used to receive said electronic data and writes request, and judges according to the information that said last electronic data writes whether last electronic data writes success; If the information that writes according to this electronic data writes processing to this electronic data, and return the instruction that writes this electronic data; Otherwise, return the information that last electronic data writes failure to said portable terminal, and last electronic data ablation process carried out the cancellation operation.
7. system as claimed in claim 6 is characterized in that, also comprises:
The POS machine is used for that the electronic data from said portable terminal is write request and is transmitted to said electronic data processing equipment;
And the information that will write failure from the instruction that writes this electronic data or the last electronic data of said electronic data processing equipment is transmitted to said portable terminal.
8. an electronic data processing equipment is characterized in that, comprising:
Receiver module is used to receive electronic data and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Judge module is used for judging according to the information that said last electronic data writes whether last electronic data writes success;
Writing module, be used for when judged result when being, the information that writes according to this electronic data writes processing to this electronic data; When judged result for not the time, last electronic data ablation process is carried out the cancellation operation;
Sending module, be used for when judged result when being, return the instruction that writes this electronic data; When judged result for not the time, return the information that last electronic data writes failure.
9. electronic data processing equipment as claimed in claim 8 is characterized in that,
Said receiver module, the electronic data that specifically is used to receive from portable terminal writes request; Perhaps, the electronic data from said portable terminal of reception POS machine forwarding writes request.
10. electronic data processing equipment as claimed in claim 8 is characterized in that,
The said write module specifically is used for using to the electronic data of portable terminal and writes said this electronic data, and uses pairing data message according to the electronic data that the electronic data that this writes upgrades said portable terminal.
11. electronic data processing equipment as claimed in claim 8 is characterized in that,
Said sending module specifically is used for the instruction of this electronic data of said write is sent to portable terminal; Perhaps, the instruction of this electronic data of said write is sent to the POS machine, the instruction of this electronic data of said write is transmitted to said portable terminal by said POS machine;
The information that said last electronic data is write failure sends to portable terminal; Perhaps, the information that said last electronic data is write failure sends to the POS machine, by said POS machine the information that said last electronic data writes failure is transmitted to said portable terminal.
12., it is characterized in that said electronic data writes request, is specially like each described electronic data processing equipment of claim 8-11:
The electronic data that said electronic data processing equipment triggering mobile terminals is initiated writes request; Perhaps,
When existing the electronic data accomplished of being untreated to write request in the portable terminal, what said portable terminal was initiated accomplishes the electronic data that electronic data writes request and writes request again to said being untreated; Perhaps,
When existing the electronic data accomplished of being untreated to write request in the portable terminal, what said portable terminal was initiated accomplishes the electronic data cancellation that electronic data writes request and writes request to said being untreated.
13. a portable terminal is characterized in that, comprising:
Sending module is used for sending electronic data to electronic data processing equipment and writes request, and said electronic data writes and carries the information that information that this electronic data writes and last electronic data write in the request;
Receiver module is used for when the information that said electronic data processing equipment writes according to said last electronic data judges that last electronic data writes successfully, receiving the instruction that writes this electronic data that said electronic data processing equipment returns; The information that writes according to said last electronic data when said electronic data processing equipment judges when last electronic data writes failure, receives the information that last electronic data that said electronic data processing equipment returns writes failure.
14. portable terminal as claimed in claim 13 is characterized in that,
Said sending module specifically is used for writing request according to the trigger message of said electronic data processing equipment to said electronic data processing equipment transmission electronic data; Perhaps,
When the electronic data that has the completion of being untreated in the portable terminal writes request, write request to the said completion electronic data that is untreated and write request again to said electronic data processing equipment transmission electronic data; Perhaps,
When the electronic data that has the completion of being untreated in the portable terminal writes request, write request to the said completion electronic data that is untreated and write request to the cancellation of said electronic data processing equipment transmission electronic data.
CN2011100051122A 2011-01-04 2011-01-04 Method, system and device for writing electronic data Pending CN102592358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100051122A CN102592358A (en) 2011-01-04 2011-01-04 Method, system and device for writing electronic data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100051122A CN102592358A (en) 2011-01-04 2011-01-04 Method, system and device for writing electronic data

Publications (1)

Publication Number Publication Date
CN102592358A true CN102592358A (en) 2012-07-18

Family

ID=46480939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100051122A Pending CN102592358A (en) 2011-01-04 2011-01-04 Method, system and device for writing electronic data

Country Status (1)

Country Link
CN (1) CN102592358A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679458A (en) * 2013-12-04 2014-03-26 天地融科技股份有限公司 Transaction data handling method and smart card
CN103716778A (en) * 2013-09-25 2014-04-09 北京握奇数据系统有限公司 Method and system for combining mobile terminal client and smart card to realize remote service
CN103679458B (en) * 2013-12-04 2016-11-30 天地融科技股份有限公司 Process method and the smart card of transaction data
WO2017036234A1 (en) * 2015-08-31 2017-03-09 中兴通讯股份有限公司 Write operation control method, device and apparatus
CN107040523A (en) * 2017-03-21 2017-08-11 百富计算机技术(深圳)有限公司 Transmission of transaction data method, device and electronic equipment
CN109671209A (en) * 2018-12-06 2019-04-23 深圳怡化电脑股份有限公司 Method for processing business and system after financial terminal, financial terminal power-off
CN111294786A (en) * 2018-12-10 2020-06-16 深圳市广和通无线股份有限公司 Card writing protection method and device for mobile terminal, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076168A (en) * 2007-06-20 2007-11-21 华为技术有限公司 Method for managing intelligent interminal system and intelligent terminal
CN101420495A (en) * 2007-10-22 2009-04-29 上海富士施乐有限公司 A kind of communication protocol that is used for photocopier
US20090179075A1 (en) * 2003-07-11 2009-07-16 Gavin Shenker System and method for managing electronic data transfer applications
CN101520744A (en) * 2009-03-31 2009-09-02 上海远景数字信息技术有限公司 Self-checking serial communication system and self-checking method thereof
CN101841805A (en) * 2009-03-18 2010-09-22 中国移动通信集团公司 Card writing operation processing and synchronizing method of electronic card and relevant equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090179075A1 (en) * 2003-07-11 2009-07-16 Gavin Shenker System and method for managing electronic data transfer applications
CN101076168A (en) * 2007-06-20 2007-11-21 华为技术有限公司 Method for managing intelligent interminal system and intelligent terminal
CN101420495A (en) * 2007-10-22 2009-04-29 上海富士施乐有限公司 A kind of communication protocol that is used for photocopier
CN101841805A (en) * 2009-03-18 2010-09-22 中国移动通信集团公司 Card writing operation processing and synchronizing method of electronic card and relevant equipment
CN101520744A (en) * 2009-03-31 2009-09-02 上海远景数字信息技术有限公司 Self-checking serial communication system and self-checking method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716778A (en) * 2013-09-25 2014-04-09 北京握奇数据系统有限公司 Method and system for combining mobile terminal client and smart card to realize remote service
CN103679458A (en) * 2013-12-04 2014-03-26 天地融科技股份有限公司 Transaction data handling method and smart card
CN103679458B (en) * 2013-12-04 2016-11-30 天地融科技股份有限公司 Process method and the smart card of transaction data
WO2017036234A1 (en) * 2015-08-31 2017-03-09 中兴通讯股份有限公司 Write operation control method, device and apparatus
CN107040523A (en) * 2017-03-21 2017-08-11 百富计算机技术(深圳)有限公司 Transmission of transaction data method, device and electronic equipment
CN109671209A (en) * 2018-12-06 2019-04-23 深圳怡化电脑股份有限公司 Method for processing business and system after financial terminal, financial terminal power-off
CN109671209B (en) * 2018-12-06 2021-08-13 深圳怡化电脑股份有限公司 Financial terminal, and service processing method and system after power failure of financial terminal
CN111294786A (en) * 2018-12-10 2020-06-16 深圳市广和通无线股份有限公司 Card writing protection method and device for mobile terminal, mobile terminal and storage medium
CN111294786B (en) * 2018-12-10 2023-04-07 深圳市广和通无线股份有限公司 Card writing protection method and device for mobile terminal, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
US11481767B2 (en) Mobile commerce payment system
CN102542453B (en) Mobile payment identity verification method
CN1904923B (en) Method for implementing space transference and apparatus thereof
EP3410376A1 (en) Credit payment method and device based on card emulation of mobile terminal
CN102768787B (en) Action transaction method and handheld electronic device for action transaction
CN103310557B (en) A kind of mthods, systems and devices of electronic cash space transference of NFC mobile phone
CN101710433A (en) Electronic payment card and transaction method thereof
CN104200362A (en) Payment processing method based on NFC smart card and mobile internet terminal
CN102592358A (en) Method, system and device for writing electronic data
JP2019504429A (en) Credit settlement method and apparatus based on mobile terminal eSE
WO2017036249A1 (en) Method and device using mobile terminal to make payment
CN101872513B (en) Data processing method, device and system based on POS (Point-Of-Sale) machine
CN101996332A (en) Intelligent security device
EP2523485A1 (en) Method and service platform for implementing funds transfer using mobile terminal
WO2018118253A1 (en) Configuring a transaction device
CN110363511B (en) Service realization method based on IC card, virtual IC card and mobile terminal
EP3814997B1 (en) Chip card socket communication
CN105654376A (en) Card-less withdrawal method, related device and system
KR101469072B1 (en) Mobile Financial Transaction Method by using Mobile Devices
CN106326793A (en) Information processing method and device
CN105488922A (en) Cardless money withdrawing method and related devices and systems
WO2023191915A1 (en) In-person peer-to-peer transfer using tap
KR101068098B1 (en) Mobile Devices
CN105991538B (en) Data interaction method and system
CN113657885A (en) Mobile phone bank off-line collection and payment method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120718