METHOD FOR DETECTING THAT CONTACTLESS CPU CARD LEAVES RADIO-FREQUENCY FIELD
First Claim
1. A method for detecting whether a contactless CPU card has left a radio frequency field, comprisingStep A, a card reader obtaining an instruction and determining whether the instruction is a valid instruction, if yes, go to Step B;
- otherwise, go to step C;
Step B, the card reader determining the type of the valid instruction;
if the type is an instruction on informing to seek a card, go to Step D;
if the type is an APDU instruction, sending the APDU instruction to the card, and sending a response returned by the card to a master computer via USB interrupting channel;
then go back to Step A;
if the type is an extension instruction, performing operation according to the extension instruction, and sending a result of the operation to the master computer via USB interrupting channel;
then go back to Step A;
Step C, the card reader determining whether a flag of the card in the radio frequency field is set, if yes, go to Step E;
otherwise, go to Step D;
Step D, the card reader sends a card seeking instruction to the card and determines whether the card reader receives a card seeking response returned by the card, if yes, setting the flag of the card in the radio frequency field and sending the response that the card is in the radio frequency field to the master computer via USB interrupting channel;
otherwise, resetting the flag of the card in the radio frequency field and sending the response that card leaves the radio frequency field to the master computer via USB interrupting channel;
then go back to Step A;
Step E, the card reader sending a detecting instruction to the card and determining whether the card reader receives a detecting response returned by the card successfully, if yes, storing the detecting response and go to Step F;
otherwise, go to Step G;
Step F, the card reader setting the flag of the card in the radio frequency field, and sending the response that the card is in the radio frequency field to the master computer via USB interrupting channel;
go back to Step A; and
Step G, the card reader resetting the flag of the card in the radio frequency field and sending the response that the card leaves the radio frequency field to the master computer via USB interrupting channel;
then go back to Step A.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for detecting that a contactless CPU card leaves a radio-frequency field relates to the field of smart cards. The method comprises: receiving and judging whether a valid instruction sent by an upper computer is received, and conducting a corresponding operation according to the received instruction; as a notification card search instruction, conducting a card search operation, and judging whether returned information is received; obtaining card number information about a contactless card according to the returned information; as an APDU instruction, sending A data to the card in accordance with a designated format, judging whether a response is received, and sending the operation result to the upper computer; as an extension instruction, executing a corresponding operation, and sending the operation result to the upper computer; when a valid instruction is not received, judging the mark of the card in the radio-frequency field, and if the card is in the radio-frequency field, conducting a card detection operation, and sending the operation result to the upper computer; and if the card is not in the radio-frequency field, conducting a card search operation. The present invention can detect the problem that a CPU card leaves a radio-frequency field in real time.
3 Citations
20 Claims
-
1. A method for detecting whether a contactless CPU card has left a radio frequency field, comprising
Step A, a card reader obtaining an instruction and determining whether the instruction is a valid instruction, if yes, go to Step B; - otherwise, go to step C;
Step B, the card reader determining the type of the valid instruction; if the type is an instruction on informing to seek a card, go to Step D; if the type is an APDU instruction, sending the APDU instruction to the card, and sending a response returned by the card to a master computer via USB interrupting channel;
then go back to Step A;if the type is an extension instruction, performing operation according to the extension instruction, and sending a result of the operation to the master computer via USB interrupting channel;
then go back to Step A;Step C, the card reader determining whether a flag of the card in the radio frequency field is set, if yes, go to Step E;
otherwise, go to Step D;Step D, the card reader sends a card seeking instruction to the card and determines whether the card reader receives a card seeking response returned by the card, if yes, setting the flag of the card in the radio frequency field and sending the response that the card is in the radio frequency field to the master computer via USB interrupting channel;
otherwise, resetting the flag of the card in the radio frequency field and sending the response that card leaves the radio frequency field to the master computer via USB interrupting channel;
then go back to Step A;Step E, the card reader sending a detecting instruction to the card and determining whether the card reader receives a detecting response returned by the card successfully, if yes, storing the detecting response and go to Step F;
otherwise, go to Step G;Step F, the card reader setting the flag of the card in the radio frequency field, and sending the response that the card is in the radio frequency field to the master computer via USB interrupting channel;
go back to Step A; andStep G, the card reader resetting the flag of the card in the radio frequency field and sending the response that the card leaves the radio frequency field to the master computer via USB interrupting channel;
then go back to Step A. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
- otherwise, go to step C;
-
11. A method for detecting whether a contactless CPU card has left a radio frequency field, comprising
Step a, a card reader switching on regular interruption enabling; -
Step b, the card reader receiving an instruction sent by the master computer and determining whether the card reader receives a valid instruction, if yes, determining the type of the valid instruction, if the type is an instruction on informing to seek a card, go to Step c;
if the type is an APDU instruction, go to Step d;
if the type is an extension instruction, go to Step e;
otherwise, go to Step f;Step c, the card reader switching off the regular interruption enabling, sending a card seeking instruction to the card and determining whether the card reader receives a card seeking response returned by the card, if yes, setting the flag of the card in the radio frequency field and switching on regular interruption enabling, goes to Step f;
otherwise, resetting the flag of the card in the radio frequency field and switching on regular interruption enabling, go to Step f;Step d, the card reader switching off regular interruption enabling, sending the APDU instruction to the card and determining whether the card reader receives a response returned by the card, if yes, setting the flag of the card in the radio frequency field, sending the received response to the master computer via USB interrupting channel and switching on regular interruption enabling, then go to Step f;
otherwise, resetting the flag of the card in the radio frequency field and switching on regular interruption enabling, go to Step f;Step e, the card reader switching off regular interruption enabling, performing operation according to the extension instruction, sending the operation result to the master computer via USB interrupting channel and switching on regular interruption enabling, go to Step f; Step f, the card reader determining whether the flag of the card in the radio frequency field is set, if yes, sending the response that the card is in the radio frequency field to the master computer via USB interrupting channel, then go back to Step a;
otherwise, sending the response that the card leaves the radio frequency field to the master computer via USB interrupting channel, then go back to Step a;when the card reader receives triggering of regular interrupting, entering regular interrupting process, comprising Step g, the card reader switching off regular interruption enabling and clearing any regular interrupting flag Step h, the card reader determining whether the flag of the card in the radio frequency field is set, if yes, goes to Step i;
otherwise, sending card seeking instruction to the card and determining whether receiving a card seeking response returned by the card, if yes, go to Step l;
otherwise, go to Step m;Step i, the card reader sending detecting instruction to the card and determining whether the card reader receives a detecting response returned by the card, if yes, storing the detecting response and go to Step l;
otherwise, go to Step m;Step l, the card reader switching on regular interruption enabling, exiting the regular interrupting process; and Step m, the card reader resetting the flag of the card in the radio frequency field, switching on regular interruption enabling, and exiting the regular interrupting process. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification