CN106503782B - NFC smart card analogy method and device - Google Patents

NFC smart card analogy method and device Download PDF

Info

Publication number
CN106503782B
CN106503782B CN201510560991.3A CN201510560991A CN106503782B CN 106503782 B CN106503782 B CN 106503782B CN 201510560991 A CN201510560991 A CN 201510560991A CN 106503782 B CN106503782 B CN 106503782B
Authority
CN
China
Prior art keywords
script
instruction
trading instruction
nfc smart
sent
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
CN201510560991.3A
Other languages
Chinese (zh)
Other versions
CN106503782A (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.)
Shanghai Fuwei Fast Digital Technology Co.,Ltd.
Original Assignee
Shanghai Fudan Microelectronics 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 Shanghai Fudan Microelectronics Group Co Ltd filed Critical Shanghai Fudan Microelectronics Group Co Ltd
Priority to CN201510560991.3A priority Critical patent/CN106503782B/en
Publication of CN106503782A publication Critical patent/CN106503782A/en
Application granted granted Critical
Publication of CN106503782B publication Critical patent/CN106503782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of NFC smart card analogy method and device, which comprises NFC smart machine receives the current trading instruction that smart card transaction terminal is sent;It judges whether there is and pre- issues script;When existing, when issuing script in advance, whether the present instruction that judgement issues in script in advance matches with current trading instruction;When issuing the present instruction in script in advance and matching with current trading instruction, by issuing response data corresponding with current trading instruction in script is sent to smart card transaction terminal in advance, and the serial number of the present instruction is moved back one;When there is no script is issued in advance or when the pre- present instruction issued in script is mismatched with current trading instruction, current trading instruction is sent to server;Reception server sends the response data and newly pre- issues script, and the response data is sent to smart card transaction terminal.Using the method and device, smart card transaction business time delay can be effectively reduced.

Description

NFC smart card analogy method and device
Technical field
The present invention relates to NFC technique field more particularly to a kind of NFC smart card analogy method and devices.
Background technique
Near field communication (Near Field Communication, NFC) technology is from radio frequency identification (Radio Frequency Identification, RFID) change of technique is a kind of wireless communication skill using 13.56MHz frequency Art.After smart machine integrates contactless front end (Contactless Fronted, CLF) chip and antenna, electromagnetism is utilized Principle of induction realizes that non-contacting data are transmitted between smart machine and smart card transaction terminal.
NFC smart machine intends (Host-based Card Emulation, HCE) technology using the card mold of Intrusion Detection based on host, will Originally it needs the smart card industry of the distribution in safety element (the Secure Element, SE)/entity card to make sure and uses software It realizes, this mode both got rid of to single-wire-protocol-client identification module (Single Wire Protocol- Subscriber Identity Module, SWP-SIM) operator and possess eSE cell phone manufacturer dependence, also save industry The entity card cost being engaged in provider's early period.
In the prior art, on NFC smart machine using HCE technical modelling smart card business there are mainly two types of side Smart card service logic is realized by pure software mode smart machine on likes: 1);2) smart card service logic is all stored In cloud server, smart card service logic is realized using the mode of NFC smart machine and cloud server interaction.
For mode 1), implementation cost is smaller, but safety wretched insufficiency, it not can guarantee the safety of transaction, and mode 2) safety that can then effectively ensure that transaction becomes existing and uses HCE technical modelling smart card on NFC smart machine The major way of business.But for mode 2), when carrying out a transaction business, NFC smart machine and cloud server it Between need to carry out multiple network communication, can have certain delay, be unsatisfactory for the requirement of exchange hour.
Summary of the invention
The embodiment of the present invention solves the problems, such as it is to reduce the number communicated between NFC smart machine and server, reduces intelligence It can card transaction business time delay.
To solve the above problems, the embodiment of the present invention provides a kind of NFC smart card analogy method, comprising:
NFC smart machine receives the current trading instruction that smart card transaction terminal is sent;
It judges whether there is and pre- issues script;
When exist issue script in advance when, judge the pre- present instruction issued in script and current trading instruction whether Match;
When the pre- present instruction issued in script is matched with current trading instruction, by it is described it is pre- issue in script with The corresponding response data of the current trading instruction is sent to the smart card transaction terminal, and by the serial number of the present instruction Move back one;
When there is no script is issued in advance or the pre- present instruction issued in script is mismatched with current trading instruction When, the current trading instruction is sent to server so that the server to the current trading instruction handled with It generates corresponding response data and newly pre- issues script;
The response data and newly pre- for receiving the server transmission issue script, and will be with the current transaction Corresponding response data is instructed to be sent to smart card transaction terminal, the new pre- script that issues includes: current trading instruction The ordered queue of subsequent transaction instruction and corresponding response data.
Optionally, the NFC smart card analogy method further include: receive the user authentication information of user's input, and by institute It states user authentication information and is sent to server;The verification result that the server is sent is received, and when the authentication succeeds, the clothes Business device allows to receive and process the subsequent transaction instruction of NFC smart machine transmission, otherwise refusal service.
Optionally, when script is not present or the pre- present instruction issued in script and current trading instruction not The current trading instruction is sent to server by timing, comprising: by the current trading instruction and current trading instruction it It is preceding not on the trading instruction sent and corresponding response data sequence be sent to the server so that the server is not according on The trading instruction sent and corresponding response data sequence generate newly pre- and issue script.
Optionally, it after detecting that the pre- present instruction issued in script and current trading instruction mismatch, also wraps Include: remove received before the current trading instruction pre- issue script.
To reduce the number communicated between NFC smart machine and cloud server, smart card transaction business time delay is reduced, originally Inventive embodiments additionally provide a kind of NFC smart card analogy method, comprising:
Receive the current trading instruction that NFC smart machine is sent;
Response data corresponding with the current trading instruction is sent to the NFC smart machine, it is intelligent according to the NFC The trading instruction that has sent of this transaction that equipment is sent, which judges whether there is, new pre- issues script;
When exist it is new it is pre- issue script when, Xiang Suoshu NFC smart machine send it is described it is new it is pre- issue script, it is described new It is pre- issue script include: current trading instruction subsequent transaction instruction and corresponding response data ordered queue.
Optionally, before receiving the trading instruction that NFC smart machine is sent, further includes: receive the NFC smart machine The user authentication information of transmission verifies the user authentication information, and verification result is sent to the NFC and is intelligently set It is standby;When failing the authentication, the subsequent transaction instruction that the NFC smart machine is sent is rejected, until verify next time.
Optionally, when there is no it is described it is pre- issue script when, further includes: record trading instruction, and receive maintenance personnel The pre- of configuration issues script and saves.
The embodiment of the invention provides a kind of NFC smart card simulators, comprising:
First receiving unit, for receiving the current trading instruction of smart card transaction terminal transmission;
First judging unit pre- issues script for judging whether there is;
Second judgment unit, for when there are it is described it is pre- issue script when, judge the pre- current finger issued in script It enables and whether being matched with current trading instruction;
First transmission unit, for inciting somebody to action when the pre- present instruction issued in script is matched with current trading instruction It is described it is pre- issue response data corresponding with the current trading instruction in script and be sent to the smart card transaction terminal, and will The serial number of the present instruction moves back one;
Second transmission unit, for when there is no in advance issue script when or the pre- present instruction issued in script with When current trading instruction mismatches, the current trading instruction is sent to server, so that the server is to described current Trading instruction is handled to generate corresponding response data and newly pre- and issue script;
Second receiving unit, the response data and newly pre- for receiving the server transmission issue script, It is described new pre- to issue the subsequent transaction instruction and the ordered queue of corresponding response data that script includes: current trading instruction.
Optionally, when script is not present or the pre- present instruction issued in script and current trading instruction not Timing, second transmission unit are also used to: by before the current trading instruction and current trading instruction not on the friendship sent Easily instruction and corresponding response data sequence are sent to the server.
The embodiment of the invention also provides another NFC smart card simulators, comprising:
Third receiving unit, for receiving the current trading instruction of NFC smart machine transmission;
4th transmission unit, for sending number of responses corresponding with the current trading instruction to the NFC smart machine According to, and when exist it is new it is pre- issue script when, Xiang Suoshu NFC smart machine send it is described it is new it is pre- issue script, it is described new It is pre- issue script include: current trading instruction subsequent transaction instruction and corresponding response data ordered queue.
Optionally, the NFC smart card simulator further include: recording unit, for recording trading instruction;Storage is single Member issues script and saves suitable for receiving the pre- of maintenance personnel's configuration.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantage that
NFC smart machine is in the current trading instruction for receiving smart card transaction terminal transmission, and in NFC smart machine When issuing the present instruction of script in advance and match with current trading instruction, NFC smart machine pre- will directly can issue in script and The current corresponding response data of trading instruction is sent to smart card transaction terminal, without current trading instruction is forwarded to clothes Business device receives the response data that server is sent, then response data is sent to smart card transaction terminal.So as to reduce The number of communications of NFC smart machine and server, and then smart card transaction business time delay can be reduced.
Detailed description of the invention
Fig. 1 is the flow chart of the smart card analogy method of one of embodiment of the present invention NFC smart card simulator;
Fig. 2 is the flow chart of the smart card analogy method of another NFC smart card simulator in the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of one of embodiment of the present invention NFC smart card simulator;
Fig. 4 is the structural schematic diagram of another NFC smart card simulator in the embodiment of the present invention.
Specific embodiment
The card mold of Intrusion Detection based on host intends (Host-base Card Emulation, HCE) technology, is Google in Android A kind of system service application programming interface (the Application Programming newly increased in 4.4 systems Interface, API).HCE allows NFC smart machine in the case where no hardware safe unit (SE), using card mold Simulation models carries out NFC payment.
In the prior art, on NFC smart machine using HCE technical modelling smart card business there are mainly two types of side Formula:
1) smart card service logic is realized by the pure software mode on smart machine;
2) smart card service logic is all deposited in into server, uses the mode of NFC smart machine and server interaction Realize smart card service logic.
Wherein mode 2) safety that can then effectively ensure that transaction, become existing and is used on NFC smart machine The major way of HCE technical modelling smart card business.
But for mode 2), when carrying out a transaction business, need to carry out between NFC smart machine and server more Secondary network communication can have certain delay, can not be suitable for the business scope more demanding to exchange hour.
In embodiments of the present invention, NFC smart machine receive smart card transaction terminal transmission current trading instruction, And the pre- present instruction for issuing script in NFC smart machine, when matching with current trading instruction, NFC smart machine can be direct It response data corresponding with current trading instruction in script be issued will be sent to smart card transaction terminal in advance, without will be current Trading instruction is forwarded to server, receives the response data that server is sent, then response data is sent to smart card transaction eventually End.So as to reduce the number of communications of NFC smart machine and server, and then smart card transaction business time delay can be reduced.
It is understandable to enable the above objects, features, and advantages of the embodiment of the present invention to become apparent, it is right with reference to the accompanying drawing Specific embodiments of the present invention are described in detail.
The embodiment of the invention provides a kind of NFC smart card analogy methods, referring to Fig.1, carry out below by way of specific steps It is described in detail.
In embodiments of the present invention, the CLF chip for being provided with NFC function, NFC intelligence can be set in NFC smart machine Equipment carries out information exchange using near field communication technology by the corresponding antenna of CLF chip, with smart card transaction terminal.? In practical application, CLF chip and NFC smart machine can pass through Serial Peripheral Interface (SPI) (Serial Peripheral Interface, SPI) it is communicated, twin wire universal serial bus (Inter-Integrated Circuit, I2C) can also be used Or asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/Transmitter, UART) is communicated, also It can be communicated, be not repeated herein using other communication modes.
Step S101 receives the current trading instruction that smart card transaction terminal is sent.
In specific implementation, smart card transaction terminal can pass through near field communication technology and NFC intelligence to be any Energy equipment realizes the terminal equipment of card business.Smart card transaction terminal can carry contactless NFC reader, for example, NFC read head is provided with the end application for realizing card transaction business, and transaction business may include swiping the card, paying the bill Business.
In practical applications, smart card transaction terminal can be the POS machine on bus, or subway portal and The gate of exit setting.
When in embodiments of the present invention, in the induction range that NFC smart machine is in smart card transaction terminal, smart card Transaction terminal can be informed in induction range there are smart card, be informed in induction range there are when smart card, to NFC intelligence It can equipment transmission trading instruction.NFC smart machine executes after the current trading instruction for receiving smart card transaction terminal transmission Step S102.
In practical applications, client-side program can be preset in NFC smart machine, is received by client-side program The trading instruction that smart card transaction terminal is sent.Client-side program can be operate in the application software in NFC smart machine, The embedded program or other forms that can be integrated in NFC smart machine hardware.
Step S102 is judged whether there is and pre- is issued script.
It in specific implementation, can after the current trading instruction that NFC smart machine receives smart card transaction terminal transmission First to judge to issue script with the presence or absence of pre- in NFC smart machine.
In embodiments of the present invention, NFC smart machine can be stored in advance in by issuing script in advance, and NFC smart machine can be with The pre- of server transmission is received in advance to issue script and save.When in NFC smart machine in the presence of script is issued in advance, step is executed S103;When in NFC smart machine there is no script is issued in advance, step S105 is executed.
Step S103, judges whether the pre- present instruction issued in script matches with current trading instruction.
In embodiments of the present invention, issuing script in advance may include: trading instruction and response corresponding with trading instruction The ordered sequence of data.Issue in advance includes that multiple trading instructions in process of exchange and trading instruction are corresponding in script Response data, issues the trading instruction for including in script in advance and response data is ordered into sequence, according in process of exchange Trigger sequence is arranged successively.
When receiving the current trading instruction of smart card transaction terminal transmission, it can be determined that the storage of NFC smart machine Whether the present instruction issued in script in advance matches with current trading instruction.When storage the pre- present instruction issued in script with When current trading instruction matching, step S104 is executed;Otherwise, step S105 is executed.
Step S104, by it is described it is pre- issue response data corresponding with the current trading instruction in script be sent to it is described Smart card transaction terminal, and present instruction serial number is moved back one.
For example, in t1Moment, the current trading instruction that smart card transaction terminal is sent to NFC smart machine are trading instruction A.Stored in NFC smart machine it is pre- issue in script 1, there are trading instruction A, B, C, D and one-to-one number of responses According to 1,2,3,4, and the present instruction issued in script in advance is trading instruction A, then can be determined that the pre- current finger issued in script The current trading instruction sent with NFC smart machine is enabled to match, the corresponding response data of trading instruction A is response data 1, because This, response data 1 is sent to smart card transaction terminal by NFC smart machine, and present instruction serial number is moved back one, i.e., will work as Trading instruction B is directed toward in preceding instruction.
After smart card transaction terminal receives the response data 1 of NFC smart machine transmission, response data 1 can be carried out Corresponding processing.In t2Moment, the current trading instruction that smart card transaction terminal is sent to NFC smart machine are trading instruction B. At this point, the pre- present instruction issued in script 1 of NFC smart machine is trading instruction B, therefore, it is possible to determine that issue script in advance In present instruction matched with current trading instruction.
In embodiments of the present invention, after the completion of step S104 is executed, step S108 is executed.
Step S105, when there is no script is issued in advance or the pre- present instruction issued in script is traded with current When instruction mismatches, the current trading instruction is sent to server.
In embodiments of the present invention, it may is that in NFC smart machine there is no pre-stored pre- the reason of issuing script The current trading instruction that smart card transaction terminal is sent is first trading instruction in entire process of exchange, at this point, NFC is intelligent Equipment is not yet communicated with server, and therefore, there is no issue script in advance in NFC smart machine.In practical applications, it also deposits Other the case where cause in NFC smart machine there is no it is pre-stored it is pre- issue script, be not repeated herein.
In embodiments of the present invention, when there is no issue script in advance or described pre- issue in script in NFC smart machine When present instruction and current trading instruction mismatch, current trading instruction can also be sent to server.Server is to having connect The trading instruction received is handled to generate corresponding response data and newly pre- and issue script.
In embodiments of the present invention, when there is no issue script in advance or described pre- issue in script in NFC smart machine When present instruction and current trading instruction mismatch, can by before current trading instruction and current trading instruction not on give Trading instruction and corresponding response data sequence are sent to server.Server is according to the trading instruction sent on not and corresponding Response data sequence generates and new pre- issues script.
Step S106, the response data and newly pre- for receiving the server transmission issue script.
In specific implementation, server is after the current trading instruction for receiving the forwarding of NFC smart machine, to current transaction Instruction is handled to generate corresponding response data, and response data is sent to NFC smart machine.NFC smart machine exists After the response data corresponding with current trading instruction for receiving server transmission, step S107 is executed.
In embodiments of the present invention, server, can be with after the current trading instruction for receiving the forwarding of NFC smart machine Judge whether there is it is new it is pre- issue script, it is new pre- to issue the subsequent transaction instruction that script may include: current trading instruction And the ordered queue of corresponding response data.When have in server it is new it is pre- issue script when, server pre- is issued new Script is sent to NFC smart machine.
In embodiments of the present invention, receive it is new it is pre- issue script after, present instruction, which is directed toward, new pre- issues script In first instruction.
For example, in practical applications, the ordered queue of the trading instruction executed in a process of exchange includes that transaction refers to Enable A, B, C, D.Server receives the current trading instruction A of NFC smart machine forwarding, exists in server and issues script M in advance, Issue in advance includes trading instruction B, C, D and its one-to-one response data 2,3,4 in script M.It is issued in script M in advance and includes Trading instruction and the ordered queue of corresponding response data be the instruction of current trading instruction A corresponding subsequent transaction and corresponding The ordered queue of response data, therefore, server will issue script M as issuing script is sent to NFC smart machine in advance in advance. NFC smart machine receive it is pre- issue script M after, will in advance issue script M caching.
In embodiments of the present invention, server can be cloud server, lead between NFC smart machine and cloud server Wireless network is crossed to be communicated.In practical applications, the communication between NFC smart machine and cloud server can be with It includes any of the following or a variety of: 2G, 3G, 4G, WIFI.
The response data is sent to the smart card transaction terminal by step S107.
It can be seen that NFC smart machine is in the current trading instruction for receiving smart card transaction terminal transmission, and NFC intelligence Can the pre- present instruction for issuing script in equipment when being matched with current trading instruction, NFC smart machine can directly will be pre- under Response data corresponding with current trading instruction is sent to smart card transaction terminal in hair script, without referring to current transaction Order is forwarded to server, receives the response data that server is sent, then response data is sent to smart card transaction terminal.To The number of communications of NFC smart machine and server can be reduced, and then smart card transaction business time delay can be reduced.
In embodiments of the present invention, the pre- present instruction issued in script and current friendship stored in NFC smart machine When easily instruction mismatches, determine that the currently stored pre- script that issues is useless script, NFC smart machine can by storage it is pre- under Script is sent out to remove.
In practical applications, it is understood that there may be NFC smart machine is lost, and causes NFC smart machine to be stolen by criminal and brushes, makes The case where being lost at user.To solve the above problems, in embodiments of the present invention, NFC smart machine is receiving smart card transaction Before the trading instruction that terminal is sent, i.e. NFC smart machine is before being traded, transaction industry of the user in NFC smart machine Business inputs user authentication information in interface, for example, username and password etc..After the completion of user authentication information input, Yong Hudian " confirmation " option is hit, username and password is sent to server by NFC smart machine.
Server verifies the username and password received, when verification result be proved to be successful when, server to NFC smart machine sends the verification result of " being proved to be successful ", receives and processes the subsequent transaction instruction of NFC smart machine transmission, So as to realize the transaction between NFC smart machine and smart card transaction terminal.When failing the authentication, it is sent out to NFC smart machine The verification result of " authentication failed " is sent, server rejects any trading instruction that NFC smart machine is sent, until next time Verifying.
In practical applications, in order to guarantee transaction safety, be related to encryption and decryption, subscription authentication data processing by Server is handled.For example, key and the relevant data storage of key are in the server, instruction relevant to key is by servicing Application program in device is handled etc..
Step S108 judges whether to receive new trading instruction.
In embodiments of the present invention, when receiving new trading instruction, determine that current transaction flow has not been executed, it can With return step S101;When not receiving new trading instruction, determine that current transaction flow is finished, terminates process.
Below for using NFC smart machine brush public transport POS machine, to the NFC intelligence provided in the above embodiment of the present invention Energy card analogy method is illustrated.
NFC smart machine is set in the process of exchange of brush public transport POS machine, public transport POS machine sends 10 to NFC smart machine Trading instruction, be followed successively by trading instruction 1,2,3 ..., 10.User holds NFC smart machine close to public transport POS machine, in NFC intelligence When energy equipment is in the induction region of public transport POS machine, public transport POS machine sends trading instruction 1 to NFC smart machine.
NFC smart machine judges that there is no issue foot in advance in current NFC smart machine after receiving trading instruction 1 This.Therefore trading instruction 1 is sent to cloud server by NFC smart machine.
Cloud server is parsed and is handled after receiving trading instruction 1, to trading instruction 1, and generation refers to transaction 1 corresponding response data is enabled, and judges whether there is and pre- issues script M.When existing, when issuing script M in advance, cloud server will It issues script M in advance and response data 1 corresponding with trading instruction 1 is sent to NFC smart machine.When there is no issue script in advance When M, response data 1 corresponding with trading instruction 1 is sent to NFC smart machine by cloud server.Wherein, script M is issued in advance Include trading instruction 2~6 and one-to-one response data 2 '~6 '.Trading instruction 7,8,9,10 is relevant to key Instruction, to ensure information security, the corresponding response data 7~10 of trading instruction 7~10 with not issuing script M and be sent in advance NFC smart machine.
NFC smart machine receives response data 1 ' corresponding with trading instruction 1 and issues script M in advance, will issue in advance Script M caching, and response data 1 ' is sent to public transport POS machine.Public transport POS machine receives response data 1 ', to response data After the completion of 1 ' processing, trading instruction 2 is sent to NFC smart machine.
It is trading instruction 2, current NFC smart machine that NFC smart machine, which receives the current trading instruction that public transport POS machine is sent, To issue in script M present instruction be trading instruction 2 for middle storage pre-, and the corresponding response data 2 ' of trading instruction 2, therefore, NFC intelligence The response data 2 ' issued in script M in advance is directly sent to public transport POS machine, is not necessarily to by energy equipment when receiving trading instruction 2 Trading instruction 2 is forwarded to cloud server again.
Public transport POS machine successively sends trading instruction 3,4,5,6 to NFC smart machine, due to what is cached in NFC smart machine It issues in script M, exists and the corresponding response data 3 ', 4 ', 5 ', 6 ' of trading instruction 3,4,5,6, therefore NFC smart machine in advance When receiving remaining trading instruction, the corresponding response data of trading instruction directly can be sent to public transport POS machine, without It to be directed to each trading instruction, is sent to cloud server, and receives the response data of cloud server transmission, then will ring It answers data to be sent to public transport POS machine, therefore greatly reduces time that NFC smart machine and cloud server carry out wireless communication Number.
Public transport POS machine sends trading instruction 7 to NFC smart machine.Due to issuing present instruction and current friendship in script M in advance Easily instruction mismatches, therefore NFC smart machine by trading instruction 7 and has executed the trading instruction 1-6 of completion and is forwarded to cloud Hold server.Cloud server parses trading instruction 7, judges that the pre- of storage issues in script set, under pre- Script is sent out, the corresponding response data 7 ' of trading instruction 7 is sent to NFC smart machine by cloud server.NFC smart machine is connecing After receiving response data 7 ', response data 7 ' is forwarded to public transport POS machine.
Public transport POS machine sends trading instruction 8,9, the process flow of 10, NFC smart machine and cloud to NFC smart machine again The process flow of end server is referred to the process flow of NFC smart machine and cloud server processing trading instruction 7, herein It does not repeat them here.
The embodiment of the invention also provides another NFC smart card analogy methods, referring to Fig. 2, below by way of specific steps It is described in detail.
Step S201 receives the current trading instruction that NFC smart machine is sent.
Step S202 sends response data corresponding with the current trading instruction to NFC smart machine, and ought exist New pre- when issuing script, Xiang Suoshu NFC smart machine, which is sent, described new pre- issues script.
In embodiments of the present invention, when server receives the current trading instruction of NFC smart machine transmission, Ji Kexiang NFC smart machine sends response data corresponding with current trading instruction.
In embodiments of the present invention, the new pre- script that issues can refer to: instruct with the subsequent transaction of current trading instruction And the ordered queue of corresponding response data.
In practical applications, can be pre-configured in server it is multiple it is pre- issue script, issuing script in advance can be with transaction The smart card transaction terminal process of business mainstream on the market is related.
In practical applications, it also exists as follows possibility: occurring in the market for a certain transaction business a kind of new Transaction flow, but in server it is preconfigured it is pre- issue in script set, and there is no corresponding with new transaction flow Script.Therefore, it when there is new transaction flow, possibly can not be simulated using the smart card provided in the above embodiment of the present invention Method.
As a result, in embodiments of the present invention, when there are said circumstances, server refers to the transaction in new transaction flow Order is recorded and stored.Server maintenance personnel can periodically or non-periodically safeguard server.Maintenance personnel exists When viewing trading instruction corresponding there is currently new business, it can be matched for the new corresponding trading instruction of transaction flow It sets.
In practical applications, a preset threshold can also be set in the server, in a maintenance period, new friendship When the number that easily the corresponding trading instruction of process occurs is more than preset threshold, maintenance personnel is reminded new transaction flow currently occur Journey.
It in embodiments of the present invention, is the safety for guaranteeing transaction, it can be in server end to current NFC smart machine Carry out user's checking.Server receives the authentication information for user's input that NFC smart machine is sent, for example, username and password, And transmit verification result to NFC smart machine.Only when being proved to be successful, NFC smart machine just can be carried out transaction, to mention The high safety of transaction avoids user because NFC smart machine, which loses, leads to stolen brush the case where.
Referring to Fig. 3, the embodiment of the invention also provides a kind of NFC smart card simulators 30, comprising: the first receiving unit 301, the first judging unit 302, second judgment unit 303, the first transmission unit 304, the second transmission unit 305 and second connect Receive unit 306, in which:
First receiving unit 301, for receiving the current trading instruction of smart card transaction terminal transmission;
First judging unit 302 pre- issues script for judging whether there is;
Second judgment unit 303, for when there are it is described it is pre- issue script when, judge it is described it is pre- issue it is current in script Whether instruction matches with current trading instruction;
First transmission unit 304, for when the pre- present instruction issued in script is matched with current trading instruction, By it is described it is pre- issue response data corresponding with the current trading instruction in script and be sent to the smart card transaction terminal, and The serial number of the present instruction is moved back one;
Second transmission unit 305, for when there is no in advance issue script when or the pre- present instruction issued in script When mismatching with current trading instruction, the current trading instruction is sent to server, so that the server is worked as to described Preceding trading instruction is handled to generate corresponding response data and newly pre- and issue script;
Second receiving unit 306, the response data and newly pre- for receiving the server transmission issue foot This, it is described new pre- to issue the subsequent transaction instruction and the orderly team of corresponding response data that script includes: current trading instruction Column.
In specific implementation, when be not present script when or the pre- present instruction issued in script and currently trade refer to When enabling mismatch, second transmission unit 305 be can be also used for: the current trading instruction and this transaction have been received To trading instruction and corresponding response data sequence be sent to the server.
In specific implementation, the NFC smart card simulator 30 can also include: clearing cell 307, for when described When issuing the present instruction and current trading instruction mismatch in script in advance, removing receives before the current trading instruction Pre- issue script.
Referring to Fig. 4, the embodiment of the invention also provides another NFC smart card simulators 40, comprising: third receives single Member 401 and the 4th transmission unit 402, in which:
Third receiving unit 401, for receiving the current trading instruction of NFC smart machine transmission;
4th transmission unit 402, for sending response corresponding with the current trading instruction to the NFC smart machine Data, and when exist it is new it is pre- issue script when, Xiang Suoshu NFC smart machine send it is described it is new it is pre- issue script, it is described It is new pre- to issue the subsequent transaction instruction and the ordered queue of corresponding response data that script includes: current trading instruction.
In specific implementation, NFC smart card simulator 40 can also include: recording unit 403, refer to for recording transaction It enables;Storage unit (is not shown) in Fig. 4, issues script suitable for receiving the pre- of maintenance personnel's configuration and saves.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in computer readable storage medium, and storage is situated between Matter may include: ROM, RAM, disk or CD etc..
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute Subject to the range of restriction.

Claims (11)

1. a kind of NFC smart card analogy method characterized by comprising
NFC smart machine receives the current trading instruction that smart card transaction terminal is sent;
Judge that the NFC smart machine issues script with the presence or absence of pre-;
When the NFC smart machine there are it is described it is pre- issue script when, judge the pre- present instruction issued in script and work as Whether preceding trading instruction matches;
When the pre- present instruction issued in script is matched with current trading instruction, by it is described it is pre- issue in script with it is described The current corresponding response data of trading instruction is sent to smart card transaction terminal, and the serial number of the present instruction is moved back one Position;
When the NFC smart machine there is no it is described it is pre- issue script when or the pre- present instruction issued in script with work as When preceding trading instruction mismatches, the current trading instruction is sent to server, so that the server is to the current friendship Easily instruction is handled to generate corresponding response data and newly pre- and issue script;
The response data and newly pre- for receiving the server transmission issue script, and will be with the current trading instruction Corresponding response data is sent to smart card transaction terminal, and the new pre- script that issues includes: the subsequent of current trading instruction The ordered queue of trading instruction and corresponding response data.
2. NFC smart card analogy method as described in claim 1, which is characterized in that further include: receive the user of user's input Verification information, and the user authentication information is sent to server;The verification result that the server is sent is received, and works as and tests When demonstrate,proving successfully, the server allows to receive and process the subsequent transaction instruction of NFC smart machine transmission, otherwise refusal service.
3. NFC smart card analogy method as described in claim 1, which is characterized in that when there is no in advance issue script when or institute When stating the pre- present instruction issued in script and current trading instruction mismatch, the current trading instruction is sent to service Device, comprising: by before the current trading instruction and current trading instruction not on the trading instruction and corresponding number of responses sent Be sent to the server according to sequence so that the server according to it is described not on the trading instruction and corresponding response data sent Sequence generates newly pre- and issues script.
4. NFC smart card analogy method as described in claim 1, which is characterized in that when detecting described pre- issue in script Present instruction and current trading instruction mismatch after, further includes: removing received before the current trading instruction it is pre- Issue script.
5. a kind of NFC smart card analogy method characterized by comprising
Server receives the current trading instruction that NFC smart machine is sent;
Response data corresponding with the current trading instruction is sent to the NFC smart machine, according to the transmission of NFC smart machine The trading instruction that has sent of this transaction judge whether there is and new pre- issue script;When issuing script in the presence of newly pre-, To the NFC smart machine send it is described it is new it is pre- issue script, the new pre- script that issues includes: current trading instruction The ordered queue of subsequent transaction instruction and corresponding response data.
6. NFC smart card analogy method as claimed in claim 5, which is characterized in that in the friendship for receiving the transmission of NFC smart machine Easily before instruction, further includes: receive the user authentication information that the NFC smart machine is sent, to the user authentication information into Row verifying, and verification result is sent to the NFC smart machine;When failing the authentication, the NFC smart machine is rejected The subsequent transaction of transmission instructs, until verify next time.
7. NFC smart card analogy method as claimed in claim 5, which is characterized in that when there is no it is described it is pre- issue script when, Further include: record trading instruction;And it receives the pre- of maintenance personnel's configuration and issues script and save.
8. a kind of NFC smart machine characterized by comprising
First receiving unit, for receiving the current trading instruction of smart card transaction terminal transmission;
First judging unit, for judging that the NFC smart machine issues script with the presence or absence of pre-;
Second judgment unit, for when the NFC smart machine there are it is described it is pre- issue script when, judge described pre- to issue script In present instruction whether matched with current trading instruction;
First transmission unit will be described for when the pre- present instruction issued in script is matched with current trading instruction Response data corresponding with the current trading instruction in script is issued in advance and is sent to the smart card transaction terminal, and will be described The serial number of present instruction moves back one;
Second transmission unit, for when there is no when issuing script in advance or described pre- issue in script the NFC smart machine When present instruction and current trading instruction mismatch, the current trading instruction is sent to server, so that the server The current trading instruction is handled to generate corresponding response data and newly pre- and issue script;
Second receiving unit, for receive the server send the response data and it is new it is pre- issue script, it is described new It is pre- issue script include: current trading instruction subsequent transaction instruction and corresponding response data ordered queue.
9. NFC smart machine as claimed in claim 8, which is characterized in that when script is not present or described pre- issue script In present instruction and current trading instruction mismatch when, second transmission unit is also used to: by the current trading instruction And before current trading instruction not on the trading instruction sent and corresponding response data sequence be sent to the server.
10. a kind of NFC smart card simulator characterized by comprising
Third receiving unit, for receiving the current trading instruction of NFC smart machine transmission;
4th transmission unit, for sending response data corresponding with the current trading instruction to the NFC smart machine, with And when exist it is new it is pre- issue script when, Xiang Suoshu NFC smart machine send it is described it is new it is pre- issue script, it is described it is new it is pre- under Hair script includes: subsequent transaction instruction and the ordered queue of corresponding response data of current trading instruction.
11. NFC smart card simulator as claimed in claim 10, which is characterized in that further include: recording unit, for remembering Record trading instruction and storage unit;It issues script suitable for receiving the pre- of maintenance personnel's configuration and saves.
CN201510560991.3A 2015-09-06 2015-09-06 NFC smart card analogy method and device Active CN106503782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510560991.3A CN106503782B (en) 2015-09-06 2015-09-06 NFC smart card analogy method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510560991.3A CN106503782B (en) 2015-09-06 2015-09-06 NFC smart card analogy method and device

Publications (2)

Publication Number Publication Date
CN106503782A CN106503782A (en) 2017-03-15
CN106503782B true CN106503782B (en) 2019-04-30

Family

ID=58286319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510560991.3A Active CN106503782B (en) 2015-09-06 2015-09-06 NFC smart card analogy method and device

Country Status (1)

Country Link
CN (1) CN106503782B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10068114B1 (en) * 2017-09-12 2018-09-04 Nxp B.V. System and method for implementing a host card emulation (HCE) command stack in a mobile phone
CN113469678B (en) * 2021-06-21 2023-08-04 深圳市雪球科技有限公司 Transaction reminding method, card swiping method and DESFire card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007076456A2 (en) * 2005-12-28 2007-07-05 Sandisk Corporation Nested memory system with near field communications capability
KR20130030852A (en) * 2011-09-20 2013-03-28 주식회사 케이티 Service anti-collision method for host controller interface, equipment, booting method and host controller therefor
CN104021469A (en) * 2014-06-13 2014-09-03 捷德(中国)信息科技有限公司 Method, equipment and system for carrying out payment transaction
CN104102939A (en) * 2014-07-15 2014-10-15 陈业军 HCE (Host-base Card Emulation)-based NFC (Near Field Communication) system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007076456A2 (en) * 2005-12-28 2007-07-05 Sandisk Corporation Nested memory system with near field communications capability
KR20130030852A (en) * 2011-09-20 2013-03-28 주식회사 케이티 Service anti-collision method for host controller interface, equipment, booting method and host controller therefor
CN104021469A (en) * 2014-06-13 2014-09-03 捷德(中国)信息科技有限公司 Method, equipment and system for carrying out payment transaction
CN104102939A (en) * 2014-07-15 2014-10-15 陈业军 HCE (Host-base Card Emulation)-based NFC (Near Field Communication) system

Also Published As

Publication number Publication date
CN106503782A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN103400265A (en) Quick payment method and system based on position information
CN104283687A (en) Pre-generation of session keys for electronic transactions and devices that pre-generate session keys for electronic transactions
CN107784499B (en) Secure payment system and method of near field communication mobile terminal
CN103793815A (en) Mobile intelligent terminal acquirer system and method suitable for bank cards and business cards
CN104361493A (en) Electronic payment method on basis of biological characteristics
CN103118032A (en) Method, terminals and server for synchronization of terminal login accounts
CN102402820A (en) Electronic transaction method and terminal equipment
EP2991263B1 (en) Offline pin authentication method and system for ic card
CN104537562A (en) Financial self-service system processing method
CN106027250A (en) Identity card information safety transmission method and system
US11887022B2 (en) Systems and methods for provisioning point of sale terminals
CN105138892A (en) Data interaction method and apparatus applied to composite smart card device
CN102810190A (en) Remote paying method, device and system
US20190132134A1 (en) Offline only terminal operation method and system
CN104680371A (en) Card-free transaction processing method and system
CN106503782B (en) NFC smart card analogy method and device
Radu et al. Practical EMV relay protection
CN110869960A (en) Processing payments
CN105160531B (en) Transaction data processing method and processing device
CN105989481B (en) Data interaction method and system
US10217101B2 (en) Link of mobile devices to facilitate mobile commerce transactions
CN107135194B (en) Security information interaction method and device
CN106961417B (en) Identity verification method based on ciphertext
CN104573765A (en) Smart card information processing method and device
EP4298761A1 (en) Establishing authentication persistence

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220908

Address after: Building B1, Bay Valley Science and Technology Park, No. 1688 Guoquan North Road, Yangpu District, Shanghai, 200082

Patentee after: Shanghai Fuwei Fast Digital Technology Co.,Ltd.

Address before: No.4 Building, Science Park, Fudan National University, 127 Guotai Road, Yangpu District, Shanghai, 2003

Patentee before: SHANGHAI FUDAN MICROELECTRONICS GROUP Co.,Ltd.

TR01 Transfer of patent right